Sponsored Content
Operating Systems OS X (Apple) Problems using shutdown -u command Post 302409447 by mckorn99 on Thursday 1st of April 2010 07:46:16 AM
Old 04-01-2010
Problems using shutdown -u command

I have a smart-ups connected to my OS X Snow Leopard server ver. 10.6. Based on the docs and forums I read, I have been trying to use the software provided by APC, PCNS. I have also tried to just use the UPS communications cable provided and use the OS' "UPS options". Neither of them work exactly how I need them to.

Here are the issues:

1. If I use the UPS options built in the server, it performs a soft shutdown. Once power is restored to the UPS, the server does not turn back on even though the option is set to power back on after a power outtage. (I understand this because the server had a soft shutdown and not a hard or dirty shurdown which causes the server to reboot once power is restored.

2. If I use PCNS (provided by APC), it will perform a soft shutdown but once again, it will not restart once power is restored to the UPS. There is a doc. mentioning on how to "fix" this. I change the shutdown command initiated by PCNS. The only thing this does is allow for a hard or dirty shutdown. Great, now it reboots once power is restored to the UPS... Problem is, I still need to have a soft shutdown so my VM's will shutdown properly.

3. The command I change from APC is a script that calls for the OS shutdown. The default is shutdown -h now. According to APC, I change this to shutdown -f now. (I never saw the -f option in any man page or Apple doc.) I did find one posting and also in several docs about the -u option. The problem here is that it seems to now work.

4. I perform a shutdown command with the -u command and it will not halt the power supplies for 5 min. before shutting down. If I try the command sudo shutdown -u the response is that I am missing a required option such as -h or -r.

So, I am at an impasse. I need to have my OS X server perform a soft shutdown AND power back up after power has been restored. Right now, it seems I can have either or, and that is not a very enticing resolution....

Any suggestions are most welcome. THanks!Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help unable to shutdown- RPC problems

I seem to have consistent problems shuting down whichever init state I use basically I get the following errors messages followed by a return to the prompt # shutdown -i6 -g0 -y Shutdown started. Tue Oct 1 09:47:03 BST 2002 Broadcast Message from root (pts/1) on hermione Tue Oct 1... (3 Replies)
Discussion started by: MBGPS
3 Replies

2. UNIX for Dummies Questions & Answers

Help unable to shutdown- RPC problems

Help unable to shutdown- RPC problems I seem to have consistent problems shuting down whichever init state I use basically I get the following errors messages followed by a return to the prompt # shutdown -i6 -g0 -y Shutdown started. Tue Oct 1 09:47:03 BST 2002 Broadcast Message from... (1 Reply)
Discussion started by: vviscomi
1 Replies

3. Solaris

shutdown question from command line

solaris 10 logged in as root to command line...want to shut the system down....could not do this....when i chose shutdown the system seemed to squawk at me saying i'd lose whatever i was working on would be lost unless i logged out...after proceeding through this it took me to the gui log in... (6 Replies)
Discussion started by: drisnya
6 Replies

4. AIX

shutdown command

Hi, After issuing shutdown -F or shutdown -F now my server is getting restarted. Any Idea? (3 Replies)
Discussion started by: manoj.solaris
3 Replies

5. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

6. AIX

Shutdown command

Hi, is there a difference between shutdown -Fand shutdown -h now? (3 Replies)
Discussion started by: x_adm
3 Replies

7. Red Hat

cronjob Command for Shutdown

Hi Guys Pls give me cronjob command for Network pcs to be shutDown on 06:05 PM is it possible to do in cronjob ? :wall: (7 Replies)
Discussion started by: babinlonston
7 Replies

8. Shell Programming and Scripting

Exit script when shutdown or reboot command is given

This is probably a simple question, but I'm new with writing scripts for Linux (IPFire in this case) and Google wasn't helpful with this. When creating a script, what is the best and/or proper way to have it exit automatically if the reboot or shutdown command is given? If that's even... (2 Replies)
Discussion started by: bartgrefte
2 Replies

9. UNIX for Beginners Questions & Answers

Linux SuSE SLES 8 error..unable to issue shutdown command

the only way we can power off is if we actually press power button on server. Running on HP DL-G4. from root, when we issue command it just returns to root prompt. (1 Reply)
Discussion started by: amexboy
1 Replies

10. Shell Programming and Scripting

Issue with shutdown command in script (MacOS High Sierra)

Hello, I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run shutdown after the backup has completed. Since backup can take hours to run, this is an option that is... (10 Replies)
Discussion started by: LMHmedchem
10 Replies
APCSMART(8)						      Network UPS Tools (NUT)						       APCSMART(8)

NAME
apcsmart - Driver for American Power Conversion Smart Protocol UPS equipment NOTE
This man page only documents the hardware-specific features of the apcsmart driver. For information about the core driver, see nutups- drv(8). SUPPORTED HARDWARE
apcsmart should recognize all APC models that use a serial protocol at 2400 bps. This is primarily the Smart-UPS and Matrix-UPS lines, but some Back-UPS Pro models are also supported. Some older hardware may only report a handful of variables. This is usually not a bug - they just don't support anything else. CABLING
This driver expects to see a 940-0024C cable or a clone by default. You can switch to the 940-0095B dual-mode cable support with the cable= definition described below. If your 940-0024C cable is broken or missing, use this diagram to build a clone: http://www.exploits.org/nut/library/cables/940-0024C.jpg EXTRA ARGUMENTS
This driver supports the following optional settings in the ups.conf(5): cable=940-0095B Configure the serial port for the APC 940-0095B dual-mode cable. sdtype=num Use shutdown type num, according to this table: 0: soft shutdown or powerdown, depending on battery status 1: soft shutdown followed by powerdown 2: instant power off 3: power off with grace period Modes 0 and 1 will power up the load when power returns. Modes 2 and 3 will keep the load turned off when the power returns. BUGS
Some older APC UPS models return bogus data in the status register during a front panel test. This is usually detected and discarded, but some other unexpected values have occasionally slipped through. AUTHOR
Russell Kroll SEE ALSO
The core driver: nutupsdrv(8) Internet resources: The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/ NUT mailing list archives and information: http://lists.exploits.org/ Tue Oct 22 2002 APCSMART(8)
All times are GMT -4. The time now is 04:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy