From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: [PATCH RFC OSSTEST 02/19] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU Date: Fri, 10 Oct 2014 14:56:22 +0100 Message-ID: <21559.58758.7736.560901@mariner.uk.xensource.com> References: <1412942404.27111.12.camel@citrix.com> <1412942554-752-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412942554-752-2-git-send-email-ian.campbell@citrix.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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 ? I'm tempted to suggest that you should use the non-CGI interface and get the firewall fixed... Ian.