- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- StoreVirtual Storage
- >
- Shutting down VSA in ESX using PowerCLI?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2015 02:51 PM
01-23-2015 02:51 PM
Shutting down VSA in ESX using PowerCLI?
Hi folks,
I am trying to figure out a decent method to automate the shutdown of my VSA VM in ESX 5.5.
I have a powercli script that shuts down all VMs except for the VSA and CMC VMs.
Would anyone have a suggestion for shutting them down?
I am wondering if it safe to use the Shutdown-VMGuest command rather than shutting down the VM from within the CMC console?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2015 05:34 AM
01-24-2015 05:34 AM
Re: Shutting down VSA in ESX using PowerCLI?
Better to do it on the NSM IMO.
If you a running SAN I/Q CLIQ from a windows host:
>cliq shutdownNsm action=Shutdown delay=10 login=xx.xx.xx.xx userName=your_nsm_login passWord=your_nsm_password
or SSH:
Login to the on-node CLI using the node IP address and the designated port 16022.
i.e.
>ssh –p 16022 -l <user> <xx.xx.xx.xx>
>your_nsm_password
>shutdownNsm action=Shutdown delay=10
Also, instead of supplying the password in the script, you might want to use a key file for SSH - from the manual:
Instead of specifying username/password parameters, you may choose to specify an
encrypted key file which contains the credentials.
This file can be kept in a secure location, or otherwise access - controlled. To create this file, use the createKey command.
>cliq createKey login=10.0.1.2 username=admin password=secret keyfile=key.dat
>cliq getGroupInfo login=10.0.1.2 keyfile=key.dat