[rancid] Re: Dell Switch Errors

Willie Bollinger willie at qis.net
Mon Jul 5 15:31:14 UTC 2010


I removed the $ from the below regex and this is what I am getting now. 
Its still not writing out the config



rancid at staff$ drancid -dl 10.10.111.2
executing dlogin -t 90 -c"show version;show vlan;show running-config" 
10.10.111.2
executing dlogin -t 90 -c"show version;show vlan;show running-config" 
10.10.111.2
opened network stream from 10.10.111.2 if (1) at 
/home2/rancid/bin/drancid line 272.
PROMPT MATCH: dsw1-cc#
HIT COMMAND:dsw1-cc#  show version
     In ShowVersion: dsw1-cc#  show version
SW version    2.0.0.35 ( date  27-Jan-2009 time  18:13:34 )
ShowVersion: Boot version    2.0.0.0 ( date  12-Nov-2008 time  12:56:52 )
ShowVersion: HW version    00.00.02
ShowVersion: dsw1-cc# show vlan
FOUND PROMPT: dsw1-cc#
HIT COMMAND:dsw1-cc# show vlan
     In ShowVLAN: dsw1-cc# show vlan
ShowVLAN:
ShowVLAN: Vlan       Name                   Ports                Type 
   Authorization
ShowVLAN: ---- ----------------- --------------------------- 
------------ -------------
ShowVLAN:  1           1            g(1-12,14-47),ch(1-8)       other 
     Required
ShowVLAN: 200     management              g(13,48)            permanent 
     Required
ShowVLAN:
ShowVLAN: dsw1-cc# show running-config
HIT COMMAND:dsw1-cc# show running-config
     In WriteTerm: dsw1-cc# show running-config
interface ethernet g1
WriteTerm: description "CIRRUS PORT 3-A"
WriteTerm: exit
WriteTerm: interface ethernet g2
WriteTerm: description "CIRRUS PORT 4-A"
WriteTerm: exit
WriteTerm: interface ethernet g5
WriteTerm: description "DIAMOND4 PORT 8-A"
WriteTerm: exit
WriteTerm: interface ethernet g6
WriteTerm: description "DIAMOND4 PORT 9-A"
WriteTerm: exit
WriteTerm: interface ethernet g7
WriteTerm: description "DIAMOND5 PORT 8-A"
WriteTerm: exit
WriteTerm: interface ethernet g8
WriteTerm: description "DIAMOND5 PORT 9-A"
WriteTerm: exit
WriteTerm: interface ethernet g13
WriteTerm: description "MANAGEMENT INTERFACE TO DIAMOND4"
WriteTerm: exit
WriteTerm: interface ethernet g47
description "INTERCONNECT TO DSW2-CC"       : <return>
WriteTerm: exit
WriteTerm: interface ethernet g48
WriteTerm: description "INTERCONNECT TO CSW1-CC"
WriteTerm: exit
WriteTerm: port jumbo-frame
WriteTerm: interface range ethernet g(47-48)
WriteTerm: switchport mode trunk
WriteTerm: exit
WriteTerm: vlan database
WriteTerm: vlan 200
WriteTerm: exit
WriteTerm: interface ethernet g13
WriteTerm: switchport access vlan 200
WriteTerm: exit
WriteTerm: interface ethernet g48
WriteTerm: switchport trunk native vlan 200
WriteTerm: exit
WriteTerm: interface vlan 200
WriteTerm: name management
WriteTerm: exit
WriteTerm: voice vlan oui-table add 0001e3 Siemens_AG_phone________
voice vlan oui-table add 00036b Cisco_phone_____________
WriteTerm: voice vlan oui-table add 00096e Avaya___________________
WriteTerm: voice vlan oui-table add 000fe2 H3C_Aolynk______________
WriteTerm: voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
WriteTerm: voice vlan oui-table add 00d01e Pingtel_phone___________
WriteTerm: voice vlan oui-table add 00e075 Polycom/Veritel_phone___
WriteTerm: voice vlan oui-table add 00e0bb 3Com_phone______________
WriteTerm: iscsi target port 860 address 0.0.0.0
WriteTerm: iscsi target port 3260 address 0.0.0.0
WriteTerm: interface vlan 200
WriteTerm: ip address 10.10.111.2 255.255.255.0
WriteTerm: exit
WriteTerm: ip default-gateway 10.10.111.1
WriteTerm: hostname dsw1-cc
<user and passes snipped>
WriteTerm: ip ssh server
WriteTerm: snmp-server community Dell_Network_Manager rw view DefaultSuper
WriteTerm: clock timezone -4
WriteTerm: clock summer-time recurring usa
sntp client enable vlan 200                 : <return>
WriteTerm: clock source sntp
WriteTerm: sntp server 209.150.96.19 poll
WriteTerm:
WriteTerm:
WriteTerm:
WriteTerm:
WriteTerm:
WriteTerm:
WriteTerm: Default settings:
WriteTerm: Service tag: 9QJQFH1
WriteTerm:
WriteTerm: SW version 2.0.0.35 (date  27-Jan-2009 time  18:13:34)
WriteTerm:
WriteTerm: Gigabit Ethernet Ports
WriteTerm: =============================
WriteTerm: no shutdown
WriteTerm: speed 1000
WriteTerm: duplex full
WriteTerm: negotiation
WriteTerm: flow-control off
WriteTerm: mdix auto
no back-pressure                            : <return>
WriteTerm:
WriteTerm: interface vlan 1
WriteTerm: interface port-channel 1 - 8
WriteTerm:
WriteTerm: spanning-tree
WriteTerm: spanning-tree mode STP
WriteTerm:
WriteTerm: qos basic
WriteTerm: qos trust cos
WriteTerm: dsw1-cc#exitConnection to 10.10.111.2 closed by foreign host.
left WriteTerm on: dsw1-cc#exitConnection to 10.10.111.2 closed by 
foreign host.
Done :
rancid at staff$


Jeremy Singletary wrote:
> On 06/30/10, john heasley <heas at shrubbery.net> said:
>> Wed, Jun 30, 2010 at 01:08:16PM -0700, Jeremy Singletary:
>>> On 06/23/10, Willie Bollinger <willie at qis.net> said:
>>>> WriteTerm: qos basic
>>>> WriteTerm: qos trust cos
>>>> WriteTerm: dsw1-cc#exitConnection to 10.10.111.2 closed by foreign host.
>>> The line above leads me to believe that the regex is failing because the
>>> regex expects the last character on the line to be the t in exit.
>>>
>>> drancid:
>>> if (/$prompt\s?exit$/) { warn "left WriteTerm on: $_"; $clean_run=1;last; }
>>>
>>> also in drancid:
>>> if (/[>#]\s?exit$/) {
>>>     $clean_run=1;
>>>     last;
>>> }
>>>
>>> Try removing the $ after the word exit in one or both of those regex conditions.
>> you should try it like the extreme script (xrancid) to be safer.
> 
> Thanks, I'll copy that regex from xrancid.
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-- 
--------------------------------------------------------------------------
   Willie Bollinger     | Quantum Internet and Telecommunications
     410-239-6920       | 2975B Manchester Rd., Manchester, MD  21102
--------------------------------------------------------------------------


More information about the Rancid-discuss mailing list