mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
revert r1957 patch
git-svn-id: http://www.observium.org/svn/observer/trunk@1960 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -53,6 +53,7 @@ if (isset($argv[1]) && $argv[1])
|
||||
if (isSNMPable($device))
|
||||
{
|
||||
$snmphost = snmp_get($device, "sysName.0", "-Oqv", "SNMPv2-MIB");
|
||||
|
||||
if ($snmphost == "" || ($snmphost && ($snmphost == $host || $hostshort = $host)))
|
||||
{
|
||||
$added = createHost ($host, $community, $snmpver, $port, $transport);
|
||||
|
@@ -27,7 +27,7 @@ echo("Checked $i Interfaces\n");
|
||||
|
||||
if ($errored)
|
||||
{ ## If there are errored ports
|
||||
$i=0;
|
||||
$i = 0;
|
||||
$msg = "Interfaces with errors : \n\n";
|
||||
|
||||
foreach ($errored as $int)
|
||||
|
@@ -6,6 +6,7 @@ include("includes/functions.php");
|
||||
|
||||
$sql = "SELECT * FROM devices AS D, services AS S WHERE S.device_id = D.device_id ORDER by D.device_id DESC";
|
||||
$query = mysql_query($sql);
|
||||
|
||||
while ($service = mysql_fetch_array($query))
|
||||
{
|
||||
if ($service['status'] = "1")
|
||||
@@ -65,4 +66,5 @@ while ($service = mysql_fetch_array($query))
|
||||
rrdtool_update($rrd,"N:".$status);
|
||||
}
|
||||
} # while
|
||||
|
||||
?>
|
@@ -11,6 +11,7 @@ $query = "SELECT *,A.id as id FROM ipv4_addresses AS A, ports as I, devices as D
|
||||
WHERE A.interface_id = I.interface_id AND I.device_id = D.device_id AND D.status = '1'";
|
||||
|
||||
$data = mysql_query($query);
|
||||
|
||||
while ($row = mysql_fetch_array($data))
|
||||
{
|
||||
$addr = Net_IPv4::parseAddress($row['ipv4_address']."/".$row['ipv4_prefixlen']);
|
||||
@@ -39,13 +40,16 @@ while ($device = mysql_fetch_array($query))
|
||||
$oids = str_replace("\"", "", $oids); $oids = trim($oids);
|
||||
|
||||
unset($valid_ips);
|
||||
|
||||
foreach (explode("\n", $oids) as $data) {
|
||||
$data = trim($data);
|
||||
list($ipv6addr,$ifIndex) = explode(" ", $data);
|
||||
$valid_ips[] = $ipv6addr;
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM ip6addr AS A, ports AS I, devices as D WHERE A.interface_id = I.interface_id AND I.device_id = '".$device['device_id']."'";
|
||||
$data = mysql_query($sql);
|
||||
|
||||
while ($row = mysql_fetch_array($data))
|
||||
{
|
||||
echo($row['ipv6_address'] . "\n");
|
||||
@@ -60,6 +64,7 @@ while ($device = mysql_fetch_array($query))
|
||||
|
||||
$query = "SELECT * FROM ports AS I, devices as D WHERE I.device_id = D.device_id AND D.status = '1'";
|
||||
$data = mysql_query($query);
|
||||
|
||||
while ($row = mysql_fetch_array($data))
|
||||
{
|
||||
$index = $row['ifIndex'];
|
||||
@@ -80,6 +85,7 @@ while ($row = mysql_fetch_array($data))
|
||||
|
||||
echo(mysql_result(mysql_query("SELECT COUNT(*) FROM `ports`"), 0) . " ports at start\n");
|
||||
$interface_query = mysql_query("SELECT interface_id,device_id FROM `ports`");
|
||||
|
||||
while ($interface = mysql_fetch_array($interface_query))
|
||||
{
|
||||
$device_id = $interface['device_id'];
|
||||
@@ -95,6 +101,7 @@ echo(mysql_result(mysql_query("SELECT COUNT(*) FROM `ports`"), 0) . " ports at e
|
||||
|
||||
echo(mysql_result(mysql_query("SELECT COUNT(id) FROM `links`"), 0) . " links at start\n");
|
||||
$link_query = mysql_query("SELECT id,local_interface_id,remote_interface_id FROM `links`");
|
||||
|
||||
while ($link = mysql_fetch_array($link_query))
|
||||
{
|
||||
$id = $link['id'];
|
||||
@@ -110,6 +117,7 @@ echo(mysql_result(mysql_query("SELECT COUNT(id) FROM `links`"), 0) . " links at
|
||||
|
||||
echo(mysql_result(mysql_query("SELECT COUNT(adj_id) FROM `adjacencies`"), 0) . " adjacencies at start\n");
|
||||
$link_query = mysql_query("SELECT * FROM `adjacencies` AS A, `ports` AS I, `devices` AS D, networks AS N WHERE I.interface_id = A.interface_id AND D.device_id = I.device_id AND N.id = A.network_id");
|
||||
|
||||
while ($link = mysql_fetch_array($link_query))
|
||||
{
|
||||
$id = $link['adj_id'];
|
||||
|
@@ -23,12 +23,7 @@ $config['log_file'] = $config['install_dir'] . "/observium.log";
|
||||
#$config['rrdcached'] = "unix:/var/run/rrdcached.sock";
|
||||
|
||||
### Default community
|
||||
$config['snmp']['community'][] = "public";
|
||||
|
||||
### Enable php_snmp
|
||||
# Enable php_snmp functions to make gets faster
|
||||
# Often doesn't work, because jwh can't code for shit,
|
||||
$config['snmp']['internal'] = false;
|
||||
$config['snmp']['community'] = array("public");
|
||||
|
||||
### Authentication Model
|
||||
$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
|
||||
|
@@ -108,13 +108,13 @@ while($ip = mysql_fetch_array($data)) {
|
||||
|
||||
|
||||
mysql_query($forward_query, $dnsdblink);
|
||||
# $i = 1;
|
||||
# unset($exist)
|
||||
# while ($i <= count($linkdone)) {
|
||||
# $thiszone = "$";
|
||||
# if ($zoneupdated[$i] == $thiszone) { $exist = "yes"; }
|
||||
# $i++;
|
||||
# }
|
||||
# $i = 1;
|
||||
# unset($exist)
|
||||
# while ($i <= count($linkdone)) {
|
||||
# $thiszone = "$";
|
||||
# if ($zoneupdated[$i] == $thiszone) { $exist = "yes"; }
|
||||
# $i++;
|
||||
# }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -122,15 +122,15 @@ while($ip = mysql_fetch_array($data)) {
|
||||
$i = 0;
|
||||
while ($i < count($zoneupdated)) {
|
||||
|
||||
# $sSQL = "update zones set name = '" . $name . "', ttl = " . $ttl . ", rdtype =
|
||||
# '" . $rdtype1 . "', rdata = '" . $rdata . "' where zoneid = " . $id;
|
||||
# $result = mysql_query($sSQL, $dnsdblink);
|
||||
# $sSQL = "update zones set name = '" . $name . "', ttl = " . $ttl . ", rdtype =
|
||||
# '" . $rdtype1 . "', rdata = '" . $rdata . "' where zoneid = " . $id;
|
||||
# $result = mysql_query($sSQL, $dnsdblink);
|
||||
|
||||
$domain = $zoneupdated[$i];
|
||||
|
||||
$sSQL = "select rdata, zoneid from zones where domain_name = '" . $domain . "' and rdtype = 'SOA'";
|
||||
# $result = mysql_query($sSQL, $dnsdblink);
|
||||
# $row = mysql_fetch_array($result);
|
||||
# $row = mysql_fetch_array($result);
|
||||
$soa = explode(" ", $row[0]);
|
||||
$year = substr($soa[2],0,4);
|
||||
$month = substr($soa[2],4,2);
|
||||
@@ -149,7 +149,7 @@ while ($i < count($zoneupdated)) {
|
||||
$rdata = $soa[0] . " " . $soa[1] . " " . $date . " " . $soa[3] . " " . $soa[4] . " " . $soa[5] . " " . $soa[6];
|
||||
$sSQL = "update zones set rdata = '" . $rdata . "' where zoneid = " . $row[1];
|
||||
# echo("$sSQL\n");
|
||||
# $result = mysql_query($sSQL, $dnsdblink);
|
||||
# $result = mysql_query($sSQL, $dnsdblink);
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
@@ -145,7 +145,6 @@ $discovered_devices = 0;
|
||||
$device_query = mysql_query("SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 $where ORDER BY device_id DESC");
|
||||
while ($device = mysql_fetch_array($device_query))
|
||||
{
|
||||
|
||||
$device_start = utime(); // Start counting device poll time
|
||||
|
||||
echo($device['hostname'] . " ".$device['device_id']." ".$device['os']." ");
|
||||
|
@@ -67,7 +67,7 @@ if ($config['page_refresh']) { echo("<meta http-equiv='refresh' content='".$conf
|
||||
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
|
||||
<script type="text/javascript" src="js/mktree.js"></script>
|
||||
<script type="text/javascript" src="js/sorttable.js"></script>
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
<!-- Begin
|
||||
function popUp(URL)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ function popUp(URL)
|
||||
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=600');");
|
||||
}
|
||||
// End -->
|
||||
</script>
|
||||
</script>
|
||||
<script type="text/javascript" src="js/overlib.js"></script>
|
||||
<div id="center">
|
||||
|
||||
|
32
html/map.php
32
html/map.php
@@ -135,34 +135,34 @@ if (isset($_GET['format']) && preg_match("/^[a-z]*$/", $_GET['format']))
|
||||
$map .= "
|
||||
};";
|
||||
|
||||
if ($_GET['debug'] == 1) { echo("<pre>$map</pre>");exit(); }
|
||||
if ($_GET['debug'] == 1) { echo("<pre>$map</pre>");exit(); }
|
||||
|
||||
switch ($_GET['format'])
|
||||
{
|
||||
case 'svg':
|
||||
switch ($_GET['format'])
|
||||
{
|
||||
case 'svg':
|
||||
case 'png':
|
||||
break;
|
||||
default:
|
||||
$_GET['format'] = 'png';
|
||||
}
|
||||
}
|
||||
|
||||
if ($links > 10) ### Unflatten if there are more than 10 links. beyond that it gets messy
|
||||
{
|
||||
if ($links > 10) ### Unflatten if there are more than 10 links. beyond that it gets messy
|
||||
{
|
||||
$maptool = 'unflatten -f -l 5 |dot';
|
||||
} else {
|
||||
} else {
|
||||
$maptool = 'dot';
|
||||
}
|
||||
}
|
||||
|
||||
if ($where == '') { $maptool = 'neato -Gpack'; }
|
||||
if ($where == '') { $maptool = 'neato -Gpack'; }
|
||||
|
||||
$img = shell_exec("echo \"".addslashes($map)."\" | $maptool -T".$_GET['format']."");
|
||||
if ($_GET['format'] == "png") {
|
||||
$img = shell_exec("echo \"".addslashes($map)."\" | $maptool -T".$_GET['format']."");
|
||||
if ($_GET['format'] == "png") {
|
||||
header("Content-type: image/".$_GET['format']);
|
||||
} elseif ($_GET['format'] == "svg") {
|
||||
} elseif ($_GET['format'] == "svg") {
|
||||
header("Content-type: image/svg+xml");
|
||||
$img = str_replace("<a ", '<a target="_parent" ', $img);
|
||||
}
|
||||
echo("$img");
|
||||
}
|
||||
echo("$img");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,7 +171,7 @@ else
|
||||
echo('<center>
|
||||
<object data="'. $config['base_url'] . '/map.php?format=svg" type="image/svg+xml">
|
||||
</object>
|
||||
</center>');
|
||||
</center>');
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -19,10 +19,13 @@ include("includes/authenticate.inc.php");
|
||||
|
||||
if (!$_SESSION['authenticated']) { echo("unauthenticated"); exit; }
|
||||
|
||||
if ($_GET['query'] && $_GET['cmd']) {
|
||||
if ($_GET['query'] && $_GET['cmd'])
|
||||
{
|
||||
$host = $_GET['query'];
|
||||
if (Net_IPv6::checkIPv6($host)||Net_IPv4::validateip($host)||preg_match("/^[a-zA-Z0-9.-]*$/", $host)) {
|
||||
switch ($_GET['cmd']) {
|
||||
if (Net_IPv6::checkIPv6($host)||Net_IPv4::validateip($host)||preg_match("/^[a-zA-Z0-9.-]*$/", $host))
|
||||
{
|
||||
switch ($_GET['cmd'])
|
||||
{
|
||||
case 'whois':
|
||||
$cmd = $config['whois'] . " $host | grep -v \%";
|
||||
break;
|
||||
|
@@ -92,7 +92,9 @@ include("overview/sensors/frequencies.inc.php");
|
||||
include("overview/sensors/current.inc.php");
|
||||
|
||||
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
|
||||
echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/16/report.png'> Recent Events</p>");
|
||||
echo("<p style='padding: 0px 5px 5px;' class=sectionhead>");
|
||||
echo('<a class="sectionhead" href="device/'.$device['device_id'].'/events/">');
|
||||
echo("<img align='absmiddle' src='".$config['base_url']."/images/16/report.png'> Recent Events</a></p>");
|
||||
|
||||
$query = "SELECT *,DATE_FORMAT(datetime, '%d/%b/%y %T') as humandate FROM `eventlog` WHERE `host` = '$_GET[id]' ORDER BY `datetime` DESC LIMIT 0,10";
|
||||
$data = mysql_query($query);
|
||||
|
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
## Common Functions
|
||||
|
||||
function get_port_by_id($port_id)
|
||||
|
@@ -197,7 +197,7 @@ $config['ignore_mount_string'] = array("packages", "devfs", "procfs", "UMA", "MA
|
||||
$config['ignore_mount_regexp'] = array("/on: \/packages/", "/on: \/dev/", "/on: \/proc/", "/on: \/junos^/", ## JunOS Drives
|
||||
"/on: \/junos\/dev/", "/on: \/jail\/dev/", "/^(dev|proc)fs/", "/^\/dev\/md0/", ## JunOS Drives
|
||||
"/^\/var\/dhcpd\/dev,/", "/UMA/" ## BSD Drives
|
||||
);
|
||||
);
|
||||
|
||||
$config['ignore_mount_removable'] = 1; # Ignore removable disk storage
|
||||
$config['ignore_mount_network'] = 1; # Ignore network mounted storage
|
||||
|
@@ -7,9 +7,9 @@ if ($device['os'] != "Snom")
|
||||
$oids = array ('tcpActiveOpens', 'tcpPassiveOpens', 'tcpAttemptFails', 'tcpEstabResets', 'tcpCurrEstab',
|
||||
'tcpInSegs', 'tcpOutSegs', 'tcpRetransSegs', 'tcpInErrs', 'tcpOutRsts');
|
||||
|
||||
# $oids['tcp_collect'] = $oids['tcp'];
|
||||
# $oids['tcp_collect'][] = 'tcpHCInSegs';
|
||||
# $oids['tcp_collect'][] = 'tcpHCOutSegs';
|
||||
# $oids['tcp_collect'] = $oids['tcp'];
|
||||
# $oids['tcp_collect'][] = 'tcpHCInSegs';
|
||||
# $oids['tcp_collect'][] = 'tcpHCOutSegs';
|
||||
|
||||
unset($snmpstring, $rrdupdate, $snmpdata, $snmpdata_cmd, $rrd_create);
|
||||
$rrd_file = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-tcp.rrd";
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
echo("Polling Netstats:");
|
||||
echo("Polling Netstats:");
|
||||
|
||||
include("netstats-ip.inc.php");
|
||||
include("netstats-tcp.inc.php");
|
||||
include("netstats-udp.inc.php");
|
||||
include("netstats-icmp.inc.php");
|
||||
include("netstats-snmp.inc.php");
|
||||
include("netstats-ip.inc.php");
|
||||
include("netstats-tcp.inc.php");
|
||||
include("netstats-udp.inc.php");
|
||||
include("netstats-icmp.inc.php");
|
||||
include("netstats-snmp.inc.php");
|
||||
|
||||
echo("\n");
|
||||
echo("\n");
|
||||
|
||||
?>
|
||||
|
@@ -238,11 +238,11 @@ while ($port = mysql_fetch_array($port_query))
|
||||
$if_rrd_update .= ":$ifInBroadcastPkts:$ifOutBroadcastPkts:$ifInMulticastPkts:$ifOutMulticastPkts";
|
||||
$ret = rrdtool_update("$rrdfile", $if_rrd_update);
|
||||
|
||||
# if ($config['enable_ports_Xbcmc'] && $config['os'][$device['os']]['ifXmcbc']) {
|
||||
# if (!is_file($ifx_rrd)) { shell_exec($ifx_rrd_cmd); }
|
||||
# $ifx_rrd_update = "$polled:$ifHCInBroadcastPkts:$ifHCOutBroadcastPkts:$ifHCInMulticastPkts:$ifHCOutMulticastPkts";
|
||||
# $ret = rrdtool_update($ifx_rrd, $ifx_rrd_update);
|
||||
# }
|
||||
# if ($config['enable_ports_Xbcmc'] && $config['os'][$device['os']]['ifXmcbc']) {
|
||||
# if (!is_file($ifx_rrd)) { shell_exec($ifx_rrd_cmd); }
|
||||
# $ifx_rrd_update = "$polled:$ifHCInBroadcastPkts:$ifHCOutBroadcastPkts:$ifHCInMulticastPkts:$ifHCOutMulticastPkts";
|
||||
# $ret = rrdtool_update($ifx_rrd, $ifx_rrd_update);
|
||||
# }
|
||||
|
||||
/// End Update IF-MIB
|
||||
|
||||
|
@@ -125,174 +125,174 @@ $rewrite_junose_hardware = array(
|
||||
);
|
||||
|
||||
$rewrite_ftos_hardware = array (
|
||||
'.1.3.6.1.4.1.6027.1.1.1'=> 'E1200',
|
||||
'.1.3.6.1.4.1.6027.1.1.2'=> 'E600',
|
||||
'.1.3.6.1.4.1.6027.1.1.3'=> 'E300',
|
||||
'.1.3.6.1.4.1.6027.1.1.4'=> 'E610',
|
||||
'.1.3.6.1.4.1.6027.1.1.5'=> 'E1200i',
|
||||
'.1.3.6.1.4.1.6027.1.2.1'=> 'C300',
|
||||
'.1.3.6.1.4.1.6027.1.2.2'=> 'C150',
|
||||
'.1.3.6.1.4.1.6027.1.3.1'=> 'S50',
|
||||
'.1.3.6.1.4.1.6027.1.3.2'=> 'S50E',
|
||||
'.1.3.6.1.4.1.6027.1.3.3'=> 'S50V',
|
||||
'.1.3.6.1.4.1.6027.1.3.4'=> 'S25P-AC',
|
||||
'.1.3.6.1.4.1.6027.1.3.5'=> 'S2410CP',
|
||||
'.1.3.6.1.4.1.6027.1.3.6'=> 'S2410P',
|
||||
'.1.3.6.1.4.1.6027.1.3.7'=> 'S50N-AC',
|
||||
'.1.3.6.1.4.1.6027.1.3.8'=> 'S50N-DC',
|
||||
'.1.3.6.1.4.1.6027.1.3.9'=> 'S25P-DC',
|
||||
'.1.3.6.1.4.1.6027.1.3.10'=> 'S25V',
|
||||
'.1.3.6.1.4.1.6027.1.3.11'=> 'S25N'
|
||||
'.1.3.6.1.4.1.6027.1.1.1'=> 'E1200',
|
||||
'.1.3.6.1.4.1.6027.1.1.2'=> 'E600',
|
||||
'.1.3.6.1.4.1.6027.1.1.3'=> 'E300',
|
||||
'.1.3.6.1.4.1.6027.1.1.4'=> 'E610',
|
||||
'.1.3.6.1.4.1.6027.1.1.5'=> 'E1200i',
|
||||
'.1.3.6.1.4.1.6027.1.2.1'=> 'C300',
|
||||
'.1.3.6.1.4.1.6027.1.2.2'=> 'C150',
|
||||
'.1.3.6.1.4.1.6027.1.3.1'=> 'S50',
|
||||
'.1.3.6.1.4.1.6027.1.3.2'=> 'S50E',
|
||||
'.1.3.6.1.4.1.6027.1.3.3'=> 'S50V',
|
||||
'.1.3.6.1.4.1.6027.1.3.4'=> 'S25P-AC',
|
||||
'.1.3.6.1.4.1.6027.1.3.5'=> 'S2410CP',
|
||||
'.1.3.6.1.4.1.6027.1.3.6'=> 'S2410P',
|
||||
'.1.3.6.1.4.1.6027.1.3.7'=> 'S50N-AC',
|
||||
'.1.3.6.1.4.1.6027.1.3.8'=> 'S50N-DC',
|
||||
'.1.3.6.1.4.1.6027.1.3.9'=> 'S25P-DC',
|
||||
'.1.3.6.1.4.1.6027.1.3.10'=> 'S25V',
|
||||
'.1.3.6.1.4.1.6027.1.3.11'=> 'S25N'
|
||||
);
|
||||
|
||||
$rewrite_fortinet_hardware = array(
|
||||
'.1.3.6.1.4.1.12356.102.1.1000' => 'FortiAnalyzer 100',
|
||||
'.1.3.6.1.4.1.12356.102.1.10002' => 'FortiAnalyzer 1000B',
|
||||
'.1.3.6.1.4.1.12356.102.1.1001' => 'FortiAnalyzer 100A',
|
||||
'.1.3.6.1.4.1.12356.102.1.1002' => 'FortiAnalyzer 100B',
|
||||
'.1.3.6.1.4.1.12356.102.1.20000' => 'FortiAnalyzer 2000',
|
||||
'.1.3.6.1.4.1.12356.102.1.20001' => 'FortiAnalyzer 2000A',
|
||||
'.1.3.6.1.4.1.12356.102.1.4000' => 'FortiAnalyzer 400',
|
||||
'.1.3.6.1.4.1.12356.102.1.40000' => 'FortiAnalyzer 4000',
|
||||
'.1.3.6.1.4.1.12356.102.1.40001' => 'FortiAnalyzer 4000A',
|
||||
'.1.3.6.1.4.1.12356.102.1.4002' => 'FortiAnalyzer 400B',
|
||||
'.1.3.6.1.4.1.12356.102.1.8000' => 'FortiAnalyzer 800',
|
||||
'.1.3.6.1.4.1.12356.102.1.8002' => 'FortiAnalyzer 800B',
|
||||
'.1.3.6.1.4.1.12356.101.1.1000' => 'FortiGate 100',
|
||||
'.1.3.6.1.4.1.12356.101.1.10000' => 'FortiGate 1000',
|
||||
'.1.3.6.1.4.1.12356.101.1.10001' => 'FortiGate 1000A',
|
||||
'.1.3.6.1.4.1.12356.101.1.10002' => 'FortiGate 1000AFA2',
|
||||
'.1.3.6.1.4.1.12356.101.1.10003' => 'FortiGate 1000ALENC',
|
||||
'.1.3.6.1.4.1.12356.101.1.1001' => 'FortiGate 100A',
|
||||
'.1.3.6.1.4.1.12356.101.1.1002' => 'FortiGate 110C',
|
||||
'.1.3.6.1.4.1.12356.101.1.1003' => 'FortiGate 111C',
|
||||
'.1.3.6.1.4.1.12356.101.1.2000' => 'FortiGate 200',
|
||||
'.1.3.6.1.4.1.12356.101.1.20000' => 'FortiGate 2000',
|
||||
'.1.3.6.1.4.1.12356.101.1.2001' => 'FortiGate 200A',
|
||||
'.1.3.6.1.4.1.12356.101.1.2002' => 'FortiGate 224B',
|
||||
'.1.3.6.1.4.1.12356.101.1.2003' => 'FortiGate 200A',
|
||||
'.1.3.6.1.4.1.12356.101.1.3000' => 'FortiGate 300',
|
||||
'.1.3.6.1.4.1.12356.101.1.30000' => 'FortiGate 3000',
|
||||
'.1.3.6.1.4.1.12356.101.1.3001' => 'FortiGate 300A',
|
||||
'.1.3.6.1.4.1.12356.101.1.30160' => 'FortiGate 3016B',
|
||||
'.1.3.6.1.4.1.12356.101.1.302' => 'FortiGate 30B',
|
||||
'.1.3.6.1.4.1.12356.101.1.3002' => 'FortiGate 310B',
|
||||
'.1.3.6.1.4.1.12356.101.1.36000' => 'FortiGate 3600',
|
||||
'.1.3.6.1.4.1.12356.101.1.36003' => 'FortiGate 3600A',
|
||||
'.1.3.6.1.4.1.12356.101.1.38100' => 'FortiGate 3810A',
|
||||
'.1.3.6.1.4.1.12356.101.1.4000' => 'FortiGate 400',
|
||||
'.1.3.6.1.4.1.12356.101.1.40000' => 'FortiGate 4000',
|
||||
'.1.3.6.1.4.1.12356.101.1.4001' => 'FortiGate 400A',
|
||||
'.1.3.6.1.4.1.12356.101.1.5000' => 'FortiGate 500',
|
||||
'.1.3.6.1.4.1.12356.101.1.50000' => 'FortiGate 5000',
|
||||
'.1.3.6.1.4.1.12356.101.1.50010' => 'FortiGate 5001',
|
||||
'.1.3.6.1.4.1.12356.101.1.50011' => 'FortiGate 5001A',
|
||||
'.1.3.6.1.4.1.12356.101.1.50012' => 'FortiGate 5001FA2',
|
||||
'.1.3.6.1.4.1.12356.101.1.50021' => 'FortiGate 5002A',
|
||||
'.1.3.6.1.4.1.12356.101.1.50001' => 'FortiGate 5002FB2',
|
||||
'.1.3.6.1.4.1.12356.101.1.50040' => 'FortiGate 5004',
|
||||
'.1.3.6.1.4.1.12356.101.1.50050' => 'FortiGate 5005',
|
||||
'.1.3.6.1.4.1.12356.101.1.50051' => 'FortiGate 5005FA2',
|
||||
'.1.3.6.1.4.1.12356.101.1.5001' => 'FortiGate 500A',
|
||||
'.1.3.6.1.4.1.12356.101.1.500' => 'FortiGate 50A',
|
||||
'.1.3.6.1.4.1.12356.101.1.501' => 'FortiGate 50AM',
|
||||
'.1.3.6.1.4.1.12356.101.1.502' => 'FortiGate 50B',
|
||||
'.1.3.6.1.4.1.12356.101.1.504' => 'FortiGate 51B',
|
||||
'.1.3.6.1.4.1.12356.101.1.600' => 'FortiGate 60',
|
||||
'.1.3.6.1.4.1.12356.101.1.6201' => 'FortiGate 600D',
|
||||
'.1.3.6.1.4.1.12356.101.1.602' => 'FortiGate 60ADSL',
|
||||
'.1.3.6.1.4.1.12356.101.1.603' => 'FortiGate 60B',
|
||||
'.1.3.6.1.4.1.12356.101.1.601' => 'FortiGate 60M',
|
||||
'.1.3.6.1.4.1.12356.101.1.6200' => 'FortiGate 620B',
|
||||
'.1.3.6.1.4.1.12356.101.1.8000' => 'FortiGate 800',
|
||||
'.1.3.6.1.4.1.12356.101.1.8001' => 'FortiGate 800F',
|
||||
'.1.3.6.1.4.1.12356.101.1.800' => 'FortiGate 80C',
|
||||
'.1.3.6.1.4.1.12356.1688' => 'FortiMail 2000A',
|
||||
'.1.3.6.1.4.1.12356.103.1.1000' => 'FortiManager 100',
|
||||
'.1.3.6.1.4.1.12356.103.1.20000' => 'FortiManager 2000XL',
|
||||
'.1.3.6.1.4.1.12356.103.1.30000' => 'FortiManager 3000',
|
||||
'.1.3.6.1.4.1.12356.103.1.30002' => 'FortiManager 3000B',
|
||||
'.1.3.6.1.4.1.12356.103.1.4000' => 'FortiManager 400',
|
||||
'.1.3.6.1.4.1.12356.103.1.4001' => 'FortiManager 400A',
|
||||
'.1.3.6.1.4.1.12356.106.1.50030' => 'FortiSwitch 5003A',
|
||||
'.1.3.6.1.4.1.12356.101.1.510' => 'FortiWiFi 50B',
|
||||
'.1.3.6.1.4.1.12356.101.1.610' => 'FortiWiFi 60',
|
||||
'.1.3.6.1.4.1.12356.101.1.611' => 'FortiWiFi 60A',
|
||||
'.1.3.6.1.4.1.12356.101.1.612' => 'FortiWiFi 60AM',
|
||||
'.1.3.6.1.4.1.12356.101.1.613' => 'FortiWiFi 60B');
|
||||
'.1.3.6.1.4.1.12356.102.1.1000' => 'FortiAnalyzer 100',
|
||||
'.1.3.6.1.4.1.12356.102.1.10002' => 'FortiAnalyzer 1000B',
|
||||
'.1.3.6.1.4.1.12356.102.1.1001' => 'FortiAnalyzer 100A',
|
||||
'.1.3.6.1.4.1.12356.102.1.1002' => 'FortiAnalyzer 100B',
|
||||
'.1.3.6.1.4.1.12356.102.1.20000' => 'FortiAnalyzer 2000',
|
||||
'.1.3.6.1.4.1.12356.102.1.20001' => 'FortiAnalyzer 2000A',
|
||||
'.1.3.6.1.4.1.12356.102.1.4000' => 'FortiAnalyzer 400',
|
||||
'.1.3.6.1.4.1.12356.102.1.40000' => 'FortiAnalyzer 4000',
|
||||
'.1.3.6.1.4.1.12356.102.1.40001' => 'FortiAnalyzer 4000A',
|
||||
'.1.3.6.1.4.1.12356.102.1.4002' => 'FortiAnalyzer 400B',
|
||||
'.1.3.6.1.4.1.12356.102.1.8000' => 'FortiAnalyzer 800',
|
||||
'.1.3.6.1.4.1.12356.102.1.8002' => 'FortiAnalyzer 800B',
|
||||
'.1.3.6.1.4.1.12356.101.1.1000' => 'FortiGate 100',
|
||||
'.1.3.6.1.4.1.12356.101.1.10000' => 'FortiGate 1000',
|
||||
'.1.3.6.1.4.1.12356.101.1.10001' => 'FortiGate 1000A',
|
||||
'.1.3.6.1.4.1.12356.101.1.10002' => 'FortiGate 1000AFA2',
|
||||
'.1.3.6.1.4.1.12356.101.1.10003' => 'FortiGate 1000ALENC',
|
||||
'.1.3.6.1.4.1.12356.101.1.1001' => 'FortiGate 100A',
|
||||
'.1.3.6.1.4.1.12356.101.1.1002' => 'FortiGate 110C',
|
||||
'.1.3.6.1.4.1.12356.101.1.1003' => 'FortiGate 111C',
|
||||
'.1.3.6.1.4.1.12356.101.1.2000' => 'FortiGate 200',
|
||||
'.1.3.6.1.4.1.12356.101.1.20000' => 'FortiGate 2000',
|
||||
'.1.3.6.1.4.1.12356.101.1.2001' => 'FortiGate 200A',
|
||||
'.1.3.6.1.4.1.12356.101.1.2002' => 'FortiGate 224B',
|
||||
'.1.3.6.1.4.1.12356.101.1.2003' => 'FortiGate 200A',
|
||||
'.1.3.6.1.4.1.12356.101.1.3000' => 'FortiGate 300',
|
||||
'.1.3.6.1.4.1.12356.101.1.30000' => 'FortiGate 3000',
|
||||
'.1.3.6.1.4.1.12356.101.1.3001' => 'FortiGate 300A',
|
||||
'.1.3.6.1.4.1.12356.101.1.30160' => 'FortiGate 3016B',
|
||||
'.1.3.6.1.4.1.12356.101.1.302' => 'FortiGate 30B',
|
||||
'.1.3.6.1.4.1.12356.101.1.3002' => 'FortiGate 310B',
|
||||
'.1.3.6.1.4.1.12356.101.1.36000' => 'FortiGate 3600',
|
||||
'.1.3.6.1.4.1.12356.101.1.36003' => 'FortiGate 3600A',
|
||||
'.1.3.6.1.4.1.12356.101.1.38100' => 'FortiGate 3810A',
|
||||
'.1.3.6.1.4.1.12356.101.1.4000' => 'FortiGate 400',
|
||||
'.1.3.6.1.4.1.12356.101.1.40000' => 'FortiGate 4000',
|
||||
'.1.3.6.1.4.1.12356.101.1.4001' => 'FortiGate 400A',
|
||||
'.1.3.6.1.4.1.12356.101.1.5000' => 'FortiGate 500',
|
||||
'.1.3.6.1.4.1.12356.101.1.50000' => 'FortiGate 5000',
|
||||
'.1.3.6.1.4.1.12356.101.1.50010' => 'FortiGate 5001',
|
||||
'.1.3.6.1.4.1.12356.101.1.50011' => 'FortiGate 5001A',
|
||||
'.1.3.6.1.4.1.12356.101.1.50012' => 'FortiGate 5001FA2',
|
||||
'.1.3.6.1.4.1.12356.101.1.50021' => 'FortiGate 5002A',
|
||||
'.1.3.6.1.4.1.12356.101.1.50001' => 'FortiGate 5002FB2',
|
||||
'.1.3.6.1.4.1.12356.101.1.50040' => 'FortiGate 5004',
|
||||
'.1.3.6.1.4.1.12356.101.1.50050' => 'FortiGate 5005',
|
||||
'.1.3.6.1.4.1.12356.101.1.50051' => 'FortiGate 5005FA2',
|
||||
'.1.3.6.1.4.1.12356.101.1.5001' => 'FortiGate 500A',
|
||||
'.1.3.6.1.4.1.12356.101.1.500' => 'FortiGate 50A',
|
||||
'.1.3.6.1.4.1.12356.101.1.501' => 'FortiGate 50AM',
|
||||
'.1.3.6.1.4.1.12356.101.1.502' => 'FortiGate 50B',
|
||||
'.1.3.6.1.4.1.12356.101.1.504' => 'FortiGate 51B',
|
||||
'.1.3.6.1.4.1.12356.101.1.600' => 'FortiGate 60',
|
||||
'.1.3.6.1.4.1.12356.101.1.6201' => 'FortiGate 600D',
|
||||
'.1.3.6.1.4.1.12356.101.1.602' => 'FortiGate 60ADSL',
|
||||
'.1.3.6.1.4.1.12356.101.1.603' => 'FortiGate 60B',
|
||||
'.1.3.6.1.4.1.12356.101.1.601' => 'FortiGate 60M',
|
||||
'.1.3.6.1.4.1.12356.101.1.6200' => 'FortiGate 620B',
|
||||
'.1.3.6.1.4.1.12356.101.1.8000' => 'FortiGate 800',
|
||||
'.1.3.6.1.4.1.12356.101.1.8001' => 'FortiGate 800F',
|
||||
'.1.3.6.1.4.1.12356.101.1.800' => 'FortiGate 80C',
|
||||
'.1.3.6.1.4.1.12356.1688' => 'FortiMail 2000A',
|
||||
'.1.3.6.1.4.1.12356.103.1.1000' => 'FortiManager 100',
|
||||
'.1.3.6.1.4.1.12356.103.1.20000' => 'FortiManager 2000XL',
|
||||
'.1.3.6.1.4.1.12356.103.1.30000' => 'FortiManager 3000',
|
||||
'.1.3.6.1.4.1.12356.103.1.30002' => 'FortiManager 3000B',
|
||||
'.1.3.6.1.4.1.12356.103.1.4000' => 'FortiManager 400',
|
||||
'.1.3.6.1.4.1.12356.103.1.4001' => 'FortiManager 400A',
|
||||
'.1.3.6.1.4.1.12356.106.1.50030' => 'FortiSwitch 5003A',
|
||||
'.1.3.6.1.4.1.12356.101.1.510' => 'FortiWiFi 50B',
|
||||
'.1.3.6.1.4.1.12356.101.1.610' => 'FortiWiFi 60',
|
||||
'.1.3.6.1.4.1.12356.101.1.611' => 'FortiWiFi 60A',
|
||||
'.1.3.6.1.4.1.12356.101.1.612' => 'FortiWiFi 60AM',
|
||||
'.1.3.6.1.4.1.12356.101.1.613' => 'FortiWiFi 60B');
|
||||
|
||||
$rewrite_extreme_hardware = array (
|
||||
'.1.3.6.1.4.1.1916.2.26' => 'Alpine 3802',
|
||||
'.1.3.6.1.4.1.1916.2.20' => 'Alpine 3804',
|
||||
'.1.3.6.1.4.1.1916.2.17' => 'Alpine 3808',
|
||||
'.1.3.6.1.4.1.1916.2.86' => 'Altitude 300',
|
||||
'.1.3.6.1.4.1.1916.2.75' => 'Altitude 350',
|
||||
'.1.3.6.1.4.1.1916.2.56' => 'BlackDiamond 10808',
|
||||
'.1.3.6.1.4.1.1916.2.85' => 'BlackDiamond 12802',
|
||||
'.1.3.6.1.4.1.1916.2.77' => 'BlackDiamond 12804',
|
||||
'.1.3.6.1.4.1.1916.2.8' => 'BlackDiamond 6800',
|
||||
'.1.3.6.1.4.1.1916.2.27' => 'BlackDiamond 6804',
|
||||
'.1.3.6.1.4.1.1916.2.11' => 'BlackDiamond 6808',
|
||||
'.1.3.6.1.4.1.1916.2.24' => 'BlackDiamond 6816',
|
||||
'.1.3.6.1.4.1.1916.2.74' => 'BlackDiamond 8806',
|
||||
'.1.3.6.1.4.1.1916.2.62' => 'BlackDiamond 8810',
|
||||
'.1.3.6.1.4.1.1916.2.23' => 'EnetSwitch 24Port',
|
||||
'.1.3.6.1.4.1.1916.2.83' => 'Sentriant CE150',
|
||||
'.1.3.6.1.4.1.1916.2.58' => 'Summit 400-48t',
|
||||
'.1.3.6.1.4.1.1916.2.59' => 'Summit 400-48t',
|
||||
'.1.3.6.1.4.1.1916.2.71' => 'Summit X450a-24t',
|
||||
'.1.3.6.1.4.1.1916.2.81' => 'Summit X450a-24t',
|
||||
'.1.3.6.1.4.1.1916.2.1' => 'Summit 1',
|
||||
'.1.3.6.1.4.1.1916.2.19' => 'Summit 1iSX',
|
||||
'.1.3.6.1.4.1.1916.2.14' => 'Summit 1iTX',
|
||||
'.1.3.6.1.4.1.1916.2.2' => 'Summit 2',
|
||||
'.1.3.6.1.4.1.1916.2.53' => 'Summit 200-24',
|
||||
'.1.3.6.1.4.1.1916.2.70' => 'Summit 200-24fx',
|
||||
'.1.3.6.1.4.1.1916.2.54' => 'Summit 200-48',
|
||||
'.1.3.6.1.4.1.1916.2.7' => 'Summit 24',
|
||||
'.1.3.6.1.4.1.1916.2.41' => 'Summit 24e2SX',
|
||||
'.1.3.6.1.4.1.1916.2.40' => 'Summit 24e2TX',
|
||||
'.1.3.6.1.4.1.1916.2.25' => 'Summit 24e3',
|
||||
'.1.3.6.1.4.1.1916.2.3' => 'Summit 3',
|
||||
'.1.3.6.1.4.1.1916.2.61' => 'Summit 300-24',
|
||||
'.1.3.6.1.4.1.1916.2.55' => 'Summit 300-48',
|
||||
'.1.3.6.1.4.1.1916.2.4' => 'Summit 4',
|
||||
'.1.3.6.1.4.1.1916.2.58' => 'Summit 400-24',
|
||||
'.1.3.6.1.4.1.1916.2.64' => 'Summit 400-24p',
|
||||
'.1.3.6.1.4.1.1916.2.63' => 'Summit 400-24t',
|
||||
'.1.3.6.1.4.1.1916.2.59' => 'Summit 400-24x',
|
||||
'.1.3.6.1.4.1.1916.2.6' => 'Summit 48',
|
||||
'.1.3.6.1.4.1.1916.2.16' => 'Summit 48i',
|
||||
'.1.3.6.1.4.1.1916.2.28' => 'Summit 48i1u',
|
||||
'.1.3.6.1.4.1.1916.2.5' => 'Summit 4FX',
|
||||
'.1.3.6.1.4.1.1916.2.15' => 'Summit 5i',
|
||||
'.1.3.6.1.4.1.1916.2.21' => 'Summit 5iLX',
|
||||
'.1.3.6.1.4.1.1916.2.22' => 'Summit 5iTX',
|
||||
'.1.3.6.1.4.1.1916.2.12' => 'Summit 7iSX',
|
||||
'.1.3.6.1.4.1.1916.2.13' => 'Summit 7iTX',
|
||||
'.1.3.6.1.4.1.1916.2.30' => 'Summit Px1',
|
||||
'.1.3.6.1.4.1.1916.2.67' => 'SummitStack',
|
||||
'.1.3.6.1.4.1.1916.2.93' => 'Summit Ver2Stack',
|
||||
'.1.3.6.1.4.1.1916.2.68' => 'SummitWM 100',
|
||||
'.1.3.6.1.4.1.1916.2.69' => 'SummitWM 1000',
|
||||
'.1.3.6.1.4.1.1916.2.94' => 'SummitWM 200',
|
||||
'.1.3.6.1.4.1.1916.2.95' => 'SummitWM 2000',
|
||||
'.1.3.6.1.4.1.1916.2.89' => 'Summit X250-24p',
|
||||
'.1.3.6.1.4.1.1916.2.88' => 'Summit X250-24t',
|
||||
'.1.3.6.1.4.1.1916.2.90' => 'Summit X250-24x',
|
||||
'.1.3.6.1.4.1.1916.2.92' => 'Summit X250-48p',
|
||||
'.1.3.6.1.4.1.1916.2.91' => 'Summit X250-48t',
|
||||
'.1.3.6.1.4.1.1916.2.93' => 'Summit X250e-24t (3-Stack)',
|
||||
'.1.3.6.1.4.1.1916.2.88' => 'Summit X250e-24t (Single)',
|
||||
'.1.3.6.1.4.1.1916.2.66' => 'Summit X450-24t',
|
||||
'.1.3.6.1.4.1.1916.2.65' => 'Summit X450-24x',
|
||||
'.1.3.6.1.4.1.1916.2.80' => 'Summit X450a-24tDC',
|
||||
'.1.3.6.1.4.1.1916.2.84' => 'Summit X450a-24x',
|
||||
'.1.3.6.1.4.1.1916.2.82' => 'Summit X450a-24xDC',
|
||||
'.1.3.6.1.4.1.1916.2.76' => 'Summit X450a-48t',
|
||||
'.1.3.6.1.4.1.1916.2.87' => 'Summit X450a-48tDC',
|
||||
'.1.3.6.1.4.1.1916.2.72' => 'Summit X450e-24p',
|
||||
'.1.3.6.1.4.1.1916.2.79' => 'Summit X450e-48p'
|
||||
'.1.3.6.1.4.1.1916.2.26' => 'Alpine 3802',
|
||||
'.1.3.6.1.4.1.1916.2.20' => 'Alpine 3804',
|
||||
'.1.3.6.1.4.1.1916.2.17' => 'Alpine 3808',
|
||||
'.1.3.6.1.4.1.1916.2.86' => 'Altitude 300',
|
||||
'.1.3.6.1.4.1.1916.2.75' => 'Altitude 350',
|
||||
'.1.3.6.1.4.1.1916.2.56' => 'BlackDiamond 10808',
|
||||
'.1.3.6.1.4.1.1916.2.85' => 'BlackDiamond 12802',
|
||||
'.1.3.6.1.4.1.1916.2.77' => 'BlackDiamond 12804',
|
||||
'.1.3.6.1.4.1.1916.2.8' => 'BlackDiamond 6800',
|
||||
'.1.3.6.1.4.1.1916.2.27' => 'BlackDiamond 6804',
|
||||
'.1.3.6.1.4.1.1916.2.11' => 'BlackDiamond 6808',
|
||||
'.1.3.6.1.4.1.1916.2.24' => 'BlackDiamond 6816',
|
||||
'.1.3.6.1.4.1.1916.2.74' => 'BlackDiamond 8806',
|
||||
'.1.3.6.1.4.1.1916.2.62' => 'BlackDiamond 8810',
|
||||
'.1.3.6.1.4.1.1916.2.23' => 'EnetSwitch 24Port',
|
||||
'.1.3.6.1.4.1.1916.2.83' => 'Sentriant CE150',
|
||||
'.1.3.6.1.4.1.1916.2.58' => 'Summit 400-48t',
|
||||
'.1.3.6.1.4.1.1916.2.59' => 'Summit 400-48t',
|
||||
'.1.3.6.1.4.1.1916.2.71' => 'Summit X450a-24t',
|
||||
'.1.3.6.1.4.1.1916.2.81' => 'Summit X450a-24t',
|
||||
'.1.3.6.1.4.1.1916.2.1' => 'Summit 1',
|
||||
'.1.3.6.1.4.1.1916.2.19' => 'Summit 1iSX',
|
||||
'.1.3.6.1.4.1.1916.2.14' => 'Summit 1iTX',
|
||||
'.1.3.6.1.4.1.1916.2.2' => 'Summit 2',
|
||||
'.1.3.6.1.4.1.1916.2.53' => 'Summit 200-24',
|
||||
'.1.3.6.1.4.1.1916.2.70' => 'Summit 200-24fx',
|
||||
'.1.3.6.1.4.1.1916.2.54' => 'Summit 200-48',
|
||||
'.1.3.6.1.4.1.1916.2.7' => 'Summit 24',
|
||||
'.1.3.6.1.4.1.1916.2.41' => 'Summit 24e2SX',
|
||||
'.1.3.6.1.4.1.1916.2.40' => 'Summit 24e2TX',
|
||||
'.1.3.6.1.4.1.1916.2.25' => 'Summit 24e3',
|
||||
'.1.3.6.1.4.1.1916.2.3' => 'Summit 3',
|
||||
'.1.3.6.1.4.1.1916.2.61' => 'Summit 300-24',
|
||||
'.1.3.6.1.4.1.1916.2.55' => 'Summit 300-48',
|
||||
'.1.3.6.1.4.1.1916.2.4' => 'Summit 4',
|
||||
'.1.3.6.1.4.1.1916.2.58' => 'Summit 400-24',
|
||||
'.1.3.6.1.4.1.1916.2.64' => 'Summit 400-24p',
|
||||
'.1.3.6.1.4.1.1916.2.63' => 'Summit 400-24t',
|
||||
'.1.3.6.1.4.1.1916.2.59' => 'Summit 400-24x',
|
||||
'.1.3.6.1.4.1.1916.2.6' => 'Summit 48',
|
||||
'.1.3.6.1.4.1.1916.2.16' => 'Summit 48i',
|
||||
'.1.3.6.1.4.1.1916.2.28' => 'Summit 48i1u',
|
||||
'.1.3.6.1.4.1.1916.2.5' => 'Summit 4FX',
|
||||
'.1.3.6.1.4.1.1916.2.15' => 'Summit 5i',
|
||||
'.1.3.6.1.4.1.1916.2.21' => 'Summit 5iLX',
|
||||
'.1.3.6.1.4.1.1916.2.22' => 'Summit 5iTX',
|
||||
'.1.3.6.1.4.1.1916.2.12' => 'Summit 7iSX',
|
||||
'.1.3.6.1.4.1.1916.2.13' => 'Summit 7iTX',
|
||||
'.1.3.6.1.4.1.1916.2.30' => 'Summit Px1',
|
||||
'.1.3.6.1.4.1.1916.2.67' => 'SummitStack',
|
||||
'.1.3.6.1.4.1.1916.2.93' => 'Summit Ver2Stack',
|
||||
'.1.3.6.1.4.1.1916.2.68' => 'SummitWM 100',
|
||||
'.1.3.6.1.4.1.1916.2.69' => 'SummitWM 1000',
|
||||
'.1.3.6.1.4.1.1916.2.94' => 'SummitWM 200',
|
||||
'.1.3.6.1.4.1.1916.2.95' => 'SummitWM 2000',
|
||||
'.1.3.6.1.4.1.1916.2.89' => 'Summit X250-24p',
|
||||
'.1.3.6.1.4.1.1916.2.88' => 'Summit X250-24t',
|
||||
'.1.3.6.1.4.1.1916.2.90' => 'Summit X250-24x',
|
||||
'.1.3.6.1.4.1.1916.2.92' => 'Summit X250-48p',
|
||||
'.1.3.6.1.4.1.1916.2.91' => 'Summit X250-48t',
|
||||
'.1.3.6.1.4.1.1916.2.93' => 'Summit X250e-24t (3-Stack)',
|
||||
'.1.3.6.1.4.1.1916.2.88' => 'Summit X250e-24t (Single)',
|
||||
'.1.3.6.1.4.1.1916.2.66' => 'Summit X450-24t',
|
||||
'.1.3.6.1.4.1.1916.2.65' => 'Summit X450-24x',
|
||||
'.1.3.6.1.4.1.1916.2.80' => 'Summit X450a-24tDC',
|
||||
'.1.3.6.1.4.1.1916.2.84' => 'Summit X450a-24x',
|
||||
'.1.3.6.1.4.1.1916.2.82' => 'Summit X450a-24xDC',
|
||||
'.1.3.6.1.4.1.1916.2.76' => 'Summit X450a-48t',
|
||||
'.1.3.6.1.4.1.1916.2.87' => 'Summit X450a-48tDC',
|
||||
'.1.3.6.1.4.1.1916.2.72' => 'Summit X450e-24p',
|
||||
'.1.3.6.1.4.1.1916.2.79' => 'Summit X450e-48p'
|
||||
);
|
||||
|
||||
$rewrite_ironware_hardware = array(
|
||||
@@ -747,9 +747,9 @@ $rewrite_ios_features = array(
|
||||
'I6K2L2Q4' => 'Layer 2 Crypto',
|
||||
'C3H2S' => 'Layer 2 SI/EI',
|
||||
'_WAN' => ' + WAN',
|
||||
);
|
||||
);
|
||||
|
||||
$rewrite_shortif = array (
|
||||
$rewrite_shortif = array (
|
||||
'tengigabitethernet' => 'Te',
|
||||
'gigabitethernet' => 'Gi',
|
||||
'fastethernet' => 'Fa',
|
||||
@@ -764,9 +764,9 @@ $rewrite_shortif = array (
|
||||
'vlan' => 'Vlan',
|
||||
'tunnel' => 'Tunnel',
|
||||
'serviceinstance' => 'SI',
|
||||
);
|
||||
);
|
||||
|
||||
$rewrite_iftype = array (
|
||||
$rewrite_iftype = array (
|
||||
'/^frameRelay$/' => 'Frame Relay',
|
||||
'/^ethernetCsmacd$/' => 'Ethernet',
|
||||
'/^softwareLoopback$/' => 'Loopback',
|
||||
@@ -783,9 +783,9 @@ $rewrite_iftype = array (
|
||||
'/^aal5$/' => 'ATM AAL5',
|
||||
'/^atmSubInterface$/' => 'ATM Subif',
|
||||
'/^propPointToPointSerial$/' => 'PtP Serial',
|
||||
);
|
||||
);
|
||||
|
||||
$rewrite_ifname = array (
|
||||
$rewrite_ifname = array (
|
||||
'ether' => 'Ether',
|
||||
'gig' => 'Gig',
|
||||
'fast' => 'Fast',
|
||||
@@ -805,16 +805,16 @@ $rewrite_ifname = array (
|
||||
'hp procurve switch software loopback interface' => 'Loopback Interface',
|
||||
'control plane interface' => 'Control Plane',
|
||||
'loop' => 'Loop',
|
||||
);
|
||||
);
|
||||
|
||||
$rewrite_hrDevice = array (
|
||||
$rewrite_hrDevice = array (
|
||||
'GenuineIntel:' => '',
|
||||
'AuthenticAMD:' => '',
|
||||
'Intel(R)' => '',
|
||||
'CPU' => '',
|
||||
'(R)' => '',
|
||||
' ' => ' ',
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
// Specific rewrite functions
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
function add_service($service) {
|
||||
function add_service($service) {
|
||||
global $id;
|
||||
global $hostname;
|
||||
echo("$service ");
|
||||
@@ -9,7 +9,7 @@ function add_service($service) {
|
||||
'" . mres("auto discovered: $service") . "','" . mres("") . "','0')";
|
||||
|
||||
$query = mysql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user