Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
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.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Operating System Version Information

SOLVED
Go to solution
Alice Daniel
Frequent Advisor

Operating System Version Information

What is the command for getting the current operating system information?
7 REPLIES
Greg Yates
Valued Contributor

Re: Operating System Version Information

Use "sizer -v" as root. You may (probably) also need to check your patch level. For that, use a command like "dupatch -track -type patch_level". That last command gives you both the OS version and patch level.

Greg
Alice Daniel
Frequent Advisor

Re: Operating System Version Information

Is there a sizer function that I can call from a program? I have a function that needs to know the OS Version in order to do some specific asynchronous calls. I have several productions systems, most have os version 4.0f but some will have os version 5.1b.
Greg Yates
Valued Contributor
Solution

Re: Operating System Version Information

Alice,

See 'man getsysinfo', in particular the section with GSI_VERSIONSTRING.

Thanks,
Greg
Ivan Ferreira
Honored Contributor

Re: Operating System Version Information

You can use getsysinfo.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Allen Brand
Occasional Advisor

Re: Operating System Version Information

Or, you can use uname to get it:

[code]
# uname -a
[/code]

Alice Daniel
Frequent Advisor

Re: Operating System Version Information

Thanks, the uname -r cmd did the trick.
Greg Yates
Valued Contributor

Re: Operating System Version Information

Be careful, uname doesn't return everything (in this case, 'B'). For example:

# sizer -v
Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri Sep 15 14:33:51 EDT 2006
# uname -a
OSF1 V5.1 2650 alpha
# sizer -v
Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri Sep 15 14:33:51 EDT 2006
# uname -r
V5.1
# uname -a
OSF1 V5.1 2650 alpha

All of these are the same system.

Greg