<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Courier New CYR";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:56.7pt 42.5pt 56.7pt 85.05pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=RU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Hello!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Now I find some information
about these symbols, but until can’t correctly work with them. For example
zyxP791Rlogin must send command, and wait for prompt before send next command –
and this feature work in one case and not word for another. I can’t understand
why. May be some of RANCID scripts already solve this problem with scroll-like terminals
and scrolling symbols?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
rancid-discuss-bounces@shrubbery.net
[mailto:rancid-discuss-bounces@shrubbery.net] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Smirnoff Alexander<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 22, 2009
5:17 PM<br>
<b><span style='font-weight:bold'>To:</span></b> rancid-discuss@shrubbery.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [rancid] Re:
ProcessHistory filter</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>And I have some other
question about </span></font><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma'>ProcessHistory – I make sub
for parsing commands, and in output I see for every first line this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span lang=EN-US style='font-size:
10.0pt;font-family:Tahoma'><o:p> </o:p></span></font></p>
<pre><font size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!HOSTNAME: 777777777777Prestige_<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: 777777777777777777777sys errctl 0<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys trcl level 5<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys trcl type 1180<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys trcp cr 64 96<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys trcl sw off<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys trcp sw off<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip tcp mss 512<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip tcp limit 2<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip tcp irtt 65000<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip tcp window 2<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip tcp ceiling 6000<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip rip activate<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip rip merge on<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ip icmp discovery enif0 off<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: ppp ipcp compress off<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys wdog sw on<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!AUTOEXEC.NET: sys quick enable<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!SYS FEATURE: 77777777777IPX: yes<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!SYS FEATURE: IP ONLY: no<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt'>!SYS FEATURE: AUI: no<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>!SYS FEATURE: AB ADAPTER: no<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>e.g. I am ask about </span></font><span
lang=EN-US>777777777 symbols.<o:p></o:p></span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>And this is my sub:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'># is routine processes a
"sys view autoexec.net"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>sub ShowAutoexec {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'> print
STDERR " In ShowAutoexec: $_" if ($debug);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'> while
(<INPUT>) {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
if (/^$prompt/) { $found_env=1; last};<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
if (/>/) {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
$found_end = 1;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
ProcessHistory("","","","!AUTOEXEC.NET:
$_");<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
return(1);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
$found_end = 1;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
ProcessHistory("","","","!AUTOEXEC.NET:
$_");<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
} <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>
return(0);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>}
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>May be somebody know
about this problem?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
rancid-discuss-bounces@shrubbery.net [mailto:rancid-discuss-bounces@shrubbery.net]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Smirnoff Alexander<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 22, 2009
11:29 AM<br>
<b><span style='font-weight:bold'>To:</span></b> rancid-discuss@shrubbery.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [rancid] ProcessHistory
filter</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>Hello all RANCID people!<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>I try to filter interface counters from output of Zyxel
Prestige 791R ip route status :<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>- !<st1:Street w:st="on"><st1:address w:st="on">IP ROUTE</st1:address></st1:Street>:
default 01 0
mpoa01 172.17.100.1
2 00ab 0 409683<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>+ !<st1:Street w:st="on"><st1:address w:st="on">IP ROUTE</st1:address></st1:Street>:
default 01 0
mpoa01 172.17.100.1
2 00ab 0 412140<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> using these definitions:<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>if (/^(default)/)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'> {
ProcessHistory("","","","!<st1:Street w:st="on"><st1:address
w:st="on">IP ROUTE</st1:address></st1:Street>: default $1 $2$3
mpoa01 $5$6<___>\n") &&
next; }<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>but something wrong – i receive this:<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>!IP ROUTE: default default
mpoa01 <___><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'>How I can correctly setup this filter? <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Courier New CYR"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New CYR"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>-- <br>
Regards,<br>
Alexandr Smirnov<br>
+7(812)3468600 # 54682<br>
Head of Data Transmission Networks Monitoring
Service
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'><a href="mailto:asmirnoff@office.beeline.ru"
title="mailto:asmirnoff@gldn.net"><span lang=EN-US><span
title="mailto:asmirnoff@gldn.net"><span title="mailto:asmirnoff@gldn.net">mailto:asmirnoff@office.beeline.ru</span></span></span></a></span></font><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>