The Microsoft PowerShell scripts provided in this repository enable automation for the powered state of the Cisco UCS Platform Emulator (UCSPE). This can be useful for scenarios that require rebooting or shutting down the UCSPE for maintenance.
- Microsoft Windows PowerShell 3 or above.
- A running Cisco UCSPE virtual machine accessible over your network. More information and downloads for the Cisco UCSPE can be found here.
- Please ensure that the above prerequisites have been met.
- Download the ucspe_vm_reboot.ps1 and ucspe_vm_shutdown.ps1 files from this repository here on GitHub.
- Document the IP address of the targeted Cisco UCSPE.
-
The ucspe_vm_reboot.ps1 script provides the ability to perform an automated reboot of a targeted UCSPE. The following is an example of the command usage and mandatory parameters, in which the targeted UCSPE for a reboot has an IP address of 192.168.1.7:
ucspe_vm_reboot.ps1 -IP 192.168.1.7
The ucspe_vm_reboot.ps1 script does not require the parameter names and will accept just the positional values. Here is an example:
ucspe_vm_reboot.ps1 192.168.1.7
-
The ucspe_vm_shutdown.ps1 script provides the ability to perform an automated shutdown of a targeted UCSPE. The following is an example of the command usage and mandatory parameters, in which the targeted UCSPE for a shutdown has an IP address of 192.168.1.7:
ucspe_vm_shutdown.ps1 -IP 192.168.1.7
The ucspe_vm_shutdown.ps1 script does not require the parameter names and will accept just the positional values. Here is an example:
ucspe_vm_shutdown.ps1 192.168.1.7
The IP parameter is mandatory and specifies the IP address of the targeted UCSPE VM. A resolvable hostname for the targeted UCSPE will also be accepted for the value.
A modified version of the script in this repository is a part of the automation used to support and enable the following Cisco Data Center product demonstrations on Cisco dCloud:
- Cisco UCS Management with Intersight v1
- Cisco UCS Central 2.0 v1
- Cisco UCS Central 2.0 Lab v1
- Cisco UCS Programmability and Automation Lab v1
Cisco dCloud is available at https://dcloud.cisco.com, where product demonstrations and labs can be found in the Catalog.
Ugo Emekauwa