HP (Hewlett-Packard) 232664-006 Network Card User Manual


 
Scripting, command line, and utility options 137
<PRIM_WINS_SERVER value = "16.81.3.247"/>
<STATIC_ROUTE_1 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
<STATIC_ROUTE_2 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
<STATIC_ROUTE_3 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
</MOD_NETWORK_SETTINGS>
<ADD_USER
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:
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 ="15"/>
<F8_PROMPT_ENABLED VALUE ="YES"/>
<HOST_KEYBOARD_ENABLED VALUE ="YES"/>
<REMOTE_KEYBOARD_MODEL VALUE ="US"/>
<REMOTE_CONSOLE_PORT_STATUS VALUE ="ENABLED"/>
<PASSTHROUGH_CONFIG VALUE ="3"/>
<SNMP_PASSTHROUGH_STATUS VALUE ="YES"/>
<POCKETPC_ACCESS VALUE ="NO"/>
<EMS_STATUS VALUE ="NO"/>
<BYPASS_POWER_CABLE_REPORTING VALUE ="NO"/>
<CIPHER_STRENGTH VALUE ="40"/>
<HTTPS_PORT VALUE ="443"/>
<HTTP_PORT VALUE ="80"/>