HP Client Virtualization with VMware View and VMware ThinApp Obtaining a specific configuration

Page 7

<MOD_DIR_CONFIG>

<DIR_AUTHENTICATION_ENABLED VALUE="N" /> <DIR_LOCAL_USER_ACCT VALUE="Y" /> <DIR_SERVER_ADDRESS VALUE=""/> <DIR_SERVER_PORT VALUE="25"/> <DIR_OBJECT_DN VALUE=" "/> <DIR_OBJECT_PASSWORD VALUE=""/> <DIR_USER_CONTEXT_1 VALUE=""/> <DIR_USER_CONTEXT_2 VALUE="_"/> <DIR_USER_CONTEXT_3 VALUE=""/> </MOD_DIR_CONFIG> <MOD_NETWORK_SETTINGS> <SPEED_AUTOSELECT VALUE="Y"/> <NIC_SPEED VALUE="100"/> <FULL_DUPLEX VALUE="Y"/>

<IP_ADDRESS VALUE="XX.XXX.XXX.XX"/>

<SUBNET_MASK VALUE="xxx.xxx.xxx.x"/> <GATEWAY_IP_ADDRESS VALUE="XX.XXX.XXX.X"/> <DNS_NAME VALUE="ILOD234KJ44D002"/> <PRIM_DNS_SERVER value="xx.xx.x.xxx"/> <DHCP_ENABLE VALUE="Y"/>

<DOMAIN_NAME VALUE="americas.cpqcorp.net"/> <DHCP_GATEWAY VALUE="Y"/> <DHCP_DNS_SERVER VALUE="Y"/> <DHCP_STATIC_ROUTE VALUE="Y"/> <DHCP_WINS_SERVER VALUE="Y"/> <REG_WINS_SERVER VALUE="Y"/> <PRIM_WINS_SERVER value="xx.xx.x.xxx"/>

<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:

/opt/hp/tools # ./hponcfg -f get_global.xml -l log.txt > output.txt

HPONCFG utility 7

Image 7
Contents HP VMware Utilities User Guide Acknowledgments Contents Prerequisites IntroductionHponcfg Command Line Arguments Hponcfg command-line syntaxHponcfg utility Obtaining an entire configuration Hponcfg command file contentsHponcfg return codes Obtaining a specific configuration Hponcfg command-line examples Setting a configurationHponcfg command-line examples Hpbootcfg Command Line Arguments Hpbootcfg utilityHpbootcfg command-line syntax Hpbootcfg Esxcli syntaxHpssacli utility Hpbootcfg return codesHpbootcfg command-line examples Hpssacli command-line syntaxHpssacli Esxcli syntax Hpssacli Command-Line ArgumentsIntroduction Hptestevent utility Hptestevent command-line syntaxHptestevent return codes Hptestevent command-line examplesHptestevent command-line examples Hptestevent Esxcli syntaxExample Usage HP contact information Subscription service Documentation feedbackContacting HP Before you contact HPDocuments New and changed information in this editionRelated information Typographic conventionsUnderstood or followed will result in personal injury or Index