snmp

From: Date: Tue, 14 Jan 2003 15:56:33 +0000
Subject: snmp
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7174@lists.php.net to get a copy of this message
Hello, I searched the archive without luck. The problem I'm having is with php 4.3.0 and net-snmp 5.0.6. This problem become to be after upgrading from php 4.2.2 Example Code:
              $a = snmpwalk($host, $comm, "");
              for($i=0; $i < count($a); $i++);
                      printf("%s\n",$a[$i]);
              }
Everyone seen this code before in the snmp documentation. Before I the above code would return,
                 ......................
              enterprises.ucdavis.systemStats.ssIndex.0 = 1
              enterprises.ucdavis.systemStats.ssErrorName.0 = systemStats
              enterprises.ucdavis.systemStats.ssSwapIn.0 = 0
              enterprises.ucdavis.systemStats.ssSwapOut.0 = 0
              enterprises.ucdavis.systemStats.ssIOSent.0 = 5
              enterprises.ucdavis.systemStats.ssIOReceive.0 = 3
              enterprises.ucdavis.systemStats.ssSysInterrupts.0 = 8
              enterprises.ucdavis.systemStats.ssSysContext.0 = 8
              enterprises.ucdavis.systemStats.ssCpuUser.0 = 5
              enterprises.ucdavis.systemStats.ssCpuSystem.0 = 0
              enterprises.ucdavis.systemStats.ssCpuIdle.0 = 93
              enterprises.ucdavis.systemStats.ssCpuRawUser.0 = Counter32: 29917827
              enterprises.ucdavis.systemStats.ssCpuRawNice.0 = Counter32: 268575
              enterprises.ucdavis.systemStats.ssCpuRawSystem.0 = Counter32: 4052290
              enterprises.ucdavis.systemStats.ssCpuRawIdle.0 = Counter32: 475958735
              .................
Now the same code only returns the type and value,
                          INTEGER: up(1)
Thanks for any help. Daniel

« previous php.smarty.general (#7174) next »