Hi Gang, I have made a fixlet which will run uptime command on unix servers (AIX, HP-UX, Red-Hat and Suse) which will awk the output to bring only the number of uptime days to a file /var/opt/numberofdays. I am pulling the number of days via analysis using the following relevance:-1:
if (name of operating system contains âHP-UXâ) then (lines of files â/var/opt/numberofdaysâ) else âNot Foundâ
It brings the required data for HP-UX and AIX but it is not working for Suse and RedHat, have tried multiple ways like below:-1:
if (name of operating system contains âredhatâ) then (lines of files â/var/opt/numberofdaysâ) else "Not Found"
if (name of operating system contains âRHELâ) then (lines of files â/var/opt/numberofdaysâ) else "Not Found"
if (name of operating system contains âredâ) then (lines of files â/var/opt/numberofdaysâ) else âNot Foundâ
lines of files â/var/opt/numberofdaysâ else âNot Foundâ
and not the least
lines of files "/var/opt/numberofdays"
but still the analysis output shows âNot Foundâ. I also changed the path of script to produce the file in /tmp/numberofdays, I can see the file shows the output with number of days but donât why analysis not reading it. Please suggest.