|
Immediate System Shutdown Notes: via SAM in HP-UX (from an old HP friend)
From a terminal window (have to cd out of mounted filesystems first to "/" directory) by entering
'shutdown -hy 0' (or /usr/sbin/shutdown -hy 0 if /usr/sbin not in path but should be for root) as this is the quickest way for me. If you want to change Sam's user interface for a default then the only way that I have discovered to do it is to edit the rt_restart.ui --- they have the value hard-coded into the the file. Not really recommended as this was not meant to be user configurable, but it's your system.
So if you wish you can edit
/usr/sam/lib/C/rt_restart.ui
and go down towards the end of the file inside the block labeled
text_edit rt_restart_te_time
and change the line that reads
default "5"
to
default "0"
A third option would be to bring up Sam
Click on Actions on the top toolbar -> Add Custom Application
Then when the popup comes up
Label: add something you like like "Immediate Shutdown"
Command: /usr/sbin/shutdown -hy 0
leave the rest as is and click OK.
Now you should have an icon that you can click on to execute the shutdown -- the
only gotcha with this is that you'll have to be in the "/" directory when you start
SAM for it to work.
Last edited by MINICooperS; 06-15-2009 at 01:47 AM..
|