hponcfg修改ILO管理口密码

bjhana57:~ # hponcfg -f ilo.xml
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
Please specify a value for variable %user_password% in the xml file.
bjhana57:~ # vi ilo.xml
bjhana57:~ # hponcfg -f ilo.xml
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
Integrated Lights-Out will reset at the end of the script.
Please wait while the firmware is reset. This might take a minute /
|

Script failed
bjhana57:~ #
bjhana57:~ #
bjhana57:~ #
bjhana57:~ # vi ilo.xml
bjhana57:~ # hponcfg -w ilo.xml
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
Management Processor configuration is successfully written to file “ilo.xml”
bjhana57:~ # cat ilo.xml

(<!– HPONCFG VERSION = “4.3.0” –>
<!– Generated 3/27/2015 9:47:37 –>
<RIBCL VERSION=”2.1″>
<LOGIN USER_LOGIN=”Administrator” PASSWORD=”password”>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “Y”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “199.0.34.201”/>
<DIR_SERVER_PORT VALUE = “636”/>
<!– HPONCFG VERSION = “4.3.0” –>
<!– Generated 3/27/2015 9:47:37 –>
<RIBCL VERSION=”2.1″>
<LOGIN USER_LOGIN=”Administrator” PASSWORD=”password”>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “Y”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “199.0.34.201”/>
<ADD_USER
USER_NAME = “hp”
USER_LOGIN = “hp”
PASSWORD = “%user_password%”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
<ADD_USER
USER_NAME = “upcadmin”
USER_LOGIN = “upcadmin”
PASSWORD = “%user_password%”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
</ADD_USER>
</ADD_USER>
</ADD_USER>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “ou=People,dc=cmbc,dc=com”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “199.0.41.161”/>
<SUBNET_MASK VALUE = “255.255.255.0”/>
<GATEWAY_IP_ADDRESS VALUE = “199.0.41.250”/>
<DNS_NAME VALUE = “ILOCNG213S875″/>
<PRIM_DNS_SERVER value = “210.22.70.3”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “N”/>
<DHCP_DNS_SERVER VALUE = “N”/>
<DHCP_STATIC_ROUTE VALUE = “N”/>
<DHCP_WINS_SERVER VALUE = “N”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<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>
</RIB_INFO>
<USER_INFO MODE=”write”>
</ADD_USER>
<ADD_USER
USER_NAME = “lin”
USER_LOGIN = “lin”
PASSWORD = “lin”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>

“ilo.xml” 55L, 1810C written
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “ou=People,dc=cmbc,dc=com”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<ADD_USER
USER_NAME = “upcadmin”
USER_LOGIN = “upcadmin”
PASSWORD = “%user_password%”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “ou=People,dc=cmbc,dc=com”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “199.0.41.161”/>
<SUBNET_MASK VALUE = “255.255.255.0”/>
<GATEWAY_IP_ADDRESS VALUE = “199.0.41.250”/>
<DNS_NAME VALUE = “ILOCNG213S875″/>
<PRIM_DNS_SERVER value = “210.22.70.3”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “N”/>
<DHCP_DNS_SERVER VALUE = “N”/>
<DHCP_STATIC_ROUTE VALUE = “N”/>
<DHCP_WINS_SERVER VALUE = “N”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<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>
</RIB_INFO>
<USER_INFO MODE=”write”>
<ADD_USER
USER_NAME = “lin”
USER_LOGIN = “lin”
PASSWORD = “lin”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>

“ilo.xml” 54L, 1796C written
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “199.0.41.161”/>
<SUBNET_MASK VALUE = “255.255.255.0”/>
<GATEWAY_IP_ADDRESS VALUE = “199.0.41.250”/>
<DNS_NAME VALUE = “ILOCNG213S875″/>
<PRIM_DNS_SERVER value = “210.22.70.3”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “N”/>
<DHCP_DNS_SERVER VALUE = “N”/>
<DHCP_STATIC_ROUTE VALUE = “N”/>
<DHCP_WINS_SERVER VALUE = “N”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<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>
</RIB_INFO>
<USER_INFO MODE=”write”>
<ADD_USER
USER_NAME = “hp”
USER_LOGIN = “hp”
<!– HPONCFG VERSION = “4.3.0” –>
<!– Generated 3/27/2015 9:48:26 –>
<RIBCL VERSION=”2.1″>
<LOGIN USER_LOGIN=”Administrator” PASSWORD=”password”>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “Y”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “199.0.34.201”/>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “ou=People,dc=cmbc,dc=com”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “199.0.41.161”/>
<SUBNET_MASK VALUE = “255.255.255.0”/>
<GATEWAY_IP_ADDRESS VALUE = “199.0.41.250”/>
<DNS_NAME VALUE = “ILOCNG213S875″/>
<PRIM_DNS_SERVER value = “210.22.70.3”/>
<DHCP_ENABLE VALUE = “N”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “N”/>
<DHCP_DNS_SERVER VALUE = “N”/>
<DHCP_STATIC_ROUTE VALUE = “N”/>
<DHCP_WINS_SERVER VALUE = “N”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<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>
</RIB_INFO>
<USER_INFO MODE=”write”>
<ADD_USER
USER_NAME = “lin”
USER_LOGIN = “lin”
PASSWORD = “linziqiang”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>
~
“ilo.xml” 54L, 1803C written
PASSWORD = “%user_password%”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
<ADD_USER
USER_NAME = “upcadmin”
USER_LOGIN = “upcadmin”
PASSWORD = “%user_password%”>
<ADMIN_PRIV value = “Y”/>
<REMOTE_CONS_PRIV value = “Y”/>
<RESET_SERVER_PRIV value = “Y”/>
<VIRTUAL_MEDIA_PRIV value = “Y”/>
<CONFIG_ILO_PRIV value = “Y”/>
</ADD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>
bjhana57:~ # vi ilo.xml
bjhana57:~ # hponcfg -w ilo.xml
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
Management Processor configuration is successfully written to file “ilo.xml”
bjhana57:~ #
bjhana57:~ # vi ilo.xml
bjhana57:~ # hponcfg -f ilo.xml
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
<INFORM>Integrated Lights-Out will reset at the end of the script.</INFORM>
</– ERROR :      STATUS= 0x0004
MESSAGE= Password is too short. –>

Please wait while the firmware is reset. This might take a minute
Script failed )

bjhana57:~ # vi ilo.xml
bjhana57:~ # hponcfg -f ilo.xml
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
Integrated Lights-Out will reset at the end of the script.

Please wait while the firmware is reset. This might take a minute
Script succeeded
bjhana57:~ # hponcfg
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo

USAGE:
hponcfg -?
hponcfg -h
hponcfg -m minFw
hponcfg -r [-m minFw ]
hponcfg [-a] -w filename [-m minFw]
hponcfg -g [-m minFw]
hponcfg -f filename [-l filename] [-s namevaluepair] [-v] [-m minFw]
hponcfg -i [-l filename] [-s namevaluepair] [-v] [-m minFw]

-h, –help Display this message
-? Display this message
-r, –reset Reset the Management Processor to factory defaults
-f, –file Get/Set Management Processor configuration from “filename”
-i, –input Get/Set Management Processor configuration from the XML input
received through the standard input stream.
-w, –writeconfig Write the Management Processor configuration to “filename”
-a, –all Capture complete Management Processor configuration to the file.
This should be used along with ‘-w’ option
-l, –log Log replies to “filename”
-v, –xmlverbose Display all the responses from Management Processor
-s, –substitute Substitute variables present in input config file
with values specified in “namevaluepairs”
-g, –get_hostinfo Get the Host information
-m, –minfwlevel Minimum firmware level
bjhana57:~ # hponcfg -r
HP Lights-Out Online Configuration utility
Version 4.3.0 Date 12/10/2013 (c) Hewlett-Packard Company, 2014
Firmware Revision = 1.26 Device type = iLO 3 Driver name = hpilo
Resetting to Factory Defaults…This takes upto 60 seconds.

If you enjoyed this post, make sure you subscribe to my RSS feed!
此条目发表在LINUX, 操作系统分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image