Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Understanding command file & SSH execution time

APC UPS Data Center & Enterprise Solutions Forum

Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Understanding command file & SSH execution time
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
Teken
Spock Teken
110
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
Bartolo
Ensign Bartolo
Ensign

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

0 Likes
8
2590
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

Understanding command file & SSH execution time

I've looked at various configuration examples and read the manuals and help pages, but I can't quite understand how shutdown command file and SSH settings work.

When exactly is the shutdown command file run? Can I use SSH settings to execute commands on VMs, not just on VMware hosts? To me it seems that both are run too late in the shutdown sequence to be able to be used on VMs.

The scenario is that I have high priority VMs, vCenter Server VM is medium priority and all other VMs are lower priority. I need to execute commands on the high priority VMs before they are shut down but after vCenter has shut down.

Is this possible?

In the manual I found this:

"The VM Shutdown Duration can be set to 0 seconds for any priority group to handle any special VMs that need to be shut down later in the shutdown sequence via a command file or SSH action.
If you set a 0 second shutdown duration for a priority group, the shutdown action will be skipped for all VMs in that priority group."

So would this delay the VM shutdown so they are still turned on when shutdown command file or SSH action is run?

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
  • Tags:
  • esxi
  • powerchute-network-shutdown
  • powerchute_network_shutdown
  • vcenter
  • vmware
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

Hi,

With PCNS 4.3 the SSH actions run after the hosts are taken out of maintenance mode, so before VM startup. The original intent is to allow for shutdown and startup of remote systems. 

On 9/18/2019 3:29 AM, Bartolo said:

Will I have to manually shutdown any high priority VMs that have 0 second shutdown duration?

If not manually power off they will crash when the host is powered off.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 8
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

Hi,

On 9/16/2019 2:02 PM, Bartolo said:

So would this delay the VM shutdown so they are still turned on when shutdown command file or SSH action is run?

Yes. The VMs would not be powered off by PCNS so they would be available. 

Reply

Link copied. Please paste this link to share this article on your social media post.

Bartolo
Ensign Bartolo
Ensign

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

Ok thanks, I'll try it out.

How about after startup, is there a way to run a command on high priority VMs before other VMs get started?

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

Hi,

On 9/16/2019 3:24 PM, Bartolo said:

How about after startup, is there a way to run a command on high priority VMs before other VMs get started?

We may make a change in a future release but as of now the answer is no. 

Reply

Link copied. Please paste this link to share this article on your social media post.

Bartolo
Ensign Bartolo
Ensign

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:35 AM

That would be a nice feature. Is the SSH action on startup only intended to be run on the ESXi hosts?

Will I have to manually shutdown any high priority VMs that have 0 second shutdown duration? Or will Powerchute try to shut them down after some period?

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

0 Likes
0
2589
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

Hi,

With PCNS 4.3 the SSH actions run after the hosts are taken out of maintenance mode, so before VM startup. The original intent is to allow for shutdown and startup of remote systems. 

On 9/18/2019 3:29 AM, Bartolo said:

Will I have to manually shutdown any high priority VMs that have 0 second shutdown duration?

If not manually power off they will crash when the host is powered off.

Reply

Link copied. Please paste this link to share this article on your social media post.

Bartolo
Ensign Bartolo
Ensign

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

Ok, thanks for that. Are there any side effects in changing the Powerchute service to run as user account instead of local system account on Windows? I'd probably need to do that to make my scripts work.

Reply

Link copied. Please paste this link to share this article on your social media post.

Bartolo
Ensign Bartolo
Ensign

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

Or alternatively I could use SSH action, but at which point are they run in the shutdown sequence?

If I set an SSH action to act on a VM that has high priority and 0 second duration on shutdown, will it run before or after the shutdown command file?

Reply

Link copied. Please paste this link to share this article on your social media post.

Bartolo
Ensign Bartolo
Ensign

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

0 Likes
0
2588
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 04:05 AM . Last Modified: ‎2024-03-08 04:34 AM

I tested the command order and SSH action is run before shutdown command file. I have to work around that but it's doable.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of