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

SNMP v2

16 views
Skip to first unread message

Al

unread,
Apr 15, 2010, 4:07:17 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

0 new messages