cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
921
Views
2
Helpful
1
Replies
Highlighted
Cisco Employee

PowerTool cmdlet to get servers in a pool not associated to SP

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Enthusiast

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

View solution in original post

1 REPLY 1
Highlighted
Enthusiast

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

View solution in original post

Content for Community-Ad
This widget could not be displayed.