Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Unified Computing UCS Manager Developer Center
Overview
UCS Manager XML Schema
UCS Automation Tool (goUCS)
Server and Host Management API
UCS Standalone C-Series Servers
Cisco Standalone C-Series CIMC XML API
goUCS Automation Tool
Cisco Standalone C-Series HUU Utilities
Documentation
Community
Testing
UCS Management Ecosystem
Management with HP Software
HP Operations Manager (HPOM)
HP Operations Orchestration (HPOO)
Management with Microsoft Software
Microsoft System Center
Cisco UCS PowerTool for UCSM
SDK
System Management Resources
Altiris
UCS Management with VMware Software
OpenStack
UCS Labs
Labs Wiki
VM-FEX
Overview
Getting Started
Resources
Flexpod
Overview
Getting Started
Resources
Everything
This Site
Blogs
Cisco UCS for RackTables
Jeffrey Silberman
25 Oct 2012
Cisco UCS PowerTool Examples
Eric Williams
20 Jul 2012
ANNOUNCEMENT: goUCS version 2.0 Released
Eric Williams
08 Mar 2012
Getting to Know your UCS Fabric Interconnect Neighbors
John McDonough
10 Nov 2011
SCOM MP version 2.0 for Cisco UCS is now available
Chakri Avala
01 Sep 2011
Showing 1 - 5 of 16 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
3
4
of 4
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Microsoft Discussions
RE: UCSPS code to run a pending reboot?
Threads [
Previous
|
Next
]
Jose Moreno
Posts:
2
Join Date:
3/8/11
Recent Posts
UCSPS code to run a pending reboot?
ucsps reboot
Answer
10/11/11 7:24 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi there,
I am trying to code the pending reboot of a server. The maintenance policy of a service profile is configure to "User acknowledgement". That service profile has been modified (new vnic added), and now there is a pending reboot to make. Rebooting the OS or resetting the service profile does not clear the pending action (and the new vnic has not been added), so I am running out of ideas.
I wanted to test with Get-Schedule, but unfortunately my UCSPE 1.4 does not support this method, does it?
Thanks in advance,
Jose
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
David Peel
Posts:
1
Join Date:
11/17/10
Recent Posts
RE: UCSPS code to run a pending reboot?
Answer
6/7/12 3:34 PM as a reply to Jose Moreno.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi There,
I'm very new to UCS, and currently tpoc'ing UCSM 2.0(q); so not 100% if this is relevent to you?
Here's one possible code snippet for performing this task with 0.9.8 Powertools. (least what I have been able to determine so far)
Note: You must trigger the restart via UCSM; otherwise it does not know a restart has occured.......it's a "feature" of the DME/AG/MIT automagic :-)
# Loop through each SP requiring acknowledgement
${lsAcks} = Get-UcsLsmaintAck -OperState "waiting-for-user"
foreach (${lsAck} in ${lsAcks})
{
# perform any activity on host prior to reboot here. i.e. put vmHost into maintenance mode etc.
# Acknowledge Maintenance Acknowlwedgement to progress reboot
Set-UcsLsmaintAck -LsmaintAck ${lsAck} -AdminState "trigger-immediate"
# Wait for UCS state change; reboot triggered
${lsAck} | Watch-Ucs -Property OperState -SuccessValue pending-next-boot -PollSec 30 -TimeoutSec 600
}
Hope this helps?
Dave
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available