Oslevel of AIX system

(imported topic written by Darknight)

Hi,

Can someone please let me know the rlevance required to retrive below oslevel output via relevance:

$ oslevel

7.1.0.0

Please note that i am looking for relevance to extract the oslevel not the technology relevance.

Thanks in advance.

(imported comment written by xdaxdb)

I’m not an expert at this by any means but I was looking into this exact thing not long ago. There does not seem to be an inspector that can detect this automatically.

I think you would have to write an action that would execute the command “oslevel -r” and then report that information back… somehow. If you figure it out please post back because I’m curious myself. I’m still working on rolling out IEM, totally new to this, but we have a lot of AIX where I am.

(imported comment written by Darknight)

ok xdaxdb…Even i have not found any inspector to find out teh relevance to get the oslevel of AIX maxchine but have not found any…

Fro the command oslevel -r it seems you are tyrying to get the technolgy level of AIX serer , if this is the case then you can use the below relevance to get the result:

if

(version

of

client

<

“8.2”
)

then

(
if

(
exists

((line

1

of

file ((pathname

of

(parent folder

of

client folder

of

current site))

&

“/__OSLevel/oslevel.txt”
)

as

string)

whose

(
exists

match (regex

“^[0-9]}-[0-9]{2{4}$”
)

of

it
)))

then

parenthesized part

1

of

match (regex

“^[0-9]{4}-([0-9]{2})$”
)

of

(line

1

of

file ((pathname

of

(parent folder

of

client folder

of

current site))

&

“/__OSLevel/oslevel.txt”
)

as

string)

else

“N/A”
)

else

(parenthesized part

1

of

match (regex

“^[0-9]{4}-([0-9]{2})$”
)

of

(current technology level

of

operating system

as
string))

(imported comment written by xdaxdb)

where does the file oslevel.txt come from?

(imported comment written by xdaxdb)

Why not just use

current service pack of operating system

What is the point of all that other stuff? ( I just learned about that inspector from
"
https://support.bigfix.com/inspectors/System Objects_AIX.html
)

(imported comment written by Darknight)

i have tried this before but this relevance will return :

7100-02-02-1316

which is not the requirement. I am trying to get teh below output via relevance :

7.1.0.0

which is basically output of AIX command : oslevel.

Can someone help in retriving this value via relevance.?

(imported comment written by xdaxdb)

release of operating system

will output:

7.1

6.1

5.3

etc

(imported comment written by jgstew)

what does (version of operating system) give you? … I don’t know AIX.

(imported comment written by gearoid)

Check the operating system inspectors
http://support.bigfix.com/inspectors/System%20Objects_Any.html#operating%20system

I think ones you want for AIX Platform are current technology level, and current service pack ?

More on what these all mean here
https://www.ibm.com/developerworks/community/blogs/AIXDownUnder/entry/understanding_aix_levels6?lang=en

http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds4/oslevel.htm?lang=en

Running oslevel without flags is giving you a formatted version of the base level, which is the first 4 digits of the oslevel -r.

current technology level of operating system is same as oslevel -r.

current service pack of operating system is same as oslevel -s

On my AIX:

oslevel -r

7100-00

oslevel -s

7100-00-03-1115

In qna

Q: current technology level of operating system

A: 7100-00

Q: current service pack of operating system

A: 7100-00-03-1115