What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

SNMP: count returned strings




How can I get in sensor value that would be equal to "count of strings" in some OID.

Exactly it is OID, that return MAC addresses of wireless clients. There are no special SNMP value for count of all clients.

count snmp string

Created on Dec 1, 2010 10:10:03 AM

2 Replies




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.

Created on Dec 1, 2010 3:55:44 PM by  Torsten Lindner [Paessler Support]




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^| findstr "0$"^| find /c /v "~~~"') DO SET _count=%%G 
echo %_count%:ok
exit 0

Created on Dec 2, 2010 9:37:30 AM

Last change on Dec 2, 2010 1:31:02 PM by  Torsten Lindner [Paessler Support]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.