Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Command-Reference.md] Document new SNMP show and config commands #1600

Merged
merged 8 commits into from
May 11, 2021
31 changes: 28 additions & 3 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6757,7 +6757,7 @@ This command is used to add, delete, or modify the SNMP contact.

- Usage:
```
config snmp contact (add | del | modify) <contact> <contact_email>
config snmp contact add <contact> <contact_email>
```

- Example (config snmp contact add <contact> <contact_email>):
jleveque marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -6767,13 +6767,23 @@ This command is used to add, delete, or modify the SNMP contact.
Restarting SNMP service...
```

- Usage:
```
config snmp contact del <contact>
```

- Example (config snmp contact del <contact>):
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```
admin@sonic:~$ sudo config snmp contact del joe
SNMP contact joe removed from configuration
Restarting SNMP service...
```

- Usage:
```
config snmp contact modify <contact> <contact_email>
```

- Example (config snmp contact modify <contact> <contact_email>):
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```
admin@sonic:~$ sudo config snmp contact modify test test@contoso.com
Expand All @@ -6787,7 +6797,7 @@ This command is used to add, delete, or replace the SNMP community.

- Usage:
```
config snmp community (add | del | replace) <community> (<RO|RW> | <new_community>)
config snmp community add <community> <RO|RW>
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```

- Example (config snmp community add <community> <RO|RW>)
Expand All @@ -6797,13 +6807,23 @@ This command is used to add, delete, or replace the SNMP community.
Restarting SNMP service...
```

- Usage:
```
config snmp community del <community>
```

- Example (config snmp community del <community>)
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```
admin@sonic:~$ sudo config snmp community del testcomm
SNMP community testcomm removed from configuration
Restarting SNMP service...
```

- Usage:
```
config snmp community replace <community> <new_community>
```

- Example (config snmp community replace <community> <new_community>):
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```
admin@sonic:~$ sudo config snmp community replace testcomm newtestcomm
Expand All @@ -6818,7 +6838,7 @@ This command is used to add or delete the SNMP user for SNMPv3.

- Usage:
```
config snmp user (add | del) <user> <noAuthNoPriv|AuthNoPriv|Priv> <RO|RW> <MD5|SHA|MMAC-SHA-2> <auth_password> <DES|AES> <encrypt_password>
config snmp user add <user> <noAuthNoPriv|AuthNoPriv|Priv> <RO|RW> [[<MD5|SHA|MMAC-SHA-2> <auth_password>] [<DES|AES> <encrypt_password>]]
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```

- Exmaple (config snmp user add testuser1 noauthnopriv ro):
tsvanduyn marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -6842,6 +6862,11 @@ This command is used to add or delete the SNMP user for SNMPv3.
Restarting SNMP service...
```

- Usage:
```
config snmp user del <user>
```

- Example (config snmp user del testuser1):
jleveque marked this conversation as resolved.
Show resolved Hide resolved
```
admin@sonic:~$ sudo config snmp user del testuser1
Expand Down