This script is only meant to run at the command line.");
}
$no_http_headers = true;
include(dirname(__FILE__) . "/../include/config.php");
include(dirname(__FILE__) . "/../lib/snmp.php");
$oids = array(
"index" => ".1.3.6.1.2.1.25.3.3.1",
"usage" => ".1.3.6.1.2.1.25.3.3.1"
);
$hostname = $_SERVER["argv"][1];
$snmp_community = $_SERVER["argv"][2];
$snmp_version = $_SERVER["argv"][3];
$cmd = $_SERVER["argv"][4];
if ($cmd == "index") {
$arr_index = get_indexes($hostname, $snmp_community, $snmp_version);
for ($i=0;($i