From 7582210fd2947af6a45e452a6df4351ffaefd7c2 Mon Sep 17 00:00:00 2001 From: Anukul Verma Date: Tue, 6 Aug 2024 15:58:49 +0530 Subject: [PATCH] Changes related to snmp contact DB schema fix --- doc/snmp/snmp-configdb-migration-hld.md | 26 ++++++++++++------------- doc/snmp/snmp-schema-addition.md | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/snmp/snmp-configdb-migration-hld.md b/doc/snmp/snmp-configdb-migration-hld.md index 07a09bfaaa..162075429e 100644 --- a/doc/snmp/snmp-configdb-migration-hld.md +++ b/doc/snmp/snmp-configdb-migration-hld.md @@ -36,8 +36,8 @@ admin@switch1:~$ redis-cli -n 4 hgetall "SNMP|LOCATION" 2) "Emerald City" admin@switch1:~$ redis-cli -n 4 hgetall "SNMP|CONTACT" -1) "joe" -2) "joe@contoso.com" +1) "Contact" +2) "joe joe@contoso.com" ``` # SNMP_COMMUNITY Table @@ -127,12 +127,12 @@ Options: admin@switch1:~$ admin@switch1:~$ show run snmp contact -Contact Contact Email ---------- ----------------- -Joe joe@contoso.com +Contact +--------- +joe joe@contoso.com admin@switch1:~$ admin@switch1:~$ show run snmp contact --json -{'joe': 'joe@contoso.com'} +{'Contact': 'joe joe@contoso.com'} admin@switch1:~$ ``` @@ -246,28 +246,28 @@ Options: -h, -?, --help Show this message and exit. Commands: - add Add snmp contact name and email - del Delete snmp contact name and email + add Add snmp contact + del Delete snmp contact modify Modify snmp contact admin@switch1:~$ admin@switch1:~$ sudo config snmp contact add -h -Usage: config snmp contact add [OPTIONS] +Usage: config snmp contact add [OPTIONS] - Add snmp contact name and email + Add snmp contact Options: -?, -h, --help Show this message and exit. admin@switch1:~$ admin@switch1:~$ sudo config snmp contact del -h -Usage: config snmp contact del [OPTIONS] +Usage: config snmp contact del [OPTIONS] - Delete snmp contact name and email + Delete snmp contact Options: -h, -?, --help Show this message and exit. admin@switch1:~$ admin@switch1:~$ sudo config snmp contact modify -h -Usage: config snmp contact modify [OPTIONS] +Usage: config snmp contact modify [OPTIONS] Modify snmp contact diff --git a/doc/snmp/snmp-schema-addition.md b/doc/snmp/snmp-schema-addition.md index 0c3a60c301..d198edbabb 100644 --- a/doc/snmp/snmp-schema-addition.md +++ b/doc/snmp/snmp-schema-addition.md @@ -33,7 +33,7 @@ In the end this is used to produce */etc/snmp/snmpd.conf*. "Location":"" }, "CONTACT":{ - "":"" + "Contact":"" } } }