exit(1); } require_once dirname(__FILE__) . '/../OSS_SNMP/SNMP.php'; $host = new \OSS_SNMP\SNMP($argv[1], $argv[2]); echo "\n\n"; echo "Asterisk version running on {$argv[1]}: " . $host->useAsterisk()->version() . "\n"; echo "Asterisk SVN tag running on {$argv[1]}: " . $host->useAsterisk()->tag() . "\n"; echo "Asterisk on {$argv[1]} up for: " . $host->useAsterisk()->uptime() / 100 / 60 / 60 . " hours\n"; echo "Asterisk on {$argv[1]} reloaded: " . $host->useAsterisk()->reloadTime() / 100 / 60 / 60 . " hours ago\n"; echo "Asterisk PID: " . $host->useAsterisk()->pid() . "\n"; echo "Asterisk control socket: " . $host->useAsterisk()->controlSocket() . "\n"; echo "Calls active: " . $host->useAsterisk()->callsActive() . "\n"; echo "Calls processed: " . $host->useAsterisk()->callsProcessed() . "\n"; echo "Modules compiled in: " . $host->useAsterisk()->modules() . "\n"; echo "\n\n"; echo "Indications defined: " . $host->useAsterisk_Indications()->number() . "\n"; echo "Default indications zone: " . $host->useAsterisk_Indications()->defaultZone() . "\n"; echo "Indication country codes:\n\n"; print_r($host->useAsterisk_Indications()->countryCodes()); echo "\n\n"; echo "Indication descriptions:\n\n"; print_r($host->useAsterisk_Indications()->descriptions()); echo "\n\n"; echo "Channels active: " . $host->useAsterisk_Channels()->active() . "\n"; echo "Channels supported: " . $host->useAsterisk_Channels()->supported() . "\n"; echo "Channel type names:\n\n"; print_r($host->useAsterisk_Channels()->names()); echo "\n\n"; echo "Channel type descriptions:\n\n"; print_r($host->useAsterisk_Channels()->descriptions()); echo "\n\n";