Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Retrieve list of UCS blades list using VCO plugin fails

Hello,

I am working with Cisco UCSM plug-in for VMWare vCO orchestrator, v 0.9.2 released in Jan 2014. building a workflow to automate provisioning of Cisco Blades in VCE Vblock environment, the first step is to retrieve *all* Cisco blades (objects of UCSM:Blade) type using the following script:

var blades = Server.findAllForType("UCSM:Blade"); // This will get ALL blades managed by vCO - getting the blades for a particular chassis would be better

System.log("GET FREE BLADE: Found a total of " + blades.length + " CISCO UCS blades");

for each (var blade in blades) {  //filter by assignedToDn
    if (blade.assignedToDn == "") {
        System.log("CISCO Blade named: "+ blade.dn + " is FREE and will be provisioned!");
        //System.log(blade.getAttr() + " is free");
        freeBlade = blade;
        break;
    }    
    else System.log("CISCO Blade named: "+ blade.dn + " is assigned to " + blade.assignedToDn);    
}

However, the script consistently returns 0 blades:

[2014-07-07 10:42:27.745] [I] GET FREE BLADE: Found a total of 0 CISCO UCS blades

Although I am sure there blades under UCS management.

Is there another way to obtain that list and determine which blade(s) are "free" - that is do not have Service profile associated with them?

thanks,

Dan Zilberman

VMware

 

 

Everyone's tags (3)
81
Views
0
Helpful
0
Replies
CreatePlease to create content