Blogs

Introduction

Racktables version 0.20.1 has new feature support for Cisco UCS environments. Racktables is a structured and robust open-source solution for datacenter asset management, that helps document hardware assets, network addresses, space in racks and network configuration.
...Read More

 

I just added a new section to the UCS PowerTool section on the UCS CDN site that will provide a central repository of PoSh scripts, examples, and videos that detail use cases and examples for UCS PowerTool.

Here is the link:
http://developer.cisco.com/web/unifiedcomputing/powertool-examples
...Read More

 

I would like to announce the general availability of goUCS version 2.0 on Cisco Developer Network. A lot of time and effort has been put into the newest goUCS release, with some of the main features being detailed below.

 

Lest anyone thinks I have forgotten about my blogging on the UCS API, I have not, but I have written a blog recently for the Data Center blog and it is applicable to the UCS so I thought I would share the link here along with the blog into.

Early in my career I moved quite a bit, new job, growing family, whatever the reason it seemed like every two or three years we were packing up and going to a new place and meeting our new neighbors.
...Read More

 

Updated and completely revised version 2.0 MP for Cisco UCS is now available for download. Please check the release notes for the complete list of bug fixes ...Read More

 

Showing 1 - 5 of 16 results.
Items per Page 5
of 4

Forums

« Back to Microsoft Discussions

UCSPS code to run a pending reboot?

Combination View Flat View Tree View
Threads [ Previous | Next ]
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

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

Collateral


No files available