Parsing XML to find ILO address

(imported topic written by FITZPAW91)

Hi

I am trying to get the IP_ADDRESS from this XML. I would also like to do a seperate entry to get the DNS_NAME VALUE and concatanate it to the DOMAIN_NAME VALUE.

I am running this command and I can’t seem to get it, help please

node values of child nodes of selects “/ribcl/login/mod_network_settings/ip_address” of xml document of file “C:\EXP\BigFix\ilo_config.xml”

<DIR_INFO MODE=“write”>

<MOD_DIR_CONFIG>

<DIR_AUTHENTICATION_ENABLED VALUE = “N”/>

<DIR_LOCAL_USER_ACCT VALUE = “Y”/>

<DIR_SERVER_ADDRESS VALUE = “”/>

<DIR_SERVER_PORT VALUE = “636”/>

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

</DIR_INFO>

<RIB_INFO MODE=“write”>

<MOD_NETWORK_SETTINGS>

<SPEED_AUTOSELECT VALUE = “N”/>

<NIC_SPEED VALUE = “100”/>

<FULL_DUPLEX VALUE = “Y”/>

<DHCP_ENABLE VALUE = “N”/>

<DHCP_GATEWAY VALUE = “Y”/>

<DHCP_DNS_SERVER VALUE = “Y”/>

<DHCP_STATIC_ROUTE VALUE = “Y”/>

<DHCP_WINS_SERVER VALUE = “Y”/>

<REG_WINS_SERVER VALUE = “Y”/>

<IP_ADDRESS VALUE = “10.8.11.76”/>

<SUBNET_MASK VALUE = “255.255.255.0”/>

<GATEWAY_IP_ADDRESS VALUE = “10.8.11.254”/>

<DNS_NAME VALUE = “bob”/>

<DOMAIN_NAME VALUE = “loblaws.com”/>

<PRIM_DNS_SERVER value = “10.8.28.40”/>

<SEC_DNS_SERVER value = “10.8.28.41”/>

<TER_DNS_SERVER value = “0.0.0.0”/>

<PRIM_WINS_SERVER value = “10.8.28.40”/>

<SEC_WINS_SERVER value = “10.8.28.41”/>

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

</USER_INFO>

Thanks

William

(imported comment written by NoahSalzman)

q: node values of attributes of selects “/RIBCL/LOGIN/RIB_INFO/MOD_NETWORK_SETTINGS/IP_ADDRESS” of xml document of file “C:\EXP\BigFix\ilo_config.xml”

A: 10.8.11.76

Watch out for case sensitivity.

(imported comment written by FITZPAW91)

Thanks Noah

That works great

(imported comment written by FITZPAW91)

Hi All,

I received an email on how I get the information from HP ILO. So I figured put it up on the User Group, in case others would need it in the future.

Here is how to get the information from ILO. I start by using HPONCFG.exe /w and send it to a xml and a text file.

dos C:\hp\hpsmh\data\cgi-bin\vcagent\Discovery\HPONCFG.exe /w c:\exp\ilo\ilo_config.xml

dos C:\hp\hpsmh\data\cgi-bin\vcagent\Discovery\HPONCFG.exe /w c:\exp\ilo\ilo_config.txt

Thats it. Then I run the above command that Noah provided, and I am able to get the IP Address of ILO, along with any other information that the XML provides.

William