start of support for JunOSe

git-svn-id: http://www.observium.org/svn/observer/trunk@764 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-02-05 21:03:07 +00:00
parent d3c3bcb57f
commit e644b9d2dd
4 changed files with 4076 additions and 0 deletions

View File

@@ -122,6 +122,10 @@ foreach ($devices as $device)
if ($device['type'] == "unknown") { $device['type'] = 'network'; } # FIXME: could also be a Netscreen...
}
if($device['os'] == "junose") {
include("includes/discovery/bgp-peers.php");
}
if ($device['os_group'] == "unix")
{
# Also discover quagga peers

View File

@@ -0,0 +1,10 @@
<?php
if(!$os) {
$sysObjectId = shell_exec($config['snmpget'] . " -Ovqn -".$device['snmpver']." -c ". $device['community'] ." ". $device['hostname'].":".$device['port'] ." sysObjectID.0");
if(strstr($sysObjectId, ".1.3.6.1.4.1.4874")) { $os = "junose"; }
}
?>

2031
juniErxSystem.mi2 Normal file
View File

File diff suppressed because it is too large Load Diff

2031
mibs/juniErxSystem.mi2 Normal file
View File

File diff suppressed because it is too large Load Diff