summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorelie <elie>2012-07-23 09:54:31 +0000
committerelie <elie>2012-07-23 09:54:31 +0000
commitfd1a95d52d64c5fab87337a3e452196dbed0c6b9 (patch)
tree8c0f9b404ad3c3c2a69ebf44b7ae3adfe953ff6a /docs
parent9d0e2d85a766fbe83cc6e24812ac2538d3c416b4 (diff)
downloadpysnmp-fd1a95d52d64c5fab87337a3e452196dbed0c6b9.tar.gz
net-snmpd.conf to use with example scripts added
Diffstat (limited to 'docs')
-rw-r--r--docs/net-snmpd.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/net-snmpd.conf b/docs/net-snmpd.conf
new file mode 100644
index 0000000..db34fc0
--- /dev/null
+++ b/docs/net-snmpd.conf
@@ -0,0 +1,29 @@
+# To run the examples shipped with this distribution with a Net-SNMP
+# Agent (snmpd) listening at your localhost, the following configuration
+# tokens should be put into:
+
+# ... /var/lib/net-snmp/snmpd.conf (while snmpd is down)
+createUser usr-md5-des MD5 authkey1 DES privkey1
+createUser usr-md5-none MD5 authkey1
+createUser usr-none-none
+createUser usr-sha-des SHA authkey1 DES privkey1
+createUser usr-sha-none SHA authkey1
+createUser usr-sha-aes SHA authkey1 AES privkey1
+createUser usr-sha-aes128 SHA authkey1 AES privkey1
+createUser usr-md5-aes MD5 authkey1 AES privkey1
+createUser usr-md5-aes128 MS5 authkey1 AES privkey1
+
+# ... and the following access control statements to /etc/snmpd/snmpd.conf
+group MyRWGroup usm usr-md5-des
+group MyRWGroup usm usr-md5-none
+group MyRWGroup usm usr-none-none
+group MyRWGroup usm usr-sha-aes
+group MyRWGroup usm usr-sha-aes128
+group MyRWGroup usm usr-sha-none
+group MyRWGroup usm usr-md5-aes
+group MyRWGroup usm usr-md5-aes128
+group MyRWGroup usm usr-sha-des
+
+# This is usually already there by default
+access MyRWGroup "" any noauth exact all all all
+