HP (Hewlett-Packard) ESXi 5.0 U1 Server User Manual


 
USER_NAME="Administrator"
USER_LOGIN="Administrator"
PASSWORD="">
</ADD_USER>
<ADD_USER
USER_NAME="Landy9"
USER_LOGIN="mandy9"
PASSWORD="">
</ADD_USER>
<RESET_RIB VALUE="Y"/>
</HPONCFG>
For security reasons, the user passwords are not returned.
Obtaining a specific configuration
A specific configuration can be obtained using the appropriate XML input file. For example, here
are the contents of a typical XML input file, get_global.xml:
<!-- Sample file for Get Global command -->
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="x" PASSWORD="x">
<RIB_INFO MODE="read">
<GET_GLOBAL_SETTINGS />
</RIB_INFO>
</LOGIN>
</RIBCL>
The XML commands are read from the input file get_global.xml and are processed by the
device:
/opt/hp/tools # ./hponcfg -f get_global.xml -l log.txt > output.txt
The requested information is returned in the log file, which, in this example, is named log.txt.
The contents of the log file are shown below.
<GET_GLOBAL_SETTINGS>
<SESSION_TIMEOUT VALUE="30"/>
<ILO_FUNCT_ENABLED VALUE="Y"/>
<F8_PROMPT_ENABLED VALUE="Y"/>
<REMOTE_CONSOLE_PORT_STATUS VALUE="3"/>
<REMOTE_CONSOLE_ENCRYPTION VALUE="N"/>
<PREFER_TERMINAL_SERVICES VALUE="N"/>
<HTTPS_PORT VALUE="443"/>
<HTTP_PORT VALUE="80"/>
<REMOTE_CONSOLE_PORT VALUE="23"/>
<TERMINAL_SERVICES_PORT VALUE="3389"/>
<VIRTUAL_MEDIA_PORT VALUE="17988"/>
<MIN_PASSWORD VALUE="4"/>
</GET_GLOBAL_SETTINGS>
Setting a configuration
A specific configuration can be sent to the iLO 2, iLO 3 or iLO 4 by using the command format:
/opt/hp/tools # ./hponcfg -f add_user.xml -l log.txt
In this example, the input file has contents:
<!Add user with minimal privileges to test default setting of assigned privileges to 'N'>
<RIBCL version="1.2"/>
<LOGIN USER_LOGIN="x" PASSWORD="x">
<USER_INFO MODE="write">
<ADD_USER USER_NAME="Landy9" USER_LOGIN="mandy9"
PASSWORD="floppyshoes">
<RESET_SERVER_PRIV value="Y" />
<ADMIN_PRIV value="Y" />
</ADD_USER>
HPONCFG utility 7