[rancid] Re: Dell Switch Errors
Willie Bollinger
willie at qis.net
Wed Jun 23 16:29:01 UTC 2010
I added the path and it appears to be getting output now but I just got
an email that the switch cannot be successfully contacted
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 10.10.111.2.raw
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 g13
WriteTerm: description "MANAGEMENT INTERFACE TO DIAMOND4"
WriteTerm: exit
WriteTerm: interface ethernet g47
WriteTerm: description "INTERCONNECT TO DSW2-CC"
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
interface vlan 200 : <return>
WriteTerm: name management
WriteTerm: exit
WriteTerm: voice vlan oui-table add 0001e3 Siemens_AG_phone________
WriteTerm: 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
ip ssh server : <return>
WriteTerm: snmp-server community Dell_Network_Manager rw view DefaultSuper
WriteTerm: clock timezone -4
WriteTerm: clock summer-time recurring usa
WriteTerm: sntp client enable vlan 200
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
duplex full : <return>
WriteTerm: negotiation
WriteTerm: flow-control off
WriteTerm: mdix auto
WriteTerm: no back-pressure
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.
Done :
found_end = 1, clean_run = 0
10.10.111.2: End of run not found
end
rancid at staff$
The following routers have not been successfully contacted for
more than 4 hours.
-rw-r----- 1 rancid netadm 0 Jun 22 23:54 10.10.111.2
john heasley wrote:
> Wed, Jun 23, 2010 at 12:17:42PM -0400, Willie Bollinger:
>> This is what it outputs
>>
>>
>> $ ./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 ./drancid line 272.
>> sh: dlogin: not found
>
> you need to fix that; fix your path so that it includes the directory
> where dlogin is.
>
>> Done :
>> 10.10.111.2: missed cmd(s): show version,show running-config,show vlan
>> found_end = 0, clean_run = 0
>> 10.10.111.2: End of run not found
>> !
>> $ > >
>>
>>
>> john heasley wrote:
>>> Wed, Jun 23, 2010 at 12:01:54PM -0400, Willie Bollinger:
>>>> I exported it and then sent another email with the output but im not
>>>> sure of the exact syntax of the rancid command
>>> I didnt receive/see the mail.
>>>
>>> i think the dell script is called drancid. if so, drancid -dl 10.10.111.2
>>>> john heasley wrote:
>>>>> Wed, Jun 23, 2010 at 12:55:04AM -0400, Willie Bollinger:
>>>>>> Where do I set NOPIPE=YES at?
>>>>> in your shell environment; you also need to export it, in case you
>>>>> didnt know that.
>>>>>
>>>>>> john heasley wrote:
>>>>>>> Wed, Jun 23, 2010 at 12:47:37AM -0400, Willie Bollinger:
>>>>>>>> From what I can see the script does a show version, show
>>>>>>>> vlan, and show running-config and all of these work properly
>>>>>>>> when I telnet into the switch and run them manually.
>>>>>>> set NOPIPE=YES and use the rancid script with -d (hopefully the author
>>>>>>> maintained that) so that you get a .raw file and log of commands
>>>>>>> recognized.
>>>>>>>
>>>>>>>> Corey Chandler wrote:
>>>>>>>>> On Jun 22, 2010, at 9:26 PM, Willie Bollinger wrote:
>>>>>>>>>
>>>>>>>>>> rancid at staff$ ./dlogin -autoenable -c "show run" -f ../.cloginrc 10.10.111.2
>>>>>>>>>> 10.10.111.2
>>>>>>>>>> spawn telnet 10.10.111.2
>>>>>>>>>> Trying 10.10.111.2...
>>>>>>>>>> Connected to 10.10.111.2.
>>>>>>>>>> Escape character is '^]'.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> User Name:rancid
>>>>>>>>>> Password:*******
>>>>>>>>>>
>>>>>>>>>> dsw1-cc#
>>>>>>>>>> dsw1-cc# show run
>>>>>>>>>> port jumbo-frame
>>>>>>>>>> interface ethernet g48
>>>>>>>>>> switchport mode trunk
>>>>>>>>>> exit
>>>>>>>>>> vlan database
>>>>>>>>>>
>>>>>>>>>> <snip>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Any input would be appreciated
>>>>>>>>> I assume this works when you telnet in and run these
>>>>>>>>> commands. What you might end up doing is running a packet
>>>>>>>>> capture via wireshark / tcpdump, and compare doing it by
>>>>>>>>> hand to your clogin command; it may be an improper newline
>>>>>>>>> or something simple like that.
>>>>>>>>>
>>>>>>>> --
>>>>>>>> --------------------------------------------------------------------------
>>>>>>>> Willie Bollinger | Quantum Internet and Telecommunications
>>>>>>>> 410-239-6920 | 2975B Manchester Rd., Manchester, MD 21102
>>>>>>>> --------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>> --------------------------------------------------------------------------
>>>> --
>>>> --------------------------------------------------------------------------
>>>> Willie Bollinger | Quantum Internet and Telecommunications
>>>> 410-239-6920 | 2975B Manchester Rd., Manchester, MD 21102
>>>> --------------------------------------------------------------------------
>> --
>> --------------------------------------------------------------------------
>> Willie Bollinger | Quantum Internet and Telecommunications
>> 410-239-6920 | 2975B Manchester Rd., Manchester, MD 21102
>> --------------------------------------------------------------------------
--
--------------------------------------------------------------------------
Willie Bollinger | Quantum Internet and Telecommunications
410-239-6920 | 2975B Manchester Rd., Manchester, MD 21102
--------------------------------------------------------------------------
More information about the Rancid-discuss
mailing list