Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP for windows: SNMP v2c

29 views
Skip to first unread message

Al

unread,
Apr 15, 2010, 1:43:05 PM4/15/10
to
Hi all.

I have a PC that uses php to poll network devices to measure traffic,
and it's been working fine.

I now have the requirement of polling 64 bit counters. According to
the documentation, I need to use version 2c SNMP requests for this.
PHP docs say I need to use the function snmp2_get, and that it's
parameters are the same as snmp_get. The problem is, when I run this
script:

$octets_eth1_in = snmp2_get($ipaddress, $community, ".
1.3.6.1.2.1.31.1.1.1.6.4");

I get the following error:

PHP Fatal Error: Call to undefined function: snmp2_get()


Any ideas why that is? Thanks.

Al

campionede...@googlemail.com

unread,
Apr 26, 2010, 2:19:43 PM4/26/10
to

has the file been included? or has this been compiled on the php ini
file.

skh...@issal.net

unread,
Jul 24, 2012, 5:36:56 AM7/24/12
to
Hi,
i have the same error, have you any solution for this?
0 new messages