- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- adb to add kernel parameter.....
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 04:17 AM
05-25-2005 04:17 AM
I posted this a few days ago :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=878600
and got a suggestion to use adb to to add a kernel parameter called core_addpid.......
Any ideas?
"Because the command
echo "core_addpid/d" | adb /stand/vmunix /dev/kmem
works, this suggests that you could use adb to alter /dev/kmem on the fly to set core_addpid to 1."
Please how do I use adb to alter /dev/kmem on the fly to set core_addpid to 1? Not much experience with adb.....
Thanks
Vic
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 04:24 AM
05-25-2005 04:24 AM
Re: adb to add kernel parameter.....
kmtune -s core_addpid=1
Then process your kernel and move it to production.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 04:30 AM
05-25-2005 04:30 AM
SolutionKeep in mind that "on the fly" adb changes to memory can also crash your system.
Take a look at "man adb" ...
I suspect you are looking for something like:
adb -w /stand/vmunix /dev/kmem
adb>core_addpid/W1
adb>cntl-D
Note that the above only changes it in kernel memory.
To change it on your actual kernel permanently, you would do:
adb>core_addpid?W1
BUT if you do this, you may make your kernel unbootable. Ensure you have a backup copy of the kernel that will boot prior to doing this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 05:21 AM
05-25-2005 05:21 AM
Re: adb to add kernel parameter.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 07:04 AM
05-25-2005 07:04 AM
Re: adb to add kernel parameter.....
echo " core_addpid/W1" | adb -w /stand/vmunix /dev/kmem
This will ONLY change the memory image of the running kernel and leave the object file, /stand/vmunix, untouched. It's a safe command and this is a common practice for changing kernel values that otherwise can't be modified. You could also force the write to the object file but I prefer to simply change the image in /dev/kmem and if you want this to be a permanent change rather than writing the object file, I prefer to setup a startup script in /sbin/init.d.
Setting core_addpid (which already exists in your kernel) to 1 will have exactly the effect you are looking for. A core.nnnnn file will be produced in the CWD rather than simply 'core'.