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.