From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH RFC OSSTEST 02/19] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU Date: Fri, 10 Oct 2014 15:05:46 +0100 Message-ID: <1412949946.27111.23.camel@citrix.com> References: <1412942404.27111.12.camel@citrix.com> <1412942554-752-2-git-send-email-ian.campbell@citrix.com> <21559.58758.7736.560901@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21559.58758.7736.560901@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-10-10 at 14:56 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH RFC OSSTEST 02/19] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU"): > > This controls the eth008 relay board: http://www.robot-electronics.co.uk/htm/eth008tech.htm > > > > Due to the use of the CGI interface this requires firmware version 4+. > > In the future we are likely to want to have more community members > working with osstest and that probably means we want to have a less > juicy `inside' to our network. > > That probably means nontrivial passwords, but it also probably means > we'll want to stop passing passwords on command lines. > > > + my $url = "http://$mo->{PDU}/io.cgi?$op$mo->{Port}=0"; > > + my $cmd = "curl --silent --user $mo->{User}:$mo->{Pass} $url"; > > Is there a way to do this where the password goes in a file or via an > fd ? There's --netrc which looks in ~/.netrc (or use --netrc-file). > I'm tempted to suggest that you should use the non-CGI interface and > get the firewall fixed... Probably easiest to do it as part of the move, when we (I pressume) gain control over the f/w, if any, between control host and test machines? I could code it as an option for now if you like. Ian.