LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Fetching the distribution release information on AIX machine (https://www.linuxquestions.org/questions/aix-43/fetching-the-distribution-release-information-on-aix-machine-444021/)

afrose_fathima 05-12-2006 02:01 AM

Fetching the distribution release information on AIX machine
 
Hi,
I need a way to get the distribution release information on AIX machine.We have a file /etc/fedora-release for fedora and /etc/redhat-realease for RedHat.Please can anyone help me out with a solution.

afrose_fathima 05-12-2006 06:47 AM

Thanks to all those people who have spend their time reading this query and sorting out a solution for this.I have found the answer for this.The command oslevel -r give the distribution release information on AIX machine

shadow5277 05-15-2006 02:27 AM

Quote:

Originally Posted by afrose_fathima
Thanks to all those people who have spend their time reading this query and sorting out a solution for this.I have found the answer for this.The command oslevel -r give the distribution release information on AIX machine


Hello Afrose_fathima,

The best commandto use for that is instfix -i | grep ML this will tell you if you have a complete istall of a certian maintence level.

Michael AM 05-16-2006 04:17 AM

And if you take the output of the above command and use:

instfix -ciqk <LEVEL_STRING> | grep :-:

you will get a list of filessets still below that release level

instfix -ciqk <LEVEL_STRING> | grep :+:

you will get a list of filessets above a release level

oslevel -r doesnt report on files that are 'above' level.

The convention for the the oslevel -r output, and the keyword for instfix is:

$ oslevel -r
5200-07

instfix -ciqk 5200-07_AIX_ML | grep :+:
5200-07_AIX_ML:bos.rte.lvm:5.2.0.75:5.2.0.76:+:AIX 5200-07 Update
5200-07_AIX_ML:devices.pci.ad100501.rte:5.2.0.75:5.2.0.76:+:AIX 5200-07 Update

btw. to see the filessets in a level use:
instfix -ciqk 5200-07_AIX_ML

(you might want to add a awk script to print the second argument)


All times are GMT -5. The time now is 01:39 PM.