Snmp oid Introduction

Source: Internet
Author: User
Tags snmp snmp object snmp oid what snmp

What is oId? This is what SNMP developers must first understand.

An SNMP object identifier (OID) is a value defined in a specific MIB mode to define a specific SNMP target in the MIB database. SNMP oid is the period in which the number of the demarcation sequence forms A. B. C... x. y. Z. It is a unique identifier for a project of information, and is part of a MIB. Typical oids can have names related to them. Oids are naturally classified. Therefore, 1.2.3 appears before 1.3 but after 1.2. The first part of the oId is allocated by the association, and each enterprise has its own oid id.

Similar OID definition method:

Oid oid_fan_speed [] = {hardware, 3, 2, 1, 2 };
Oid oid_power_voltage [] = {hardware, 5, 2, 1, 2}; // 3
Oid oid_mlb_temprature [] = {hardware, 6, 2, 1, 2}; // 3
Oid oid_hdd_status [] = {HDD, 2, 1, 8, 0 };
Oid oid_ecc_status [] = {hardware, 7, 2, 1, 2}; // 3
Oid oid_bat_voltage [] = {hardware, 8, 2, 1, 0}; // 3
Oid oid_dg_status [] = {DG, 2, 1, 7, 0 };
Oid oid_snap_status [] = {VD, 2, 1, 7, 0 };
Oid oid_vd_status [] = {VD, 2, 1, 7, 0 };
Oid oid_ups_power [] = {hardware, 4,0 };
Oid oid_fail_over_back [] = {system, 0, 0 };

Hardware is also defined by itself.

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.