05.11.2012 Aufrufe

HP iLO 3 Scripting and Command Line Guide - Business Support ...

HP iLO 3 Scripting and Command Line Guide - Business Support ...

HP iLO 3 Scripting and Command Line Guide - Business Support ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

10 PERL scripting<br />

Using PERL with the XML scripting interface<br />

The scripting interface provided enables administrators to manage virtually every aspect of the<br />

device in an automated fashion. Primarily, administrators use tools like CPQLOCFG to assist<br />

deployment efforts. Administrators using a non-Windows client can use PERL scripts to send XML<br />

scripts to the <strong>iLO</strong> devices. Administrators can also use PERL to perform more complex tasks than<br />

CPQLOCFG can perform.<br />

This section discusses how to use PERL scripting in conjunction with the Lights-Out XML scripting<br />

language. PERL scripts require a valid user ID <strong>and</strong> password with appropriate privileges.<br />

Sample XML scripts for <strong>iLO</strong> devices <strong>and</strong> a sample PERL script are available on the <strong>HP</strong> website at:<br />

http://www.hp.com/go/<strong>iLO</strong>3. Click <strong>iLO</strong> Sample Scripts under <strong>iLO</strong> <strong>Support</strong> <strong>and</strong> Downloads.<br />

XML enhancements<br />

Previous versions of <strong>iLO</strong> 3 firmware do not return properly formatted XML syntax. If the <strong>iLO</strong> 3<br />

firmware determines the client utility does not support the return of properly formatted XML syntax,<br />

the following message appears:<br />

<strong>Scripting</strong> utility should be updated to the latest<br />

version.<br />

This message informs you to update to a later version of the CPQLOCFG scripting utility. The latest<br />

version of CPQLOCFG is 3.5.0.<br />

If you are using a utility other than CPQLOCFG (such as PERL), the following steps help ensure that<br />

the <strong>iLO</strong> 3 firmware returns properly formatted XML. You must incorporate the following tag into<br />

the script sent to <strong>iLO</strong> 3:<br />

<br />

You can place this tag in either the PERL script or the XML script. Placement of this tag is important.<br />

If you place this tag in the PERL script, the tag must be sent after <strong>and</strong><br />

before the XML script is sent. If you place the tag in the XML script, the tag must be placed before<br />

. If you are using the PERL script provided by <strong>HP</strong>, you can add the<br />

bold line in the following example to return properly formatted XML syntax.<br />

For example:<br />

• PERL script modification<br />

…<br />

# Open the SSL connection <strong>and</strong> the input file<br />

my $client = new IO::Socket::SSL->new(PeerAddr => $host);<br />

open(F, "

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!