Forum Discussion
F5 SNMP Script to find Process Information.
Hi all,
You may be able to help me out with the below (as I am having heaps of trouble finding OID’s). I’m trying to write a script that will look at some F5’s (running 9.4.X) and respond with the process “chmand” and its memory usage as below:
The script will run the command "top -p
pidof chmand
-b -n 1" on each of the F5's and will return an output like the example below:
c793681@argvlf300exh0751:Active] ~ top -p
pidof chmand
-b -n 1
top - 09:22:01 up 26 days, 5:18, 1 user, load average: 0.73, 0.80, 0.84
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.6%us, 2.5%sy, 0.0%ni, 91.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8177544k total, 8106268k used, 71276k free, 294976k buffers
Swap: 1048504k total, 20k used, 1048484k free, 270880k cached
PIDUSER PR NI VIRT RES SHRS%CPU%MEM TIME+ COMMAND
4512root 15 0 111m 59m4640S 0.0 0.7 01:51.0chmand
I only really care about “RES” as we want to make a routine to address bug SOL12941 and proactively reboot machines. (https://support.f5.com/kb/en-us/solutions/public/12000/900/sol12941.html).
Can someone assist/point me to the correct OID to use AND the syntax (I haven't done much scripting using SNMP and the syntax part is what has been getting me recently).
Thanks guys! Regards, Steve.
- Steve_Falzon_17Nimbostratus
bump
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com