cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
260
Views
0
Helpful
3
Replies
Highlighted
Beginner

Any CLI method to get all server hostnames inside UCS chassis?

 

Is it possible to use CLI to list all the configured server hostnames inside a UCS chassis?

 

Whether to use ssh and run UCS commands or curl to run API query.

 

Thanks.

 

 

- Young

3 REPLIES 3
Highlighted
Cisco Employee

Greetings.

Are you referring to the service profile names?  Or the Operating system "host name"?

 

Kirk...

Highlighted

 

Hi Kirk,

 

Either one or even the list of OS IP addresses.

 

Thanks.

 

 

- Young

 

Highlighted

Aside from the service profile name, host name or IP address would typically require some sort of agent to be present in the OS,in order to poll that type of info.

You could use a UCSM powershell script to find service profiles that are applied with:

get-ucsserviceprofile | where {$_.configstate -like "applied"} | select DN,Descr

 

I think I've seen vHBA firmware able to query the running fnic driver version active in the OS,,, but again that still has an 'agent' of sorts, in that case a driver running in the OS.

 

The UCSM is more/less agnostic to the operating systems running on top of it.

That is why complete monitoring solutions normally will poll the hardware (UCSM or CIMC of stand alone) SNMP,, the Hypervisor or baremetal level via snmp, and guestVM IP.  You normally will have at least 3 IP datapoint collection points to query.

 

Let's see if anyone else has been able to pull OS related info from the underlying UCSM...

Kirk...

Content for Community-Ad