The other settings force ssh, so that rancid will not fall back to insecure telnet)
JUNIPER SETUP CLIENT RUN OR SAVE PASSWORD
The star in the name means that it will try to use this username and password for all routers whose names end. ('nmmlab' is the username, 'lab-PW' is login password and 'lab-EN' is enable password used to login to your router. IF YOU ARE NOT USER RANCID NOW, do NOT continue! Create /var/lib/rancid/.cloginrc $ nano /var/lib/rancid/.cloginrcĪdd the following lines to the file: add method * You should see something similar (numbers may be different): uid=117(rancid) gid=123(rancid) groups=123(rancid) If you are not sure simply type "id" on the command line at any time.įrom a root prompt ("#"), switch identity to become the 'rancid' user: # su - rancid
Pay very close attention to what userid you are using during the rest of these exercises. We want to use Subversion for our Version Control System, and not CVS, so find the line with the parameter RCSSYS: RCSSYS=cvs export RCSSYSĪnd, change it to: RCSSYS=svn export RCSSYS (with no '#' at the front of line, and aligned to the left)įind the line with CVSROOT: CVSROOT=$BASEDIR/CVS export CVSROOTĪnd, change it to: CVSROOT=$BASEDIR/svn export CVSROOT #LIST_OF_GROUPS="sl joebobisp" export LIST_OF_GROUPSĪnd, underneath them add the following line: LIST_OF_GROUPS="routers" Save the file, then run: # newaliases Configure rancidĮdit /etc/rancid/nf # nano /etc/rancid/nfįind these lines in nf: # list of rancid groups # nano /etc/aliasesĪdd the following entries. We want them to be sent to the sysadm user instead and use the alias function for this. RANCID by default sends emails to the users rancid-groupname and rancid-admin-groupname. We have no data, so select and press ENTER to continue.Īdd an alias for the rancid user in /etc/aliases file
JUNIPER SETUP CLIENT RUN OR SAVE INSTALL
Install rancid itself: # apt install rancid If so, don't worry - the apt command will not reinstall them. Both these package may already be installed from prior exercises. In addition to Subversion we will specify to install telnet and the mutt email client. Now install the Subversion Version Control System: One person in your group should connect srv1 using ssh, and become root: $ sudo -s "rtrX>" or "mysql>") imply that you are executing commands on remote equipment, or within another program. Commands with more specific command lines (e.g.Commands preceded with "#" imply that you should be working as root.