Operating System - HP-UX
1847040 Members
3898 Online
110261 Solutions
New Discussion

Re: Kernel build date and version

 
SOLVED
Go to solution
Carsten Cimander_2
Occasional Advisor

Kernel build date and version

Hi all,

I'm interested in howto find out the kernel's
build date and/or version Number.

What for? To find out, which kernel I have bootet
when I have built some with different (static) kernel
parameters.

I do not mean "uname -r" as it displays only
B.11.11 or B.11.00 ...
what /stand/vmunix only shows the releases /versions of the patches installed.

Thanks for your tips.

Regards,
Carsten
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: Kernel build date and version

echo boot_string/S|adb /stand/vmunix /dev/kmem

shows you which device and kernel you booted from.

A simple ls -l /stand/vmunix shows you the date it was built.

As for a version number, you need to keep track of this yourself. If you have several kernels you need to copy them to vmunix. so you can easily identify them. By default only 2 versions are kept;
vmunix (current) and vmunix.prev (previous or version -1).
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jochen Heuer
Respected Contributor

Re: Kernel build date and version

Hi Carsten,

what kind of release version do you expect? HP-UX has no release version like e.g. Linux-2.5.56 or something like this. In HP-UX you have finer control since you know the release of the included patches ...

Regards,

Jochen

PS: Will we see you in the summer playing beach volleyball? Send me an email ...
Well, yeah ... I suppose there's no point in getting greedy, is there?
Jochen Heuer
Respected Contributor

Re: Kernel build date and version

Sorry for not reading the message correctly. I think Stefan's answer hits the nail on the head ...

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Dietmar Konermann
Honored Contributor
Solution

Re: Kernel build date and version

Hi, Ciman-Man! :)

Nice to hear from you!

Concerning your question, you may try this (for 11.x):

echo "linkstamp?s" | adb /stand/vmunix

This at least gives your a timestamp when the kernel was built/linked.

Best regards from Ratingen!

Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Carsten Cimander_2
Occasional Advisor

Re: Kernel build date and version

Hi Dietmar, hi Stefan,

your postings are exactly the answers that I needed:
Dietmar's answer hit 100% the topic of my original question,
whereas Stefans answer saved me posting my next question:
"What was the disk I booted
from?"

Thks a lot!


OT: Hi Jochen,
it would be a pleasure to accomplish the RTG-Team for
the tournament in Summer :-)