[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC OSSTEST 02/19] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU



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.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.