php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
SNMP Class Reference

Public Member Functions

 __construct (int $version, string $hostname, string $community, int $timeout=-1, int $retries=-1)
 
 close ()
 
 setSecurity (string $securityLevel, string $authProtocol="", string $authPassphrase="", string $privacyProtocol="", string $privacyPassphrase="", string $contextName="", string $contextEngineId="")
 
 get (array|string $objectId, bool $preserveKeys=false)
 
 getnext (array|string $objectId)
 
 walk (array|string $objectId, bool $suffixAsKey=false, int $maxRepetitions=-1, int $nonRepeaters=-1)
 
 set (array|string $objectId, array|string $type, array|string $value)
 
 getErrno ()
 
 getError ()
 

Data Fields

const int VERSION_1 = UNKNOWN
 
const int VERSION_2c = UNKNOWN
 
const int VERSION_2C = UNKNOWN
 
const int VERSION_3 = UNKNOWN
 
const int ERRNO_NOERROR = UNKNOWN
 
const int ERRNO_ANY = UNKNOWN
 
const int ERRNO_GENERIC = UNKNOWN
 
const int ERRNO_TIMEOUT = UNKNOWN
 
const int ERRNO_ERROR_IN_REPLY = UNKNOWN
 
const int ERRNO_OID_NOT_INCREASING = UNKNOWN
 
const int ERRNO_OID_PARSING_ERROR = UNKNOWN
 
const int ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN
 
array $info
 
int $max_oids
 
int $valueretrieval
 
bool $quick_print
 
bool $enum_print
 
int $oid_output_format
 
bool $oid_increasing_check
 
int $exceptions_enabled
 

Detailed Description

Definition at line 184 of file snmp.stub.php.

Constructor & Destructor Documentation

◆ __construct()

SNMP::__construct ( int $version,
string $hostname,
string $community,
int $timeout = -1,
int $retries = -1 )

Definition at line 222 of file snmp.stub.php.

Member Function Documentation

◆ close()

SNMP::close ( )

@tentative-return-type

Definition at line 225 of file snmp.stub.php.

◆ get()

SNMP::get ( array|string $objectId,
bool $preserveKeys = false )

@tentative-return-type

Definition at line 234 of file snmp.stub.php.

◆ getErrno()

SNMP::getErrno ( )

@tentative-return-type

Definition at line 246 of file snmp.stub.php.

◆ getError()

SNMP::getError ( )

@tentative-return-type

Definition at line 249 of file snmp.stub.php.

◆ getnext()

SNMP::getnext ( array|string $objectId)

@tentative-return-type

Definition at line 237 of file snmp.stub.php.

◆ set()

SNMP::set ( array|string $objectId,
array|string $type,
array|string $value )

@tentative-return-type

Definition at line 243 of file snmp.stub.php.

◆ setSecurity()

SNMP::setSecurity ( string $securityLevel,
string $authProtocol = "",
string $authPassphrase = "",
string $privacyProtocol = "",
string $privacyPassphrase = "",
string $contextName = "",
string $contextEngineId = "" )

@tentative-return-type

Definition at line 228 of file snmp.stub.php.

◆ walk()

SNMP::walk ( array|string $objectId,
bool $suffixAsKey = false,
int $maxRepetitions = -1,
int $nonRepeaters = -1 )

@tentative-return-type

Definition at line 240 of file snmp.stub.php.

Field Documentation

◆ $enum_print

bool SNMP::$enum_print

Definition at line 217 of file snmp.stub.php.

◆ $exceptions_enabled

int SNMP::$exceptions_enabled

Definition at line 220 of file snmp.stub.php.

◆ $info

array SNMP::$info

@readonly

Definition at line 213 of file snmp.stub.php.

◆ $max_oids

int SNMP::$max_oids

Definition at line 214 of file snmp.stub.php.

◆ $oid_increasing_check

bool SNMP::$oid_increasing_check

Definition at line 219 of file snmp.stub.php.

◆ $oid_output_format

int SNMP::$oid_output_format

Definition at line 218 of file snmp.stub.php.

◆ $quick_print

bool SNMP::$quick_print

Definition at line 216 of file snmp.stub.php.

◆ $valueretrieval

int SNMP::$valueretrieval

Definition at line 215 of file snmp.stub.php.

◆ ERRNO_ANY

const int SNMP::ERRNO_ANY = UNKNOWN

@cvalue PHP_SNMP_ERRNO_ANY

Definition at line 198 of file snmp.stub.php.

◆ ERRNO_ERROR_IN_REPLY

const int SNMP::ERRNO_ERROR_IN_REPLY = UNKNOWN

@cvalue PHP_SNMP_ERRNO_ERROR_IN_REPLY

Definition at line 204 of file snmp.stub.php.

◆ ERRNO_GENERIC

const int SNMP::ERRNO_GENERIC = UNKNOWN

@cvalue PHP_SNMP_ERRNO_GENERIC

Definition at line 200 of file snmp.stub.php.

◆ ERRNO_MULTIPLE_SET_QUERIES

const int SNMP::ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN

@cvalue PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES

Definition at line 210 of file snmp.stub.php.

◆ ERRNO_NOERROR

const int SNMP::ERRNO_NOERROR = UNKNOWN

@cvalue PHP_SNMP_ERRNO_NOERROR

Definition at line 196 of file snmp.stub.php.

◆ ERRNO_OID_NOT_INCREASING

const int SNMP::ERRNO_OID_NOT_INCREASING = UNKNOWN

@cvalue PHP_SNMP_ERRNO_OID_NOT_INCREASING

Definition at line 206 of file snmp.stub.php.

◆ ERRNO_OID_PARSING_ERROR

const int SNMP::ERRNO_OID_PARSING_ERROR = UNKNOWN

@cvalue PHP_SNMP_ERRNO_OID_PARSING_ERROR

Definition at line 208 of file snmp.stub.php.

◆ ERRNO_TIMEOUT

const int SNMP::ERRNO_TIMEOUT = UNKNOWN

@cvalue PHP_SNMP_ERRNO_TIMEOUT

Definition at line 202 of file snmp.stub.php.

◆ VERSION_1

const int SNMP::VERSION_1 = UNKNOWN

@cvalue SNMP_VERSION_1

Definition at line 187 of file snmp.stub.php.

◆ VERSION_2C

const int SNMP::VERSION_2C = UNKNOWN

@cvalue SNMP_VERSION_2c

Definition at line 191 of file snmp.stub.php.

◆ VERSION_2c

const int SNMP::VERSION_2c = UNKNOWN

@cvalue SNMP_VERSION_2c

Definition at line 189 of file snmp.stub.php.

◆ VERSION_3

const int SNMP::VERSION_3 = UNKNOWN

@cvalue SNMP_VERSION_3

Definition at line 193 of file snmp.stub.php.


The documentation for this class was generated from the following file: