nmstools-cvs Mailing List for Network Management System Helper Tools
Brought to you by:
ssinyagin
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(20) |
Sep
(6) |
Oct
(3) |
Nov
(11) |
Dec
(11) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Michel H. <mi...@us...> - 2003-01-29 14:18:56
|
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv32642
Modified Files:
ios_devlist.pl.in
Log Message:
IOS overview added
Index: ios_devlist.pl.in
===================================================================
RCS file: /cvsroot/nmstools/src/bin/ios_devlist.pl.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ios_devlist.pl.in 20 Aug 2002 13:17:14 -0000 1.2
--- ios_devlist.pl.in 29 Jan 2003 14:18:49 -0000 1.3
***************
*** 23,26 ****
--- 23,29 ----
# Revision history:
# $Log$
+ # Revision 1.3 2003/01/29 14:18:49 mihahn
+ # IOS overview added
+ #
# Revision 1.2 2002/08/20 13:17:14 ssinyagin
# Added device type counters
***************
*** 126,129 ****
--- 129,133 ----
my $devcount;
my %iosversion;
+ my %iosvrscnt;
my %uptime;
my %proctype;
***************
*** 144,147 ****
--- 148,152 ----
$devtype{$hostname} = 'N/A';
$devtypecnt{'N/A'}++;
+ $iosvrscnt{'N/A'}++;
next;
}
***************
*** 158,161 ****
--- 163,167 ----
{
$iosversion{$hostname} = $1;
+ $iosvrscnt{$1}++;
}
elsif( /^$hostname\s+uptime\s+is\s+(.*\S)\s*$/ )
***************
*** 276,279 ****
--- 282,296 ----
}
printf OUT ("</counters>\n");
+
+
+ printf OUT ("<ioscounters>\n");
+ printf OUT ("<total>%d</total>\n", $devcount);
+ foreach my $type ( sort keys %iosvrscnt )
+ {
+ printf OUT ("<iosversion type=\"%s\">%d</iosversion>\n",
+ $type, $iosvrscnt{$type});
+ }
+ printf OUT ("</ioscounters>\n");
+
printf OUT ("</devicelist>\n");
|
|
From: Michel H. <mi...@us...> - 2002-12-17 11:55:23
|
Update of /cvsroot/nmstools/src In directory sc8-pr-cvs1:/tmp/cvs-serv12655 Modified Files: Makefile.am Log Message: ipr and spflog folders added Index: Makefile.am =================================================================== RCS file: /cvsroot/nmstools/src/Makefile.am,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile.am 14 Aug 2002 14:55:02 -0000 1.3 --- Makefile.am 17 Dec 2002 11:55:16 -0000 1.4 *************** *** 50,53 **** --- 50,54 ---- $(nmstools_data)/mpls/vrfipprot \ $(nmstools_data)/mpls/tagsw \ + $(nmstools_data)/mpls/spflogs \ $(nmstools_data)/ospf/configs \ $(nmstools_data)/ospf/chassis \ *************** *** 56,59 **** --- 57,62 ---- $(nmstools_data)/fhs/chassis \ $(nmstools_data)/fhs/diag \ + $(nmstools_data)/ipr/isis \ + $(nmstools_data)/ipr/ospf \ $(nmstools_data)/log *************** *** 63,67 **** $(nmstools_html)/mpls \ $(nmstools_html)/ospf \ ! $(nmstools_html)/fhs install-data-local: --- 66,71 ---- $(nmstools_html)/mpls \ $(nmstools_html)/ospf \ ! $(nmstools_html)/fhs \ ! $(nmstools_html)/ipr install-data-local: |
|
From: Michel H. <mi...@us...> - 2002-12-17 11:32:05
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv5374 Modified Files: Makefile.am Log Message: isis_collect_spf_log.pl.in, isis_spflog_corr.pl.in added Index: Makefile.am =================================================================== RCS file: /cvsroot/nmstools/src/bin/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.am 19 Nov 2002 14:51:04 -0000 1.5 --- Makefile.am 17 Dec 2002 11:31:57 -0000 1.6 *************** *** 22,25 **** --- 22,28 ---- # Revision history: # $Log$ + # Revision 1.6 2002/12/17 11:31:57 mihahn + # isis_collect_spf_log.pl.in, isis_spflog_corr.pl.in added + # # Revision 1.5 2002/11/19 14:51:04 mihahn # mpls_collect_vpn_rt.pl.in, mpls_vpn_rt_cvsimport.sh.in added *************** *** 70,73 **** --- 73,78 ---- ipr_analyze.pl \ ipr_procxml.sh \ + isis_collect_spf_log.pl \ + isis_spflog_corr.pl \ mpls_collectrunning.pl \ mpls_collect_vpn_rt.pl \ *************** *** 117,120 **** --- 122,127 ---- ipr_analyze.pl.in \ ipr_procxml.sh.in \ + isis_collect_spf_log.pl.in \ + isis_spflog_corr.pl.in \ mpls_collectrunning.pl.in \ mpls_collect_vpn_rt.pl.in \ |
|
From: Michel H. <mi...@us...> - 2002-12-17 10:59:39
|
Update of /cvsroot/nmstools/src/cgi-bin In directory sc8-pr-cvs1:/tmp/cvs-serv26329 Modified Files: Makefile.am Log Message: isis_spflog.cgi added Index: Makefile.am =================================================================== RCS file: /cvsroot/nmstools/src/cgi-bin/Makefile.am,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Makefile.am 9 Aug 2002 12:45:09 -0000 1.1.1.1 --- Makefile.am 17 Dec 2002 10:59:32 -0000 1.2 *************** *** 22,25 **** --- 22,28 ---- # Revision history: # $Log$ + # Revision 1.2 2002/12/17 10:59:32 mihahn + # isis_spflog.cgi added + # # Revision 1.1.1.1 2002/08/09 12:45:09 ssinyagin # Fisrt SourceForge Import *************** *** 31,39 **** cgibindir = @exec_prefix@/cgi-bin ! cgibin_SCRIPTS = atm_track.cgi mpls_track.cgi CLEANFILES = $(cgibin_SCRIPTS) ! EXTRA_DIST = atm_track.cgi.in mpls_track.cgi.in --- 34,42 ---- cgibindir = @exec_prefix@/cgi-bin ! cgibin_SCRIPTS = atm_track.cgi mpls_track.cgi isis_spflog.cgi CLEANFILES = $(cgibin_SCRIPTS) ! EXTRA_DIST = atm_track.cgi.in mpls_track.cgi.in isis_spflog.cgi.in |
|
From: Michel H. <mi...@us...> - 2002-12-17 10:48:11
|
Update of /cvsroot/nmstools/src/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21756
Modified Files:
Makefile.am
Log Message:
isis_spf_log-html.xsl added
Index: Makefile.am
===================================================================
RCS file: /cvsroot/nmstools/src/lib/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Makefile.am 2 Dec 2002 12:37:59 -0000 1.4
--- Makefile.am 17 Dec 2002 10:48:04 -0000 1.5
***************
*** 22,25 ****
--- 22,28 ----
# Revision history:
# $Log$
+ # Revision 1.5 2002/12/17 10:48:04 mihahn
+ # isis_spf_log-html.xsl added
+ #
# Revision 1.4 2002/12/02 12:37:59 mihahn
# c7200-pa-bwpt.csv
***************
*** 41,44 ****
--- 44,48 ----
ios_devlist-html.xsl \
ipr_routes-html.xsl \
+ isis_spf_log-html.xsl \
lib_nmstools.pl \
mpls_serial-csv.xsl \
***************
*** 72,75 ****
--- 76,80 ----
ios_devlist-html.xsl.in \
ipr_routes-html.xsl.in \
+ isis_spf_log-html.xsl.in \
lib_nmstools.pl.in \
mpls_serial-csv.xsl.in \
|
|
From: Michel H. <mi...@us...> - 2002-12-17 10:25:23
|
Update of /cvsroot/nmstools/src/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv13672
Modified Files:
vrfref-html.xsl.in
Log Message:
RD added to overview
Index: vrfref-html.xsl.in
===================================================================
RCS file: /cvsroot/nmstools/src/lib/vrfref-html.xsl.in,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** vrfref-html.xsl.in 9 Aug 2002 12:45:12 -0000 1.1.1.1
--- vrfref-html.xsl.in 17 Dec 2002 10:25:17 -0000 1.2
***************
*** 24,27 ****
--- 24,30 ----
Revision history:
$Log$
+ Revision 1.2 2002/12/17 10:25:17 mihahn
+ RD added to overview
+
Revision 1.1.1.1 2002/08/09 12:45:12 ssinyagin
Fisrt SourceForge Import
***************
*** 64,67 ****
--- 67,73 ----
<TH><xsl:text disable-output-escaping = "yes">&nbsp;&nbsp;</xsl:text>
</TH>
+ <TH>RD</TH>
+ <TH><xsl:text disable-output-escaping = "yes">&nbsp;&nbsp;</xsl:text>
+ </TH>
<TH>Nodes</TH>
</TR>
***************
*** 70,77 ****
--- 76,86 ----
<TD><A HREF="#vrf_{@name}"><xsl:value-of select="@name"/></A></TD>
<TD></TD>
+ <TD><xsl:value-of select="@def_rd"/></TD>
+ <TD></TD>
<TD><xsl:value-of select="count(node)"/></TD>
</TR>
</xsl:for-each>
</TABLE>
+
<xsl:for-each select="vrf">
|
|
From: Michel H. <mi...@us...> - 2002-12-17 10:11:59
|
Update of /cvsroot/nmstools/src/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv8805
Added Files:
isis_spf_log-html.xsl.in
Log Message:
initial import
--- NEW FILE: isis_spf_log-html.xsl.in ---
<?xml version="1.0"?>
<!--
NMSTOOLS: NMS Helper Tools
$Id: isis_spf_log-html.xsl.in,v 1.1 2002/12/17 10:11:53 mihahn Exp $
Author: Michel Hahne <morangie at bluemail dot ch>
Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Revision history:
$Log: isis_spf_log-html.xsl.in,v $
Revision 1.1 2002/12/17 10:11:53 mihahn
initial import
Revision 1.0
-->
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="isis-spf-log">
<HTML><TITLE>ISIS SPF-LOG</TITLE>
<BODY>
<FONT SIZE="2">File: isis-spf-log.html Created by isis-spf-log-html.xsl from
spflogout.xml produced by mpls_isis_spf_corr.pl.
Author: <A HREF="mailto:morangie at bluemail dot ch">Michel Hahne</A>.
Date: <xsl:value-of select="/isis-spf-log/@timestamp"/></FONT><BR/>
<H1>ISIS SPF-LOG</H1>
<TABLE BORDER="1">
<TR>
<TH> Time </TH>
<TH> Duration </TH>
<TH> Nodes </TH>
<TH> Count </TH>
<TH> Last Trigger </TH>
<TH> Triggers </TH>
</TR>
<xsl:for-each select="spf">
<TR>
<TD><xsl:value-of select="@time"/></TD>
<TD><xsl:value-of select="@duration"/></TD>
<TD><xsl:value-of select="@nodes"/></TD>
<TD><xsl:value-of select="@count"/></TD>
<TD><xsl:value-of select="@last_trigger"/></TD>
<TD><xsl:value-of select="@triggers"/></TD>
</TR>
</xsl:for-each>
<TR></TR>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:transform>
|
|
From: Michel H. <mi...@us...> - 2002-12-17 09:57:09
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv3889 Added Files: cronjob-isis.sh.in Log Message: initial import --- NEW FILE: cronjob-isis.sh.in --- #!/bin/sh # # NMSTOOLS -- NMS Helper Tools # $Id: cronjob-isis.sh.in,v 1.1 2002/12/17 09:57:03 mihahn Exp $ # # Author: Michel Hahne <morangie at bluemail dot ch> # Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Revision history: # $Log: cronjob-isis.sh.in,v $ # Revision 1.1 2002/12/17 09:57:03 mihahn # initial import # # Revision 1.0 # Get all the isis spf-logs from all route reflectors %%NMSTOOLS_HOME%%/bin/isis_collect_spf_log.pl # correlation of the different spf-logs %%NMSTOOLS_HOME%%/bin/isis_spflog_corr.pl |
|
From: Michel H. <mi...@us...> - 2002-12-17 09:29:05
|
Update of /cvsroot/nmstools/src/cgi-bin
In directory sc8-pr-cvs1:/tmp/cvs-serv28778
Added Files:
isis_spflog.cgi.in
Log Message:
initial import
--- NEW FILE: isis_spflog.cgi.in ---
#!%%PERL%%
#
# NMSTOOLS -- NMS Helper Tools
# $Id: isis_spflog.cgi.in,v 1.1 2002/12/17 09:28:58 mihahn Exp $
#
# Author: Michel Hahne <morangie at bluemail dot ch>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Revision history:
# $Log: isis_spflog.cgi.in,v $
# Revision 1.1 2002/12/17 09:28:58 mihahn
# initial import
#
# Revision 1.0
use CGI;
use Time::Local;
require '%%NMSTOOLS_HOME%%/lib/lib_nmstools.pl';
%monat = ("Jan",0,"Feb",1,"Mar",2,"Apr",3,"May",4,"Jun",5,"Jul",6,
"Aug",7,"Sep",8,"Oct",9,"Nov",10,"Dec",11);
$query = new CGI;
$spfloginfile = $nms_config{'env'}{'DATA'} . '/mpls/spflogarchive';
$spflogtempfile = $nms_config{'env'}{'DATA'} . '/mpls/spflogtempfile.xml';
$spfloghtmloutfile = $nms_config{'env'}{'DATA'} . '/mpls/tempspfloghtml.html';
print $query->header(-type => 'text/html',
-expires => '+3m');
if( $query->param('month') )
{
my $day = $query->param('day');
my $month = $query->param('month');
my $year = $query->param('year');
my $time = $query->param('time');
my $std = $time;
$std =~ s/:\d+//;
my $min = $time;
$min =~ s/\d+://;
if( $query->param('output_range') eq 'd' )
{
$delta= 24 * 60 * 60;
}
elsif( $query->param('output_range') eq 'w' )
{
$delta= 7 * 24 * 60 * 60;
}
elsif( $query->param('output_range') eq 'm' )
{
$delta= 31 * 24 * 60 * 60;
}
else
{
$delta= 0;
}
my $output=localtime(timelocal(0, $min, $std, $day , $monat{$month}, $year));
print $query->h2($output);
$lasttimestamp=0;
if (-e "$spfloginfile")
{
open( IN, $spfloginfile ) || print $query->h1("can't open file $spfloginfile: $!");
@tempfile = <IN>;
@timestamp = grep {/timestamp/} @tempfile;
@tempfile = grep {/spf time/} @tempfile;
close IN;
if ($delta > 0)
{
$t1=timelocal(0, $min, $std, $day , $monat{$month}, $year);
$t2= $t1 - $delta;
}
open( OUT, "> $spflogtempfile" ) or print $query->h1("can't open file $spflogtempfile: $!");
print OUT '<?xml version="1.0"?>' . "\n";
printf OUT (@timestamp);
foreach my $datum (@tempfile)
{
if($datum=~/time=\"(\d+)\"/)
{
$t0=$1;
$zeit="time=\"" . localtime($1) . "\"";
$datum=~ s/time=\"(\d+)\"/$zeit/;
#print ($datum . "\n");
if ((($t0<$t1) && ($t0>$t2)) || ($delta==0))
{
printf OUT ($datum) ;
}
}
}
printf OUT ("</isis-spf-log>\n");
close OUT;
if( -r $spflogtempfile )
{
system(sprintf("xsltproc --output %s %s/lib/isis_spf_log-html.xsl %s",
$spfloghtmloutfile, $nms_config{'env'}{'HOME'},
$spflogtempfile));
open( IN, $spfloghtmloutfile ) or print $query->h1("can't open file $spfloghtmloutfile: $!");
while(<IN>)
{
print;
}
close IN;
unlink $spflogtempfile;
unlink $spfloghtmloutfile;
}
}
}
else
{
print $query->start_html("MPLS ISIS SPF-LOG");
printform();
}
sub printform
{
print $query->h1("ISIS SPF-LOG");
@monate = ("Jan","Feb","Mar","Apr","May","Jun","Jul",
"Aug","Sep","Oct","Nov","Dec");
#Thu Dec 12 15:20:59 2002
$time = localtime;
if($time=~/\w+\s+(\w+)\s+(\d+)\s+(\d+:\d+):\d+\s+(\d+)/)
{
$month=$1; $day=$2; $tm=$3; $year=$4;
}
print $query->start_form();
print "Day: ";
print $query->textfield('day', $day, 2, 2);
print " Month: ";
print $query->popup_menu(-name=>'month',
-values=>\@monate,
-default=>$month);
print " Year: ";
print $query->textfield('year', $year, 4, 4);
print $query->br();
print "Time: ";
print $query->textfield('time', $tm, 5, 5);
print $query->br();
print $query->radio_group( -name => 'output_range',
-values => ['all', 'd', 'w', 'm'],
-default => 'all',
-linebreak => 'true',
-labels => {
'all' => 'all records',
'd' => 'one day',
'w' => 'one week',
'm' => 'one month' } );
print $query->br();
print $query->submit();
print $query->end_form();
}
|
|
From: Michel H. <mi...@us...> - 2002-12-17 08:39:03
|
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv14784
Added Files:
isis_spflog_corr.pl.in
Log Message:
initial import
--- NEW FILE: isis_spflog_corr.pl.in ---
#!%%PERL%%
#
# NMSTOOLS -- NMS Helper Tools
# $Id: isis_spflog_corr.pl.in,v 1.1 2002/12/17 08:38:55 mihahn Exp $
#
# Author: Michel Hahne <morangie at bluemail dot ch>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Revision history:
# $Log: isis_spflog_corr.pl.in,v $
# Revision 1.1 2002/12/17 08:38:55 mihahn
# initial import
#
# Revision 1.0
use Time::Local;
require '%%NMSTOOLS_HOME%%/lib/lib_nmstools.pl';
%wotag = ("Mon",0,"Tue",1,"Wed",2,"Thu",3,"Fri",4,"Sat",5,"Sun",6);
%monat = ("Jan",0,"Feb",1,"Mar",2,"Apr",3,"May",4,"Jun",5,"Jul",6,
"Aug",7,"Sep",8,"Oct",9,"Nov",10,"Dec",11);
my $nodelist = $nms_config{'env'}{'DATA'} . '/mpls/nodelist';
$spflogoutfile = $nms_config{'env'}{'DATA'} . '/mpls/spflogarchive';
$spflogdir = $nms_config{'env'}{'DATA'} . '/mpls/spflogs';
$time = localtime;
$ref=0;
my @data;
opendir(DIR, $spflogdir) || die "can't opendir $spflogdir: $!";
while( $fname = readdir(DIR) )
{
$filename = $spflogdir . '/' . $fname;
next if not -r $filename;
open( IN, $filename ) || die "can't open file $filename: $!";
$state = 0;
$hostname = $fname;
if ($fname =~ /\S+\d+/)
{
$ref =+ $ref;
}
$hostlist{$hostname}=1;
@list = <IN>;
close IN;
for (@list)
{
if (/^\s*(\d+):(\d+):(\d+).+CET\s+(\w+)\s+(\w+)\s+(\d+)\s+(\d+)\s*/)
{
$h=$1; $m=$2; $s=$3;
$wd=$wotag{$4}; $mt=$monat{$5}; $d=$6; $y=$7;
# 15:33:26.846 CET Wed Nov 27 2002
}
# 10:26:49 24 323 2 mlsBSM002.00-00 TLVCONTENT
elsif (/^\s*(\d+\S+\d+\S+\d*)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\w+\s*\w+)/)
{
$zeitspanne = $1;
$Duration=$2;
$Nodes=$3;
$Count=$4;
$Last_trigger=$5;
$Triggers = $6;
if ($zeitspanne =~ /(\d+):(\d+):(\d+)/)
{
$tage=0;
$std=$1;
$min=$2;
$sek=$3;
}
elsif ($zeitspanne =~ /(\d+)d(\d+)h/)
{
$tage=$1;
$std=$2;
$min=0;
$sek=0;
}
$tm=timelocal($s, $m, $h, $d, $mt, $y)
- $tage * 24 * 60 * 60 -
$std * 60 * 60 - $min * 60 - $sek;
$timestamp=$tm;
push(@data, [$tm , $Duration, $Nodes, $Count, $Last_trigger,
$Triggers, $hostname, 0 ]);
}
}
}
close DIR;
# summarizing events within a time period of 10 seconds on the same box
@temp = @data;
$dummy=-1;
foreach my $datum (@temp)
{
if ($dummy != -1)
{
if((($datum->[0] - $dummy->[0]) <=10) && ($datum->[5] eq $dummy->[5]) &&
($datum->[6] eq $dummy->[6]))
{
$datum->[3] += $dummy->[3];
$datum->[0] = $dummy->[0];
$dummy->[7] = 1;
}
}
$dummy=$datum;
}
foreach $datum (@temp)
{
if($datum->[7] != 1)
{
push(@temp2, [$datum->[0], $datum->[1],
$datum->[2], $datum->[3], $datum->[4],
$datum->[5], $datum->[6], $datum->[7]]);
}
}
$refcount=0;
$dummy=-1;
@log = sort {$a->[0] <=> $b->[0]} @temp2;
# summarizing events within a time period of 10 seconds on different boxes
$dummy=-1;
foreach my $datum (@log)
{
if ($dummy != -1)
{
if((($datum->[0] - $dummy->[0]) <=10) && ($datum->[5] eq $dummy->[5]))
{
$datum->[0] = $dummy->[0];
$dummy->[7] = 1;
}
}
$dummy=$datum;
}
$lasttimestamp=0;
if (-e "$spflogoutfile")
{
open( IN, $spflogoutfile ) || die "can't open file $spflogoutfile: $!";
@tempfile = <IN>;
@tempfile = grep {/spf time/} @tempfile;
close IN;
#Wed Nov 27 14:58:11 2002
if (@tempfile[0]=~/time=\"(\d+)\"/)
{
$lasttimestamp=$1;
}
}
$newesttimestamp = $lasttimestamp;
@log = sort {$b->[0] <=> $a->[0]} @log;
if (@log[0]->[0] > $lasttimestamp)
{
$newesttimestamp = @log[0]->[0];
}
unlink $spflogoutfile;
open( OUT, "+>> $spflogoutfile" ) or die "Cannot open for writing: $!";
print OUT '<?xml version="1.0"?>' . "\n";
printf OUT ("<isis-spf-log timestamp=\"%s\">\n", scalar(localtime(time)));
foreach my $datum (@log)
{
if(($datum->[7] != 1) && ($datum->[0] > $lasttimestamp))
{
printf OUT ("<spf time=\"%s\" duration=\"%s\" nodes=\"%s\" count=\"%s\" ",
$datum->[0], $datum->[1], $datum->[2], $datum->[3]);
printf OUT ("last_trigger=\"%s\" triggers=\"%s\"/>\n",
$datum->[4],$datum->[5]) ;
}
}
if (scalar(@tempfile) > 0)
{
foreach my $datum (@tempfile)
{
if ($datum=~/time=\"(\d+)\"/)
{
$temptimestamp=$1;
if (($temptimestamp + 6 * 31 * 24 * 60 * 60) > $newesttimestamp)
{
printf OUT ($datum);
}
}
}
}
printf OUT ("</isis-spf-log>\n");
close OUT;
|
|
From: Michel H. <mi...@us...> - 2002-12-17 08:21:08
|
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv9389
Added Files:
isis_collect_spf_log.pl.in
Log Message:
initial import
--- NEW FILE: isis_collect_spf_log.pl.in ---
#!%%PERL%%
#
# NMSTOOLS -- NMS Helper Tools
# $Id: isis_collect_spf_log.pl.in,v 1.1 2002/12/17 08:21:02 mihahn Exp $
#
# Author: Michel Hahne <morangie at bluemail dot ch>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Revision history:
# $Log: isis_collect_spf_log.pl.in,v $
# Revision 1.1 2002/12/17 08:21:02 mihahn
# initial import
#
# Revision
require '%%NMSTOOLS_HOME%%/lib/lib_nmstools.pl';
$Expect::Log_Stdout=1;
nms_readconfig('devlogin');
my $nodelist = $nms_config{'env'}{'HOME'} . '/lib/route_ref_list';
$spflogdir = $nms_config{'env'}{'DATA'} . '/mpls/spflogs';
system("rm -f $spflogdir/* ") != -1 or
die "Cannot execute: $!";
#Enumerate nodes and collect information
nms_enumnodes( $nodelist, \&cb_collectall );
sub cb_collectall
{
my ($telnet, $node, $hostname) = @_;
# Get "sh running" report
$telnet->log_file($spflogdir . '/' . $node, "w");
printf $telnet ("show clock\r", $_);
$telnet->expect(60, '-re', '\n\w+\#');
printf $telnet ("show isis spf-log\r", $_);
$telnet->expect(60, '-re', '\n\w+\#');
$telnet->log_file(undef);
}
|
|
From: Michel H. <mi...@us...> - 2002-12-02 12:38:08
|
Update of /cvsroot/nmstools/src/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv4712
Modified Files:
.cvsignore Makefile.am c7200-pa-bwpt.csv
ipr_routes-html.xsl.in
Log Message:
c7200-pa-bwpt.csv
Index: .cvsignore
===================================================================
RCS file: /cvsroot/nmstools/src/lib/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** .cvsignore 12 Aug 2002 14:45:38 -0000 1.3
--- .cvsignore 2 Dec 2002 12:37:59 -0000 1.4
***************
*** 8,14 ****
--- 8,16 ----
ios_devlist-csv.xsl
ios_devlist-html.xsl
+ ipr_routes-html.xsl
lib_nmstools.pl
mpls_serial-csv.xsl
nsapref-csv.xsl
+ other_ipr_routes-html.xsl
pnnitopo-html.xsl
pnnitopo-summary-html.xsl
Index: Makefile.am
===================================================================
RCS file: /cvsroot/nmstools/src/lib/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Makefile.am 9 Aug 2002 13:13:47 -0000 1.3
--- Makefile.am 2 Dec 2002 12:37:59 -0000 1.4
***************
*** 22,25 ****
--- 22,28 ----
# Revision history:
# $Log$
+ # Revision 1.4 2002/12/02 12:37:59 mihahn
+ # c7200-pa-bwpt.csv
+ #
# Revision 1.3 2002/08/09 13:13:47 ssinyagin
# removed all temporary files
***************
*** 37,43 ****
--- 40,48 ----
ios_devlist-csv.xsl \
ios_devlist-html.xsl \
+ ipr_routes-html.xsl \
lib_nmstools.pl \
mpls_serial-csv.xsl \
nsapref-csv.xsl \
+ other_ipr_routes-html.xsl \
pnnitopo-html.xsl \
pnnitopo-summary-html.xsl \
***************
*** 66,72 ****
--- 71,79 ----
ios_devlist-csv.xsl.in \
ios_devlist-html.xsl.in \
+ ipr_routes-html.xsl.in \
lib_nmstools.pl.in \
mpls_serial-csv.xsl.in \
nsapref-csv.xsl.in \
+ other_ipr_routes-html.xsl.in \
pnnitopo-html.xsl.in \
pnnitopo-summary-html.xsl.in \
Index: c7200-pa-bwpt.csv
===================================================================
RCS file: /cvsroot/nmstools/src/lib/c7200-pa-bwpt.csv,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** c7200-pa-bwpt.csv 11 Oct 2002 14:12:37 -0000 1.2
--- c7200-pa-bwpt.csv 2 Dec 2002 12:37:59 -0000 1.3
***************
*** 13,16 ****
--- 13,17 ----
73-2428,PA-A3-0C3SML,300
73-2430,PA-A3-0C3MM,300
+ 73-2543,PA-MC-8E1/120=,0
73-2618,PA-2FEISL-TX,300
73-2956,C7200-I/O-FE,200
***************
*** 24,25 ****
--- 25,27 ----
73-5419,PA-2FE,400
73-5420,PA-2FE-FX,400
+ 800-07114,C7200-I/O-2FE/E,400
Index: ipr_routes-html.xsl.in
===================================================================
RCS file: /cvsroot/nmstools/src/lib/ipr_routes-html.xsl.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ipr_routes-html.xsl.in 22 Aug 2002 09:14:12 -0000 1.1
--- ipr_routes-html.xsl.in 2 Dec 2002 12:37:59 -0000 1.2
***************
*** 31,35 ****
<xsl:output method="html"/>
! <xsl:template match="isis_routes">
<HTML><TITLE>IPR Routes List</TITLE>
--- 31,35 ----
<xsl:output method="html"/>
! <xsl:template match="routes">
<HTML><TITLE>IPR Routes List</TITLE>
***************
*** 38,44 ****
routes.xml produced by ipr_analyze.pl.
Author: <A HREF="mailto:morangie at bluemail dot ch">Michel Hahne</A>.
! Date: <xsl:value-of select="/ipr_routes/@timestamp"/></FONT><BR/>
! <H1>ISIS Route List</H1>
--- 38,44 ----
routes.xml produced by ipr_analyze.pl.
Author: <A HREF="mailto:morangie at bluemail dot ch">Michel Hahne</A>.
! Date: <xsl:value-of select="/routes/@timestamp"/></FONT><BR/>
! <H1>IPR Route List</H1>
***************
*** 72,73 ****
--- 72,78 ----
</BODY>
</HTML>
+
+ </xsl:template>
+
+ </xsl:transform>
+
|
|
From: Michel H. <mi...@us...> - 2002-11-27 10:14:56
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv13908 Modified Files: mpls_vpn_rt_cvsimport.sh.in Log Message: error corrected Index: mpls_vpn_rt_cvsimport.sh.in =================================================================== RCS file: /cvsroot/nmstools/src/bin/mpls_vpn_rt_cvsimport.sh.in,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mpls_vpn_rt_cvsimport.sh.in 19 Nov 2002 14:48:23 -0000 1.1 --- mpls_vpn_rt_cvsimport.sh.in 27 Nov 2002 10:14:50 -0000 1.2 *************** *** 1,56 **** ! #!/bin/sh ! # ! # NMSTOOLS -- NMS Helper Tools ! #!/bin/sh ! # ! # NMSTOOLS -- NMS Helper Tools ! # $Id$ ! # ! # Author: Michel Hahne <morangie at bluemail dot ch> ! # Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH ! # ! # This program is free software; you can redistribute it and/or modify ! # it under the terms of the GNU General Public License as published by ! # the Free Software Foundation; either version 2 of the License, or ! # (at your option) any later version. ! # ! # This program is distributed in the hope that it will be useful, ! # but WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! # GNU General Public License for more details. ! # ! # You should have received a copy of the GNU General Public License ! # along with this program; if not, write to the Free Software ! # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! # ! # Revision history: # $Log$ # Revision 1.1 2002/11/19 14:48:23 mihahn # initial import ! # ! ! ! CVSROOT=/pub/cvsroot ! VNDTAG=NMSTOOLS ! RELTAG=LATEST ! TMPDIR=/tmp/nms_cvsimport$$ ! ! MPLSDIR=%%NMSTOOLS_DATA%%/mpls ! ! ! CVSMODULE=nmstools-vpn_rt-savedstate ! ! mkdir $TMPDIR ! ! cd $MPLSDIR ! ! for f in `ls rt_vrf*` ! do ! sed 's/timestamp.*/timestamp="DELETED">/' $f >$TMPDIR/$f ! ! done ! ! cd $TMPDIR ! cvs -d $CVSROOT import -m "Weekly update" -d $CVSMODULE $VNDTAG $RELTAG ! cd .. ! \rm -rf $TMPDIR --- 1,55 ---- ! #!/bin/sh ! # ! # NMSTOOLS -- NMS Helper Tools ! # $Id$ ! # ! # Author: Michel Hahne <morangie at bluemail dot ch> ! # Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH ! # ! # This program is free software; you can redistribute it and/or modify ! # it under the terms of the GNU General Public License as published by ! # the Free Software Foundation; either version 2 of the License, or ! # (at your option) any later version. ! # ! # This program is distributed in the hope that it will be useful, ! # but WITHOUT ANY WARRANTY; without even the implied warranty of ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! # GNU General Public License for more details. ! # ! # You should have received a copy of the GNU General Public License ! # along with this program; if not, write to the Free Software ! # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! # ! # Revision history: # $Log$ + # Revision 1.2 2002/11/27 10:14:50 mihahn + # error corrected + # # Revision 1.1 2002/11/19 14:48:23 mihahn # initial import ! # ! ! CVSROOT=/pub/cvsroot ! VNDTAG=NMSTOOLS ! RELTAG=LATEST ! TMPDIR=/tmp/nms_cvsimport$$ ! ! MPLSDIR=%%NMSTOOLS_DATA%%/mpls ! ! ! CVSMODULE=nmstools-vpn_rt-savedstate ! ! mkdir $TMPDIR ! ! cd $MPLSDIR ! ! for f in `ls rt_vrf*` ! do ! sed 's/timestamp.*/timestamp="DELETED">/' $f >$TMPDIR/$f ! ! done ! ! cd $TMPDIR ! cvs -d $CVSROOT import -m "Weekly update" -d $CVSMODULE $VNDTAG $RELTAG ! cd .. ! \rm -rf $TMPDIR |
|
From: Michel H. <mi...@us...> - 2002-11-19 15:10:07
|
Update of /cvsroot/nmstools/src/html In directory sc8-pr-cvs1:/tmp/cvs-serv26809 Modified Files: index.html Log Message: VPN-INT1 RT revision control added Index: index.html =================================================================== RCS file: /cvsroot/nmstools/src/html/index.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.html 9 Aug 2002 12:45:12 -0000 1.1.1.1 --- index.html 19 Nov 2002 15:09:59 -0000 1.2 *************** *** 23,26 **** --- 23,29 ---- Revision history: $Log$ + Revision 1.2 2002/11/19 15:09:59 mihahn + VPN-INT1 RT revision control added + Revision 1.1.1.1 2002/08/09 12:45:12 ssinyagin Fisrt SourceForge Import *************** *** 175,178 **** --- 178,200 ---- <p> <b><a href="/cgi-bin/cvsweb.cgi/nmstools-fhs-configs/">Device configurations + revision control</a></b> + </p> + + <h1>Core Routing Tables (updated weekly on monday at 6:00 AM)</h1> + + <a href="ipr/allisisprefixes.html">All ISIS routes within the MPLS core</a><br/> + <a href="ipr/foreignisisprefixes.html">ISIS routes outside of the MPLS ranges</a><br/><br/> + <a href="ipr/allospfprefixes.html">All OSPF routes within the ATM core</a><br/> + <a href="ipr/foreignospfprefixes.html">OPSF routes outside of the ATM ranges</a> + + </h1> + + <p> + <b><a href="/cgi-bin/cvsweb.cgi/nmstools-ipr-savedstate/">Routes out of range + revision control</a></b> + </p> + + <p> + <b><a href="/cgi-bin/cvsweb.cgi/nmstools-vpn_rt-savedstate/">All routes within VPN-INT1 revision control</a></b> </p> |
|
From: Michel H. <mi...@us...> - 2002-11-19 14:52:07
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv20043 Modified Files: cronjob-weekly.sh.in Log Message: mpls_collect_vpn_rt.pl.in, mpls_vpn_rt_cvsimport.sh.in added Index: cronjob-weekly.sh.in =================================================================== RCS file: /cvsroot/nmstools/src/bin/cronjob-weekly.sh.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** cronjob-weekly.sh.in 19 Nov 2002 08:42:32 -0000 1.3 --- cronjob-weekly.sh.in 19 Nov 2002 14:52:01 -0000 1.4 *************** *** 85,100 **** ! ############################# collect rt VPN-INT1 ############################# ! %%NMSTOOLS_HOME%%/bin/mpls_collect_rt_vpnint1.pl ! ################################### cvs import ################################# %%NMSTOOLS_HOME%%/bin/ipr_cvsimport.sh >>$log 2>>$errlog ! %%NMSTOOLS_HOME%%/bin/rt_vpnint1_cvsimport.sh >>$log 2>>$errlog --- 85,100 ---- ! ############################# collect VPN RT ################################ ! %%NMSTOOLS_HOME%%/bin/mpls_collect_vpn_rt.pl VPN-INT1 ! ################################# cvs import ################################# %%NMSTOOLS_HOME%%/bin/ipr_cvsimport.sh >>$log 2>>$errlog ! %%NMSTOOLS_HOME%%/bin/mpls_vpn_rt_cvsimport.sh >>$log 2>>$errlog |
|
From: Michel H. <mi...@us...> - 2002-11-19 14:51:11
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv19767 Modified Files: Makefile.am Log Message: mpls_collect_vpn_rt.pl.in, mpls_vpn_rt_cvsimport.sh.in added Index: Makefile.am =================================================================== RCS file: /cvsroot/nmstools/src/bin/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile.am 19 Nov 2002 08:42:32 -0000 1.4 --- Makefile.am 19 Nov 2002 14:51:04 -0000 1.5 *************** *** 22,25 **** --- 22,28 ---- # Revision history: # $Log$ + # Revision 1.5 2002/11/19 14:51:04 mihahn + # mpls_collect_vpn_rt.pl.in, mpls_vpn_rt_cvsimport.sh.in added + # # Revision 1.4 2002/11/19 08:42:32 mihahn # Removed unneeded files *************** *** 68,72 **** ipr_procxml.sh \ mpls_collectrunning.pl \ ! mpls_collect_rt_vpnint1.pl \ mpls_getisistopo.pl \ mpls_procxml.sh \ --- 71,75 ---- ipr_procxml.sh \ mpls_collectrunning.pl \ ! mpls_collect_vpn_rt.pl \ mpls_getisistopo.pl \ mpls_procxml.sh \ *************** *** 74,82 **** mpls_tdptopo.pl \ mpls_track.pl \ mpls_vrfinventory.pl \ ospf_collectrunning.pl \ ospf_getnodelist.pl \ ospf_procxml.sh \ - rt_vpnint1_cvsimport.sh \ runiosbatch.pl \ runioscmd.pl \ --- 77,85 ---- mpls_tdptopo.pl \ mpls_track.pl \ + mpls_vpn_rt_cvsimport.sh \ mpls_vrfinventory.pl \ ospf_collectrunning.pl \ ospf_getnodelist.pl \ ospf_procxml.sh \ runiosbatch.pl \ runioscmd.pl \ *************** *** 114,119 **** ipr_analyze.pl.in \ ipr_procxml.sh.in \ - mpls_collect_rt_vpnint1.pl.in \ mpls_collectrunning.pl.in \ mpls_getisistopo.pl.in \ mpls_procxml.sh.in \ --- 117,122 ---- ipr_analyze.pl.in \ ipr_procxml.sh.in \ mpls_collectrunning.pl.in \ + mpls_collect_vpn_rt.pl.in \ mpls_getisistopo.pl.in \ mpls_procxml.sh.in \ *************** *** 121,129 **** mpls_tdptopo.pl.in \ mpls_track.pl.in \ mpls_vrfinventory.pl.in \ ospf_collectrunning.pl.in \ ospf_getnodelist.pl.in \ ospf_procxml.sh.in \ - rt_vpnint1_cvsimport.sh.in \ runiosbatch.pl.in \ runioscmd.pl.in \ --- 124,132 ---- mpls_tdptopo.pl.in \ mpls_track.pl.in \ + mpls_vpn_rt_cvsimport.sh.in \ mpls_vrfinventory.pl.in \ ospf_collectrunning.pl.in \ ospf_getnodelist.pl.in \ ospf_procxml.sh.in \ runiosbatch.pl.in \ runioscmd.pl.in \ |
|
From: Michel H. <mi...@us...> - 2002-11-19 14:48:30
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv18874 Added Files: mpls_vpn_rt_cvsimport.sh.in Log Message: initial import --- NEW FILE: mpls_vpn_rt_cvsimport.sh.in --- #!/bin/sh # # NMSTOOLS -- NMS Helper Tools #!/bin/sh # # NMSTOOLS -- NMS Helper Tools # $Id: mpls_vpn_rt_cvsimport.sh.in,v 1.1 2002/11/19 14:48:23 mihahn Exp $ # # Author: Michel Hahne <morangie at bluemail dot ch> # Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Revision history: # $Log: mpls_vpn_rt_cvsimport.sh.in,v $ # Revision 1.1 2002/11/19 14:48:23 mihahn # initial import # CVSROOT=/pub/cvsroot VNDTAG=NMSTOOLS RELTAG=LATEST TMPDIR=/tmp/nms_cvsimport$$ MPLSDIR=%%NMSTOOLS_DATA%%/mpls CVSMODULE=nmstools-vpn_rt-savedstate mkdir $TMPDIR cd $MPLSDIR for f in `ls rt_vrf*` do sed 's/timestamp.*/timestamp="DELETED">/' $f >$TMPDIR/$f done cd $TMPDIR cvs -d $CVSROOT import -m "Weekly update" -d $CVSMODULE $VNDTAG $RELTAG cd .. \rm -rf $TMPDIR |
|
From: Michel H. <mi...@us...> - 2002-11-19 14:47:19
|
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv18446
Added Files:
mpls_collect_vpn_rt.pl.in
Log Message:
initial import
--- NEW FILE: mpls_collect_vpn_rt.pl.in ---
#!%%PERL%%
#
# NMSTOOLS -- NMS Helper Tools
# $Id: mpls_collect_vpn_rt.pl.in,v 1.1 2002/11/19 14:47:12 mihahn Exp $
#
# Author: Michel Hahne <morangie at bluemail dot ch>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Revision history:
# $Log: mpls_collect_vpn_rt.pl.in,v $
# Revision 1.1 2002/11/19 14:47:12 mihahn
# initial import
#
require '%%NMSTOOLS_HOME%%/lib/lib_nmstools.pl';
$Expect::Log_Stdout=1;
nms_readconfig('devlogin');
$vpn = $ARGV[0];
my $seednode = $nms_config{'env'}{'DATA'} . '/mpls/rr_seed';
$workingdir = $nms_config{'env'}{'DATA'} . '/mpls';
$rt_vpnint1_outfile = $workingdir . '/rt_vrf_' . $vpn;
#Enumerate nodes and collect information
nms_enumnodes( $seednode, \&cb_collectall );
sub cb_collectall
{
my ($telnet, $node, $hostname) = @_;
# Get "sh running" report
$telnet->log_file($rt_vpnint1_outfile, "w");
printf $telnet ("show ip route vrf " . $vpn . "\r", $_);
$telnet->expect(60, '-re', '\n\w+\#');
$telnet->log_file(undef);
}
|
|
From: Michel H. <mi...@us...> - 2002-11-19 08:51:18
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv11973 Removed Files: rt_vpnint1_cvsimport.sh.in Log Message: Removed unneeded files --- rt_vpnint1_cvsimport.sh.in DELETED --- |
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv6373
Modified Files:
.cvsignore Makefile.am cronjob-weekly.sh.in ipr_analyze.pl.in
ipr_procxml.sh.in rt_vpnint1_cvsimport.sh.in
Removed Files:
mpls_collect_rt_vpnint1.pl.in
Log Message:
Removed unneeded files
Index: .cvsignore
===================================================================
RCS file: /cvsroot/nmstools/src/bin/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** .cvsignore 12 Aug 2002 14:43:47 -0000 1.2
--- .cvsignore 19 Nov 2002 08:42:32 -0000 1.3
***************
*** 24,31 ****
ios_devlist.pl
ios_showtech.pl
! mpls_collect_isisroutes.pl
mpls_collectrunning.pl
mpls_getisistopo.pl
- mpls_isis_analysis.pl
mpls_procxml.sh
mpls_sernumbers.pl
--- 24,32 ----
ios_devlist.pl
ios_showtech.pl
! ipr_analyze.pl
! ipr_collect.pl
! ipr_procxml.sh
mpls_collectrunning.pl
mpls_getisistopo.pl
mpls_procxml.sh
mpls_sernumbers.pl
Index: Makefile.am
===================================================================
RCS file: /cvsroot/nmstools/src/bin/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Makefile.am 6 Sep 2002 13:57:51 -0000 1.3
--- Makefile.am 19 Nov 2002 08:42:32 -0000 1.4
***************
*** 22,25 ****
--- 22,28 ----
# Revision history:
# $Log$
+ # Revision 1.4 2002/11/19 08:42:32 mihahn
+ # Removed unneeded files
+ #
# Revision 1.3 2002/09/06 13:57:51 mihahn
# ipr_cvsimport.sh.in added
***************
*** 65,68 ****
--- 68,72 ----
ipr_procxml.sh \
mpls_collectrunning.pl \
+ mpls_collect_rt_vpnint1.pl \
mpls_getisistopo.pl \
mpls_procxml.sh \
***************
*** 74,77 ****
--- 78,82 ----
ospf_getnodelist.pl \
ospf_procxml.sh \
+ rt_vpnint1_cvsimport.sh \
runiosbatch.pl \
runioscmd.pl \
***************
*** 109,112 ****
--- 114,118 ----
ipr_analyze.pl.in \
ipr_procxml.sh.in \
+ mpls_collect_rt_vpnint1.pl.in \
mpls_collectrunning.pl.in \
mpls_getisistopo.pl.in \
***************
*** 119,122 ****
--- 125,129 ----
ospf_getnodelist.pl.in \
ospf_procxml.sh.in \
+ rt_vpnint1_cvsimport.sh.in \
runiosbatch.pl.in \
runioscmd.pl.in \
Index: cronjob-weekly.sh.in
===================================================================
RCS file: /cvsroot/nmstools/src/bin/cronjob-weekly.sh.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cronjob-weekly.sh.in 19 Sep 2002 10:58:50 -0000 1.2
--- cronjob-weekly.sh.in 19 Nov 2002 08:42:32 -0000 1.3
***************
*** 84,89 ****
! ################################### cvs import ################################
%%NMSTOOLS_HOME%%/bin/ipr_cvsimport.sh >>$log 2>>$errlog
--- 84,103 ----
!
! ############################# collect rt VPN-INT1 #############################
!
!
! %%NMSTOOLS_HOME%%/bin/mpls_collect_rt_vpnint1.pl
!
!
! ################################### cvs import #################################
%%NMSTOOLS_HOME%%/bin/ipr_cvsimport.sh >>$log 2>>$errlog
+
+
+ %%NMSTOOLS_HOME%%/bin/rt_vpnint1_cvsimport.sh >>$log 2>>$errlog
+
+
+
+
Index: ipr_analyze.pl.in
===================================================================
RCS file: /cvsroot/nmstools/src/bin/ipr_analyze.pl.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ipr_analyze.pl.in 5 Sep 2002 07:08:42 -0000 1.3
--- ipr_analyze.pl.in 19 Nov 2002 08:42:32 -0000 1.4
***************
*** 23,26 ****
--- 23,29 ----
# Revision history:
# $Log$
+ # Revision 1.4 2002/11/19 08:42:32 mihahn
+ # Removed unneeded files
+ #
# Revision 1.3 2002/09/05 07:08:42 mihahn
# error corrected
***************
*** 220,229 ****
foreach $addr ( sort keys %lasthop )
{
! printf OUT ("<route address=\"%s\" lasthop=\"%s\">\n",
$addr, $lasthop{$addr}) ;
-
-
- printf OUT ("</route>\n");
}
printf OUT ("</other_routes>\n");
--- 223,229 ----
foreach $addr ( sort keys %lasthop )
{
! printf OUT ("<route address=\"%s\" lasthop=\"%s\"/>\n",
$addr, $lasthop{$addr}) ;
}
printf OUT ("</other_routes>\n");
Index: ipr_procxml.sh.in
===================================================================
RCS file: /cvsroot/nmstools/src/bin/ipr_procxml.sh.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ipr_procxml.sh.in 22 Aug 2002 09:19:52 -0000 1.2
--- ipr_procxml.sh.in 19 Nov 2002 08:42:32 -0000 1.3
***************
*** 5,26 ****
# ***************************************************************************
#
! # Author: Michel Hahne
! # E-mail: mic...@ca...
#
- # Copyright (c) 2001, 2002 Cablecom GmbH
#
! # Description: Process all XML files produced by MPLS tools
# Revision history:
#
! xsltproc --output %%NMSTOOLS_HTML%%/mpls/$2 \
%%NMSTOOLS_HOME%%/lib/ipr_routes-html.xsl \
! %%NMSTOOLS_DATA%%/mpls/$1
! xsltproc --output %%NMSTOOLS_HTML%%/mpls/$4 \
%%NMSTOOLS_HOME%%/lib/other_ipr_routes-html.xsl \
! %%NMSTOOLS_DATA%%/mpls/$3
--- 5,25 ----
# ***************************************************************************
#
! # Author: Michel Hahne <morangie at bluemail dot ch>
! # Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
#
! # Description: Process all XML files produced by ipr tools
# Revision history:
#
! xsltproc --output %%NMSTOOLS_HTML%%/ipr/$2 \
%%NMSTOOLS_HOME%%/lib/ipr_routes-html.xsl \
! %%NMSTOOLS_DATA%%/ipr/$1
! xsltproc --output %%NMSTOOLS_HTML%%/ipr/$4 \
%%NMSTOOLS_HOME%%/lib/other_ipr_routes-html.xsl \
! %%NMSTOOLS_DATA%%/ipr/$3
Index: rt_vpnint1_cvsimport.sh.in
===================================================================
RCS file: /cvsroot/nmstools/src/bin/rt_vpnint1_cvsimport.sh.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rt_vpnint1_cvsimport.sh.in 18 Nov 2002 12:45:41 -0000 1.1
--- rt_vpnint1_cvsimport.sh.in 19 Nov 2002 08:42:32 -0000 1.2
***************
*** 2,8 ****
#
# NMSTOOLS -- NMS Helper Tools
# $Id$
#
! # Author: Stanislav Sinyagin <ssi...@ya...>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
--- 2,11 ----
#
# NMSTOOLS -- NMS Helper Tools
+ #!/bin/sh
+ #
+ # NMSTOOLS -- NMS Helper Tools
# $Id$
#
! # Author: Michel Hahne <morangie at bluemail dot ch>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
***************
*** 23,26 ****
--- 26,30 ----
# Revision history:
+
CVSROOT=/pub/cvsroot
VNDTAG=NMSTOOLS
***************
*** 48,50 ****
cd ..
\rm -rf $TMPDIR
-
--- 52,53 ----
--- mpls_collect_rt_vpnint1.pl.in DELETED ---
|
|
From: Michel H. <mi...@pr...> - 2002-11-18 12:45:44
|
Update of /cvsroot/nmstools/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv32130 Added Files: rt_vpnint1_cvsimport.sh.in Log Message: initial import --- NEW FILE: rt_vpnint1_cvsimport.sh.in --- #!/bin/sh # # NMSTOOLS -- NMS Helper Tools # $Id: rt_vpnint1_cvsimport.sh.in,v 1.1 2002/11/18 12:45:41 mihahn Exp $ # # Author: Stanislav Sinyagin <ssi...@ya...> # Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Revision history: CVSROOT=/pub/cvsroot VNDTAG=NMSTOOLS RELTAG=LATEST TMPDIR=/tmp/nms_cvsimport$$ MPLSDIR=%%NMSTOOLS_DATA%%/mpls INFILES="rt_vpnint1" CVSMODULE=nmstools-rt_vpnint1-savedstate mkdir $TMPDIR cd $MPLSDIR for f in $INFILES do sed 's/timestamp.*/timestamp="DELETED">/' $f >$TMPDIR/$f done cd $TMPDIR cvs -d $CVSROOT import -m "Weekly update" -d $CVSMODULE $VNDTAG $RELTAG cd .. \rm -rf $TMPDIR |
|
From: Michel H. <mi...@pr...> - 2002-11-18 12:43:52
|
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv30862
Modified Files:
mpls_collect_rt_vpnint1.pl.in
Log Message:
error corrected
Index: mpls_collect_rt_vpnint1.pl.in
===================================================================
RCS file: /cvsroot/nmstools/src/bin/mpls_collect_rt_vpnint1.pl.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mpls_collect_rt_vpnint1.pl.in 18 Nov 2002 11:39:52 -0000 1.1
--- mpls_collect_rt_vpnint1.pl.in 18 Nov 2002 12:43:49 -0000 1.2
***************
*** 34,42 ****
$workingdir = $nms_config{'env'}{'DATA'} . '/mpls';
#Enumerate nodes and collect information
! nms_enumnodes( $nodelist, \&cb_collectall );
sub cb_collectall
--- 34,43 ----
$workingdir = $nms_config{'env'}{'DATA'} . '/mpls';
+ $rt_vpnint1_outfile = $workingdir . '/rt_vpnint1';
#Enumerate nodes and collect information
! nms_enumnodes( $seednode, \&cb_collectall );
sub cb_collectall
***************
*** 46,50 ****
# Get "sh running" report
! $telnet->log_file($workingdir . '/rt_vpnint1', "w");
printf $telnet ("show ip route vrf VPN-INT1\r", $_);
--- 47,51 ----
# Get "sh running" report
! $telnet->log_file($rt_vpnint1_outfile, "w");
printf $telnet ("show ip route vrf VPN-INT1\r", $_);
|
|
From: Michel H. <mi...@pr...> - 2002-11-18 11:39:55
|
Update of /cvsroot/nmstools/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv25227
Added Files:
mpls_collect_rt_vpnint1.pl.in
Log Message:
initial import
--- NEW FILE: mpls_collect_rt_vpnint1.pl.in ---
#!%%PERL%%
#
# NMSTOOLS -- NMS Helper Tools
# $Id: mpls_collect_rt_vpnint1.pl.in,v 1.1 2002/11/18 11:39:52 mihahn Exp $
#
# Author: Michel Hahne <morangie at bluemail dot ch>
# Copyright (C) 2001, 2002 Fault Correction and Maintenance, Cablecom GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Revision history:
require '%%NMSTOOLS_HOME%%/lib/lib_nmstools.pl';
$Expect::Log_Stdout=1;
nms_readconfig('devlogin');
my $seednode = $nms_config{'env'}{'DATA'} . '/mpls/rr_seed';
$workingdir = $nms_config{'env'}{'DATA'} . '/mpls';
#Enumerate nodes and collect information
nms_enumnodes( $nodelist, \&cb_collectall );
sub cb_collectall
{
my ($telnet, $node, $hostname) = @_;
# Get "sh running" report
$telnet->log_file($workingdir . '/rt_vpnint1', "w");
printf $telnet ("show ip route vrf VPN-INT1\r", $_);
$telnet->expect(60, '-re', '\n\w+\#');
$telnet->log_file(undef);
}
|
|
From: Stanislav S. <ssi...@us...> - 2002-10-11 14:13:20
|
Update of /cvsroot/nmstools/src In directory usw-pr-cvs1:/tmp/cvs-serv2776 Modified Files: .cvsignore Log Message: version 2.0.2 is on the way Index: .cvsignore =================================================================== RCS file: /cvsroot/nmstools/src/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .cvsignore 12 Aug 2002 13:52:29 -0000 1.3 --- .cvsignore 11 Oct 2002 14:13:16 -0000 1.4 *************** *** 9,10 **** --- 9,11 ---- nmstools-2.0.0.tar.gz nmstools-2.0.1.tar.gz + nmstools-2.0.2.tar.gz |
|
From: Stanislav S. <ssi...@us...> - 2002-10-11 14:12:41
|
Update of /cvsroot/nmstools/src/lib In directory usw-pr-cvs1:/tmp/cvs-serv2454/lib Modified Files: c7200-pa-bwpt.csv Log Message: Added support for new PA-2FE-FX (73-5420-06) port adapter Index: c7200-pa-bwpt.csv =================================================================== RCS file: /cvsroot/nmstools/src/lib/c7200-pa-bwpt.csv,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** c7200-pa-bwpt.csv 9 Aug 2002 12:45:12 -0000 1.1.1.1 --- c7200-pa-bwpt.csv 11 Oct 2002 14:12:37 -0000 1.2 *************** *** 23,24 **** --- 23,25 ---- 73-4106,PA-SRP-SML,300 73-5419,PA-2FE,400 + 73-5420,PA-2FE-FX,400 |