note 116135 added to snmp.construct

From: Date: Wed, 12 Nov 2014 15:51:29 +0000
Subject: note 116135 added to snmp.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-200898@lists.php.net to get a copy of this message
<?php $session = new SNMP(SNMP::VERSION_1, "127.0.0.1", "public"); $sysdescr = $session->get("sysDescr.0"); echo "$sysdescr\n"; ?> doesn't work for me, use it instead : <?php $version = "3"; // snmp version "1", "2" or "2c", "3" $host = "127.0.0.1"; // hostname or ip $community = "public"; // snmp community $session = new SNMP($version, $host, $community); $sysdescr = $session->get("sysDescr.0"); echo "$sysdescr\n"; ?> I don't use the snmp version 2 that's why i have written 2 or 2c, I'm not sure so test it. ---- Server IP: 72.52.91.14 Probable Submitter: 178.211.225.10 ---- Manual Page -- http://php.net/manual/en/snmp.construct.php Edit -- https://master.php.net/note/edit/116135 Del: integrated -- https://master.php.net/note/delete/116135/integrated Del: useless -- https://master.php.net/note/delete/116135/useless Del: bad code -- https://master.php.net/note/delete/116135/bad+code Del: spam -- https://master.php.net/note/delete/116135/spam Del: non-english -- https://master.php.net/note/delete/116135/non-english Del: in docs -- https://master.php.net/note/delete/116135/in+docs Del: other reasons-- https://master.php.net/note/delete/116135 Reject -- https://master.php.net/note/reject/116135 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200898) next »