07-03-2017 12:36 PM
A question from Cisco Live:
"ucsserverpoolassigned shows servers that are assigned a SP. It would be nice to have an option that shows servers that are in the pool but not assigned a SP. I can run a few lines of code to find it out but it would be easier if there was a field in the above command or have a new command like ucsserverpoolavailable."
Is there a simple filter or existing cmdlet to will get servers in the pool but not associated?
Solved! Go to Solution.
07-05-2017 09:06 AM
Hi David,
We don't have a single cmdlet to get all the unassigned servers in the Pool. However you can get the information for either blade or rack servers using the below cmdlets.
For getting the unassigned blades in the Pool:
Get-UcsServerPool -Name <NameofthePool> | Get-UcsComputePooledSlot -Assigned no | Select PoolableDn, ChassisId,SlotId
PoolableDn ChassisId SlotId
---------- --------- ------
sys/chassis-1/blade-2 1 2
sys/chassis-1/blade-3 1 3
sys/chassis-2/blade-1 2 1
sys/chassis-2/blade-5 2 5
For getting the unassigned rack servers in the Pool:
Get-UcsServerPool -Name <NameofthePool> | Get-UcsComputePooledRackUnit -Assigned no | Select PoolableDn, Id
PoolableDn Id
---------- ---
sys/rack-unit-1 1
sys/rack-unit-2 2
sys/rack-unit-3 3
Thanks,
Sumanth
07-05-2017 09:06 AM
Hi David,
We don't have a single cmdlet to get all the unassigned servers in the Pool. However you can get the information for either blade or rack servers using the below cmdlets.
For getting the unassigned blades in the Pool:
Get-UcsServerPool -Name <NameofthePool> | Get-UcsComputePooledSlot -Assigned no | Select PoolableDn, ChassisId,SlotId
PoolableDn ChassisId SlotId
---------- --------- ------
sys/chassis-1/blade-2 1 2
sys/chassis-1/blade-3 1 3
sys/chassis-2/blade-1 2 1
sys/chassis-2/blade-5 2 5
For getting the unassigned rack servers in the Pool:
Get-UcsServerPool -Name <NameofthePool> | Get-UcsComputePooledRackUnit -Assigned no | Select PoolableDn, Id
PoolableDn Id
---------- ---
sys/rack-unit-1 1
sys/rack-unit-2 2
sys/rack-unit-3 3
Thanks,
Sumanth
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: