SNMP+MIB完整手册

合集下载

SNMP配置手册

SNMP配置手册

SNMP配置手册1交换机部分1.1Cisco交换机使用以下配置命令前,均需要执行以下步骤:1.登陆交换机。

(可以使用串口线直接连接,如果交换机配置有管理IP并且允许telnet登陆,则也可以通过telnet进行登陆。

)2.输入enable命令进入特权模式。

3.输入config terminal进行配置模式。

使用完配置命令后,均需要执行以下步骤进行保存:1.输入end命令退出配置模式。

2. copy running start保存配置文件。

1.1.1SNMP配置1.配置snmp 只读communitysnmp-server community public ro配置交换机的只读community为public2.配置snmp 读写communitysnmp-server community public rw配置交换机的读写community为public1.1.2TRAP配置1.配置交换机允许发送trapsnmp-server enable traps2.配置交换机接收trap的主机snmp-server host10.238.18.17traps public指定交换机SNMP Trap的接收者为10.238.18.17,发送Trap时采用public作为字串1.1.3Syslog配置1.打开交换机的syslog功能logging on2. 直接配置相应的syslog发送到的接收主机,10.90.200.93为该主机的ip地址。

logging10.90.200.933.配置发送syslog的主机格式类型。

logging facility local44.选择发送warning以上级别的log信息。

logging trap warnings1.2 华为交换机使用以下配置命令前,均需要执行以下步骤:1.登陆交换机。

(可以使用串口线直接连接,如果交换机配置有管理IP并且允许telnet登陆,则也可以通过telnet进行登陆。

SNMP手册

SNMP手册

SNMP操作手册目录一SNMP协议概述 (3)1什么是SNMP协议 (3)2SNMP版本 (3)3SNMP的基本操作 (4)4网管站和代理 (5)5ASN.1和SMI (5)6SNMP报文 (6)6.1SNMP的5种协议数据单元 (7)7管理变量的表示 (11)8SNMP的运行过程 (11)8.1G ET R EQUEST PDU (12)8.2G ET N EXT R EQUEST PDU (12)8.3G ET R ESPONSE PDU (14)8.4S ET R EQUEST PDU (14)8.5T RAP PDU (14)9SNMP MIB编译器的功能 (15)二SNMP操作实例 (17)1说明 (17)2SNMP V1测试 (17)3SNMP V2测试.......................................................................... 错误!未定义书签。

4SNMP V3测试.......................................................................... 错误!未定义书签。

4.1基于“NO A UTH N O P RIV”的安全模式的SNMP V3测试.............错误!未定义书签。

4.2基于“A UTH N O P RIV”的安全模式的SNMP V3测试 .................错误!未定义书签。

4.3基于“A UTH P RIV”的安全模式的SNMP V3测试.......................错误!未定义书签。

一SNMP协议概述1 什么是SNMP协议SNMP(Simple Network Management Protocol)是被广泛接受并投入使用的工业标准,它的目标是保证管理信息在任意两点中传送,便于网络管理员在网络上的任何节点检索信息,进行修改,寻找故障;完成故障诊断,容量规划和报告生成。

SNMP_MIB_OID说明

SNMP_MIB_OID说明
管理信息库的对象命名举例 对象命名树的顶级对象有三个,即 ISO、ITU-T 和这两个组织的联合体。在 ISO 的下面有 4 个结点,其中的饿一个(标号 3)是被标识的组织。在其下面有一个美国国防部(Department of Defense)的子树(标号是 6),再下面就是 Internet(标号是 1)。在只讨论 Internet 中的对象时,可只画出 Internet 以下的子树(图中带阴影的虚线方框),并在 Internet 结点旁边标注上{1.3.6.1}即可。 在 Internet 结点下面的第二个结点是 mgmt(管理),标号是 2。再下面是管 理信息库,原先的结点名是 mib。1991 年定义了新的版本 MIB-II,故结点名现改为 mib-2,其标识为{1.3.6.1.2.1},或 {Internet(1) .2.1}。这种标识为对象标识符。 最初的结点 mib 将其所管理的信息分为 8 个类别,见表 1。现在的 mib-2 所包含的信息类别已超过 40 个。 表 1 最初的结点 mib 管理的信息类别。
2
下图给出了对一个 DS1 线路状态进行查询的 OID 设置例子。
3. SNMP 的五种消息类型 SNMP 中定义了五种消息类型:Get-Request、Get-Response、Get-Next-Request、Set-Request、Trap ① Get-Request 、Get-Next-Request 与 Get-Response SNMP 管理站用 Get-Request 消息从拥有 SNMP 代理的网络设备中检索信息,而 SNMP 代理则用 Get-Response 消息 响应。Get-Next-Request 用于和 Get-Request 组合起来查询特定的表对象中的列元素。如:首先通过下面的原语获得所 要查询的设备的接口数: {iso org(3) dod(6) internet(1) mgmt(2) mib(1) interfaces(2) ifNumber(2)} 后再通过下面的原语,进行查询(其中第一次用 Get-Request,其后用 Get-Next-Request): {iso org(3) dod(6) internet(1) mgmt(2) mib(1) interfaces(2) ifTable(2)} ② Set-Request SNMP 管理站用 Set-Request 可以对网络设备进行远程配置(包括设备名、设备属性、删除设备或使某一个设备属性有效

SNMP+MIB完整手册

SNMP+MIB完整手册

SNMP MIB完整手册/art/201007/209214.htmSNMP MIB是SNMP协议软件中主要的一个模块。那么MIB的主要功能就是管理信息库。那么一些常用的代码编辑,我们在前面的文章也有一些涉及。但是不少朋友还是对于SNMP MIB不理解。为此,我们整理了下面的文章帮助大家来学习这部分内容。最近要做一些服务器和设备的监控, 自带的cacti模板已不能满足需求, 经过一天调试, 目前已实现了bind9 mysql bind等数据流量的分析(其实也就是用脚本取数据,最后用rrdtool 画图出来), 但学习的过程中, 发现不大了解SNMP MIB概念, google了一下,下面的文章应该能解答一部分与我有同样问题的朋友们(我简单进行了排版整理)SNMP协议详解简单网络管理协议(SNMP:Simple Network Management Protocol)是由互联网工程任务组(IETF:Internet Engineering Task Force )定义的一套网络管理协议。该协议基于简单网关监视协议(SGMP:Simple Gateway Monitor Protocol)。利用SNMP,一个管理工作站可以远程管理所有支持这种协议的网络设备,包括监视网络状态、修改网络设备配置、接收网络事件警告等。虽然SNMP开始是面向基于IP的网络管理,但作为一个工业标准也被成功用于电话网络管理。1. SNMP基本原理SNMP采用了Client/Server模型的特殊形式:代理/管理站模型。对网络的管理与维护是通过管理工作站与SNMP代理间的交互工作完成的。每个SNMP从代理负责回答SNMP管理工作站(主代理)关于SNMP MIB定义信息的各种查询。下图是NMS公司网络产品中SNMP 协议的实现模型。SNMP协议的实现模型SNMP代理和管理站通过SNMP协议中的标准消息进行通信,每个消息都是一个单独的数据报。SNMP使用UDP(用户数据报协议)作为第四层协议(传输协议),进行无连接操作。SNMP消息报文包含两个部分:SNMP报头和协议数据单元PDU。数据报结构如下图:数据报结构版本识别符(version identifier):确保SNMP代理使用相同的协议,每个SNMP代理都直接抛弃与自己协议版本不同的数据报。团体名(Community Name):用于SNMP从代理对SNMP 管理站进行认证;如果网络配置成要求验证时,SNMP从代理将对团体名和管理站的IP地址进行认证,如果失败,SNMP从代理将向管理站发送一个认证失败的Trap消息。协议数据单元(PDU):其中PDU指明了SNMP的消息类型及其相关参数。2. 管理信息库MIBIETF规定的管理信息库MIB(由中定义了可访问的网络设备及其属性,由对象识别符(OID:Object Identifier)唯一指定。MIB是一个树形结构,SNMP协议消息通过遍历SNMP MIB 树形目录中的节点来访问网络中的设备。下图给出了NMS系统中SNMP可访问网络设备的对象识别树(OID:Object Identifier)结构。给出了对一个DS1线路状态进行查询的OID设置例子。SNMP可访问网络设备的对象识别树(OID:Object Identifier)结构3. SNMP的五种消息类型SNMP中定义了五种消息类型:Get-Request、Get-Response、Get-Next-Request、Set-Request 、Trap(1)Get-Request 、Get-Next-Request与Get-ResponseSNMP管理站用Get-Request消息从拥有SNMP代理的网络设备中检索信息,而SNMP 代理则用Get-Response消息响应。Get-Next-Request用于和Get-Request组合起来查询特定的表对象中的列元素。如:首先通过下面的原语获得所要查询的设备的接口数:{iso org(3) dod(6) internet(1) mgmt(2) mib(1) interfaces(2) ifNumber(2)}后再通过下面的原语,进行查询(其中第一次用Get-Request,其后用Get-Next-Request):{iso org(3) dod(6) internet(1) mgmt(2) mib(1) interfaces(2) ifTable(2)}(2)Set-RequestSNMP管理站用Set-Request 可以对网络设备进行远程配置(包括设备名、设备属性、删除设备或使某一个设备属性有效/无效等)。(3)TrapSNMP代理使用Trap向SNMP管理站发送非请求消息,一般用于描述某一事件的发生。SNMP管理信息库MIB管理信息库SNMP MIB指明了网络元素所维持的变量(即能够被管理进程查询和设置的信息)。MIB给出了一个网络中所有可能的被管理对象的集合的数据结构。SNMP的管理信息库采用和域名系统DNS相似的树型结构,它的根在最上面,根没有名字。下图画的是管理信息库的一部分,它又称为对象命名(objectnamingtree)。对象命名(objectnamingtree)SNMP MIB管理信息库的对象命名举例对象命名树的顶级对象有三个,即ISO、ITU-T和这两个组织的联合体。在ISO的下面有4个结点,其中的饿一个(标号3)是被标识的组织。在其下面有一个美国国防部(Department of Defense)的子树(标号是6),再下面就是Internet(标号是1)。在只讨论Internet中的对象时,可只画出Internet以下的子树(图中带阴影的虚线方框),并在Internet结点旁边标注上{1.3.6.1}即可。在Internet结点下面的第二个结点是mgmt(管理),标号是2。再下面是管理信息库,原先的结点名是mib。1991年定义了新的版本MIB-II,故结点名现改为mib-2,其标识为{1.3.6.1.2.1},或{Internet(1) .2.1}。这种标识为对象标识符。最初的结点mib将其所管理的信息分为8个类别,见表1。现在de mib-2所包含的信息类别已超过40个。表1 最初的结点mib管理的信息类别应当指出,SNMP MIB的定义与具体的网络管理协议无关,这对于厂商和用户都有利。厂商可以在产品(如路由器)中包含SNMP代理软件,并保证在定义新的MIB项目后该软件仍遵守标准。用户可以使用同一网络管理客户软件来管理具有不同版本的MIB的多个路由器。当然,一个没有新的MIB项目的路由器不能提供这些项目的信息。这里要提一下SNMP MIB中的对象{1.3.6.1.4.1},即enterprises(企业),其所属结点数已超过3000。例如IBM为11.3.6.1.4.1.2},Cisco为{1.3.6.1.4.1.9},Novell为{1.3.6.1.4.1.23}等。世界上任何一个公司、学校只要用电子邮件发往iana-mib@进行申请即可获得一个结点名。这样各厂家就可以定义自己的产品的被管理对象名,使它能用SNMP进行管理。。

snmp mib的用法

snmp mib的用法

snmp mib的用法SNMP(Simple Network Management Protocol)MIB (Management Information Base)是用于管理网络设备的一种标准协议。

MIB是一种数据库,其中包含了关于网络设备的信息,例如设备的配置、性能统计和状态信息等。

SNMP协议通过MIB来管理网络设备,允许网络管理员监控和控制网络设备。

首先,让我们来看一下SNMP MIB的结构。

SNMP MIB由一组层次结构的对象标识符(OID)组成,每个OID对应一个特定的管理信息。

这些OID按照树状结构进行组织,类似于文件系统中的目录结构,使得管理者可以轻松地定位到所需的信息。

SNMP MIB的用法主要包括以下几个方面:1. 监控,通过SNMP MIB,网络管理员可以监控网络设备的性能和状态信息。

例如,可以使用MIB中的OID来查询设备的CPU利用率、内存使用情况、接口流量等信息。

2. 配置,SNMP MIB也可以用于配置网络设备。

管理员可以使用MIB中的OID来修改设备的配置参数,例如修改路由器的路由表、配置交换机的VLAN等。

3. 告警,通过监控MIB中的特定OID,管理员可以设置告警规则,当设备的某些指标超出预设的阈值时,系统可以自动发送告警通知,以便及时采取措施。

4. 故障诊断,当网络设备出现故障时,管理员可以通过查询MIB中的信息来进行故障诊断,找出故障的原因和位置。

5. 性能优化,通过分析MIB中的性能数据,管理员可以对网络设备进行性能优化,提高网络的稳定性和性能。

总之,SNMP MIB是管理网络设备的重要工具,通过合理利用MIB中的信息,可以帮助管理员更好地监控、配置和优化网络设备,保障网络的正常运行。

实验一 SNMP服务配置 MIBBrowser使用

实验一 SNMP服务配置 MIBBrowser使用

SNMP网管代理设置
另外,在“SNMP Service的属性(本地计算机)”对话框 中配置可以控制访问本机的SNMP代理的主机IP地址,加入 一些允许访问本机代理的网络服务站,如图所示。
实验步骤
1. Windows环境下SNMP服务的安装 2. SNMP网管代理设置 3. SNMP Trap Service服务设置 4. MIBBrowser
SNMP Trap Service服务设置
SNMP Trap Service的配置过程是: 首先打开“控制面板”中“管理工具”的“服务”窗 口,查看有无SNMP Trap Service项目,如果没有,则需 要安装相关的协议与服务软件。如果安装了相关的服务和 协议,则可以对SNMP Trap 进行设置。 设置的参数主要有启动类型(如图所示),登录用户名 与密码、故障恢复参数、Trap 的依存关系等。
SNMP Trap Service服务设置
SNMP Trap Service有时称为SNMP事件 陷阱,通过设置 Trap,进行陷阱时间捕捉 。当网管代理发现设置的值超出设定范围 后,就立即启动自动Trap命令,向网络管 理员报告。Trap不必等到网络管理员发出 查询命令,它往往用于一些紧急事件。
实验步骤
1. Windows环境下SNMP服务的安装 2. SNMP网管代理设置 3. SNMP Trap Service服务设置 4. MIBBrowser
(1)在“控制面板”中打开“管理工具”窗口,双击“服务 ”图标,可以看到本机已启动的各种服务程序。找到SNMP Service项,如图所示,它就是网管代理服务程序,查看此 服务是否已启动。
SNMP Trap Service服务设置

一旦安装并启动了简单网络管理协议 SNMP,系统将打开UDP 161 snmp和 UDP 162 snmptrap两个端口。需要注意 的是,这里使用的是UDP端口,而不是 TCP端口。

DIGI SNMP客户端与MIB文件使用说明书

DIGI SNMP客户端与MIB文件使用说明书

Quick Note 17MIB file creation and basic usage with SNMPclientsSeptember 20161Introduction (3)2Version (3)2.1Corrections (3)3Supported MIBs (4)4SNMP Configuration (5)4.1Setting up Router Specific ID information (5)4.2Checking the SNMP enterprise values. (6)5Get the MIB file from the TransPort (8)5.1Firmware Version 5212 or later (8)5.2Firmware Version up to 5202 (9)5.2.1Get the MIB data from the TransPort (9)5.2.2Generating the MIB file (11)6The basics of using MIB files with SNMP (12)7Configuration and Firmware/Hardware (15)7.1Configuration File (15)7.2Hardware and Firmware (17)This guide details the steps involved in generating a .MIB file for use with an SNMP client.This guide has been written for technically competent personnel who are familiar with the use for DIGI hardware and understand the use of SNMP.Whilst this guide is carried out using the web interface only it is perfectly feasible to carry out each stage at the command line, these commands will be highlighted at the relevant places.2.1CorrectionsRequests for corrections or amendments to this application note are welcome and should be addressed to: *********************Requests for new application notes can be sent to the same address.As well as the Device Generated MIB, described in this quick note, DIGI Transport devices also support the Sarian-Monitor MIB and a number of standard MIBs. A list of supported standard MIBs is provided below. The Sarian Monitor MIB has a restricted set of parameters that you can poll any DIGI Transport device with to retrieve statistics relating to WWAN, Config, PPP and System parameters.The DIGI Transport range of routers supports a number of standard MIBs as well as DIGI Transport MIBs, described above, these MIBs are listed below:The following standard MIBs are supported:SNMP MIB (RFC3418)Interfaces MIB (RFC2233)*IP MIB (RFC2011)IP Forwarding Table MIB (RFC2096)TCP MIB (RFC2012)UDP MIB (RFC2013)VRRP MIB (RFC2787)SNMP MPD MIB (RFC3412)SNMP USM MIB (RFC3414)*** The following groups/tables in RFC2233 are not supported:ifXTable, ifStackTable, ifRcvAddressTable** The following groups/tables in RFC3414 are not supported:usmUserTableDIGI supported MIBs:Device Generated MIBSarian-Monitor MIBPlease note: The Device Generated MIB described in this Quick Note is a MIB that is specific to the serial number, firmware release, firmware build and model number of the unit it was generated from. If the firmware is updated a new MIB file will need to be generated. The same MIB file generated on one router, cannot be used on another router, even if the hardware is identical.4.1Setting up Router Specific ID informationWhen polling the router, it is possible to have the SNMP application be able to identify the device by a unique name and provide location and contact information.Navigate to Configuration > System > Device Identity and setup the details, but enter information that relates to you:Figure 1: Optional System Information ConfigurationNext click ‘Apply’ at the bottom of the page, and then save the new configuration to flash.If configuring this option via a terminal session the commands used are listed below:snmp 0 name < Name to identify your router.>snmp 0 contact <Name of contact>snmp 0 location <Location of device>4.2 Checking the SNMP enterprise values.Check the SNMP Enterprise number and name. Navigate to Configuration > System > General and check the miscellaneous section, the highlighted settings below should be as default:Figure 2: Enterprise number and name entryWhere <enterprise #> is the SNMP enterprise number and <enterpriseName> is the SNMP enterprise name specific to the installation.Please note: If the default enterprise number and name shown above is changed and it is intended to use the Sarian-Monitor MIB, the values in the Sarian-Monitor MIB file will also need changing to the details specific to the installation:sarian OBJECT IDENTIFIER ::= { enterprises 16378 }sarian-monitor OBJECT IDENTIFIER ::= { sarian 10000 }For example if using enterprise number 23134 and enterprise name digitransport change the above to: digitransport OBJECT IDENTIFIER ::= { enterprises 23134 }sarian-monitor OBJECT IDENTIFIER ::= { digitransport 10000 }Then save the file and reload into the SNMP management system.Please Note: If the enterprise number is changed, the Digi Transport will need to be rebooted for the new value to take effect.Please Note:Whenever the Enterprise name and Number are changed, these must be identical and consistent across all MIBs generated or loaded into the management system. If the values in either of the DIGI Transport MIBs correspond with other MIB values in the organisation, the responses received may not be correct when polling through the devices via the SNMP management system. Using the defaults above should not lead to any such conflicts.5.1Firmware Version 5212 or laterSince firmware version 5212, the MIB file is automatically generated and it can be directly downloaded from the device. Find below an example of downloading the MIB file for a WR21 via an FTP client:5.2Firmware Version up to 5202In older release (up to and including 5202) the MIB file needs to be manually generated following the steps described in this section.5.2.1Get the MIB data from the TransPortThe next step is to get the DIGI Transport to output the MIB data. Navigate to Administration - Execute a command page typ e ‘MIB print’ in the text box. Then click ‘Execute’.Figure 3: Mibprint exampleIf connected to a terminal session then the same command can simply be issued. At the command prompt (listed below):mibprintAn example of the output received from the web interface when the command has been input is listed below.Figure 4: Mibprint outputThere is a large output, this should then be copied into a text file, and saved into a folder for use in the next step.Please note:If using Firefox web browser this is done slightly differently. Right click on the frame containing the output select This frame → View Frame Source (as shown below), then copy and paste from the window that is opened.When pasting the output into a text file, make sure that the output retains its formatting with carriage returns <CR>. If the output is pasted and has wrapping enabled or is all on one line, the rest of this procedure will fail.Figure 5: How to save the output5.2.2Generating the MIB fileIn order to generate the MIB file from the text file, download the correct MIB.exe file from the DIGI website. This can be found at:/downloads/mibexePlease note: There are two versions of the MIB.exe file, MIB1exe.zip and MIB2.exe.zip.MIB1exe.zip should be used for firmware versions up to 4832MIB2exe.zip should be used for firmware releases after 4832There is included in each .zip file a copy of the Sarian-Monitor MIB file that should work for most DIGI Transport devices.When the zip is downloaded, extract it to the same folder where the text file is saved. Open the command prompt and browse to the folder containing the MIB2exe.exe file and the previously created text file. Use the MIB2exe.exe file to generate the .MIB file from the text file. The command is listed below:MIB2exe.exe <text file name>.txt <new MIB file name>.MIBWhere <text file name> is the name of the text file and <new MIB file> is the name of the .MIB file being created. In the example below both values are WR41. An example of the typical output for this can be seen below.Figure 6: Compile the MIBThis will have generated a .MIB file in the folder in which the MIB2exe.exe and the initial .txt file was stored. This can then be used with an SNMP client.Please note:The same device with a different firmware revision and/or different features enabled will need a different MIB file creating; this is due to additional features that may be available on different unit and the unique values attributed to firmware version, firmware build and model number that forms part of the initial MIB tree.In order to monitor the device with an SNMP client SNMP users need to be configured. Navigate to Configuration - Remote Management > SNMP > SNMP Users > SNMP User 0.The below example uses the community name: Public.Figure 7: Setup the community stringIf you want also to set some configuration setting, you need to set the SNMP user access as read and write as in the example above.Once this has been set, use a MIB client to poll the DIGI Transport device for required information. Usually in the MIB browser client you need to set the IP address of the TransPort and the community name:Below is a screenshot of the output of a get for the Device Identity settings that have been setup for this device.∙In the left hand pane, the tree that the MIB tool has built from the MIB that was generated above.∙In the middle pane, a query for OIDs related to SNMP configuration is performed and results are shown∙The results show what we have configured in previous sectionsFigure 8: Example reading an OID from TransPortThe MIB file can be also used to set a value for a specific OID with an SNMP SET, the example below shows how to change the SNMP name configured above.If also the SNMP user has been configured with read and write access, the SET will succeed:And performing another SNMP GET on this OID, the result will be the new value:7.1Configuration FileThis is the configuration used for the purpose of this Quick Note. The CLI commands relevant for the configuration of SNMP are highlighted:eth 0 IPaddr "192.168.1.1"addp 0 enable ONlapb 0 ans OFFlapb 0 tinact 120lapb 1 tinact 120lapb 3 dtemode 0lapb 4 dtemode 0lapb 5 dtemode 0lapb 6 dtemode 0ip 0 cidr ONdef_route 0 ll_ent "ppp"def_route 0 ll_add 1dhcp 0 IPmin "192.168.1.100"dhcp 0 respdelms 500dhcp 0 mask "255.255.255.0"dhcp 0 gateway "192.168.1.1"dhcp 0 DNS "192.168.1.1"sntp 0 server ""snmp 0 name "DIGI Transport Router SNMP Demo"snmp0contact"*********************"snmp 0 location "Munich, DE"snmpuser 0 eCommunity "CCp0VkxP"snmpuser 0 access "rw"ppp 0 timeout 300ppp 1 name "W-WAN"ppp 1 phonenum "*98*3#"ppp 1 username "username"ppp 1 epassword "KD5lSVJDVVg="ppp 1 IPaddr "0.0.0.0"ppp 1 timeout 0ppp 1 use_modem 1ppp 1 aodion 1ppp 1 autoassert 1ppp 1 r_chap OFFppp 3 defpak 16ppp 4 defpak 16web 0 prelogin_info ONweb 0 showgswiz ONftpcli 0 hostname ""ftpcli 0 directory "support/firmware/transport/MC7354_carrier_firmware"modemcc 0 info_asy_add 4modemcc 0 apn "none"modemcc 0 link_retries 30modemcc 0 stat_retries 30modemcc 0 sms_interval 1modemcc 0 sms_access 1modemcc 0 sms_concat 0modemcc 0 apn_2 "none"modemcc 0 link_retries_2 30modemcc 0 stat_retries_2 30modemcc 0 sms_interval_2 1 modemcc 0 sms_access_2 1 modemcc 0 sms_concat_2 0ana 0 l1on ONana 0 lapdon 0ana 0 asyon 1ana 0 logsize 45cmd 0 unitid "ss%s>"cmd 0 cmdnua "99"cmd 0 hostname "digi.router" cmd 0 asyled_mode 2cmd 0 tremto 1200cmd 0 rcihttp ONuser 0 access 0user 1 name "username"user 1 epassword "KD5lSVJDVVg=" user 1 access 0user 2 access 0user 3 access 0user 4 access 0user 5 access 0user 6 access 0user 7 access 0user 8 access 0user 9 access 0local 0 transaccess 2sslsvr 0 certfile "cert01.pem" sslsvr 0 keyfile "privrsa.pem" ssh 0 hostkey1 "privSSH.pem" ssh 0 nb_listen 5ssh 0 v1 OFFcloud 0 ssl ON7.2Hardware and FirmwareHere are the Firmware and Hardware details of the WR21 used in the testing of this QN: Digi TransPort WR21-L42B-DE1-XX Ser#:212303Software Build Ver5.2.11.4. Jun 5 2015 04:39:32 WWARM Bios Ver 7.42u v43 454MHz B987-M995-F80-O8140,0 MAC:00042d039f68 Async Driver Revision: 1.19 Int clkEthernet Port Isolate Driver Revision: 1.11Firewall Revision: 1.0EventEdit Revision: 1.0Timer Module Revision: 1.1(B)USBHOST Revision: 1.0L2TP Revision: 1.10PPTP Revision: 1.00TACPLUS Revision: 1.00MODBUS Revision: 0.00RealPort Revision: 0.00MultiTX Revision: 1.00LAPB Revision: 1.12X25 Layer Revision: 1.19MACRO Revision: 1.0PAD Revision: 1.4X25 Switch Revision: 1.7V120 Revision: 1.16TPAD Interface Revision: 1.12GPS Revision: 1.0TELITUPD Revision: 1.0SCRIBATSK Revision: 1.0BASTSK Revision: 1.0PYTHON Revision: 1.0CLOUDSMS Revision: 1.0TCP (HASH mode) Revision: 1.14TCP Utils Revision: 1.13PPP Revision: 5.2WEB Revision: 1.5SMTP Revision: 1.1FTP Client Revision: 1.5FTP Revision: 1.4IKE Revision: 1.0PollANS Revision: 1.2PPPOE Revision: 1.0BRIDGE Revision: 1.1MODEM CC (SIERRA LTE) Revision: 5.2FLASH Write Revision: 1.2Command Interpreter Revision: 1.38SSLCLI Revision: 1.0OSPF Revision: 1.0BGP Revision: 1.0QOS Revision: 1.0PWRCTRL Revision: 1.0RADIUS Client Revision: 1.0SSH Server Revision: 1.0SCP Revision: 1.0SSH Client Revision: 1.0CERT Revision: 1.0LowPrio Revision: 1.0Tunnel Revision: 1.2OVPN Revision: 1.2TEMPLOG Revision: 1.0 QDL Revision: 1.0。

MIB浏览与SNMP操作

MIB浏览与SNMP操作

MIB浏览与SNMP操作MIB浏览与SNMP操作是指使用管理信息库(MIB)和简单网络管理协议(SNMP)来监控和管理网络设备的过程。

MIB是一种描述网络设备的数据结构和属性的标准格式,SNMP是一种网络协议,用于收集和管理网络设备的信息。

一旦了解了MIB树的结构,就可以使用SNMP操作来监控和管理网络设备。

SNMP操作包括读取、写入和修改网络设备的属性值,以及重启设备、收集性能数据等操作。

具体来说,使用SNMP操作可以实现以下功能:1.获取设备的属性值:通过SNMP操作可以获取设备的各种属性值,如接口状态、CPU利用率、内存使用情况等。

这些属性值可以帮助管理员了解设备当前的状态和性能。

2.配置设备:通过SNMP操作可以修改设备的配置,比如设置网络接口的IP地址、启用或禁用一些功能等。

这使得管理员可以远程管理设备,而无需直接访问设备。

3.重启设备:通过SNMP操作可以重启设备。

这在一些情况下非常有用,比如设备出现故障或需要应用配置更改时。

4.收集性能数据:通过SNMP操作可以定期收集设备的性能数据,比如带宽利用率、丢包率等。

这些数据可以用于性能监控和故障诊断。

5.发送警报信息:通过SNMP操作可以设置警报规则,当设备达到一些预设的阈值时,可以向管理员发送警报信息。

这使得管理员可以及时采取措施,防止设备故障或网络中断。

总之,MIB浏览与SNMP操作是网络管理中的重要工具,它们可以帮助管理员了解和管理网络设备。

通过浏览MIB树和使用SNMP操作,管理员可以获得设备的详细信息,并对设备进行配置和监控,以确保网络的正常运行。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

SNMP MIB完整手册
/art/201007/209214.htm
SNMP MIB是SNMP协议软件中主要的一个模块。那么MIB的主要功能就是管理信息库。那么一些常用的代码编辑,我们在前面的文章也有一些涉及。但是不少朋友还是对于SNMP MIB不理解。为此,我们整理了下面的文章帮助大家来学习这部分内容。
最近要做一些服务器和设备的监控, 自带的cacti模板已不能满足需求, 经过一天调试, 目前已实现了bind9 mysql bind等数据流量的分析(其实也就是用脚本取数据,最后用rrdtool 画图出来), 但学习的过程中, 发现不大了解SNMP MIB概念, google了一下,下面的文章应该能解答一部分与我有同样问题的朋友们(我简单进行了排版整理)
SNMP协议详解
简单网络管理协议(SNMP:Simple Network Management Protocol)是由互联网工程任务组(IETF:Internet Engineering Task Force )定义的一套网络管理协议。该协议基于简单网关监视协议(SGMP:Simple Gateway Monitor Protocol)。利用SNMP,一个管理工作站可以远程管理所有支持这种协议的网络设备,包括监视网络状态、修改网络设备配置、接收网络事件警告等。虽然SNMP开始是面向基于IP的网络管理,但作为一个工业标准也被成功用于电话网络管理。
1. SNMP基本原理
SNMP采用了Client/Server模型的特殊形式:代理/管理站模型。对网络的管理与维护是通过管理工作站与SNMP代理间的交互工作完成的。每个SNMP从代理负责回答SNMP管理工作站(主代理)关于SNMP MIB定义信息的各种查询。下图是NMS公司网络产品中SNMP 协议的实现模型。
SNMP协议的实现模型
SNMP代理和管理站通过SNMP协议中的标准消息进行通信,每个消息都是一个单独的数据报。SNMP使用UDP(用户数据报协议)作为第四层协议(传输协议),进行无连接操作。SNMP消息报文包含两个部分:SNMP报头和协议数据单元PDU。数据报结构如下图:
数据报结构
版本识别符(version identifier):确保SNMP代理使用相同的协议,每个SNMP代理都直接抛弃与自己协议版本不同的数据报。团体名(Community Name):用于SNMP从代理对SNMP 管理站进行认证;如果网络配置成要求验证时,SNMP从代理将对团体名和管理站的IP地址进行认证,如果失败,SNMP从代理将向管理站发送一个认证失败的Trap消息。协议数据单元(PDU):其中PDU指明了SNMP的消息类型及其相关参数。
2. 管理信息库MIB
IETF规定的管理信息库MIB(由中定义了可访问的网络设备及其属性,由对象识别符(OID:Object Identifier)唯一指定。MIB是一个树形结构,SNMP协议消息通过遍历SNMP MIB 树形目录中的节点来访问网络中的设备。下图给出了NMS系统中SNMP可访问网络设备的对象识别树(OID:Object Identifier)结构。给出了对一个DS1线路状态进行查询的OID设置例子。
SNMP可访问网络设备的对象识别树(OID:Object Identifier)结构
3. SNMP的五种消息类型
SNMP中定义了五种消息类型:Get-Request、Get-Response、Get-Next-Request、Set-Request 、Trap
(1)Get-Request 、Get-Next-Request与Get-Response
SNMP管理站用Get-Request消息从拥有SNMP代理的网络设备中检索信息,而SNMP 代理则用Get-Response消息响应。Get-Next-Request用于和Get-Request组合起来查询特定的表对象中的列元素。如:首先通过下面的原语获得所要查询的设备的接口数:
{iso org(3) dod(6) internet(1) mgmt(2) mib(1) interfaces(2) ifNumber(2)}
后再通过下面的原语,进行查询(其中第一次用Get-Request,其后用Get-Next-Request):
{iso org(3) dod(6) internet(1) mgmt(2) mib(1) interfaces(2) ifTable(2)}
(2)Set-Request
SNMP管理站用Set-Request 可以对网络设备进行远程配置(包括设备名、设备属性、删除设备或使某一个设备属性有效/无效等)。
(3)Trap
SNMP代理使用Trap向SNMP管理站发送非请求消息,一般用于描述某一事件的发生。
SNMP管理信息库MIB
管理信息库SNMP MIB指明了网络元素所维持的变量(即能够被管理进程查询和设置的信息)。MIB给出了一个网络中所有可能的被管理对象的集合的数据结构。SNMP的管理信息库采用和域名系统DNS相似的树型结构,它的根在最上面,根没有名字。下图画的是管理信息库的一部分,它又称为对象命名(objectnamingtree)。
对象命名(objectnamingtree)
SNMP MIB管理信息库的对象命名举例
对象命名树的顶级对象有三个,即ISO、ITU-T和这两个组织的联合体。在ISO的下面有4个结点,其中的饿一个(标号3)是被标识的组织。在其下面有一个美国国防部(Department of Defense)的子树(标号是6),再下面就是Internet(标号是1)。在只讨论Internet中的对象时,可只画出Internet以下的子树(图中带阴影的虚线方框),并在Internet结点旁边标注上{1.3.6.1}即可。在Internet结点下面的第二个结点是mgmt(管理),标号是2。再下面是管理信息库,原先的结点名是mib。1991年定义了新的版本MIB-II,故结点名现改为mib-2,其标识为{1.3.6.1.2.1},或{Internet(1) .2.1}。这种标识为对象标识符。
最初的结点mib将其所管理的信息分为8个类别,见表1。现在de mib-2所包含的信息类别已超过40个。
表1 最初的结点mib管理的信息类别
应当指出,SNMP MIB的定义与具体的网络管理协议无关,这对于厂商和用户都有利。厂商可以在产品(如路由器)中包含SNMP代理软件,并保证在定义新的MIB项目后该软件仍遵守标准。用户可以使用同一网络管理客户软件来管理具有不同版本的MIB的多个路由器。当然,一个没有新的MIB项目的路由器不能提供这些项目的信息。
这里要提一下SNMP MIB中的对象{1.3.6.1.4.1},即enterprises(企业),其所属结点数已超过3000。例如IBM为11.3.6.1.4.1.2},Cisco为{1.3.6.1.4.1.9},Novell为{1.3.6.1.4.1.23}等。世界上
任何一个公司、学校只要用电子邮件发往iana-mib@进行申请即可获得一个结点名。这样各厂家就可以定义自己的产品的被管理对象名,使它能用SNMP进行管理。。

相关文档
最新文档