Operating System - HP-UX
1822147 Members
4056 Online
109640 Solutions
New Discussion юеВ

shutdown -r now does not reboot

 
S├йbastien
New Member

shutdown -r now does not reboot

hi,

My server is a RP5430 and I am using an HPUX B.11.00.

I need to reboot my server by using this command :

remsh myhost -n "cd/; super shutdown -y -r now"

super means : as root

The shutdown seems to be fine but at the end the reboot is not started ...

If any body has any idea .

Thanks in advance,

S├Г┬йbastien
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: shutdown -r now does not reboot

Check the /etc/rc.log on the target server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
V.Tamilvanan
Honored Contributor

Re: shutdown -r now does not reboot

Hi Sebastin,

I believe there are syntax error in your command itself.Can you try this below command:-


#remsh myhost -l super -n "cd /; /usr/sbin/shutdown -y -r now"
or

#remsh myhost -n "cd /; /usr/sbin/shutdown -y -r now"
Senthil Kumar .A_1
Honored Contributor

Re: shutdown -r now does not reboot

hello sabastien,

First and foremost do not use "shutdown -r now".This syntax sounds more like BSD version.Since HPUX is svr5 compatible try using
"shutdown -ry 0" instead.

regards
Senthil

p.s: Do not forget to allocate points if it solves your problem.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: shutdown -r now does not reboot

hello sabastien,

one more inference. Even if "shutdown -r now" work probably since you haven't included -y option in your command,may be it is still expecting from you to confirm the action by expecting "y".
therefore the more assured syntax would be using "shutdown -ry 0"
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Bruno Ganino
Honored Contributor

Re: shutdown -r now does not reboot

Try this
remsh myhost -n "cd/; super shutdown -r 0"

Bruno
Torino (Turin) +2H
RAC_1
Honored Contributor

Re: shutdown -r now does not reboot

what ever user you are on system A, if you want o reboot system B, the command line should be as follows.

remsh hostsb -l root -n "cd / ; shutdown -ry 0"

It will prompt you for root password for system B

Anil
There is no substitute to HARDWORK
David Nardi
Advisor

Re: shutdown -r now does not reboot

If you are trying to make this non-interactive, then add an entry to your root account's $HOME/.rhosts file on hostb such as:

hosta USERID

...so that the command syntax:

"remsh hostsb -l root -n "cd / ; shutdown -ry 0"

will not ask for a password (provided that you are logged in as USERID on hosta).