many updates to BGP and interface printing

git-svn-id: http://www.observium.org/svn/observer/trunk@396 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-03-30 11:20:18 +00:00
parent f032b883d6
commit 1a514e4cd4
16 changed files with 1422 additions and 154 deletions
+13 -4
View File
@@ -28,6 +28,14 @@ if($argv[1] == "--device" && $argv[2]) {
exit;
}
if ($argv[2] == "--type" && $argv[3]) {
$type = $argv[3];
} elseif ($argv[3] == "--type" && $argv[4]) {
$type = $argv[4];
} else {
echo("Require valid discovery type.\n");
exit;
}
$devices_polled = 0;
@@ -36,12 +44,13 @@ while ($device = mysql_fetch_array($device_query)) {
echo($device['hostname'] ."\n");
# include("includes/discovery/cisco-physical.php");
# include("includes/discovery/ipv6-addresses.php");
# include("includes/discovery/cisco-pw.php");
include("includes/discovery/".$type.".php");
# include("includes/discovery/ipv6-addresses.php");
# include("includes/discovery/cisco-pw.php");
include("includes/discovery/host-physical.php");
# include("includes/discovery/host-physical.php");
# include("includes/discovery/bgp-peers.php");
echo("\n"); $devices_polled++;
}