- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - VMware
- >
- Re: P4300 G2 shutdown Script via SSH if you get po...
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
04-13-2021 08:16 AM
04-13-2021 08:16 AM
P4300 G2 shutdown Script via SSH if you get power cut
Is there a way to shutdown the Lefthand via Script with SSH if the power cuts off? I am using Eaton UPS.
What would you write into the script for automatical shutdown if the power cuts off?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-16-2021 02:23 PM
04-16-2021 02:23 PM
Re: P4300 G2 shutdown Script via SSH if you get power cut
There are no scripts available for StoreVirtual.
But you can use write scripts which use the cliq to do the commands like shutdown.
Regards,
Rachna K
I am an HPE Employee
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-17-2021 12:02 PM - edited 04-19-2021 06:51 AM
04-17-2021 12:02 PM - edited 04-19-2021 06:51 AM
Re: P4300 G2 shutdown Script via SSH if you get power cut
Do you have maybe another SSH script for shutdown or smth like that? Just to have the right command.
Or could you maybe at least tell me the right command for shutting it down? Is there the possibility to connect on it via SSH? If yes, which version?
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-19-2021 11:53 AM - last edited on 06-24-2021 10:31 AM by Ramya_Heera
04-19-2021 11:53 AM - last edited on 06-24-2021 10:31 AM by Ramya_Heera
Re: P4300 G2 shutdown Script via SSH if you get power cut
We can run the shutdown command through SSH. However, we (Support Team) need to generate one time passwords to log into root.
We can shutdown the Node through Cliq. Below are the steps for the same.
1. Open a Putty Session
2. Enter the IP Address of the Node on Port 16022
3. Run the following Command:
Syntax
shutdownNsm {login=} { userName= passWord= | groupName= } {action=} [delay=]
Parameters
Name Description
The IP addresses or DNS-resolvable names of one or more storage
systems.
{login}
The authentication user name for the storage system. If you use this
parameter, you must include the passWord parameter with it. Or, you can
use the groupName parameter instead of userName and passWord.
{userName}
The name of the management group. Use this parameter if you do not use
the userName and passWord parameters. Because groupName has
{groupName}
cached credentials, it does not require the userName and passWord
parameters.
The password for the storage system. Required when the userName
parameter is used.
{passWord}
The operation to perform. Values are Shutdown—Powers off the storage
system, Restart—Reboots the storage system, and Cancel—Cancels a
restart or shutdown, if pending.
{action}
[delay] The number of minutes to delay prior to shutdown or restart (defaults to 0).
CAUTION:
• Shutting down a storage node may cause loss of access to volumes or degrade performance.
• This command will display a prompt, requiring confirmation before proceeding. This prompt
may be overridden with an optional prompt=0 parameter on the command line; in this case,
the command will always run without pausing for confirmation.
Regards,
Rachna K
I am an HPE Employee
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP