UNIX for Advanced & Expert Users

Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Shutdown

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-02-2006
aewpcoles aewpcoles is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 15 August 2006, 6:33 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Shutdown and turn off

Firstly uname -a = UnixWare companyname 5 7.1.4 i386 x86at SCO UNIX_SVR5

Server is an HP Proliant ML350 G4 Tower

Right, now to the problem.
We frequently have power outtages and lightning strikes here due to our location in a VERY rural part of the UK.
As such, I need to be able to remotely shutdown our Unix server.
I cannot use software from our UPS as that is connected to a Windows server.
Currently, from home, I VPN to the network, remote control the Windows server and use a Hyperterminal session to connect to the Unix server.
The company that provided us with the server created a text menu for us so that when we connect via telnet and login as root we get a few options.
One of them is to check who is connected. Once we are sure all users are out, we can proceed.
Another option is to shutdown the server.
When we select this option the server shuts down to a message something like 'it is now safe to turn your system off'.

This isn't really too much of a problem due to the fact that if the UPS runs out of power, the box will turn off the same as pressing the button.
However, doing it this way means that the UPS batteries are getting more 'stressed' than they should and will need to be replaced.
Also, should the bulding be struck, there is a higher risk of damage due to transient voltages if the system is turned on.

I just want the server to turn off when shutdown.

I have spoken to the company who supplied the server, but they say that due to the HP ware used to install SCO, it is impossible.
I don't wish to call them liars, but if Windows 98 can shutdown a PC completely, shouldn't UNIX be able to?

I have not yet had a chance to simply try shutdown 0 from the command line yet, but will next chance I get.
Does anyone have any other ideas?
Is this something anyone else has come across?

All help is appreciated, (unless you are trying to get me to rethink the companies procedures or trying to get me to spend money)


Thanks

Adrian
Sponsored Links
    #2  
Old 08-02-2006
RTM's Unix or Linux Image
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 16 August 2017, 7:13 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 34 Times in 9 Posts
There should be a poweroff command - but that doesn't mean it will work for that hardware but it's worth a shot.

Of course, I don't know what will happen if you don't lose power - how does the server come back up?
Sponsored Links
    #3  
Old 08-02-2006
aewpcoles aewpcoles is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 15 August 2006, 6:33 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
The person on call who shuts down the servers comes in early.

What is this poweroff command?
    #4  
Old 08-03-2006
aewpcoles aewpcoles is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 15 August 2006, 6:33 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Shutdown

Hi,

Not sure if I posted a message in the right place yesterday.

It is regarding shutting down and powering off my Sco server.
I would be grateful is anyone could take a look at it.

https://www.unix.com/showthread.php?t=29772

Thanks

(Sorry if this is now in the wrong place and I was right the first time)
Sponsored Links
    #5  
Old 08-03-2006
blowtorch's Unix or Linux Image
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 1 July 2016, 6:18 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
I have merged the two threads.
Sponsored Links
    #6  
Old 08-03-2006
RTM's Unix or Linux Image
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 16 August 2017, 7:13 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 34 Times in 9 Posts
After looking through the SCO man pages I don't see a poweroff command. The only mention of 'power' in the init man page is as follows:

Quote:
If init receives a power failure signal (SIGPWR), it scans /etc/inittab for special entries of the type powerfail or powerwait. These entries are invoked (if the run-level permits this) before any further processing takes place. In this way init can perform various cleanup and recording functions during the powerdown of the operating system.
The 'poweroff' command was mention in a few articles on aplawrence.com (example ). Although I admit it's almost impossible to read with the new set up the site has. They may not even be writing about SCO in this article, which I must apoligize for.

There is a haltsys and uadmin command which normally should not be used - but the uadmin man page shows an option for pwrnap - A UPS or the BIOS-APM has detected a power outage; do not reboot until power returns. If possible, the machine is turned off.

Note, the uadmin man page states "if possible, the machine is turned off" - it all comes back to the hardware.

Last edited by RTM; 08-03-2006 at 09:19 AM..
Sponsored Links
    #7  
Old 08-03-2006
aewpcoles aewpcoles is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 15 August 2006, 6:33 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I guess this means it is a no go then.

I will make the assumption that if a regular shutdown doesn't power the system off, that uadmin won't either.

Unless anyone knows of a setting somewhere that might tell the OS that the BIOS won't accept the power off command or something?
The server is modern enough to be able to do this and in fact I have seen it do so with a Windows OS a while ago.

Should I be putting this down to an SCO limitation?
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script to force Oracle database shutdown when shutdown immediate does not work aixhp UNIX for Dummies Questions & Answers 7 03-11-2010 01:04 PM
'shutdown' and 'cat' scottsiddharth UNIX for Dummies Questions & Answers 5 11-25-2008 11:27 PM
shutdown question mokkan Solaris 2 07-16-2008 11:43 PM
Shutdown a system by MAC? deaconf19 Shell Programming and Scripting 7 11-28-2007 12:54 AM
to shutdown rajashekaran UNIX for Advanced & Expert Users 2 02-18-2002 12:42 PM



All times are GMT -4. The time now is 05:33 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?