|
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages
|
|
This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles. For more information about the manual page format, see the manual page for manpages(5). |
example_scalar_int: instantiates a few example sca)scalar_int: instantiates a few example scalars.(3)
NAME
example_scalar_int: instantiates a few example scalars. - This example merely creates some scalar
registrations that allows some simple variables to be accessed via SNMP. More...
Functions
void init_scalar_int (void)
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
net-snmp 6eap0calar_int: instantiates a few example scalars.(3)
|
|