1748338 Members
5201 Online
108762 Solutions
New Discussion юеВ

OS Version

 
ITRC forums_2
Advisor

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 11
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!   
ITRC forums_2
Advisor

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.