Operating System - HP-UX
1826314 Members
3705 Online
109692 Solutions
New Discussion

Re: Core file management with HP-UX on Itanium (points!)

 
SOLVED
Go to solution
Christian Deutsch_1
Esteemed Contributor

Core file management with HP-UX on Itanium (points!)

Hi folks,

This thread has been closed: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=898593&admit=109447626+1208434092190+28353475

The command works for HP-UX 11.11 but on HP-UX 11.23 on Itanium I get:

echo " core_addpid/W1" | adb -w /stand/vmunix /dev/kmem

core_addpid:
adb: warning: Unrecognized format character - 'W'.

Does this matter? If so, what command must I use on HP-UX 11.23 on Itanium?

Truly helpful answers will be generously rewarded with points!

Thanks, Christian
Yeshua loves you!
14 REPLIES 14
Dennis Handly
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

You just need to add "-o":
echo "core_addpid/W1" | adb -o -w /stand/vmunix /dev/kmem

And on 11.31, just use coreadm(1M).
James R. Ferguson
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

Hi Christian:

First, that should be a lowercase 'w' not an uppercase one.

In 11.23 you have 'coreadm' to manage core files:

http://docs.hp.com/en/B2355-60130/coreadm.1M.html

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

For more info about core files you might want to look at the wdb documentation:
http://www.hp.com/go/wdb
http://h21007.www2.hp.com/portal/download/files/unprot/devresource/Tools/wdb/doc/Corefiles.pdf
Torsten.
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

coreadm is only available in 11.31, isn't it?

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!   
Jeeshan
Honored Contributor
Solution

Re: Core file management with HP-UX on Itanium (points!)

Hi Christian

use "w" and after a space then 1

# echo "core_addpid/w 1" | adb -o -w /stand/vmunix /dev/kmem
a warrior never quits
Christian Deutsch_1
Esteemed Contributor

Re: Core file management with HP-UX on Itanium (points!)

Hi folks,

Ahsan's command worked, James' command did not.

I have no indication so far that coreadm is available on HP-UX 11.23. If someone thinks it is, please tell me where to find it?

Thanks for all your responses, Christian
Yeshua loves you!
Dennis Handly
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

>I have no indication so far that coreadm is available on HP-UX 11.23.

You should have given my reply precedence. :-)
If you looked at JRF's man page entry, it clearly says 11.31.

I'm pretty sure it is "W" and not "w", I'll check the source later.
melvyn burnard
Honored Contributor

Re: Core file management with HP-UX on Itanium (points!)

coreadm is for HP-UX 11iv3 only.
I am unaware of any current plans to backport it to 11.23 at the moment
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

Hi (again):

My apologies, I meant to say that in *11.31* you have 'coreadm'. I erroneously muddied the water when I said 11.23 when I meant 11.31. Dennis caught that. I guess He's used to me :-)

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

>JRF: Dennis caught that. I guess he's used to me :-)

I did but I was going to let it slide since the man page said 11.31.

>ME: I'm pretty sure it is "W" and not "w", I'll check the source later.

Yes, the proper adb format is "W" and not "w". It is a 4 byte int.
Christian Deutsch_1
Esteemed Contributor

Re: Core file management with HP-UX on Itanium (points!)

Dear Dennis,

Thanks for the link for wdb that can be very helpful!

As a matter of fact, both of these commands work:

echo "core_addpid/w 1" | adb -o -w /stand/vmunix /dev/kmem
echo "core_addpid/W 1" | adb -o -w /stand/vmunix /dev/kmem

This one does not work:

echo "core_addpid/W1" | adb -o -w /stand/vmunix /dev/kmem

Any comments?

Christian
Yeshua loves you!
Dennis Handly
Acclaimed Contributor

Re: Core file management with HP-UX on Itanium (points!)

>As a matter of fact, both of these commands work:
echo "core_addpid/w 1" | adb -o -w

As I mentioned, don't even think of using "/w", it doesn't clear all 32 bits.

>This one does not work: echo "core_addpid/W1"

Naturally, it needs a space between the format and the value. (I was only looking at the adb option side and I assumed that the original thread had the LHS correct.)
Christian Deutsch_1
Esteemed Contributor

Re: Core file management with HP-UX on Itanium (points!)

ok then to make things a little bit cleaner I will use these:

for HP-UX 11.11:

echo "core_addpid/W 1" | adb -w /stand/vmunix /dev/kmem

for HP-UX 11.23:

echo "core_addpid/W 1" | adb -o -w /stand/vmunix /dev/kmem

Thanks for all your help, Christian
Yeshua loves you!
Christian Deutsch_1
Esteemed Contributor

Re: Core file management with HP-UX on Itanium (points!)

Thanks again I have answers to all my questions on this topic, Christian
Yeshua loves you!