AIX CPU Hardware Thread Contexts.xml
Description: Capture the percentage utilization of the Virtualized CPU threads. This will help if user is looking for how many threads a heavy process is using. Confirmed working on AIX 7.1 .
3/18/2014
I have updated the command to account for wrapped lines in the mpstat output.
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
- <properties>
- <entry key="thresholdEnabled">false</entry>
- <entry key="executeFrom">1</entry>
- <entry key="interval">5</entry>
- <entry key="monitorName">AIX CPU Hardware Thread Contexts</entry>
- <entry key="commandLine">sh ${FileName}.sh</entry>
- <entry key="yaxisText">units</entry>
- <entry key="version">2</entry>
- <entry key="scriptBody">main ()
- {
- echo Message: Virtualized CPU thread utilization.\\n
- echo Data:
- Counter="0"
- for i in `mpstat -s 1 1 | awk 'f{print;f=0} /cpu/{f=1}'`; do Counter=$((Counter + 1)); echo \\nInstance$Counter\\t${i%?}; done
- exit 0
- }
- main $*</entry>
- <entry key="timeout">10</entry>
- <entry key="monitorDescription">Capture the percentage utilization of the Virtualized CPU threads. This will help if user is looking for how many threads a heavy process is using. Confirmed working on AIX 7.1 .</entry>
- </properties>
New to ADSelfService Plus?