1833728 Members
2608 Online
110063 Solutions
New Discussion

Re: UPS shutdown

 
David Gwin
Occasional Advisor

UPS shutdown

It has been a while since I've had to use HPUX and my system is no longer connected to a UPS. However, the UPS software is shutting down my system before I can find and kill the process that shuts-down the system. My question... How can I disable the process buring startup and how can I remove it from the startup process?

One last Q, ioscan tells me that there is memory but how can I tell how much memory there is installed on the system?

Thank you for you time and information.
David
6 REPLIES 6
Sundar_7
Honored Contributor

Re: UPS shutdown

Hi David,

You might like to comment /usr/lbin/ups_mond in the /etc/inittab.

To find out the memory in the system

if u r running 10.20 then

# echo "physmem/D" | adb -k /stand/vmunix /dev/kmem

if u r running 11.x

# echo "phys_mem_pages/D" | adb -k /stand/vmunix /dev/kmem

the resulting number is in pages - multiply by 4 to get the total memory in kbytes.

-- Sundar
Learn What to do ,How to do and more importantly When to do ?
A. Clay Stephenson
Acclaimed Contributor

Re: UPS shutdown

Find the line in /etc/inittab with "ups_mond" in it and change "respawn" to "off". Next, issue an init q to force a reread of inittab.

Assuming this is an 11.x box:
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem

This will yield the number of 4k pages. Multiply by 4096 to get bytes of physical memory.

Both of these tasks can only be done as root.
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: UPS shutdown

It would appear that your UPS might not be adequate any more for your system. You should get it checked because the batteries may be weak.

There should be plenty of time for your system to shut down properly, especially after taking the recommendations above.

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
David Gwin
Occasional Advisor

Re: UPS shutdown

Thank you for the info and so fast!!! I have managed to kill the shutdown process but I still can not seem to find the culprit. I just checked and I don't have "ups_mount" (or any form of that) in my /etc/inittab file. I did find a file "/etc/powerfail" with the attrib of "lrwxrwxrwt"; I know all of the attribs but I have not heard of "t". I did a grep for powerfail in the /etc directory and found it in "init". The ups for this system is gone and no longer available.

I am running HPUX 10.20
Thanks again for the information
David
Robert Binkhorst
Trusted Contributor

Re: UPS shutdown

Hi,

Make sure to also check crontab for any "scheduled reboots".

HTH,

Robert
linux: the choice of a GNU generation
Ulrich Deiters
Frequent Advisor

Re: UPS shutdown

You should also look into /sbin/init.d for startup scripts. Some UPS software runs a special daemon, e.g., ls3 for LanSafe. Some of the UPS communicate via SMNP; so you may want to check the SMNP settings or disable that service.