Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / man / netsnmp_example_scalar_int.3
1 .TH "example_scalar_int: instantiates a few example scalars." 3 "6 Mar 2002" "net-snmp" \" -*- nroff -*-
2 .ad l
3 .nh
4 .SH NAME
5 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. 
6 More...
7 .SS "Functions"
8
9 .in +1c
10 .ti -1c
11 .RI "void \fBinit_scalar_int\fP (void)"
12 .br
13 .in -1c
14 .SH "DETAILED DESCRIPTION"
15 .PP 
16 This example merely creates some scalar registrations that allows some simple variables to be accessed via SNMP.
17 .PP
18 In a more realistic example, it is likely that these variables would also be manipulated in other ways outside of SNMP gets/sets.
19 .PP
20 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):
21 .PP
22 snmpget localhost netSnmpExampleInteger.0 netSnmpExampleScalars = 42
23 .PP
24 snmpset localhost netSnmpExampleInteger.0 = 1234 netSnmpExampleScalars = 1234
25 .PP
26 snmpget localhost netSnmpExampleInteger.0 netSnmpExampleScalars = 1234