Some applications have licensing requirements which are bound to the MAC address of the installation VM. When this is the case a Commander Completion Workflow must be run to update the MAC address to the desired value, following the procedure detailed below. This is because Commander dynamically assigns MAC addresses. This solution is not compatible for use with fenced VMs , as a change to the MAC will impact communications with the deployed vRouter.
This article is written specifically to address this issue, using a new Completion workflow for clarity. You will most likely need to integrate the solution described here into existing Completion Workflows.
Requirements
- Commander 5.6.4 or later
- PowerShell v3 installed on Commander application server
- VMware PowerCLI
- Snow Software REST API PowerShell libraries
- Set MAC script (attached)
Creating the Completion Workflow
This solution requires that the script to set the MAC address be available on the Commander server, where it will be called by the workflow.
- Download the Set MAC script package (attached) to the Commander application server.
- Extract the script to C:\Scripts\networks\.
- Edit the script to provide the address the vCenter to which the VMs will be deployed and location of your encrypted credentials file.
- Browse to Configuration > Self-Service and switch to the Completion tab.
- Click Add.
- Provide a Name and choose to Apply this workflow: after a VM is deployed. Click Next.
- On the Steps page, click Add and choose Wait for Event. Configure as follows then click Next:
- Step Name: Wait for 10s
- Step Execution: Always Execute (or conditional as appropriate)
- Wait For: Time to Elapse
- Wait Time: 10 seconds
- Click Add and choose Perform Power Action. Configure as follows then click Next:
- Step Name: Perform Power Action
- Step Execution: Execute when conditions are met
- Action: Stop
- Click Edit and enter the condition #{target.state} -ne “Not Running” and click OK.
- Click Add and choose Execute Script. Configure as follows, replacing the example MAC with the address you want to use, then click Next:
- Step Name: Execute Script
- Step Execution: Always Execute
- Timeout: 300 seconds
- Script Output: Capture script output as comment
- When Step Fails: Mark workflow step as failed: do not proceed
- Command Line:
c:\windows\system32\WindowsPowershell\v1.0\powershell.exe & c:\Scripts\networks\Set_MacAddress.ps1 #{target.remoteId} "00:50:56:33:d7:1d"
- Click Add and choose Perform Power Action. Configure as follows then click Next:
- Step Name: Perform Power Action
- Step Execution: Always Execute
- Action: Start
- Complete the wizard as appropriate and click Finish.
See Also
Related Articles
MAC address duplication inhibiting inventory 8Number of Views lmhostid Output Change / Mac Address Extraction 9Number of Views Cloud inventory device may be deleted when MAC address is re-used from a previously terminated instance 4Number of Views No validation of URL under Completion Workflow when executing Rest Call 7Number of Views Leading commas may appear in IP Address and MAC Address fields on inventory device records when multiple network adapter d… 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago