Operating System - HP-UX
1748014 Members
4189 Online
108757 Solutions
New Discussion юеВ

Re: uadmin equivalent on hp-ux on command line

 
Tarun Jain_1
Advisor

uadmin equivalent on hp-ux on command line

Hi All,

Do we have uadmin(Solaris) equivalent command on HP-UX ? The command uadmin basically, can panic the system when called with command=5/A_DUMP. I am looking for the specific solution on HP-UX, where I need to panic the box from my script so that it can't sync up the file-system and capture the system dump.

Regards,
TArun
6 REPLIES 6
Torsten.
Acclaimed Contributor

Re: uadmin equivalent on hp-ux on command line

Maybe a TOC is what you are looking for (transfer of control).
Connect to GSP/MP/iLO and do a TOC.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Emil Velez
Honored Contributor

Re: uadmin equivalent on hp-ux on command line

do a


man reboot and pass it the RB_HALT parameter

Deeos
Regular Advisor

Re: uadmin equivalent on hp-ux on command line

hi,



Your are actually asking TOC.


For example.....

more /etc/rc.config.d/cmcluster
#*************************** CMCLUSTER *************************

# Highly Available Cluster configuration
#
# @(#) $Revision: 82.2 $
#
#
# AUTOSTART_CMCLD
#
# Automatic startup is the process in which each node individually
# joins a cluster. If a cluster already exists, the node attempts
# to join it; if no cluster is running, the node attempts to form
# a cluster consisting of all configured nodes. Automatic cluster
# start is the preferred way to start a cluster. No action is
# required by the system administrator. If set to 1, the node will
# attempt to join/form its CM cluster automatically as described
# above. If set to 0, the node will not attempt to join its CM
# cluster.

AUTOSTART_CMCLD=1

#
# NODE_TOC_BEHAVIOR
#
# This is to be used with the node safety timer (linux only).
# If set to "reboot", the node will automatically reboot when its safety
# time expires. If set to "panic", the node will panic instead.

NODE_TOC_BEHAVIOR="reboot"


or unplanned shutdown system creates a crash dump to tell about the reason behind shutdown/reboot.



Regards
Deeos
Deepak
Tarun Jain_1
Advisor

Re: uadmin equivalent on hp-ux on command line

I guess, with reboot we can not force system dump. I don't have access to console of the system in the script and I would like a system dump with a specific panic string.
Anshumali
Esteemed Contributor

Re: uadmin equivalent on hp-ux on command line

Tarun,

the ideal way is to initiate a TOC (Transfer of control) on the MP/GSP but there are other ways which you can explore. Remember, all the forced panic's, no matter how they were achived can corrupt your data and unstablize your system.
Here is a thread with some possible scenarios which you can explore if you need to:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=961574

Again, TOC from MP is least intrusive of them all.....

Cheers!
Anshu

Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!

Re: uadmin equivalent on hp-ux on command line

See my post here:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1179563

Only the kernel can initiate a panic with dump - even Serviceguard doesn't actually do this itself (it just stops the kernel from doing it every 30 seconds). The TC command from the MP is your only viable option... if you wanted to script that you'd be looking at using "expect" to talk to the MP. Of course you can panic a HPVM from the VM host (and I seem to recall a vPar from another vPar in the same nPar)

HTH

Duncan

I am an HPE Employee
Accept or Kudo