note 71850 added to ref.snmp

From: Date: Tue, 19 Dec 2006 15:59:14 +0000
Subject: note 71850 added to ref.snmp
Groups: php.notes 
Request: Send a blank email to php-notes+get-120771@lists.php.net to get a copy of this message
With that, i can show the mac of my machine, sorry de english... <?php //Bug #36196 SNMP_VALUE_PLAIN snmp_set_valueretrieval(0); $mac = snmpget("192.168.0.1",'public',".1.3.6.1.2.1.2.2.1.6.x"); snmp_set_valueretrieval(1); $mac = str_replace('""',"&nbsp;",$mac); $mac = str_replace('Hex: ',"",$mac); $mac = str_replace(' ',":",trim($mac)); print $mac; ?> P.D.: the .x of the OID, is de index of de Interfaz... Viva Venezuela y el Software Libre.... =CMM= ---- Server IP: 66.163.161.117 Probable Submitter: 200.35.92.114 ---- Manual Page -- http://www.php.net/manual/en/ref.snmp.php Edit -- https://master.php.net/note/edit/71850 Del: integrated -- https://master.php.net/note/delete/71850/integrated Del: useless -- https://master.php.net/note/delete/71850/useless Del: bad code -- https://master.php.net/note/delete/71850/bad+code Del: spam -- https://master.php.net/note/delete/71850/spam Del: non-english -- https://master.php.net/note/delete/71850/non-english Del: in docs -- https://master.php.net/note/delete/71850/in+docs Del: other reasons-- https://master.php.net/note/delete/71850 Reject -- https://master.php.net/note/reject/71850 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120771) next »