有效的 MIB 物件格式

有效的 MIB 物件格式

文字-慣例v2 TEXTUAL-CONVENTION (TC) 具有下列語法,其中物件名稱後面接著 ::= 項目,然後是 TEXTUAL-CONVENTION。 後面接著數個區段,並附加 SYNTAX 定義。

DisplayString ::= TEXTUAL-CONVENTION

DISPLAY-HINT "255a"

STATUS current

DESCRIPTION "Represents textual information taken from the NVT SCII 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 notwith CR.) Any object defined using this syntax may not exceed 255 characters in length."

SYNTAX OCTET STRING (SIZE (0..255))

v1 TC 由物件名稱後面接著 ::= 項目組成,然後附加有效的 SYNTAX 定義。 例如:

DisplayString ::= OCTET STRING

這兩個物件都存在於 MIB 樹狀結構之外,因此不是 MIB 中的物件。 它們代表可以定義語法的格式。 他們沒有 OID。 您可以按一下 檢視 下拉清單,然後選取 文字-使用慣例,在個別過濾器中的「 MIB 模組 」視圖中檢視它們。

相关推荐