A class for performing SNMP V2 queries on generic devices
copyright | Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland |
---|---|
author | Barry O'Donovan |
adminStates(boolean $translate = false
) : array
aliases() : array
array
An array of interface aliasesbridgeBasePortIfIndexes() : array
array
Associate array of STP port IDs (key) to interface IDs (value)descriptions() : array
array
An array of interface descriptionsgetSNMP() : \OSS_SNMP\SNMP
\OSS_SNMP\SNMP
Instance of the SNMP objecthighSpeeds() : array
array
An array of interface operating speedsinDiscards() : \OSS_SNMP\MIBS\arrary
\OSS_SNMP\MIBS\arrary
The total number of discarded inbound packets received on interfacesinErrors() : array
array
The total number of error inbound packets received on interfacesinNonUnicastPackets() : array
array
The total number of non-unicast packets received on interfacesinOctets() : array
array
The total number of octets received on interfacesinUnicastPackets() : array
array
The total number of unicast packets received on interfacesinUnknownProtocols() : array
array
The number of packets received on an interface of unknown protocolindexes() : array
array
An array of interface indexeslastChanges(bool $asUnixTimestamp = false
) : array
see |
---|
bool
Poll sysUpTime and use this to return a timestamp of the last change
array
Timeticks (or zero) since last change of the interfacesmtus() : array
array
An array of device MTUsnames() : array
array
An array of interface namesnumberOfInterfaces() : int
int
The number of network interfaces on the systemoperationStates(boolean $translate = false
) : array
outDiscards() : \OSS_SNMP\MIBS\arrary
\OSS_SNMP\MIBS\arrary
The total number of discarded outbound packetsoutErrors() : array
array
The total number of error outbound packets received on interfacesoutNonUnicastPackets() : array
array
The total number of non-unicast packets requested sent interfacesoutOctets() : array
array
The total number of octets transmitted on interfacesoutQueueLength() : array
array
The total number of packets in the outbound queuesoutUnicastPackets() : array
array
The total number of unicast packets transmitted on interfacesphysAddresses() : array
array
An array of device physical addressessetSNMP(\OSS_SNMP\SNMP $snmp) : \OSS_SNMP\MIB
\OSS_SNMP\SNMP
the SNMP instance
\OSS_SNMP\MIB
An instance of this class for fluent interfacesspeeds() : array
see |
---|
array
An array of interface operating speedstypes(boolean $translate = false
) : array
$IF_ADMIN_STATES : array
array(self::IF_ADMIN_STATUS_UP => 'up', self::IF_ADMIN_STATUS_DOWN => 'down', self::IF_ADMIN_STATUS_TESTING => 'testing')
$IF_OPER_STATES : array
array(self::IF_OPER_STATUS_UP => 'up', self::IF_OPER_STATUS_DOWN => 'down', self::IF_OPER_STATUS_TESTING => 'testing', self::IF_OPER_STATUS_UNKNOWN => 'unknown', self::IF_OPER_STATUS_DORMANT => 'dormant', self::IF_OPER_STATUS_NOT_PRESENT => 'notPresent', self::IF_OPER_STATUS_LOWER_LAYER_DOWN => 'lowerLayerDown')
$IF_TYPES : array
array(self::IF_TYPE_OTHER => 'other', self::IF_TYPE_REGULAR1822 => 'regular1822', self::IF_TYPE_HDH1822 => 'hdh1822', self::IF_TYPE_DDNX25 => 'ddnX25', self::IF_TYPE_RFC877X25 => 'rfc877x25', self::IF_TYPE_ETHERNETCSMACD => 'ethernetCsmacd', self::IF_TYPE_ISO88023CSMACD => 'iso88023Csmacd', self::IF_TYPE_ISO88024TOKENBUS => 'iso88024TokenBus', self::IF_TYPE_ISO88025TOKENRING => 'iso88025TokenRing', self::IF_TYPE_ISO88026MAN => 'iso88026Man', self::IF_TYPE_STARLAN => 'starLan', self::IF_TYPE_PROTEON10MBIT => 'proteon10Mbit', self::IF_TYPE_PROTEON80MBIT => 'proteon80Mbit', self::IF_TYPE_HYPERCHANNEL => 'hyperchannel', self::IF_TYPE_FDDI => 'fddi', self::IF_TYPE_LAPB => 'lapb', self::IF_TYPE_SDLC => 'sdlc', self::IF_TYPE_DS1 => 'ds1', self::IF_TYPE_E1 => 'e1', self::IF_TYPE_BASICISDN => 'basicISDN', self::IF_TYPE_PRIMARYISDN => 'primaryISDN', self::IF_TYPE_PROPPOINTTOPOINTSERIAL => 'propPointToPointSerial', self::IF_TYPE_PPP => 'ppp', self::IF_TYPE_SOFTWARELOOPBACK => 'softwareLoopback', self::IF_TYPE_EON => 'eon', self::IF_TYPE_ETHERNET3MBIT => 'ethernet3Mbit', self::IF_TYPE_NSIP => 'nsip', self::IF_TYPE_SLIP => 'slip', self::IF_TYPE_ULTRA => 'ultra', self::IF_TYPE_DS3 => 'ds3', self::IF_TYPE_SIP => 'sip', self::IF_TYPE_FRAMERELAY => 'frameRelay', self::IF_TYPE_RS232 => 'rs232', self::IF_TYPE_PARA => 'para', self::IF_TYPE_ARCNET => 'arcnet', self::IF_TYPE_ARCNETPLUS => 'arcnetPlus', self::IF_TYPE_ATM => 'atm', self::IF_TYPE_MIOX25 => 'miox25', self::IF_TYPE_SONET => 'sonet', self::IF_TYPE_X25PLE => 'x25ple', self::IF_TYPE_ISO88022LLC => 'iso88022llc', self::IF_TYPE_LOCALTALK => 'localTalk', self::IF_TYPE_SMDSDXI => 'smdsDxi', self::IF_TYPE_FRAMERELAYSERVICE => 'frameRelayService', self::IF_TYPE_V35 => 'v35', self::IF_TYPE_HSSI => 'hssi', self::IF_TYPE_HIPPI => 'hippi', self::IF_TYPE_MODEM => 'modem', self::IF_TYPE_AAL5 => 'aal5', self::IF_TYPE_SONETPATH => 'sonetPath', self::IF_TYPE_SONETVT => 'sonetVT', self::IF_TYPE_SMDSICIP => 'smdsIcip', self::IF_TYPE_PROPVIRTUAL => 'propVirtual', self::IF_TYPE_PROPMULTIPLEXOR => 'propMultiplexor', self::IF_TYPE_IEEE80212 => 'ieee80212', self::IF_TYPE_FIBRECHANNEL => 'fibreChannel', self::IF_TYPE_HIPPIINTERFACE => 'hippiInterface', self::IF_TYPE_FRAMERELAYINTERCONNECT => 'frameRelayInterconnect', self::IF_TYPE_AFLANE8023 => 'aflane8023', self::IF_TYPE_AFLANE8025 => 'aflane8025', self::IF_TYPE_CCTEMUL => 'cctEmul', self::IF_TYPE_FASTETHER => 'fastEther', self::IF_TYPE_ISDN => 'isdn', self::IF_TYPE_V11 => 'v11', self::IF_TYPE_V36 => 'v36', self::IF_TYPE_G703AT64K => 'g703at64k', self::IF_TYPE_G703AT2MB => 'g703at2mb', self::IF_TYPE_QLLC => 'qllc', self::IF_TYPE_FASTETHERFX => 'fastEtherFX', self::IF_TYPE_CHANNEL => 'channel', self::IF_TYPE_IEEE80211 => 'ieee80211', self::IF_TYPE_IBM370PARCHAN => 'ibm370parChan', self::IF_TYPE_ESCON => 'escon', self::IF_TYPE_DLSW => 'dlsw', self::IF_TYPE_ISDNS => 'isdns', self::IF_TYPE_ISDNU => 'isdnu', self::IF_TYPE_LAPD => 'lapd', self::IF_TYPE_IPSWITCH => 'ipSwitch', self::IF_TYPE_RSRB => 'rsrb', self::IF_TYPE_ATMLOGICAL => 'atmLogical', self::IF_TYPE_DS0 => 'ds0', self::IF_TYPE_DS0BUNDLE => 'ds0Bundle', self::IF_TYPE_BSC => 'bsc', self::IF_TYPE_ASYNC => 'async', self::IF_TYPE_CNR => 'cnr', self::IF_TYPE_ISO88025DTR => 'iso88025Dtr', self::IF_TYPE_EPLRS => 'eplrs', self::IF_TYPE_ARAP => 'arap', self::IF_TYPE_PROPCNLS => 'propCnls', self::IF_TYPE_HOSTPAD => 'hostPad', self::IF_TYPE_TERMPAD => 'termPad', self::IF_TYPE_FRAMERELAYMPI => 'frameRelayMPI', self::IF_TYPE_X213 => 'x213', self::IF_TYPE_ADSL => 'adsl', self::IF_TYPE_RADSL => 'radsl', self::IF_TYPE_SDSL => 'sdsl', self::IF_TYPE_VDSL => 'vdsl', self::IF_TYPE_ISO88025CRFPINT => 'iso88025CRFPInt', self::IF_TYPE_MYRINET => 'myrinet', self::IF_TYPE_VOICEEM => 'voiceEM', self::IF_TYPE_VOICEFXO => 'voiceFXO', self::IF_TYPE_VOICEFXS => 'voiceFXS', self::IF_TYPE_VOICEENCAP => 'voiceEncap', self::IF_TYPE_VOICEOVERIP => 'voiceOverIp', self::IF_TYPE_ATMDXI => 'atmDxi', self::IF_TYPE_ATMFUNI => 'atmFuni', self::IF_TYPE_ATMIMA => 'atmIma', self::IF_TYPE_PPPMULTILINKBUNDLE => 'pppMultilinkBundle', self::IF_TYPE_IPOVERCDLC => 'ipOverCdlc', self::IF_TYPE_IPOVERCLAW => 'ipOverClaw', self::IF_TYPE_STACKTOSTACK => 'stackToStack', self::IF_TYPE_VIRTUALIPADDRESS => 'virtualIpAddress', self::IF_TYPE_MPC => 'mpc', self::IF_TYPE_IPOVERATM => 'ipOverAtm', self::IF_TYPE_ISO88025FIBER => 'iso88025Fiber', self::IF_TYPE_TDLC => 'tdlc', self::IF_TYPE_GIGABITETHERNET => 'gigabitEthernet', self::IF_TYPE_HDLC => 'hdlc', self::IF_TYPE_LAPF => 'lapf', self::IF_TYPE_V37 => 'v37', self::IF_TYPE_X25MLP => 'x25mlp', self::IF_TYPE_X25HUNTGROUP => 'x25huntGroup', self::IF_TYPE_TRASNPHDLC => 'trasnpHdlc', self::IF_TYPE_INTERLEAVE => 'interleave', self::IF_TYPE_FAST => 'fast', self::IF_TYPE_IP => 'ip', self::IF_TYPE_DOCSCABLEMACLAYER => 'docsCableMaclayer', self::IF_TYPE_DOCSCABLEDOWNSTREAM => 'docsCableDownstream', self::IF_TYPE_DOCSCABLEUPSTREAM => 'docsCableUpstream', self::IF_TYPE_A12MPPSWITCH => 'a12MppSwitch', self::IF_TYPE_TUNNEL => 'tunnel', self::IF_TYPE_COFFEE => 'coffee', self::IF_TYPE_CES => 'ces', self::IF_TYPE_ATMSUBINTERFACE => 'atmSubInterface', self::IF_TYPE_L2VLAN => 'l2vlan', self::IF_TYPE_L3IPVLAN => 'l3ipvlan', self::IF_TYPE_L3IPXVLAN => 'l3ipxvlan', self::IF_TYPE_DIGITALPOWERLINE => 'digitalPowerline', self::IF_TYPE_MEDIAMAILOVERIP => 'mediaMailOverIp', self::IF_TYPE_DTM => 'dtm', self::IF_TYPE_DCN => 'dcn', self::IF_TYPE_IPFORWARD => 'ipForward', self::IF_TYPE_MSDSL => 'msdsl', self::IF_TYPE_IEEE1394 => 'ieee1394', self::IF_TYPE_IF_GSN => 'if-gsn', self::IF_TYPE_DVBRCCMACLAYER => 'dvbRccMacLayer', self::IF_TYPE_DVBRCCDOWNSTREAM => 'dvbRccDownstream', self::IF_TYPE_DVBRCCUPSTREAM => 'dvbRccUpstream', self::IF_TYPE_ATMVIRTUAL => 'atmVirtual', self::IF_TYPE_MPLSTUNNEL => 'mplsTunnel', self::IF_TYPE_SRP => 'srp', self::IF_TYPE_VOICEOVERATM => 'voiceOverAtm', self::IF_TYPE_VOICEOVERFRAMERELAY => 'voiceOverFrameRelay', self::IF_TYPE_IDSL => 'idsl', self::IF_TYPE_COMPOSITELINK => 'compositeLink', self::IF_TYPE_SS7SIGLINK => 'ss7SigLink', self::IF_TYPE_PROPWIRELESSP2P => 'propWirelessP2P', self::IF_TYPE_FRFORWARD => 'frForward', self::IF_TYPE_RFC1483 => 'rfc1483', self::IF_TYPE_USB => 'usb', self::IF_TYPE_IEEE8023ADLAG => 'ieee8023adLag', self::IF_TYPE_BGPPOLICYACCOUNTING => 'bgppolicyaccounting', self::IF_TYPE_FRF16MFRBUNDLE => 'frf16MfrBundle', self::IF_TYPE_H323GATEKEEPER => 'h323Gatekeeper', self::IF_TYPE_H323PROXY => 'h323Proxy', self::IF_TYPE_MPLS => 'mpls', self::IF_TYPE_MFSIGLINK => 'mfSigLink', self::IF_TYPE_HDSL2 => 'hdsl2', self::IF_TYPE_SHDSL => 'shdsl', self::IF_TYPE_DS1FDL => 'ds1FDL', self::IF_TYPE_POS => 'pos', self::IF_TYPE_DVBASIIN => 'dvbAsiIn', self::IF_TYPE_DVBASIOUT => 'dvbAsiOut', self::IF_TYPE_PLC => 'plc', self::IF_TYPE_NFAS => 'nfas', self::IF_TYPE_TR008 => 'tr008', self::IF_TYPE_GR303RDT => 'gr303RDT', self::IF_TYPE_GR303IDT => 'gr303IDT', self::IF_TYPE_ISUP => 'isup', self::IF_TYPE_PROPDOCSWIRELESSMACLAYER => 'propDocsWirelessMaclayer', self::IF_TYPE_PROPDOCSWIRELESSDOWNSTREAM => 'propDocsWirelessDownstream', self::IF_TYPE_PROPDOCSWIRELESSUPSTREAM => 'propDocsWirelessUpstream', self::IF_TYPE_HIPERLAN2 => 'hiperlan2', self::IF_TYPE_PROPBWAP2MP => 'propBWAp2Mp', self::IF_TYPE_SONETOVERHEADCHANNEL => 'sonetOverheadChannel', self::IF_TYPE_DIGITALWRAPPEROVERHEADCHANNEL => 'digitalWrapperOverheadChannel', self::IF_TYPE_AAL2 => 'aal2', self::IF_TYPE_RADIOMAC => 'radioMAC', self::IF_TYPE_ATMRADIO => 'atmRadio', self::IF_TYPE_IMT => 'imt', self::IF_TYPE_MVL => 'mvl', self::IF_TYPE_REACHDSL => 'reachDSL', self::IF_TYPE_FRDLCIENDPT => 'frDlciEndPt', self::IF_TYPE_ATMVCIENDPT => 'atmVciEndPt', self::IF_TYPE_OPTICALCHANNEL => 'opticalChannel', self::IF_TYPE_OPTICALTRANSPORT => 'opticalTransport', self::IF_TYPE_PROPATM => 'propAtm', self::IF_TYPE_VOICEOVERCABLE => 'voiceOverCable', self::IF_TYPE_INFINIBAND => 'infiniband', self::IF_TYPE_TELINK => 'teLink', self::IF_TYPE_Q2931 => 'q2931', self::IF_TYPE_VIRTUALTG => 'virtualTg', self::IF_TYPE_SIPTG => 'sipTg', self::IF_TYPE_SIPSIG => 'sipSig', self::IF_TYPE_DOCSCABLEUPSTREAMCHANNEL => 'docsCableUpstreamChannel', self::IF_TYPE_ECONET => 'econet', self::IF_TYPE_PON155 => 'pon155', self::IF_TYPE_PON622 => 'pon622', self::IF_TYPE_BRIDGE => 'bridge', self::IF_TYPE_LINEGROUP => 'linegroup', self::IF_TYPE_VOICEEMFGD => 'voiceEMFGD', self::IF_TYPE_VOICEFGDEANA => 'voiceFGDEANA', self::IF_TYPE_VOICEDID => 'voiceDID', self::IF_TYPE_MPEGTRANSPORT => 'mpegTransport', self::IF_TYPE_SIXTOFOUR => 'sixToFour', self::IF_TYPE_GTP => 'gtp', self::IF_TYPE_PDNETHERLOOP1 => 'pdnEtherLoop1', self::IF_TYPE_PDNETHERLOOP2 => 'pdnEtherLoop2', self::IF_TYPE_OPTICALCHANNELGROUP => 'opticalChannelGroup', self::IF_TYPE_HOMEPNA => 'homepna', self::IF_TYPE_GFP => 'gfp', self::IF_TYPE_CISCOISLVLAN => 'ciscoISLvlan', self::IF_TYPE_ACTELISMETALOOP => 'actelisMetaLOOP', self::IF_TYPE_FCIPLINK => 'fcipLink', self::IF_TYPE_RPR => 'rpr', self::IF_TYPE_QAM => 'qam', self::IF_TYPE_LMP => 'lmp', self::IF_TYPE_CBLVECTASTAR => 'cblVectaStar', self::IF_TYPE_DOCSCABLEMCMTSDOWNSTREAM => 'docsCableMCmtsDownstream', self::IF_TYPE_ADSL2 => 'adsl2', self::IF_TYPE_MACSECCONTROLLEDIF => 'macSecControlledIF', self::IF_TYPE_MACSECUNCONTROLLEDIF => 'macSecUncontrolledIF', self::IF_TYPE_AVICIOPTICALETHER => 'aviciOpticalEther', self::IF_TYPE_ATMBOND => 'atmbond')
$_snmp
null
OID_IF_ADMIN_STATUS = '.1.3.6.1.2.1.2.2.1.7'
OID_IF_ALIAS = '.1.3.6.1.2.1.31.1.1.1.18'
OID_IF_DESCRIPTION = '.1.3.6.1.2.1.2.2.1.2'
OID_IF_HIGH_SPEED = '.1.3.6.1.2.1.31.1.1.1.15'
OID_IF_INDEX = '.1.3.6.1.2.1.2.2.1.1'
OID_IF_IN_DISCARDS = '.1.3.6.1.2.1.2.2.1.13'
OID_IF_IN_ERRORS = '.1.3.6.1.2.1.2.2.1.14'
OID_IF_IN_NON_UNICAST_PACKETS = '.1.3.6.1.2.1.2.2.1.12'
OID_IF_IN_OCTETS = '.1.3.6.1.2.1.2.2.1.10'
OID_IF_IN_UNICAST_PACKETS = '.1.3.6.1.2.1.2.2.1.11'
OID_IF_IN_UNKNOWN_PROTOCOLS = '.1.3.6.1.2.1.2.2.1.15'
OID_IF_LAST_CHANGE = '.1.3.6.1.2.1.2.2.1.9'
OID_IF_MTU = '.1.3.6.1.2.1.2.2.1.4'
OID_IF_NAME = '.1.3.6.1.2.1.31.1.1.1.1'
OID_IF_NUMBER = '.1.3.6.1.2.1.2.1.0'
OID_IF_OPER_STATUS = '.1.3.6.1.2.1.2.2.1.8'
OID_IF_OUT_DISCARDS = '.1.3.6.1.2.1.2.2.1.19'
OID_IF_OUT_ERRORS = '.1.3.6.1.2.1.2.2.1.20'
OID_IF_OUT_NON_UNICAST_PACKETS = '.1.3.6.1.2.1.2.2.1.18'
OID_IF_OUT_OCTETS = '.1.3.6.1.2.1.2.2.1.16'
OID_IF_OUT_QUEUE_LENGTH = '.1.3.6.1.2.1.2.2.1.21'
OID_IF_OUT_UNICAST_PACKETS = '.1.3.6.1.2.1.2.2.1.17'
OID_IF_PHYS_ADDRESS = '.1.3.6.1.2.1.2.2.1.6'
OID_IF_SPEED = '.1.3.6.1.2.1.2.2.1.5'
OID_IF_TYPE = '.1.3.6.1.2.1.2.2.1.3'