git-svn-id: http://www.observium.org/svn/observer/trunk@528 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-11-21 15:07:09 +00:00
parent 79bf6e81b5
commit 64368223a0
15 changed files with 783 additions and 856 deletions

View File

@@ -86,6 +86,7 @@ $config['enable_bgp'] = 1; # Enable BGP session collection and display
$config['enable_syslog'] = 0; # Enable Syslog
$config['enable_billing'] = 0; # Enable Billing
$config['enable_inventory'] = 1; # Enable Inventory
$config['enable_etherlike'] = 1; # Enable Etherlike
$config['enable_pseudowires'] = 1; # Enable Pseudowires
$config['enable_etherlike'] = 1; # Enable Polling EtherLike-MIB (doubles interface processing time)

View File

@@ -71,7 +71,7 @@ while ($device = mysql_fetch_array($device_query)) {
if($device['os'] == "JunOS") { include("includes/discovery/bgp-peers.php"); }
if($device['os'] == "IOS" || $device['os'] == "IOS XE" || $device['os'] == "CatOS") {
if($device['os'] == "IOS" || $device['os'] == "IOS XE" || $device['os'] == "CatOS" || $device['os'] == "ASA") {
include("includes/discovery/cisco-vlans.php");
include("includes/discovery/cisco-physical.php");
include("includes/discovery/bgp-peers.php");

View File

@@ -6,7 +6,7 @@ include("common.inc.php");
$iter = "1";
$sql = mysql_query("SELECT * FROM `cmpMemPool` AS C, `devices` AS D where C.`cmp_id` = '".mres($_GET['id'])."' AND C.device_id = D.device_id");
$rrd_options .= " COMMENT:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Cur\ \ \ \ Max\\\\n";
$rrd_options .= " COMMENT:' Cur Max\\n'";
while($mempool = mysql_fetch_array($sql)) {
if($iter=="1") {$colour="CC0000";} elseif($iter=="2") {$colour="008C00";} elseif($iter=="3") {$colour="4096EE";
} elseif($iter=="4") {$colour="73880A";} elseif($iter=="5") {$colour="D01F3C";} elseif($iter=="6") {$colour="36393D";

View File

@@ -15,7 +15,7 @@ if(mysql_result(mysql_query("SELECT count(*) from cmpMemPool WHERE device_id = '
$mempool['descr_fixed'] = str_replace("Sub-Module", "Mod", $mempool['descr_fixed']);
$mempool['descr_fixed'] = str_replace("DFC Card", "DFC", $mempool['descr_fixed']);
$proc_url = "?page=device/".$device['device_id']."/sensors/mempools/";
$proc_url = "/device/".$device['device_id']."/health/cmp/";
$mempool_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$mempool['descr_fixed'];
$mempool_popup .= "</div><img src=\'graph.php?id=" . $mempool['cmp_id'] . "&type=cmpMemPool&from=$month&to=$now&width=400&height=125\'>";

View File

@@ -19,7 +19,7 @@ if(mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE host_id
$fs_url = "/device/".$device['device_id']."/health/storage/";
$fs_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$drive['hrStorageDescr'];
$fs_popup .= "</div><img src=\'graph.php?id=" . $drive['storage_id'] . "&type=unixfs&from=$month&to=$now&width=400&height=125\'>";
$fs_popup .= "</div><img src=\'graph.php?id=" . $drive['storage_id'] . "&type=hrstorage&from=$month&to=$now&width=400&height=125\'>";
$fs_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
if($perc > '80') { $drv_colour='#cc0000'; } else { $drvclass='#0000cc'; }

View File

@@ -1,31 +1,26 @@
<?php
function generate_front_box ($type, $content) {
echo("<div style=' background: transparent url(images/box-$type.png) no-repeat; display: block; height: 84px; width: 119px; padding: 8px; margin: 5px; float: left;'>
$content
</div>");
# echo("<div style='float: left; padding: 5px; width: 135px; margin: 0px;'>
# <b class='box-".$type."'>
# <b class='box-".$type."1'><b></b></b>
# <b class='box-".$type."2'><b></b></b>
# <b class='box-".$type."3'></b>
# <b class='box-".$type."4'></b>
# <b class='box-".$type."5'></b></b>
# <div class='box-".$type."fg' style='height: 90px;'>
# ".$content."
# </div>
# <b class='box-".$type."'>
# <b class='box-".$type."5'></b>
# <b class='box-".$type."4'></b>
# <b class='box-".$type."3'></b>
# <b class='box-".$type."2'><b></b></b>
# <b class='box-".$type."1'><b></b></b></b>
# </div>");
echo("<div style='float: left; padding: 5px; width: 135px; margin: 0px;'>
<b class='box-".$type."'>
<b class='box-".$type."1'><b></b></b>
<b class='box-".$type."2'><b></b></b>
<b class='box-".$type."3'></b>
<b class='box-".$type."4'></b>
<b class='box-".$type."5'></b></b>
<div class='box-".$type."fg' style='height: 90px;'>
".$content."
</div>
<b class='box-".$type."'>
<b class='box-".$type."5'></b>
<b class='box-".$type."4'></b>
<b class='box-".$type."3'></b>
<b class='box-".$type."2'><b></b></b>
<b class='box-".$type."1'><b></b></b></b>
</div>");
}
echo("<div style='width: 875px; float: left; padding: 3px 10px; background: #fff;'>");
echo("<div style='padding: 3px 10px; background: #fff;'>");
$sql = mysql_query("SELECT * FROM `devices` WHERE `status` = '0' AND `ignore` = '0'");
while($device = mysql_fetch_array($sql)){
@@ -127,84 +122,4 @@ echo("</table>");
echo("</div>");
echo("<div style='width: 290px; margin: 7px; float: right;'>
<b class='content-box'>
<b class='content-box1'><b></b></b>
<b class='content-box2'><b></b></b>
<b class='content-box3'></b>
<b class='content-box4'></b>
<b class='content-box5'></b></b>
<div class='content-boxfg' style='padding: 2px 8px;'>");
/// this stuff can be customised to show whatever you want....
if($_SESSION['userlevel'] >= '5') {
$sql = "select * from interfaces as I, devices as D WHERE `ifAlias` like 'Peering: %' AND I.device_id = D.device_id ORDER BY I.ifAlias";
$query = mysql_query($sql);
unset ($seperator);
while($interface = mysql_fetch_array($query)) {
$interfaces['peering'] .= $seperator . $interface['interface_id'];
$seperator = ",";
}
$sql = "select * from interfaces as I, devices as D WHERE `ifAlias` like 'Transit: %' AND I.device_id = D.device_id ORDER BY I.ifAlias";
$query = mysql_query($sql);
unset ($seperator);
while($interface = mysql_fetch_array($query)) {
$interfaces['transit'] .= $seperator . $interface['interface_id'];
$seperator = ",";
}
$sql = "select * from interfaces as I, devices as D WHERE `ifAlias` like 'Core: %' AND I.device_id = D.device_id ORDER BY I.ifAlias";
$query = mysql_query($sql);
unset ($seperator);
while($interface = mysql_fetch_array($query)) {
$interfaces['core'] .= $seperator . $interface['interface_id'];
$seperator = ",";
}
if($interfaces['transit']) {
echo("<a onmouseover=\"return overlib('<img src=\'graph.php?type=multi_bits&interfaces=".$interfaces['transit'].
"&from=".$day."&to=".$now."&width=400&height=150\'>', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
"<div style='font-size: 18px; font-weight: bold;'>Internet Transit</div>".
"<img src='graph.php?type=multi_bits&interfaces=".$interfaces['transit'].
"&from=".$day."&to=".$now."&width=200&height=100'></a>");
}
if($interfaces['peering']) {
echo("<a onmouseover=\"return overlib('<img src=\'graph.php?type=multi_bits&interfaces=".$interfaces['peering'].
"&from=".$day."&to=".$now."&width=400&height=150\'>', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
"<div style='font-size: 18px; font-weight: bold;'>Internet Peering</div>".
"<img src='graph.php?type=multi_bits&interfaces=".$interfaces['peering'].
"&from=".$day."&to=".$now."&width=200&height=100'></a>");
}
if($interfaces['core']) {
echo("<a onmouseover=\"return overlib('<img src=\'graph.php?type=multi_bits&interfaces=".$interfaces['peering'].
"&from=".$day."&to=".$now."&width=400&height=150\'>', LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 250);\" onmouseout=\"return nd();\" >".
"<div style='font-size: 18px; font-weight: bold;'>Core Links</div>".
"<img src='graph.php?type=multi_bits&interfaces=".$interfaces['core'].
"&from=".$day."&to=".$now."&width=200&height=100'></a>");
}
}
echo("</div>
<b class='content-box'>
<b class='content-box5'></b>
<b class='content-box4'></b>
<b class='content-box3'></b>
<b class='content-box2'><b></b></b>
<b class='content-box1'><b></b></b></b>
</div>
");
#echo("</div>");
/// END VOSTRON
#}
?>

View File

@@ -545,7 +545,7 @@ function collectd_draw_rrd($host, $plugin, $pinst = null, $type, $tinst = null,
$rrd_cmd = array_merge($rrd_cmd, $small_opts);
}
$rrd_cmd = array_merge($rrd_cmd, $config['rrd_opts'], $opts['rrd_opts'], $graph);
$rrd_cmd = array_merge($rrd_cmd, $config['rrd_opts_array'], $opts['rrd_opts'], $graph);
$cmd = RRDTOOL;
for ($i = 1; $i < count($rrd_cmd); $i++)
@@ -586,7 +586,7 @@ function collectd_draw_generic($timespan, $host, $plugin, $pinst = null, $type,
$rrd_cmd = array_merge($rrd_cmd, $small_opts);
}
$rrd_cmd = array_merge($rrd_cmd, $config['rrd_opts']);
$rrd_cmd = array_merge($rrd_cmd, $config['rrd_opts_array']);
$rrd_args = $GraphDefs[$type];
foreach ($config['datadirs'] as $datadir) {
@@ -642,7 +642,7 @@ function collectd_draw_meta_stack(&$opts, &$sources) {
}
$cmd = array_merge($cmd, $config['rrd_opts'], $opts['rrd_opts']);
$cmd = array_merge($cmd, $config['rrd_opts_array'], $opts['rrd_opts']);
$max_inst_name = 0;
foreach($sources as &$inst_data) {
@@ -730,7 +730,7 @@ function collectd_draw_meta_line(&$opts, &$sources) {
array_unshift($opts['rrd_opts'], '-o');
# $cmd = array(RRDTOOL, 'graph', '-', '-a', 'PNG', '-w', $config['rrd_width'], '-h', $config['rrd_height'], '-s', -1*$timespan_def['seconds'], '-t', $opts['title']);
# $cmd = array_merge($cmd, $config['rrd_opts'], $opts['rrd_opts']);
# $cmd = array_merge($cmd, $config['rrd_opts_array'], $opts['rrd_opts']);
$cmd = array(RRDTOOL, 'graph', '-', '-a', 'PNG', '-w', $config['rrd_width'], '-h', $config['rrd_height'], '-s', -1*$timespan_def['seconds']);

View File

@@ -102,10 +102,15 @@ function rrdtool($command, $file, $options) {
return shell_exec($config['rrdtool'] . " $command $file $options");
}
function device_array($device_id) {
$sql = "SELECT * FROM `devices` WHERE `device_id` = '".$device_id."'";
$query = mysql_query($sql);
$device = mysql_fetch_array($query);
return $device;
}
function getHostOS($hostname, $community, $snmpver, $port) {
global $config;
$sysDescr_cmd = $config['snmpget']." -m SNMPv2-MIB -O qv -" . $snmpver . " -c " . $community . " " . $hostname.":".$port . " sysDescr.0";
$sysDescr = str_replace("\"", "", trim(shell_exec($sysDescr_cmd)));
$dir_handle = @opendir($config['install_dir'] . "/includes/osdiscovery") or die("Unable to open $path");
@@ -116,7 +121,6 @@ function getHostOS($hostname, $community, $snmpver, $port) {
}
closedir($dir_handle);
if($os) { return $os; } else { return FALSE; }
}
function billpermitted($bill_id)

View File

@@ -34,5 +34,6 @@ if (!is_file($cpurrd)) {
shell_exec($config['rrdtool'] . " update $cpurrd N:$cpu_usage");
include("hr-mib.inc.php");
?>

View File

@@ -25,19 +25,25 @@
$ifmib_oids = array_merge($data_oids, $stat_oids);
if(count($ifmib_oids) > (count($ports)*2.5)) { /// If there are 2.5x more interfaces than OIDs, do per-OID
$sub_start = utime();
echo("Caching Ports: ");
foreach($ports as $port) { echo("$port "); $array = snmp_cache_port_oids($ifmib_oids, $port, $device, $array, "IF-MIB"); }
$end = utime(); $run = $end - $sub_start; $proctime = substr($run, 0, 5);
#echo("\n$proctime secs\n");
} else {
$sub_start = utime();
echo("Caching Oids: ");
foreach ($ifmib_oids as $oid) { echo("$oid "); $array = snmp_cache_oid($oid, $device, $array, "IF-MIB"); }
$end = utime(); $run = $end - $sub_start; $proctime = substr($run, 0, 5);
#echo("\n$proctime secs\n");
}
# if(count($ifmib_oids) > (count($ports)*2.5)) { /// If there are 2.5x more interfaces than OIDs, do per-OID
# $sub_start = utime();
# echo("Caching Ports: ");
# foreach($ports as $port) { echo("$port "); $array = snmp_cache_port_oids($ifmib_oids, $port, $device, $array, "IF-MIB"); }
# $end = utime(); $run = $end - $sub_start; $proctime = substr($run, 0, 5);
# #echo("\n$proctime secs\n");
# } else {
# $sub_start = utime();
# echo("Caching Oids: ");
# foreach ($ifmib_oids as $oid) { echo("$oid "); $array = snmp_cache_oid($oid, $device, $array, "IF-MIB"); }
# $end = utime(); $run = $end - $sub_start; $proctime = substr($run, 0, 5);
# #echo("\n$proctime secs\n");
# }
$ifmib_oids = array('ifentry', 'ifxentry');
echo("Caching Oids: ");
foreach ($ifmib_oids as $oid) { echo("$oid "); $array = snmp_cache_oid($oid, $device, $array, "IF-MIB");}
echo("\n");
#foreach ($etherlike_oids as $oid) { $array = snmp_cache_oid($oid, $device, $array, "EtherLike-MIB"); }
#foreach ($cisco_oids as $oid) { $array = snmp_cache_oid($oid, $device, $array, "OLD-CISCO-INTERFACES-MIB"); }

View File

@@ -6,18 +6,15 @@ function formatMac($mac) {
}
function ifNameDescr ($interface, $device) {
# echo($device['os']);
if(!$config['ifname'][$device['os']]) {
$interface['label'] = $interface['ifDescr'];
} else {
function ifNameDescr ($interface, $device = NULL) {
global $config;
if(!$device) { $device = device_array($interface['device_id']); }
$os = strtolower($device['os']);
if($config['ifname'][$os]) {
$interface['label'] = $interface['ifName'];
} else {
$interface['label'] = $interface['ifDescr'];
}
# unset ($interface['ifDescr']);
# unset ($interface['ifName']);
return $interface;
}

View File

@@ -1,10 +1,9 @@
<?php
## ifDescr whitelist (used instead of ifName)
$config['ifdescr']['IOS'] = true;
$config['ifdescr']['IOS XE'] = true;
$config['ifname']['ASA'] = true;
$config['ifname']['CatOS'] = true;
$config['ifname']['asa'] = true;
$config['ifname']['catos'] = true;
$config['ifname']['windows'] = true;
## AFI / SAFI pairs for BGP (and other stuff, perhaps)
$config['afi']['ipv4']['unicast'] = "IPv4";
@@ -23,6 +22,7 @@ $os_groups['dragonfly'] = "unix";
$os_groups['solaris'] = "unix";
$os_groups['ios xe'] = "ios";
$os_groups['asa'] = "ios";
if(!$config['graph_colours']['greens']) {
$config['graph_colours']['greens'] = array('B6D14B','91B13C','6D912D','48721E','24520F','003300');
@@ -50,6 +50,9 @@ if(!$config['graph_colours']['mixed']) {
$config['version'] = "0.7.0";
$config['rrd_opts_array'] = explode(" ", trim($config['rrdgraph_def_text']));
# print_r($config['rrd_opts_array']);
if($config['enable_nagios']) {
$nagios_link = mysql_connect($config['nagios_db_host'], $config['nagios_db_user'], $config['nagios_db_pass']);

View File

@@ -0,0 +1,714 @@
-- *****************************************************************
-- CISCO-ENTITY-EXT-MIB.my
--
-- Cisco Extension to ENTITY-MIB(RFC2737)
--
-- April 2001, A S Kiran Koushik
-- May 2004, Arul Mozhi
--
-- Copyright (c) 2001, 2002, 2003 & 2004 by cisco Systems, Inc.
-- All rights reserved.
--
-- *****************************************************************
--
CISCO-ENTITY-EXT-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE,
Unsigned32 FROM SNMPv2-SMI
MODULE-COMPLIANCE,
OBJECT-GROUP FROM SNMPv2-CONF
TEXTUAL-CONVENTION FROM SNMPv2-TC
SnmpAdminString FROM SNMP-FRAMEWORK-MIB
entPhysicalIndex,
entPhysicalEntry FROM ENTITY-MIB
ciscoMgmt FROM CISCO-SMI;
ciscoEntityExtMIB MODULE-IDENTITY
LAST-UPDATED "200407060000Z"
ORGANIZATION "Cisco Systems, Inc."
CONTACT-INFO
" Cisco Systems
Customer Service
Postal: 170 W. Tasman Drive
San Jose, CA 95134
USA
Tel: +1 800 553-NETS
E-mail: cs-snmp@cisco.com"
DESCRIPTION
"This MIB is an extension of the ENTITY-MIB
specified in RFC2737.
This MIB module contains Cisco-defined extensions
to the entityPhysicalTable to represent information
related to entities of class module(entPhysicalClass
= 'module') which have a Processor.
A processor module is defined as a physical entity
that has a CPU, RAM and NVRAM so that
it can independently
- load a bootable image
- save configuration.
This module is the entry point for external
applications like SNMP Manager, CLI, FTP etc.
Line card is an interface card with at least a
Processor and RAM. This might be referred to as
Service Module in some cisco products.
A configuration register is a 16 bit
software register.
The configuration register is mainly used to
check for instructions on where to find the Cisco
Operating System software.
Some other functions of configuration register are:
- To select a boot source and default boot filename.
- To enable or disable the Break function.
- To control broadcast addresses.
- To set the console terminal baud rate.
- To load operating software from Flash memory.
- To allow us to manually boot the system using the
boot command at the bootstrap program prompt.
Booting is the process of initializing the
hardware and starting the Operating System."
REVISION "200407060000Z"
DESCRIPTION
"Added a new table object 'ceExtEntPhysicalTable' ."
REVISION "200403030000Z"
DESCRIPTION
"Importing Unsigned32 from SNMPv2-SMI, instead of CISCO-TC. "
REVISION "200401260000Z"
DESCRIPTION
"Added new enum to ceExtEntityLEDType. "
REVISION "200308240000Z"
DESCRIPTION
"Added ceExtEntityLEDTable. Added ceExtKickstartImageList to
ceExtConfigRegTable.
Added new group ciscoEntityExtLEDGroup.
Added group ceExtSysBootImageListGroupRev1."
REVISION "200105170000Z"
DESCRIPTION
"Corrected the description for the TC
ConfigRegisterValue."
REVISION "200104050000Z"
DESCRIPTION
"Initial version of this MIB module."
::= { ciscoMgmt 195 }
ciscoEntityExtMIBObjects
OBJECT IDENTIFIER ::= { ciscoEntityExtMIB 1 }
--
-- textual conventions
--
ConfigRegisterValue ::= TEXTUAL-CONVENTION
DISPLAY-HINT "2x"
STATUS current
DESCRIPTION
"An Integer containing the value of config register.
The definition of individual bits from right to left
when set are as follows:
00 to
03 Boot Fields(Refer below for
explanation).
04 to
05 Not Used.
06 Causes system software to ignore the
contents of NVRAM.
07 Enable the original equipment
manufacturer (OEM) bit.
08 The Break function is disabled.
09 Not used.
10 Broadcast based on 0.0.0.0 IP address.
11 to
12 Defines the console baud rate as below:
Bits 11 & 12 unset: 9600 baud(default),
Bit 11 set & 12 unset: 4800 baud,
Bit 11 unset & 12 set: 1200 baud,
Bit 11 set & 12 set: 2400 baud
13 Boots default Flash software if
network boot fails.
14 IP broadcasts do not have network
numbers.
15 Enables diagnostic messages and ignores
the contents of NVRAM.
Meanings for different values of Boot Fields
(Bits 00 to 03) are explained below:
Value(in hex) Description
------------ -----------
00 On powerup or reload, the system
remains at the ROM monitor prompt
(rommon>), awaiting a user command
to boot the system manually by means
of the rommon boot command.
01 On powerup or reload, the system loads
the system image found in onboard
Flash memory.
02 to On powerup or reload, the system loads
0F the system image specified by
ceExtSysBootImageList.
It tries to boot the
image in the order in which
the image names are entered in
ceExtSysBootImageList. If
it cannot boot any image in the
ceExtSysBootImageList, it
stays in ROM monitor mode."
SYNTAX OCTET STRING (SIZE (2))
BootImageList ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This contains a list of boot images,
each separated by the ';' (semi-colon) character.
The following provides a syntax for parsing a single
boot image list item.
<device>:[filename] | <URL>
<device> can be (but not limited to):
flash, bootflash, slot0, rom, C
The transfer protocol used in the <URL>
can be (but not limited to):
tftp, ftp, rcp, mop.
The following is en example containing two boot image
names:
disk0:c7100-ik2s-mz;tftp://dirt/c7100-ik2s-mz
If the filename is not specified, then the
first file on the <device> will be used.
If the last two characters in the returned value
are ';+' this indicates that additional boot image
items are configured on the device but can not
be returned because the maximum string size limitation
would be exceeded.
For example:
disk0:image1;disk0:image2;+
"
SYNTAX OCTET STRING (SIZE (0..255))
--
-- ceExtPhysicalProcessorTable
--
ceExtPhysicalProcessorTable OBJECT-TYPE
SYNTAX SEQUENCE OF CeExtPhysicalProcessorEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The ceExtPhysicalProcessorTable extends
the ENTITY-MIB entPhysicalTable for modules
(Non FRUs(Field Replacable Units) or FRUs)."
REFERENCE
"RFC2737: Section 2.12.1"
::= { ciscoEntityExtMIBObjects 1 }
ceExtPhysicalProcessorEntry OBJECT-TYPE
SYNTAX CeExtPhysicalProcessorEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A ceExtPhysicalProcessorTable entry extends
a corresponding entPhysicalTable entry of class
module(entPhysicalClass = 'module').
A processor module or line card which
has a processor will have an entry in
this table.
A processor module or line card having
multiple processors and is a SMP(Symmetric
multi processor) system will have only
one entry corresponding to all the processors
since the resources defined below are shared.
A processor module or line card having
multiple processors and is not an SMP system
would register the processors as separate entities.
Entries are created by the agent at the system power-up
or module insertion.
Entries are removed when the module is reset or removed."
INDEX { entPhysicalIndex }
::= { ceExtPhysicalProcessorTable 1 }
CeExtPhysicalProcessorEntry ::= SEQUENCE {
ceExtProcessorRam Unsigned32,
ceExtNVRAMSize Unsigned32,
ceExtNVRAMUsed Unsigned32
}
ceExtProcessorRam OBJECT-TYPE
SYNTAX Unsigned32
UNITS "bytes"
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Total number of bytes of RAM available on the
Processor."
::= { ceExtPhysicalProcessorEntry 1 }
ceExtNVRAMSize OBJECT-TYPE
SYNTAX Unsigned32
UNITS "bytes"
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Total number of bytes of NVRAM in the entity.
A value of 0 for this object means the entity
does not support NVRAM or NVRAM information
is not available."
::= { ceExtPhysicalProcessorEntry 2 }
ceExtNVRAMUsed OBJECT-TYPE
SYNTAX Unsigned32
UNITS "bytes"
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of bytes of NVRAM in use. This object
is irrelevant if ceExtNVRAMSize is 0."
::= { ceExtPhysicalProcessorEntry 3 }
ceExtConfigRegTable OBJECT-TYPE
SYNTAX SEQUENCE OF CeExtConfigRegEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The ceExtConfigRegTable extends
the ENTITY-MIB entPhysicalTable."
REFERENCE
"RFC2737: Section 2.12.1"
::= { ciscoEntityExtMIBObjects 2 }
ceExtConfigRegEntry OBJECT-TYPE
SYNTAX CeExtConfigRegEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A ceExtConfigRegTable entry extends
a corresponding entPhysicalTable entry of class
module which has a configuration register.
Entries are created by the agent at the system power-up
or module insertion.
Entries are removed when the module is reset or
removed."
INDEX { entPhysicalIndex }
::= { ceExtConfigRegTable 1 }
CeExtConfigRegEntry ::= SEQUENCE {
ceExtConfigRegister ConfigRegisterValue,
ceExtConfigRegNext ConfigRegisterValue,
ceExtSysBootImageList BootImageList,
ceExtKickstartImageList BootImageList
}
ceExtConfigRegister OBJECT-TYPE
SYNTAX ConfigRegisterValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The value of configuration register with which
the processor module booted."
::= { ceExtConfigRegEntry 1 }
ceExtConfigRegNext OBJECT-TYPE
SYNTAX ConfigRegisterValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The value of configuration register in the
processor module at next reboot. Just after
the reboot this has the same value as
ceExtConfigRegister."
::= { ceExtConfigRegEntry 2 }
ceExtSysBootImageList OBJECT-TYPE
SYNTAX BootImageList
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The list of system boot images which
can be used for booting."
DEFVAL { "" }
::= { ceExtConfigRegEntry 3 }
ceExtKickstartImageList OBJECT-TYPE
SYNTAX BootImageList
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The list of system kickstart images which
can be used for booting."
DEFVAL { "" }
::= { ceExtConfigRegEntry 4 }
--
-- ceExtEntityLEDTable
--
ceExtEntityLEDTable OBJECT-TYPE
SYNTAX SEQUENCE OF CeExtEntityLEDEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A table containing information of LED on an entity. "
::= { ciscoEntityExtMIBObjects 3 }
ceExtEntityLEDEntry OBJECT-TYPE
SYNTAX CeExtEntityLEDEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry (conceptual row) in the ceExtEntityLEDTable,
containing information about an LED on an entity, identified by
entPhysicalIndex. "
INDEX { entPhysicalIndex, ceExtEntityLEDType }
::= { ceExtEntityLEDTable 1 }
CeExtEntityLEDEntry ::= SEQUENCE {
ceExtEntityLEDType INTEGER,
ceExtEntityLEDColor INTEGER
}
ceExtEntityLEDType OBJECT-TYPE
SYNTAX INTEGER {
status(1),
system(2),
active(3),
power(4),
battery(5)
}
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The type of LED on this entity.
'status' - indicates the entity status.
'system' - indicates the overall system status.
'active' - the redundancy status of a module, for e.g.
supervisor module.
'power' - indicates sufficient power availability for all
modules.
'battery'- indicates the battery status. "
REFERENCE
"Cisco MDS 9500 Series Hardware Installation Guide,
Product Overview."
::= { ceExtEntityLEDEntry 1 }
ceExtEntityLEDColor OBJECT-TYPE
SYNTAX INTEGER {
off(1),
green(2),
amber(3),
red(4)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The color of the LED."
REFERENCE
"Cisco MDS 9500 Series Multilayer Switches, Product
Overview."
::= { ceExtEntityLEDEntry 2 }
--
-- ceExtEntityPhysicalTable
--
ceExtEntPhysicalTable OBJECT-TYPE
SYNTAX SEQUENCE OF CeExtEntPhysicalEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table contains additional information about
a particular physical entity.
This table augments the 'entPhysicalTable' of
the ENTITY-MIB."
REFERENCE
"RFC2737: Section 2.12.1"
::= { ciscoEntityExtMIBObjects 4 }
ceExtEntPhysicalEntry OBJECT-TYPE
SYNTAX CeExtEntPhysicalEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry (conceptual row) in the 'ceExtEntPhysicalTable',
containing additional information about a physical entity,
identified by 'entPhysicalIndex'."
AUGMENTS { entPhysicalEntry }
::= { ceExtEntPhysicalTable 1 }
CeExtEntPhysicalEntry ::= SEQUENCE {
ceEntPhysicalSecondSerialNum SnmpAdminString
}
ceEntPhysicalSecondSerialNum OBJECT-TYPE
SYNTAX SnmpAdminString (SIZE (0..32))
MAX-ACCESS read-write
STATUS current DESCRIPTION
"This object represents the vendor-specific second
serial number string for the physical entity.
The first serial number string of the physical
entity is represented in the value of corresponding
instance of the 'entPhysicalSerialNum' object.
On the first instantiation of an physical entity, the value
of this object is the correct vendor-assigned second
serial number, if this information is available to the agent.
If the second serial number is unknown or non-existent, then
the value of this object will be a zero-length string instead.
Note that implementations which can correctly identify the
second serial numbers of all installed physical entities do
not need to provide write access to this object.
Agents which cannot provide non-volatile storage for the
second serial number strings are not required to implement
write access for this object.
Not every physical component will have a serial number, or
even need one. Physical entities for which the associated
value of the entPhysicalIsFRU object is equal to 'false(2)'
(e.g., the repeater ports within a repeater module), do not
need their own unique serial number. An agent does not have
to provide write access for such entities, and may return a
zero-length string.
If write access is implemented for an instance of
'ceEntPhysicalSecondSerialNum', and a value is written into
the instance, the agent must retain the supplied value in the
'ceEntPhysicalSecondSerialNum' instance associated with the
same physical entity for as long as that entity remains
instantiated. This includes instantiations across all re-
initializations/reboots of the network management system,
including those which result in a change of the physical
entity's entPhysicalIndex value."
DEFVAL {""}
::= { ceExtEntPhysicalEntry 1 }
--Notifications
ceExtMIBNotificationPrefix
OBJECT IDENTIFIER ::= {ciscoEntityExtMIB 2 }
ciscoEntityExtMIBNotifications
OBJECT IDENTIFIER ::= {ceExtMIBNotificationPrefix 0 }
--
-- conformance information
--
ciscoEntityExtMIBConformance
OBJECT IDENTIFIER ::= { ciscoEntityExtMIB 3 }
ciscoEntityExtMIBCompliances
OBJECT IDENTIFIER ::= { ciscoEntityExtMIBConformance 1 }
ciscoEntityExtMIBGroups
OBJECT IDENTIFIER ::= { ciscoEntityExtMIBConformance 2 }
--
-- compliance statements
--
ciscoEntityExtMIBCompliance MODULE-COMPLIANCE
STATUS deprecated -- superseded by
-- ciscoEntityExtMIBComplianceRev1
DESCRIPTION
"Compliance for SNMP Entities which support modules
with CPU, NVRAM and configuration register."
MODULE -- this module
MANDATORY-GROUPS {
ceExtPhysicalProcessorGroup
}
GROUP ciscoEntityExtConfigRegGroup
DESCRIPTION
"The ciscoEntityExtConfigRegGroup is an optional group
containing objects providing information about
configuration register."
GROUP ceExtSysBootImageListGroup
DESCRIPTION
"This group is an optional group containing an object
which provides information about the system boot images."
::= { ciscoEntityExtMIBCompliances 1 }
ciscoEntityExtMIBComplianceRev1 MODULE-COMPLIANCE
STATUS deprecated
DESCRIPTION
"Compliance for SNMP Entities which support modules
with CPU, NVRAM and configuration register."
MODULE -- this module
MANDATORY-GROUPS {
ceExtPhysicalProcessorGroup
}
GROUP ciscoEntityExtConfigRegGroup
DESCRIPTION
"The ciscoEntityExtConfigRegGroup is an optional group
containing objects providing information about
configuration register."
GROUP ceExtSysBootImageListGroup
DESCRIPTION
"This group is an optional group containing an object
which provides information about the system boot images."
GROUP ciscoEntityExtLEDGroup
DESCRIPTION
"This group is an optional group containing an object
which provides LED information."
GROUP ceExtSysBootImageListGroupRev1
DESCRIPTION
"This group is an optional group containing an object
which provides information about the system boot images."
::= { ciscoEntityExtMIBCompliances 2 }
ciscoEntityExtMIBComplianceRev2 MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"Compliance for SNMP Entities which support modules
with CPU, NVRAM and configuration register."
MODULE -- this module
MANDATORY-GROUPS {
ceExtPhysicalProcessorGroup
}
GROUP ciscoEntityExtConfigRegGroup
DESCRIPTION
"The ciscoEntityExtConfigRegGroup is an optional group
containing objects providing information about
configuration register."
GROUP ceExtSysBootImageListGroup
DESCRIPTION
"This group is an optional group containing an object
which provides information about the system boot images."
GROUP ciscoEntityExtLEDGroup
DESCRIPTION
"This group is an optional group containing an object
which provides LED information."
GROUP ceExtSysBootImageListGroupRev1
DESCRIPTION
"This group is an optional group containing an object
which provides information about the system boot images."
GROUP ciscoExtEntityPhysicalGroup
DESCRIPTION
"This group is an optional group containing an object
which provides additional information about the
physical entity."
::= { ciscoEntityExtMIBCompliances 3 }
--
-- units of conformance
--
ceExtPhysicalProcessorGroup OBJECT-GROUP
OBJECTS {
ceExtProcessorRam,
ceExtNVRAMSize,
ceExtNVRAMUsed
}
STATUS current
DESCRIPTION
"The collection of objects which give information about
the Processor RAM and NVRAM."
::= { ciscoEntityExtMIBGroups 1 }
ciscoEntityExtConfigRegGroup OBJECT-GROUP
OBJECTS {
ceExtConfigRegister,
ceExtConfigRegNext
}
STATUS current
DESCRIPTION
"The collection of objects which give information about
configuration register.
Implementation of this group is optional."
::= { ciscoEntityExtMIBGroups 2 }
ceExtSysBootImageListGroup OBJECT-GROUP
OBJECTS {
ceExtSysBootImageList
}
STATUS current
DESCRIPTION
"A group containing an object providing information
about the system boot images.
Implementation of this group is optional."
::= { ciscoEntityExtMIBGroups 3 }
ciscoEntityExtLEDGroup OBJECT-GROUP
OBJECTS { ceExtEntityLEDColor }
STATUS current
DESCRIPTION
"A collection of objects for giving led information."
::= { ciscoEntityExtMIBGroups 4}
ceExtSysBootImageListGroupRev1 OBJECT-GROUP
OBJECTS {
ceExtKickstartImageList
}
STATUS current
DESCRIPTION
"A group containing an object providing information
about the system boot images.
Implementation of this group is optional."
::= { ciscoEntityExtMIBGroups 5 }
ciscoExtEntityPhysicalGroup OBJECT-GROUP
OBJECTS {
ceEntPhysicalSecondSerialNum
}
STATUS current
DESCRIPTION
"The collection of objects for providing additional
information about the physical entity.
Implementation of this group is optional."
::= { ciscoEntityExtMIBGroups 6 }
END

View File

@@ -1,715 +0,0 @@
BGP4-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
IpAddress, Integer32, Counter32, Gauge32
FROM SNMPv2-SMI
mib-2
FROM RFC1213-MIB;
bgp MODULE-IDENTITY
LAST-UPDATED "9405050000Z"
ORGANIZATION "IETF BGP Working Group"
CONTACT-INFO
" John Chu (Editor)
Postal: IBM Corp.
P.O.Box 218
Yorktown Heights, NY 10598
US
Tel: +1 914 945 3156
Fax: +1 914 945 2141
E-mail: jychu@watson.ibm.com"
DESCRIPTION
"The MIB module for BGP-4."
::= { mib-2 15 }
bgpVersion OBJECT-TYPE
SYNTAX OCTET STRING (SIZE (1..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Vector of supported BGP protocol version
numbers. Each peer negotiates the version
from this vector. Versions are identified
via the string of bits contained within this
object. The first octet contains bits 0 to
7, the second octet contains bits 8 to 15,
and so on, with the most significant bit
referring to the lowest bit number in the
octet (e.g., the MSB of the first octet
refers to bit 0). If a bit, i, is present
and set, then the version (i+1) of the BGP
is supported."
::= { bgp 1 }
bgpLocalAs OBJECT-TYPE
SYNTAX INTEGER (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The local autonomous system number."
::= { bgp 2 }
-- BGP Peer table. This table contains, one entry per
-- BGP peer, information about the BGP peer.
bgpPeerTable OBJECT-TYPE
SYNTAX SEQUENCE OF BgpPeerEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"BGP peer table. This table contains,
one entry per BGP peer, information about
the connections with BGP peers."
::= { bgp 3 }
bgpPeerEntry OBJECT-TYPE
SYNTAX BgpPeerEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Entry containing information about the
connection with a BGP peer."
INDEX { bgpPeerRemoteAddr }
::= { bgpPeerTable 1 }
BgpPeerEntry ::= SEQUENCE {
bgpPeerIdentifier
IpAddress,
bgpPeerState
INTEGER,
bgpPeerAdminStatus
INTEGER,
bgpPeerNegotiatedVersion
Integer32,
bgpPeerLocalAddr
IpAddress,
bgpPeerLocalPort
INTEGER,
bgpPeerRemoteAddr
IpAddress,
bgpPeerRemotePort
INTEGER,
bgpPeerRemoteAs
INTEGER,
bgpPeerInUpdates
Counter32,
bgpPeerOutUpdates
Counter32,
bgpPeerInTotalMessages
Counter32,
bgpPeerOutTotalMessages
Counter32,
bgpPeerLastError
OCTET STRING,
bgpPeerFsmEstablishedTransitions
Counter32,
bgpPeerFsmEstablishedTime
Gauge32,
bgpPeerConnectRetryInterval
INTEGER,
bgpPeerHoldTime
INTEGER,
bgpPeerKeepAlive
INTEGER,
bgpPeerHoldTimeConfigured
INTEGER,
bgpPeerKeepAliveConfigured
INTEGER,
bgpPeerMinASOriginationInterval
INTEGER,
bgpPeerMinRouteAdvertisementInterval
INTEGER,
bgpPeerInUpdateElapsedTime
Gauge32
}
bgpPeerIdentifier OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The BGP Identifier of this entry's BGP
peer."
::= { bgpPeerEntry 1 }
bgpPeerState OBJECT-TYPE
SYNTAX INTEGER {
idle(1),
connect(2),
active(3),
opensent(4),
openconfirm(5),
established(6)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The BGP peer connection state."
::= { bgpPeerEntry 2 }
bgpPeerAdminStatus OBJECT-TYPE
SYNTAX INTEGER {
stop(1),
start(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The desired state of the BGP connection.
A transition from 'stop' to 'start' will
cause the BGP Start Event to be generated.
A transition from 'start' to 'stop' will
cause the BGP Stop Event to be generated.
This parameter can be used to restart BGP
peer connections. Care should be used in
providing write access to this object
without adequate authentication."
::= { bgpPeerEntry 3 }
bgpPeerNegotiatedVersion OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The negotiated version of BGP running
between the two peers."
::= { bgpPeerEntry 4 }
bgpPeerLocalAddr OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The local IP address of this entry's BGP
connection."
::= { bgpPeerEntry 5 }
bgpPeerLocalPort OBJECT-TYPE
SYNTAX INTEGER (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The local port for the TCP connection
between the BGP peers."
::= { bgpPeerEntry 6 }
bgpPeerRemoteAddr OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The remote IP address of this entry's BGP
peer."
::= { bgpPeerEntry 7 }
bgpPeerRemotePort OBJECT-TYPE
SYNTAX INTEGER (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The remote port for the TCP connection
between the BGP peers. Note that the
objects bgpPeerLocalAddr,
bgpPeerLocalPort, bgpPeerRemoteAddr and
bgpPeerRemotePort provide the appropriate
reference to the standard MIB TCP
connection table."
::= { bgpPeerEntry 8 }
bgpPeerRemoteAs OBJECT-TYPE
SYNTAX INTEGER (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The remote autonomous system number."
::= { bgpPeerEntry 9 }
bgpPeerInUpdates OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of BGP UPDATE messages
received on this connection. This object
should be initialized to zero (0) when the
connection is established."
::= { bgpPeerEntry 10 }
bgpPeerOutUpdates OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of BGP UPDATE messages
transmitted on this connection. This
object should be initialized to zero (0)
when the connection is established."
::= { bgpPeerEntry 11 }
bgpPeerInTotalMessages OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The total number of messages received
from the remote peer on this connection.
This object should be initialized to zero
when the connection is established."
::= { bgpPeerEntry 12 }
bgpPeerOutTotalMessages OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The total number of messages transmitted to
the remote peer on this connection. This
object should be initialized to zero when
the connection is established."
::= { bgpPeerEntry 13 }
bgpPeerLastError OBJECT-TYPE
SYNTAX OCTET STRING (SIZE (2))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The last error code and subcode seen by this
peer on this connection. If no error has
occurred, this field is zero. Otherwise, the
first byte of this two byte OCTET STRING
contains the error code, and the second byte
contains the subcode."
::= { bgpPeerEntry 14 }
bgpPeerFsmEstablishedTransitions OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The total number of times the BGP FSM
transitioned into the established state."
::= { bgpPeerEntry 15 }
bgpPeerFsmEstablishedTime OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This timer indicates how long (in
seconds) this peer has been in the
Established state or how long
since this peer was last in the
Established state. It is set to zero when
a new peer is configured or the router is
booted."
::= { bgpPeerEntry 16 }
bgpPeerConnectRetryInterval OBJECT-TYPE
SYNTAX INTEGER (1..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the
ConnectRetry timer. The suggested value
for this timer is 120 seconds."
::= { bgpPeerEntry 17 }
bgpPeerHoldTime OBJECT-TYPE
SYNTAX INTEGER ( 0 | 3..65535 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the Hold
Timer established with the peer. The
value of this object is calculated by this
BGP speaker by using the smaller of the
value in bgpPeerHoldTimeConfigured and the
Hold Time received in the OPEN message.
This value must be at lease three seconds
if it is not zero (0) in which case the
Hold Timer has not been established with
the peer, or, the value of
bgpPeerHoldTimeConfigured is zero (0)."
::= { bgpPeerEntry 18 }
bgpPeerKeepAlive OBJECT-TYPE
SYNTAX INTEGER ( 0 | 1..21845 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the KeepAlive
timer established with the peer. The value
of this object is calculated by this BGP
speaker such that, when compared with
bgpPeerHoldTime, it has the same
proportion as what
bgpPeerKeepAliveConfigured has when
compared with bgpPeerHoldTimeConfigured.
If the value of this object is zero (0),
it indicates that the KeepAlive timer has
not been established with the peer, or,
the value of bgpPeerKeepAliveConfigured is
zero (0)."
::= { bgpPeerEntry 19 }
bgpPeerHoldTimeConfigured OBJECT-TYPE
SYNTAX INTEGER ( 0 | 3..65535 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the Hold Time
configured for this BGP speaker with this
peer. This value is placed in an OPEN
message sent to this peer by this BGP
speaker, and is compared with the Hold
Time field in an OPEN message received
from the peer when determining the Hold
Time (bgpPeerHoldTime) with the peer.
This value must not be less than three
seconds if it is not zero (0) in which
case the Hold Time is NOT to be
established with the peer. The suggested
value for this timer is 90 seconds."
::= { bgpPeerEntry 20 }
bgpPeerKeepAliveConfigured OBJECT-TYPE
SYNTAX INTEGER ( 0 | 1..21845 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the
KeepAlive timer configured for this BGP
speaker with this peer. The value of this
object will only determine the
KEEPALIVE messages' frequency relative to
the value specified in
bgpPeerHoldTimeConfigured; the actual
time interval for the KEEPALIVE messages
is indicated by bgpPeerKeepAlive. A
reasonable maximum value for this timer
would be configured to be one
third of that of
bgpPeerHoldTimeConfigured.
If the value of this object is zero (0),
no periodical KEEPALIVE messages are sent
to the peer after the BGP connection has
been established. The suggested value for
this timer is 30 seconds."
::= { bgpPeerEntry 21 }
bgpPeerMinASOriginationInterval OBJECT-TYPE
SYNTAX INTEGER (1..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the
MinASOriginationInterval timer.
The suggested value for this timer is 15
seconds."
::= { bgpPeerEntry 22 }
bgpPeerMinRouteAdvertisementInterval OBJECT-TYPE
SYNTAX INTEGER (1..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Time interval in seconds for the
MinRouteAdvertisementInterval timer.
The suggested value for this timer is 30
seconds."
::= { bgpPeerEntry 23 }
bgpPeerInUpdateElapsedTime OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Elapsed time in seconds since the last BGP
UPDATE message was received from the peer.
Each time bgpPeerInUpdates is incremented,
the value of this object is set to zero
(0)."
::= { bgpPeerEntry 24 }
bgpIdentifier OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The BGP Identifier of local system."
::= { bgp 4 }
-- BGP-4 Received Path Attribute Table. This table
-- contains, one entry per path to a network, path
-- attributes received from all peers running BGP-4.
bgp4PathAttrTable OBJECT-TYPE
SYNTAX SEQUENCE OF Bgp4PathAttrEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The BGP-4 Received Path Attribute Table
contains information about paths to
destination networks received from all
BGP4 peers."
::= { bgp 6 }
bgp4PathAttrEntry OBJECT-TYPE
SYNTAX Bgp4PathAttrEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Information about a path to a network."
INDEX { bgp4PathAttrIpAddrPrefix,
bgp4PathAttrIpAddrPrefixLen,
bgp4PathAttrPeer }
::= { bgp4PathAttrTable 1 }
Bgp4PathAttrEntry ::= SEQUENCE {
bgp4PathAttrPeer
IpAddress,
bgp4PathAttrIpAddrPrefixLen
INTEGER,
bgp4PathAttrIpAddrPrefix
IpAddress,
bgp4PathAttrOrigin
INTEGER,
bgp4PathAttrASPathSegment
OCTET STRING,
bgp4PathAttrNextHop
IpAddress,
bgp4PathAttrMultiExitDisc
INTEGER,
bgp4PathAttrLocalPref
INTEGER,
bgp4PathAttrAtomicAggregate
INTEGER,
bgp4PathAttrAggregatorAS
INTEGER,
bgp4PathAttrAggregatorAddr
IpAddress,
bgp4PathAttrCalcLocalPref
INTEGER,
bgp4PathAttrBest
INTEGER,
bgp4PathAttrUnknown
OCTET STRING
}
bgp4PathAttrPeer OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The IP address of the peer where the path
information was learned."
::= { bgp4PathAttrEntry 1 }
bgp4PathAttrIpAddrPrefixLen OBJECT-TYPE
SYNTAX INTEGER (0..32)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Length in bits of the IP address prefix
in the Network Layer Reachability
Information field."
::= { bgp4PathAttrEntry 2 }
bgp4PathAttrIpAddrPrefix OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"An IP address prefix in the Network Layer
Reachability Information field. This object
is an IP address containing the prefix with
length specified by
bgp4PathAttrIpAddrPrefixLen.
Any bits beyond the length specified by
bgp4PathAttrIpAddrPrefixLen are zeroed."
::= { bgp4PathAttrEntry 3 }
bgp4PathAttrOrigin OBJECT-TYPE
SYNTAX INTEGER {
igp(1),-- networks are interior
egp(2),-- networks learned
-- via EGP
incomplete(3) -- undetermined
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The ultimate origin of the path
information."
::= { bgp4PathAttrEntry 4 }
bgp4PathAttrASPathSegment OBJECT-TYPE
SYNTAX OCTET STRING (SIZE (2..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The sequence of AS path segments. Each AS
path segment is represented by a triple
<type, length, value>.
The type is a 1-octet field which has two
possible values:
1 AS_SET: unordered set of ASs a
route in the UPDATE
message has traversed
2 AS_SEQUENCE: ordered set of ASs
a route in the UPDATE
message has traversed.
The length is a 1-octet field containing the
number of ASs in the value field.
The value field contains one or more AS
numbers, each AS is represented in the octet
string as a pair of octets according to the
following algorithm:
first-byte-of-pair = ASNumber / 256;
second-byte-of-pair = ASNumber & 255;"
::= { bgp4PathAttrEntry 5 }
bgp4PathAttrNextHop OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The address of the border router that
should be used for the destination
network."
::= { bgp4PathAttrEntry 6 }
bgp4PathAttrMultiExitDisc OBJECT-TYPE
SYNTAX INTEGER (-1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This metric is used to discriminate
between multiple exit points to an
adjacent autonomous system. A value of -1
indicates the absence of this attribute."
::= { bgp4PathAttrEntry 7 }
bgp4PathAttrLocalPref OBJECT-TYPE
SYNTAX INTEGER (-1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The originating BGP4 speaker's degree of
preference for an advertised route. A
value of -1 indicates the absence of this
attribute."
::= { bgp4PathAttrEntry 8 }
bgp4PathAttrAtomicAggregate OBJECT-TYPE
SYNTAX INTEGER {
lessSpecificRrouteNotSelected(1),
lessSpecificRouteSelected(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Whether or not the local system has
selected a less specific route without
selecting a more specific route."
::= { bgp4PathAttrEntry 9 }
bgp4PathAttrAggregatorAS OBJECT-TYPE
SYNTAX INTEGER (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The AS number of the last BGP4 speaker that
performed route aggregation. A value of
zero (0) indicates the absence of this
attribute."
::= { bgp4PathAttrEntry 10 }
bgp4PathAttrAggregatorAddr OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The IP address of the last BGP4 speaker
that performed route aggregation. A value
of 0.0.0.0 indicates the absence of this
attribute."
::= { bgp4PathAttrEntry 11 }
bgp4PathAttrCalcLocalPref OBJECT-TYPE
SYNTAX INTEGER (-1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The degree of preference calculated by the
receiving BGP4 speaker for an advertised
route. A value of -1 indicates the
absence of this attribute."
::= { bgp4PathAttrEntry 12 }
bgp4PathAttrBest OBJECT-TYPE
SYNTAX INTEGER {
false(1),-- not chosen as best route
true(2) -- chosen as best route
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"An indication of whether or not this route
was chosen as the best BGP4 route."
::= { bgp4PathAttrEntry 13 }
bgp4PathAttrUnknown OBJECT-TYPE
SYNTAX OCTET STRING (SIZE(0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"One or more path attributes not understood
by this BGP4 speaker. Size zero (0)
indicates the absence of such
attribute(s). Octets beyond the maximum
size, if any, are not recorded by this
object."
::= { bgp4PathAttrEntry 14 }
-- Traps.
bgpTraps OBJECT IDENTIFIER ::= { bgp 7 }
bgpEstablished NOTIFICATION-TYPE
OBJECTS { bgpPeerLastError,
bgpPeerState }
STATUS current
DESCRIPTION
"The BGP Established event is generated when
the BGP FSM enters the ESTABLISHED state."
::= { bgpTraps 1 }
bgpBackwardTransition NOTIFICATION-TYPE
OBJECTS { bgpPeerLastError,
bgpPeerState }
STATUS current
DESCRIPTION
"The BGPBackwardTransition Event is generated
when the BGP FSM moves from a higher numbered
state to a lower numbered state."
::= { bgpTraps 2 }
END

View File

@@ -125,6 +125,7 @@ while ($device = mysql_fetch_array($device_query)) {
case "IOS":
case "IOS XE":
case "ASA":
include("includes/polling/device-ios.inc.php");
break;