note 53832 added to function.snmpwalkoid

From: Date: Tue, 14 Jun 2005 15:29:20 +0000
Subject: note 53832 added to function.snmpwalkoid
Groups: php.notes 
Request: Send a blank email to php-notes+get-90421@lists.php.net to get a copy of this message
The above note mentions that the MAC addresses come back converted to integers or something funky like that. Not sure why that is happening but I fixed that with a wrapper function. function PadMAC($mac) { $mac_arr = explode(':',$mac); foreach($mac_arr as $atom) { $atom = trim($atom); $newarr[] = sprintf("%02s",$atom); } $newmac = implode(':',$newarr); return $newmac; } Maybe that will help somebody with that issue. I know I personally use the heck out of these user contributed notes ---- Manual Page -- http://www.php.net/manual/en/function.snmpwalkoid.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53832 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53832&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53832&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53832&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53832&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53832&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53832&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90421) next »