1846988 Members
3419 Online
110257 Solutions
New Discussion

interresting question

 
SOLVED
Go to solution
Donny Jekels
Respected Contributor

interresting question

does anyone know how to check which kernel /stand/vmuni* was loaded at boot time. after the system is up and running?
"Vision, is the art of seeing the invisible"
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: interresting question

Donny,

I recall seeing this same question a while back, but with the search engine being stubborn today, there doesn't seem to be anyway to find it.

I suppose you might be able to check the contents of /stand/system against kmtune output (assuming the last kernel change was a configurable parameter modification). A "what /stand/vmunix" might lead you to discern what the latest kernel patch was (with some effort).

Other than that, I don't know of any easy way.


Pete

Pete
Donny Jekels
Respected Contributor

Re: interresting question

Pete,

Thinking about the load process, ISL mounts the /stand filesystem in read only mode, and thus the inodes does not even gets modified for access time at that time.

and therefore you cannot run

find . -atime on the /stand fs
"Vision, is the art of seeing the invisible"
Patrick Wallek
Honored Contributor
Solution

Re: interresting question

From TKB document KBRC00001823:

# echo 'boot_string/S' | adb /stand/vmunix /dev/mem

It appears to work on 11.0 and 11.11.
A. Clay Stephenson
Acclaimed Contributor

Re: interresting question

This is tricky because adb needs a matching executable (/stand/vmunix) to properly read /dev/mem BUT if this command works then that is the kernel you booted from:

echo "boot_string/S" | adb /stand/vmunix /dev/mem

You can keep trying various kernel files until adb returns meaningful data.
If it ain't broke, I can fix that.
Donny Jekels
Respected Contributor

Re: interresting question

Patrick,

where can I get these knowledge base info?

thanks
Donny
"Vision, is the art of seeing the invisible"
Geoff Wild
Honored Contributor

Re: interresting question

echo "boot_string/s" | adb -k /stand/vmunix /dev/kmem

will tell - even if /stand/vmunix.prev

IE:

boot_string: disk(0/0/0/3/0.6.0.0.0.0.0;0)/stand/vmunix

or

boot_string: disk(0/0/0/3/0.6.0.0.0.0.0;0)/stand/vmunix.prev

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
curt larson_1
Honored Contributor

Re: interresting question

here is a thread where i asked this question before. There are a lot of possible solutions for you to choose from.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=54652
curt larson_1
Honored Contributor

Re: interresting question

Patrick Wallek
Honored Contributor

Re: interresting question

Donny,

Go to http://itrc.hp.com

Click the "Technical Knowledge Base" link in the left column.

When the page comes up, just put your search string in the field. To find this I searched on "which kernel booted" and the first document in the list of a bunch that were returned was the doc id I gave you. If you want to search by doc id, use the pull down menu and select "search by docid" and then put the Doc ID in the field.

The direct link to the document I gave you is:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065450534

According to this document the command should work regardless of vmunix or vmunix.prev being the booted kernel.
Donny Jekels
Respected Contributor

Re: interresting question

thanks all!
"Vision, is the art of seeing the invisible"
Sridhar Bhaskarla
Honored Contributor

Re: interresting question

Hi Donny,

My 2 cents.

You can use the same adb to find out if the kernel that you used does in fact matches the /dev/mem.

Any adb command should give you an error (and probably a false value) if you are not booted from /stand/vmunix. For ex.,

echo 'nfile/D' | adb -k /stand/vmunix /dev/mem

Should complain about version mismatch between the kernel and the core and probably give you a wrong value if the system was not booted from vmunix.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try