cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
689
Views
0
Helpful
3
Replies

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

nativeplainguy
Level 1
Level 1

 

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

Kirk J
Cisco Employee
Cisco Employee

Greetings.

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

 

Kirk...

 

Hi Kirk,

 

Either one or even the list of OS IP addresses.

 

Thanks.

 

 

- Young

 

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: