cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Field Notice 70545
1192
Views
0
Helpful
1
Replies
dmr
Enthusiast
Enthusiast

UCS 3.2 vs convert_to_ucs_python() ?

With UCS 3.2 no longer supporting a Java client, does that kill convert_to_ucs_python(), or is there a workaround?

1 ACCEPTED SOLUTION

Accepted Solutions
dsoper
Cisco Employee

With HTML5, you will need to enable logging and pass the log file into the convert to utilities. Here are example instructions for capturing vlan creation code with PowerTool (Python is very similar):

1. Click in the browser window and press Ctrl-Alt-Q to enable a Record XML hyperlink.

Figure 1. Ctrl-Alt-Q

2. Click Record XML to start Recording

3. Click the LAN tab in the left menu click the All drop-down and select Pools.

4. Expand MAC Pools.

Figure 2. Expand VLANs

Create a MAC Pool

1. In UCS Manager, perform the following steps to create a MAC Pool:

a. Right click MAC Pools.

b. Click Create MAC Pool in the resulting menu.

Figure 3. Create VLANs Context Menu

c. In the Create MAC Pool window, enter new-mac-pool in the Name field and click Next>.

d. In the Add Mac Addresses section, click the Add button to open the Create a Block of MAC Addresses window.

e. Change the Size value to 100 then click OK.

Figure 4. Create VLANs Window

f. Click Finish to submit the Create MAC Pool dialog.

g. Click OK to clear the success dialog.

h. Check the UCSM MAC Pool list, which now includes new-mac-pool.

Figure 5. VLAN List

2. Click Stop XML Recording in the HTML5 window.

3. Enter new-mac-pool in the Enter Any Keyword For Log File field and click OK.

Figure 6. Enter Any Keyword For Log File Field

4. Save the file in the Downloads folder.

5. In the PowerShell window, enter the following command to interpret the newly created xml file.

ConvertTo-UcsCmdlet -xml -LiteralPath C:\Users\demouser\Downloads\new-mac-pool_xmlReq.log

Additional information is included with the Cisco demo Cloud UCS Programmability Lab (https://dcloud-cms.cisco.com/demo/cisco-ucs-automation-programmability-v1 ). The demo guide for the lab (

https://dcloud2-sjc.cisco.com/document/2056 ) walks through the HTML5 logging steps for both PowerTool and Python.

Let us know of questions.

View solution in original post

1 REPLY 1
dsoper
Cisco Employee

With HTML5, you will need to enable logging and pass the log file into the convert to utilities. Here are example instructions for capturing vlan creation code with PowerTool (Python is very similar):

1. Click in the browser window and press Ctrl-Alt-Q to enable a Record XML hyperlink.

Figure 1. Ctrl-Alt-Q

2. Click Record XML to start Recording

3. Click the LAN tab in the left menu click the All drop-down and select Pools.

4. Expand MAC Pools.

Figure 2. Expand VLANs

Create a MAC Pool

1. In UCS Manager, perform the following steps to create a MAC Pool:

a. Right click MAC Pools.

b. Click Create MAC Pool in the resulting menu.

Figure 3. Create VLANs Context Menu

c. In the Create MAC Pool window, enter new-mac-pool in the Name field and click Next>.

d. In the Add Mac Addresses section, click the Add button to open the Create a Block of MAC Addresses window.

e. Change the Size value to 100 then click OK.

Figure 4. Create VLANs Window

f. Click Finish to submit the Create MAC Pool dialog.

g. Click OK to clear the success dialog.

h. Check the UCSM MAC Pool list, which now includes new-mac-pool.

Figure 5. VLAN List

2. Click Stop XML Recording in the HTML5 window.

3. Enter new-mac-pool in the Enter Any Keyword For Log File field and click OK.

Figure 6. Enter Any Keyword For Log File Field

4. Save the file in the Downloads folder.

5. In the PowerShell window, enter the following command to interpret the newly created xml file.

ConvertTo-UcsCmdlet -xml -LiteralPath C:\Users\demouser\Downloads\new-mac-pool_xmlReq.log

Additional information is included with the Cisco demo Cloud UCS Programmability Lab (https://dcloud-cms.cisco.com/demo/cisco-ucs-automation-programmability-v1 ). The demo guide for the lab (

https://dcloud2-sjc.cisco.com/document/2056 ) walks through the HTML5 logging steps for both PowerTool and Python.

Let us know of questions.

View solution in original post

Content for Community-Ad