Hey guys,
Time to start this one up again, having had some time off I am now back on working on this.
Current code is as follows:
$current_ip = "192.168.1.1";
$scan = snmpget($current_ip, "public", "1.3.6.1.2.1.2.2.1.7");
echo $scan;
This is a valid IP on the network (it's a Linksys Wireless N router) and I have tried it with others.
The MIB is extracted from the following website - MRTG: http://oss.oetiker.ch/mrtg/doc/mrtg-mibhelp.en.html
Descriptor: ifAdminStatus
Identifier: 1.3.6.1.2.1.2.2.1.7
ASN.1 Syntax: INTEGER
Enumeration: up 1, down 2, testing 3
There is simply no output from the function, what am I doing wrong here? I am pulling my hair out!