I have a php script that is attempting to get a specific piece of data. I am using the snmprealwalk
function but the page is not returning anything.
<?php
$a = snmprealwalk("192.168.107.130", "public", ".2.6.1.2.1.33.6.5.1.2.2.1");
for (reset($a); $i = key($a); next($a)) {
echo "$i: $a[$i]<br />
";
}
?>
I know there is data there because if I simply take out the long iso_ID
I will get all the data. This data contains the key
or iso_ID
I need to call a specific value.
How do I call a specific object_id
using the php
and snmp
functions? What am I doing wrong? I am using php 5.3.28.