Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Server Management - Remote Server Management
cancel
Showing results for 
Search instead for 
Did you mean: 

Get iLo name only using CPQLOCFG

Claire G
Occasional Advisor

Get iLo name only using CPQLOCFG

Hi all,

I'm trying to create a script that will scan all our iLo/RIBs (approximately 600) and output the names of the iLo/RIBs into a spreadsheet.

The rest I've got, but am not sure how to get CPQLOCFG to just return the name rather than all the network settings.

Thanks,
Claire
1 REPLY
acartes
Honored Contributor

Re: Get iLo name only using CPQLOCFG

To get the DNS name using a CPQLOCFG script, you are going to have to post-process the response data, possibly using grep to search for the hostname keyword.

There is not an option to extract just the single setting via the XML scripting interface - you will get all of the network settings as a group.