[rancid] [PATCH 2/2] Multiple fixes/improvements for Extreme XOS

Zenon Mousmoulas zmousm at noc.grnet.gr
Thu Dec 1 01:47:56 UTC 2011


On Thu, 01 Dec 2011 03:44:32 +0200, Zenon Mousmoulas <zmousm at noc.grnet.gr>
wrote:
> [...]
> However there's still a problem in this version with buffered output
from
> the extreme. After login, when you send "\r", the following expect
> catches the first prompt, not the one after "\r". This becomes evident
> later on, when the expect statement in the loop within run_commands
> catches
> "disable clipaging\r\n\<prompt>" rather than the command echoed and
> its' output. So you're always one step behind, until the end, where you
> erroneously see a prompt after sending "quit\r" so you also
> send -h "exit\r". This obviously messes up xrancid parsing as
> well. See the attached clogin log for more evidence (with exp_internal
> added after login).

Plus the attachment, sorry.
-------------- next part --------------
[snip]

password: 



ExtremeXOS
Copyright (C) 2000-2011 Extreme Networks. All rights reserved.
Protected by US Patent Nos: 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,954,436; 6,977,891; 6,980,550; 6,981,174; 7,003,705; 7,017,082; 7,046,665; 7,126,923; 7,142,509; 7,149,217; 7,152,124; 7,154,861; 7,245,619; 7,245,629; 7,269,135.
==============================================================================

Press the <tab> or '?' key at any time for completions.
Remember to save your configuration changes.


send: sending "\r" to { exp6 }
Gate keeper glob pattern for '[
]+' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '^(.+[:.])1 ((>|#| \(enable\)))' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '^.+(>|#| \(enable\))' is ''. Not usable, disabling the performance booster.

expect: does " or '?' key at any time for completions.\r\nRemember to save your configuration changes.\r\n\r\n\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " or '?' key at any time for completions.\r\n"
expect: continuing expect

expect: does "Remember to save your configuration changes.\r\n\r\n\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "\r\n\r\n\r\n"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "Remember to save your configuration changes.\r\n\r\n\r\n"
expect: continuing expect

expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no
"^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no
duth-asw.grnet.gr.1 # 
expect: does "duth-asw.grnet.gr.1 # " (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "duth-asw.grnet.gr.1 #"
expect: set expect_out(1,string) "duth-asw.grnet.gr."
expect: set expect_out(2,string) "#"
expect: set expect_out(3,string) "#"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "duth-asw.grnet.gr.1 #"
send: sending "disable clipaging\r" to { exp6 }
Gate keeper glob pattern for '.? ?duth-asw.grnet.gr.[0-9]+ #' is '*duth-asw?grnet?gr* #'. Activating booster.

expect: does " " (spawn_id exp6) match regular expression ".? ?duth-asw.grnet.gr.[0-9]+ #"? Gate "*duth-asw?grnet?gr* #"? gate=no


duth-asw.grnet.gr.1 # 
expect: does " \r\n\rduth-asw.grnet.gr.1 # " (spawn_id exp6) match regular expression ".? ?duth-asw.grnet.gr.[0-9]+ #"? Gate "*duth-asw?grnet?gr* #"? gate=yes re=yes
expect: set expect_out(0,string) "\rduth-asw.grnet.gr.1 #"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\n\rduth-asw.grnet.gr.1 #"
send: sending "show version\r" to { exp6 }
Gate keeper glob pattern for '+' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '^[^

 *]*.? ?duth-asw.grnet.gr.[0-9]+ #' is '*duth-asw?grnet?gr* #'. Activating booster.
Gate keeper glob pattern for '^[^

]*.? ?duth-asw.grnet.gr.[0-9]+ #.' is '*duth-asw?grnet?gr* #?'. Activating booster.
Gate keeper glob pattern for '^--More--[
]+' is '--More--*'. Activating booster.
Gate keeper glob pattern for '[^
]*[

]+' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '[^
]*Press <SPACE> to cont[^
]*' is '*Press <SPACE> to cont*'. Activating booster.
Gate keeper glob pattern for '^ *--More--[^

]*' is '*--More--*'. Activating booster.
Gate keeper glob pattern for '^<-+ More -+>[^

]*' is ''. Not usable, disabling the performance booster.

expect: does " " (spawn_id exp6) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no
"^[^\n\r *]*.? ?duth-asw.grnet.gr.[0-9]+ #"? Gate "*duth-asw?grnet?gr* #"? gate=no
"^[^\n\r]*.? ?duth-asw.grnet.gr.[0-9]+ #."? Gate "*duth-asw?grnet?gr* #?"? gate=no
"^--More--[\r\n]+"? Gate "--More--*"? gate=no
"[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? Gate "*Press <SPACE> to cont*"? gate=no
"^ *--More--[^\n\r]*"? Gate "*--More--*"? gate=no
"^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no

expect: does " disable clipaging\r\n\rduth-asw.grnet.gr.2 # " (spawn_id exp6) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no
"^[^\n\r *]*.? ?duth-asw.grnet.gr.[0-9]+ #"? Gate "*duth-asw?grnet?gr* #"? gate=yes re=no
"^[^\n\r]*.? ?duth-asw.grnet.gr.[0-9]+ #."? Gate "*duth-asw?grnet?gr* #?"? gate=yes re=no
"^--More--[\r\n]+"? Gate "--More--*"? gate=no
"[^\r\n]*[\n\r]+"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) " disable clipaging\r\n\r"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " disable clipaging\r\n\r"
 disable clipaging

expect: continuing expect

expect: does "duth-asw.grnet.gr.2 # " (spawn_id exp6) match regular expression "\u0008+"? (No Gate, RE only) gate=yes re=no
"^[^\n\r *]*.? ?duth-asw.grnet.gr.[0-9]+ #"? Gate "*duth-asw?grnet?gr* #"? gate=yes re=yes
expect: set expect_out(0,string) "duth-asw.grnet.gr.2 #"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "duth-asw.grnet.gr.2 #"
duth-asw.grnet.gr.2 # show version

Switch      : 800242-00-03 0839G-81096 Rev 3.0 BootROM: 1.0.5.5    IMG: 12.5.4.5  
XGM2-1      :

Image   : ExtremeXOS version 12.5.4.5 v1254b5 by release-manager
          on Tue Jun 28 10:10:40 PDT 2011
BootROM : 1.0.5.5
duth-asw.grnet.gr.3 # show memory


System Memory Information
-------------------------
 Total DRAM (KB): 262144
 System     (KB): 7476
 User       (KB): 122892
 Free       (KB): 131776

Memory Utilization Statistics
-----------------------------

show diag
 Process Name     Memory (KB)
-----------------------------
 aaa              2392            
 acl              2824            
 cfgmgr           2208            
 cli              34772           
 devmgr           2172            
 dirser           1520            
 dosprotect       1648            
 dot1ag           2288            
 eaps             2356            
 edp              2016            
 elrp             2040            
 elsm             1940            
 ems              3284            
 epm              2716            
 esrp             2348            
 ethoam           1996            
 etmon            3964            
 exacl            0               
 exdhcpsnoop      0               
 exdos            0               
 exfib            0               
 exosipv6         0               
 exosmc           0               
 exosnvram        0               
 exosq            0               
 exsflow          0               
 exsnoop          0               
 exvlan           0               
 fdb              3040            
 hal              8428            
 hclag            1980            
 idMgr            3420            
 ipSecurity       2564            
 ipfix            2072            
 lacp             1964            
 lldp             2264            
 mcmgr            3456            
 msgsrv           1404            
 netLogin         2308            
 netTools         2708            
 nettx            0               
 nodemgr          1676            
 poe              1980            
 polMgr           1788            
 rtmgr            3112            
 snmpMaster       3436            
 snmpSubagent     4492            
 stp              2792            
 telnetd          1984            
 tftpd            1560            
 thttpd           1904            
 vlan             3420            
 vmt              2200            
 vsm              2288            
 xmlc             1948            
 xmld             4536            
duth-asw.grnet.gr.4 # show diag

show switch
Diagnostics never ran
duth-asw.grnet.gr.5 # show switch
[snip]
tduth-asw.grnet.gr.9 # quit

Connection closed by foreign host.
exit


More information about the Rancid-discuss mailing list