phpday 2027 - Call for Papers

The Snmp\StringOutput Enum

(PHP 8 >= 8.6.0)

Вступ

The Snmp\StringOutput enum lists the formats in which the Net-SNMP library prints string values. It is accepted by snmp_set_string_output_format() and SNMP::setStringOutputFormat().

The format only applies to string values whose MIB object has no DISPLAY-HINT; values that have one are always printed according to it.

Кородкий огляд переліку

namespace Snmp;
enum StringOutput
{
case Guess ; // Print the string as text if it is printable, and as a hexadecimal string otherwise. This is the default.

case Ascii ; // Always print the string as text. Corresponds to the -Oa command-line option of Net-SNMP.

case Hex ; // Print the string as a hexadecimal string. This is ignored when the object has a DISPLAY-HINT. Corresponds to the -Ox command-line option of Net-SNMP.

}
+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top