hwOntUpdateState
HUAWEI-LOAD-BACKUP-MIB ·
.1.3.6.1.4.1.2011.6.6.1.7.1.5
Object
column SNMPv2-TCDisplayString
ONT update state.
data structure: ONT IP + ONT update state
----------------------------------------------------------------------
| ONT NUM | ONT IP | ONT update | ONT IP | ONT update | _ _ |
| (2B) | (4B) | state (1B) | (2B) | state(1B) | |
----------------------------------------------------------------------
state enum:
Loading is successful(1): The ont-packetfile is loaded to the ONT successfully.
Loading fails(2): Loading the ont-packetfile to the ONT failed.
Not upgrade(3): Upgrading the ONT does not start.
Loading(4): The ONT is being loaded with ont-packetfile.
Resetting(5): The ONT is being reset.
Upgrade fails(6): Upgrading the ONT fails.
Upgrade is successful(7): Upgrading the ONT is successful.
Because of the restrictions on the SNMP packet, the packet of up to 8 KB can be transmitted.
When the size of the packet to be reported exceeds 8 KB, the packet must be compressed.
The compress format of the packet is shown in the following figure.
-----------------------------------------------------------------------
| DATA-LENGTH | FLAG | TLV-NUM | TYPE | LEN | CRC | |
------------------------------------------------------------ |
| |
| |
| |
-----------------------------------------------------------------------
In the compressed packet:
DATA-LENGTH occupies four bytes to store the whole length of the file, including the header structure.
FLAG occupies two bytes to store the flag, which indicates the format of the file contents.
In this compressed packet, the flag indicates that the format of the file contents is compressed.
0xFEFE indicates compress and 0 indicates non-compress.
TLV-NUM indicates the number of TLVs that the file carries. In this compressed packet, TLV-NUM is 1,
indicating the CRC value of the compressed content. The following continuous bytes TYPE, LEN, and CRC
are data in the TLV format. Each of TYPE, LEN, and CRC occupies two bytes. In this compressed packet,
TYPE, LEN, and CRC record the CRC value of the compressed content. TYPE indicates the CRC type.
LEN indicates the number of bytes that the CRC occupies and the actual value is 2.
CRC stores the CRC value of the compressed content.
The actual returned content is compressed in the .zip format and stored in the final field of compressed
content.
Context
- MIB
- HUAWEI-LOAD-BACKUP-MIB
- OID
.1.3.6.1.4.1.2011.6.6.1.7.1.5- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwAgentUpdateOntEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'HUAWEI-LOAD-BACKUP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-LOAD-BACKUP-MIB::hwOntUpdateState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-LOAD-BACKUP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-LOAD-BACKUP-MIB::hwOntUpdateState.<hwOntFrameIndex>.<hwOntSlotIndex>.<hwOntPortIndex>.<hwUpdateOntIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-LOAD-BACKUP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-LOAD-BACKUP-MIB::hwOntUpdateState'
Syntax
- Source
- SNMPv2-TCDisplayString
- Base type
OctetString- Display format
255a
Type Description
Represents textual information taken from the NVT ASCII
character set, as defined in pages 4, 10-11 of RFC 854.
To summarize RFC 854, the NVT ASCII repertoire specifies:
- the use of character codes 0-127 (decimal)
- the graphics characters (32-126) are interpreted as
US ASCII
- NUL, LF, CR, BEL, BS, HT, VT and FF have the special
meanings specified in RFC 854
- the other 25 codes have no standard interpretation
- the sequence 'CR LF' means newline
- the sequence 'CR NUL' means carriage-return
- an 'LF' not preceded by a 'CR' means moving to the
same column on the next line.
- the sequence 'CR x' for any x other than LF or NUL is
illegal. (Note that this also means that a string may
end with either 'CR LF' or 'CR NUL', but not with CR.)
Any object defined using this syntax may not exceed 255
characters in length.
Values & Constraints
Type Constraints
range: 0..255