【2017年整理】各种网络设备配置共同体名.doc
文本预览下载声明
各种网络设备SNMP配置汇总
Cisco设备
Catalyst OS
配置SNMP的共同体名:set snmp community [read-only|read-write|read-write-all] community_string
IOS
全局模式配置SNMP的共同体名:snmp-server community community_string [ro|rw]
华为设备
IOS
同Cisco配置方法
Huawei OS
switchsuper
[switch]sys
[switch]snmp-agent community [read|write] community_string
[switch]snmp-agent sys-info version all
Foundry设备
同Cisco设备IOS配置方法
港湾设备
命令格式:config snmp community [readonly|readwrite] string
[readonly|readwrite]读确认/读写确认字符串
默认值:string字符串值readonly:public;
readwrite:private
使用指导community字符串为远程网络管理员配置交换机提供了一种用户确认机
制。在交换机上有两种Community字符串:读确认字符串(readonly)允
许对交换机进行只读访问;读写确认字符串(readwrite)提供了对交换机
读写操作的权限。
配置实例Harbour(config)# config snmp community readonly harbour
service snmp enable
相关命令
show snmp community-string
Extreme设备
configure snmp community
命令格式:
configure snmp community [readonly | readwrite] {encrypted} alphanumeric string
命令描述:
Configures the value of the default SNMP read or read/write community string.
readonly Specifies read-only access to the system.
readwrite Specifies read and write access to the system.
encrypted Specifies encryption, for use only by the switch when uploading or
downloading a configuration. Should not be used through the CLI.
alphanumeric string Specifies an SNMP community string name.
默认值:
The default read-only community string is public. The default read/write community string is private.
举例:以下命令是设置一个读写权限的共同体名extreme
configure snmp community readwrite extreme
用来替代第一种命令
命令格式:
configure snmp add community [readonly | readwrite] {encrypted} alphanumeric string
命令描述:
Adds an SNMP read or read/write community string.readonly Specifies read-only access to the system.
readwrite Specifies read and write access to the system.
encrypted Specifies encryption, for use only by the switch when uploading or
downloading a configuration. alphanumeric string Specifies an SNMP community string name. See “Usage Guidelines” for more
information.
默认值:
The default read-only community string is public
显示全部