netsnmp_example_scalar_int(3snmp)

netsnmp_example_scalar_int3snmp

This example merely creates some scalar registrations that allows some simple variables to be accessed via snmp. more...

Detailed description

This example merely creates some scalar registrations that allows some simple variables to be accessed via SNMP.

In a more realistic example, it is likely that these variables would also be manipulated in other ways outside of SNMP gets/sets.

If this module is compiled into an agent, you should be able to issue snmp commands that look something like (authentication information not shown in these commands):

snmpget localhost netSnmpExampleInteger.0 netSnmpExampleScalars = 42

snmpset localhost netSnmpExampleInteger.0 = 1234 netSnmpExampleScalars = 1234

snmpget localhost netSnmpExampleInteger.0 netSnmpExampleScalars = 1234

Releases

5 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–5.0
  2. 6.0–7

From libsnmp-dev 5.4.3~dfsg-2.8+deb7u1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.