cancel
Showing results for 
Search instead for 
Did you mean: 

OS Version

OS Version

Hi All,

Can anybody help me to find out the name configuration file in which HP-UNIX OS Version information stores?
11 REPLIES
Torsten.
Acclaimed Contributor

Re: OS Version

???

Why?


Try "uname -a" to get it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: OS Version

I know the command.

Is there any configuration file in OS information will store?
Torsten.
Acclaimed Contributor

Re: OS Version

May I ask what you want to do?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: OS Version

Configuration files are generally used to alter the behaviour of a feature and are thus modifiable. What good would it do to store version information in a modifiable file?

The only file I can think of is /stand/vmunix. I'm guessing that's what uname queries.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: OS Version

Shalom,

There is no HP-UX equivalent to /etc/redhat-release.

uname -a is the best you are going to do.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: OS Version

>Can anybody help me to find out the name configuration file in which HP-UX OS version information stored?

This is hard coded in the kernel. While you can change the name of the OS, you can't change the version.

>Pete: The only file I can think of is /stand/vmunix. I'm guessing that's what uname queries.

Yes, it makes a system call.
James R. Ferguson
Acclaimed Contributor

Re: OS Version

Hi:

You can probe with 'getconf', as for example:

# getconf LIBC_VERSION
1131000022

...where the first 2-digits are the major release number and the next 2-digits are the minor release number; here: "11.31".

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: OS Version

I assume you don't want to get the version, but somehow to modify something, right?

I'm sure whatever you want to do it will not work this way.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
S-M-S
Valued Contributor

Re: OS Version

/sbin/init.d/hostname


NOTE: This script is not configurable! Any changes made to this
scipt will be overwritten when you upgrade to the next
release of HP-UX.
SoorajCleris
Honored Contributor

Re: OS Version

May I ask What you want to modify in that ???

:)

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Taifur
Respected Contributor

Re: OS Version

Hi,

U can check HP-UX version

#uname -ar

or take nickel , where u can find al information,

#cd /opt/contrib/bin
#./nickel

Cheers/
taifur