The netsnmp subagent can read and use an existing snmpd configuration file to load and configure extensions.
Table 1 lists the snmpd configuration directives that the subagent can interpret.
Configuration directive |
Action taken by the netsnmp subagent |
|---|---|
dlmod |
Load the specified Net-SNMP extension. Note: The
subagent does not activate any loaded extensions. You must explicitly activate
any loaded extensions using the netsnmp activate command.
|
rocommunity |
Assign the read-only (ro) privilege to the specified OID tree. |
rwcommunity |
Assign the read/create (rc) privilege to the specified OID tree. |
trap2sink |
Create an agentTrapDestTable row for SNMPv2 Traps. |
trapcommunity |
Set the agentTrapDestCommunity to the community specified when creating agentTrapDestTable rows. |
trapsink |
Create an agentTrapDestTable row for SNMPv1 Traps. |
To read an snmpd configuration file, use the command:
netsnmp configure config_file
where config_file is the path and filename of the snmpd configuration file.