Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively.Register now to secure your spot!
PowerChute 2.2.3 - Solaris 10 (SPARC): UPS On Battery, Run Command File...
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.
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 InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-3007:01 PM. Last Modified: 2024-03-0702:13 AM
PowerChute 2.2.3 - Solaris 10 (SPARC): UPS On Battery, Run Command File...
Hello,
I am trying to run a database shutdown script before the UPS goes on battery. The other events are working (system shutdown) but of course i want to be able to bring down the database with a script before the system does a shutdown.
The issue is, the shutdown script has commands in it like, 'sqlplus'. If the script is run as "oracle" user, it works fine. However if i log into root and type 'sqlplus' i get sqlplus: not found.
My question is, will the powerchute service run the script for On Battery event as root? if so, how do i make root able to run this shutdown script?
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-3007:01 PM. Last Modified: 2024-03-0702:13 AM
think i figured it out... instead of running the script, the command
su - username -c "/path/to/script.sh"
works well from root prompt... so i will assume that powerchute will run as root and will do the same thing. Now if I can just figure out how to monitor the powerchute console session when i unplug the systems to see if its actually executing the scripts.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-3007:01 PM. Last Modified: 2024-03-0702:13 AM
think i figured it out... instead of running the script, the command
su - username -c "/path/to/script.sh"
works well from root prompt... so i will assume that powerchute will run as root and will do the same thing. Now if I can just figure out how to monitor the powerchute console session when i unplug the systems to see if its actually executing the scripts.
Message was edited by: charlescva
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.