Skip to content

Commit

Permalink
Added SNMP_USER_PERMISSIONS parameter and removed SNMP_USER_STRING pa…
Browse files Browse the repository at this point in the history
…rameter (#718)

Added one new parameters:
"SNMP_USER_PERMISSIONS": "RO|RW" to SNMP_USERS.
This will be needed to support RW SNMPv3 in the future.

Removed "SNMP_USER_STRING". This is not necessary because we have this
SNMP_USER|user1 which shows the user string as "user1" as a key.
  • Loading branch information
tsvanduyn authored Dec 3, 2020
1 parent 8534d7c commit d5b29be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/snmp/snmp-schema-addition.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,28 @@ In the end this is used to produce */etc/snmp/snmpd.conf*.
{
"SNMP_USER":{
"<SNMP_USER>":{
"SNMP_USER_STRING":"<SNMP_USER_STRING>",
"SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv",
"SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2",
"SNMP_USER_ENCRYPTION_TYPE":"DES|AES",
"SNMP_USER_AUTH_PASSWORD":"<AUTH_PASSWORD_STRING>",
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>"
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>",
"SNMP_USER_PERMISSION": "RO|RW"
},
"<SNMP_USER>":{
"SNMP_USER_STRING":"<SNMP_USER_STRING>",
"SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv",
"SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2",
"SNMP_USER_ENCRYPTION_TYPE":"DES|AES",
"SNMP_USER_AUTH_PASSWORD":"<AUTH_PASSWORD_STRING>",
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>"
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>",
"SNMP_USER_PERMISSION": "RO|RW"
},
"<SNMP_USER>":{
"SNMP_USER_STRING":"<SNMP_USER_STRING>",
"SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv",
"SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2",
"SNMP_USER_ENCRYPTION_TYPE":"DES|AES",
"SNMP_USER_AUTH_PASSWORD":"<AUTH_PASSWORD_STRING>",
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>"
"SNMP_USER_ENCRYPTION_PASSWORD":"<ENCRYPTION_PASSWORD_STRING>",
"SNMP_USER_PERMISSION": "RO|RW"
}
}
}
Expand All @@ -99,7 +99,7 @@ Where:
- SNMP_USER_ENCRYPTION_TYPE: String, defines which encryption type will be used for that SNMP user DES or AES.
- SNMP_USER_AUTH_PASSWORD: String, defines which authentication password will be used for that SNMP user.
- SNMP_USER_ENCRYPTION_PASSWORD: String, defines which encryption password will be used for that SNMP user.

- SNMP_USER_PERMISSION: String, RO (Read-Only) or RW (Read-Write) defines what will be used for that SNMP user.


New keys:
Expand Down

0 comments on commit d5b29be

Please sign in to comment.