note 13457 added to ref.snmp.php

From: Date: Sun, 17 Jun 2001 21:06:17 +0000
Subject: note 13457 added to ref.snmp.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14360@lists.php.net to get a copy of this message
Hey people! Have you checked http://www.simpleweb.org/software/packages/php-snmp-v3/ ? There are more functions available (citation): NOTE: The first 8 snmp_* functions are new and should be used. These obsolete the "snmpget", "snmpwalk" and "snmpwalkoid". General usage of these are: snmp_opensession(); snmp_get(); snmp_close(); Table of Contents snmp_session — Opens an SNMP session snmp_close — Closes an SNMP session snmp_get — Fetches SNMP objects with an SNMP get request snmp_getnext — Fetches SNMP objects with an SNMP getnext request snmp_getbulk — Fetches SNMP objects with a SNMP getbulk request snmp_walk — Fetches all SNMP objects with the SNMP getnext request snmp_bulkwalk — Fetches all SNMP objects with the SNMP getbulk request snmp_set — Sets the value of SNMP objects with the SNMP set request snmp_error — Fetches SNMP protocol error of the last SNMP request. snmpget — Fetch an SNMP object snmpwalk — Fetch all the SNMP objects from an agent snmpwalkoid — Query for a tree of information about a network entity snmp_get_quick_print — Fetch the current value of the UCD library's quick_print setting snmp_set_quick_print — Set the value of quick_print within the UCD SNMP library I've just checked source code - at least it's free of bug of non-reading UCD library configuration files (snmp.conf and etc.). I think it have to be still adopted to php4. And about this "bug": if you want for snmp module to read configuration files (snmp.conf) and return data in described formats - not default ones, you have to change in source file ext/snmp/snmp.c (php4-4.0.3) it should be: PHP_MINIT_FUNCTION(snmp) { init_snmp("snmp"); // instead of init_mib(); return SUCCESS; } Regards, Vilius Benetis LITNET http://www.php.net/manual/en/ref.snmp.php

« previous php.notes (#14360) next »