Merge pull request #816 from alangregory/datacom

Datacom basic support added with snmp Mibs
This commit is contained in:
Neil Lathwood
2015-04-15 21:20:14 +01:00
9 changed files with 6023 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+5
View File
@@ -1045,6 +1045,11 @@ $config['os'][$os]['text'] = "Cambium";
$config['os'][$os]['type'] = "wireless";
$config['os'][$os]['icon'] = "cambium";
$os = "datacom";
$config['os'][$os]['text'] = "Datacom";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['icon'] = "datacom";
foreach ($config['os'] as $this_os => $blah)
{
if (isset($config['os'][$this_os]['group']))
+6
View File
@@ -0,0 +1,6 @@
<?php
if (!$os)
{
if (strstr($sysObjectId, ".1.3.6.1.4.1.3709")) { $os = "datacom"; }
}
?>
@@ -0,0 +1,11 @@
<?php
if ($device['os'] == "datacom") {
echo("Datacom Switch : ");
$descr = "Processor";
$usage = snmp_get($device, "swCpuUsage.0", "-Ovq", "DMswitch-MIB");
echo $usage."\n";
if (is_numeric($usage)) {
discover_processor($valid['processor'], $device, "swCpuUsage", "0", "datacom", $descr, "1", $usage, NULL, NULL);
}
}
?>
+6
View File
@@ -0,0 +1,6 @@
<?php
$hardware = "Datacom ".str_replace("dmSwitch","DM",snmp_get($device, "swChassisModel.0", "-Ovq", "DMswitch-MIB"));
$version = snmp_get($device, "swFirmwareVer.1", "-Ovq", "DMswitch-MIB");
$features = snmp_get($device, "sysDescr.0", "-Oqv", "SNMPv2-MIB");
$serial = snmp_get($device, "DMswitch-MIB::swSerialNumber.1", "-Ovq","DMswitch-MIB");
?>
@@ -0,0 +1,3 @@
<?php
$proc = snmp_get($device, "swCpuUsage.0", "-Ovq", "DMswitch-MIB");
?>
File diff suppressed because it is too large Load Diff
+1209
View File
File diff suppressed because it is too large Load Diff
+112
View File
@@ -0,0 +1,112 @@
--
-- DATACOM Telematica
-- Copyright 1999-2006 by Datacom Telematica (Teracom Telematica Ltda). All Rights Reserved.
-- This DATACOM SNMP MIB Specification is Datacom proprietary intellectual property.
--
-- This module will be extend, as required. The specification and other information
-- contained in this document can be modified without prior notice. The user should
-- consult Datacom to determine whether any such changes have been done.
--
DATACOM-SMI DEFINITIONS ::= BEGIN
IMPORTS
enterprises
FROM RFC1155-SMI;
datacom OBJECT IDENTIFIER ::={ enterprises 3709 }
-- MODULE-IDENTITY
-- LAST-UPDATED "9912150000Z"
-- ORGANIZATION "Datacom Telemática"
-- CONTACT-INFO
-- "Datacom Telemática
--
-- Postal: Datacom Telematica
-- Av. França, 735
-- Navegantes, POA, RS
-- CEP 90230-220
-- BRAZIL
--
-- Tel: +55(051)3358-0100
-- Fax: +55(051)3358-0101
--
-- E-mail: datacom@datacom-telematica.com.br"
-- DESCRIPTION
-- " The Structure of Management Information for
-- Datacom Telematica enterprise. "
--
datacomRegistrations OBJECT IDENTIFIER ::={ datacom 1 }
datacomGenericMIBs OBJECT IDENTIFIER ::={ datacom 2 }
datacomProductsMIBs OBJECT IDENTIFIER ::={ datacom 3 }
datacomExperimental OBJECT IDENTIFIER ::={ datacom 4 }
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- --
--
-- datacomRegistration
-- Register the modules identification of MIBs
datacomModules OBJECT IDENTIFIER ::={ datacomRegistrations 1 }
--
-- Products registration
-- Register the management cards
datacomManagementCards OBJECT IDENTIFIER ::={ datacomRegistrations 2 }
-- Register the modems
datacomModems OBJECT IDENTIFIER ::={ datacomRegistrations 3 }
-- Register the data converters.
datacomAccessDevices OBJECT IDENTIFIER ::={ datacomRegistrations 5 }
-- -- -- -- -- -- -- -- -- -- -- -- -- --
--
-- datacomProductsMIBs
-- Modem MIBs
datacomModemsMIBs OBJECT IDENTIFIER ::={ datacomProductsMIBs 3 }
-- Access Devices MIBs
datacomAccessDevicesMIBs OBJECT IDENTIFIER ::={ datacomProductsMIBs 5 }
-- -- -- -- -- -- -- -- -- -- -- -- -- --
--
-- datacomExperimental
datacomExpGenericMIBs OBJECT IDENTIFIER ::={ datacomExperimental 2 }
datacomExpProductsMIBs OBJECT IDENTIFIER ::={ datacomExperimental 3 }
--
-- datacomExpProductsMIBs
datacomExpModemsMIBs OBJECT IDENTIFIER ::={ datacomExpProductsMIBs 3 }
-- Access Devices MIBs
datacomExpAccessDevicesMIBs OBJECT IDENTIFIER ::={ datacomExpProductsMIBs 5 }
END