- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tapping remote UPS to shutdown
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
Forums
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
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
09-02-2002 11:19 PM
09-02-2002 11:19 PM
tapping remote UPS to shutdown
Currently, we have a K-class machine that comes with UPS. The UPS shutdown the server after a power failure that does not resume.
I'm thinking of making use of this feature to shutdown some HP workstations without support of UPS via remote shell. Is it possible? If so, how to achieve it.
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 12:07 AM
09-03-2002 12:07 AM
Re: tapping remote UPS to shutdown
I think this is possible. I don't know exact how your UPS works but there must be some scripts which shut down the server at powerfail. You have to find this script and add some lines before the server shutdown.
remsh workstation1 shutdown -y 0
sleep 30
remsh workstation2 shutdown -y 0
sleep 30
remsh workstation3 shutdown -y 0
sleep 30
"server shutdown"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:27 AM
09-03-2002 01:27 AM
Re: tapping remote UPS to shutdown
the UPS is from HP - PowerTrust. Correct me if I'm wrong, the UPS is using ups_mond daemon to monitor the power line.
Is there a way to customise the daemon to execute a remote command before it executes a shutdown to its local machine?
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:54 AM
09-03-2002 01:54 AM
Re: tapping remote UPS to shutdown
This is what I find in the man page for ups_mond. What is not clear is when ups_mond uses shutdown -h and when it uses reboot. If shutdown -h is used you only have to create a "ordinary" shutdown script in /sbin/init.d and link this to /sbin/rc1.d. Example:
In /sbin/init.d:
create a script which shutdown your workstations and call it for example "stopwork", make it executable.
In rc1.d
ln -s /etc/init.d/stopwork K150stopwork
Have a look at the scripts in /sbin/init.d to get an idea about how this scripts should be created.
####### from man ups_mond ###############
ups_mond logs messages, and when appropriate invokes
/usr/sbin/shutdown using the -h option, or /usr/sbin/reboot. For each
configured UPS, ups_mond can be instructed (in /etc/ups_conf) to log
messages only, without taking shutdown or reboot action. See MSG_ONLY
in ups_conf(4). By default ups_mond performs the shutdown and reboot
actions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 03:10 AM
09-03-2002 03:10 AM
Re: tapping remote UPS to shutdown
Normal ups_mond operation invodes "shutdown" when AC power is lost. "Reboot" is invoked if there is an error condition with the UPS, i.e. "battery low", "current overload", "temperature too high", or "cannot exec shutdown due to
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 03:14 AM
09-03-2002 03:14 AM
Re: tapping remote UPS to shutdown
Of course the link should be:
ln -s /sbin/init.d/stopwork K150stopwork
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 04:35 AM
09-03-2002 04:35 AM
Re: tapping remote UPS to shutdown
my 2 bits worth!
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 05:07 AM
09-03-2002 05:07 AM
Re: tapping remote UPS to shutdown
One metod could be if the script check for a temporary file (for example /tmp/dont_stopwork). If this file exists the workstations is not shutdown. If you want to shutdown the server but not the workstations you create this file first (touch /tmp/dont_stopwork). If you use this metod you should add in the /sbin/init.d/stopwork to remove the temporary file at startup and add a link in the /etc/rc2.d directory too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2002 03:19 AM
09-04-2002 03:19 AM
Re: tapping remote UPS to shutdown
regards,
Darren.