AIX CPU Hardware Thread Contexts.xml

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.
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3. <properties>
  4. <entry key="thresholdEnabled">false</entry>
  5. <entry key="executeFrom">1</entry>
  6. <entry key="interval">5</entry>
  7. <entry key="monitorName">AIX CPU Hardware Thread Contexts</entry>
  8. <entry key="commandLine">sh ${FileName}.sh</entry>
  9. <entry key="yaxisText">units</entry>
  10. <entry key="version">2</entry>
  11. <entry key="scriptBody">main ()
  12. {
  13. echo Message: Virtualized CPU thread utilization.\\n
  14. echo Data:
  15. Counter="0"
  16. 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
  17. exit 0
  18. }
  19. main $*</entry>
  20. <entry key="timeout">10</entry>
  21. <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>
  22. </properties>

                New to ADSelfService Plus?