diff --git a/includes/discovery/os/jwos.inc.php b/includes/discovery/os/jwos.inc.php new file mode 100755 index 000000000..20a123514 --- /dev/null +++ b/includes/discovery/os/jwos.inc.php @@ -0,0 +1,9 @@ + diff --git a/includes/polling/bgpPeer.inc.php b/includes/polling/bgpPeer.inc.php index d027f2a9a..dd0f9c76c 100755 --- a/includes/polling/bgpPeer.inc.php +++ b/includes/polling/bgpPeer.inc.php @@ -33,7 +33,7 @@ if ($device['os'] == "junos") { echo "\nCaching Oids..."; ## FIX ME - needs moved to function - $peer_cmd = $config['snmpwalk'] . " -M ".$config['mibdir'] . " -m BGP4-V2-MIB-JUNIPER -Onq -" . $device['snmpver'] . " -c" . $device['community'] . " " . $device['hostname'].":".$device['port']; + $peer_cmd = $config['snmpwalk'] . " -M ".$config['mibdir'] . "/junos -m BGP4-V2-MIB-JUNIPER -Onq -" . $device['snmpver'] . " -c" . $device['community'] . " " . $device['hostname'].":".$device['port']; $peer_cmd .= " jnxBgpM2PeerStatus.0.ipv6"; foreach (explode("\n",trim(`$peer_cmd`)) as $oid) { @@ -42,7 +42,7 @@ if ($device['os'] == "junos") $junos_v6[implode('.',array_slice($peer_id,35))] = implode('.',array_slice($peer_id,18)); } } - ## FIX ME - move to fucntion (and clean up, wtf?) + ## FIX ME - move to function (and clean up, wtf?) $peer_cmd = $config['snmpget'] . " -M ".$config['mibdir'] . ":".$config['mibdir'] . "/junos -m BGP4-V2-MIB-JUNIPER -Ovq -" . $device['snmpver'] . " -c" . $device['community'] . " " . $device['hostname'].":".$device['port']; $peer_cmd .= " jnxBgpM2PeerState.0.ipv6." . $junos_v6[$peer_ip]; $peer_cmd .= " jnxBgpM2PeerStatus.0.ipv6." . $junos_v6[$peer_ip]; # Should be jnxBgpM2CfgPeerAdminStatus but doesn't seem to be implemented? diff --git a/includes/static-config.php b/includes/static-config.php index db04a8546..81a755ccd 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -133,6 +133,11 @@ $os = "junos"; $config['os'][$os]['text'] = "Juniper JunOS"; $config['os'][$os]['type'] = "network"; +$os = "jwos"; +$config['os'][$os]['text'] = "Juniper JWOS"; +$config['os'][$os]['type'] = "network"; +$config['os'][$os]['icon'] = "junos"; + $os = "screenos"; $config['os'][$os]['text'] = "Juniper ScreenOS"; $config['os'][$os]['type'] = "firewall";