Explorar el Código

Se añade "description" para los CMTS.

Maxi Schvindt hace 7 años
padre
commit
9a57783dfd
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      Command/CmtsCmScanCommand.php

+ 7 - 0
Command/CmtsCmScanCommand.php

@@ -37,6 +37,7 @@ class CmtsCmScanCommand extends BaseCmtsCommand
         parent::execute($input, $output);
         
         $key_cmts_scan = "cmts_scan_{$this->d_s}";
+        $key_cmts_desc = "cmts_desc_{$this->d_s}";
         $inicio = microtime(true);
         
         $SNMP = new SNMP($this->cmtsIp, $this->cmtsCommunity);
@@ -58,6 +59,12 @@ class CmtsCmScanCommand extends BaseCmtsCommand
         $signal = $this->getSNMP("docsIfCmtsCmStatusSignalNoise","cmtsSignal");
         $rx = $this->getSNMP("docsIfCmtsCmStatusRxPower","cmtsRx");
         $microreflection = $this->getSNMP("docsIfCmtsCmStatusMicroreflections","cmtsMicroreflection");
+        
+        $description = $this->getSNMP("systemDescription","cmtsDescription");
+
+        if(isset($description[0])) {
+            $this->setData($key_cmts_desc, $description, false);
+        }
 
         foreach($macs as $index => $mac) {
             $countCms++; $data = array();