- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mutiple system 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
Discussions
Discussions
Forums
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
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
тАО03-07-2001 07:46 AM
тАО03-07-2001 07:46 AM
Mutiple system shutdown
Has anyone automated a multiple system shutdown from a central location? I have 25 HP-UX workstations (C180s and C360s). In the event of a power failure, I would like to issue a command that will pass the "shutdown -h now" to all the systems. Sounds fairly simple. I'm thinking of using remsh but I haven't tested it yet. Any suggestions?
Thanks!
Carina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2001 07:53 AM
тАО03-07-2001 07:53 AM
Re: Mutiple system shutdown
Just my 2cents,
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2001 07:56 AM
тАО03-07-2001 07:56 AM
Re: Mutiple system shutdown
Yes, you could do it with remsh but you can do it only as root or restricted user. So first
check if you have the permissions on all other hosts.
hmm...put your script in the crontab and try it in the evening.
Goodluck.
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2001 02:17 PM
тАО03-07-2001 02:17 PM
Re: Mutiple system shutdown
We have an APC UPS with a Web/SNMP Managment Card in it. We installed APC's PowerChute software on our servers. When there is a power failure the Managment card will send out a signal. PowerChute listens for these signals and will then log the information, email a notification, run a script that I have set up or just shut the system down. It's unattended and pretty easy to set up.
The real slick part is your system does not have to be powered by this UPS. you could buy a small unit with the Managment Card. When it detects a power failure it will send the signal to any host you designate. It can just be the trigger for the shut down process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2001 05:42 PM
тАО03-07-2001 05:42 PM
Re: Mutiple system shutdown
reboot -qh will halt the system(s) in just a few seconds, pausing just long enough to sync the filesystems. Now the reboot -qh command is not friendly to application programs...it's the same as a kill -9 in that the programs are given no opportunity for cleanup. But given the choice between an uncontrolled loss of power (which can sometimes be worse than kill -9) versus a sync of the disks and clean shutdown, well the choice is pretty clear.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2001 06:04 AM
тАО03-08-2001 06:04 AM
Re: Mutiple system shutdown
#!/bin/csh
#
# 99-09-08; sts shutdown_server geschrieben um alle Server im Falle
# eines Stromausfalls kontrolliert runter zu fahren.
#
#
#------------------------------------------------------
# Varaiblen vorbelegen
#------------------------------------------------------
set com = $0
set Workstations = ()
#
#------------------------------------------------------
# pruefen der Aufrufparameter
#------------------------------------------------------
#
if ($#argv == 0) set argv = "-h"
switch ($1)
#
case -r: # script startet
goto losgehts # zur Shutdownsession gehen
breaksw
case -h:
goto help # zur Hilfe verzweigen
breaksw
default:
echo ""
echo " $com:t --> unbekannte Option >$argv<"
echo ""
help:
echo ""
echo "$com:t :Verwendung : $com:t [-h|-r] -h : druckt diese Meldung -r : startet das script um alle Server herunter zu fahren"
exit 1 # mit status 1 wegen fehlbedienung verlassen
endsw
#
#------------------------------------------------------
# Liste der Server erzeugen, ist leichter zu pflegen
# als mehrer Aufrufe nacheinander
#------------------------------------------------------
#
losgehts:
#
set serverliste = (serv1 serv2 serv3)
#
foreach server ( $serverliste )
remsh $server -n "/usr/sbin/shutdown -h -y 0" > /dev/null & # Server runterfahren
end
exit 0
This is a pretty easy script, but it works.
Hope this helps. Regards Stefan
BTW: How about some points?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2001 07:25 AM
тАО03-08-2001 07:25 AM