Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

kernel

Indrajit Bhagat
Regular Advisor

kernel

Hi All,

In server there are three for vmunix file in /stand file system.

How can we check which current kernel the server is using it.
11 REPLIES
Avinash20
Honored Contributor

Re: kernel

To tell from which kernel booting was performed, do the following:
Using adb(1) :

o echo boot_string/S | adb /stand/vmunix /dev/kmem
Using dmesg(1M) :
If dmesg(1M) works, booting was performed from /stand/vmunix .
If dmesg(1M) does not work, run it against each kernel in /stand , until dmesg works.
When dmesg works, the kernel from which booting was performed is found. For example:

# dmesg

May 17 08:16
Magic number wrong (namelist mismatch?)
The previously mentioned example is the equivalent of:

# dmesg /dev/kmem /stand/vmunix

May 17 08:19
Magic number wrong (namelist mismatch?)
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
rariasn
Honored Contributor

Re: kernel

He,

GSP> CL

Sample output:

ISL booting hpux -lqtest STATUS: 0
CALLER SUBACTIVITY: 1F = implementation dependent
BootRTING ENTITY TYPE: 0 = system firmware REPORTING ENTITY ID: 00
: disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix
10317824 + 10788864 + 421038032 start 0x201068 Data Field Unused
0x58000800800011F0 00006D01 0E100914 type 11 = Timestamp 02/14/2009 16:09:20
Type CR for next entry, - CR for previous entry, Q CR to quit.

rgs,

rariasn
Avinash20
Honored Contributor

Re: kernel

"I have assigned points to 219 of 651 responses to my questions. "

Please assign points to your thread
http://forums11.itrc.hp.com/service/forums/helptips.do?#33

This is a way of saying thanks to the right answers
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: kernel

For 11.23 and 11.31:
It is much easier.
The following is a list of directories and their meanings that now exist with B.11.23:

Currently running kernel: /stand/current/
Copy of the current config prior to changes: /stand/backup/
Kernel config originally installed with OS /stand/last_install/
Link to the config to be used at the next boot: /stand/nextboot/
Automatically created after any crash dump: /stand/crashconfig/
There are also two special files in /stand:
/stand/vmunix is a hard link to /stand/current/vmunix
/stand/system is a soft link to /stand/nextboot/system
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Indrajit Bhagat
Regular Advisor

Re: kernel

Thanks for replying to all of you,
But still i am not able to get it,

I am not able to decide from which current kernel the server is running.

# cd /stand
# ls -lrt
total 227712
-r-xr-xr-x 1 bin bin 58204072 Jan 25 2006 vpmon
drwxr-xr-x 2 root root 65536 Aug 1 2006 lost+found
dr-xr-xr-x 3 bin bin 1024 Aug 1 2006 boot.sys
-r--r--r-- 1 root sys 2434 Aug 1 2006 system.import
-r--r--r-- 1 root sys 82 Aug 1 2006 kernrel
drwxr-xr-x 5 root sys 1024 Aug 1 2006 last_install
-rw-r--r-- 1 root sys 42 Aug 3 2006 bootconf
-rw-r--r-- 1 root sys 3759 Aug 16 2008 system.prev
-rwxr-xr-x 2 root sys 57994304 Aug 16 2008 vmunix
drwxr-xr-x 5 root sys 1024 Aug 16 2008 backup
drwxr-xr-x 5 root sys 1024 Aug 16 2008 current
-rw------- 1 root root 12 Aug 16 2008 rootconf
lrwxr-xr-x 1 root root 15 Aug 16 2008 system -> nextboot/system
lrwxr-xr-x 1 root root 14 Aug 16 2008 bootfs -> current/bootfs
lrwxr-xr-x 1 root root 7 Aug 16 2008 nextboot -> current
drwxr-xr-x 2 root sys 1024 Aug 16 2008 krs
-rw------- 1 root root 16464 Aug 17 2008 vpdb
-rw-r--r-- 1 root sys 24136 Oct 14 19:30 ioconfig
#
Suraj K Sankari
Honored Contributor

Re: kernel

Hi,

You can use the below command to know the result

dmesg | grep boot
or
dmesg | grep -i vmunix

Suraj
whiteknight
Honored Contributor

Re: kernel

Hi,

You can use kconfig with -S parameter.

See the man kconfig

-S
kconfig will display all settings of the currently running configuration that are not at their default value. In other words, it will execute

kcmodule -S

kctune -S

(If any additional kernel configuration data become available in future HP-UX releases, settings of them will be included as well.) Not valid in combination with any other flags.

hope this help.

Whiteknight
Problem never ends, you must know how to fix it
Laurent Menase
Honored Contributor

Re: kernel

find /stand -name vmunix | while read a
do
echo "\n$a"; echo $a|sed -e s/./=/g
echo "linkstamp/s\nlinkstamp?s"| \
adb -o $a /dev/kmem
done >/tmp/res 2>&1

/stand/nextboot/vmunix
======================
linkstamp:
linkstamp:
Thu Sep 11 18:01:06 METDST 2008
linkstamp:
linkstamp:
Thu Sep 11 18:01:06 METDST 2008

/stand/current/vmunix
=====================
linkstamp:
linkstamp:
Thu Sep 11 18:01:06 METDST 2008
linkstamp:
linkstamp:
Thu Sep 11 18:01:06 METDST 2008

/stand/vmunix
=============
linkstamp:
linkstamp:
Thu Sep 11 18:01:06 METDST 2008
linkstamp:
linkstamp:
Thu Sep 11 18:01:06 METDST 2008

/stand/last_install/vmunix
==========================
adb: warning: Object file and memory file versions do not match ...
adb: warning: Symbol lookups may fail.
linkstamp:
linkstamp:
7à ?¡Sà >áëì¢
7à ?¡Sà >áSW^Aà ^W ^RS_^A
linkstamp:
linkstamp:
Fri Sep 10 13:59:09 EDT 2004



When the 2 linkstamp lines are matching, then it is the booted kernel.
Indrajit Bhagat
Regular Advisor

Re: kernel

Hi All,

I got the exact command,

It can be find out using the following command:

#kcpath -x


Thanks for all your support.
Indrajit Bhagat
Regular Advisor

Re: kernel

Thanks to all of you
Suraj K Sankari
Honored Contributor

Re: kernel

Hi,

Next time please assign some points who give there valuable time for your problem.

http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj