




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、设备 SNMP 配置说明1、 SNMP 原理的相关介绍 22、各种设备 SNMP 协议的配置 3Cisco 设备 3Catalyst OS 3IOS 3华为设备 3IOS 3Huawei OS 3Foundry 设备 3港湾设备 3Extreme 设备 4configure snmp community 4用来替代第一种命令 43COM 设备 5Avaya 设备 6北电设备 6北电 passport 86 系列 snmp 配置 6passport 6400 6passport 8006 7nortel 系列 73com 交换机 snmp 配置 74900 交换机网管的设置 74400 交换机网
2、管的设置 74200 交换机网管的设置 81、 SNMP 原理的相关介绍基于TCP / IP的网络管理包含两部分:网络管理站(也叫管理进程,m a n a g e r)和被管理的网络单元(也叫被管设备) 。被管设备种类繁多,例如:路由器、 X 终端、终端服 务器和打印机等。 这些被管设备的共同点就是都运行 TCP / IP 协议。被管设备端和管理相关 的软件叫做代理程序 ( a g e n t )或代理进程。基于 TCP / IP 的网络管理包含 3 个组成部分:1) 一个管理信息库 M I B ( Management Information Base )。管理信息库包含所 有代理进程的所有
3、可被查询和修改的参数。2) 关于 M I B 的一套公用的结构和表示符号。叫做管理信息结构 S M I(Structure of Management Information )。3) 管理进程和代理进程之间的通信协议,叫做简单网络管理协议S N M P(SimpleNetwork Management Protocol )。关于管理进程和代理进程之间的交互信息,S N M P 定义了 5 种报文:1) g e t - r e q u e s t 操作:从代理进程处提取一个或多个参数值。2) g e t - n e x t - r e q u e s t 操作:从代理进程处提取一个或多个参数的
4、下一个参数值。3) s e t -re q u e s t操作:设置代理进程的一个或多个参数值。4) g e t - r e s p o n s e 操作:返回的一个或多个参数值。这个操作是由代理进程发出 的。它是前面 3 中操作的响应操作。5) t r a p 操作:代理进程主动发出的报文,通知管理进程有某些事情发生。前面的 3 个操作是由管理进程向代理进程发出的。 后面两个是代理进程发给管理进程 的(为简化起见,前面 3个操作分别叫做g e t、g e t - n e x t和s e t操作)。SNMP (简单网络管理协议)是用来管理网络设备时的国际标准协议,通过对网络设 备 MIB (管
5、理信息库)中的具体参数的查询和设置,可以实现对网络设备的管理。例如:对许多启用了标准SNMP 协议的网络设备 (如 Cisco 交换机、路由器等)的接口信息,不但能使用前面介绍的SNMP 的 get 操作获得接口状态的 up 或 down 的信息,而且可以使用set操作来设置接口的up 或 down 状态。这就是使用 SNMP 协议对网络设备进行管理的技术实现原理。2、各种设备 SNMP 协议的配置Cisco 设备Catalyst OS配 置 SNMP 的 共 同 体 名 : set snmp community read-only|read-write|read-write-all comm
6、unity_stringIOS全局模式配置 SNMP 的共同体名: snmp-server community community_string ro|rw华为设备IOS同 Cisco 配置方法Huawei OSsuperswitchsysswitchsnmp-agent community read|write community_stringswitchsnmp-agent sys-info version allFoundry 设备同 Cisco 设备 IOS 配置方法港湾设备命令格式 : config snmp community readonly|readwrite readonly
7、|readwrite 读确认 /读写确认字符串默认值: 字符串值 readonly : public ;readwrite : private使用指导 community 字符串为远程网络管理员配置交换机提供了一种用户确认机 制。在交换机上有两种Community字符串:读确认字符串(readonly)允许对交换机进行只读访问;读写确认字符串(readwrite )提供了对交换机读写操作的权限。配置实例 Harbour(config)# config snmp community readonly harbour service snmp enable相关命令show snmp communi
8、ty-stringExtreme 设备configure snmp community命令格式 :configure snmp community readonly | readwrite encrypted 命令描述: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. encry
9、pted 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 privat
10、e.举例:以下命令是设置一个读写权限的共同体名 extremeconfigure snmp community readwrite extreme用来替代第一种命令命令格式 :configure snmp add community readonly | readwrite encrypted 命令描述: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
11、 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. The default read/write com
12、munity string is private.用法:Community strings provide a simple method of authentication between a switch and a remote networkmanager. Read community strings provide read-only access to the switch. The default read-only community string is public. Read-write community strings provide read and write a
13、ccess to the switch.The default read/write community string is private.To change the value of the default read/write and read-only community strings, use the configure snmp community command.举例:以下命令是设置一个读写权限的共同体名 extreme configure snmp add community readwrite extreme3COM 设备华为 3Com 路由器、交换机新旧命令行配置 snm
14、p 对比新命令行版本中:snmp-agent local-engineid 800007DB00E0FC0000106877 #该行自动生成* snmp-agent community read public* snmp-agent community write privatesnmp-agent sys-info contact HuaWei BeiJing Chinasnmp-agent sys-info location BeiJing China* snmp-agent sys-info version all* snmp-agent trap-host # 接收 trap 的网管主
15、机地址老命令行版本中:* snmp-server enable traps snmpsnmp-server engineid 800007DB00E0FC0000106877 # 该行自动生成* snmp-server community public ro* snmp-server community private rw* snmp-server host 10.110.x.x public#接收 trap 的网管主机地址snmp-server trap-source Vlan-interface2#发送 trap 的源端口 说明:当存在网管平台(如 N2000 )和 Quidview 集
16、成时,带 *号的为必配置项目。Avaya 设备北电设备北电 passport 86系列 snmp 配置1、版本是 3.5.0.0 系列的及以下版本 确认版本命令 show bootconfig info snmp 配置命令: config/sys/set/snmp/community ro fjep_86062、版本是 3.7.0.0 系列的snmp 配置命令: config/snmp-v3/com munity/name first fjep_8606passport 6400Provision one or more Vr Snmp Community ( Com) components.
17、 add Vr/ Snmp Community/Set the community string, used to authenticate SNMP messages from SNMPv1 management entities. The default value is public. set Vr/ Snmp Com/ communityString where: is the string used to authenticate SNMP messages.Specify the set of MIB subtrees accessible by this community.Th
18、is must be set to a specific view index, see step 6, substep a. set Vr/ Snmp Com/ viewIndex Specify Vr Snmp Com accessMode ( acMode) attribute for this community. The default is readOnly.set Vr/ Snmp Com/ accessMode where: indicates the level of access for each object in the view.passport 8006sys se
19、t snmp community ro public sys set snmp community l2 private sys set snmp community l3 private sys set snmp community rw privatesys set snmp trap-recv 10.1.1.1 v2c publicnortel 系列3com 交换机 snmp 配置4900 交换机网管的设置4900 交换机设置管理 IP 后,还可以通过网管系统进行管理, 如 3Com 的免费网管软件 3Com Network Supervisor 。一般情况下用 4900 默认的配置就可
20、以,根据情况也可以进行修改。主 要的包括设置网管软件对交换机进行读/写的 Community 字串,以及交换机向网管软件发送Trap 的目的地址,如下所示。Select menu option: sys man snmp comm.Enter new community for user admin private: write001Enter new community for user manager manager: write000Enter new community for user monitor public: read001Select menu option: 说明 以上设
21、置将网管系统读的Community字串设为readOOl,将改配置和修改系统参数的Community字串设为 writeOOl及writeOOOSelect menu option: sys man snmp trap createEnter the trap community string monitor:Enter the trap destination address: 1O.1O.1O.8Select menu option: 说明 以上设置使交换机将monitor 的trap 信息发到地址为 1O.1O.1O.8 的网管系统或其他可接收 trap 的系统。可以设置多个目的地 址4
22、400 交换机网管的设置44OO 交换机设置管理 IP 后,还可以通过网管系统进行管理, 如 3Com 的免费网管软件 3Com Network Supervisor 。一般情况下用 44OO 默认的配置就可以,根据情况也可以进行修改。主 要的包括设置网管软件对交换机进行读 /写的 Community 字串,以及交换机向网管软件发送 Trap 的目的地址,如下所示。Select menu option: sys man snmp comm.Enter new community for user admin private: write001Enter new community for us
23、er manager manager: write000Enter new community for user monitor public: read001Select menu option: 说明 以上设置将网管系统读的Community字串设为readOOl,将改配置和修改系统参数的Community字串设为 writeOOl及writeOOOSelect menu option: sys man snmp trap createEnter the trap community string monitor:Enter the trap destination address: 1O.1O.1O.8Select menu option: 说明 以上设置使交换机
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 预防疟疾主题班会课件
- 化学工业企业安全质量环保标准化培训体系
- 项目集成管理工程师课件
- 项目介绍框架课件
- 音乐里的中国年课件
- 门诊护理培训课件
- 汽车配套产业基地项目环境影响报告书(范文)
- 城市污水管网建设工程招投标方案(参考模板)
- 2025年煤矿钻孔监测系统合作协议书
- 高效节能电机项目申请报告
- 浙江省中学生艺术特长b级测试-美术西画基础知识复习提纲(完整版)资料
- GB/T 40427-2021电力系统电压和无功电力技术导则
- GB/T 25413-2010农田地膜残留量限值及测定
- GB/T 17007-1997绝缘栅双极型晶体管测试方法
- GB/T 15056-2017铸造表面粗糙度评定方法
- 化学水处理安全检查表
- DB34-T 4102-2022废旧锂离子动力蓄电池贮存安全技术条件-高清现行
- 景陵峪构造报告构造地质学
- GB∕T 8163-2018 输送流体用无缝钢管
- 机动车排放检验检测方法内部审批程序
- 2MW工商业分布式光伏电站项目可行性研究报告
评论
0/150
提交评论