\SNMPHelper

Ubilling SNMP abstraction class

Synopsis

class SNMPHelper {
  • // constants
  • const CACHE_PATH = 'exports/';
  • const EX_NOT_IMPL = 'NOT_IMPLEMENTED_MODE';
  • const EX_WRONG_DATA = 'WRONG_DATA_FORMAT_RECEIVED';
  • const OPTION_DEBUG = 'SNMP_DEBUG_MODE';
  • const LOG_OIDS = 'exports/snmpdebug_oids.log';
  • const LOG_COMMANDS = 'exports/snmpdebug_commands.log';
}

Constants

Name Value
CACHE_PATH 'exports/'
EX_NOT_IMPL 'NOT_IMPLEMENTED_MODE'
EX_WRONG_DATA 'WRONG_DATA_FORMAT_RECEIVED'
OPTION_DEBUG 'SNMP_DEBUG_MODE'
LOG_OIDS 'exports/snmpdebug_oids.log'
LOG_COMMANDS 'exports/snmpdebug_commands.log'

Members

protected

  • $altCfg — array
    System-wide alter.ini config as array
  • $backgroundbool
    System snmpwalk background multi-threaded mode
  • $cacheTime — int
    SNMP raw data caching timeout in minutes
  • $debugbool
    Debugging mode flag
  • $mode — string
    Pre-configured SNMP work mode - system/native/class
  • $pathSet — string
    System snmpset binary path with -On and version params
  • $pathWalk — string
    System snmpwalk binary path with -On and version params
  • $retriesNative — int
    Native PHP snmp functions retries
  • $timeoutNative — int
    Native PHP snmp functions timeout

Methods

protected

public