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

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

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

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