Operating System - HP-UX
1832609 Members
2371 Online
110043 Solutions
New Discussion

How to determine a verion of a kernel driver

 
Tony Williams
Regular Advisor

How to determine a verion of a kernel driver

How can I dtermine what version of the stape driver is loaded in the kernel?

Thanks
6 REPLIES 6
Sundar_7
Honored Contributor

Re: How to determine a verion of a kernel driver

Somebody who better understands the kernel internals can correct me if I am wrong

This is what I figured.

Most of the kernel drivers object files are "archived" in to one archive file called libhp-ux.a.

This file is located in /usr/lib/conf/ directory and ar command can be used to manipulate this file.

# ar -t /usr/lib/conf/libhp-ux.a

this will list all the files in there

# ar -x /usr/lib/conf/libhp-ux.a scsi_tape.o

# what scsi_tape.o

This will tell you the version of stape.

Again, this is the understanding I developed by digging in the system. Possible that I am wrong :-)
Learn What to do ,How to do and more importantly When to do ?
Dave Olker
Neighborhood Moderator

Re: How to determine a verion of a kernel driver

Hi Tony,

If you're running 11i v2, there is a new command called "kcmodule" that may tell you what you want a little easier. This command displays information about kernel modules, of which stape is one. On my 11.23 system (i.e. 11i v2), I get:

# kcmodule -v stape
Module stape [3F56E2F0]
Description SCSI Tape Driver
State unused
State at Next Boot unused
Capable static unused
Depends On module sctl:0.0.0
interface HPUX_11_23:1.0

Don't know if this is what you're looking for, but thought I'd mention it for those people unfamiliar with kcmodules.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Tony Williams
Regular Advisor

Re: How to determine a verion of a kernel driver

Wow, thanks for the info it was very good. You probably meant the directory is /usr/conf/lib. We are using 11.23 so when I looked into the file using your commands there was no stape in it.

/usr/conf/lib>ar -t /usr/conf/lib/libhp-ux.a
softintr.o
param.o
libhp_ux.modmeta.o
netfunc.o
strtio_tunables_default.o
lv_default.o
lv_config.o
nfs_iface.o
domainname.o
libhp-ux_vers.o
Sundar_7
Honored Contributor

Re: How to determine a verion of a kernel driver

I dont believe there is no direct relation between the object files and the driver name.

I believe scsi_tape.o is the object file for the stape driver.

Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: How to determine a verion of a kernel driver

Yes, sorry I intended to mention directory /usr/conf/lib, not /usr/lib/conf
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: How to determine a verion of a kernel driver

I figured you dont even have to extract the .o file using ar to find out the version

# what /usr/conf/lib/libhp-ux.a | grep tape

Look for scsi_tape.o
Learn What to do ,How to do and more importantly When to do ?