NET.CFG Options Reference

Desktop SNMP Option

Example of NET.CFG Files Using the Community Name and Types

To use the default trap community, allow any community name to be used for read access, but set the read/write community name to “secret,” you would place the following lines in your NET.CFG file:

desktop snmp

enable monitor community any

enable control community specified

control community “secret”

To disable all traps and use the default values for the monitor and control communities, you would place the following lines in your NET.CFG file:

desktop snmp

enable trap community off

To specify a NULL string for the control community and use the default values for the monitor and trap communities, you would place the following lines in your NET.CFG file:

desktop snmp

enable control community specified

control community “”

Setting a NULL string is the same as setting the enable community_type community line to “off.”

To allow only the “private” community to have access and set the community name for traps to “agenttrap,” you would place the following lines in your NET.CFG file:

desktop snmp

enable monitor community specified monitor community “private” enable control community specified control community “private” enable trap community specified trap community “agenttrap”

To temporarily allow any community name to have read-only access in the previous example, you would modify the lines in your NET.CFG file as follows:

2-21