12345678910111213141516171819202122232425262728293031 |
- <?php
- // MikroTik - http://www.oidview.com/mibs/14988/MIKROTIK-MIB.html
- namespace CmtsBundle\SNMP\MIBS;
- class OIDSBase extends \CmtsBundle\SNMP\MIB {
-
- const OID_mtxrQueueSimpleName = "1.3.6.1.4.1.14988.1.1.2.1.1.2";
-
- const OID_mtxrQueueSimpleBytesIn = "1.3.6.1.4.1.14988.1.1.2.1.1.8";
- const OID_mtxrQueueSimpleBytesOut = "1.3.6.1.4.1.14988.1.1.2.1.1.9";
-
- public function onuSerialNumber($index = null) {
- if(is_null($index)) {
- return $this->getSNMP()->lastOidWalk(self::OID_mtxrQueueSimpleName,14);
- }
-
- $values = $this->getSNMP()->lastOidWalk(self::OID_mtxrQueueSimpleName,14);
- return $this->convertIndex($index, $values);
- }
-
- public function onuInOctets() {
- return $this->getSNMP()->lastOidWalk(self::OID_mtxrQueueSimpleBytesIn,14);
- }
-
- public function onuOutOctets() {
- return $this->getSNMP()->lastOidWalk(self::OID_mtxrQueueSimpleBytesOut,14);
- }
-
- }
|