We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
Hi, could you share rancid backup huawei swtich ?
Hello Has anyone configured rancid looking glass ?
Hi , it was looking like rancid change settings to make a single shipment notification email every 24 hours. I use RANCID for all my network device config backups. For non critical networks, or execs that wanted to know what was going on it the network .
Greetings and thank you
Hi, if you documented your installation could you please provide it to me. Thank you
A quick question, I have a tftp server - do you know if there are any problems having rancid and tftp running side by side? (they don't need to integrate with each other)
Many thanks
No you shouldn't run into any problems when having a tftp server on the same box as Rancid.
Seems simple enough. I'm by no means an expert at either Ubuntu or rancid. I was told to install using the tarball method (what do I know). That version is rancid3.1, on the latest Ubuntu Server. What you show is fairly easy, however, I seems to just get empty files I the logs which are in /usr/local/rancid/var/logs.
My rancid user isn't allowed to access the edit mode (Juniper), but can run show commands from the operational mode... Could this be the reason?
From Rancid 3.0 and later the entries in router.db should be separated by semicolon. I.e:
sth-rtr-1;cisco;up
Yeah, I will try to explore the autocommand feature but setting up TACAS might be an issue for testing.
I am trying to go through the /usr/lib/rancid/bin/clogin file to edit some parameters that may be causing the -c or -x command to exit connection. I am not sure if you have explored that option.
Additionally, I have read a few posts that point to modifying the /usr/lib/rancid/bin/rancid-fe file where speicifc commands can be defined.
Thanks.
Hi,
As you mention:
" clogin -c "show processes cpu" bos-rtr-1
Would login to the Boston router and execute the show processes cpu command and then logout of the router. "
Similarly, it logs me out of the router as soon as the command is executed. My question is how can I stay logged in to the router after executing a command ? Is this an issue with clogin or my OS (Linux Mint)
Here is the output I get after executing a command with clogin:
test-server@user ~ $ clogin -c "show clock" 10.250.10.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
DO NOT LOGIN
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
User Access Verification
Password:
Cisco-R1>enable
Password:
Cisco-R1#
Cisco-R1#terminal length 0
Cisco-R1#terminal width 132
Cisco-R1#show clock
15:22:23.343 CST Tue Oct 14 2014
Cisco-R1#exit
Connection closed by foreign host.
It's just how the -c argument works. If you don't use -c and only run "clogin 10.250.10.1" you will be logged into the router it won't log out. However in this scenario you would have to issue the command "show clock" by yourself.
Thanks a lot for your reply.
Yes, I tried that without using -c, and it did not log me out. However, I would have liked to run a few commands as soon as I autolog in such as, "wr mem", or copy tftp etc, to make a back up of the config before making any configuration chages.
I tried using -x and a path pointing to the config file with the commands, but it was the same difference. As soon as it executes the list of commands in the file, it logs me out.
Please let me know if you can think of any other options.
Thanks.
Well if you are running rancid with a scheduled job you will have a backed up configuration. Though with masked passwords. You can also schedule jobs with other commands using -c or -x to copy to tftp at a regular interval. I think I would handle it in that way with scheduled jobs. If you only need to run one command and you're using Cisco IOS you can take a look at the autocommand feature. You can set autocommand under a vty line, or through Tacacs, that way a specific command will automatically be run each time you login. You might also want to explore the archive feature. Another way to solve it would be to just create a wrapper script which calls clogin twice. The first time would be to issue your commands and then use clogin again to login to make changes.However the user experience won't be great as it will take longer time to login twice.
Hi, we are using RANCID to fetch config from alot of network devices. But we do have a device that is not able to display config with show-commands, but it is possible to dump it to a TFTP-server. Would it be easy to create a script that uses cloginrc to logon the the device and issue a command to dump the config file to a TFTP-server?