From 2787ab62a090d33bfa3cc8df33afa91e9e02fd3b Mon Sep 17 00:00:00 2001 From: Chris Spiller Date: Thu, 28 Nov 2024 11:30:55 +0000 Subject: [PATCH 1/2] CASMINST-6711 - Command Mismatch When Setting up SNMP on Dell and Mellanox switches --- .../management_network/dell/snmp-community.md | 52 +++++++++++++++---- .../mellanox/snmpv3_users.md | 2 +- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/operations/network/management_network/dell/snmp-community.md b/operations/network/management_network/dell/snmp-community.md index a35d13531e24..108d17290bfe 100644 --- a/operations/network/management_network/dell/snmp-community.md +++ b/operations/network/management_network/dell/snmp-community.md @@ -1,25 +1,59 @@ -# Configure SNMPv2c Community +# Configure SNMPv2c community -The switch supports SNMPv2c community-based security for read-only access. +The switch supports SNMPv2c community-based security for read-only and read-write access. -## Configuration Commands +## Configuration commands -Configure an SNMPv2c community name: +### Configure the SNMP community + +1. Enter configuration mode. + + ```text + configure terminal + ``` + +1. Configure the SNMPv2c community name + + ```text + snmp-server community community-name access-mode + ``` + + Parameters + + | Parameter | Description | + |------------------|----------------------------------------------------------------------------------------------| + | `community-name` | The user defined name for this community. | + | `access-mode` | The access level for this community. Can be `ro` for read-only or `rw` for read-write access | + +### Example + +The following command configures a read-only SNMP community called "public". ```text -snmp-server community community-name +snmp-server community public ro ``` -Show commands to validate functionality: +When successful this command returns no output. + +### Show configured SNMP community + +The following command displays information about any SNMP community that may have been configured. ```text show snmp community ``` +Example output: + +```text +Community : public +Access : read-only +``` + ## Expected Results -1. Administrators can configure the community name -2. Administrators can bind the SNMP server to the default VRF -3. Administrators can connect from the workstation using the community name +1. Administrators can configure the community name. +2. Administrators can bind the SNMP server to the default VRF. +3. Administrators can connect from the workstation using the community name. [Back to Index](../README.md) diff --git a/operations/network/management_network/mellanox/snmpv3_users.md b/operations/network/management_network/mellanox/snmpv3_users.md index 99db7e4cc542..ce879b1f9581 100644 --- a/operations/network/management_network/mellanox/snmpv3_users.md +++ b/operations/network/management_network/mellanox/snmpv3_users.md @@ -17,7 +17,7 @@ switch(config)# snmp-server user testuser v3 require-privacy Show Commands to Validate Functionality ```console -show snmp users +show snmp user ``` [Back to Index](../README.md) From 170a67b266b877be507818f5bcf25f996bb7a1ff Mon Sep 17 00:00:00 2001 From: Chris Spiller <86013738+spillerc-hpe@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:44:43 +0000 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Russell Bunch Signed-off-by: Chris Spiller <86013738+spillerc-hpe@users.noreply.github.com> --- .../network/management_network/dell/snmp-community.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/operations/network/management_network/dell/snmp-community.md b/operations/network/management_network/dell/snmp-community.md index 108d17290bfe..dde4764217fe 100644 --- a/operations/network/management_network/dell/snmp-community.md +++ b/operations/network/management_network/dell/snmp-community.md @@ -8,17 +8,17 @@ The switch supports SNMPv2c community-based security for read-only and read-writ 1. Enter configuration mode. - ```text + ```console configure terminal ``` 1. Configure the SNMPv2c community name - ```text + ```console snmp-server community community-name access-mode ``` - Parameters + Parameters: | Parameter | Description | |------------------|----------------------------------------------------------------------------------------------| @@ -39,7 +39,7 @@ When successful this command returns no output. The following command displays information about any SNMP community that may have been configured. -```text +```console show snmp community ```