Bhaskar Jayakrishnan | James,
The snippet generated by ConvertTo-UcsCmdlet is the most relevant sequence to issue soft-shut-down to an associated service profile.
What exactly is the operation you are trying to do ?
Get-UcsBlade -Chassis 1 | Get-UcsServiceProfile | SetUcsServerPower -State "soft-shut-down" does not map to MIT/MO model well.
Thanks,
- bhaskar
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com] Sent: Thursday, May 17, 2012 3:09 AM To: cdicuser@developer.cisco.com Subject: New Message from James Shen in Unified Computing UCS Manager - Microsoft Discussions: How to Gracefully shutdown all servers in a chassis
James Shen has created a new message in the forum "Microsoft Discussions":
-------------------------------------------------------------- What would be the most efficient way to do this ? The output of "ConvertTo-UcsCmdlet" generated the following for the blade in 1/8 Get-UcsOrg -Level root | Get-UcsOrg -Name "ESX" -LimitScope | Get-UcsServiceProfile -Name "ESX-1-8" -LimitScope | Get-UcsServerPower | Set-UcsServerPower -State "soft-shut-down"
I would imagine this should be something like this with pipelining : Get-UcsBlade -Chassis 1 | Get-UcsServiceProfile | SetUcsServerPower -State "soft-shut-down" Thanks James S -- To respond to this post, please click the following link:
<http://developer.cisco.com/web/unifiedcomputing/forums/-/message_boards/view_message/5744686>
or simply reply to this email. |
| Please sign in to flag this as inappropriate. |