Operating System - HP-UX
1819504 Members
3208 Online
109603 Solutions
New Discussion юеВ

What command does one use to find OS version and year? Can an OS be restored using the Support cd?

 
Jeffrey Shannon
Contributor

What command does one use to find OS version and year? Can an OS be restored using the Support cd?

What command does one use to find OS version and year? Can an OS be restored using the Support cd?
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

"uname -r" for the release.

"what /stand/vmunix | more" will tell you what modules you have in your kernel.

ls -l /stand/vmunix will tell you when it was last gen'ed.


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

Also, do not restore your OS from a support CD. Get the latest patch bundle for your OS. If you attempt to "rebuild" your OS from your support CD, you will lose everything in your vg00!! If you want to rebuild the entore machine, you can build using your "old" support cd, but make sure you apply the latest patch bundle. Also, if you have anything other than vg00, like a vg01 or a vg02..., then you need to "export" these volumes, and then import them later - providing you want to keep them.


live free or die
harry
Live Free or Die
Carsten Krege
Honored Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

To display the OS revision use

# uname -rs

To obtain a better specification of installed products and software along with their revisions, you need to check out

# swlist -l bundle
# swlist -l product

If you want to know the installation history of your machine, you should refer to the /var/adm/sw/swagent.log file.

With the Support CD you can fix an unbootable system, however, you can't restore the OS with it. You need to have a backup of your system.

Carsten




-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
James R. Ferguson
Acclaimed Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

Hi Jeffrey:

# uname -a

...will return lot's of useful information.

As for restoring an OS, you always want to have an Ignite "recovery" tape of any viable server.

After all, the Core OS CDROM doesn't bring you back to the patch levels you're probably running, and certainly doesn't have the applications loaded from the Applications CDROMs.

For Ignite documentation and current software, see:

http://www.software.hp.com/products/IUX/index.html

For a release history, see:

http://www.software.hp.com/HPUX-RDMP/history/slide2.html

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

Hi (again) Jeffrey:

Another thought. If you want a quick idea of the patch level of a server, do:

# swlist | grep -i patches

You will see something like this returned:

XSWGR1100 B.11.00.53.2 HP-UX General Release Patches, June 2001

Regards!

...JRF...
harry d brown jr
Honored Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

swlist is only valid when you absolutely know that none of the SD (software distributor) files have been removed. In this case, not knowing what OS level a machine is at indicates that the integrity of the SD files is in question, and therefore swlist is not a viable option. Using "what /stand/vmunix" is a reliable option that will truely indicate what is in the kernel.

Again, I'd suggest installing the latest patch bundle, unless you wish to "rebuild" the machine from scratch.



live free or die
harry
Live Free or Die
Frank Slootweg
Honored Contributor

Re: What command does one use to find OS version and year? Can an OS be restored using the Support cd?

Can you please explain what you mean by the "and year" part? I.e. which year of what? The original date of the OS? The date of the latest patch? Other?