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

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

PCNS cannot execute command file. vMa 6 on free ESXi 6.0 u2 setup

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
  • PCNS cannot execute command file. vMa 6 on free ESXi 6.0 u2 setup
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
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
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
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

0 Likes
3
916
  • 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-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

PCNS cannot execute command file. vMa 6 on free ESXi 6.0 u2 setup

I have an SUA 1000 UPS with a AP9617 network card. 

I wish to use the network card to shut down the ESXi 6.0u2 server that it connects to. 

ln PCNS, I configured the shutdown settings to run the command file /opt/APC/PowerChute/group1/bin/doshutdown1.sh when UPS on battery

doshutdown1.sh is simply an executable script that does this:

#!/bin/sh

ssh  root@xxx.xxx.xxx.xxx "/sbin/shutdown && /sbin/poweroff"  

This script works fine when I am in vMa 6 and executes the script from there directly.

However, when UPS is on battery, it does not execute the command file .

I have attached the cmdfile.log and the error.log

Please help. thank you

Attachments
error.log
cmdfile.log
Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
  • Tags:
  • command
  • esxi
  • free
  • vma
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-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

0 Likes
0
916
  • 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-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

Hi,

When PowerChute is installed on a vMA it is installed as root user.

The command file log shows permission denied and publickey, password. 

[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied (publickey,password).

When you run the file from the command prompt are you logged in as root or vi-admin? It is possible that root is being blocked. See this web site for more information. 

http://linuxcommando.blogspot.com/2013/04/one-liner-to-shutdown-remote-host.html?_sm_au_=ijVFHr4kTZQ...

VMware also offers knowledge base 1013193 "ESXi/ESX 4.x and ESXi 5.x/6.0 shutdown and reboot commands"

See Answer In Context

Reply

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

Replies 3
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

0 Likes
0
916
  • 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-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

Hi,

Most likely the issue is PCNS does not have the proper permissions to shutdown the host so it is running the script but the command is not being acted on.

NOTE: The free version of ESXi is not supported by Schneider Electric. If you purchase the appropriate license from VMware PCNS will shutdown the host without the need for you to write your own script.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

0 Likes
0
916
  • 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-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

Hi Bill ,

Thank you for responding. I was hoping for a more helpful answer rather than " the free version of ESXi is not supported .." For various reasons, not all of us need or are able to afford the paid version of ESXi. 

If PCNS does not have the proper permissions, how do we enable it to have the right permissions?

There was previous workarounds using perl scripts, but that was for an older vMa, PCNS and ESXi. Using the same scripts , errors regarding the "hostfile" came up. Would you be able to advise or give pointers on that?

I am hopeful the purchase of the network card would not be a total waste

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

0 Likes
0
917
  • 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-29 05:28 AM . Last Modified: ‎2024-03-13 12:55 AM

Hi,

When PowerChute is installed on a vMA it is installed as root user.

The command file log shows permission denied and publickey, password. 

[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied (publickey,password).

When you run the file from the command prompt are you logged in as root or vi-admin? It is possible that root is being blocked. See this web site for more information. 

http://linuxcommando.blogspot.com/2013/04/one-liner-to-shutdown-remote-host.html?_sm_au_=ijVFHr4kTZQ...

VMware also offers knowledge base 1013193 "ESXi/ESX 4.x and ESXi 5.x/6.0 shutdown and reboot commands"

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