Add Device"); if ($_POST['hostname']) { if ($_SESSION['userlevel'] > '5') { $hostname = mres($_POST['hostname']); if ($_POST['community']) { $community = mres($_POST['community']); } else { $community = $config['snmp']['community']; } $snmpver = mres($_POST['snmpver']); if ($_POST['port']) { $port = mres($_POST['port']); } else { $port = "161"; } print_message("Adding host $hostname community $community port $port"); $result = addHost($hostname, $community, $snmpver, $port); } else { print_error("You don't have the necessary privileges to add hosts."); } } ?>

Devices will be checked for Ping and SNMP reachability before being probed. Only devices with recognised OSes will be added.

Hostname
Community
SNMP Version  Port