Discussion:
[rancid] System Up Time & Dell
JC
2015-05-12 16:54:08 UTC
Permalink
Hi Everyone,

I know this has been talked about before but I'm still having the issue with Dell PowerConnects and Up Time triggering diffs.

I checked the srancid file and it does have the correct syntax:
/ Up Time/i && next;

I'm a little confused as to what login file gets called out when rancid runs. Currently I have ukbswid09 set to SMC type and it is pulling the config.

$./rancid -d -t smc ukbswid09
loadtype: device type smc
loadtype: found device type smc in /usr/local/rancid/etc/rancid.types.base
executing hlogin -t 90 -c"" ukbswid09
inloop is not configured for device type smc at ./rancid line 126.
write(spawn_id=1): broken pipe
while executing
"send_user "$router\n""
("foreach" body line 3)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"

# device timeout
set timeout [find t..."
(file "/usr/local/rancid/bin/hlogin" line 632)


$ ./rancid -d -t dell ukbswid09
loadtype: device type dell
loadtype: found device type dell in /usr/local/rancid/etc/rancid.types.base
executing dllogin -t 300 -c"show switch;show config current_config" ukbswid09
HIT COMMAND:UKBSWID09-CH2-B2#show switch
In GetSystem: UKBSWID09-CH2-B2#show switch
HIT COMMAND:UKBSWID09-CH2-B2#show config current_config
In GetConf: UKBSWID09-CH2-B2#show config current_config
ukbswid09: End of run not found
ukbswid09: End of run not found
% Invalid input detected at '^' marker.

Understating how login files get called will hopefully make me more self sufficient and not need to post questions to the board.

Thanks,

-JC
JC
2015-05-16 02:26:32 UTC
Permalink
I've gotten a little further in my hopes of getting these Dell powerconnect switches backed up w/o the up time creating diffs each run.

I added the rancid.types.conf with what's below.
test;login;dlogin
test;module;drancid
test;inloop;ios::inloop
test;command;ShowVersion;show version

When I run the command below it generates the following errors.
[***@ALVMANL01 etc]$ /usr/local/rancid/bin/rancid -d -t test ukbswid05
loadtype: device type test
loadtype: found device type test in /usr/local/rancid/etc/rancid.types.conf
ukbswid05: missed cmd(s): show system,show vlan,show version,show running-config
found_end = 0, clean_run = 0
ukbswid05: End of run not found
!
write(spawn_id=1): broken pipe
while executing
"send_user "$router\n""
("foreach" body line 3)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"

# device timeout
set timeout [find t..."
(file "/usr/local/rancid/bin/dlogin" line 509)
ukbswid05: missed cmd(s): all commands
ukbswid05: End of run not found

Am I on the right path or even more screwed up than before?

Thanks for the look.

-John

Loading...