Configure SNMP community

You can configure the SNMP Community string using the below command:

Reference

Command

[no] snmp-server community <string>

Description

SNMP community configuration

Parameters

SNMP community string

Mode

CONFIG

Example

pbnoscli# configure terminal  
pbnoscli(config)# 
pbnoscli(config)# snmp-server 
 community                 trap                     
pbnoscli(config)# snmp-server 
  community             Community string authentication
  trap                  Trap configuration
pbnoscli(config)# snmp-server community 
  <comm>                Community value
pbnoscli(config)# snmp-server community public
pbnoscli(config)#

You can verify the configuration by using the command(s) below:

pbnoscli# show snmp-community 
===================================================
Community    
===================================================
public (Read-only)
pbnoscli# 
pbnoscli# show running-config 
configure terminal
snmp-server community public
interface mgmt
ip address 10.4.4.52/24 gateway 10.4.4.1
!
pbnoscli# 

Last updated