Cisco, Huawei Switch OID get

Source: Internet
Author: User
Tags snmp snmp object snmpwalk



To monitor the switch port traffic, status, CPU utilization, memory status, temperature, etc., the key is to find the corresponding OID, this article will discuss with you how to get Cisco and Huawei Switch OID, the method is the same, we can extrapolate.



One, the acquisition of the Cisco OID



① used by the website https://www.cisco.com/c/en/us/support/web/tools-catalog.html



Find the MIB Locator and click inside



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/B1/wKioL1dejU7x9cy7AACszT1R3tY617.jpg "/>



② Select the SNMP Object Navigator and log in to the Cisco account



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/82/B3/wKiom1dejD7zWK_JAAENZ5e-E30076.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/82/B1/wKioL1dejU-i7H3rAADP5nGDpcE721.jpg "/>



③ in the SNMP Object Navigator, select MiB SUPPORT-SW, enter the iOS name of the switch that will look for the OID into the Image-name box, click Search



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/B3/wKiom1dejD-zBfXuAAFESgDi8KA716.jpg "/>



Will come out of the switch all MIB libraries



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/B3/wKiom1dejEDSwlhwAADq1RPqf2Q323.jpg "/>



④ Select the corresponding V1 or V2 based on the SNMP version you are using to find the corresponding OID library, here I take the environment OID as an example.



Find Cisco-envmon-mib, click on the back of V2



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/B1/wKioL1dejVHz0eKOAAEqtLuJD9M387.jpg "/>



Press ctrl+f, look for temperature,copy ciscoenvmontemperaturestatusvalue, note to find the value must be in front of Object-type



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/B1/wKioL1dejVHBkDemAAFm_uHaoIg423.jpg "/>



⑤ in the SNMP object Navigator, select Translate/browse, paste the value you just copied into the Object name, click Translate, The corresponding OID value is 1.3.6.1.4.1.9.9.13.1.3.1.3



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/B3/wKiom1dejEGiqECOAAEC5GjbUL0196.jpg "/>



⑥ uses the Snmpwalk command to get the full value of the OID in a Linux system, and the previous step is only part of the OID.



Command: SNMP v 2c c snmp-ready-value IP. 1.3.6.1.4.1.9.9.13.1.3.1.3, get the full OID for 1.3.6.1.4.1.9.9.13.1.3.1.3.1008



1.3.6.1.4.1.9.9.13.1.3.1.3 Front plus one "." Or do not add, the effect is the same.



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/B3/wKiom1dejEKAX3jvAABNXZ_sfvg483.jpg "/>



Information obtained from the Snmpwalk command can be known that the switch has a temperature of 39 degrees and can be checked on the switch with the command show env temperature status



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/B1/wKioL1dejVKi9toiAABNZ5jGL1k464.jpg "/>



You can find a switch to the iOS to try to find the CPU and memory, see what I am looking for is not the same.



. 1.3.6.1.4.1.9.9.48.1.1.1.6.1 Ciscomemorypoolfree



. 1.3.6.1.4.1.9.9.48.1.1.1.5.1 ciscomemorypoolused



. 1.3.6.1.4.1.9.2.1.57.0 CPU utilization for one minute



. 1.3.6.1.4.1.9.2.1.58.0 CPU utilization for five minutes



. 1.3.6.1.4.1.9.2.1.56.0 CPU utilization for five seconds



Second, Huawei OID acquisition



Here, for example, Huawei 5700, the software version number is v200r001c00spc300.



① opens the technical support document to find the switch in the Huawei website S5700



or direct http://support.huawei.com/enterprise/productNewOffering?idAbsPath=7919710|9856733|7923144|6691579&pid= 6691579&productname=s5700



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/82/B3/wKiom1dejELgJzfiAADpJrXogMk518.jpg "/>



② find V200R001C00 related MIB library



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/82/B1/wKioL1dejVOB5nUvAACT7boHCIs075.jpg "/>



③ If you can't open it directly, you need to download it to your computer.



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/B3/wKiom1dejEPiOfkAAACkovjLaG8029.jpg "/>



④ the downloaded MIB Library to open, find the detailed description in Huawei-cpu-mib, find the OID prefix is 1.3.6.1.4.1.2011.6.3.4.1



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/B1/wKioL1dejVTQEIYmAAGBjKK2v0c833.jpg "/>



⑤ uses the Snmpwalk command to get the full value of the OID in a Linux system, and the previous step is only part of the OID.



Command: SNMP v 2c c snmp-ready-value IP 1.3.6.1.4.1.2011.6.3.4.1, get the full OID for



1.3.6.1.4.1.2011.6.3.4.1.2.0.0.0 CPU utilization for five seconds



1.3.6.1.4.1.2011.6.3.4.1.3.0.0.0 CPU utilization for one minute



1.3.6.1.4.1.2011.6.3.4.1.4.0.0.0 CPU utilization for five minutes



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/B1/wKioL1dejVTjs6zTAAB1TLiT3vc255.jpg "/> The information obtained from the Snmpwalk command can be known that the CPU utilization of the switch is 8% and can be checked on the switch with the command dis cpu-usage check 650) this.width=650; "Src=" http://s3.51cto.com /wyfs02/m01/82/b3/wkiom1dejetjw6hqaabtw1fmopw160.jpg "/>






Thank you for opening this blog post, and always adhere to see here, if you feel helpful, please do not skimp on the lower right corner of the praise.





This article from "Bit Technology" blog, reproduced please contact the author!



Cisco, Huawei Switch OID get


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.