SNMPv3 Operation Manual

xiaoxiao2021-03-06  98

Use Net-SNMP

Agreement SNMPv3

1. Create a user (Create a New SNMPV3 User and Give The Rights to Do Things):

Net-snmp-config --create-snmpv3-user -a "my_password" myuser

Warning: SNMPv3 Pass Phrases Must Be at Least 8 Characters Long!

MY_PASSWORD uses (MD5 and DES algorithm encryption), Note That Encryption Support isn't enabled in the binary release. Downloadable from the net-snmp web site.

test:

Start the agent and test your setup: / usr / local / sbin / snmpd [... Wait a few seconds ... it will run in the background and return you to your shell immediately.]

SNMPGET -V 3-U Myuser -l Authnopriv -a MD5 -A my_password localhost sysuptime.0 [this sales return information about howling your agent HAS been Up]

SNMPGET -V 3-U Myuser -l Authpriv -a MD5 -A my_password -x des -X my_password localhost sysuptime.0 [this sales keturn similar information, but encrypts the transmission]

Use the SNMPTRAPD program:

1) AND the securityname and engineid must exist as a pair in the remote user table.

Stop any currently Running SNMPTRAPD

Edit /var/net-snmp/snmptrapd.conf to insert the Following Line:

CreateUser myuser md5 mypassword des myotherpassword

Where myuser is the security name you want to use, and mypassword is your authentication password and myotherpassword is your encryption password (or leave it blank if you want it to be the same or do not want to use encryption).

(re) Start the SNMPTRAPD PROGRAM.

转载请注明原文地址:https://www.9cbs.com/read-124902.html

New Post(0)