Hello!
How can I get in sensor value that would be equal to "count of strings" in some OID.
Exactly it is OID 1.3.6.1.4.1.14179.2.1.4.1.1, that return MAC addresses of wireless clients. There are no special SNMP value for count of all clients.
Article Comments
ok.
It's my version of custom script (used standard net-snmp on windows x64):
@echo off FOR /F "tokens=*" %%G IN ('c:\Net-SNMP\bin\snmpwalk.exe -v 2c -c Community 10.10.10.1 1.3.6.1.4.1.14179.2.1.4.1.24^| findstr "0$"^| find /c /v "~~~"') DO SET _count=%%G echo %_count%:ok exit 0
Dec, 2010 - Permalink
Hello,
I'm afraid in the moment it's only possible to perform this with a self-written script running as a Custom Exe Sensor. The script would have to count the Strings and then return this number to PRTG.
Best Regards.
Dec, 2010 - Permalink