Difference between revisions of "Com2sec"

From Net-SNMP Wiki
Jump to: navigation, search
(Information on the com2sec label)
 
(Added example.)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
''sec.name'' is an arbitrary word that is used by the ''[[group]]'' label.  ''source'' describes a host or network.  And ''community'' is the ''[[community]]'' name that is used.
 
''sec.name'' is an arbitrary word that is used by the ''[[group]]'' label.  ''source'' describes a host or network.  And ''community'' is the ''[[community]]'' name that is used.
 +
 +
==Examples==
 +
 +
com2sec localhost 127.0.0.1      public
 +
com2sec local    192.168.0.0/24  netsnmp
 +
com2sec trusted  192.168.1.1    secretWord
 +
 +
''source'' can be the word ''default'', but it is not clear what this means.

Latest revision as of 12:18, 7 July 2008

com2sec

The basic structure of the com2sec label is

#       sec.name  source          community

sec.name is an arbitrary word that is used by the group label. source describes a host or network. And community is the community name that is used.

Examples

com2sec localhost 127.0.0.1       public
com2sec local     192.168.0.0/24  netsnmp
com2sec trusted   192.168.1.1     secretWord

source can be the word default, but it is not clear what this means.