User Tools

Site Tools


config

Netflow using NFSEN

install apache

done

Modify apache

/etc/httpd/conf/httpd.conf copied from doon, only modification searching for 'doon' and changing to 'devdoon' /etc/krb5.conf and /etc/ldap/openldap.conf copied across, msktutil set up.

add a directory to the apache setup

You will need to modify the original configuration file. Add the following. In this example, I set the websites to be stored in an alternate directory. By the way, there is already a group named it which includes an account for the web developers.

/etc/httpd/conf.d/suggestedNFSEN.conf
  
  DocumentRoot "/data/websites/test/server"
  ErrorLog syslog
  LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" commonvhost
  CustomLog "|/usr/bin/logger" commonvhost
  ErrorDocument 404 /index.html
  NameVirtualHost *:80
  NameVirtualHost *:443
  <VirtualHost *:80>
          ServerName server.test.com
          Redirect / https://server.test.com/
  </VirtualHost>
  <VirtualHost *:443>
          ServerName server.test.com
          ServerAdmin root@localhost
          DocumentRoot /data/websites/test/server
  </VirtualHost>

My Version

/etc/httpd/conf.d/nfsen.conf
alias "/nfsen/" "/var/www/nfsen/"
<Directory "/var/www/nfsen">
    allow from all
</Directory>

Stuff I haven't been through yet

# mkdir -p /var/www/nfsen

Create an index file.

index.html
<html>
<head>
<title>Test: Network monitoring</title>
</head>
<body>
<a href="https://server.test.com/nfsen/">Netflow information - NfSen</a><br>
</body>
</html>

suggested changes to php.ini

php.ini
  error_reporting  =  E_ALL & ~E_NOTICE
  log_errors_max_len = 0
  error_log = /data/logs/php/errors.log

Install the perl package. The perl version has to be at least 5.6.0.

yum install perl
/usr/bin/perl -v | grep -i built

Install the following perl modules.

yum install perl-TimeDate perl-Pod-Escapes perl-Pod-Simple perl-Test-Pod perl-MailTools perl-Socket6

yum install xorg-x11-fonts-Type1
yum install ruby.x86_64

Install the rrdtool packages.

yum install libdbi.x86_64 lua mysql-server net-snmp-utils 
/sbin/chkconfig mysqld off
mkdir nfsenBuild
cd ~nfsenBuild/
wget http://pkgs.repoforge.org/rrdtool/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/rrdtool/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/rrdtool/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
rpm -Uvh perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm

Download, compile and install the nfdump application. It can be downloaded at http://nfdump.sourceforge.net/.

wget http://downloads.sourceforge.net/project/nfdump/stable/nfdump-1.6.6/nfdump-1.6.6.tar.gz
tar -zxvf nfdump-1.6.6.tar.gz
cd nfdump-1.6.6/
./configure --enable-nfprofile
make
make install
make clean
cd ..

NfSen installation

Dowload the nfsen application and extract it. It can be downloaded at http://nfsen.sourceforge.net/.

wget http://downloads.sourceforge.net/project/nfsen/stable/nfsen-1.3.6p1/nfsen-1.3.6p1.tar.gz
tar -zxvf nfsen-1.3.6p1.tar.gz
cd nfsen-1.3.6p1/

You can modify the configuration file. Have the following.

nfsen.conf
  $BASEDIR = "/usr/local";
  $HTMLDIR    = "/var/www/nfsen/";
  $VARDIR="/var/nfsen";
  $CONFDIR="/etc/"
  $PROFILESTATDIR="${VARDIR}/profiles-stat";
  $PROFILEDATADIR="${VARDIR}/profiles-data";
  $USER    = "nfsen";
  $WWWUSER  = "apache";
  $WWWGROUP = "apache";
  %sources = (
      'Sydney_Router_1'   => { 'port' => '2055', 'IP' => '10.20.60.254', 'col' => '#ff0000', 'type' => 'netflow' },
      'Sydney_Riverbed_1'   => { 'port' => '2055', 'IP' => '10.20.60.253', 'col' => '#00ff00', 'type' => 'netflow'  },
  );
  $MAIL_FROM   = 'noreply@test.com';
  $SMTP_SERVER = 'mail.test.com';
cp etc/nfsen-dist.conf etc/nfsen.conf
vi etc/nfsen.conf
mkdir -p /var/local/nfsen

Create a user named nfsen.

sudo /usr/sbin/useradd -c 'NfSen' -d / -g apache -M -s /sbin/nologin nfsen

Install the nfsen application.

sudo ./install.pl etc/nfsen.conf
cd ~

Service configuration

Find where the nfsen application was installed to.

grep -E "(\$BASEDIR|\$BINDIR)" nfsen/nfsen-$ver/etc/nfsen.conf | grep -v ^#

$BASEDIR = “/usr/local”; $BINDIR=“${BASEDIR}/bin”;

ls -1 /usr/local/bin/nfsen

/usr/local/bin/nfsen

Enable the nfsen service so that it will start when the system starts up. Here is a script I created to start and stop the nfsen daemon.

/etc/init.d/nfsen
#!/bin/bash
#
# nfsen - Startup script for the nfsen - Netflow collection and viewing - system
#
# chkconfig: - 50 50
# description: nfsen
 
DAEMON=/usr/local/bin/nfsen
case "$1" in
   start)
      $DAEMON start
      ;;
   stop)
      $DAEMON stop
      ;;
   status)
      $DAEMON status
      ;;
   restart)
      $DAEMON stop
      $DAEMON start
      ;;
   *)
      echo "Usage: $0 {start|stop|status|restart}"
      exit 1
      ;;
esac
vi /etc/rc.d/init.d/nfsen
chmod 755 /etc/rc.d/init.d/nfsen
/sbin/chkconfig --add nfsen
/sbin/chkconfig nfsen on
/sbin/chkconfig --list nfsen

nfsen 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Find where the configuration was installed to.

grep -E "(\$BASEDIR|\$CONFDIR)" nfsen/nfsen-$ver/etc/nfsen.conf | grep -v ^#

$BASEDIR = “/usr/local”; $CONFDIR=“${BASEDIR}/etc”;

ls -1 /usr/local/etc/nfsen.conf

/usr/local/etc/nfsen.conf

You will need to modify the original configuration file. Have the following.

cp /usr/local/etc/nfsen.conf /usr/local/etc/nfsen.conf.example
vi /usr/local/etc/nfsen.conf
mkdir /data/logs/nfcapd/
mkdir /data/logs/nfsen/
chown -R root:it /data/logs/nfcapd/
chown -R root:it /data/logs/nfsen/

You will need to create a configuration file for nfsen used by apache. Have the following.

Alias /nfsen/ "/data/websites/test/server/nfsen/"
<Directory "/data/websites/test/server/nfsen">
    AuthType Basic
    AuthName "Restricted"
    AuthUserFile /etc/httpd/conf/htaccounts
    Require user Administrator
    DirectoryIndex nfsen.php
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
rpm -ql httpd-* | grep conf.d

/etc/httpd/conf.d /etc/httpd/conf.d/README /etc/httpd/conf.d/proxy_ajp.conf /etc/httpd/conf.d/welcome.conf

vi /etc/httpd/conf.d/nfsen.conf

Create a user account using htpasswd that will be allowed to view the netflow information.

rpm -ql httpd-* | grep htpasswd

/usr/bin/htpasswd /usr/share/man/man1/htpasswd.1.gz

/usr/bin/htpasswd -c -s /etc/httpd/conf/htaccounts Administrator

New password: Re-type new password: Adding password for user Administrator

Copy the nfsen web directory and set ownership and permissions. By the way, there is already a group named it which includes an account for the web developers.

grep "\$HTMLDIR" nfsen/nfsen-$ver/etc/nfsen.conf

$HTMLDIR = “/var/www/html/nfsen/”;

rm -fr nfsen/
cp -Rp /var/www/nfsen/ /data/websites/test/server/nfsen/
chown -R apache:it /data/websites/test/server/nfsen/
chmod -R 774 /data/websites/test/server/nfsen/

You will need to configure SELinux appropriately. SELinux status can be found by running sestatus.

/usr/sbin/sestatus | grep status:

SELinux status: enabled

Before starting the server, make sure that tcp ports 80, 443 and udp ports 9991, 9992, and 9993 are open in case you are running firewall software. Here are some sample rules.

  1. A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
  2. A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 443 -j ACCEPT
  3. A RH-Firewall-1-INPUT -p udp -m udp –dport 9991 -j ACCEPT
  4. A RH-Firewall-1-INPUT -p udp -m udp –dport 9992 -j ACCEPT
  5. A RH-Firewall-1-INPUT -p udp -m udp –dport 9993 -j ACCEPT

/sbin/service iptables stop Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ]

cp /etc/sysconfig/iptables /etc/sysconfig/iptables.previous
vi /etc/sysconfig/iptables
/sbin/service iptables start

Applying iptables firewall rules: [ OK ] Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]

Start the apache service.

 /sbin/service httpd start
   Starting httpd: [  OK  ]

Start the nfsen service.

/sbin/service nfsen start
  Starting nfcapd:(core_router_location1)[12989] (core_router_location3)[12992] 
  (core_router_location2)[12995] 
  Starting nfsend.
/sbin/service nfsen status
  NfSen version: version
  NfSen status:
  Collector for (core_router_location1) port 9991 is running [2993].
  Collector for (core_router_location3) port 9993 is running [2996].
  Collector for (core_router_location2) port 9992 is running [2999].
  nfsen daemon:  pid: [3001] is running.

View status on website

Navigate your web browser to http://devdoon/test/ . Click on the link for Netflow information - NfSen. After you login, you will see a screen showing a summary of the netflow data.

Service check

Reboot your computer. Log in like normal and check to see that the httpd and nfsen services are running. That's it, now you have nfsen running in Red Hat Enterprise Linux.

/sbin/shutdown -r now
/sbin/service httpd status
  httpd (pid  3106) is running...
/sbin/service nfsen status
  NfSen version: version
  NfSen status:
  Collector for (core_router_location1) port 9991 is running [2993].
  Collector for (core_router_location3) port 9993 is running [2996].
  Collector for (core_router_location2) port 9992 is running [2999].
  nfsen daemon:  pid: [3001] is running.

The logs of the install

Using username "carmom".



    You must be authorised to use this computer. (ITSA v1.8)


    Continuing to logon means you expressly consent to monitoring of use
    and agree to comply with the policy on "The proper use of ITSA.s IT
    facilities, including email and internet".  If monitoring reveals
    evidence of misuse, this evidence can be used to support action taken
    to investigate a breach of the APS Code of Conduct, and/or in a court
    of law.





Access denied
carmom@doon's password:
Access denied
carmom@doon's password:
Last login: Fri May 18 09:41:27 2012 from 10.20.51.32

(carmom@doon)-(0)-(09:44 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/
Display all 253 possibilities? (y or n)
abrt/                                 mke2fs.conf
acpi/                                 modprobe.d/
adjtime                               motd
aliases                               mtab
aliases.db                            mtools.conf
aliases.orig                          my.cnf
alsa/                                 nanorc
alternatives/                         netconfig
anacrontab                            NetworkManager/
asound.conf                           networks
at.deny                               nfsmount.conf
audisp/                               nsswitch.conf
audit/                                ntp/
autofs_ldap_auth.conf                 ntp.conf
auto.master                           ntp.conf.orig
auto.misc                             oddjob/
auto.net                              oddjobd.conf
auto.smb                              oddjobd.conf.d/
avahi/                                openldap/
bash_completion.d/                    opt/
bashrc                                PackageKit/
blkid/                                pam.d/
bonobo-activation/                    pango/

(carmom@doon)-(0)-(09:44 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/tac_plus.conf

(carmom@doon)-(0)-(09:48 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/
Display all 253 possibilities? (y or n)

(carmom@doon)-(0)-(09:48 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/t
tac_plus.conf  terminfo/

(carmom@doon)-(0)-(09:48 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/
Display all 253 possibilities? (y or n)
abrt/                                 mke2fs.conf
acpi/                                 modprobe.d/
adjtime                               motd
aliases                               mtab
aliases.db                            mtools.conf
aliases.orig                          my.cnf
alsa/                                 nanorc
alternatives/                         netconfig
anacrontab                            NetworkManager/
asound.conf                           networks
at.deny                               nfsmount.conf
audisp/                               nsswitch.conf
audit/                                ntp/
autofs_ldap_auth.conf                 ntp.conf
auto.master                           ntp.conf.orig
auto.misc                             oddjob/
auto.net                              oddjobd.conf
auto.smb                              oddjobd.conf.d/
avahi/                                openldap/
bash_completion.d/                    opt/
bashrc                                PackageKit/
blkid/                                pam.d/
bonobo-activation/                    pango/

(carmom@doon)-(0)-(09:48 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/tac_plus.conf

(carmom@doon)-(0)-(09:48 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/do_auth.ini

(carmom@doon)-(0)-(09:49 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/tac_plus.conf

(carmom@doon)-(0)-(09:49 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> duso vim /etc/tac_plus.conf
-bash: duso: command not found

(carmom@doon)-(0)-(09:49 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> sudo
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u
            user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
            [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...

(carmom@doon)-(0)-(09:49 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> sudo vim /etc/tac_plus.conf

(carmom@doon)-(0)-(09:50 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> /etc/init.d/tac_plus restart
rm: cannot remove `/var/run/tac_plus.pid': Permission deniedFAILED]

tac_plus is already running :

(carmom@doon)-(0)-(09:50 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> sudo /etc/init.d/tac_plus restart
Shutting down tac_plus:                                    [  OK  ]
Starting tac_plus :                                        [  OK  ]

(carmom@doon)-(0)-(09:50 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/lo
local/      lock/       log/        lost+found/

(carmom@doon)-(0)-(09:50 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/ta
tac/          tac_plus.log  tallylog

(carmom@doon)-(0)-(09:50 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac_plus.log
Mon Apr 16 18:06:25 2012 [25413]: tac_plus server F4.0.4.25 starting
Mon Apr 16 18:06:25 2012 [25413]: uid=0 euid=0 gid=0 egid=0 s=4
Mon Apr 16 18:06:29 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:29 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
Mon Apr 16 18:06:35 2012 [25413]: login query for 'carmom' tty4 from 10.20.55.25                                                                                                              4 accepted
Mon Apr 16 18:06:35 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:35 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
Mon Apr 16 18:06:35 2012 [25413]: authorization query for 'carmom' tty4 from 10.                                                                                                              20.55.254 accepted
Mon Apr 16 18:06:35 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:35 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
^C

(carmom@doon)-(0)-(10:09 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/
anaconda.ifcfg.log    gdm/                  samba/
anaconda.log          httpd/                secure
anaconda.program.log  lastlog               secure-20120429
anaconda.storage.log  maillog               secure-20120506
anaconda.syslog       maillog-20120429      secure-20120513
anaconda.xlog         maillog-20120506      secure-20120520
anaconda.yum.log      maillog-20120513      spice-vdagentd/
audit/                maillog-20120520      spooler
boot.log              mcelog                spooler-20120429
btmp                  messages              spooler-20120506
btmp-20120501         messages-20120429     spooler-20120513
ConsoleKit/           messages-20120506     spooler-20120520
cron                  messages-20120513     sssd/
cron-20120429         messages-20120520     tac/
cron-20120506         msktutil              tac_plus.log
cron-20120513         ntpstats/             tallylog
cron-20120520         pm-powersave.log      wpa_supplicant.log
cups/                 ppp/                  wtmp
dmesg                 prelink/              Xorg.0.log
dmesg.old             rancid/               Xorg.0.log.old
do_auth.log           rhsm/                 Xorg.9.log
dracut.log            sa/                   yum.log

(carmom@doon)-(0)-(10:09 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/ta
tac/          tac_plus.log  tallylog

(carmom@doon)-(0)-(10:09 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac
tac/          tac_plus.log

(carmom@doon)-(0)-(10:09 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac/tac_plus.acct
May 21 00:04:37 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31227   timezone=UTC    service=shell   start_time=1337558677   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 00:04:43 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31228   timezone=UTC    service=shell   start_time=1337558683   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 00:04:43 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31212   timezone=UTC    service=shell   start_time=1337558656   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=27 stop_time=1337558683
May 21 00:04:45 10.20.52.243    rancid  0       10.20.55.230    start   task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558685   service=none
May 21 00:04:46 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558686   cmd=terminal length 0 (SUCCESS)s                                                                                                              ervice=none
May 21 00:04:46 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558686   cmd=terminal width 132 (SUCCESS)                                                                                                              service=none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    start   task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   service=none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   cmd=echo (SUCCESS)      service=                                                                                                              none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   stop_time=1337558687    service=                                                                                                              none
May 21 00:04:50 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558690   stop_time=1337558690    service=                                                                                                              none
q^[[A^C

(carmom@doon)-(0)-(10:09 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> cat  /var/log/tac/tac_plus.acct | grep 10.20.50.253

(carmom@doon)-(0)-(10:10 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac_plus.log
Mon Apr 16 18:06:25 2012 [25413]: tac_plus server F4.0.4.25 starting
Mon Apr 16 18:06:25 2012 [25413]: uid=0 euid=0 gid=0 egid=0 s=4
Mon Apr 16 18:06:29 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:29 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
Mon Apr 16 18:06:35 2012 [25413]: login query for 'carmom' tty4 from 10.20.55.25                                                                                                              4 accepted
Mon Apr 16 18:06:35 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:35 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
Mon Apr 16 18:06:35 2012 [25413]: authorization query for 'carmom' tty4 from 10.                                                                                                              20.55.254 accepted
Mon Apr 16 18:06:35 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:35 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
^C

(carmom@doon)-(0)-(10:12 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv00
                      5.0G  2.7G  2.1G  57% /
tmpfs                1004M     0 1004M   0% /dev/shm
/dev/sda1             248M   32M  204M  14% /boot
/dev/mapper/vg00-lv05
                      2.8G   80M  2.5G   4% /home
/dev/mapper/vg00-lv03
                      3.0G   72M  2.8G   3% /opt
/dev/mapper/vg00-lv04
                      2.0G   68M  1.9G   4% /tmp
/dev/mapper/vg00-lv02
                      3.0G  270M  2.6G  10% /var
/dev/sr0              3.4G  3.4G     0 100% /mnt

(carmom@doon)-(0)-(10:12 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/
Display all 253 possibilities? (y or n)

(carmom@doon)-(0)-(10:12 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/tac_plus.conf

(carmom@doon)-(0)-(10:12 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/init.d/tac_plus

(carmom@doon)-(0)-(10:13 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> sudo  /etc/init.d/tac_plus
Usage: tac_plus {start|stop|status|restart|reload|test}

(carmom@doon)-(0)-(10:13 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> sudo vim  /etc/init.d/tac_plus

(carmom@doon)-(0)-(10:13 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> sudo /etc/init.d/tac_plus restart
Shutting down tac_plus:                                    [  OK  ]
Starting tac_plus with debug level 16 :                    [  OK  ]

(carmom@doon)-(0)-(10:14 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac_plus.log
Mon Apr 16 18:06:35 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:35 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
Mon Apr 16 18:06:35 2012 [25413]: authorization query for 'carmom' tty4 from 10.                                                                                                              20.55.254 accepted
Mon Apr 16 18:06:35 2012 [25413]: session.peerip is 10.20.55.254
Mon Apr 16 18:06:35 2012 [25413]: connect from 10.20.55.254 [10.20.55.254]
Mon May 21 10:14:05 2012 [10937]: Reading config
Mon May 21 10:14:05 2012 [10937]: Version F4.0.4.25 Initialized 1
Mon May 21 10:14:05 2012 [10937]: tac_plus server F4.0.4.25 starting
Mon May 21 10:14:05 2012 [10938]: Backgrounded
Mon May 21 10:14:05 2012 [10941]: uid=0 euid=0 gid=0 egid=0 s=0
Mon May 21 10:14:27 2012 [10941]: session.peerip is 10.20.50.253
Mon May 21 10:14:27 2012 [10950]: connect from 10.20.50.253 [10.20.50.253]
Mon May 21 10:14:27 2012 [10950]: login query for 'carmom' ssh from 10.20.50.253                                                                                                               accepted
Mon May 21 10:14:27 2012 [10941]: session.peerip is 10.20.50.253
Mon May 21 10:14:27 2012 [10954]: connect from 10.20.50.253 [10.20.50.253]
Mon May 21 10:14:27 2012 [10954]: authorization query for 'carmom' ssh from 10.2                                                                                                              0.50.253 accepted
^C

(carmom@doon)-(0)-(10:14 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f
.bash_history    buildTemp/       .ssh/            .vimrc
.bash_profile    .lesshst         .vim/
.bashrc          networkWiki.tgz  .viminfo

(carmom@doon)-(0)-(10:14 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/lo
local/      lock/       log/        lost+found/

(carmom@doon)-(0)-(10:14 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/ta
tac/          tac_plus.log  tallylog

(carmom@doon)-(0)-(10:14 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac/tac_plus.acct
May 21 00:04:43 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31228   timezone=UTC    service=shell   start_time=1337558683   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 00:04:43 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31212   timezone=UTC    service=shell   start_time=1337558656   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=27 stop_time=1337558683
May 21 00:04:45 10.20.52.243    rancid  0       10.20.55.230    start   task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558685   service=none
May 21 00:04:46 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558686   cmd=terminal length 0 (SUCCESS)s                                                                                                              ervice=none
May 21 00:04:46 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558686   cmd=terminal width 132 (SUCCESS)                                                                                                              service=none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    start   task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   service=none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   cmd=echo (SUCCESS)      service=                                                                                                              none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   stop_time=1337558687    service=                                                                                                              none
May 21 00:04:50 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558690   stop_time=1337558690    service=                                                                                                              none
May 21 00:12:00 10.20.52.243    carmom  0       10.20.51.32     start   task_id=                                                                                                              10.20.51.32@pts/20      start_time=1337559120   service=none
^C

(carmom@doon)-(0)-(10:47 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> tail -f /var/log/tac/tac_plus.acct
May 21 00:04:43 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31228   timezone=UTC    service=shell   start_time=1337558683   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 00:04:43 10.20.60.244    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31212   timezone=UTC    service=shell   start_time=1337558656   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=27 stop_time=1337558683
May 21 00:04:45 10.20.52.243    rancid  0       10.20.55.230    start   task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558685   service=none
May 21 00:04:46 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558686   cmd=terminal length 0 (SUCCESS)s                                                                                                              ervice=none
May 21 00:04:46 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558686   cmd=terminal width 132 (SUCCESS)                                                                                                              service=none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    start   task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   service=none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   cmd=echo (SUCCESS)      service=                                                                                                              none
May 21 00:04:47 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558687   stop_time=1337558687    service=                                                                                                              none
May 21 00:04:50 10.20.52.243    rancid  0       10.20.55.230    stop    task_id=                                                                                                              10.20.55.230@pts/20     start_time=1337558690   stop_time=1337558690    service=                                                                                                              none
May 21 00:12:00 10.20.52.243    carmom  0       10.20.51.32     start   task_id=                                                                                                              10.20.51.32@pts/20      start_time=1337559120   service=none
May 21 00:47:59 10.20.50.253    carmom  pts/0   unknown start           start_ti                                                                                                              me=1337561279   task_id=0       service=shell   cmd=enable
May 21 00:47:59 10.20.50.253    carmom  pts/0   unknown stop            stop_tim                                                                                                              e=1337561279    task_id=0       service=shell   cmd=enable
May 21 00:48:01 10.20.50.253    carmom  pts/0   unknown start           start_ti                                                                                                              me=1337561281   task_id=40311   service=shell   cmd=show running-config
May 21 00:48:06 10.20.50.253    carmom  pts/0   unknown stop            stop_tim                                                                                                              e=1337561286    task_id=40311   service=shell   cmd=show running-config
May 21 00:49:46 10.20.50.253    carmom  pts/0   unknown start           start_ti                                                                                                              me=1337561386   task_id=51584   service=shell   cmd=ping 4.2.2.4
May 21 00:49:46 10.20.50.253    carmom  pts/0   unknown stop            stop_tim                                                                                                              e=1337561386    task_id=51584   service=shell   cmd=ping 4.2.2.4
May 21 01:01:04 172.31.2.80     rancid  tty388  10.20.55.230    start   task_id=                                                                                                              34969   timezone=EST    service=shell   start_time=1337562064
May 21 01:01:04 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34969   timezone=EST    service=shell   start_time=1337562064   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:04 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34970   timezone=EST    service=shell   start_time=1337562064   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:04 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34971   timezone=EST    service=shell   start_time=1337562064   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:05 172.31.2.88     rancid  tty388  10.20.55.230    start   task_id=                                                                                                              15399   timezone=EST    service=shell   start_time=1337562064
May 21 01:01:05 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34972   timezone=EST    service=shell   start_time=1337562065   priv-lvl=1     c                                                                                                              md=show environment all <cr>
May 21 01:01:05 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15399   timezone=EST    service=shell   start_time=1337562065   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:05 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15400   timezone=EST    service=shell   start_time=1337562065   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:05 172.31.2.98     rancid  tty514  10.20.55.230    start   task_id=                                                                                                              2127    timezone=CST    service=shell   start_time=1337561853
May 21 01:01:05 172.31.2.70     rancid  tty388  10.20.55.230    start   task_id=                                                                                                              6796    timezone=UTC    service=shell   start_time=1337562065
May 21 01:01:05 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34973   timezone=EST    service=shell   start_time=1337562065   priv-lvl=1     c                                                                                                              md=show flash0: <cr>
May 21 01:01:05 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2128    timezone=CST    service=shell   start_time=1337561853   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:05 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2129    timezone=CST    service=shell   start_time=1337561853   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:07 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15401   timezone=EST    service=shell   start_time=1337562065   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:07 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34974   timezone=EST    service=shell   start_time=1337562065   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:08 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6796    timezone=UTC    service=shell   start_time=1337562068   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:08 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6797    timezone=UTC    service=shell   start_time=1337562068   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:08 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6798    timezone=UTC    service=shell   start_time=1337562068   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:08 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2130    timezone=CST    service=shell   start_time=1337561856   priv-lvl=1     c                                                                                                              md=show environment all <cr>
May 21 01:01:08 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15402   timezone=EST    service=shell   start_time=1337562066   priv-lvl=1     c                                                                                                              md=show environment all <cr>
May 21 01:01:08 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6799    timezone=UTC    service=shell   start_time=1337562068   priv-lvl=1     c                                                                                                              md=show environment all <cr>
May 21 01:01:08 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15403   timezone=EST    service=shell   start_time=1337562068   priv-lvl=1     c                                                                                                              md=show flash0: <cr>
May 21 01:01:08 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2131    timezone=CST    service=shell   start_time=1337561856   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:01:08 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15404   timezone=EST    service=shell   start_time=1337562068   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:09 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6800    timezone=UTC    service=shell   start_time=1337562069   priv-lvl=1     c                                                                                                              md=show flash0: <cr>
May 21 01:01:09 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2127    timezone=CST    service=shell   start_time=1337561853   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:09 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6801    timezone=UTC    service=shell   start_time=1337562069   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34975   timezone=EST    service=shell   start_time=1337562071   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:11 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2132    timezone=CST    service=shell   start_time=1337561856   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34976   timezone=EST    service=shell   start_time=1337562071   priv-lvl=1     c                                                                                                              md=show diag <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34977   timezone=EST    service=shell   start_time=1337562071   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34978   timezone=EST    service=shell   start_time=1337562071   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34979   timezone=EST    service=shell   start_time=1337562071   priv-lvl=1     c                                                                                                              md=show vlan-switch <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34980   timezone=EST    service=shell   start_time=1337562071   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:11 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34981   timezone=EST    service=shell   start_time=1337562071   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:12 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6802    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:12 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34982   timezone=EST    service=shell   start_time=1337562072   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:12 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6803    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show diag <cr>
May 21 01:01:12 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6805    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:12 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6804    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:12 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15405   timezone=EST    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:12 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6806    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show vlan-switch <cr>
May 21 01:01:12 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6807    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:12 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2133    timezone=CST    service=shell   start_time=1337561860   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:12 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34983   timezone=EST    service=shell   start_time=1337562072   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:13 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34984   timezone=EST    service=shell   start_time=1337562073   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:13 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6808    timezone=UTC    service=shell   start_time=1337562072   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:15 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2134    timezone=CST    service=shell   start_time=1337561861   priv-lvl=1     c                                                                                                              md=show diag <cr>
May 21 01:01:15 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34985   timezone=EST    service=shell   start_time=1337562075   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:15 172.31.2.80     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              34969   timezone=EST    service=shell   start_time=1337562064   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=11 stop_time=1337562075
May 21 01:01:15 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2135    timezone=CST    service=shell   start_time=1337561863   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:16 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2137    timezone=CST    service=shell   start_time=1337561864   priv-lvl=1     c                                                                                                              md=show vlan-switch <cr>
May 21 01:01:16 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2138    timezone=CST    service=shell   start_time=1337561864   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:17 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6809    timezone=UTC    service=shell   start_time=1337562077   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:17 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15406   timezone=EST    service=shell   start_time=1337562073   priv-lvl=1     c                                                                                                              md=show diag <cr>
May 21 01:01:18 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2140    timezone=CST    service=shell   start_time=1337561866   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:18 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6810    timezone=UTC    service=shell   start_time=1337562078   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:18 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6811    timezone=UTC    service=shell   start_time=1337562078   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:18 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2141    timezone=CST    service=shell   start_time=1337561866   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:18 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2139    timezone=CST    service=shell   start_time=1337561864   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:19 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2142    timezone=CST    service=shell   start_time=1337561866   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:19 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2136    timezone=CST    service=shell   start_time=1337561863   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:20 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6812    timezone=UTC    service=shell   start_time=1337562080   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:20 172.31.2.70     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              6796    timezone=UTC    service=shell   start_time=1337562065   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=15 stop_time=1337562080
May 21 01:01:20 172.31.2.92     rancid  tty388  10.20.55.230    start   task_id=                                                                                                              31115   timezone=PERTH  service=shell   start_time=1337562080
May 21 01:01:20 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31115   timezone=PERTH  service=shell   start_time=1337562080   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:20 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31116   timezone=PERTH  service=shell   start_time=1337562080   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:20 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31117   timezone=PERTH  service=shell   start_time=1337562080   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:21 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15407   timezone=EST    service=shell   start_time=1337562080   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:21 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2143    timezone=CST    service=shell   start_time=1337561868   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:21 172.31.2.98     rancid  tty514  10.20.55.230    stop    task_id=                                                                                                              2127    timezone=CST    service=shell   start_time=1337561853   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=15 stop_time=1337561868
May 21 01:01:21 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15408   timezone=EST    service=shell   start_time=1337562081   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:21 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31118   timezone=PERTH  service=shell   start_time=1337562081   priv-lvl=1     c                                                                                                              md=show environment all <cr>
May 21 01:01:21 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15409   timezone=EST    service=shell   start_time=1337562081   priv-lvl=1     c                                                                                                              md=show vlan-switch <cr>
May 21 01:01:21 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15410   timezone=EST    service=shell   start_time=1337562081   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:21 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15411   timezone=EST    service=shell   start_time=1337562081   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:21 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31119   timezone=PERTH  service=shell   start_time=1337562081   priv-lvl=1     c                                                                                                              md=show flash0: <cr>
May 21 01:01:22 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15412   timezone=EST    service=shell   start_time=1337562081   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:22 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31120   timezone=PERTH  service=shell   start_time=1337562081   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:22 172.31.2.60     rancid  tty388  10.20.55.230    start   task_id=                                                                                                              31318   timezone=EST    service=shell   start_time=1337562082
May 21 01:01:22 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15413   timezone=EST    service=shell   start_time=1337562082   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:22 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31318   timezone=EST    service=shell   start_time=1337562082   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:22 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31319   timezone=EST    service=shell   start_time=1337562082   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:22 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31320   timezone=EST    service=shell   start_time=1337562082   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:22 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15414   timezone=EST    service=shell   start_time=1337562082   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:23 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31322   timezone=EST    service=shell   start_time=1337562083   priv-lvl=15    c                                                                                                              md=show flash0: <cr>
May 21 01:01:23 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31323   timezone=EST    service=shell   start_time=1337562083   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:24 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31324   timezone=EST    service=shell   start_time=1337562084   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:24 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15415   timezone=EST    service=shell   start_time=1337562084   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:24 172.31.2.88     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              15399   timezone=EST    service=shell   start_time=1337562064   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=20 stop_time=1337562084
May 21 01:01:24 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31325   timezone=EST    service=shell   start_time=1337562084   priv-lvl=1     c                                                                                                              md=show diag <cr>
May 21 01:01:24 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31321   timezone=EST    service=shell   start_time=1337562082   priv-lvl=1     c                                                                                                              md=show environment all <cr>
May 21 01:01:24 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31326   timezone=EST    service=shell   start_time=1337562084   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:24 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31327   timezone=EST    service=shell   start_time=1337562084   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:25 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31328   timezone=EST    service=shell   start_time=1337562084   priv-lvl=1     c                                                                                                              md=show vlan-switch <cr>
May 21 01:01:25 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31329   timezone=EST    service=shell   start_time=1337562085   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:25 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31330   timezone=EST    service=shell   start_time=1337562085   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:25 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31121   timezone=PERTH  service=shell   start_time=1337562085   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:26 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31331   timezone=EST    service=shell   start_time=1337562085   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:26 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31122   timezone=PERTH  service=shell   start_time=1337562086   priv-lvl=1     c                                                                                                              md=show diag <cr>
May 21 01:01:26 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31332   timezone=EST    service=shell   start_time=1337562086   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:26 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31123   timezone=PERTH  service=shell   start_time=1337562086   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:26 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31333   timezone=EST    service=shell   start_time=1337562086   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:26 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31124   timezone=PERTH  service=shell   start_time=1337562086   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:27 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31125   timezone=PERTH  service=shell   start_time=1337562086   priv-lvl=1     c                                                                                                              md=show vlan-switch <cr>
May 21 01:01:27 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31126   timezone=PERTH  service=shell   start_time=1337562086   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:27 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31127   timezone=PERTH  service=shell   start_time=1337562087   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:27 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31128   timezone=PERTH  service=shell   start_time=1337562087   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:28 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31129   timezone=PERTH  service=shell   start_time=1337562087   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:28 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31318   timezone=EST    service=shell   start_time=1337562082   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=6  stop_time=1337562088
May 21 01:01:28 172.31.2.60     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31334   timezone=EST    service=shell   start_time=1337562088   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:28 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31130   timezone=PERTH  service=shell   start_time=1337562088   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:30 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31131   timezone=PERTH  service=shell   start_time=1337562090   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:30 172.31.2.92     rancid  tty388  10.20.55.230    stop    task_id=                                                                                                              31115   timezone=PERTH  service=shell   start_time=1337562080   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=2      elapsed_time=10 stop_time=1337562090
May 21 01:01:34 10.20.55.254    rancid  tty3    10.20.55.230    start   task_id=                                                                                                              2006    timezone=AEST   service=shell   start_time=1337562094
May 21 01:01:34 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2006    timezone=AEST   service=shell   start_time=1337562094   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:34 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2007    timezone=AEST   service=shell   start_time=1337562094   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:35 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2008    timezone=AEST   service=shell   start_time=1337562094   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:35 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2009    timezone=AEST   service=shell   start_time=1337562095   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:01:35 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2010    timezone=AEST   service=shell   start_time=1337562095   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:01:35 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2011    timezone=AEST   service=shell   start_time=1337562095   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:01:35 10.20.52.249    rancid  tty3    10.20.55.230    start   task_id=                                                                                                              1873    timezone=UTC    service=shell   start_time=1337562095
May 21 01:01:35 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1873    timezone=UTC    service=shell   start_time=1337562095   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:35 10.20.58.241    rancid  tty2    10.20.55.230    start   task_id=                                                                                                              2114    timezone=EST    service=shell   start_time=1337562095
May 21 01:01:36 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1874    timezone=UTC    service=shell   start_time=1337562095   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2114    timezone=EST    service=shell   start_time=1337562095   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:36 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2012    timezone=AEST   service=shell   start_time=1337562095   priv-lvl=15    c                                                                                                              md=dir /all <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2115    timezone=EST    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2116    timezone=EST    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:36 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1875    timezone=UTC    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2117    timezone=EST    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:01:36 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1876    timezone=UTC    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2118    timezone=EST    service=shell   start_time=1337562096   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:01:36 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1877    timezone=UTC    service=shell   start_time=1337562096   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2119    timezone=EST    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:01:36 10.20.60.243    rancid  tty1    10.20.55.230    start   task_id=                                                                                                              33012   timezone=UTC    service=shell   start_time=1337562096
May 21 01:01:36 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1878    timezone=UTC    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:01:36 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33012   timezone=UTC    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:01:36 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33013   timezone=UTC    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:01:36 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1879    timezone=UTC    service=shell   start_time=1337562096   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:36 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2120    timezone=EST    service=shell   start_time=1337562096   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:37 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33014   timezone=UTC    service=shell   start_time=1337562096   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:01:37 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33015   timezone=UTC    service=shell   start_time=1337562097   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:01:37 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2013    timezone=AEST   service=shell   start_time=1337562097   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:37 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33016   timezone=UTC    service=shell   start_time=1337562097   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:01:37 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33017   timezone=UTC    service=shell   start_time=1337562097   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:01:38 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2121    timezone=EST    service=shell   start_time=1337562098   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:38 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1880    timezone=UTC    service=shell   start_time=1337562098   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:39 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2014    timezone=AEST   service=shell   start_time=1337562099   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:39 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2015    timezone=AEST   service=shell   start_time=1337562099   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:40 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2016    timezone=AEST   service=shell   start_time=1337562099   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:01:40 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2122    timezone=EST    service=shell   start_time=1337562100   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:40 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33018   timezone=UTC    service=shell   start_time=1337562097   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:01:40 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2017    timezone=AEST   service=shell   start_time=1337562100   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:40 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2123    timezone=EST    service=shell   start_time=1337562100   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:40 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2124    timezone=EST    service=shell   start_time=1337562100   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:01:40 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2125    timezone=EST    service=shell   start_time=1337562100   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:40 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2018    timezone=AEST   service=shell   start_time=1337562100   priv-lvl=15    c                                                                                                              md=more system:running-config <cr>
May 21 01:01:40 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2126    timezone=EST    service=shell   start_time=1337562100   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:41 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33019   timezone=UTC    service=shell   start_time=1337562099   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:01:42 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2019    timezone=AEST   service=shell   start_time=1337562102   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:43 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1881    timezone=UTC    service=shell   start_time=1337562103   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:43 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1882    timezone=UTC    service=shell   start_time=1337562103   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:44 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1883    timezone=UTC    service=shell   start_time=1337562103   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:01:44 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1884    timezone=UTC    service=shell   start_time=1337562104   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:44 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1885    timezone=UTC    service=shell   start_time=1337562104   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:44 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2127    timezone=EST    service=shell   start_time=1337562104   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:44 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33020   timezone=UTC    service=shell   start_time=1337562104   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:01:44 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33021   timezone=UTC    service=shell   start_time=1337562104   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:01:45 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2020    timezone=AEST   service=shell   start_time=1337562105   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:45 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33022   timezone=UTC    service=shell   start_time=1337562104   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:01:45 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33023   timezone=UTC    service=shell   start_time=1337562105   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:01:45 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33024   timezone=UTC    service=shell   start_time=1337562105   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:01:47 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2021    timezone=AEST   service=shell   start_time=1337562107   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:47 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1886    timezone=UTC    service=shell   start_time=1337562107   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:48 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2128    timezone=EST    service=shell   start_time=1337562108   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:49 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33025   timezone=UTC    service=shell   start_time=1337562109   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:01:51 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1887    timezone=UTC    service=shell   start_time=1337562111   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:52 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2129    timezone=EST    service=shell   start_time=1337562112   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:52 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2022    timezone=AEST   service=shell   start_time=1337562112   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:01:52 10.20.55.254    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              2006    timezone=AEST   service=shell   start_time=1337562094   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=18
May 21 01:01:53 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33026   timezone=UTC    service=shell   start_time=1337562113   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:01:55 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1888    timezone=UTC    service=shell   start_time=1337562114   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:57 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33027   timezone=UTC    service=shell   start_time=1337562117   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:01:58 10.20.58.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              2114    timezone=EST    service=shell   start_time=1337562095   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=22
May 21 01:01:59 10.20.52.249    rancid  tty3    10.20.55.230    stop    task_id=                                                                                                              1873    timezone=UTC    service=shell   start_time=1337562095   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=24 stop_time=1337562119
May 21 01:02:04 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33028   timezone=UTC    service=shell   start_time=1337562124   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:02:04 10.20.60.243    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              33012   timezone=UTC    service=shell   start_time=1337562096   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=2      elapsed_time=28 stop_time=1337562124
May 21 01:03:32 10.20.88.241    rancid  tty1    10.20.55.230    start   task_id=                                                                                                              16545   timezone=UTC    service=shell   start_time=1337562212
May 21 01:03:32 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16545   timezone=UTC    service=shell   start_time=1337562212   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:03:32 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16546   timezone=UTC    service=shell   start_time=1337562212   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:03:33 10.20.80.241    rancid  tty1    10.20.55.230    start   task_id=                                                                                                              3045    timezone=UTC    service=shell   start_time=1337562212
May 21 01:03:33 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16547   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:03:33 10.20.92.241    rancid  tty1    10.20.55.230    start   task_id=                                                                                                              31232   timezone=UTC    service=shell   start_time=1337562213
May 21 01:03:33 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31232   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:03:33 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31233   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:03:33 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16548   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:03:33 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31234   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:03:33 10.20.70.241    rancid  tty1    10.20.55.230    start   task_id=                                                                                                              50505   timezone=UTC    service=shell   start_time=1337562213
May 21 01:03:33 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16549   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:03:33 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50505   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:03:33 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50507   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:03:33 10.20.70.241    rancid  tty2    10.20.55.230    start   task_id=                                                                                                              50506   timezone=UTC    service=shell   start_time=1337562213
May 21 01:03:33 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50508   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:03:34 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16550   timezone=UTC    service=shell   start_time=1337562213   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:03:34 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50506   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=terminal length 0 <cr>
May 21 01:03:34 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31235   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:03:34 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50510   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=terminal width 132 <cr>
May 21 01:03:34 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50511   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=show version <cr>
May 21 01:03:34 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16551   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:03:34 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50509   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:03:34 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31236   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:03:34 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50513   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:03:34 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50512   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=show env all <cr>
May 21 01:03:34 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50515   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:03:35 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31237   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:03:35 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50514   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=15    c                                                                                                              md=show boot <cr>
May 21 01:03:35 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31238   timezone=UTC    service=shell   start_time=1337562214   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:03:35 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50516   timezone=UTC    service=shell   start_time=1337562215   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:03:35 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50517   timezone=UTC    service=shell   start_time=1337562215   priv-lvl=1     c                                                                                                              md=show flash: <cr>
May 21 01:03:35 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50519   timezone=UTC    service=shell   start_time=1337562215   priv-lvl=15    c                                                                                                              md=dir /all nvram: <cr>
May 21 01:03:37 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16552   timezone=UTC    service=shell   start_time=1337562217   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:03:38 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50518   timezone=UTC    service=shell   start_time=1337562218   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:03:39 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31239   timezone=UTC    service=shell   start_time=1337562219   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:03:39 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50520   timezone=UTC    service=shell   start_time=1337562219   priv-lvl=1     c                                                                                                              md=show controllers <cr>
May 21 01:03:40 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16553   timezone=UTC    service=shell   start_time=1337562220   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:03:41 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16554   timezone=UTC    service=shell   start_time=1337562221   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:03:41 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16555   timezone=UTC    service=shell   start_time=1337562221   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:03:41 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16556   timezone=UTC    service=shell   start_time=1337562221   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:03:42 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16557   timezone=UTC    service=shell   start_time=1337562221   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:03:43 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31240   timezone=UTC    service=shell   start_time=1337562223   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:03:43 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31241   timezone=UTC    service=shell   start_time=1337562223   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:03:43 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31242   timezone=UTC    service=shell   start_time=1337562223   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:03:43 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31243   timezone=UTC    service=shell   start_time=1337562223   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:03:44 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16558   timezone=UTC    service=shell   start_time=1337562223   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:03:44 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31244   timezone=UTC    service=shell   start_time=1337562224   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:03:45 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50521   timezone=UTC    service=shell   start_time=1337562224   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:03:45 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50523   timezone=UTC    service=shell   start_time=1337562225   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:03:45 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50524   timezone=UTC    service=shell   start_time=1337562225   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:03:45 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50525   timezone=UTC    service=shell   start_time=1337562225   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:03:46 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50526   timezone=UTC    service=shell   start_time=1337562225   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:03:46 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16559   timezone=UTC    service=shell   start_time=1337562226   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:03:47 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31245   timezone=UTC    service=shell   start_time=1337562227   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:03:47 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50522   timezone=UTC    service=shell   start_time=1337562227   priv-lvl=1     c                                                                                                              md=show inventory raw <cr>
May 21 01:03:48 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50528   timezone=UTC    service=shell   start_time=1337562228   priv-lvl=1     c                                                                                                              md=show vtp status <cr>
May 21 01:03:48 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50527   timezone=UTC    service=shell   start_time=1337562228   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:03:48 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16560   timezone=UTC    service=shell   start_time=1337562228   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:03:49 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50529   timezone=UTC    service=shell   start_time=1337562228   priv-lvl=1     c                                                                                                              md=show vlan <cr>
May 21 01:03:51 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50530   timezone=UTC    service=shell   start_time=1337562230   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:03:51 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31246   timezone=UTC    service=shell   start_time=1337562230   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:03:52 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16561   timezone=UTC    service=shell   start_time=1337562232   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:03:52 10.20.88.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              16545   timezone=UTC    service=shell   start_time=1337562212   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=20
May 21 01:03:52 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50531   timezone=UTC    service=shell   start_time=1337562232   priv-lvl=1     c                                                                                                              md=show debugging <cr>
May 21 01:03:53 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50532   timezone=UTC    service=shell   start_time=1337562233   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:03:54 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31247   timezone=UTC    service=shell   start_time=1337562234   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:03:55 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50533   timezone=UTC    service=shell   start_time=1337562235   priv-lvl=15    c                                                                                                              md=more system:running-config system:running-config <cr>
May 21 01:03:57 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50534   timezone=UTC    service=shell   start_time=1337562237   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:03:57 10.20.70.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              50505   timezone=UTC    service=shell   start_time=1337562213   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=24
May 21 01:03:58 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50535   timezone=UTC    service=shell   start_time=1337562237   priv-lvl=15    c                                                                                                              md=show running-config view full <cr>
May 21 01:04:00 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31248   timezone=UTC    service=shell   start_time=1337562239   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:04:00 10.20.92.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              31232   timezone=UTC    service=shell   start_time=1337562213   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=2      elapsed_time=27
May 21 01:04:00 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50537   timezone=UTC    service=shell   start_time=1337562240   priv-lvl=15    c                                                                                                              md=show running-config <cr>
May 21 01:04:02 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50538   timezone=UTC    service=shell   start_time=1337562242   priv-lvl=15    c                                                                                                              md=write terminal <cr>
May 21 01:04:04 10.20.80.241    rancid  tty1    10.20.55.230    stop    task_id=                                                                                                              3045    timezone=UTC    service=shell   start_time=1337562212   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=31
May 21 01:04:08 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50539   timezone=UTC    service=shell   start_time=1337562248   priv-lvl=0     c                                                                                                              md=exit <cr>
May 21 01:04:08 10.20.70.241    rancid  tty2    10.20.55.230    stop    task_id=                                                                                                              50506   timezone=UTC    service=shell   start_time=1337562213   disc-cause=1   d                                                                                                              isc-cause-ext=9 pre-session-time=1      elapsed_time=35
^C

(carmom@doon)-(0)-(11:04 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> cd /usr/local/rancid/
.cloginrc  share/

(carmom@doon)-(0)-(11:04 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> cd /usr/local/rancid/share/
man/    rancid/

(carmom@doon)-(0)-(11:04 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> cd /usr/local/rancid/share/rancid/
CHANGES             FAQ                 rancid-cvspurge
cisco-load.exp      getipacctg          README
cisco-reload.exp    index.html          README.lg
cloginrc.sample     lg.conf.sample      README.misc
COPYING             lgnotes.html        rtrfilter
downreport          rancid.conf.sample  UPGRADING

(carmom@doon)-(0)-(11:04 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/rancid/
cloginrc             rancid.conf
lg.conf              rancid.default.conf

(carmom@doon)-(0)-(11:04 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/rancid/rancid.

(carmom@doon)-(0)-(11:04 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/rancid/rancid.conf

(carmom@doon)-(0)-(11:05 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> cd /var/local/rancid/
2960_access_switches/ CVS/                  nexus_switches/
3750_access_switches/ firewalls/            wan_routers/
core_switches/        logs/

(carmom@doon)-(0)-(11:05 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /etc/rancid/rancid.conf

(carmom@doon)-(0)-(11:05 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /usr/local/bin/
agmrancid       f10rancid       lgform.cgi      rancid-fe
alogin          f5rancid        mrancid         rancid-run
arancid         flogin          mrvlogin        rivlogin
arrancid        fnlogin         mrvrancid       rivrancid
avologin        fnrancid        mtlogin         rrancid
avorancid       francid         mtrancid        srancid
blogin          hlogin          nlogin          tac_plus
brancid         hpuifilter      nrancid         tac_pwd
cat5rancid      hrancid         nslogin         tlogin
clogin          htlogin         nsrancid        tntlogin
control_rancid  htrancid        nxrancid        tntrancid
cssrancid       jerancid        par             trancid
do_auth.py      jlogin          prancid         xrancid
elogin          jrancid         rancid          xrrancid
erancid         lg.cgi          rancid-cvs      zrancid

(carmom@doon)-(0)-(11:05 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> vim /usr/local/bin/

(carmom@doon)-(0)-(11:06 AM Mon May 21)->
(~)-(2 files, 4.5Mb)--> cd /usr/local/bin/

(carmom@doon)-(0)-(11:06 AM Mon May 21)->
(/usr/local/bin)-(60 files, 1.5Mb)--> ls
agmrancid   control_rancid  francid     lgform.cgi  nxrancid    srancid
alogin      cssrancid       hlogin      mrancid     par         tac_plus
arancid     do_auth.py      hpuifilter  mrvlogin    prancid     tac_pwd
arrancid    elogin          hrancid     mrvrancid   rancid      tlogin
avologin    erancid         htlogin     mtlogin     rancid-cvs  tntlogin
avorancid   f10rancid       htrancid    mtrancid    rancid-fe   tntrancid
blogin      f5rancid        jerancid    nlogin      rancid-run  trancid
brancid     flogin          jlogin      nrancid     rivlogin    xrancid
cat5rancid  fnlogin         jrancid     nslogin     rivrancid   xrrancid
clogin      fnrancid        lg.cgi      nsrancid    rrancid     zrancid

(carmom@doon)-(0)-(11:06 AM Mon May 21)->
(/usr/local/bin)-(60 files, 1.5Mb)--> ls -lah
total 1.5M
drwxr-xr-x.  2 root root 4.0K May  1 16:16 .
drwxr-xr-x. 13 root root 4.0K Apr 30 12:26 ..
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 agmrancid
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 alogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 arancid
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 arrancid
-rwxr-xr-x.  1 root root  22K Apr 30 12:26 avologin
-rwxr-xr-x.  1 root root 9.6K Apr 30 12:26 avorancid
-rwxr-xr-x.  1 root root  19K Apr 30 12:26 blogin
-rwxr-xr-x.  1 root root 9.9K Apr 30 12:26 brancid
-rwxr-xr-x.  1 root root  37K Apr 30 12:26 cat5rancid
-rwxr-xr-x.  1 root root  27K Apr 30 12:26 clogin
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 control_rancid
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 cssrancid
-rw-r--r--.  1 root root  22K Apr 16 15:41 do_auth.py
-rwxr-xr-x.  1 root root  15K Apr 30 12:26 elogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 erancid
-rwxr-xr-x.  1 root root  22K Apr 30 12:26 f10rancid
-rwxr-xr-x.  1 root root  19K Apr 30 12:26 f5rancid
-rwxr-xr-x.  1 root root  21K Apr 30 12:26 flogin
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 fnlogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 fnrancid
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 francid
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 hlogin
-rwxr-xr-x.  1 root root  28K Apr 30 12:26 hpuifilter
-rwxr-xr-x.  1 root root  20K Apr 30 12:26 hrancid
-rwxr-xr-x.  1 root root  15K Apr 30 12:26 htlogin
-rwxr-xr-x.  1 root root 9.2K Apr 30 12:26 htrancid
-rwxr-xr-x.  1 root root  21K Apr 30 12:26 jerancid
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 jlogin
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 jrancid
-rwxr-xr-x.  1 root root  25K Apr 30 12:26 lg.cgi
-rwxr-xr-x.  1 root root 7.7K Apr 30 12:26 lgform.cgi
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 mrancid
-rwxr-xr-x.  1 root root  22K Apr 30 12:26 mrvlogin
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 mrvrancid
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 mtlogin
-rwxr-xr-x.  1 root root 8.8K Apr 30 12:26 mtrancid
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 nlogin
-rwxr-xr-x.  1 root root  12K Apr 30 12:26 nrancid
-rwxr-xr-x.  1 root root  20K Apr 30 12:26 nslogin
-rwxr-xr-x.  1 root root 9.5K Apr 30 12:26 nsrancid
-rwxr-xr-x.  1 root root  37K Apr 30 12:26 nxrancid
-rwxr-xr-x.  1 root root 5.9K Apr 30 12:26 par
-rwxr-xr-x.  1 root root  19K Apr 30 12:26 prancid
-rwxr-xr-x.  1 root root  69K Apr 30 12:26 rancid
-rwxr-xr-x.  1 root root 4.6K Apr 30 12:26 rancid-cvs
-rwxr-xr-x.  1 root root 3.7K Apr 30 12:26 rancid-fe
-rwxr-xr-x.  1 root root 4.8K Apr 30 12:26 rancid-run
-rwxr-xr-x.  1 root root  24K Apr 30 12:26 rivlogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 rivrancid
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 rrancid
-rwxr-xr-x.  1 root root  13K Apr 30 12:26 srancid
-rwxr-xr-x.  1 root root 276K Apr 16 16:28 tac_plus
-rwxr-xr-x.  1 root root  16K Apr 16 16:28 tac_pwd
-rwxr-xr-x.  1 root root  25K Apr 30 12:26 tlogin
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 tntlogin
-rwxr-xr-x.  1 root root 9.8K Apr 30 12:26 tntrancid
-rwxr-xr-x.  1 root root 9.8K Apr 30 12:26 trancid
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 xrancid
-rwxr-xr-x.  1 root root  44K Apr 30 12:26 xrrancid
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 zrancid

(carmom@doon)-(0)-(11:06 AM Mon May 21)->
(/usr/local/bin)-(60 files, 1.5Mb)--> vim rblogin

(carmom@doon)-(0)-(11:06 AM Mon May 21)->
(/usr/local/bin)-(60 files, 1.5Mb)--> sudo vim rblogin

(carmom@doon)-(0)-(11:07 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> ls -lah
total 1.5M
drwxr-xr-x.  2 root root 4.0K May 21 11:07 .
drwxr-xr-x. 13 root root 4.0K Apr 30 12:26 ..
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 agmrancid
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 alogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 arancid
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 arrancid
-rwxr-xr-x.  1 root root  22K Apr 30 12:26 avologin
-rwxr-xr-x.  1 root root 9.6K Apr 30 12:26 avorancid
-rwxr-xr-x.  1 root root  19K Apr 30 12:26 blogin
-rwxr-xr-x.  1 root root 9.9K Apr 30 12:26 brancid
-rwxr-xr-x.  1 root root  37K Apr 30 12:26 cat5rancid
-rwxr-xr-x.  1 root root  27K Apr 30 12:26 clogin
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 control_rancid
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 cssrancid
-rw-r--r--.  1 root root  22K Apr 16 15:41 do_auth.py
-rwxr-xr-x.  1 root root  15K Apr 30 12:26 elogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 erancid
-rwxr-xr-x.  1 root root  22K Apr 30 12:26 f10rancid
-rwxr-xr-x.  1 root root  19K Apr 30 12:26 f5rancid
-rwxr-xr-x.  1 root root  21K Apr 30 12:26 flogin
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 fnlogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 fnrancid
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 francid
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 hlogin
-rwxr-xr-x.  1 root root  28K Apr 30 12:26 hpuifilter
-rwxr-xr-x.  1 root root  20K Apr 30 12:26 hrancid
-rwxr-xr-x.  1 root root  15K Apr 30 12:26 htlogin
-rwxr-xr-x.  1 root root 9.2K Apr 30 12:26 htrancid
-rwxr-xr-x.  1 root root  21K Apr 30 12:26 jerancid
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 jlogin
-rwxr-xr-x.  1 root root  23K Apr 30 12:26 jrancid
-rwxr-xr-x.  1 root root  25K Apr 30 12:26 lg.cgi
-rwxr-xr-x.  1 root root 7.7K Apr 30 12:26 lgform.cgi
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 mrancid
-rwxr-xr-x.  1 root root  22K Apr 30 12:26 mrvlogin
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 mrvrancid
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 mtlogin
-rwxr-xr-x.  1 root root 8.8K Apr 30 12:26 mtrancid
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 nlogin
-rwxr-xr-x.  1 root root  12K Apr 30 12:26 nrancid
-rwxr-xr-x.  1 root root  20K Apr 30 12:26 nslogin
-rwxr-xr-x.  1 root root 9.5K Apr 30 12:26 nsrancid
-rwxr-xr-x.  1 root root  37K Apr 30 12:26 nxrancid
-rwxr-xr-x.  1 root root 5.9K Apr 30 12:26 par
-rwxr-xr-x.  1 root root  19K Apr 30 12:26 prancid
-rwxr-xr-x.  1 root root  69K Apr 30 12:26 rancid
-rwxr-xr-x.  1 root root 4.6K Apr 30 12:26 rancid-cvs
-rwxr-xr-x.  1 root root 3.7K Apr 30 12:26 rancid-fe
-rwxr-xr-x.  1 root root 4.8K Apr 30 12:26 rancid-run
-rw-r--r--.  1 root root  14K May 21 11:07 rblogin
-rwxr-xr-x.  1 root root  24K Apr 30 12:26 rivlogin
-rwxr-xr-x.  1 root root  11K Apr 30 12:26 rivrancid
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 rrancid
-rwxr-xr-x.  1 root root  13K Apr 30 12:26 srancid
-rwxr-xr-x.  1 root root 276K Apr 16 16:28 tac_plus
-rwxr-xr-x.  1 root root  16K Apr 16 16:28 tac_pwd
-rwxr-xr-x.  1 root root  25K Apr 30 12:26 tlogin
-rwxr-xr-x.  1 root root  16K Apr 30 12:26 tntlogin
-rwxr-xr-x.  1 root root 9.8K Apr 30 12:26 tntrancid
-rwxr-xr-x.  1 root root 9.8K Apr 30 12:26 trancid
-rwxr-xr-x.  1 root root  17K Apr 30 12:26 xrancid
-rwxr-xr-x.  1 root root  44K Apr 30 12:26 xrrancid
-rwxr-xr-x.  1 root root  14K Apr 30 12:26 zrancid

(carmom@doon)-(0)-(11:07 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo chmod 755 rblogin

(carmom@doon)-(0)-(11:07 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo vim rancid-fe

(carmom@doon)-(0)-(11:08 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rivrancid

(carmom@doon)-(0)-(11:09 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rblogin

(carmom@doon)-(0)-(11:10 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rancid-fe

(carmom@doon)-(0)-(11:10 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rancid-fe

(carmom@doon)-(0)-(11:13 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rancid-fe

(carmom@doon)-(0)-(11:13 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo vim rancid-fe

(carmom@doon)-(0)-(11:13 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rblogin

(carmom@doon)-(0)-(11:21 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> cat rblogin
#! /usr/bin/expect --
##
##
## rancid 2.3.2a7
## Copyright (C) 1997-2006 by Terrapin Communications, Inc.
## All rights reserved.
##
## This software may be freely copied, modified and redistributed
## without fee for non-commerical purposes provided that this license
## remains intact and unmodified with any RANCID distribution.
##
## There is no warranty or other guarantee of fitness of this software.
## It is provided solely "as is".  The author(s) disclaim(s) all
## responsibility and liability with respect to this software's usage
## or its effect upon hardware, computer systems, other software, or
## anything else.
##
## Except where noted otherwise, rancid was written by and is maintained by
## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin Schutz.
##
#
# The login expect scripts were based on Erik Sherk's gwtn, by permission.
#
# rblogin - Riverbed Steelhead login
#

# Usage line
set usage "Usage: $argv0 \[-c command\] \[-Evar=x\] \[-f cloginrc-file\] \
\[-p user-password\] \
\[-s script-file\] \[-t timeout\] \[-u username\] \
\[-v vty-password\] \[-x command-file\] \
\[-y ssh_cypher_type\] router \[router...\]\n"

# env(CLOGIN) may contain:
#       x == do not set xterm banner or name

# Password file
set password_file $env(HOME)/.cloginrc
# Default is to login to the firewall
set do_command 0
set do_script 0
# The default is to look in the password file to find the passwords.  This
# tracks if we receive them on the command line.
set do_passwd 1

# Find the user in the ENV, or use the unix userid.
if {[ info exists env(CISCO_USER) ]} {
    set default_user $env(CISCO_USER)
} elseif {[ info exists env(USER) ]} {
    set default_user $env(USER)
} elseif {[ info exists env(LOGNAME) ]} {
    set default_user $env(LOGNAME)
} else {
    # This uses "id" which I think is portable.  At least it has existed
    # (without options) on all machines/OSes I've been on recently -
    # unlike whoami or id -nu.
    if [ catch {exec id} reason ] {
        send_error "\nError: could not exec id: $reason\n"
        exit 1
    }
    regexp {\(([^)]*)} "$reason" junk default_user
}
if {[ info exists env(CLOGINRC) ]} {
    set password_file $env(CLOGINRC)
}

# Sometimes firewall take awhile to answer (the default is 10 sec)
set timeout 45

# Process the command line
for {set i 0} {$i < $argc} {incr i} {
    set arg [lindex $argv $i]

    switch  -glob -- $arg {
        # Username
        -u* -
        -U* {
            if {! [  regexp .\[uU\](.+) $arg ignore user]} {
                incr i
                set username [ lindex $argv $i ]
            }
        # VTY Password
        } -p* -
        -P* {
            if {! [  regexp .\[pP\](.+) $arg ignore userpasswd]} {
                incr i
                set userpasswd [ lindex $argv $i ]
            }
            set do_passwd 0
        # Environment variable to pass to -s scripts
        } -E*
        {
            if {[ regexp .\[E\](.+)=(.+) $arg ignore varname varvalue]} {
                set E$varname $varvalue
            } else {
                send_user "\nError: invalid format for -E in $arg\n"
                exit 1
            }
        # Command to run.
        } -c* -
        -C* {
            if {! [  regexp .\[cC\](.+) $arg ignore command]} {
                incr i
                set command [ lindex $argv $i ]
            }
            set do_command 1
        # Expect script to run.
        } -s* -
        -S* {
            if {! [  regexp .\[sS\](.+) $arg ignore sfile]} {
                incr i
                set sfile [ lindex $argv $i ]
            }
            if { ! [ file readable $sfile ] } {
                send_user "\nError: Can't read $sfile\n"
                exit 1
            }
            set do_script 1
       # cypher type
        } -y* -
        -Y* {
            if {! [  regexp .\[eE\](.+) $arg ignore cypher]} {
                incr i
                set cypher [ lindex $argv $i ]
            }
        # alternate cloginrc file
        } -f* -
        -F* {
            if {! [ regexp .\[fF\](.+) $arg ignore password_file]} {
                incr i
                set password_file [ lindex $argv $i ]
            }
        } -t* -
        -T* {
            incr i
            set timeout [ lindex $argv $i ]
        } -x* -
        -X {
            if {! [  regexp .\[xX\](.+) $arg ignore cmd_file]} {
                incr i
                set cmd_file [ lindex $argv $i ]
            }
            if [ catch {set cmd_fd [open $cmd_file r]} reason ] {
                send_user "\nError: $reason\n"
                exit 1
            }
            set cmd_text [read $cmd_fd]
            close $cmd_fd
            set command [join [split $cmd_text \n] \;]
            set do_command 1
        # Does tacacs automatically enable us?
        } -autoenable {
            # ignore autoenable
        } -* {
            send_user "\nError: Unknown argument! $arg\n"
            send_user $usage
            exit 1
        } default {
            break
        }
    }
}
# Process firewalls...no firewalls listed is an error.
if { $i == $argc } {
    send_user "\nError: $usage"
}

# Only be quiet if we are running a script (it can log its output
# on its own)
if { $do_script } {
    log_user 0
} else {
    log_user 1
}

#
# Done configuration/variable setting.  Now run with it...
#

# Sets Xterm title if interactive...if its an xterm and the user cares
proc label { host } {
    global env
    # if CLOGIN has an 'x' in it, don't set the xterm name/banner
    if [info exists env(CLOGIN)] {
        if {[string first "x" $env(CLOGIN)] != -1} { return }
    }
    # take host from ENV(TERM)
    if [info exists env(TERM)] {
        if [regexp \^(xterm|vs) $env(TERM) ignore ] {
            send_user "\033]1;[lindex [split $host "."] 0]\a"
            send_user "\033]2;$host\a"
        }
    }
}

# This is a helper function to make the password file easier to
# maintain.  Using this the password file has the form:
# add password sl*      pete cow
# add password at*      steve
# add password *        hanky-pie
proc add {var args} { global int_$var ; lappend int_$var $args}
proc include {args} {
    global env
    regsub -all "(^{|}$)" $args {} args
    if { [ regexp "^/" $args ignore ] == 0 } {
        set args $env(HOME)/$args
    }
    source_password_file $args
}

proc find {var firewall} {
    upvar int_$var list
    if { [info exists list] } {
        foreach line $list {
            if { [string match [lindex $line 0] $firewall ] } {
                return [lrange $line 1 end]
            }
        }
    }
    return {}
}

# Loads the password file.  Note that as this file is tcl, and that
# it is sourced, the user better know what to put in there, as it
# could install more than just password info...  I will assume however,
# that a "bad guy" could just as easy put such code in the clogin
# script, so I will leave .cloginrc as just an extention of that script
proc source_password_file { password_file } {
    global env
    if { ! [file exists $password_file] } {
        send_user "\nError: password file ($password_file) does not exist\n"
        exit 1
    }
    file stat $password_file fileinfo
    if { [expr ($fileinfo(mode) & 007)] != 0000 } {
        send_user "\nError: $password_file must not be world readable/writable\n"
        exit 1
    }
    if [ catch {source $password_file} reason ] {
        send_user "\nError: $reason\n"
        exit 1
    }
}

# Log into the firewall.
# returns: 0 on success, 1 on failure
proc login { firewall user userpswd passwd prompt cmethod
cyphertype } {
    global spawn_id in_proc do_command do_script sshcmd
    set in_proc 1
    set uprompt_seen 0

    # Telnet to the firewall & try to login.
    set progs [llength $cmethod]
    foreach prog [lrange $cmethod 0 end] {
        incr progs -1
        if [string match "telnet*" $prog] {
            regexp {telnet(:([^[:space:]]+))*} $prog command suffix port
            if {"$port" == ""} {
                set retval [ catch {spawn telnet $firewall} reason ]
            } else {
                set retval [ catch {spawn telnet $firewall $port} reason ]
            }
            if { $retval } {
                send_user "\nError: telnet failed: $reason\n"
                return 1
            }
        } elseif ![string compare $prog "ssh"] {
            if [ catch {spawn $sshcmd -c $cyphertype -x -l $user $firewall} reason ] {
                send_user "\nError: $sshcmd failed: $reason\n"
                return 1
            }
        } elseif ![string compare $prog "rsh"] {
            send_error "\nError: unsupported method: rsh\n"
            if { $progs == 0 } {
                return 1
            }
            continue;
        } else {
            send_user "\nError: unknown connection method: $prog\n"
            return 1
        }

    sleep 0.3

    # This helps cleanup each expect clause.
    expect_after {
        timeout {
            send_user "\nError: TIMEOUT reached\n"
            catch {close}; wait
            if { $in_proc} {
                return 1
            } else {
                continue
            }
        } eof {
            send_user "\nError: EOF received\n"
            catch {close}; wait
            if { $in_proc} {
                return 1
            } else {
                continue
            }
        }
    }

    # Here we get a little tricky.  There are several possibilities:
    # the firewall can ask for a username and passwd and then
    # talk to the TACACS server to authenticate you, or if the
    # TACACS server is not working, then it will use the enable
    # passwd.  Or, the firewall might not have TACACS turned on,
    # then it will just send the passwd.
    # if telnet fails with connection refused, try ssh
    expect {
        "Connection refused" {
            send_user "\nError: Connection Refused\n"; wait; return 1
        } eof { send_user "\nError: Couldn't login\n"; wait; return 1
        } "Unknown host\r\n" {
            expect eof
            send_user "\nError: Unknown host\n"; wait; return 1
        } "Host is unreachable" {
            expect eof
            send_user "\nError: Host Unreachable!\n"; wait; return 1
        } "No address associated with name" {
            expect eof
            send_user "\nError: Unknown host\n"; wait; return 1
        }
        -re "Are you sure you want to continue connecting .*" {
            send "yes\r"
            send_user "Host $firewall added to the list of known hosts.\n"
            exp_continue }
        -re "Host key not found .* \(yes\/no\)\?"       {
            send "yes\r"
            send_user "Host $firewall added to the list of known hosts.\n"
            exp_continue }
        -re "HOST IDENTIFICATION HAS CHANGED.* \(yes\/no\)\?"   {
            send "no\r"
            send_user "\nError: The host key for $firewall has changed.  Update the SSH known_hosts file accordingly.\n"
            return 1 }
        -re "Offending key for .* \(yes\/no\)\?"   {
            send "no\r"
            send_user "\nError: host key mismatch for $firewall.  Update the SSH known_hosts file accordingly.\n"
            return 1 }
        denied          { send_user "\nError: Check your passwd for $firewall\n"
                          catch {close}; wait; return 1
                        }
        " ### Login failed" {send_user "\nError: Check your passwd for $firewall\n"; return 1 }
        -re "@\[^\r\n]+\[Pp]assword:"   {
                                          # ssh pwd prompt
                                          sleep 1
                                          send "$userpswd\r"
                                          exp_continue
                                        }
        "\[Pp]assword:"                 {
                                          sleep 1;
                                          if {$uprompt_seen == 1} {
                                                send "$userpswd\r"
                                          } else {
                                                send "$passwd\r"
                                          }
                                          exp_continue
                                        }
        -- "$prompt"                    { break; }
     }
    }
    set in_proc 0
    return 0
}

# Run commands given on the command line.
proc run_commands { prompt command } {
    global in_proc
    set in_proc 1

    send "enable\r"
#prompt shoudl now be changed
    set prompt { # }
    expect -re $prompt {}

    # Is this a multi-command?
    if [ string match "*\;*" "$command" ] {
        set commands [split $command \;]
        set num_commands [llength $commands]

        for {set i 0} {$i < $num_commands} { incr i} {
            send "[subst [lindex $commands $i]]\r"
            expect {
                -re "\[\n\r]+"                  { exp_continue }
                -re "$prompt"                   {}
                -gl "lines"                     { send "\r"
                                                  exp_continue
                                                }
            }
        }
    } else {
        send "[subst $command]\r"
        expect {
                -re "\[\n\r]+"                  { exp_continue }
                -re "$prompt"                   {}
                -gl "lines"                     { send " "
                                                  exp_continue
                                                }
        }
    }
    send "exit\r"
    expect {
        -re "$prompt"                           {
                                                  send "exit\r"
                                                  exp_continue
                                                }
        -re "\[\n\r]+"                          { exp_continue }
        -gl "Configuration modified, save?"     {
                                                  send "n\r"
                                                  exp_continue
                                                }
        timeout                                 { catch {close}; wait
                                                  return 0
                                                }
        eof                                     { return 0 }
    }
    set in_proc 0
}

#
# For each firewall... (this is main loop)
#
source_password_file $password_file
set in_proc 0
foreach firewall [lrange $argv $i end] {
    set firewall [string tolower $firewall]
    send_user "$firewall\n"

    set prompt { > }

    # Figure out passwords
    if { $do_passwd } {
      set pswd [find password $firewall]
      if { [llength $pswd] == 0 } {
        send_user "\nError: no password for $firewall in $password_file.\n"
        continue
      }
     set passwd [join [lindex $pswd 0] ""]
    } else {
        set passwd $userpasswd
    }

    # Figure out username
    if {[info exists username]} {
      # command line username
      set ruser $username
    } else {
      set ruser [join [find user $firewall] ""]
      if { "$ruser" == "" } { set ruser $default_user }
    }

    # Figure out username's password (if different from the vty password)
    if {[info exists userpasswd]} {
      # command line username
      set userpswd $userpasswd
    } else {
      set userpswd [join [find userpassword $firewall] ""]
      if { "$userpswd" == "" } { set userpswd $passwd }
    }


    # Figure out cypher type
    if {[info exists cypher]} {
      # command line cypher type
      set cyphertype $cypher
    } else {
      set cyphertype [find cyphertype $firewall]
      if { "$cyphertype" == "" } { set cyphertype "3des" }
    }

    # Figure out connection method
    set cmethod [find method $firewall]
    if { "$cmethod" == "" } { set cmethod {ssh} }

    # Figure out the SSH executable name
    set sshcmd [find sshcmd $firewall]
    if { "$sshcmd" == "" } { set sshcmd {ssh} }

    # Login to the firewall
    if {[login $firewall $ruser $userpswd $passwd $prompt $cmethod $cyphertype]} {
        continue
    }

    if { $do_command } {
        if {[run_commands $prompt $command]} {
            continue
        }
    } elseif { $do_script } {
        source $sfile
        close
    } else {
        label $firewall
        log_user 1
        interact
    }

    # End of for each firewall
    wait
    sleep 0.3
}
exit 0

(carmom@doon)-(0)-(11:45 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> cat
agmrancid       f5rancid        mrvlogin        rivlogin
alogin          flogin          mrvrancid       rivrancid
arancid         fnlogin         mtlogin         rrancid
arrancid        fnrancid        mtrancid        srancid
avologin        francid         nlogin          tac_plus
avorancid       hlogin          nrancid         tac_pwd
blogin          hpuifilter      nslogin         tlogin
brancid         hrancid         nsrancid        tntlogin
cat5rancid      htlogin         nxrancid        tntrancid
clogin          htrancid        par             trancid
control_rancid  jerancid        prancid         xrancid
cssrancid       jlogin          rancid          xrrancid
do_auth.py      jrancid         rancid-cvs      zrancid
elogin          lg.cgi          rancid-fe
erancid         lgform.cgi      rancid-run
f10rancid       mrancid         rblogin

(carmom@doon)-(0)-(11:45 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> cat tlogin
#! /usr/bin/expect --
##
## $Id: tlogin.in 2376 2012-01-31 22:42:14Z heas $
##
## rancid 2.3.8
## Copyright (c) 1997-2011 by Terrapin Communications, Inc.
## All rights reserved.
##
## This code is derived from software contributed to and maintained by
## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan,
## Pete Whiting, Austin Schutz, and Andrew Fort.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
##    notice, this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright
##    notice, this list of conditions and the following disclaimer in the
##    documentation and/or other materials provided with the distribution.
## 3. All advertising materials mentioning features or use of this software
##    must display the following acknowledgement:
##        This product includes software developed by Terrapin Communications,
##        Inc. and its contributors for RANCID.
## 4. Neither the name of Terrapin Communications, Inc. nor the names of its
##    contributors may be used to endorse or promote products derived from
##    this software without specific prior written permission.
## 5. It is requested that non-binding fixes and modifications be contributed
##    back to Terrapin Communications, Inc.
##
## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS
## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS
## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
## POSSIBILITY OF SUCH DAMAGE.
#
# The login expect scripts were based on Erik Sherk's gwtn, by permission.
#
# tlogin - Netopis login
#
# Modified by Ed Ravin for Netopia.

# Usage line
set usage "Usage: $argv0 \[-dSV\] \[-autoenable\] \[-noenable\] \[-c command\] \
\[-Evar=x\] \[-e enable-password\] \[-f cloginrc-file\] \[-p user-password\] \
\[-s script-file\] \[-t timeout\] \[-u username\] \
\[-V\] \[-v vty-password\] \[-w enable-username\] \[-x command-file\] \
\[-y ssh_cypher_type\] router \[router...\]\n"

# env(CLOGIN) may contain:
#       x == do not set xterm banner or name

# Password file
set password_file $env(HOME)/.cloginrc
# Default is to login to the router
set do_command 0
set do_script 0
# The default is to automatically enable
set avenable 1
# The default is that you login non-enabled (tacacs can have you login already
# enabled)
set avautoenable 0
# The default is to look in the password file to find the passwords.  This
# tracks if we receive them on the command line.
set do_passwd 1
set do_enapasswd 1
# Sometimes routers take awhile to answer (the default is 10 sec)
set timeoutdflt 45
# attempt at platform switching.
set platform ""

# Find the user in the ENV, or use the unix userid.
if {[ info exists env(CISCO_USER) ] } {
    set default_user $env(CISCO_USER)
} elseif {[ info exists env(USER) ]} {
    set default_user $env(USER)
} elseif {[ info exists env(LOGNAME) ]} {
    set default_user $env(LOGNAME)
} else {
    # This uses "id" which I think is portable.  At least it has existed
    # (without options) on all machines/OSes I've been on recently -
    # unlike whoami or id -nu.
    if [ catch {exec id} reason ] {
        send_error "\nError: could not exec id: $reason\n"
        exit 1
    }
    regexp {\(([^)]*)} "$reason" junk default_user
}

# Process the command line
for {set i 0} {$i < $argc} {incr i} {
    set arg [lindex $argv $i]

    switch  -glob -- $arg {
        } -d {
            exp_internal 1
        # Username
        } -u* {
            if {! [  regexp .\[uU\](.+) $arg ignore user]} {
                incr i
                set username [ lindex $argv $i ]
            }
        # VTY Password
        } -p* {
            if {! [  regexp .\[pP\](.+) $arg ignore userpasswd]} {
                incr i
                set userpasswd [ lindex $argv $i ]
            }
            set do_passwd 0
        # ssh passphrase
        } -r* {
            # ignore -r
        # VTY Password
        } -v* {
            if {! [  regexp .\[vV\](.+) $arg ignore passwd]} {
                incr i
                set passwd [ lindex $argv $i ]
            }
            set do_passwd 0
        # Enable Username
        } -w* {
            if {! [  regexp .\[wW\](.+) $arg ignore enauser]} {
                incr i
                set enausername [ lindex $argv $i ]
            }
        # Environment variable to pass to -s scripts
        } -E* {
            if {[ regexp .\[E\](.+)=(.+) $arg ignore varname varvalue]} {
                set E$varname $varvalue
            } else {
                send_user "\nError: invalid format for -E in $arg\n"
                exit 1
            }
        # Enable Password
        } -e* {
            if {! [  regexp .\[e\](.+) $arg ignore enapasswd]} {
                incr i
                set enapasswd [ lindex $argv $i ]
            }
            set do_enapasswd 0
        # Command to run.
        } -c* {
            if {! [  regexp .\[cC\](.+) $arg ignore command]} {
                incr i
                set command [ lindex $argv $i ]
            }
            set do_command 1
        # Expect script to run.
        } -s* {
            if {! [  regexp .\[sS\](.+) $arg ignore sfile]} {
                incr i
                set sfile [ lindex $argv $i ]
            }
            if { ! [ file readable $sfile ] } {
                send_user "\nError: Can't read $sfile\n"
                exit 1
            }
            set do_script 1
        # save config on exit
        } -S* {
            set do_saveconfig 1
        # 'ssh -c' cypher type
        } -y* {
            if {! [  regexp .\[eE\](.+) $arg ignore cypher]} {
                incr i
                set cypher [ lindex $argv $i ]
            }
        # alternate cloginrc file
        } -f* {
            if {! [ regexp .\[fF\](.+) $arg ignore password_file]} {
                incr i
                set password_file [ lindex $argv $i ]
            }
        # Timeout
        } -t* {
            if {! [ regexp .\[tT\](.+) $arg ignore timeout]} {
                incr i
                set timeoutdflt [ lindex $argv $i ]
            }
        # Command file
        } -x* {
            if {! [  regexp .\[xX\](.+) $arg ignore cmd_file]} {
                incr i
                set cmd_file [ lindex $argv $i ]
            }
            if [ catch {set cmd_fd [open $cmd_file r]} reason ] {
                send_user "\nError: $reason\n"
                exit 1
            }
            set cmd_text [read $cmd_fd]
            close $cmd_fd
            set command [join [split $cmd_text \n] \;]
            set do_command 1
        # Version string
        } -V* {
            send_user "rancid 2.3.8\n"
            exit 0
        # Do we enable?
        } -noenable {
            set avenable 0
        # Does tacacs automatically enable us?
        } -autoenable {
            set avautoenable 1
            set avenable 0
        } -* {
            send_user "\nError: Unknown argument! $arg\n"
            send_user $usage
            exit 1
        } default {
            break
        }
    }
}
# Process routers...no routers listed is an error.
if { $i == $argc } {
    send_user "\nError: $usage"
}

# Only be quiet if we are running a script (it can log its output
# on its own)
if { $do_script } {
    log_user 0
} else {
    log_user 1
}

#
# Done configuration/variable setting.  Now run with it...
#

# Sets Xterm title if interactive...if its an xterm and the user cares
proc label { host } {
    global env
    # if CLOGIN has an 'x' in it, don't set the xterm name/banner
    if [info exists env(CLOGIN)] {
        if {[string first "x" $env(CLOGIN)] != -1} { return }
    }
    # take host from ENV(TERM)
    if [info exists env(TERM)] {
        if [regexp \^(xterm|vs) $env(TERM) ignore ] {
            send_user "\033]1;[lindex [split $host "."] 0]\a"
            send_user "\033]2;$host\a"
        }
    }
}

# This is a helper function to make the password file easier to
# maintain.  Using this the password file has the form:
# add password sl*      pete cow
# add password at*      steve
# add password *        hanky-pie
proc add {var args} { global int_$var ; lappend int_$var $args}
proc include {args} {
    global env
    regsub -all "(^{|}$)" $args {} args
    if { [ regexp "^/" $args ignore ] == 0 } {
        set args $env(HOME)/$args
    }
    source_password_file $args
}

proc find {var router} {
    upvar int_$var list
    if { [info exists list] } {
        foreach line $list {
            if { [string match [lindex $line 0] $router ] } {
                return [lrange $line 1 end]
            }
        }
    }
    return {}
}

# Loads the password file.  Note that as this file is tcl, and that
# it is sourced, the user better know what to put in there, as it
# could install more than just password info...  I will assume however,
# that a "bad guy" could just as easy put such code in the clogin
# script, so I will leave .cloginrc as just an extention of that script
proc source_password_file { password_file } {
    global env
    if { ! [file exists $password_file] } {
        send_user "\nError: password file ($password_file) does not exist\n"
        exit 1
    }
    file stat $password_file fileinfo
    if { [expr ($fileinfo(mode) & 007)] != 0000 } {
        send_user "\nError: $password_file must not be world readable/writable\n"
        exit 1
    }
    if [ catch {source $password_file} reason ] {
        send_user "\nError: $reason\n"
        exit 1
    }
}

# Log into the router.
proc login { router user userpswd passwd enapasswd cmethod cyphertype } {
    global spawn_id in_proc do_command do_script platform
    global prompt u_prompt p_prompt e_prompt sshcmd usercmd usercmd_chat
        global otpinuse
    set in_proc 1
    set uprompt_seen 0

    # try each of the connection methods in $cmethod until one is successful
    set progs [llength $cmethod]
    foreach prog [lrange $cmethod 0 end] {
        if [string match "telnet*" $prog] {
            regexp {telnet(:([^[:space:]]+))*} $prog command suffix port
            if {"$port" == ""} {
                set retval [ catch {spawn telnet $router} reason ]
            } else {
                set retval [ catch {spawn telnet $router $port} reason ]
            }
            if { $retval } {
                send_user "\nError: telnet failed: $reason\n"
                exit 1
            }
        } elseif [string match "ssh*" $prog] {
            regexp {ssh(:([^[:space:]]+))*} $prog command suffix port
            set cmd $sshcmd
            if {"$port" != ""} {
                set cmd "$cmd -p $port"
            }
            set retval [ catch {eval spawn [split "$cmd -c $cyphertype -x -l $user $router" { }]} reason ]
            if { $retval } {
                send_user "\nError: $cmd failed: $reason\n"
                exit 1
            }
        } elseif [string match "usercmd" $prog] { # user supplies connect cmd
                set retval [ catch {eval spawn $usercmd} reason ]
                if { $retval } {
                    send_user "\nError: '$usercmd' failed: $reason\n"
                    exit 1
                }
                if { [llength $usercmd_chat] > 0 } {
                        #send_user "\nExecuting usercmd_chat: $usercmd_chat\n"
                        sleep 0.3
                        foreach {i j} $usercmd_chat {
                                expect {
                                        -re $i { eval send -- "\"$j\""}
                                        timeout { send "\r"; send_user "\nTimeout in usercmd_chat waiting for -re $i: punting with CR\n"; break }
                                }
                        }
                }
        } elseif ![string compare $prog "rsh"] {
            if [ catch {spawn rsh -l $user $router} reason ] {
                send_user "\nError: rsh failed: $reason\n"
                exit 1
            }
        } else {
            puts "\nError: unknown connection method: $prog"
            return 1
        }
        incr progs -1
        sleep 0.3

        # This helps cleanup each expect clause.
        expect_after {
            timeout {
                send_user "\nError: TIMEOUT reached\n"
                catch {close}; wait
                if { $in_proc} {
                    return 1
                } else {
                    continue
                }
            } eof {
                send_user "\nError: EOF received\n"
                catch {close}; wait
                if { $in_proc} {
                    return 1
                } else {
                    continue
                }
            }
        }

    # Here we get a little tricky.  There are several possibilities:
    # the router can ask for a username and passwd and then
    # talk to the TACACS server to authenticate you, or if the
    # TACACS server is not working, then it will use the enable
    # passwd.  Or, the router might not have TACACS turned on,
    # then it will just send the passwd.
    # if telnet fails with connection refused, try ssh
    expect {
        -re "(Connection refused|Secure connection \[^\n\r]+ refused)" {
            catch {close}; wait
            if !$progs {
                send_user "\nError: Connection Refused ($prog): $router\n"
                return 1
            }
        }
        -re "(Connection closed by|Connection to \[^\n\r]+ closed)" {
            catch {close}; wait
            if !$progs {
                send_user "\nError: Connection closed ($prog): $router\n"
                return 1
            }
        }
        eof { send_user "\nError: Couldn't login: $router\n"; wait; return 1 }
        -nocase "unknown host\r" {
            catch {close};
            send_user "\nError: Unknown host $router\n"; wait; return 1
        }
        "Host is unreachable" {
            catch {close};
            send_user "\nError: Host Unreachable: $router\n"; wait; return 1
        }
        "No address associated with name" {
            catch {close};
            send_user "\nError: Unknown host $router\n"; wait; return 1
        }
        -re "(Host key not found |The authenticity of host .* be established).* \\(yes/no\\)\\?" {
            send "yes\r"
            send_user "\nHost $router added to the list of known hosts.\n"
            exp_continue }
        -re "HOST IDENTIFICATION HAS CHANGED.* \\(yes/no\\)\\?" {
            send "no\r"
            send_user "\nError: The host key for $router has changed.  Update the SSH known_hosts file accordingly.\n"
            return 1 }
        -re "HOST IDENTIFICATION HAS CHANGED\[^\n\r]+" {
            send_user "\nError: The host key for $router has changed.  Update the SSH known_hosts file accordingly.\n"
            return 1
        }
        -re "Offending key for .* \\(yes/no\\)\\?" {
            send "no\r"
            send_user "\nError: host key mismatch for $router.  Update the SSH known_hosts file accordingly.\n"
            return 1 }
        -re "(denied|Sorry)"    {
                                  send_user "\nError: Check your passwd for $router\n"
                                  catch {close}; wait; return 1
                                }
        "Login failed"          {
                                  send_user "\nError: Check your passwd for $router\n"
                                  return 1
                                }
        -re "% (Bad passwords|Authentication failed)"   {
                                  send_user "\nError: Check your passwd for $router\n"
                                  return 1
                                }
        "Press any key to continue." {
                                  # send_user "Pressing the ANY key\n"
                                  send "\r"
                                  exp_continue
                                }
        -re "Enter Selection: " {
                                  # Catalyst 1900s have some lame menu.  Enter
                                  # K to reach a command-line.
                                  send "K\r"
                                  exp_continue;
                                }
        -re "Netopia.*always start from this main screen" {
                # send control-N to escape from the Playskool menu
                send -- "\x0e"
                set platform "netopia"
                set prompt "#"
                set autoenable 1
                return 0
        }
        -re "@\[^\r\n]+ $p_prompt"      {
                                          # ssh pwd prompt
                                          sleep 1
                                          send -- "$userpswd\r"
                                          exp_continue
                                        }
        -re "$u_prompt"         {
                                  send -- "$user\r"
                                  set uprompt_seen 1
                                  exp_continue
                                }
        -re "(s/key|otp-\[0-9a-zA-Z]+) +\[0-9]+ +\[-0-9a-zA-Z]+\[ \r\n]" {
                if { !$otpinuse} {
                        exp_continue
                }
                set challenge $expect_out(0,string)
                regsub {[ \r\n]$} $challenge {} challenge
                if [ catch {exec otphelper $router "$challenge"} userpswd ] {
                        send_error "\nError: login: 'otphelper $router $challenge' failed.\nRun otphelper standalone to diagnose further.\n"
                        exit 1
                }
                exp_continue
        }
        -re "$p_prompt"         {
                                  sleep 1
                                  if {$uprompt_seen == 1} {
                                        send -- "$userpswd\r"
                                  } else {
                                        send -- "$passwd\r"
                                  }
                                  exp_continue
                                }
        -re "$prompt"           { break; }
        "Login invalid"         {
                                  send_user "\nError: Invalid login: $router\n";
                                  catch {close}; wait; return 1
                                }
     }
    }

    set in_proc 0
    return 0
}

# Enable
proc do_enable { enauser enapasswd } {
    global prompt in_proc
    global u_prompt e_prompt
        global router otpinuse
    set in_proc 1

    send "enable\r"
    expect {
        -re "(s/key|otp-\[0-9a-zA-Z]+) +\[0-9]+ +\[-0-9a-zA-Z]+\[ \r\n]" {
                if { !$otpinuse} {
                        exp_continue
                }
                set challenge $expect_out(0,string)
                regsub {[ \r\n]$} $challenge {} challenge
                if [ catch {exec otphelper $router "$challenge"} enapasswd ] {
                        send_error "\nError: enable: 'otphelper $router $challenge' failed.\nRun otphelper standalone to diagnose further.\n"
                        exit 1
                }
                exp_continue
        }
        -re "$u_prompt" { send -- "$enauser\r"; exp_continue}
        -re "$e_prompt" { send -- "$enapasswd\r"; exp_continue}
        "#"             { set prompt "#" }
        "(enable)"      { set prompt "> (enable) " }
        -re "(denied|Sorry|Incorrect)"  {
                          # % Access denied - from local auth and poss. others
                          send_user "\nError: Check your Enable passwd\n";
                          return 1
                        }
        "% Error in authentication" {
                          send_user "\nError: Check your Enable passwd\n"
                          return 1
                        }
        "% Bad passwords" {
                          send_user "\nError: Check your Enable passwd\n"
                          return 1
                        }
    }
    # We set the prompt variable (above) so script files don't need
    # to know what it is.
    set in_proc 0
    return 0
}

# Run commands given on the command line.
proc run_commands { prompt command } {
    global in_proc platform
    set in_proc 1

    # If the prompt is (enable), then we are on a switch and the
    # command is "set length 0"; otherwise its "term length 0".
    # skip if its an extreme (since the pager can not be disabled on a
    # per-vty basis).
    if { [ string compare "extreme" "$platform" ] } {
        if [ regexp -- ".*> .*enable" "$prompt" ] {
            send "set length 0\r"
            # This is ugly, but reduces code duplication, allowing the
            # subsequent expects to handle everything as normal.
            set command "set logging session disable;$command"
        } elseif { ![ string compare "netopia" "$platform" ] } {
                # kludge - should instead skip re-sensing prompt if platform netopia
                set prompt "#"
        } else {
            send "term length 0\r"
        }
        # escape any parens in the prompt, such as "(enable)"
        regsub -all {[)(]} $prompt {\\&} reprompt
        # match cisco config mode prompts too, such as router(config-if)#,
        # but catalyst does not change in this fashion.
        regsub -all {^(.{1,14}).*([#>])$} $reprompt {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt
        expect {
            -re $reprompt       {}
            -re "\[\n\r]+"      { exp_continue }
        }
    } else {
        regsub -all "\[)(]" $prompt {\\&} reprompt
    }

    # this is the only way i see to get rid of more prompts in o/p..grrrrr
    log_user 0

    set commands [split $command \;]
    set num_commands [llength $commands]
    # the pager can not be turned off on the PIX, so we have to look
    # for the "More" prompt.  the extreme is equally obnoxious, with a
    # global switch in the config.
    for {set i 0} {$i < $num_commands} { incr i} {
        send -- "[subst -nocommands [lindex $commands $i]]\r"
        expect {
            -re "\b+"                           { exp_continue }
            -re "^\[^\n\r *]*$reprompt"         { send_user -- "$expect_out(buffer)"
                                                }
            -re "^\[^\n\r]*$reprompt."          { send_user -- "$expect_out(buffer)"
                                                  exp_continue }
            -re "\[\n\r]+"                      { send_user -- "$expect_out(buffer)"
                                                  exp_continue }
            -re "\[^\r\n]*Press <SPACE> to cont\[^\r\n]*"       {
                                                  send " "
                                                  # bloody ^[[2K after " "
                                                  expect {
                                                        -re "^\[^\r\n]*\r" {}
                                                        }
                                                  exp_continue
                                                }
            -re "^ *--More--\[^\n\r]*"          {
                                                  send " "
                                                  exp_continue }
            -re "^<-+ More -+>\[^\n\r]*"        {
                                                  send_user -- "$expect_out(buffer)"
                                                  send " "
                                                  exp_continue }
        }
    }
    log_user 1

    if { [ string compare "extreme" "$platform" ] } {
        send "exit\r"
    } else {
        send "quit\r"
    }
    expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabled mode.
                                                  send "exit\r"
                                                  exp_continue;
                                                }
        "Do you wish to save your configuration changes" {
                                                  send "n\r"
                                                  exp_continue
                                                }
        -re "\[\n\r]+"                          { exp_continue }
        timeout                                 { close; return 0 }
        eof                                     { return 0 }
    }
    set in_proc 0
}

#
# For each router... (this is main loop)
#
source_password_file $password_file
set in_proc 0
foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # device timeout
    set timeout [find timeout $router]
    if { [llength $timeout] == 0 } {
        set timeout $timeoutdflt
    }

    # Figure out prompt.
    # Since autoenable is off by default, if we have it defined, it
    # was done on the command line. If it is not specifically set on the
    # command line, check the password file.
    if $avautoenable {
        set autoenable 1
        set enable 0
        set prompt "(#| \\(enable\\))"
    } else {
        set ae [find autoenable $router]
        if { "$ae" == "1" } {
            set autoenable 1
            set enable 0
            set prompt "(#| \\(enable\\))"
        } else {
            set autoenable 0
            set enable $avenable
            set prompt ">"
        }
    }

    # look for noenable option in .cloginrc
    if { [find noenable $router] == "1" } {
        set enable 0
    }

        # is OTP in use?  If so, bypass password checks
        set otpinuse 0
        if { [find otp_secret $router] != "" } {
                set otpinuse 1
        }

    # Figure out passwords
    if { $do_passwd || $do_enapasswd } {
      set pswd [find password $router]
      if { [llength $pswd] == 0 && !$otpinuse} {
        send_user "\nError: no password for $router in $password_file.\n"
        continue
      }
      if { $enable && $do_enapasswd && $autoenable == 0 && [llength $pswd] < 2  && !$otpinuse } {
        send_user "\nError: no enable password for $router in $password_file.\n"
        continue
      }
      set passwd [join [lindex $pswd 0] ""]
      set enapasswd [join [lindex $pswd 1] ""]
    }

    # Figure out username
    if {[info exists username]} {
      # command line username
      set ruser $username
    } else {
      set ruser [join [find user $router] ""]
      if { "$ruser" == "" } { set ruser $default_user }
    }

    # Figure out username's password (if different from the vty password)
    if {[info exists userpasswd]} {
      # command line username
      set userpswd $userpasswd
    } else {
      set userpswd [join [find userpassword $router] ""]
      if { "$userpswd" == "" } { set userpswd $passwd }
    }

    # Figure out enable username
    if {[info exists enausername]} {
      # command line enausername
      set enauser $enausername
    } else {
      set enauser [join [find enauser $router] ""]
      if { "$enauser" == "" } { set enauser $ruser }
    }

    # Figure out prompts
    set u_prompt [find userprompt $router]
    if { "$u_prompt" == "" } {
        set u_prompt "(Username|Login|login|user name|name):"
    } else {
        set u_prompt [join [lindex $u_prompt 0] ""]
    }
    set p_prompt [find passprompt $router]
    if { "$p_prompt" == "" } {
        set p_prompt "(\[Pp]assword|passwd):"
    } else {
        set p_prompt [join [lindex $p_prompt 0] ""]
    }
    set e_prompt [find enableprompt $router]
    if { "$e_prompt" == "" } {
        set e_prompt "\[Pp]assword:"
    } else {
        set e_prompt [join [lindex $e_prompt 0] ""]
    }

    # Figure out cypher type
    if {[info exists cypher]} {
        # command line cypher type
        set cyphertype $cypher
    } else {
        set cyphertype [find cyphertype $router]
        if { "$cyphertype" == "" } { set cyphertype "3des" }
    }

    # Figure out connection method
    set cmethod [find method $router]
    if { "$cmethod" == "" } { set cmethod {{telnet} {ssh}} }

    # Figure out the SSH executable name
    set sshcmd [join [lindex [find sshcmd $router] 0] ""]
    if { "$sshcmd" == "" } { set sshcmd {ssh} }

    # If user provides a router-specific connection method, use it
    set usercmd [find usercmd $router]
    set usercmd_chat [find usercmd_chat $router]

    # Login to the router
    if {[login $router $ruser $userpswd $passwd $enapasswd $cmethod $cyphertype]} {
        continue
    }
    if { $enable } {
        if {[do_enable $enauser $enapasswd]} {
            if { $do_command || $do_script } {
                close; wait
                continue
            }
        }
    }
    # we are logged in, now figure out the full prompt
    send "\r"
    expect {
        -re "\[\r\n]+"          { exp_continue; }
        -re "^(.+:)1 $prompt"   { # stoopid extreme cmd-line numbers and
                                  # prompt based on state of config changes,
                                  # which may have an * at the beginning.
                                  set junk $expect_out(1,string)
                                  regsub -all "^\\\* " $expect_out(1,string) {} junk
                                  set prompt ".? ?$junk\[0-9]+ $expect_out(2,string)";
                                  set platform "extreme"
                                }
        -re "^.+$prompt"        { set junk $expect_out(0,string);
                                  regsub -all "\[\]\[]" $junk {\\&} prompt;
                                }
        -re "^.+> \\\(enable\\\)"       {
                                  set junk $expect_out(0,string);
                                  regsub -all "\[\]\[]" $junk {\\&} prompt;
                                }
    }

    if { $do_command } {
        if {[run_commands $prompt $command]} {
            continue
        }
    } elseif { $do_script } {
        # If the prompt is (enable), then we are on a switch and the
        # command is "set length 0"; otherwise its "term length 0".
        if [ regexp -- ".*> .*enable" "$prompt" ] {
            send "set length 0\r"
            send "set logging session disable\r"
        } elseif { ![ string compare "netopia" "$platform" ] } {
                # do nothing
        } else {
            send "term length 0\r"
        }
        expect -re $prompt      {}
        source $sfile
        close
    } else {
        label $router
        log_user 1
        interact
    }

    # End of for each router
    wait
    sleep 0.3
}
exit 0

(carmom@doon)-(0)-(11:45 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> ls
agmrancid  avologin   cat5rancid      do_auth.py  f5rancid  francid     htlogin   jrancid     mrvlogin   nlogin    nxrancid  rancid-cvs  rivlogin   tac_plus  tntrancid  zrancid
alogin     avorancid  clogin          elogin      flogin    hlogin      htrancid  lg.cgi      mrvrancid  nrancid   par       rancid-fe   rivrancid  tac_pwd   trancid
arancid    blogin     control_rancid  erancid     fnlogin   hpuifilter  jerancid  lgform.cgi  mtlogin    nslogin   prancid   rancid-run  rrancid    tlogin    xrancid
arrancid   brancid    cssrancid       f10rancid   fnrancid  hrancid     jlogin    mrancid     mtrancid   nsrancid  rancid    rblogin     srancid    tntlogin  xrrancid

(carmom@doon)-(0)-(11:47 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> cat francid
#! /usr/bin/perl
##
## $Id: francid.in 2279 2011-01-31 22:41:00Z heas $
##
## rancid 2.3.8
## Copyright (c) 1997-2008 by Terrapin Communications, Inc.
## All rights reserved.
##
## This code is derived from software contributed to and maintained by
## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan,
## Pete Whiting, Austin Schutz, and Andrew Fort.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
##    notice, this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright
##    notice, this list of conditions and the following disclaimer in the
##    documentation and/or other materials provided with the distribution.
## 3. All advertising materials mentioning features or use of this software
##    must display the following acknowledgement:
##        This product includes software developed by Terrapin Communications,
##        Inc. and its contributors for RANCID.
## 4. Neither the name of Terrapin Communications, Inc. nor the names of its
##    contributors may be used to endorse or promote products derived from
##    this software without specific prior written permission.
## 5. It is requested that non-binding fixes and modifications be contributed
##    back to Terrapin Communications, Inc.
##
## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS
## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS
## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
## POSSIBILITY OF SUCH DAMAGE.
#
# Amazingly hacked version of Hank's rancid - this one tries to
# deal with foundrys and foundrys OEM'd by HP as Procurves.
#
#  RANCID - Really Awesome New Cisco confIg Differ
#
# usage: rancid [-dV] [-l] [-f filename | hostname]
#
use Getopt::Std;
getopts('dflV');
if ($opt_V) {
    print "rancid 2.3.8\n";
    exit(0);
}
$log = $opt_l;
$debug = $opt_d;
$file = $opt_f;
$host = $ARGV[0];
$clean_run = 0;
$found_end = 0;
$timeo = 90;                            # flogin timeout in seconds

my(@commandtable, %commands, @commands);# command lists
my($aclsort) = ("ipsort");              # ACL sorting mode
my($filter_commstr);                    # SNMP community string filtering
my($filter_pwds);                       # password filtering mode

# This routine is used to print out the router configuration
sub ProcessHistory {
    my($new_hist_tag,$new_command,$command_string,@string) = (@_);
    if ((($new_hist_tag ne $hist_tag) || ($new_command ne $command))
        && scalar(%history)) {
        print eval "$command \%history";
        undef %history;
    }
    if (($new_hist_tag) && ($new_command) && ($command_string)) {
        if ($history{$command_string}) {
            $history{$command_string} = "$history{$command_string}@string";
        } else {
            $history{$command_string} = "@string";
        }
    } elsif (($new_hist_tag) && ($new_command)) {
        $history{++$#history} = "@string";
    } else {
        print "@string";
    }
    $hist_tag = $new_hist_tag;
    $command = $new_command;
    1;
}

sub numerically { $a <=> $b; }

# This is a sort routine that will sort numerically on the
# keys of a hash as if it were a normal array.
sub keynsort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $key (sort numerically keys(%lines)) {
        $sorted_lines[$i] = $lines{$key};
        $i++;
    }
    @sorted_lines;
}

# This is a sort routine that will sort on the
# keys of a hash as if it were a normal array.
sub keysort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $key (sort keys(%lines)) {
        $sorted_lines[$i] = $lines{$key};
        $i++;
    }
    @sorted_lines;
}

# This is a sort routine that will sort on the
# values of a hash as if it were a normal array.
sub valsort{
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $key (sort values %lines) {
        $sorted_lines[$i] = $key;
        $i++;
    }
    @sorted_lines;
}

# This is a numerical sort routine (ascending).
sub numsort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $num (sort {$a <=> $b} keys %lines) {
        $sorted_lines[$i] = $lines{$num};
        $i++;
    }
    @sorted_lines;
}

# This is a sort routine that will sort on the
# ip address when the ip address is anywhere in
# the strings.
sub ipsort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $addr (sort sortbyipaddr keys %lines) {
        $sorted_lines[$i] = $lines{$addr};
        $i++;
    }
    @sorted_lines;
}

# These two routines will sort based upon IP addresses
sub ipaddrval {
    my(@a) = ($_[0] =~ m#^(\d+)\.(\d+)\.(\d+)\.(\d+)$#);
    $a[3] + 256 * ($a[2] + 256 * ($a[1] +256 * $a[0]));
}
sub sortbyipaddr {
    &ipaddrval($a) <=> &ipaddrval($b);
}

# This routine parses "show version"
sub ShowVersion {
    my($slot);

    print STDERR "    In ShowVersion: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        next if /^\s*$/;
        last if (/^$prompt/);

        next if (/^(The system |Crash time)/);
        next if (/^(System|(Active|Standby) Management|LP Slot \d+) uptime is/);
        # remove uptime on newer switches
        s/(STACKID \d+)\s+system uptime is.*$/$1/;

        s/^\s*(HW|SW)/$1/;
        s/^\s*(Compiled on)/SW: $1/;
        s/^\s*(\(\d+ bytes\) from )/SW: $1/;

        #s/^(HW.*)/$1\n/;
        if (/^SL (\d+)/) {
            $slot = "Slot $1";
            s/^SL \d+/$slot/;
        }
        if (/MHz .* processor/) {
            $slot = "MGMT";
        }
        s/^(\s*\d+ )/$slot:$1/;
        s/^===*//;

        ProcessHistory("VERSION","","","!$_");
    }
    ProcessHistory("VERSION","","","!\n");
    return(0);
}

# This routine parses "show chassis"
sub ShowChassis {
    my($skip) = 0;

    print STDERR "    In ShowChassis: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/ from /);
        next if (/current temperature/i);
        return(1) if (/^\s+\^$/);               # edgeiron invalid command

        if (/^---/ || /^$/) { # next section reached
            $skip = 0;
        }
        if (/(POWERS|TEMPERATURE READINGS)/) {
            $skip = 1;
        }
        if (/fan controlled temperature:/i ||
            /fan speed switching temperature thresholds/i) {
            $skip = 1;
        }
        if (/THERMAL PLANE/) {
            $skip = 1;
        }
        if (/temperature:/i) {
            $skip = 1;
        }
        s/(Fan \d+ \S+), speed .*/$1/;
        if (/speed/i) {
            $skip = 1;
        }
        next if $skip;

        ProcessHistory("CHASSIS","","","! $_");
    }
    ProcessHistory("CHASSIS","","","!\n");
    return(0);
}

# This routine parses "show flash"
sub ShowFlash {
    print STDERR "    In ShowFlash: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^\s*$/);
        return(1) if (/^\s+\^$/);               # edgeiron invalid command

        ProcessHistory("FLASH","","","!Flash: $_");
    }
    ProcessHistory("","","","!\n");
    return;
}

# This routine parses "show module"
sub ShowModule {
    print STDERR "    In ShowModule: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        return(1) if (/Invalid input (->|detected)/);
        return(1) if (/^\s+\^$/);               # edgeiron invalid command
        next if (/^\s*$/);
        next if (/:\s*$/);

        ProcessHistory("MODULE","","","!Module: $_");
    }
    ProcessHistory("","","","!\n");
    return(0);
}

# This routine processes a "write term"
sub WriteTerm {
    print STDERR "    In WriteTerm: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        return(1) if (/Invalid input (->|detected)/);
        return(1) if (/^\s+\^$/);               # edgeiron invalid command
        return(0) if ($found_end);              # Only do this routine once
        last if (/^$prompt/);

        /current configuration\s*:/i && next;
        /building configuration\.+\s*/i && next;
        /building running-config, please wait/i && next;        # edgeiron
        /^ver \d+\.\d+/ && next;
        /^module \d+ / && next;

        /^ntp clock-period /    && next; # kill ntp clock-period
        /^ length /             && next; # kill length on serial lines
        /^ width /              && next; # kill width on serial lines
        # filter out any RCS/CVS tags to avoid confusing local CVS storage
        s/\$(Revision|Id):/ $1:/;
        # sort secure-mac-addresses.  Note: There is no way to determine which
        # have been added dynamically vs statically.  Thus, sort them?
        /secure-mac-address (\S+)/ &&
            ProcessHistory("SECMAC","keysort","$1","$_") && next;
        # OR filter them? XXX
        #next if (/secure-mac-address/);

        # order access-lists
        /^access-list\s+(\d+)\s+(perm|deny)\s+(\d\S+)(\/\d+)\s*$/ &&
            ProcessHistory("PACL $1 $2","$aclsort","$3","$_")
            && next;
        /^access-list\s+(\d\d?)\s+(\S+)\s+(\S+)/ &&
            ProcessHistory("ACL $1 $2","$aclsort","$3","$_") && next;
        # order extended access-lists
        /^access-list\s+(\d\d\d)\s+(\S+)\s+ip\s+host\s+(\S+)/ &&
            ProcessHistory("EACL $1 $2","$aclsort","$3","$_") && next;
        /^access-list\s+(\d\d\d)\s+(\S+)\s+ip\s+(\d\S+)/ &&
            ProcessHistory("EACL $1 $2","$aclsort","$3","$_") && next;
        /^access-list\s+(\d\d\d)\s+(\S+)\s+ip\s+any/ &&
            ProcessHistory("EACL $1 $2","$aclsort","0.0.0.0","$_") && next;
        # order arp lists
        /^arp\s+(\d+\.\d+\.\d+\.\d+)\s+/ &&
            ProcessHistory("ARP","$aclsort","$1","$_") && next;
        # order logging statements
        /^logging (\d+\.\d+\.\d+\.\d+)/ &&
            ProcessHistory("LOGGING","ipsort","$1","$_") && next;
        # order/prune snmp-server host/community statements
        if (/^(snmp-server host )(\d+\.\d+\.\d+\.\d+)/) {
            if ($filter_commstr) {
                ProcessHistory("SNMPSERVERHOST","ipsort","$2","!$1 $2 <removed>\n") && next;
            } else {
                ProcessHistory("SNMPSERVERHOST","ipsort","$2","$_") && next;
            }
        }
        if (/^(snmp-server community )(\S+)/) {
            if ($filter_commstr) {
                ProcessHistory("SNMPSERVERCOMM","keysort","$_","!$1<removed>$'") && next;
            } else {
                ProcessHistory("SNMPSERVERCOMM","keysort","$_","$_") && next;
            }
        }
        # order tacacs server statements
        if (/^(tacacs-server key )/ && $filter_pwds >= 1) {
            ProcessHistory("","","","! $1<removed>\n");
            next;
        }
        # delete ntp auth password
        if (/^(ntp authentication-key \d+ md5) / && $filter_pwds >= 2) {
            ProcessHistory("","","","!$1 <removed>\n");
            next;
        }
        # order ntp peers/servers
        if (/^ntp (server|peer) (\d+)\.(\d+)\.(\d+)\.(\d+)/) {
            $sortkey = sprintf("$1 %03d%03d%03d%03d",$2,$3,$4,$5);
            ProcessHistory("NTP","keysort",$sortkey,"$_");
            next;
        }
        # order ip host line statements
        /^ip host line(\d+)/ &&
            ProcessHistory("IPHOST","numsort","$1","$_") && next;
        # order ip nat source static statements
        /^ip nat (\S+) source static (\S+)/ &&
            ProcessHistory("IP NAT $1","ipsort","$2","$_") && next;

        # filter ssh public key
        if (/^(crypto key generate (rsa|dsa) public_key)/ &&
                $filter_pwds >= 2) {
            ProcessHistory("","","","!$1 <removed>\n");
            next;
        }
        # filter ssh private key
        if (/^(crypto key generate (rsa|dsa) private_key)/ &&
                $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n");
            next;
        }
        # filter ssl secret
        if (/^(crypto-ssl certificate generate secret_data)/ &&
            $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n");
            next;
        }

        # reorder listing of ports in a vlan
        if (/^ (?:un)?tagged ethe/) {
            chomp;
            s/^\s+//;
            s/\s+$//;

            my @list = split /\s+ethe\s+/, $_;
            my $tagtype = shift @list;

            while (@list) {
                ProcessHistory("","","",
                                " $tagtype ethe " . (shift @list) . "\n");
            }
            next;
        }


        ProcessHistory("","","","$_");
        # end of config
        if (/^end$/) {
            $found_end = 1;
            return(1);
        }
    }
    return(0);
}

# dummy function
sub DoNothing {print STDOUT;}

# Main
@commandtable = (
        {'show version'         => 'ShowVersion'},
        {'show chassis'         => 'ShowChassis'},
        {'show module'          => 'ShowModule'},
        {'show flash'           => 'ShowFlash'},
        {'write term'           => 'WriteTerm'},
        {'show running-config'  => 'WriteTerm'},
);
# Use an array to preserve the order of the commands and a hash for mapping
# commands to the subroutine and track commands that have been completed.
@commands = map(keys(%$_), @commandtable);
%commands = map(%$_, @commandtable);

$cisco_cmds=join(";",@commands);
$cmds_regexp = join("|", map quotemeta($_), @commands);

if (length($host) == 0) {
    if ($file) {
        print(STDERR "Too few arguments: file name required\n");
        exit(1);
    } else {
        print(STDERR "Too few arguments: host name required\n");
        exit(1);
    }
}
open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n";
select(OUTPUT);
# make OUTPUT unbuffered if debugging
if ($debug) { $| = 1; }

if ($file) {
    print STDERR "opening file $host\n" if ($debug);
    print STDOUT "opening file $host\n" if ($log);
    open(INPUT,"<$host") || die "open failed for $host: $!\n";
} else {
    print STDERR "executing flogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug);
    print STDOUT "executing flogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log);
    if (defined($ENV{NOPIPE}) && $ENV{NOPIPE} =~ /^YES/i) {
        system "flogin -t $timeo -c \"$cisco_cmds\" $host </dev/null > $host.raw 2>&1" || die "flogin failed for $host: $!\n";
        open(INPUT, "< $host.raw") || die "flogin failed for $host: $!\n";
    } else {
        open(INPUT,"flogin -t $timeo -c \"$cisco_cmds\" $host </dev/null |") || die "flogin failed for $host: $!\n";
    }
}

# determine ACL sorting mode
if ($ENV{"ACLSORT"} =~ /no/i) {
    $aclsort = "";
}
# determine community string filtering mode
if (defined($ENV{"NOCOMMSTR"}) &&
    ($ENV{"NOCOMMSTR"} =~ /yes/i || $ENV{"NOCOMMSTR"} =~ /^$/)) {
    $filter_commstr = 1;
} else {
    $filter_commstr = 0;
}
# determine password filtering mode
if ($ENV{"FILTER_PWDS"} =~ /no/i) {
    $filter_pwds = 0;
} elsif ($ENV{"FILTER_PWDS"} =~ /all/i) {
    $filter_pwds = 2;
} else {
    $filter_pwds = 1;
}

ProcessHistory("","","","!RANCID-CONTENT-TYPE: foundry\n!\n");
TOP: while(<INPUT>) {
    tr/\015//d;
    if (/\#exit$/) {
        $clean_run=1;
        last;
    }
    if (/^Error:/) {
        print STDOUT ("$host flogin error: $_");
        print STDERR ("$host flogin error: $_") if ($debug);
        $clean_run=0;
        last;
    }
    while (/#\s*($cmds_regexp)\s*$/) {
        $cmd = $1;
        if (!defined($prompt)) {
            $prompt = ($_ =~ /^([^#]+#)/)[0];
            $prompt =~ s/([][}{)(\\])/\\$1/g;
            print STDERR ("PROMPT MATCH: $prompt\n") if ($debug);
        }
        print STDERR ("HIT COMMAND:$_") if ($debug);
        if (! defined($commands{$cmd})) {
            print STDERR "$host: found unexpected command - \"$cmd\"\n";
            $clean_run = 0;
            last TOP;
        }
        $rval = &{$commands{$cmd}};
        delete($commands{$cmd});
        if ($rval == -1) {
            $clean_run = 0;
            last TOP;
        }
    }
}
print STDOUT "Done $logincmd: $_\n" if ($log);
# Flush History
ProcessHistory("","","","");
# Cleanup
close(INPUT);
close(OUTPUT);

if (defined($ENV{NOPIPE}) && $ENV{NOPIPE} =~ /^YES/i) {
    unlink("$host.raw") if (! $debug);
}

# check for completeness
if (scalar(%commands) || !$clean_run || !$found_end) {
    if (scalar(%commands)) {
        printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands)));
        printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(%commands))) if ($debug);
    }
    if (!$clean_run || !$found_end) {
print STDERR "$host: End of run not found $clean_run || $found_end\n";
        print STDOUT "$host: End of run not found\n";
        print STDERR "$host: End of run not found\n" if ($debug);
        system("/usr/bin/tail -1 $host.new");
    }
    unlink "$host.new" if (! $debug);
}

(carmom@doon)-(0)-(11:47 AM Mon May 21)->
--------------------------------------------------------------------------------
-bash: --------------------------------------------------------------------------------------------------------------------------------------------------------: command not found

(carmom@doon)-(0)-(11:48 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> cat rancid
#! /usr/bin/perl
##
## $Id: rancid.in 2377 2012-01-31 22:55:13Z heas $
##
## rancid 2.3.8
## Copyright (c) 1997-2009 by Terrapin Communications, Inc.
## All rights reserved.
##
## This code is derived from software contributed to and maintained by
## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan,
## Pete Whiting, Austin Schutz, and Andrew Fort.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
##    notice, this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright
##    notice, this list of conditions and the following disclaimer in the
##    documentation and/or other materials provided with the distribution.
## 3. All advertising materials mentioning features or use of this software
##    must display the following acknowledgement:
##        This product includes software developed by Terrapin Communications,
##        Inc. and its contributors for RANCID.
## 4. Neither the name of Terrapin Communications, Inc. nor the names of its
##    contributors may be used to endorse or promote products derived from
##    this software without specific prior written permission.
## 5. It is requested that non-binding fixes and modifications be contributed
##    back to Terrapin Communications, Inc.
##
## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS
## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS
## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
## POSSIBILITY OF SUCH DAMAGE.
#
#  RANCID - Really Awesome New Cisco confIg Differ
#
# usage: rancid [-dV] [-l] [-f filename | hostname]
#
use Getopt::Std;
getopts('dflV');
if ($opt_V) {
    print "rancid 2.3.8\n";
    exit(0);
}
$log = $opt_l;
$debug = $opt_d;
$file = $opt_f;
$host = $ARGV[0];
$proc = "";
$ios = "IOS";
$clean_run = 0;
$found_end = 0;
$found_version = 0;
$found_env = 0;
$found_diag = 0;
$timeo = 90;                            # clogin timeout in seconds

my(@commandtable, %commands, @commands);# command lists
my($aclsort) = ("ipsort");              # ACL sorting mode
my($config_register);                   # configuration register value
my($filter_commstr);                    # SNMP community string filtering
my($filter_pwds);                       # password filtering mode
my($supbootdisk) = 0;                   # skip sup-bootflash if sup-bootdisk
                                        # worked

# This routine is used to print out the router configuration
sub ProcessHistory {
    my($new_hist_tag,$new_command,$command_string,@string) = (@_);
    if ((($new_hist_tag ne $hist_tag) || ($new_command ne $command))
        && scalar(%history)) {
        print eval "$command \%history";
        undef %history;
    }
    if (($new_hist_tag) && ($new_command) && ($command_string)) {
        if ($history{$command_string}) {
            $history{$command_string} = "$history{$command_string}@string";
        } else {
            $history{$command_string} = "@string";
        }
    } elsif (($new_hist_tag) && ($new_command)) {
        $history{++$#history} = "@string";
    } else {
        print "@string";
    }
    $hist_tag = $new_hist_tag;
    $command = $new_command;
    1;
}

sub numerically { $a <=> $b; }

# This is a sort routine that will sort numerically on the
# keys of a hash as if it were a normal array.
sub keynsort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $key (sort numerically keys(%lines)) {
        $sorted_lines[$i] = $lines{$key};
        $i++;
    }
    @sorted_lines;
}

# This is a sort routine that will sort on the
# keys of a hash as if it were a normal array.
sub keysort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $key (sort keys(%lines)) {
        $sorted_lines[$i] = $lines{$key};
        $i++;
    }
    @sorted_lines;
}

# This is a sort routine that will sort on the
# values of a hash as if it were a normal array.
sub valsort{
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $key (sort values %lines) {
        $sorted_lines[$i] = $key;
        $i++;
    }
    @sorted_lines;
}

# This is a numerical sort routine (ascending).
sub numsort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $num (sort {$a <=> $b} keys %lines) {
        $sorted_lines[$i] = $lines{$num};
        $i++;
    }
    @sorted_lines;
}

# This is a sort routine that will sort on the
# ip address when the ip address is anywhere in
# the strings.
sub ipsort {
    local(%lines) = @_;
    local($i) = 0;
    local(@sorted_lines);
    foreach $addr (sort sortbyipaddr keys %lines) {
        $sorted_lines[$i] = $lines{$addr};
        $i++;
    }
    @sorted_lines;
}

# These two routines will sort based upon IP addresses
sub ipaddrval {
    my(@a) = ($_[0] =~ m#^(\d+)\.(\d+)\.(\d+)\.(\d+)$#);
    $a[3] + 256 * ($a[2] + 256 * ($a[1] +256 * $a[0]));
}
sub sortbyipaddr {
    &ipaddrval($a) <=> &ipaddrval($b);
}

# This routine parses "show version"
sub ShowVersion {
    print STDERR "    In ShowVersion: $_" if ($debug);
    my($slaveslot);

    while (<INPUT>) {
        tr/\015//d;
        if (/^$prompt/) { $found_version = 1; last};
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(0) if ($found_version);          # Only do this routine once
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^Slave in slot (\d+) is running/) {
            $slave = " Slave:";
            $slaveslot = ", slot $1";
            next;
        }
        if (/cisco ios .* IOS-XE/i) { $ios = "XE"; }
        if (/^Application and Content Networking .*Software/) { $type = "CE"; }
        # treat the ACE like the Content Engines for matching endofconfig
        if (/^Cisco Application Control Software/) { $type = "CE"; }
        if (/^Cisco Storage Area Networking Operating System/) { $type = "SAN";}
        if (/^Cisco Nexus Operating System/) { $type = "NXOS";}
        /^Application and Content Networking Software Release /i &&
            ProcessHistory("COMMENTS","keysort","F1", "!Image: $_") && next;
        /^Cisco Secure PIX /i &&
            ProcessHistory("COMMENTS","keysort","F1", "!Image: $_") && next;
        # ASA "time-based licenses" - eg: bot-net
        /^This (PIX|platform) has a time-based license that will expire in\s+(\d{2,})\s+day.*$/ &&
            ProcessHistory("COMMENTS","keysort","D1",
                           "!This $1 has a time-based license\n") && next;
        # PIX 6 fail-over license, as in "This PIX has an Unrestricted (UR)
        # license."  PIX 7 as "his platform has ..."
        /^This (PIX|platform) has an?\s+(.*)$/ &&
            ProcessHistory("COMMENTS","keysort","D1", "!$_") && next;
        /^(Cisco )?IOS .* Software,? \(([A-Za-z0-9_-]*)\), .*Version\s+(.*)$/ &&
            ProcessHistory("COMMENTS","keysort","F1",
                "!Image:$slave Software: $2, $3\n") && next;
        /^([A-Za-z-0-9_]*) Synced to mainline version: (.*)$/ &&
            ProcessHistory("COMMENTS","keysort","F2",
                "!Image:$slave $1 Synced to mainline version: $2\n") && next;
        /^Compiled (.*)$/ &&
            ProcessHistory("COMMENTS","keysort","F3",
                "!Image:$slave Compiled: $1\n") && next;
        /^ROM: (IOS \S+ )?(System )?Bootstrap.*(Version.*)$/ &&
            ProcessHistory("COMMENTS","keysort","G1",
                "!ROM Bootstrap: $3\n") && next;
        if (/^Hardware:\s+(.*), (.* RAM), CPU (.*)$/) {
            ProcessHistory("COMMENTS","keysort","A1",
                "!Chassis type: $1 - a PIX\n");
            ProcessHistory("COMMENTS","keysort","A2",
                "!CPU: $3\n");
            ProcessHistory("COMMENTS","keysort","B1", "!Memory: $2\n");
        }
        /^serial number:\s+(.*)$/i &&
            ProcessHistory("COMMENTS","keysort","C1", "!Serial Number: $1\n") &&
            next;
        # More PIX stuff
        /^Encryption hardware device\s+:\s+(.*)/ &&
            ProcessHistory("COMMENTS","keysort","A3", "!Encryption: $1\n") &&
            next;
        /^running activation key\s*:\s+(.*)/i &&
            ProcessHistory("COMMENTS","keysort","D2", "!Key: $1\n") &&
            next;
        # Flash on the PIX or FWSM (FireWall Switch Module)
        /^Flash(\s+\S+)+ \@ 0x\S+,\s+(\S+)/ &&
            ProcessHistory("COMMENTS","keysort","B2", "!Memory: Flash $2\n") &&
            next;
        # CatOS 3500xl stuff
        /^system serial number\s*:\s+(.*)$/i &&
            ProcessHistory("COMMENTS","keysort","C1", "!Serial Number: $1\n") &&
            next;
        /^Model / &&
            ProcessHistory("COMMENTS","keysort","C2", "!$_") && next;
        /^Motherboard / &&
            ProcessHistory("COMMENTS","keysort","C3", "!$_") && next;
        /^Power supply / &&
            ProcessHistory("COMMENTS","keysort","C4", "!$_") && next;

        /^Activation Key:\s+(.*)$/ &&
            ProcessHistory("COMMENTS","keysort","C2", "!$_") && next;
        /^ROM: \d+ Bootstrap .*(Version.*)$/ &&
            ProcessHistory("COMMENTS","keysort","G2",
                "!ROM Image: Bootstrap $1\n!\n") && next;
        /^ROM: .*(Version.*)$/ &&
            ProcessHistory("COMMENTS","keysort","G3","!ROM Image: $1\n") && next;
        /^BOOTFLASH: .*(Version.*)$/ &&
            ProcessHistory("COMMENTS","keysort","G4","!BOOTFLASH: $1\n") && next;
        /^BOOTLDR: .*(Version.*)$/ &&
            ProcessHistory("COMMENTS","keysort","G4","!BOOTLDR: $1\n") && next;
        /^System image file is "([^\"]*)", booted via (\S*)/ &&
# removed the booted source due to
# CSCdk28131: cycling info in 'sh ver'
#       ProcessHistory("COMMENTS","keysort","F4","!Image: booted via $2, $1\n") &&
            ProcessHistory("COMMENTS","keysort","F4","!Image: booted $1\n") &&
            next;
        /^System image file is "([^\"]*)"$/ &&
            ProcessHistory("COMMENTS","keysort","F5","!Image: $1\n") && next;
        if (/(\S+(?:\sseries)?)\s+(?:\((\S+)\)\s+processor|\(revision[^)]+\)).*\s+with (\S+k) bytes/i) {
            $proc = $1;
            my($cpu) = $2;
            my($mem) = $3;
            my($device) = "router";

            # the next line ought to be the more specific cpu info, grab it.
            # yet, some boards/IOS vers have a processor ID line between these
            # two.  grrr.  make sure we dont grab the "software" junk that
            # follows these lines by looking for "CPU at " or the 2600s
            # "processor: " unique string.  there are undoubtedly many other
            # incantations.  for a slave, we dont get this info, its just a
            # blank line.
            $_ = <INPUT>;
            if (/processor board id/i) {
                my($sn);

                if (/processor board id (\S+)/i) {
                    $sn = $1;
                    $sn =~ s/,$//;
                    ProcessHistory("COMMENTS","keysort","D9",
                                   "!Processor ID: $sn\n");
                }
                $_ = <INPUT>;
            }
            $_ = "" if (! /(cpu at |processor: |$cpu processor,)/i);
            tr/\015//d;
            s/implementation/impl/i;
            if ($_ !~ /^\s*$/) {
                chomp;
                s/^/, /;
            }

            if ($proc eq "CSC") {
                $type = "AGS";
            } elsif ($proc eq "CSC4") {
                $type = "AGS+";
            } elsif ($proc =~ /1900/) {
                $type = "1900";
                $device = "switch";
            } elsif ($proc =~ /^(AS)?25[12][12]/) {
                $type = "2500";
            } elsif ($proc =~ /261[01]/ || $proc =~ /262[01]/ ) {
                $type = "2600";
            } elsif ($proc =~ /WS-C29/) {
                $type = "2900XL";
                $device = "switch";
            } elsif ($proc =~ /WS-C355/) {
                $type = "3550";
                $device = "switch";
            } elsif ($proc =~ /WS-C35/) {
                $type = "3500XL";
                $device = "switch";
            } elsif ($proc =~ /^36[0246][0-9]/) {
                $type = "3600";
            } elsif ($proc =~ /^37/) {
                $type = "3700";
            } elsif ($proc =~ /^38/) {
                $type = "3800";
            } elsif ($proc =~ /WS-C45/) {
                $type = "4500";
                $device = "switch";
            } elsif ( $proc =~ /^AS5300/) {
                $type = "AS5300";
            } elsif ( $proc =~ /^AS5350/) {
                $type = "AS5350";
            } elsif ( $proc =~ /^AS5400/) {
                $type = "AS5400";
            } elsif ($proc =~ /6000/) {
                $type = "6000";
                $device = "switch";
            } elsif ($proc eq "WK-C65") {
                $type = "6500";
            } elsif ($proc eq "RP") {
                $type = "7000";
            } elsif ($proc eq "RP1") {
                $type = "7000";
            } elsif ($proc =~ /720[246]/) {
                $type = "7200";
            } elsif ( $proc =~ /^73/) {
                $type = "7300";
            } elsif ($proc eq "RSP7000") {
                $type = "7500";
            } elsif ($proc =~ /RSP\d/) {
                $type = "7500";
            } elsif ($proc =~ /OSR-76/) {
                $type = "7600";
            } elsif ($proc =~ /CISCO76/) {
                $type = "7600";
            } elsif ($proc =~ /1200[48]\/(GRP|PRP)/ || $proc =~ /1201[26]\/(GRP|PRP)/) {
                $type = "12000";
            } elsif ($proc =~ /1201[26]-8R\/(GRP|PRP)/) {
                $type = "12000";
            } elsif ($proc =~ /1240[48]\/(GRP|PRP)/ || $proc =~ /1241[06]\/(GRP|PRP)/) {
                $type = "12400";
            } else {
                $type = $proc;
            }

            print STDERR "TYPE = $type\n" if ($debug);
            ProcessHistory("COMMENTS","keysort","A1",
                "!Chassis type:$slave $proc - a $type $device\n");
            ProcessHistory("COMMENTS","keysort","B1",
                "!Memory:$slave main $mem\n");
            if (defined($cpu)) {
                ProcessHistory("COMMENTS","keysort","A3",
                               "!CPU:$slave $cpu$_$slaveslot\n");
            }
            next;
        }
        if (/(\S+) Silicon\s*Switch Processor/) {
            if (!defined($C0)) {
                $C0 = 1; ProcessHistory("COMMENTS","keysort","C0","!\n");
            }
            ProcessHistory("COMMENTS","keysort","C2","!SSP: $1\n");
            $ssp = 1;
            $sspmem = $1;
            next;
        }
        /^(\d+[kK]) bytes of multibus/ &&
            ProcessHistory("COMMENTS","keysort","B2",
                "!Memory: multibus $1\n") && next;
        /^(\d+[kK]) bytes of (non-volatile|NVRAM)/ &&
            ProcessHistory("COMMENTS","keysort","B3",
                "!Memory: nvram $1\n") && next;
        /^(\d+[kK]) bytes of (flash memory|processor board System flash|ATA Comp
actFlash)/ &&
            ProcessHistory("COMMENTS","keysort","B5","!Memory: flash $1\n") &&
            next;
        /^(\d+[kK]) bytes of .*flash partition/ &&
            ProcessHistory("COMMENTS","keysort","B6",
                "!Memory: flash partition $1\n") && next;
        /^(\d+[kK]) bytes of Flash internal/ &&
            ProcessHistory("COMMENTS","keysort","B4",
                "!Memory: bootflash $1\n") && next;
        if (/^(\d+[kK]) bytes of (Flash|ATA)?.*PCMCIA .*(slot|disk) ?(\d)/i) {
            ProcessHistory("COMMENTS","keysort","B7",
                "!Memory: pcmcia $2 $3$4 $1\n");
            next;
        }
        if (/^(\d+[kK]) bytes of (slot|disk)(\d)/i) {
            ProcessHistory("COMMENTS","keysort","B7",
                "!Memory: pcmcia $2$3 $1\n");
            next;
        }
        if (/^WARNING/) {
            if (!defined($I0)) {
                $I0 = 1;
                ProcessHistory("COMMENTS","keysort","I0","!\n");
            }
            ProcessHistory("COMMENTS","keysort","I1","! $_");
        }
        if (/^Configuration register is (.*)$/) {
            $config_register = $1;
            next;
        }
        if (/^Configuration register on node \S+ is (.*)$/) {
            $config_register = $1 if (length($config_register) < 1);
            next;
        }
    }
    return(0);
}

# This routine parses "show redundancy"
sub ShowRedundancy {
    print STDERR "    In ShowRedundancy: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^Version information for secondary in slot (\d+):/) {
            $slave = " Slave:";
            $slaveslot = ", slot $1";
            next;
        }

        /^IOS .* Software \(([A-Za-z0-9_-]*)\), .*Version\s+(.*)$/ &&
            ProcessHistory("COMMENTS","keysort","F1",
                "!Image:$slave Software: $1, $2\n") && next;
        /^Compiled (.*)$/ &&
            ProcessHistory("COMMENTS","keysort","F3",
                "!Image:$slave Compiled: $1\n") && next;
    }
    return(0);
}

# This routine parses "show IDprom"
sub ShowIDprom {
    my($tmp);

    print STDERR "    In ShowIDprom: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        /FRU is .(.*)\'/ && ($tmp = $1);
        /Product Number = .(.*)\'/ &&
                ProcessHistory("COMMENTS","keysort","D0",
                                "!Catalyst Chassis type: $1, $tmp\n");
        /Serial Number = .([0-9A-Za-z]+)/ &&
                ProcessHistory("COMMENTS","keysort","D1",
                                "!Catalyst Chassis S/N: $1\n");
        /Manufacturing Assembly Number = .([-0-9]+)/ && ($tmp = $1);
        /Manufacturing Assembly Revision = .(.*)\'/ && ($tmp .= ", rev " . $1);
        /Hardware Revision = ([0-9.]+)/ &&
                ProcessHistory("COMMENTS","keysort","D2",
                                "!Catalyst Chassis assembly: $tmp, ver $1\n");
    }
    return(0);
}

# This routine parses "show install active"
sub ShowInstallActive {
    print STDERR "    In ShowInstallActive: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/^\s*\^\s*$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        ProcessHistory("COMMENTS","keysort","F5","!Image: $_") && next;
    }
    return(0);
}

# This routine parses "show env all"
sub ShowEnv {
    # Skip if this is not a 7500, 7200, or 7000.
    print STDERR "    In ShowEnv: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        if (/^$prompt/) { $found_env = 1; last};
        next if (/^(\s*|\s*$cmd\s*)$/);
        #return(1) if ($type !~ /^7/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(0) if ($found_env);              # Only do this routine once
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (!defined($E0)) {
            $E0 = 1;
            ProcessHistory("COMMENTS","keysort","E0","!\n");
        }
        if (/^Arbiter type (\d), backplane type (\S+)/) {
            if (!defined($C0)) {
                $C0 = 1; ProcessHistory("COMMENTS","keysort","C0","!\n");
            }
            ProcessHistory("COMMENTS","keysort","C1",
                "!Enviromental Arbiter Type: $1\n");
            ProcessHistory("COMMENTS","keysort","A2",
                "!Chassis type: $2 backplane\n");
            next;
        }
        /^Power Supply Information$/ && next;
        /^\s*Power Module\s+Voltage\s+Current$/ && next;
        /^\s*(Power [^:\n]+)$/ &&
            ProcessHistory("COMMENTS","keysort","E1","!Power: $1\n") && next;
        /^\s*(Lower Power .*)/i &&
            ProcessHistory("COMMENTS","keysort","E2","!Power: $1\n") && next;
        /^\s*(redundant .*)/i &&
            ProcessHistory("COMMENTS","keysort","E2","!Power: $1\n") && next;
        /^\s*(RPS is .*)/i &&
            ProcessHistory("COMMENTS","keysort","E2","!Power: $1\n") && next;
    }
    ProcessHistory("COMMENTS","","","!\n");
    return(0);
}

# This routine parses "show rsp chassis-info" for the rsp
# This will create arrays for hw info.
sub ShowRSP {
    print STDERR "    In ShowRSP: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # return(1) if ($type !~ /^12[40]/);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }
        /^$/ && next;

        /^\s+Chassis model: (\S+)/ &&
            ProcessHistory("COMMENTS","keysort","D1",
                                "!RSP Chassis model: $1\n") &&
            next;
        /^\s+Chassis S\/N: (.*)$/ &&
            ProcessHistory("COMMENTS","keysort","D2",
                                "!RSP Chassis S/N: $1\n") &&
            next;
    }

    return(0);
}

# This routine parses "show gsr chassis-info" for the gsr
# This will create arrays for hw info.
sub ShowGSR {
    # Skip if this is not a 1200n.
    print STDERR "    In ShowGSR: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # return(1) if ($type !~ /^12[40]/);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }
        /^$/ && next;

        /^\s+Chassis: type (\S+) Fab Ver: (\S+)/ &&
            ProcessHistory("COMMENTS","keysort","D1",
                                "!GSR Chassis type: $1 Fab Ver: $2\n") &&
            next;
        /^\s+Chassis S\/N: (.*)$/ &&
            ProcessHistory("COMMENTS","keysort","D2",
                                "!GSR Chassis S/N: $1\n") &&
            next;
        /^\s+PCA: (\S+)\s*rev: (\S+)\s*dev: \S+\s*HW ver: (\S+)$/ &&
            ProcessHistory("COMMENTS","keysort","D3",
                                "!GSR Backplane PCA: $1, rev $2, ver $3\n") &&
            next;
        /^\s+Backplane S\/N: (\S+)$/ &&
            ProcessHistory("COMMENTS","keysort","D4",
                                "!GSR Backplane S/N: $1\n") &&
            next;
    }
    ProcessHistory("COMMENTS","","","!\n");
    return(0);
}

# This routine parses "show boot"
sub ShowBoot {
    # Pick up boot variables if 7000/7200/7500/12000/2900/3500;
    # otherwise pick up bootflash.
    print STDERR "    In ShowBoot: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/^\s*\^\s*$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(1) if (/Ambiguous command/i);
        return(1) if (/(Open device \S+ failed|Error opening \S+:)/);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        next if /CONFGEN variable/;
        if (!defined($H0)) {
            $H0 = 1; ProcessHistory("COMMENTS","keysort","H0","!\n");
        }
        if ($type !~ /^(12[04]|7)/) {
            if ($type !~ /^(29|35)00/) {
                ProcessHistory("COMMENTS","keysort","H2","!BootFlash: $_");
            } else {
                ProcessHistory("COMMENTS","keysort","H1","!Variable: $_");
            }
        } elsif (/(variable|register)/) {
            ProcessHistory("COMMENTS","keysort","H1","!Variable: $_");
        }
    }
    ProcessHistory("COMMENTS","","","!\n");
    return(0);
}

# This routine parses "show flash"
sub ShowFlash {
    # skip if this is 7000, 7200, 7500, or 12000; else we end up with
    # redundant data from dir /all slot0:
    print STDERR "    In ShowFlash: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if ($type =~ /^(12[40]|7)/);
        return(1) if ($ios eq "XE");
        return(1) if (/^\s*\^\s*$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        # Filter dhcp database
        next if (/dhcp_[^. ]*\.txt/);

        /\s+(multiple-fs|nv_hdr|vlan\.dat)$/ && next;
        ProcessHistory("FLASH","","","!Flash: $_");
    }
    ProcessHistory("","","","!\n");
    return;
}

# This routine parses "dir /all ((disk|slot)N|bootflash|nvram):"
sub DirSlotN {
    print STDERR "    In DirSlotN: $_" if ($debug);

    my($dev) = (/\s([^\s]+):/);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /^\s*\^\s*$/;
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(1) if (/(No such device|Error Sending Request)/i);
        return(1) if (/\%Error: No such file or directory/);
        return(1) if (/No space information available/);
        # Corrupt flash
        /\%Error calling getdents / &&
            ProcessHistory("FLASH","","","!Flash: $dev: $_") && next;
        return(-1) if (/\%Error calling/);
        return(-1) if (/(: device being squeezed|ATA_Status time out)/i); # busy
        return(-1) if (/\%Error opening \S+:\S+ \(Device or resource busy\)/i);
        return(-1) if (/command authorization failed/i);
        return(1) if (/(Open device \S+ failed|Error opening \S+:)/);
        # skip dir sup-bootflash if dir sup-bootdisk was successful, duplicates
        if ($cmd =~ / sup-bootdisk/) {
            $supbootdisk++;
        } elsif ($supbootdisk && $cmd =~ / sup-bootflash/) {
            return(0);
        }
        # filter frequently changing files from IOX bootflash
        if ($dev =~ /bootflash/) {
            next if (/temp_cont\s*$/);
            next if (/uptime_cont\s*$/);
        }
        # Filter dhcp database
        next if (/dhcp_[^. ]*\.txt/);

        if ($ios eq "XE" && /.*\((\d+) bytes free\)/) {
            my($tmp) = $1;
            if ($tmp >= (1024 * 1024 * 1024)) {
                $tmp = int($tmp / (1024 * 1024 * 1024));
                s/$1 bytes free/$tmp GB free/;
            } else {
                $tmp = int($tmp / (1024 * 1024));
                s/$1 bytes free/$tmp MB free/;
            }
        }
        if ($ios eq "XE" && /^((\s+)?\d+\s+\S+)\s+\d+.*(tracelogs$)/) {
            $_ = "$1" . sprintf("%43s", "") . "$3\n";
        }
        if ($ios eq "IOS" && /^((\s+)?\d+\s+\S+)\s+\d+.*(sflog$)/) {
            $_ = "$1" . sprintf("%43s", "") . "$3\n";
        }
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        ProcessHistory("FLASH","","","!Flash: $dev: $_");
    }
    ProcessHistory("","","","!\n");
    return(0);
}

# This routine parses "show controllers"
sub ShowContAll {
    # Skip if this is a 70[01]0, 7500, or 12000.
    print STDERR "    In ShowContAll: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        # return(1) if ($type =~ /^(12[40]|7[05])/);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^Interface ([^ \n(]*)/) { $INT = "$1, "; next; }
        /^(BRI unit \d)/ &&
            ProcessHistory("INT","","","!Interface: $1\n") && next;
        /^LANCE unit \d, NIM/ &&
            ProcessHistory("INT","","","!Interface: $_") && next;
        /^(LANCE unit \d)/ &&
            ProcessHistory("INT","","","!Interface: $1\n") && next;
        /(Media Type is \S+),/ &&
            ProcessHistory("INT","","","!\t$1\n");
            if (/(M\dT[^ :]*:) show controller:$/) {
                my($ctlr) = $1;
                $_ = <INPUT>; tr/\015//d; s/ subunit \d,//;
                ProcessHistory("INT","","","!Interface: $ctlr $_");
            }
        if (/^(\S+) : show controller:$/) {
            my($ctlr) = $1;
            $_ = <INPUT>; tr/\015//d; s/ subunit \d,//;
            ProcessHistory("INT","","","!Interface: $ctlr: $_");
        }
        /^(HD unit \d), idb/ &&
            ProcessHistory("INT","","","!Interface: $1\n") && next;
        /^HD unit \d, NIM/ &&
            ProcessHistory("INT","","","!Interface: $_") && next;
        /^buffer size \d+  HD unit \d, (.*)/ &&
            ProcessHistory("INT","","","!\t$1\n") && next;
        /^AM79970 / && ProcessHistory("INT","","","!Interface: $_") && next;
        /^buffer size \d+  (Universal Serial: .*)/ &&
            ProcessHistory("INT","","","!\t$1\n") && next;
        /^Hardware is (.*)/ &&
            ProcessHistory("INT","","","!Interface: $INT$1\n") && next;
        /^(QUICC Serial unit \d),/ &&
            ProcessHistory("INT","","","!$1\n") && next;
        /^QUICC Ethernet .*/ &&
            ProcessHistory("INT","","","!$_") && next;
        /^DTE .*\.$/ &&
            ProcessHistory("INT","","","!\t$_") && next;
        /^(cable type :.*),/ &&
            ProcessHistory("INT","","","!\t$1\n") && next;
        /^(.* cable.*), received clockrate \d+$/ &&
            ProcessHistory("INT","","","!\t$1\n") && next;
        /^.* cable.*$/ &&
            ProcessHistory("INT","","","!\t$_") && next;
    }
    return(0);
}

# This routine parses "show controllers cbus"
# Some of this is printed out in ShowDiagbus.
sub ShowContCbus {
    # Skip if this is not a 7000 or 7500.
    print STDERR "    In ShowContCbus: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        #return(1) if ($type !~ /^7[05]0/);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^\s*slot(\d+): ([^,]+), hw (\S+), sw (\S+), ccb/) {
            $slot = $1;
            $board{$slot} = $2;
            $hwver{$slot} = $3;
            $hwucode{$slot} = $4;
        } elsif (/^\s*(\S+) (\d+), hardware version (\S+), microcode version (\S+)/) {
            $slot = $2;
            $board{$slot} = $1;
            $hwver{$slot} = $3;
            $hwucode{$slot} = $4;
        } elsif (/(Microcode .*)/) {
            $ucode{$slot} = $1;
        } elsif (/(software loaded .*)/) {
            $ucode{$slot} = $1;
        } elsif (/(\d+) Kbytes of main memory, (\d+) Kbytes cache memory/) {
            $hwmemd{$slot} = $1;
            $hwmemc{$slot} = $2;
        } elsif (/byte buffers/) {
            chop;
            s/^\s*//;
            $hwbuf{$slot} = $_;
        } elsif (/Interface (\d+) - (\S+ \S+),/) {
            $interface = $1;
            ProcessHistory("HW","","",
                "!\n!Int $interface: in slot $slot, named $2\n"); next;
        } elsif (/(\d+) buffer RX queue threshold, (\d+) buffer TX queue limit, buffer size (\d+)/) {
            ProcessHistory("HW","","","!Int $interface: rxq $1, txq $2, bufsize $3\n");
            next;
        }
    }
    return(0);
}

# This routine parses "show debug"
sub ShowDebug {
    print STDERR "    In ShowDebug: $_" if ($debug);
    my($lines) = 0;

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        /^No matching debug flags set$/ && next;
        /^No debug flags set$/ && next;
        ProcessHistory("COMMENTS","keysort","J1","!DEBUG: $_");
        $lines++;
    }
    if ($lines) {
        ProcessHistory("COMMENTS","keysort","J0","!\n");
    }
    return(0);
}

# This routine parses "show diagbus"
# This will create arrays for hw info.
sub ShowDiagbus {
    # Skip if this is not a 7000, 70[01]0, or 7500.
    print STDERR "    In ShowDiagbus: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        #return(1) if ($type !~ /^7[05]/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^\s*Slot (\d+):/i) {
            $slot = $1;
            next;
        } elsif (/^\s*Slot (\d+) \(virtual\):/i) {
            $slot = $1;
            next;
        } elsif (/^\s*(.*Processor.*|.*controller|.*controler|.*Chassis Interface)(, FRU\s?:.*)?, HW rev (\S+), board revision (\S+)/i) {
            $board = $1;
            $hwver = $3;
            $boardrev = $4;
            if ($board =~ /Processor/) {
                if ($board =~ /7000 Route\/Switch/) {
                    $board = "RSP7000";
                } elsif ($board =~ /Route\/Switch Processor (\d)/) {
                    $board = "RSP$1";
                } elsif ($board =~ /Route/) {
                    $board = "RP";
                } elsif ($board =~ /Silicon Switch/) {
                    $board = "SSP";
                } elsif ($board =~ /Switch/) {
                    $board = "SP";
                    $board = "SSP $sspmem" if $ssp;
                } elsif ($board =~ /ATM/) {
                    $board = "AIP";
                }
            } elsif ($board =~ /(.*) controller/i) {
                $board = $1;
            }
            # hwucode{$slot} defined in ShowContCbus
            if (defined $hwucode{$slot}) {
                ProcessHistory("SLOT","","","!\n!Slot $slot/$board: hvers $hwver rev $boardrev ucode $hwucode{$slot}\n");
            } else {
                ProcessHistory("SLOT","","","!\n!Slot $slot/$board: hvers $hwver rev $boardrev\n");
            }
            # These are also from the ShowContCbus
            ProcessHistory("SLOT","","","!Slot $slot/$board: $ucode{$slot}\n") if (defined $ucode{$slot});
            ProcessHistory("SLOT","","","!Slot $slot/$board: memd $hwmemd{$slot}, cache $hwmemc{$slot}\n")
            if ((defined $hwmemd{$slot}) && (defined $hwmemc{$slot}));
            ProcessHistory("SLOT","","","!Slot $slot/$board: $hwbuf{$slot}\n") if (defined $hwbuf{$slot});
            next;
        }
        /Serial number: (\S+)\s*Part number: (\S+)/ &&
            ProcessHistory("SLOT","","",
                        "!Slot $slot/$board: part $2, serial $1\n") &&
            next;
        /^\s*Controller Memory Size: (.*)$/ &&
            ProcessHistory("SLOT","","","!Slot $slot/$board: $1\n") &&
            next;
        if (/PA Bay (\d) Information/) {
            $pano = $1;
            if ("PA" =~ /$board/) {
                ($s,$c) = split(/\//,$board);
                $board = "$s/$c/PA $pano";
            } else {
                $board =~ s/\/PA \d//;
                $board = "$board/PA $pano";
            }
            next;
        }
        /\s+(.*) (IP|PA), (\d) ports?,( \S+,)? (FRU\s?: )?(\S+)/ &&
            ProcessHistory("SLOT","","","!Slot $slot/$board: type $6, $3 ports\n") &&
            next;
        /\s+(.*) (IP|PA)( \(\S+\))?, (\d) ports?/ &&
            ProcessHistory("SLOT","","","!Slot $slot/$board: type $1$3, $4 ports\n") &&
            next;
        /^\s*HW rev (\S+), Board revision (\S+)/ &&
            ProcessHistory("SLOT","","","!Slot $slot/$board: hvers $1 rev $2\n") &&
            next;
        /Serial number: (\S+)\s*Part number: (\S+)/ &&
            ProcessHistory("SLOT","","","!Slot $slot/$board: part $2, serial $1\n") && next;
    }
    return(0);
}

# This routine parses "show diag" for the gsr, 7200, 3700, 3600, 2600.
# This will create arrays for hw info.
sub ShowDiag {
    print STDERR "    In ShowDiag: $_" if ($debug);

    while (<INPUT>) {
REDUX:  tr/\015//d;
        if (/^$prompt/) { $found_diag = 1; last};
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(0) if ($found_diag);             # Only do this routine once
        return(-1) if (/command authorization failed/i);
        /^$/ && next;
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        s/Port Packet Over SONET/POS/;
        if (/^\s*SLOT\s+(\d+)\s+\((.*)\): (.*)/) {
            $slot = $1;
            ProcessHistory("SLOT","","","!\n");
            ProcessHistory("SLOT","keysort","A","!Slot $slot: $3\n");
            next;
        }
        if (/^\s*NODE\s+(\S+) : (.*)/) {
            $slot = $1;
            ProcessHistory("SLOT","","","!\n");
            ProcessHistory("SLOT","keysort","A","!Slot $slot: $2\n");
            next;
        }
        if (/^\s*PLIM\s+(\S+) : (.*)/) {
            $slot = $1 . " PLIM";
            ProcessHistory("SLOT","","","!\n");
            ProcessHistory("SLOT","keysort","A","!Slot $slot: $2\n");
            next;
        }
        if (/^\s*RACK\s+(\S+) : (.*)/) {
            $slot = "Rack/" . $1;
            ProcessHistory("SLOT","","","!\n");
            ProcessHistory("SLOT","keysort","A","!Slot $slot: $2\n");
            next;
        }
        if (/^\s+MAIN:\s* type \S+,\s+(.*)/) {
            local($part) = $1;
            $_ = <INPUT>;
            if (/^\s+(HW version|Design Release) (\S+)\s+S\/N (\S+)/i) {
                ProcessHistory("SLOT","keysort","AM","!Slot $slot/MAIN: part $part, serial $3\n");
                ProcessHistory("SLOT","keysort","AM","!Slot $slot/MAIN: hvers $2\n");
            } else {
                ProcessHistory("SLOT","keysort","AM","!Slot $slot/MAIN: part $part\n");
                goto REDUX;
            }
            next;
        }
        if (/^\s+MAIN:\s* board type \S+$/) {
            $_ = <INPUT>;
            tr/\015//d;
            if (/^\s+(.+)$/) {
                local($part) = $1;
                $_ = <INPUT>;
                tr/\015//d;
                if (/^\s+dev (.*)$/) {
                    local($dev) = $1;
                    $_ = <INPUT>;
                    if (/^\s+S\/N (\S+)/) {
                        ProcessHistory("SLOT","keysort","AM","!Slot $slot/MAIN: part $part, dev $dev, serial $1\n");
                    } else {
                        ProcessHistory("SLOT","keysort","AM","!Slot $slot/MAIN: part $part, dev $dev\n");
                        goto REDUX;
                   }
                } else {
                    ProcessHistory("SLOT","keysort","AM","!Slot $slot/MAIN: part $part\n");
                    goto REDUX;
                }
            } else {
                goto REDUX;
            }
            next;
        }
        if (/^c3700\s+(io-board|mid-plane)/i) {
            $slot = $1;
            ProcessHistory("SLOT","","","!\n");
            ProcessHistory("SLOT","keysort","A","!Slot $slot: part $1\n");
            next;
        }
        if (/ Engine:\s+(.*)/) {
            ProcessHistory("SLOT","keysort","AE","!Slot $slot/Engine: $1\n");
        }
        if (/FRU:\s+Linecard\/Module:\s+(\S+)/) {
            ProcessHistory("SLOT","keysort","AF","!Slot $slot/FRU: Linecard/Module: $1\n");
            next;
        }
        if (/\s+Processor Memory:\s+(\S+)/) {
            ProcessHistory("SLOT","keysort","AF","!Slot $slot/FRU: Processor Memory: $1\n");
            next;
        }
        if (/\s+Packet Memory:\s+(\S+)/) {
            ProcessHistory("SLOT","keysort","AF","!Slot $slot/FRU: Packet Memory: $1\n");
            next;
        }
        if (/\s+Route Memory:\s+(\S+)/) {
            ProcessHistory("SLOT","keysort","AF","!Slot $slot/FRU: Route Memory: $1\n");
            next;
        }
        if (/^\s+PCA:\s+(.*)/) {
            local($part) = $1;
            $_ = <INPUT>;
            if (/^\s+(HW version|design release) (\S+)\s+S\/N (\S+)/i) {
                ProcessHistory("SLOT","keysort","C1","!Slot $slot/PCA: part $part, serial $3\n");
                ProcessHistory("SLOT","keysort","C2","!Slot $slot/PCA: hvers $2\n");
            } else {
                ProcessHistory("SLOT","keysort","C1","!Slot $slot/PCA: part $part\n");
                goto REDUX;
            }
            next;
        }
        if (/^\s+MBUS: .*\)\s+(.*)/) {
            local($tmp) = "!Slot $slot/MBUS: part $1";
            $_ = <INPUT>;
            /^\s+HW version (\S+)\s+S\/N (\S+)/ &&
                ProcessHistory("SLOT","keysort","MB1","$tmp, serial $2\n") &&
                ProcessHistory("SLOT","keysort","MB2","!Slot $slot/MBUS: hvers $1\n");
            next;
        }
        if (/^\s+MBUS Agent Software version (.*)/) {
            ProcessHistory("SLOT","keysort","MB3","!Slot $slot/MBUS: software $1\n");
            next;
        }
        if (/^\s+PLD: (.*)/) {
            ProcessHistory("SLOT","keysort","P","!Slot $slot/PLD: $1\n");
            next;
        }
        if (/^\s+MONLIB: (.*)/) {
            ProcessHistory("SLOT","keysort","Q","!Slot $slot/MONLIB: $1\n");
            next;
        }
        if (/^\s+ROM Monitor version (.*)/) {
            ProcessHistory("SLOT","keysort","R","!Slot $slot/ROM Monitor: version $1\n");
            next;
        }
        if (/^\s+ROMMON: Version (.*)/) {
            ProcessHistory("SLOT","keysort","R","!Slot $slot/ROMMON: version $1\n");
            next;
        }
        if (/^\s+Fabric Downloader version used (.*)/) {
            ProcessHistory("SLOT","keysort","Z","!Slot $slot/Fabric Downloader: version $1\n");
            next;
        }
        if (/^\s+DRAM size: (\d+)/) {
            local($dram) = $1 / 1048576;
            $_ = <INPUT>;
            if (/^\s+FrFab SDRAM size: (\d+)/) {
                ProcessHistory("SLOT","keysort","MB4","!Slot $slot/MBUS: $dram Mbytes DRAM, "
                           . $1 / 1024 . " Kbytes SDRAM\n");
            } else {
                ProcessHistory("SLOT","keysort","MB4","!Slot $slot/MBUS: $dram Mbytes DRAM\n");
                goto REDUX;
            }
            next;
        }
        # 7200, 3600, 2600, and 1700 stuff
        if (/^(Slot)\s+(\d+(\/\d+)?):/
            || /^\s+(WIC|VIC|WIC\/VIC) Slot (\d):/
            || /^(Encryption AIM) (\d):/) {
            if ($1 eq "WIC") {
                $WIC = "/$2";
            } elsif ($1 eq "VIC") {
                $WIC = "/$2";
            } elsif ($1 eq "WIC/VIC") {
                $WIC = "/$2";
            } elsif ($1 eq "DSP") {
                $WIC = "/$2";
            } elsif ($1 eq "Encryption AIM") {
                $slot = "$2";
                undef($WIC);
                ProcessHistory("SLOT","","","!\n");
                ProcessHistory("SLOT","keysort","B","!Slot $slot: type $1\n");
                next;
            } else {
                $slot = $2;
                undef($WIC);
            }
            $_ = <INPUT>; tr/\015//d;

            # clean up hideous 7200/etc formats to look more like 7500 output
            s/Fast-ethernet on C7200 I\/O card/FE-IO/;
            s/ with MII or RJ45/-TX/;
            s/Fast-ethernet /100Base/; s/[)(]//g;
            s/intermediate reach/IR/i;

            ProcessHistory("SLOT","","","!\n");
            /\s+(.*) port adapter,?\s+(\d+)\s+/i &&
                ProcessHistory("SLOT","keysort","B",
                               "!Slot $slot: type $1, $2 ports\n") && next;
            # I/O controller with no interfaces
            /\s+(.*)\s+port adapter\s*$/i &&
                ProcessHistory("SLOT","keysort","B",
                               "!Slot $slot: type $1, 0 ports\n") && next;
            /\s+(.*)\s+daughter card(.*)$/ &&
                ProcessHistory("SLOT","keysort","B",
                               "!Slot $slot$WIC: type $1$2\n") && next;
            /\s+(FT1)$/ &&
                ProcessHistory("SLOT","keysort","B",
                               "!Slot $slot$WIC: type $1\n") && next;
            # AS5300/5400 handling
            /^Hardware is\s+(.*)$/i &&
                ProcessHistory("SLOT","keysort","B","!Slot $slot: type $1\n")
                && next;
            /^DFC type is\s+(.*)$/i &&
                ProcessHistory("SLOT","keysort","B","!Slot $slot: type $1\n")
                && next;
            #
            # handle WICs lacking "daughter card" in the 2nd line of their
            # show diag o/p
            if (defined($WIC)) {
                s/^\s+//;
                ProcessHistory("SLOT","keysort","B","!Slot $slot$WIC: type $_");
            }
            next;
        } elsif (/^\s+(.* (DSP) Module) Slot (\d):/) {
            # The 1760 (at least) has yet another format...where it has two
            # dedicated DSP slots, and thus two slot 0s.
            my($TYPE) = $1;
            $WIC = "/$3";
            ProcessHistory("SLOT","","","!\n");
            ProcessHistory("SLOT","keysort","B",
                                        "!Slot $slot$WIC: type $TYPE\n");
            next;
        }
        # yet another format.  seen on 2600s w/ 12.1, but appears to be all
        # 12.1, including 7200s & 3700s.  Sometimes the PCB serial appears
        # before the hardware revision.
        if (/(pcb serial number|hardware revision)\s+:\s+(\S+)$/i) {
            my($hw, $pn, $rev, $sn);
            if ($1 =~ /^pcb/i) {
                $sn = $2;
            } else {
                $hw = $2;
            }
            while (<INPUT>) {
                tr/\015//d;

                # Sometimes "show diag" just ends while we are
                # trying to process this pcb stuff.  Check for a
                # prompt so we can get out.
                if (/^$prompt/) {
                    $found_diag=1;
                    goto PerlSucks;
                }

                if (/0x..: / || /^$/) {
                    # no effing idea why break does not work there
                    goto PerlSucks;
                }
                if (/hardware revision\s+:\s+(\S+)/i) { $hw = $1; }
                if (/part number\s+:\s+(\S+)/i) { $pn = $1; }
                if (/board revision\s+:\s+(\S+)/i) { $rev = $1; }
                if (/pcb serial number\s+:\s+(\S+)/i) { $sn = $1; }
                # fru/pid bits, true Cisco evolving "standard", hopefully
                # "show inventory" will be "the way" soon.
                #
                if (/product \(fru\) number\s+:\s+(\S+)/i) { $fn = $1; }
                if (/product number\s+:\s+(\S+)/i) { $fn = $1; }
                if (/product\s+identifier\s+\(PID\)\s+:\s+(\S+)/i) { $fn = $1; }
                if (/fru\s+part\s+number\s+(\S+)/i) { $fn = $1; }
            }
PerlSucks:
            # fru/pid bits
            ProcessHistory("SLOT","keysort","AG","!Slot $slot$WIC: fru $fn\n");
            #
            ProcessHistory("SLOT","keysort","B","!Slot $slot$WIC: hvers $hw rev $rev\n");
            ProcessHistory("SLOT","keysort","C","!Slot $slot$WIC: part $pn, serial $sn\n");
            # If we saw the prompt, then we are done.
            last if $found_diag;
        }
        /revision\s+(\S+).*revision\s+(\S+)/ &&
            ProcessHistory("SLOT","keysort","C","!Slot $slot$WIC: hvers $1 rev $2\n") &&
            next;
        /number\s+(\S+)\s+Part number\s+(\S+)/ &&
            ProcessHistory("SLOT","keysort","D","!Slot $slot$WIC: part $2, serial $1\n") &&
            next;
        # AS5x00 bits
        /^\ Board Revision\s+(\S+),\s+Serial Number\s+(\S+),/ &&
            ProcessHistory("SLOT","keysort","D",
                           "!Slot $slot$WIC: rev $1, serial $2\n") && next;
        /^\ Board Hardware Version\s+(\S+),\s+Item Number\s+(\S+),/ &&
            ProcessHistory("SLOT","keysort","D",
                           "!Slot $slot$WIC: hvers $1, part $2\n") && next;
        /^Motherboard Info:/ &&
            ProcessHistory("SLOT","keysort","D",
                           "!Slot $slot$WIC: Motherboard\n") && next;
        #
    }
    ProcessHistory("SLOT","","","!\n");
    return(0);
}

# This routine parses "show inventory".
sub ShowInventory {
    print STDERR "    In ShowInventory: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        return if (/^\s*\^$/);
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^(NAME: "[^"]*",) (DESCR: "[^"]+")/) {
            ProcessHistory("INVENTORY","","", sprintf("!%-30s %s\n", $1, $2));
            next;
        }
        # split PID/VID/SN line
        if (/^PID: (\S*)\s*,\s*VID: (\S*)\s*,\s*SN: (\S*)\s*$/) {
            my($pid,$vid,$sn) = ($1, $2, $3);
            my($entries) = "";
            # filter <empty>, "0x" and "N/A" lines
            if ($pid !~ /^(|0x|N\/A)$/) {
                $entries .= "!PID: $pid\n";
            }
            if ($vid !~ /^(|0x|N\/A)$/) {
                $entries .= "!VID: $vid\n";
            }
            if ($sn !~ /^(|0x|N\/A)$/) {
                $entries .= "!SN: $sn\n";
            }
            ProcessHistory("INVENTORY","","", "$entries");
            next;
        }
        ProcessHistory("INVENTORY","","","!$_");
    }
    ProcessHistory("INVENTORY","","","!\n");

    return(0);
}

# This routine parses "show module".
sub ShowModule {
    print STDERR "    In ShowModule: $_" if ($debug);

    my(@lines);
    my($slot, $pa);

    while (<INPUT>) {
        tr/\015//d;
        return if (/^\s*\^$/);
        last if (/online diag status/i);
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        # match slot/card info line
        if (/^ *(\d+)\s+(\d+)\s+(.*)\s+(\S+)\s+(\S+)\s*$/) {
            $lines[$1 * 1000] .= "!Slot $1: type $3, $2 ports\n!Slot $1: part $4, serial $5\n";
            $lines[$1 * 1000] =~ s/\s+,/,/g;
            next;
        }
        # now match the Revs in the second paragraph of o/p and stick it in
        # the array with the previous bits...grumble.
        if (/^ *(\d+)\s+\S+\s+to\s+\S+\s+(\S+)\s+(\S*)\s+(\S+)(\s+\S+)?\s*$/) {
            $lines[$1 * 1000] .= "!Slot $1: hvers $2, firmware $3, sw $4\n";
            $lines[$1 * 1000] =~ s/\s+,/,/g;
            next;
        }
        # grab the sub-modules, if any
        if (/^\s+(\d+)\s(.*)\s+(\S+)\s+(\S+)\s+(\S+)\s+\S+\s*$/) {
            my($idx);
            $pa = 0 if ($1 != $slot);
            $slot = $1;
            $idx = $1 * 1000 + $1 * 10 + $pa;
            $lines[$idx] .= "!Slot $1/$pa: type $2\n";
            $lines[$idx] .= "!Slot $slot/$pa: part $3, serial $4\n";
            $lines[$idx] .= "!Slot $slot/$pa: hvers $5\n";
            $pa++;
        }
    }
    foreach $slot (@lines) {
        next if ($slot =~ /^\s*$/);
        ProcessHistory("Module","","","$slot!\n");
    }

    return(0);
}

# This routine parses "show spe version".
sub ShowSpeVersion {
    print STDERR "    In ShowSpeVersion: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /^\s*\^\s*$/;
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);

        ProcessHistory("MODEM","","","!Modem: $_") && next;
    }
    ProcessHistory("MODEM","","","!\n");
    return(0);
}

# This routine parses "show c7200" for the 7200
# This will create arrays for hw info.
sub ShowC7200 {
    # Skip if this is not a 7200.
    print STDERR "    In ShowC7200: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        #return(1) if ($type !~ /^72/);
        return(-1) if (/command authorization failed/i);
        /^$/ && next;
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^(C7200 )?Midplane EEPROM:/) {
            $_ = <INPUT>;
            /revision\s+(\S+).*revision\s+(\S+)/;
            ProcessHistory("SLOT","","","!Slot Midplane: hvers $1 rev $2\n");
            $_ = <INPUT>;
            /number\s+(\S+)\s+Part number\s+(\S+)/;
            ProcessHistory("SLOT","","","!Slot Midplane: part $2, serial $1\n!\n");
            next;
        }
        if (/C720\d(VXR)? CPU EEPROM:/) {
            my ($hvers,$rev,$part,$serial);
            # npe400s report their cpu eeprom info differently w/ 12.0.21S
            while (<INPUT>) {
                /Hardware Revision\s+: (\S+)/ && ($hvers = $1) && next;
                /Board Revision\s+: (\S+)/ && ($rev = $1) && next;
                /Part Number\s+: (\S+)/ && ($part = $1) && next;
                /Serial Number\s+: (\S+)/ && ($serial = $1) && next;
                /revision\s+(\S+).*revision\s+(\S+)/ &&
                    ($hvers = $1, $rev = $2) && next;
                /number\s+(\S+)\s+Part number\s+(\S+)/ &&
                    ($serial = $1, $part = $2) && next;
                /^\s*$/ && last;
            }
            ProcessHistory("SLOT","","","!Slot CPU: hvers $hvers rev $rev\n");
            ProcessHistory("SLOT","","","!Slot CPU: part $part, serial $serial\n!\n");
            next;
        }
    }
    return(0);
}

# This routine parses "show capture".  Intended for ASA/PIXes.
sub ShowCapture {
    print STDERR "    In ShowCapture: $_" if ($debug);
    my $capture_found = 0;
    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        return(1) if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /^\s*\^\s*$/;
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/capture (.*) type/) {
            my $cap_name = $1;
            s/\d+ bytes/<COUNTER> bytes/;
            ProcessHistory("CAPTURE","","","!Capture: $cap_name\n");
            ProcessHistory("CAPTURE","","","!Capture: $_");
        } else {
            ProcessHistory("CAPTURE","","","!Capture: $_");
        }
        $capture_found = 1
    }
    ProcessHistory("CAPTURE","","","!\n") if ($capture_found == 1);
    return(0);
}

# This routine parses "show vtp status"
sub ShowVTP {
    print STDERR "    In ShowVTP: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /^\s*\^\s*$/;
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        #return(1) if ($type !~ /^(2900XL|3500XL|6000)$/);
        return(-1) if (/command authorization failed/i);
        next if (/^Configuration last modified by/);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) {
            $DO_SHOW_VLAN = 1;
        }
        ProcessHistory("COMMENTS","keysort","I0","!VTP: $_");
    }
    ProcessHistory("COMMENTS","keysort","I0","!\n");
    return(0);
}

# This routine parses "show vlan"
sub ShowVLAN {
    print STDERR "    In ShowVLAN: $_" if ($debug);

    ($_ = <INPUT>, return(1)) if (!$DO_SHOW_VLAN);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /^\s*\^\s*$/;
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(1) if (/Ambiguous command/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        ProcessHistory("COMMENTS","keysort","IO","!VLAN: $_");
    }
    ProcessHistory("COMMENTS","keysort","IO","!\n");
    return(0);
}

# This routine processes a "show shun".  Intended for ASA/PIXes.
sub ShowShun {
    print STDERR "    In ShowShun: $_" if ($debug);
    my $shun_found = 0;
    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        return(1) if (/^(\s*|\s*$cmd\s*)$/);
        return(1) if /^\s*\^\s*$/;
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(-1) if (/command authorization failed/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }

        ProcessHistory("SHUN","","","!Shun: $_");
        $shun_found = 1;
    }
    ProcessHistory("SHUN","","","!\n") if ($shun_found == 1);
    return(0);
}

# This routine processes a "write term"
sub WriteTerm {
    print STDERR "    In WriteTerm: $_" if ($debug);
    my($lineauto,$comment,$linecnt) = (0,0,0);

    while (<INPUT>) {
        tr/\015//d;
        last if (/^$prompt/);
        return(1) if (!$linecnt && /^\s+\^\s*$/);
        next if (/^\s*$cmd\s*$/);
        return(1) if (/Line has invalid autocommand /);
        return(1) if (/(Invalid (input|command) detected|Type help or )/i);
        return(1) if (/\%Error: No such file or directory/);
        return(1) if (/(Open device \S+ failed|Error opening \S+:)/);
        return(0) if ($found_end);              # Only do this routine once
        return(-1) if (/command authorization failed/i);
        return(-1) if (/% ?configuration buffer full/i);
        # the pager can not be disabled per-session on the PIX
        if (/^(<-+ More -+>)/) {
            my($len) = length($1);
            s/^$1\s{$len}//;
        }
        /^! no configuration change since last restart/i && next;
        # skip emtpy lines at the beginning
        if (!$linecnt && /^\s*$/) {
            next;
        }
        if (!$linecnt && defined($config_register)) {
            ProcessHistory("","","", "!\nconfig-register $config_register\n");
        }

        /Non-Volatile memory is in use/ && return(-1); # NvRAM is locked
        /% Configuration buffer full, / && return(-1); # buffer is in use
        $linecnt++;
        $lineauto = 0 if (/^[^ ]/);
        # skip the crap
        if (/^(##+|(building|current) configuration)/i) {
            while (<INPUT>) {
                next if (/^Current configuration\s*:/i);
                next if (/^:/);
                next if (/^([%!].*|\s*)$/);
                next if (/^ip add.*ipv4:/);     # band-aid for 3620 12.0S
                last;
            }
            tr/\015//d;
        }
        # config timestamp on MDS/NX-OS
        /Time: / && next;
        # skip ASA 5520 configuration author line
        /^: written by /i && next;
        # some versions have other crap mixed in with the bits in the
        # block above
        /^! (Last configuration|NVRAM config last)/ && next;
        # and for the ASA
        /^: (Written by \S+ at|Saved)/ && next;

        # skip consecutive comment lines to avoid oscillating extra comment
        # line on some access servers.  grrr.
        if (/^!\s*$/) {
            next if ($comment);
            ProcessHistory("","","",$_);
            $comment++;
            next;
        }
        $comment = 0;

        # Dog gone Cool matches to process the rest of the config
        /^tftp-server flash /   && next; # kill any tftp remains
        /^ntp clock-period /    && next; # kill ntp clock-period
        /^ length /             && next; # kill length on serial lines
        /^ width /              && next; # kill width on serial lines
        $lineauto = 1 if /^ modem auto/;
        /^ speed / && $lineauto && next; # kill speed on serial lines
        /^ clockrate /          && next; # kill clockrate on serial interfaces
        if (/^(enable )?(password|passwd)( level \d+)? / && $filter_pwds >= 1) {
            ProcessHistory("ENABLE","","","!$1$2$3 <removed>\n");
            next;
        }
        if (/^(enable secret) / && $filter_pwds >= 2) {
            ProcessHistory("ENABLE","","","!$1 <removed>\n");
            next;
        }
        if (/^username (\S+)(\s.*)? secret /) {
            if ($filter_pwds >= 2) {
                ProcessHistory("USER","keysort","$1",
                               "!username $1$2 secret <removed>\n");
            } else {
                ProcessHistory("USER","keysort","$1","$_");
            }
            next;
        }
        if (/^username (\S+)(\s.*)? password ((\d) \S+|\S+)/) {
            if ($filter_pwds >= 2) {
                ProcessHistory("USER","keysort","$1",
                               "!username $1$2 password <removed>\n");
            } elsif ($filter_pwds >= 1 && $4 ne "5"){
                ProcessHistory("USER","keysort","$1",
                               "!username $1$2 password <removed>\n");
            } else {
                ProcessHistory("USER","keysort","$1","$_");
            }
            next;
        }
        # cisco AP w/ IOS
        if (/^(wlccp \S+ username (\S+)(\s.*)? password) (\d \S+|\S+)/) {
            if ($filter_pwds >= 1) {
                ProcessHistory("USER","keysort","$2","!$1 <removed>\n");
            } else {
                ProcessHistory("USER","keysort","$2","$_");
            }
            next;
        }
        # filter auto "rogue ap" configuration lines
        /^rogue ap classify / && next;
        if (/^( set session-key (in|out)bound ah \d+ )/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1<removed>\n");
            next;
        }
        if (/^( set session-key (in|out)bound esp \d+ (authenticator|cypher) )/
            && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1<removed>\n");
            next;
        }
        if (/^(\s*)password / && $filter_pwds >= 1) {
            ProcessHistory("LINE-PASS","","","!$1password <removed>\n");
            next;
        }
        if (/^(\s*)secret / && $filter_pwds >= 2) {
            ProcessHistory("LINE-PASS","","","!$1secret <removed>\n");
            next;
        }
        if (/^\s*neighbor (\S*) password / && $filter_pwds >= 1) {
            ProcessHistory("","","","! neighbor $1 password <removed>\n");
            next;
        }
        if (/^(\s*ppp .* hostname) .*/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        if (/^(\s*ppp .* password) \d .*/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        if (/^(ip ftp password) / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        if (/^( ip ospf authentication-key) / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        # isis passwords appear to be completely plain-text
        if (/^\s+isis password (\S+)( .*)?/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!isis password <removed>$2\n"); next;
        }
        if (/^\s+(domain-password|area-password) (\S+)( .*)?/
                                                        && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>$3\n"); next;
        }
        # this is reversable, despite 'md5' in the cmd
        if (/^( ip ospf message-digest-key \d+ md5) / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        # this is also reversable, despite 'md5 encrypted' in the cmd
        if (/^(  message-digest-key \d+ md5 (7|encrypted)) /
            && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        if (/^((crypto )?isakmp key) (\d )?\S+ / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed> $'"); next;
        }
        # filter HSRP passwords
        if (/^(\s+standby \d+ authentication) / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        # this appears in "measurement/sla" images
        if (/^(\s+key-string \d?)/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        if (/^( l2tp tunnel \S+ password)/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        # i am told these are plain-text on the PIX
        if (/^(vpdn username (\S+) password)/) {
            if ($filter_pwds >= 1) {
                ProcessHistory("USER","keysort","$2","!$1 <removed>\n");
            } else {
                ProcessHistory("USER","keysort","$2","$_");
            }
            next;
        }
        # ASA/PIX keys in more system:running-config
        if (/^( pre-shared-key | key |failover key ).*/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed> $'"); next;
        }
        # ASA/PIX keys in more system:running-config
        if (/(\s+ldap-login-password )\S+(.*)/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed> $'"); next;
        }
        # filter WPA password such as on cisco 877W ISR
        if (/^\s+(wpa-psk ascii|hex \d) / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        #
        if (/^( cable shared-secret )/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n");
            next;
        }
        /fair-queue individual-limit/ && next;
        # sort ip explicit-paths.
        if (/^ip explicit-path name (\S+)/) {
            my($key) = $1;
            my($expath) = $_;
            while (<INPUT>) {
                tr/\015//d;
                last if (/^$prompt/);
                last if (/^$prompt/ || ! /^(ip explicit-path name |[ !])/);
                if (/^ip explicit-path name (\S+)/) {
                    ProcessHistory("EXPATH","keysort","$key","$expath");
                    $key = $1;
                    $expath = $_;
                } else  {
                    $expath .= $_;
                }
            }
            ProcessHistory("EXPATH","keysort","$key","$expath");
        }
        # sort route-maps
        if (/^route-map (\S+)/) {
            my($key) = $1;
            my($routemap) = $_;
            while (<INPUT>) {
                tr/\015//d;
                last if (/^$prompt/ || ! /^(route-map |[ !])/);
                if (/^route-map (\S+)/) {
                    ProcessHistory("ROUTEMAP","keysort","$key","$routemap");
                    $key = $1;
                    $routemap = $_;
                } else  {
                    $routemap .= $_;
                }
            }
            ProcessHistory("ROUTEMAP","keysort","$key","$routemap");
        }
        # filter out any RCS/CVS tags to avoid confusing local CVS storage
        s/\$(Revision|Id):/ $1:/;
        # order access-lists
        /^access-list\s+(\d\d?)\s+(\S+)\s+(\S+)/ &&
            ProcessHistory("ACL $1 $2","$aclsort","$3","$_") && next;
        # order extended access-lists
        /^access-list\s+(\d\d\d)\s+(\S+)\s+ip\s+host\s+(\S+)/ &&
            ProcessHistory("EACL $1 $2","$aclsort","$3","$_") && next;
        /^access-list\s+(\d\d\d)\s+(\S+)\s+ip\s+(\d\S+)/ &&
            ProcessHistory("EACL $1 $2","$aclsort","$3","$_") && next;
        /^access-list\s+(\d\d\d)\s+(\S+)\s+ip\s+any/ &&
            ProcessHistory("EACL $1 $2","$aclsort","0.0.0.0","$_") && next;
        # order arp lists
        /^arp\s+(\d+\.\d+\.\d+\.\d+)\s+/ &&
            ProcessHistory("ARP","$aclsort","$1","$_") && next;
        /^ip(v6)? prefix-list\s+(\S+)\s+seq\s+(\d+)\s+(permit|deny)\s+(\S+)(\/.*)$/
            && ProcessHistory("PACL $2 $4","$aclsort","$5",
                              "ip$1 prefix-list $2 $4 $5$6\n")
            && next;
        # order logging statements
        /^logging (\d+\.\d+\.\d+\.\d+)/ &&
            ProcessHistory("LOGGING","ipsort","$1","$_") && next;
        # order/prune snmp-server host statements
        # we only prune lines of the form
        # snmp-server host a.b.c.d <community>
        if (/^snmp-server host (\d+\.\d+\.\d+\.\d+) /) {
            if ($filter_commstr) {
                my($ip) = $1;
                my($line) = "snmp-server host $ip";
                my(@tokens) = split(' ', $');
                my($token);
                while ($token = shift(@tokens)) {
                    if ($token eq 'version') {
                        $line .= " " . join(' ', ($token, shift(@tokens)));
                        if ($token eq '3') {
                            $line .= " " . join(' ', ($token, shift(@tokens)));
                        }
                    } elsif ($token eq 'vrf') {
                        $line .= " " . join(' ', ($token, shift(@tokens)));
                    } elsif ($token =~ /^(informs?|traps?|(no)?auth)$/) {
                        $line .= " " . $token;
                    } else {
                        $line = "!$line " . join(' ', ("<removed>",
                                                 join(' ',@tokens)));
                        last;
                    }
                }
                ProcessHistory("SNMPSERVERHOST","ipsort","$ip","$line\n");
            } else {
                ProcessHistory("SNMPSERVERHOST","ipsort","$1","$_");
            }
            next;
        }
        if (/^(snmp-server community) (\S+)/) {
            if ($filter_commstr) {
                ProcessHistory("SNMPSERVERCOMM","keysort","$_",
                               "!$1 <removed>$'") && next;
            } else {
                ProcessHistory("SNMPSERVERCOMM","keysort","$_","$_") && next;
            }
        }
        # prune tacacs/radius server keys
        if (/^((tacacs|radius)-server\s(\w*[-\s(\s\S+])*\s?key) (\d )?\S+/
            && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>$'"); next;
        }
        # order clns host statements
        /^clns host \S+ (\S+)/ &&
            ProcessHistory("CLNS","keysort","$1","$_") && next;
        # order alias statements
        /^alias / && ProcessHistory("ALIAS","keysort","$_","$_") && next;
        # delete ntp auth password - this md5 is a reversable too
        if (/^(ntp authentication-key \d+ md5) / && $filter_pwds >= 1) {
            ProcessHistory("","","","!$1 <removed>\n"); next;
        }
        # order ntp peers/servers
        if (/^ntp (server|peer) (\d+)\.(\d+)\.(\d+)\.(\d+)/) {
            $sortkey = sprintf("$1 %03d%03d%03d%03d",$2,$3,$4,$5);
            ProcessHistory("NTP","keysort",$sortkey,"$_");
            next;
        }
        # order ip host statements
        /^ip host (\S+) / &&
            ProcessHistory("IPHOST","keysort","$1","$_") && next;
        # order ip nat source static statements
        /^ip nat (\S+) source static (\S+)/ &&
            ProcessHistory("IP NAT $1","ipsort","$2","$_") && next;
        # order atm map-list statements
        /^\s+ip\s+(\d+\.\d+\.\d+\.\d+)\s+atm-vc/ &&
            ProcessHistory("ATM map-list","ipsort","$1","$_") && next;
        # order ip rcmd lines
        /^ip rcmd/ && ProcessHistory("RCMD","keysort","$_","$_") && next;

        # system controller
        /^syscon address (\S*) (\S*)/ &&
            ProcessHistory("","","","!syscon address $1 <removed>\n") &&
            next;
        if (/^syscon password (\S*)/ && $filter_pwds >= 1) {
            ProcessHistory("","","","!syscon password <removed>\n");
            next;
        }

        /^ *Cryptochecksum:/ && next;

        # catch anything that wasnt matched above.
        ProcessHistory("","","","$_");
        # end of config.  the ": " game is for the PIX
        if (/^(: +)?end$/) {
            $found_end = 1;
            return(0);
        }
    }
    # The ContentEngine lacks a definitive "end of config" marker.  If we
    # know that it is a CE, SAN, or NXOS and we have seen at least 5 lines
    # of write term output, we can be reasonably sure that we got the config.
    if (($type == "CE" || $type == "SAN" || $type == "NXOS" ) && $linecnt > 5) {
        $found_end = 1;
        return(0);
    }

    return(0);
}

# dummy function
sub DoNothing {print STDOUT;}

# Main
@commandtable = (
        {'show version'                 => 'ShowVersion'},
        {'show redundancy secondary'    => 'ShowRedundancy'},
        {'show idprom backplane',       => 'ShowIDprom'},
        {'show install active'          => 'ShowInstallActive'},
        {'show env all'                 => 'ShowEnv'},
        {'show rsp chassis-info',       => 'ShowRSP'},
        {'show gsr chassis'             => 'ShowGSR'},
        {'show diag chassis-info'       => 'ShowGSR'},
        {'show boot'                    => 'ShowBoot'},
        {'show bootvar'                 => 'ShowBoot'},
        {'show variables boot'          => 'ShowBoot'},
        {'show flash'                   => 'ShowFlash'},
        {'dir /all nvram:'              => 'DirSlotN'},
        {'dir /all bootflash:'          => 'DirSlotN'},
        {'dir /all slot0:'              => 'DirSlotN'},
        {'dir /all disk0:'              => 'DirSlotN'},
        {'dir /all slot1:'              => 'DirSlotN'},
        {'dir /all disk1:'              => 'DirSlotN'},
        {'dir /all slot2:'              => 'DirSlotN'},
        {'dir /all disk2:'              => 'DirSlotN'},
        {'dir /all harddisk:'           => 'DirSlotN'},
        {'dir /all harddiska:'          => 'DirSlotN'},
        {'dir /all harddiskb:'          => 'DirSlotN'},
        {'dir /all sup-bootdisk:'       => 'DirSlotN'},         # 6500 sup32
        {'dir /all sup-bootflash:'      => 'DirSlotN'},         # cat 6500-ios
        {'dir /all sup-microcode:'      => 'DirSlotN'},         # cat 6500-ios
        {'dir /all slavenvram:'         => 'DirSlotN'},
        {'dir /all slavebootflash:'     => 'DirSlotN'},
        {'dir /all slaveslot0:'         => 'DirSlotN'},
        {'dir /all slavedisk0:'         => 'DirSlotN'},
        {'dir /all slaveslot1:'         => 'DirSlotN'},
        {'dir /all slavedisk1:'         => 'DirSlotN'},
        {'dir /all slaveslot2:'         => 'DirSlotN'},
        {'dir /all slavedisk2:'         => 'DirSlotN'},
        {'dir /all slavesup-bootflash:' => 'DirSlotN'},         # cat 7609
        {'dir /all sec-nvram:'          => 'DirSlotN'},
        {'dir /all sec-bootflash:'      => 'DirSlotN'},
        {'dir /all sec-slot0:'          => 'DirSlotN'},
        {'dir /all sec-disk0:'          => 'DirSlotN'},
        {'dir /all sec-slot1:'          => 'DirSlotN'},
        {'dir /all sec-disk1:'          => 'DirSlotN'},
        {'dir /all sec-slot2:'          => 'DirSlotN'},
        {'dir /all sec-disk2:'          => 'DirSlotN'},
        {'show controllers'             => 'ShowContAll'},
        {'show controllers cbus'        => 'ShowContCbus'},
        {'show diagbus'                 => 'ShowDiagbus'},
        {'show diag'                    => 'ShowDiag'},
        {'show capture'                 => 'ShowCapture'},      # ASA/PIX
        {'show module'                  => 'ShowModule'},       # cat 6500-ios
        {'show spe version'             => 'ShowSpeVersion'},
        {'show c7200'                   => 'ShowC7200'},
        {'show inventory raw'           => 'ShowInventory'},
        {'show vtp status'              => 'ShowVTP'},
        {'show vlan'                    => 'ShowVLAN'},
        {'show vlan-switch'             => 'ShowVLAN'},
        {'show debug'                   => 'ShowDebug'},
        {'show shun'                    => 'ShowShun'},         # ASA/PIX
        {'more system:running-config'   => 'WriteTerm'},        # ASA/PIX
        {'show running-config view full'=> 'WriteTerm'},        # workaround for
                                                                # role-based CLI
        {'show running-config'          => 'WriteTerm'},
        {'write term'                   => 'WriteTerm'},
);
# Use an array to preserve the order of the commands and a hash for mapping
# commands to the subroutine and track commands that have been completed.
@commands = map(keys(%$_), @commandtable);
%commands = map(%$_, @commandtable);

$cisco_cmds = join(";",@commands);
$cmds_regexp = join("|", map quotemeta($_), @commands);

if (length($host) == 0) {
    if ($file) {
        print(STDERR "Too few arguments: file name required\n");
        exit(1);
    } else {
        print(STDERR "Too few arguments: host name required\n");
        exit(1);
    }
}
open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n";
select(OUTPUT);
# make OUTPUT unbuffered if debugging
if ($debug) { $| = 1; }

if ($file) {
    print STDERR "opening file $host\n" if ($debug);
    print STDOUT "opening file $host\n" if ($log);
    open(INPUT,"<$host") || die "open failed for $host: $!\n";
} else {
    print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug);
    print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log);
    if (defined($ENV{NOPIPE}) && $ENV{NOPIPE} =~ /^YES/i) {
        system "clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null > $host.raw 2>&1" || die "clogin failed for $host: $!\n";
        open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n";
    } else {
        open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null |") || die "clogin failed for $host: $!\n";
    }
}

# determine ACL sorting mode
if ($ENV{"ACLSORT"} =~ /no/i) {
    $aclsort = "";
}
# determine community string filtering mode
if (defined($ENV{"NOCOMMSTR"}) &&
    ($ENV{"NOCOMMSTR"} =~ /yes/i || $ENV{"NOCOMMSTR"} =~ /^$/)) {
    $filter_commstr = 1;
} else {
    $filter_commstr = 0;
}
# determine password filtering mode
if ($ENV{"FILTER_PWDS"} =~ /no/i) {
    $filter_pwds = 0;
} elsif ($ENV{"FILTER_PWDS"} =~ /all/i) {
    $filter_pwds = 2;
} else {
    $filter_pwds = 1;
}

ProcessHistory("","","","!RANCID-CONTENT-TYPE: cisco\n!\n");
ProcessHistory("COMMENTS","keysort","B0","!\n");
ProcessHistory("COMMENTS","keysort","D0","!\n");
ProcessHistory("COMMENTS","keysort","F0","!\n");
ProcessHistory("COMMENTS","keysort","G0","!\n");
TOP: while(<INPUT>) {
    tr/\015//d;
    if (/[>#]\s?exit$/) {
        $clean_run = 1;
        last;
    }
    if (/^Error:/) {
        print STDOUT ("$host clogin error: $_");
        print STDERR ("$host clogin error: $_") if ($debug);
        $clean_run = 0;
        last;
    }
    while (/[>#]\s*($cmds_regexp)\s*$/) {
        $cmd = $1;
        if (!defined($prompt)) {
            $prompt = ($_ =~ /^([^#>]+[#>])/)[0];
            $prompt =~ s/([][}{)(\\])/\\$1/g;
            print STDERR ("PROMPT MATCH: $prompt\n") if ($debug);
        }
        print STDERR ("HIT COMMAND:$_") if ($debug);
        if (! defined($commands{$cmd})) {
            print STDERR "$host: found unexpected command - \"$cmd\"\n";
            $clean_run = 0;
            last TOP;
        }
        $rval = &{$commands{$cmd}};
        delete($commands{$cmd});
        if ($rval == -1) {
            $clean_run = 0;
            last TOP;
        }
    }
}
print STDOUT "Done $logincmd: $_\n" if ($log);
# Flush History
ProcessHistory("","","","");
# Cleanup
close(INPUT);
close(OUTPUT);

if (defined($ENV{NOPIPE}) && $ENV{NOPIPE} =~ /^YES/i) {
    unlink("$host.raw") if (! $debug);
}

# check for completeness
if (scalar(%commands) || !$clean_run || !$found_end) {
    if (scalar(%commands)) {
        printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands)));
        printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(%commands))) if ($debug);
    }
    if (!$clean_run || !$found_end) {
        print STDOUT "$host: End of run not found\n";
        print STDERR "$host: End of run not found\n" if ($debug);
        system("/usr/bin/tail -1 $host.new");
    }
    unlink "$host.new" if (! $debug);
}

(carmom@doon)-(0)-(11:48 AM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> less rblogin

(carmom@doon)-(0)-(12:07 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> rblogin 10.20.50.253

Error: password file (/home/carmom/.cloginrc) does not exist

(carmom@doon)-(0)-(12:08 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin 10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 12:05:11 2012 from 10.20.51.32
Canberra >
Canberra > exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(12:09 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rblogin

(carmom@doon)-(0)-(12:09 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin 10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 12:08:49 2012 from 10.20.55.230
Canberra > en
Canberra # sh run
##
## Network interface configuration
##
   interface aux description ""
no interface aux dhcp
no interface aux dhcp dynamic-dns
   interface aux duplex auto
no interface aux force-mdi-x enable
   interface aux mtu "1500"
   interface aux napi-weight "128"
   interface aux shutdown
   interface aux speed "auto"
   interface aux txqueuelen "100"
   interface inpath0_0 description ""
no interface inpath0_0 dhcp
no interface inpath0_0 dhcp dynamic-dns
no interface inpath0_0 force-mdi-x enable
   interface inpath0_0 ip address 10.20.58.252 /24
   interface inpath0_0 mtu "1500"
   interface inpath0_0 napi-weight "128"
no interface inpath0_0 shutdown
   interface inpath0_0 speed "auto"
   interface inpath0_0 txqueuelen "100"
   interface lan0_0 description ""
no interface lan0_0 dhcp
no interface lan0_0 dhcp dynamic-dns
   interface lan0_0 duplex auto
no interface lan0_0 force-mdi-x enable
   interface lan0_0 mtu "0"
   interface lan0_0 napi-weight "128"
no interface lan0_0 shutdown
   interface lan0_0 speed "auto"
   interface lan0_0 txqueuelen "100"
no interface primary dhcp
   interface primary duplex full
   interface primary ip address 10.20.50.253 /24
   interface primary speed "1000"
   interface wan0_0 description ""
no interface wan0_0 dhcp
no interface wan0_0 dhcp dynamic-dns
   interface wan0_0 duplex auto
no interface wan0_0 force-mdi-x enable
   interface wan0_0 mtu "0"
   interface wan0_0 napi-weight "128"
no interface wan0_0 shutdown
   interface wan0_0 speed "auto"
   interface wan0_0 txqueuelen "100"

##
## Routing configuration
##
   ip default-gateway "10.20.50.254"
   ip in-path fwm-route interface inpath0_0 target-addr "0.0.0.0"
   ip in-path route inpath0_0 10.20.58.0 255.255.255.0 10.20.58.254
   ip in-path-gateway inpath0_0 "10.20.58.254"
Canberra # exit
Connection to 10.20.50.253 closed.
^[[A
(carmom@doon)-(0)-(12:10 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin 10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password: sh
Canberra > sh runay 21 12:10:04 2012 from 10.20.55.230
% Unrecognized command "run".
Type "sh ?" for help.
Canberra > exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(12:10 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim rblogin

(carmom@doon)-(0)-(12:11 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid clogin 10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)?
Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 12:10:32 2012 from 10.20.55.230
Canberra > enable
Canberra #
Canberra # sh run
##
## Network interface configuration
##
   interface aux description ""
no interface aux dhcp
no interface aux dhcp dynamic-dns
   interface aux duplex auto
no interface aux force-mdi-x enable
   interface aux mtu "1500"
   interface aux napi-weight "128"
   interface aux shutdown
   interface aux speed "auto"
   interface aux txqueuelen "100"
   interface inpath0_0 description ""
no interface inpath0_0 dhcp
no interface inpath0_0 dhcp dynamic-dns
no interface inpath0_0 force-mdi-x enable
   interface inpath0_0 ip address 10.20.58.252 /24
   interface inpath0_0 mtu "1500"
   interface inpath0_0 napi-weight "128"
no interface inpath0_0 shutdown
   interface inpath0_0 speed "auto"
   interface inpath0_0 txqueuelen "100"
   interface lan0_0 description ""
no interface lan0_0 dhcp
no interface lan0_0 dhcp dynamic-dns
   interface lan0_0 duplex auto
no interface lan0_0 force-mdi-x enable
   interface lan0_0 mtu "0"
   interface lan0_0 napi-weight "128"
no interface lan0_0 shutdown
   interface lan0_0 speed "auto"
   interface lan0_0 txqueuelen "100"
no interface primary dhcp
   interface primary duplex full
   interface primary ip address 10.20.50.253 /24
   interface primary speed "1000"
   interface wan0_0 description ""
no interface wan0_0 dhcp
no interface wan0_0 dhcp dynamic-dns
   interface wan0_0 duplex auto
no interface wan0_0 force-mdi-x enable
   interface wan0_0 mtu "0"
   interface wan0_0 napi-weight "128"
no interface wan0_0 shutdown
   interface wan0_0 speed "auto"
   interface wan0_0 txqueuelen "100"

##
## Routing configuration
##
   ip default-gateway "10.20.50.254"
   ip in-path fwm-route interface inpath0_0 target-addr "0.0.0.0"
   ip in-path route inpath0_0 10.20.58.0 255.255.255.0 10.20.58.254
   ip in-path-gateway inpath0_0 "10.20.58.254"
Canberra # exit
Connection to 10.20.50.253 closed.

(/usr/local/bin)-(61 files, 1.5Mb)--> )->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim clogin                         '10.20.50.253
(/usr/local/bin)-(61 files, 1.5Mb)-->                                   n10.20.50.253
(/usr/local/bin)-(61 files, 1.5Mb)--> -c command] [-Evar=x] [-f cloginrc n'10.20.50.253r-password]  [-s script-file] [-t timeout] [-u username]  [-v vty-password] [-x command-file]  [-y ssh_(/usr/local/bin)-(61 files, 1.5Mb)--> vim rblogin                     run'1 10.20.50.253
10.20.50.253bin)-(61 files, 1.5Mb)--> -c command] [-Evar=x] [-f cloginrc-f 10.20.50.253r-password]  [-s script-file] [-t timeout] [-u username]  [-v vty-password] [-x command-file]  [-y ssh_spawn ssh -c 3des -x -l rancid 10.20.50.253-u rancid rblogin -c 'show run'10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.                     n'10.20.50.253
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established..20.50.253
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.u n'10.20.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 12:15:22 2012 from 10.20.55.230
Canberra > enable
Canberra # show run
##
## Network interface configuration
##
   interface aux description ""
no interface aux dhcp
no interface aux dhcp dynamic-dns
   interface aux duplex auto
no interface aux force-mdi-x enable
   interface aux mtu "1500"
   interface aux napi-weight "128"
   interface aux shutdown
   interface aux speed "auto"
   interface aux txqueuelen "100"
   interface inpath0_0 description ""
no interface inpath0_0 dhcp
no interface inpath0_0 dhcp dynamic-dns
no interface inpath0_0 force-mdi-x enable
   interface inpath0_0 ip address 10.20.58.252 /24
   interface inpath0_0 mtu "1500"
   interface inpath0_0 napi-weight "128"
no interface inpath0_0 shutdown
   interface inpath0_0 speed "auto"
   interface inpath0_0 txqueuelen "100"
   interface lan0_0 description ""
no interface lan0_0 dhcp
no interface lan0_0 dhcp dynamic-dns
   interface lan0_0 duplex auto
no interface lan0_0 force-mdi-x enable
   interface lan0_0 mtu "0"
   interface lan0_0 napi-weight "128"
no interface lan0_0 shutdown
   interface lan0_0 speed "auto"
   interface lan0_0 txqueuelen "100"
no interface primary dhcp
   interface primary duplex full
   interface primary ip address 10.20.50.253 /24
   interface primary speed "1000"
   interface wan0_0 description ""
no interface wan0_0 dhcp
no interface wan0_0 dhcp dynamic-dns
   interface wan0_0 duplex auto
no interface wan0_0 force-mdi-x enable
   interface wan0_0 mtu "0"
   interface wan0_0 napi-weight "128"
no interface wan0_0 shutdown
   interface wan0_0 speed "auto"
   interface wan0_0 txqueuelen "100"

##
## Routing configuration
##
   ip default-gateway "10.20.50.254"
   ip in-path fwm-route interface inpath0_0 target-addr "0.0.0.0"
   ip in-path route inpath0_0 10.20.58.0 255.255.255.0 10.20.58.254
   ip in-path-gateway inpath0_0 "10.20.58.254"
   ip route 10.20.50.0 255.255.255.0 10.20.58.214
   ip route 10.20.55.0 255.255.255.0 10.20.58.242

##
## Other IP configuration
##
   hostname "Canberra"
   ip domain-list itsa-int.itsa.gov.au
   ip name-server 10.20.55.127

##
## Logging configuration
##
   logging files rotation max-num "5"

##
## AAA configuration
##
   tacacs-server host 10.20.55.230 auth-type ascii timeout 3 retransmit 1
   tacacs-server host 10.20.55.230 key 7 "FdA66BSXj8ic+M61fnw5USUBVq2NfJHx"
   aaa authentication login default local tacacs+
   aaa accounting per-command default tacacs+

##
## Port Labels
##
   port-label "Internet-Proxy" port "8080"
   port-label "Intranet" port "80"
   port-label "OTISS-eSolve" port "7777"
   port-label "Symantec-AV" port "8014"

##
## QoS Classification
##
   qos classification interface wan0_0 burst "64"
   qos classification interface primary curve-burst "0"
   qos classification interface wan0_0 curve-burst "0"
   qos classification interface primary mtu "1514/8"
   qos classification interface wan0_0 mtu "1514/8"
   qos classification d-pkt-offset "3"
   qos classification mode hierarchy enable

##
## Peer Shared Secret
##
no service shared-secret enable
   service shared-secret secret client ""
   service shared-secret secret server ""

##
## Service Authentication
##
   ip security shared secret ""
   ip security encryption policy des
   ip security over-primary
   ip security pfs enable
   ip security pfsgroup "modp1024"
   ip security rekey interval "240"
no ip security enable

##
## In-Path Rules
##
   in-path rule pass-through srcaddr 10.20.55.176/32 dstaddr 10.20.61.176/32 dstport "all" vlan -1 description "" rulenum 4
   in-path rule pass-through srcaddr 10.20.61.176/32 dstaddr 10.20.55.176/32 dstport "all" vlan -1 description "" rulenum 5

##
## General Service
##
   in-path enable
no in-path lsp enable
no in-path mac-match-vlan
no in-path vlan-conn-based
   in-path simplified routing "all"
no in-path peering auto
   ip flow-export destination 10.20.55.136 9991 egress
   ip flow-export destination 10.20.55.136 9991 export-port primary
   ip flow-export destination 10.20.55.136 9991 filter-enable
   ip flow-export destination 10.20.55.136 9991 interface lan0_0
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 interface wan0_0
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 lan-addrs on
   ip flow-export destination 10.20.55.136 9991 template refresh-rate 300
   ip flow-export destination 10.20.55.136 9991 template timeout-rate 15
   ip flow-export destination 10.20.55.136 9991 version Netflow-v9
   ip flow-export enable
no protocol cifs applock enable
no protocol cifs mac oplock enable
   protocol http server-subnet all obj-pref-table no parse-prefetch no url-learning yes reuse-auth no strip-auth-hdr no gratuitous-401 no force-nego-ntlm no strip-compress yes insert-cookie
no insrt-keep-aliv no
no protocol http space-in-uri enable
   protocol mapi 2k7 native enable
   protocol mapi encrypted enable
   protocol mapi nspi enable
   sport interface aux rx-size "256"
   sport interface aux tx-size "4096"
   sport interface inpath0_0 rx-size "256"
   sport interface inpath0_0 tx-size "4096"
   sport interface lan0_0 rx-size "256"
   sport interface lan0_0 tx-size "4096"
   sport interface primary rx-size "256"
   sport interface primary tx-size "4096"
   sport interface wan0_0 rx-size "256"
   sport interface wan0_0 tx-size "4096"
   stats settings bandwidth port 1096 desc "DNS and Common Name Resolution Protocol"
   stats settings bandwidth port 1124 desc "DFS Replication"
   stats settings bandwidth port 1129 desc "DFS Replication"
   stats settings bandwidth port 1521 desc "ORACLE RDBMS"
   stats settings bandwidth port 2967 desc "Symantec AntiVirus Corporate Edition"
   stats settings bandwidth port 7777 desc "OTISS and ESolve"
   stats settings bandwidth port 7830 desc "MAPI and Exchange"
   stats settings top-talkers enable
   stats settings top-talkers override active-to "60"

##
## Process Manager configuration
##
   pm process rsp_ha_syncd kill-timeout "5000"
   pm process rsp_ha_syncd soft_stck_limit "-1"
   pm process scepclientd soft_stck_limit "2097152"

##
## Network management configuration
##
   username "admin" password 7 $1$IJVmpoGx$3N0C/fAy6lQzp/CrrN8Bg/
   username "monitor" password 7 $1$XhqBC6lk$63LgifHnDKoF.dx1RJHD./
   clock timezone Australia ACT
   email mailhub "10.20.50.193"
   email notify events recipient "riverbed@itsa.gov.au"
   email notify failures recipient "riverbed@itsa.gov.au"
   license install LK1-SH10BASE-0000-0000-1-059B-6CA3-258B
   license install LK1-SH10CIFS-0000-0000-1-97FA-85D5-8A97
(/usr/local/bin)-(61 files, 1.5Mb)--> 000-1-2706-8E74-3A6C
(/usr/local/bin)-(61 files, 1.5Mb)--> 000-1-CEC5-9F11-2149             o'  10.20.50.253
10.20.50.253bin)-(61 files, 1.5Mb)--> 00-1-BFBB-B556-2165             f'  10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.25391A3-B36B-D2E9            n'  10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.                i'  10.20.50.253
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established..50.253
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.0.20.50.253
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.aes128-ctr,aes192-ctr,aes256-ctr"
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead61 files, 1.5Mb)-->                              '  10.20.50.253
rancid@10.20.50.253's password: b)-->                               '  10.20.50.253
Last login: Mon May 21 12:20:19 2012 from 10.20.55.230               '  10.20.50.253
Canberra > enable(61 files, 1.5Mb)--> vim francid                     '  10.20.50.253
Canberra # sh info61 files, 1.5Mb)-->                                  '  10.20.50.253
Current User:      rancidPM Mon May 21)->                               '  10.20.50.253
0.50.253cal/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin -c 'show run'  10.20
Status:            Healthy [Needs Attention]
Config:            riverbed1
Appliance Up Time: 168d 5h 27m 4s
Service Up Time:   153d 2h 30m 25s
Managed by CMC:    no
Temperature (C):   31

Serial:            T23PY0005D544
Model:             3020
Revision:          A
Version:           6.5.2b
Canberra # exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(01:47 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> clear

(carmom@doon)-(0)-(01:47 PM Mon May 21

(carmom@doon)-(0)-(01:48 PM Mon May 21)->
.50.253ocal/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin -c 'sh info'  10.20.
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 13:47:41 2012 from 10.20.55.230
Canberra > enable
Canberra # sh info
Current User:      rancid

Status:            Healthy [Needs Attention]
Config:            riverbed1
Appliance Up Time: 168d 5h 27m 38s
Service Up Time:   153d 2h 30m 59s
Managed by CMC:    no
Temperature (C):   31

Serial:            T23PY0005D544
Model:             3020
Revision:          A
Version:           6.5.2b
Canberra # exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(01:48 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin -c 'sh version'  10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 13:48:14 2012 from 10.20.55.230
Canberra > enable
Canberra # sh version
Product name:      rbt_sh
Product release:   6.5.2b
Build ID:          #113_30
Build date:        2011-10-19 19:25:56
Build arch:        x86_64
Built by:          root@palermo0

Uptime:            168d 6h 55m 39s

Product model:     3020
System memory:     3969 MB used / 3996 MB free / 7966 MB total
Number of CPUs:    2
CPU load averages: 0.30 / 0.30 / 0.32
Canberra # exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(03:16 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin -c 'show configuration; show licenses; show hardware; show info'  10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 15:16:16 2012 from 10.20.55.230
Canberra > enable
Canberra # show configuration
##
## Network interface configuration
##
   interface aux description ""
no interface aux dhcp
no interface aux dhcp dynamic-dns
   interface aux duplex auto
no interface aux force-mdi-x enable
   interface aux mtu "1500"
   interface aux napi-weight "128"
   interface aux shutdown
   interface aux speed "auto"
   interface aux txqueuelen "100"
   interface inpath0_0 description ""
no interface inpath0_0 dhcp
no interface inpath0_0 dhcp dynamic-dns
no interface inpath0_0 force-mdi-x enable
   interface inpath0_0 ip address 10.20.58.252 /24
   interface inpath0_0 mtu "1500"
   interface inpath0_0 napi-weight "128"
no interface inpath0_0 shutdown
   interface inpath0_0 speed "auto"
   interface inpath0_0 txqueuelen "100"
   interface lan0_0 description ""
no interface lan0_0 dhcp
no interface lan0_0 dhcp dynamic-dns
   interface lan0_0 duplex auto
no interface lan0_0 force-mdi-x enable
   interface lan0_0 mtu "0"
   interface lan0_0 napi-weight "128"
no interface lan0_0 shutdown
   interface lan0_0 speed "auto"
   interface lan0_0 txqueuelen "100"
no interface primary dhcp
   interface primary duplex full
   interface primary ip address 10.20.50.253 /24
   interface primary speed "1000"
   interface wan0_0 description ""
no interface wan0_0 dhcp
no interface wan0_0 dhcp dynamic-dns
   interface wan0_0 duplex auto
no interface wan0_0 force-mdi-x enable
   interface wan0_0 mtu "0"
   interface wan0_0 napi-weight "128"
no interface wan0_0 shutdown
   interface wan0_0 speed "auto"
   interface wan0_0 txqueuelen "100"

##
## Routing configuration
##
   ip default-gateway "10.20.50.254"
   ip in-path fwm-route interface inpath0_0 target-addr "0.0.0.0"
   ip in-path route inpath0_0 10.20.58.0 255.255.255.0 10.20.58.254
   ip in-path-gateway inpath0_0 "10.20.58.254"
   ip route 10.20.50.0 255.255.255.0 10.20.58.214
   ip route 10.20.55.0 255.255.255.0 10.20.58.214

##
## Other IP configuration
##
   hostname "Canberra"
   ip domain-list itsa-int.itsa.gov.au
   ip name-server 10.20.55.127

##
## Logging configuration
##
   logging files rotation max-num "5"

##
## Port Labels
##
   port-label "Internet-Proxy" port "8080"
   port-label "Intranet" port "80"
   port-label "OTISS-eSolve" port "7777"
   port-label "Symantec-AV" port "8014"

##
## QoS Classification
##
   qos classification interface wan0_0 burst "64"
   qos classification interface primary curve-burst "0"
   qos classification interface wan0_0 curve-burst "0"
   qos classification interface primary mtu "1514/8"
   qos classification interface wan0_0 mtu "1514/8"
   qos classification d-pkt-offset "3"
   qos classification mode hierarchy enable

##
## Peer Shared Secret
##
no service shared-secret enable
   service shared-secret secret client ""
   service shared-secret secret server ""

##
## Service Authentication
##
   ip security shared secret ""
   ip security encryption policy des
   ip security over-primary
   ip security pfs enable
   ip security pfsgroup "modp1024"
   ip security rekey interval "240"
no ip security enable

##
## In-Path Rules
##
   in-path rule pass-through srcaddr 10.20.55.176/32 dstaddr 10.20.61.176/32 dstport "all" vlan -1 description "" rulenum 4
   in-path rule pass-through srcaddr 10.20.61.176/32 dstaddr 10.20.55.176/32 dstport "all" vlan -1 description "" rulenum 5

##
## General Service
##
   in-path enable
no in-path lsp enable
no in-path mac-match-vlan
no in-path vlan-conn-based
   in-path simplified routing "all"
no in-path peering auto
   ip flow-export destination 10.20.55.136 9991 egress
   ip flow-export destination 10.20.55.136 9991 export-port primary
   ip flow-export destination 10.20.55.136 9991 filter-enable
   ip flow-export destination 10.20.55.136 9991 interface lan0_0
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 interface wan0_0
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 lan-addrs on
   ip flow-export destination 10.20.55.136 9991 template refresh-rate 300
   ip flow-export destination 10.20.55.136 9991 template timeout-rate 15
   ip flow-export destination 10.20.55.136 9991 version Netflow-v9
   ip flow-export enable
no protocol cifs applock enable
no protocol cifs mac oplock enable
   protocol http server-subnet all obj-pref-table no parse-prefetch no url-learning yes reuse-auth no strip-auth-hdr no gratuitous-401 no force-nego-ntlm no strip-compress yes insert-cookie
no insrt-keep-aliv no
no protocol http space-in-uri enable
   protocol mapi 2k7 native enable
   protocol mapi encrypted enable
   protocol mapi nspi enable
   sport interface aux rx-size "256"
   sport interface aux tx-size "4096"
   sport interface inpath0_0 rx-size "256"
   sport interface inpath0_0 tx-size "4096"
   sport interface lan0_0 rx-size "256"
   sport interface lan0_0 tx-size "4096"
   sport interface primary rx-size "256"
   sport interface primary tx-size "4096"
   sport interface wan0_0 rx-size "256"
   sport interface wan0_0 tx-size "4096"
   stats settings bandwidth port 1096 desc "DNS and Common Name Resolution Protocol"
   stats settings bandwidth port 1124 desc "DFS Replication"
   stats settings bandwidth port 1129 desc "DFS Replication"
   stats settings bandwidth port 1521 desc "ORACLE RDBMS"
   stats settings bandwidth port 2967 desc "Symantec AntiVirus Corporate Edition"
   stats settings bandwidth port 7777 desc "OTISS and ESolve"
   stats settings bandwidth port 7830 desc "MAPI and Exchange"
   stats settings top-talkers enable
   stats settings top-talkers override active-to "60"

##
## Process Manager configuration
##
   pm process rsp_ha_syncd kill-timeout "5000"
   pm process rsp_ha_syncd soft_stck_limit "-1"
   pm process scepclientd soft_stck_limit "2097152"

##
## Network management configuration
##
   username "admin" password 7 $1$IJVmpoGx$3N0C/fAy6lQzp/CrrN8Bg/
   username "monitor" password 7 $1$XhqBC6lk$63LgifHnDKoF.dx1RJHD./
   clock timezone Australia ACT
   email mailhub "10.20.50.193"
   email notify events recipient "riverbed@itsa.gov.au"
   email notify failures recipient "riverbed@itsa.gov.au"
   license install LK1-SH10BASE-0000-0000-1-059B-6CA3-258B
   license install LK1-SH10CIFS-0000-0000-1-97FA-85D5-8A97
   license install LK1-SH10EXCH-0000-0000-1-2706-8E74-3A6C
   license install LK1-SH55RSPM-0000-0000-1-CEC5-9F11-2149
   license install LK1-SMCCIFS-0000-0000-1-BFBB-B556-2165
   license install LK1-SMCEXCH-0000-0000-1-91A3-B36B-D2E9
   ntp server 10.20.58.254 enable
   ntp server 10.20.58.254 version "4"
   snmp-server engine-ID "0x8000430b80450da4034b989404"
   ssh server allowed-ciphers "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr"
no stats alarm disk_not_setup enable
Canberra #  show licenses
Local: LK1-SH10BASE-0000-0000-1-059B-6CA3-258B
   Index:       1
   Feature:     SH10BASE
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SH10CIFS-0000-0000-1-97FA-85D5-8A97
   Index:       2
   Feature:     SH10CIFS
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SH10EXCH-0000-0000-1-2706-8E74-3A6C
   Index:       3
   Feature:     SH10EXCH
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SH55RSPM-0000-0000-1-CEC5-9F11-2149
   Index:       4
   Feature:     SH55RSPM
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SMCCIFS-0000-0000-1-BFBB-B556-2165
   Index:       5
   Feature:     SMCCIFS
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SMCEXCH-0000-0000-1-91A3-B36B-D2E9
   Index:       6
   Feature:     SMCEXCH
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Canberra #  show hardware
% Incomplete command.
Type "show hardware ?" for help.
Canberra #  show info
Current User:      rancid

Status:            Healthy [Needs Attention]
Config:            riverbed1
Appliance Up Time: 168d 6h 58m 39s
Service Up Time:   153d 4h 2m 1s
Managed by CMC:    no
Temperature (C):   31

Serial:            T23PY0005D544
Model:             3020
Revision:          A
Version:           6.5.2b
Canberra # exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(03:19 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> sudo -u rancid rblogin -c 'show configuration running; show licenses; show hardware all; show info'  10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 15:20:02 2012 from 10.20.51.32
Canberra > enable
Canberra # show configuration running
##
## Network interface configuration
##
   interface aux description ""
no interface aux dhcp
no interface aux dhcp dynamic-dns
   interface aux duplex auto
no interface aux force-mdi-x enable
   interface aux mtu "1500"
   interface aux napi-weight "128"
   interface aux shutdown
   interface aux speed "auto"
   interface aux txqueuelen "100"
   interface inpath0_0 description ""
no interface inpath0_0 dhcp
no interface inpath0_0 dhcp dynamic-dns
no interface inpath0_0 force-mdi-x enable
   interface inpath0_0 ip address 10.20.58.252 /24
   interface inpath0_0 mtu "1500"
   interface inpath0_0 napi-weight "128"
no interface inpath0_0 shutdown
   interface inpath0_0 speed "auto"
   interface inpath0_0 txqueuelen "100"
   interface lan0_0 description ""
no interface lan0_0 dhcp
no interface lan0_0 dhcp dynamic-dns
   interface lan0_0 duplex auto
no interface lan0_0 force-mdi-x enable
   interface lan0_0 mtu "0"
   interface lan0_0 napi-weight "128"
no interface lan0_0 shutdown
   interface lan0_0 speed "auto"
   interface lan0_0 txqueuelen "100"
no interface primary dhcp
   interface primary duplex full
   interface primary ip address 10.20.50.253 /24
   interface primary speed "1000"
   interface wan0_0 description ""
no interface wan0_0 dhcp
no interface wan0_0 dhcp dynamic-dns
   interface wan0_0 duplex auto
no interface wan0_0 force-mdi-x enable
   interface wan0_0 mtu "0"
   interface wan0_0 napi-weight "128"
no interface wan0_0 shutdown
   interface wan0_0 speed "auto"
   interface wan0_0 txqueuelen "100"

##
## Routing configuration
##
   ip default-gateway "10.20.50.254"
   ip in-path fwm-route interface inpath0_0 target-addr "0.0.0.0"
   ip in-path route inpath0_0 10.20.58.0 255.255.255.0 10.20.58.254
   ip in-path-gateway inpath0_0 "10.20.58.254"
   ip route 10.20.50.0 255.255.255.0 10.20.58.214
   ip route 10.20.55.0 255.255.255.0 10.20.58.242

##
## Other IP configuration
##
   hostname "Canberra"
   ip domain-list itsa-int.itsa.gov.au
   ip name-server 10.20.55.127

##
## Logging configuration
##
   logging files rotation max-num "5"

##
## AAA configuration
##
   tacacs-server host 10.20.55.230 auth-type ascii timeout 3 retransmit 1
   tacacs-server host 10.20.55.230 key 7 "FdA66BSXj8ic+M61fnw5USUBVq2NfJHx"
   aaa authentication login default local tacacs+
   aaa accounting per-command default tacacs+

##
## Port Labels
##
   port-label "Internet-Proxy" port "8080"
   port-label "Intranet" port "80"
   port-label "OTISS-eSolve" port "7777"
   port-label "Symantec-AV" port "8014"

##
## QoS Classification
##
   qos classification interface wan0_0 burst "64"
   qos classification interface primary curve-burst "0"
   qos classification interface wan0_0 curve-burst "0"
   qos classification interface primary mtu "1514/8"
   qos classification interface wan0_0 mtu "1514/8"
   qos classification d-pkt-offset "3"
   qos classification mode hierarchy enable

##
## Peer Shared Secret
##
no service shared-secret enable
   service shared-secret secret client ""
   service shared-secret secret server ""

##
## Service Authentication
##
   ip security shared secret ""
   ip security encryption policy des
   ip security over-primary
   ip security pfs enable
   ip security pfsgroup "modp1024"
   ip security rekey interval "240"
no ip security enable

##
## In-Path Rules
##
   in-path rule pass-through srcaddr 10.20.55.176/32 dstaddr 10.20.61.176/32 dstport "all" vlan -1 description "" rulenum 4
   in-path rule pass-through srcaddr 10.20.61.176/32 dstaddr 10.20.55.176/32 dstport "all" vlan -1 description "" rulenum 5

##
## General Service
##
   in-path enable
no in-path lsp enable
no in-path mac-match-vlan
no in-path vlan-conn-based
   in-path simplified routing "all"
no in-path peering auto
   ip flow-export destination 10.20.55.136 9991 egress
   ip flow-export destination 10.20.55.136 9991 export-port primary
   ip flow-export destination 10.20.55.136 9991 filter-enable
   ip flow-export destination 10.20.55.136 9991 interface lan0_0
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 interface wan0_0
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 lan-addrs on
   ip flow-export destination 10.20.55.136 9991 template refresh-rate 300
   ip flow-export destination 10.20.55.136 9991 template timeout-rate 15
   ip flow-export destination 10.20.55.136 9991 version Netflow-v9
   ip flow-export enable
no protocol cifs applock enable
no protocol cifs mac oplock enable
   protocol http server-subnet all obj-pref-table no parse-prefetch no url-learning yes reuse-auth no strip-auth-hdr no gratuitous-401 no force-nego-ntlm no strip-compress yes insert-cookie
no insrt-keep-aliv no
no protocol http space-in-uri enable
   protocol mapi 2k7 native enable
   protocol mapi encrypted enable
   protocol mapi nspi enable
   sport interface aux rx-size "256"
   sport interface aux tx-size "4096"
   sport interface inpath0_0 rx-size "256"
   sport interface inpath0_0 tx-size "4096"
   sport interface lan0_0 rx-size "256"
   sport interface lan0_0 tx-size "4096"
   sport interface primary rx-size "256"
   sport interface primary tx-size "4096"
   sport interface wan0_0 rx-size "256"
   sport interface wan0_0 tx-size "4096"
   stats settings bandwidth port 1096 desc "DNS and Common Name Resolution Protocol"
   stats settings bandwidth port 1124 desc "DFS Replication"
   stats settings bandwidth port 1129 desc "DFS Replication"
   stats settings bandwidth port 1521 desc "ORACLE RDBMS"
   stats settings bandwidth port 2967 desc "Symantec AntiVirus Corporate Edition"
   stats settings bandwidth port 7777 desc "OTISS and ESolve"
   stats settings bandwidth port 7830 desc "MAPI and Exchange"
   stats settings top-talkers enable
   stats settings top-talkers override active-to "60"

##
## Process Manager configuration
##
   pm process rsp_ha_syncd kill-timeout "5000"
   pm process rsp_ha_syncd soft_stck_limit "-1"
   pm process scepclientd soft_stck_limit "2097152"

##
## Network management configuration
##
   username "admin" password 7 $1$IJVmpoGx$3N0C/fAy6lQzp/CrrN8Bg/
   username "monitor" password 7 $1$XhqBC6lk$63LgifHnDKoF.dx1RJHD./
   clock timezone Australia ACT
   email mailhub "10.20.50.193"
   email notify events recipient "riverbed@itsa.gov.au"
   email notify failures recipient "riverbed@itsa.gov.au"
   license install LK1-SH10BASE-0000-0000-1-059B-6CA3-258B
   license install LK1-SH10CIFS-0000-0000-1-97FA-85D5-8A97
   license install LK1-SH10EXCH-0000-0000-1-2706-8E74-3A6C
   license install LK1-SH55RSPM-0000-0000-1-CEC5-9F11-2149
   license install LK1-SMCCIFS-0000-0000-1-BFBB-B556-2165
   license install LK1-SMCEXCH-0000-0000-1-91A3-B36B-D2E9
   ntp server 10.20.58.254 enable
   ntp server 10.20.58.254 version "4"
   snmp-server engine-ID "0x8000430b80450da4034b989404"
   ssh server allowed-ciphers "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr"
no stats alarm disk_not_setup enable
Canberra #  show licenses
Local: LK1-SH10BASE-0000-0000-1-059B-6CA3-258B
   Index:       1
   Feature:     SH10BASE
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SH10CIFS-0000-0000-1-97FA-85D5-8A97
   Index:       2
   Feature:     SH10CIFS
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SH10EXCH-0000-0000-1-2706-8E74-3A6C
   Index:       3
   Feature:     SH10EXCH
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SH55RSPM-0000-0000-1-CEC5-9F11-2149
   Index:       4
   Feature:     SH55RSPM
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SMCCIFS-0000-0000-1-BFBB-B556-2165
   Index:       5
   Feature:     SMCCIFS
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Local: LK1-SMCEXCH-0000-0000-1-91A3-B36B-D2E9
   Index:       6
   Feature:     SMCEXCH
   Valid:       yes
   Active:      yes
   Start date:
   End date:

Canberra #  show hardware all
Hardware revision: A
Mainboard:  Series 3000/5000 Motherboard, CMP-00109
Slot 0: .......... 2 Port Copper GigE Network Bypass Card, CMP-00028
Slot 3: .......... LSI Logic / Symbios Logic MegaRAID SATA 300-8X RAID Controller, CMP-00127
Canberra #  show info
Current User:      rancid

Status:            Healthy [Needs Attention]
Config:            riverbed1
Appliance Up Time: 168d 7h 13m 34s
Service Up Time:   153d 4h 16m 56s
Managed by CMC:    no
Temperature (C):   31

Serial:            T23PY0005D544
Model:             3020
Revision:          A
Version:           6.5.2b
Canberra # exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(03:34 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim flogin

(carmom@doon)-(0)-(04:36 PM Mon May 21)->
(/usr/local/bin)-(61 files, 1.5Mb)--> vim francid

(carmom@doon)-(0)-(04:59 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo -u rancid rblogin -c 'show configuration running'  10.20.50.253
10.20.50.253
spawn ssh -c 3des -x -l rancid 10.20.50.253
Could not create directory '/usr/local/rancid/.ssh'.
The authenticity of host '10.20.50.253 (10.20.50.253)' can't be established.
RSA key fingerprint is 59:98:53:55:b3:84:1c:97:f8:d0:1f:b0:9d:b9:54:08.
Are you sure you want to continue connecting (yes/no)? Host 10.20.50.253 added to the list of known hosts.
yes
Failed to add the host to the list of known hosts (/usr/local/rancid/.ssh/known_hosts).
Riverbed Steelhead
rancid@10.20.50.253's password:
Last login: Mon May 21 16:53:09 2012 from 10.20.55.230
Canberra > enable
Canberra # show configuration running
##
## Network interface configuration
##
   interface aux description ""
no interface aux dhcp
no interface aux dhcp dynamic-dns
   interface aux duplex auto
no interface aux force-mdi-x enable
   interface aux mtu "1500"
   interface aux napi-weight "128"
   interface aux shutdown
   interface aux speed "auto"
   interface aux txqueuelen "100"
   interface inpath0_0 description ""
no interface inpath0_0 dhcp
no interface inpath0_0 dhcp dynamic-dns
no interface inpath0_0 force-mdi-x enable
   interface inpath0_0 ip address 10.20.58.252 /24
   interface inpath0_0 mtu "1500"
   interface inpath0_0 napi-weight "128"
no interface inpath0_0 shutdown
   interface inpath0_0 speed "auto"
   interface inpath0_0 txqueuelen "100"
   interface lan0_0 description ""
no interface lan0_0 dhcp
no interface lan0_0 dhcp dynamic-dns
   interface lan0_0 duplex auto
no interface lan0_0 force-mdi-x enable
   interface lan0_0 mtu "0"
   interface lan0_0 napi-weight "128"
no interface lan0_0 shutdown
   interface lan0_0 speed "auto"
   interface lan0_0 txqueuelen "100"
no interface primary dhcp
   interface primary duplex full
   interface primary ip address 10.20.50.253 /24
   interface primary speed "1000"
   interface wan0_0 description ""
no interface wan0_0 dhcp
no interface wan0_0 dhcp dynamic-dns
   interface wan0_0 duplex auto
no interface wan0_0 force-mdi-x enable
   interface wan0_0 mtu "0"
   interface wan0_0 napi-weight "128"
no interface wan0_0 shutdown
   interface wan0_0 speed "auto"
   interface wan0_0 txqueuelen "100"

##
## Routing configuration
##
   ip default-gateway "10.20.50.254"
   ip in-path fwm-route interface inpath0_0 target-addr "0.0.0.0"
   ip in-path route inpath0_0 10.20.58.0 255.255.255.0 10.20.58.254
   ip in-path-gateway inpath0_0 "10.20.58.254"
   ip route 10.20.50.0 255.255.255.0 10.20.58.214
   ip route 10.20.55.0 255.255.255.0 10.20.58.242

##
## Other IP configuration
##
   hostname "Canberra"
   ip domain-list itsa-int.itsa.gov.au
   ip name-server 10.20.55.127

##
## Logging configuration
##
   logging files rotation max-num "5"

##
## AAA configuration
##
   tacacs-server host 10.20.55.230 auth-type ascii timeout 3 retransmit 1
   tacacs-server host 10.20.55.230 key 7 "FdA66BSXj8ic+M61fnw5USUBVq2NfJHx"
   aaa authentication login default local tacacs+
   aaa accounting per-command default tacacs+

##
## Port Labels
##
   port-label "Internet-Proxy" port "8080"
   port-label "Intranet" port "80"
   port-label "OTISS-eSolve" port "7777"
   port-label "Symantec-AV" port "8014"

##
## QoS Classification
##
   qos classification interface wan0_0 burst "64"
   qos classification interface primary curve-burst "0"
   qos classification interface wan0_0 curve-burst "0"
   qos classification interface primary mtu "1514/8"
   qos classification interface wan0_0 mtu "1514/8"
   qos classification d-pkt-offset "3"
   qos classification mode hierarchy enable

##
## Peer Shared Secret
##
no service shared-secret enable
   service shared-secret secret client ""
   service shared-secret secret server ""

##
## Service Authentication
##
   ip security shared secret ""
   ip security encryption policy des
   ip security over-primary
   ip security pfs enable
   ip security pfsgroup "modp1024"
   ip security rekey interval "240"
no ip security enable

##
## In-Path Rules
##
   in-path rule pass-through srcaddr 10.20.55.176/32 dstaddr 10.20.61.176/32 dstport "all" vlan -1 description "" rulenum 4
   in-path rule pass-through srcaddr 10.20.61.176/32 dstaddr 10.20.55.176/32 dstport "all" vlan -1 description "" rulenum 5

##
## General Service
##
   in-path enable
no in-path lsp enable
no in-path mac-match-vlan
no in-path vlan-conn-based
   in-path simplified routing "all"
no in-path peering auto
   ip flow-export destination 10.20.55.136 9991 egress
   ip flow-export destination 10.20.55.136 9991 export-port primary
   ip flow-export destination 10.20.55.136 9991 filter-enable
   ip flow-export destination 10.20.55.136 9991 interface lan0_0
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface lan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 interface wan0_0
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 capture all
   ip flow-export destination 10.20.55.136 9991 interface wan0_0 fakeindex off
   ip flow-export destination 10.20.55.136 9991 lan-addrs on
   ip flow-export destination 10.20.55.136 9991 template refresh-rate 300
   ip flow-export destination 10.20.55.136 9991 template timeout-rate 15
   ip flow-export destination 10.20.55.136 9991 version Netflow-v9
   ip flow-export enable
no protocol cifs applock enable
no protocol cifs mac oplock enable
   protocol http server-subnet all obj-pref-table no parse-prefetch no url-learning yes reuse-auth no strip-auth-hdr no gratuitous-401 no force-nego-ntlm no strip-compress yes insert-cookie
no insrt-keep-aliv no
no protocol http space-in-uri enable
   protocol mapi 2k7 native enable
   protocol mapi encrypted enable
   protocol mapi nspi enable
   sport interface aux rx-size "256"
   sport interface aux tx-size "4096"
   sport interface inpath0_0 rx-size "256"
   sport interface inpath0_0 tx-size "4096"
   sport interface lan0_0 rx-size "256"
   sport interface lan0_0 tx-size "4096"
   sport interface primary rx-size "256"
   sport interface primary tx-size "4096"
   sport interface wan0_0 rx-size "256"
   sport interface wan0_0 tx-size "4096"
   stats settings bandwidth port 1096 desc "DNS and Common Name Resolution Protocol"
   stats settings bandwidth port 1124 desc "DFS Replication"
   stats settings bandwidth port 1129 desc "DFS Replication"
   stats settings bandwidth port 1521 desc "ORACLE RDBMS"
   stats settings bandwidth port 2967 desc "Symantec AntiVirus Corporate Edition"
   stats settings bandwidth port 7777 desc "OTISS and ESolve"
   stats settings bandwidth port 7830 desc "MAPI and Exchange"
   stats settings top-talkers enable
   stats settings top-talkers override active-to "60"

##
## Process Manager configuration
##
   pm process rsp_ha_syncd kill-timeout "5000"
   pm process rsp_ha_syncd soft_stck_limit "-1"
   pm process scepclientd soft_stck_limit "2097152"

##
## Network management configuration
##
   username "admin" password 7 $1$IJVmpoGx$3N0C/fAy6lQzp/CrrN8Bg/
   username "monitor" password 7 $1$XhqBC6lk$63LgifHnDKoF.dx1RJHD./
   clock timezone Australia ACT
   email mailhub "10.20.50.193"
   email notify events recipient "riverbed@itsa.gov.au"
   email notify failures recipient "riverbed@itsa.gov.au"
   license install LK1-SH10BASE-0000-0000-1-059B-6CA3-258B
   license install LK1-SH10CIFS-0000-0000-1-97FA-85D5-8A97
   license install LK1-SH10EXCH-0000-0000-1-2706-8E74-3A6C
   license install LK1-SH55RSPM-0000-0000-1-CEC5-9F11-2149
   license install LK1-SMCCIFS-0000-0000-1-BFBB-B556-2165
   license install LK1-SMCEXCH-0000-0000-1-91A3-B36B-D2E9
   ntp server 10.20.58.254 enable
   ntp server 10.20.58.254 version "4"
   snmp-server engine-ID "0x8000430b80450da4034b989404"
   ssh server allowed-ciphers "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcf
no stats alarm disk_not_setup enable
Canberra # exit
Connection to 10.20.50.253 closed.

(carmom@doon)-(0)-(04:59 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)-->

(carmom@doon)-(0)-(05:55 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo -u rancid rancid-cvs

Committed revision 87.
Checked out revision 87.
At revision 87.
A         configs
Adding         configs

Committed revision 88.
A         router.db
Adding         router.db
Transmitting file data .
Committed revision 89.

(carmom@doon)-(0)-(05:55 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /etc/hosts
hosts        hosts.allow  hosts.deny

(carmom@doon)-(0)-(05:55 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /etc/hosts

(carmom@doon)-(0)-(05:56 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /var/local/rancid/
2960_access_switches/ core_switches/        firewalls/            nexus_switches/       wan_routers/
3750_access_switches/ CVS/                  logs/                 riverbeds/

(carmom@doon)-(0)-(05:56 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /var/local/rancid/riverbeds/

(carmom@doon)-(0)-(05:57 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /var/local/rancid/riverbeds/router.db

(carmom@doon)-(0)-(05:57 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /var/local/rancid/wan_routers/router.db

(carmom@doon)-(0)-(05:57 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> history | grep rancid-fe
  256  sudo vim rancid-fe
  259  vim rancid-fe
  260  sudo vim rancid-fe
  295  history | grep rancid-fe

(carmom@doon)-(0)-(05:57 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> vim rancid-fe

(carmom@doon)-(0)-(05:58 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim /var/local/rancid/riverbeds/router.db

(carmom@doon)-(0)-(05:58 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo -u rancid rancid-run

(carmom@doon)-(0)-(06:04 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim rancid
rancid      rancid-cvs  rancid-fe   rancid-run

(carmom@doon)-(0)-(06:04 PM Mon May 21)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo vim rbrancid

(carmom@doon)-(0)-(09:23 AM Tue May 22)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo -u rancid rancid-run

(carmom@doon)-(0)-(09:32 AM Tue May 22)->
(/usr/local/bin)-(63 files, 1.5Mb)--> man tac_plus

(carmom@doon)-(0)-(02:15 PM Wed May 23)->
(/usr/local/bin)-(63 files, 1.5Mb)--> sudo su -

(root@doon)-(0)-(02:16 PM Wed May 23)->
(~)-(18 files, 60Mb)--> vim /etc/httpd/conf.d/nfsen.conf

(root@doon)-(0)-(02:21 PM Wed May 23)->
(~)-(18 files, 60Mb)--> /usr/bin/perl
perl        perl5.10.1  perlbug     perldoc     perlivp     perlthanks

(root@doon)-(0)-(02:21 PM Wed May 23)->
(~)-(18 files, 60Mb)--> /usr/bin/perl
perl        perl5.10.1  perlbug     perldoc     perlivp     perlthanks

(root@doon)-(0)-(02:21 PM Wed May 23)->
(~)-(18 files, 60Mb)--> /usr/bin/perl
perl        perl5.10.1  perlbug     perldoc     perlivp     perlthanks

(root@doon)-(0)-(02:21 PM Wed May 23)->
(~)-(18 files, 60Mb)--> /usr/bin/perl -v | grep -i built
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

(root@doon)-(0)-(02:22 PM Wed May 23)->
(~)-(18 files, 60Mb)--> vim /etc/php.ini

(root@doon)-(0)-(02:22 PM Wed May 23)->
(~)-(18 files, 60Mb)--> yum install perl-TimeDate perl-Pod-Escapes perl-Pod-Simple perl-Test-Pod perl-MailTools perl-Socket6
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
rhel-cdrom                                                                                                                                                             | 4.0 kB     00:00 ...
Setting up Install Process
Package 1:perl-Pod-Escapes-1.04-119.el6_1.1.x86_64 already installed and latest version
Package 1:perl-Pod-Simple-3.13-119.el6_1.1.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-MailTools.noarch 0:2.04-4.el6 will be installed
---> Package perl-Socket6.x86_64 0:0.23-3.el6 will be installed
---> Package perl-Test-Pod.noarch 0:1.40-1.el6 will be installed
---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                         Arch                                    Version                                            Repository                                   Size
==============================================================================================================================================================================================
Installing:
 perl-MailTools                                  noarch                                  2.04-4.el6                                         rhel-cdrom                                  101 k
 perl-Socket6                                    x86_64                                  0.23-3.el6                                         rhel-cdrom                                   23 k
 perl-Test-Pod                                   noarch                                  1.40-1.el6                                         rhel-cdrom                                   14 k
 perl-TimeDate                                   noarch                                  1:1.16-11.1.el6                                    rhel-cdrom                                   34 k

Transaction Summary
==============================================================================================================================================================================================
Install       4 Package(s)

Total download size: 171 k
Installed size: 320 k
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         995 kB/s | 171 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch                                                                                                                                       1/4
  Installing : perl-MailTools-2.04-4.el6.noarch                                                                                                                                           2/4
  Installing : perl-Socket6-0.23-3.el6.x86_64                                                                                                                                             3/4
  Installing : perl-Test-Pod-1.40-1.el6.noarch                                                                                                                                            4/4
Installed products updated.

Installed:
  perl-MailTools.noarch 0:2.04-4.el6             perl-Socket6.x86_64 0:0.23-3.el6             perl-Test-Pod.noarch 0:1.40-1.el6             perl-TimeDate.noarch 1:1.16-11.1.el6

Complete!

(root@doon)-(0)-(02:23 PM Wed May 23)->
(~)-(18 files, 60Mb)--> yum install xorg-x11-fonts-Type1
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-fonts-Type1.noarch 0:7.2-9.1.el6 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-9.1.el6.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.2-9.1.el6.noarch
--> Running transaction check
---> Package ttmkfdir.x86_64 0:3.0.9-32.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                              Arch                                   Version                                         Repository                                  Size
==============================================================================================================================================================================================
Installing:
 xorg-x11-fonts-Type1                                 noarch                                 7.2-9.1.el6                                     rhel-cdrom                                 519 k
Installing for dependencies:
 ttmkfdir                                             x86_64                                 3.0.9-32.1.el6                                  rhel-cdrom                                  43 k

Transaction Summary
==============================================================================================================================================================================================
Install       2 Package(s)

Total download size: 562 k
Installed size: 963 k
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         2.5 MB/s | 562 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ttmkfdir-3.0.9-32.1.el6.x86_64                                                                                                                                             1/2
  Installing : xorg-x11-fonts-Type1-7.2-9.1.el6.noarch                                                                                                                                    2/2
Installed products updated.

Installed:
  xorg-x11-fonts-Type1.noarch 0:7.2-9.1.el6

Dependency Installed:
  ttmkfdir.x86_64 0:3.0.9-32.1.el6

Complete!

(root@doon)-(0)-(02:23 PM Wed May 23)->
(~)-(18 files, 60Mb)--> yum install ruby.x86_64
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ruby.x86_64 0:1.8.7.352-3.el6 will be installed
--> Processing Dependency: ruby-libs = 1.8.7.352-3.el6 for package: ruby-1.8.7.352-3.el6.x86_64
--> Processing Dependency: libruby.so.1.8()(64bit) for package: ruby-1.8.7.352-3.el6.x86_64
--> Running transaction check
---> Package ruby-libs.x86_64 0:1.8.7.352-3.el6 will be installed
--> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.352-3.el6.x86_64
--> Running transaction check
---> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                           Arch                                    Version                                          Repository                                   Size
==============================================================================================================================================================================================
Installing:
 ruby                                              x86_64                                  1.8.7.352-3.el6                                  rhel-cdrom                                  532 k
Installing for dependencies:
 compat-readline5                                  x86_64                                  5.2-17.1.el6                                     rhel-cdrom                                  129 k
 ruby-libs                                         x86_64                                  1.8.7.352-3.el6                                  rhel-cdrom                                  1.6 M

Transaction Summary
==============================================================================================================================================================================================
Install       3 Package(s)

Total download size: 2.3 M
Installed size: 7.8 M
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         5.1 MB/s | 2.3 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : compat-readline5-5.2-17.1.el6.x86_64                                                                                                                                       1/3
  Installing : ruby-libs-1.8.7.352-3.el6.x86_64                                                                                                                                           2/3
  Installing : ruby-1.8.7.352-3.el6.x86_64                                                                                                                                                3/3
Installed products updated.

Installed:
  ruby.x86_64 0:1.8.7.352-3.el6

Dependency Installed:
  compat-readline5.x86_64 0:5.2-17.1.el6                                                          ruby-libs.x86_64 0:1.8.7.352-3.el6

Complete!

(root@doon)-(0)-(02:23 PM Wed May 23)->
(~)-(18 files, 60Mb)--> yum install libdbi.x86_64 lua mysql-server net-snmp-utils
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Package lua-5.1.4-4.1.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libdbi.x86_64 0:0.8.3-3.1.el6 will be installed
---> Package mysql-server.x86_64 0:5.1.52-1.el6_0.1 will be installed
--> Processing Dependency: mysql = 5.1.52-1.el6_0.1 for package: mysql-server-5.1.52-1.el6_0.1.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.52-1.el6_0.1.x86_64
---> Package net-snmp-utils.x86_64 1:5.5-37.el6 will be installed
--> Running transaction check
---> Package mysql.x86_64 0:5.1.52-1.el6_0.1 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                         Arch                                    Version                                            Repository                                   Size
==============================================================================================================================================================================================
Installing:
 libdbi                                          x86_64                                  0.8.3-3.1.el6                                      rhel-cdrom                                   39 k
 mysql-server                                    x86_64                                  5.1.52-1.el6_0.1                                   rhel-cdrom                                  8.1 M
 net-snmp-utils                                  x86_64                                  1:5.5-37.el6                                       rhel-cdrom                                  169 k
Installing for dependencies:
 mysql                                           x86_64                                  5.1.52-1.el6_0.1                                   rhel-cdrom                                  889 k
 perl-DBD-MySQL                                  x86_64                                  4.013-3.el6                                        rhel-cdrom                                  134 k

Transaction Summary
==============================================================================================================================================================================================
Install       5 Package(s)

Total download size: 9.3 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                          16 MB/s | 9.3 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mysql-5.1.52-1.el6_0.1.x86_64                                                                                                                                              1/5
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                          2/5
  Installing : mysql-server-5.1.52-1.el6_0.1.x86_64                                                                                                                                       3/5
  Installing : 1:net-snmp-utils-5.5-37.el6.x86_64                                                                                                                                         4/5
  Installing : libdbi-0.8.3-3.1.el6.x86_64                                                                                                                                                5/5
Installed products updated.

Installed:
  libdbi.x86_64 0:0.8.3-3.1.el6                             mysql-server.x86_64 0:5.1.52-1.el6_0.1                             net-snmp-utils.x86_64 1:5.5-37.el6

Dependency Installed:
  mysql.x86_64 0:5.1.52-1.el6_0.1                                                             perl-DBD-MySQL.x86_64 0:4.013-3.el6

Complete!

(root@doon)-(0)-(02:24 PM Wed May 23)->
(~)-(18 files, 60Mb)--> /sbin/chkconfig mysqld off

(root@doon)-(0)-(02:24 PM Wed May 23)->
(~)-(18 files, 60Mb)--> yum install perl-rrdtool rrdtool rrdtool-devel
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package perl-rrdtool available.
No package rrdtool-devel available.
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.x86_64 0:1.3.8-6.el6 will be installed
--> Processing Dependency: dejavu-sans-mono-fonts for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: dejavu-lgc-sans-mono-fonts for package: rrdtool-1.3.8-6.el6.x86_64
--> Running transaction check
---> Package dejavu-lgc-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
---> Package dejavu-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                                   Arch                                  Version                                      Repository                                 Size
==============================================================================================================================================================================================
Installing:
 rrdtool                                                   x86_64                                1.3.8-6.el6                                  rhel-cdrom                                294 k
Installing for dependencies:
 dejavu-lgc-sans-mono-fonts                                noarch                                2.30-2.el6                                   rhel-cdrom                                392 k
 dejavu-sans-mono-fonts                                    noarch                                2.30-2.el6                                   rhel-cdrom                                450 k

Transaction Summary
==============================================================================================================================================================================================
Install       3 Package(s)

Total download size: 1.1 M
Installed size: 2.6 M
Is this ok [y/N]: n
Exiting on user Command

(root@doon)-(0)-(02:25 PM Wed May 23)->
(~)-(18 files, 60Mb)--> cd

(root@doon)-(0)-(02:25 PM Wed May 23)->
(~)-(18 files, 60Mb)--> ls
anaconda-ks.cfg  Documents  httpd_svn.pp  install.log         Music     post-config  rancid-2.3.8.tar.gz  tmpBuild  VMwareTools-8.6.0-425873.tar.gz
Desktop          Downloads  httpd_svn.te  install.log.syslog  Pictures  Public       Templates            Videos    vmware-tools-distrib

(root@doon)-(0)-(02:25 PM Wed May 23)->
(~)-(18 files, 60Mb)--> cd tmpBuild/

(root@doon)-(0)-(02:25 PM Wed May 23)->
(~/tmpBuild)-(6 files, 468Kb)--> wget http://pkgs.repoforge.org/rrdtool/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/rrdtool/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
wget http://pkgs.repoforge.org/rrdtool/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
rpm -Uvh perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm--2012-05-23 14:25:49--  http://pkgs.repoforge.org/rrdtool/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el6/en/x86_64/extras/RPMS/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:25:51--  http://rpmforge.sw.be/redhat/el6/en/x86_64/extras/RPMS/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el6/en/x86_64/extras/RPMS/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:25:51--  http://tree.repoforge.org/redhat/el6/en/x86_64/extras/RPMS/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el6/en/x86_64/extras/RPMS/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:25:53--  http://apt.sw.be/redhat/el6/en/x86_64/extras/RPMS/perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50612 (49K) [application/x-redhat-package-manager]
Saving to: âperl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpmâ

100%[====================================================================================================================================================>] 50,612      39.6K/s   in 1.2s

2012-05-23 14:25:55 (39.6 KB/s) - âperl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpmâ


(root@doon)-(0)-(02:25 PM Wed May 23)->
(~/tmpBuild)-(7 files, 520Kb)--> wget http://pkgs.repoforge.org/rrdtool/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
--2012-05-23 14:25:55--  http://pkgs.repoforge.org/rrdtool/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:25:56--  http://rpmforge.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el6/en/x86_64/extras/RPMS/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:25:56--  http://tree.repoforge.org/redhat/el6/en/x86_64/extras/RPMS/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:25:57--  http://apt.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 840248 (821K) [application/x-redhat-package-manager]
Saving to: ârrdtool-1.4.7-1.el6.rfx.x86_64.rpmâ

100%[====================================================================================================================================================>] 840,248      105K/s   in 8.9s

2012-05-23 14:26:07 (92.1 KB/s) - ârrdtool-1.4.7-1.el6.rfx.x86_64.rpmâ


(root@doon)-(0)-(02:26 PM Wed May 23)->
(~/tmpBuild)-(8 files, 1.4Mb)--> wget http://pkgs.repoforge.org/rrdtool/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
--2012-05-23 14:26:07--  http://pkgs.repoforge.org/rrdtool/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:26:07--  http://rpmforge.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el6/en/x86_64/extras/RPMS/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:26:08--  http://tree.repoforge.org/redhat/el6/en/x86_64/extras/RPMS/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm [following]
--2012-05-23 14:26:08--  http://apt.sw.be/redhat/el6/en/x86_64/extras/RPMS/rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 209504 (205K) [application/x-redhat-package-manager]
Saving to: ârrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpmâ

100%[====================================================================================================================================================>] 209,504     66.4K/s   in 3.1s

2012-05-23 14:26:12 (66.4 KB/s) - ârrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpmâ


(root@doon)-(0)-(02:26 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> rpm -Uvh perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
warning: perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:rrdtool                ########################################### [ 33%]
   2:perl-rrdtool           ########################################### [ 67%]
   3:rrdtool-devel          ########################################### [100%]

(root@doon)-(0)-(02:26 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> ls /var/www/
cgi-bin  error  html  icons  websvn

(root@doon)-(0)-(02:26 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> ls -l /var/www/
total 20
drwxr-xr-x. 2 root root 4096 Oct  7  2011 cgi-bin
drwxr-xr-x. 3 root root 4096 Apr 30 18:31 error
drwxr-xr-x. 7 root root 4096 May  1 08:48 html
drwxr-xr-x. 3 root root 4096 May  1 08:49 icons
drwxr-xr-x. 9 root root 4096 May  1 13:01 websvn

(root@doon)-(0)-(02:27 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> ls
modauthkerb-mod_map_user.tar.gz  msktutil-0.4.1          perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm  rancid-2.3.8.tar.gz                 rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
mod_map_user                     msktutil-0.4.1.tar.bz2  rancid-2.3.8                             rrdtool-1.4.7-1.el6.rfx.x86_64.rpm

(root@doon)-(0)-(03:21 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> mkdir /var/www/nfsen

(root@doon)-(0)-(03:22 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> ls -l /var/www/
total 24
drwxr-xr-x. 2 root root 4096 Oct  7  2011 cgi-bin
drwxr-xr-x. 3 root root 4096 Apr 30 18:31 error
drwxr-xr-x. 7 root root 4096 May  1 08:48 html
drwxr-xr-x. 3 root root 4096 May  1 08:49 icons
drwxr-xr-x. 2 root root 4096 May 23 15:22 nfsen
drwxr-xr-x. 9 root root 4096 May  1 13:01 websvn

(root@doon)-(0)-(03:22 PM Wed May 23)->
(~/tmpBuild)-(9 files, 1.6Mb)--> wget  http://downloads.sourceforge.net/project/nfdump/stable/nfdump-1.6.6/nfdump-1.6.6.tar.gz
--2012-05-23 15:22:45--  http://downloads.sourceforge.net/project/nfdump/stable/nfdump-1.6.6/nfdump-1.6.6.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://internode.dl.sourceforge.net/project/nfdump/stable/nfdump-1.6.6/nfdump-1.6.6.tar.gz [following]
--2012-05-23 15:22:47--  http://internode.dl.sourceforge.net/project/nfdump/stable/nfdump-1.6.6/nfdump-1.6.6.tar.gz
Resolving internode.dl.sourceforge.net... 150.101.135.12
Connecting to internode.dl.sourceforge.net|150.101.135.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 651348 (636K) [application/x-gzip]
Saving to: ânfdump-1.6.6.tar.gzâ

100%[====================================================================================================================================================>] 651,348      421K/s   in 1.5s

2012-05-23 15:22:49 (421 KB/s) - ânfdump-1.6.6.tar.gzâ


(root@doon)-(0)-(03:22 PM Wed May 23)->
(~/tmpBuild)-(10 files, 2.2Mb)--> tar -zxvf nfdump-1.6.6.tar.gz
nfdump-1.6.6/
nfdump-1.6.6/aclocal.m4
nfdump-1.6.6/AUTHORS
nfdump-1.6.6/autom4te.cache/
nfdump-1.6.6/bin/
nfdump-1.6.6/bootstrap
nfdump-1.6.6/BSD-license.txt
nfdump-1.6.6/ChangeLog
nfdump-1.6.6/compile
nfdump-1.6.6/config.h.in
nfdump-1.6.6/configure
nfdump-1.6.6/configure.in
nfdump-1.6.6/COPYING
nfdump-1.6.6/CreateSubHierarchy.pl
nfdump-1.6.6/depcomp
nfdump-1.6.6/extra/
nfdump-1.6.6/flows
nfdump-1.6.6/INSTALL
nfdump-1.6.6/install-sh
nfdump-1.6.6/Makefile.am
nfdump-1.6.6/Makefile.in
nfdump-1.6.6/man/
nfdump-1.6.6/missing
nfdump-1.6.6/NEWS
nfdump-1.6.6/non-dist/
nfdump-1.6.6/README
nfdump-1.6.6/ToDo
nfdump-1.6.6/ylwrap
nfdump-1.6.6/non-dist/install-sh
nfdump-1.6.6/non-dist/make-dist
nfdump-1.6.6/non-dist/mkinstalldirs
nfdump-1.6.6/non-dist/nfdump.test.out
nfdump-1.6.6/non-dist/test.sh
nfdump-1.6.6/non-dist/TJ-Work-Notes
nfdump-1.6.6/man/ft2nfdump.1
nfdump-1.6.6/man/Makefile.am
nfdump-1.6.6/man/Makefile.in
nfdump-1.6.6/man/nfanon.1
nfdump-1.6.6/man/nfcapd.1
nfdump-1.6.6/man/nfdump.1
nfdump-1.6.6/man/nfexpire.1
nfdump-1.6.6/man/nfprofile.1
nfdump-1.6.6/man/nfreplay.1
nfdump-1.6.6/man/sfcapd.1
nfdump-1.6.6/extra/nftrack/
nfdump-1.6.6/extra/PortTracker.pm
nfdump-1.6.6/extra/nftrack/nftrack.c
nfdump-1.6.6/extra/nftrack/nftrack_rrd.c
nfdump-1.6.6/extra/nftrack/nftrack_rrd.h
nfdump-1.6.6/extra/nftrack/nftrack_stat.c
nfdump-1.6.6/extra/nftrack/nftrack_stat.h
nfdump-1.6.6/bin/AddExtension.txt
nfdump-1.6.6/bin/applybits_inline.c
nfdump-1.6.6/bin/bookkeeper.c
nfdump-1.6.6/bin/bookkeeper.h
nfdump-1.6.6/bin/collector.c
nfdump-1.6.6/bin/collector.h
nfdump-1.6.6/bin/collector_inline.c
nfdump-1.6.6/bin/expire.c
nfdump-1.6.6/bin/expire.h
nfdump-1.6.6/bin/flist.c
nfdump-1.6.6/bin/flist.h
nfdump-1.6.6/bin/ft2nfdump.c
nfdump-1.6.6/bin/fts_compat.c
nfdump-1.6.6/bin/fts_compat.h
nfdump-1.6.6/bin/grammar.y
nfdump-1.6.6/bin/grammar.y.mine
nfdump-1.6.6/bin/heapsort_inline.c
nfdump-1.6.6/bin/inline.c
nfdump-1.6.6/bin/ipconv.c
nfdump-1.6.6/bin/ipconv.h
nfdump-1.6.6/bin/ipfix.c
nfdump-1.6.6/bin/ipfix.h
nfdump-1.6.6/bin/launch.c
nfdump-1.6.6/bin/launch.h
nfdump-1.6.6/bin/lzoconf.h
nfdump-1.6.6/bin/lzodefs.h
nfdump-1.6.6/bin/Makefile.am
nfdump-1.6.6/bin/Makefile.in
nfdump-1.6.6/bin/minilzo.c
nfdump-1.6.6/bin/minilzo.h
nfdump-1.6.6/bin/netflow_v1.c
nfdump-1.6.6/bin/netflow_v1.h
nfdump-1.6.6/bin/netflow_v5_v7.c
nfdump-1.6.6/bin/netflow_v5_v7.h
nfdump-1.6.6/bin/netflow_v9.c
nfdump-1.6.6/bin/netflow_v9.h
nfdump-1.6.6/bin/nf_common.c
nfdump-1.6.6/bin/nf_common.h
nfdump-1.6.6/bin/nfanon.c
nfdump-1.6.6/bin/nfcapd.c
nfdump-1.6.6/bin/nfdump.c
nfdump-1.6.6/bin/nfdump.h
nfdump-1.6.6/bin/nfdump.test.diff
nfdump-1.6.6/bin/nfdump.test.out
nfdump-1.6.6/bin/nfdump_inline.c
nfdump-1.6.6/bin/nfexpire.c
nfdump-1.6.6/bin/nfexport.c
nfdump-1.6.6/bin/nfexport.h
nfdump-1.6.6/bin/nffile.c
nfdump-1.6.6/bin/nffile.h
nfdump-1.6.6/bin/nffile_inline.c
nfdump-1.6.6/bin/nfgen.c
nfdump-1.6.6/bin/nflowcache.c
nfdump-1.6.6/bin/nflowcache.h
nfdump-1.6.6/bin/nfnet.c
nfdump-1.6.6/bin/nfnet.h
nfdump-1.6.6/bin/nfprof.c
nfdump-1.6.6/bin/nfprof.h
nfdump-1.6.6/bin/nfprofile.c
nfdump-1.6.6/bin/nfreader.c
nfdump-1.6.6/bin/nfreplay.c
nfdump-1.6.6/bin/nfstat.c
nfdump-1.6.6/bin/nfstat.h
nfdump-1.6.6/bin/nfstatfile.c
nfdump-1.6.6/bin/nfstatfile.h
nfdump-1.6.6/bin/nftest.c
nfdump-1.6.6/bin/nftree.c
nfdump-1.6.6/bin/nftree.h
nfdump-1.6.6/bin/nfx.c
nfdump-1.6.6/bin/nfx.h
nfdump-1.6.6/bin/nfxstat.c
nfdump-1.6.6/bin/nfxstat.h
nfdump-1.6.6/bin/panonymizer.c
nfdump-1.6.6/bin/panonymizer.h
nfdump-1.6.6/bin/parse_csv.pl
nfdump-1.6.6/bin/pcap_reader.c
nfdump-1.6.6/bin/pcap_reader.h
nfdump-1.6.6/bin/profile.c
nfdump-1.6.6/bin/profile.h
nfdump-1.6.6/bin/rbtree.h
nfdump-1.6.6/bin/rijndael.c
nfdump-1.6.6/bin/rijndael.h
nfdump-1.6.6/bin/scanner.l
nfdump-1.6.6/bin/sfcapd.c
nfdump-1.6.6/bin/sflow.c
nfdump-1.6.6/bin/sflow.h
nfdump-1.6.6/bin/sflow_proto.h
nfdump-1.6.6/bin/test.sh
nfdump-1.6.6/bin/util.c
nfdump-1.6.6/bin/util.h
nfdump-1.6.6/autom4te.cache/output.0
nfdump-1.6.6/autom4te.cache/output.1
nfdump-1.6.6/autom4te.cache/requests
nfdump-1.6.6/autom4te.cache/traces.0
nfdump-1.6.6/autom4te.cache/traces.1

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild)-(11 files, 2.2Mb)--> cd nfdump-1.6.6/

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild/nfdump-1.6.6)-(27 files, 508Kb)--> tar -zxvf nfdump-1.6.6.tar.gz
tar (child): nfdump-1.6.6.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild/nfdump-1.6.6)-(27 files, 508Kb)--> ./configure --enable-nfprofile
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking whether we are using SunPro C... no
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for rrd_update in -lrrd... yes
checking rrd.h usability... yes
checking rrd.h presence... yes
checking for rrd.h... yes
checking for struct sockaddr.sa_len... no
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct sockaddr_storage.ss_len... no
checking for struct sockaddr_storage.__ss_len... no
checking for struct sockaddr.sa_len... (cached) no
checking for gethostbyname... yes
checking for setsockopt... yes
checking for fpurge... no
checking for __fpurge... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking nameser8_compat.h usability... no
checking nameser8_compat.h presence... no
checking for nameser8_compat.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking iso/limits_iso.h usability... no
checking iso/limits_iso.h presence... no
checking for iso/limits_iso.h... no
checking for sys/types.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/nameser.h... yes
checking for netdb.h... yes
checking for resolv.h... yes
checking size of void *... 8
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether closedir returns void... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for inet_ntoa... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for scandir... yes
checking for res_search in -lsocket... no
checking for res_search in -lresolv... no
checking for dn_skipname in -lresolv... no
checking for __dn_skipname in -lresolv... yes
checking for ptrdiff_t... yes
checking for size_t... (cached) yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of __int64... 0
checking size of void *... (cached) 8
checking size of size_t... 8
checking size of ptrdiff_t... 8
checking for an ANSI C-conforming const... (cached) yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for union semun... no
checking for the %z format string in printf()... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands

* Many thanks for using nfdump tools
* You may want to subscribe to the nfdump-discuss and/or
* nfsen-discuss mailing list:
* http://lists.sourceforge.net/lists/listinfo/nfdump-discuss
* http://lists.sourceforge.net/lists/listinfo/nfsen-discuss
* Please send bug reports back to me: phaag@users.sourceforge.net
* or to one of the lists.

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild/nfdump-1.6.6)-(32 files, 736Kb)--> make
make  all-recursive
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6'
Making all in .
make[2]: Entering directory `/root/tmpBuild/nfdump-1.6.6'
make[2]: Leaving directory `/root/tmpBuild/nfdump-1.6.6'
Making all in bin
make[2]: Entering directory `/root/tmpBuild/nfdump-1.6.6/bin'
/bin/sh ../ylwrap grammar.y y.tab.c grammar.c y.tab.h grammar.h y.output grammar.output -- bison -y  -d
updating grammar.h
make  all-am
make[3]: Entering directory `/root/tmpBuild/nfdump-1.6.6/bin'
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nfcapd.o -MD -MP -MF .deps/nfcapd-nfcapd.Tpo -c -o nfcapd-nfcapd.o `test -f 'nfcapd.c' || echo './'`nfcapd.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfcapd-nfcapd.Tpo .deps/nfcapd-nfcapd.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nf_common.o -MD -MP -MF .deps/nfcapd-nf_common.Tpo -c -o nfcapd-nf_common.o `test -f 'nf_common.c' || echo './'`nf_common.c
mv -f .deps/nfcapd-nf_common.Tpo .deps/nfcapd-nf_common.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-util.o -MD -MP -MF .deps/nfcapd-util.Tpo -c -o nfcapd-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/nfcapd-util.Tpo .deps/nfcapd-util.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-minilzo.o -MD -MP -MF .deps/nfcapd-minilzo.Tpo -c -o nfcapd-minilzo.o `test -f 'minilzo.c' || echo './'`minilzo.c
mv -f .deps/nfcapd-minilzo.Tpo .deps/nfcapd-minilzo.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nffile.o -MD -MP -MF .deps/nfcapd-nffile.Tpo -c -o nfcapd-nffile.o `test -f 'nffile.c' || echo './'`nffile.c
mv -f .deps/nfcapd-nffile.Tpo .deps/nfcapd-nffile.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nfx.o -MD -MP -MF .deps/nfcapd-nfx.Tpo -c -o nfcapd-nfx.o `test -f 'nfx.c' || echo './'`nfx.c
mv -f .deps/nfcapd-nfx.Tpo .deps/nfcapd-nfx.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nfxstat.o -MD -MP -MF .deps/nfcapd-nfxstat.Tpo -c -o nfcapd-nfxstat.o `test -f 'nfxstat.c' || echo './'`nfxstat.c
mv -f .deps/nfcapd-nfxstat.Tpo .deps/nfcapd-nfxstat.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-flist.o -MD -MP -MF .deps/nfcapd-flist.Tpo -c -o nfcapd-flist.o `test -f 'flist.c' || echo './'`flist.c
mv -f .deps/nfcapd-flist.Tpo .deps/nfcapd-flist.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-fts_compat.o -MD -MP -MF .deps/nfcapd-fts_compat.Tpo -c -o nfcapd-fts_compat.o `test -f 'fts_compat.c' || echo './'`fts_compat.c
mv -f .deps/nfcapd-fts_compat.Tpo .deps/nfcapd-fts_compat.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nfstatfile.o -MD -MP -MF .deps/nfcapd-nfstatfile.Tpo -c -o nfcapd-nfstatfile.o `test -f 'nfstatfile.c' || echo './'`nfstatfile.c
mv -f .deps/nfcapd-nfstatfile.Tpo .deps/nfcapd-nfstatfile.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-launch.o -MD -MP -MF .deps/nfcapd-launch.Tpo -c -o nfcapd-launch.o `test -f 'launch.c' || echo './'`launch.c
mv -f .deps/nfcapd-launch.Tpo .deps/nfcapd-launch.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-nfnet.o -MD -MP -MF .deps/nfcapd-nfnet.Tpo -c -o nfcapd-nfnet.o `test -f 'nfnet.c' || echo './'`nfnet.c
mv -f .deps/nfcapd-nfnet.Tpo .deps/nfcapd-nfnet.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-collector.o -MD -MP -MF .deps/nfcapd-collector.Tpo -c -o nfcapd-collector.o `test -f 'collector.c' || echo './'`collector.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfcapd-collector.Tpo .deps/nfcapd-collector.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-netflow_v1.o -MD -MP -MF .deps/nfcapd-netflow_v1.Tpo -c -o nfcapd-netflow_v1.o `test -f 'netflow_v1.c' || echo './'`netflow_v1.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfcapd-netflow_v1.Tpo .deps/nfcapd-netflow_v1.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-netflow_v5_v7.o -MD -MP -MF .deps/nfcapd-netflow_v5_v7.Tpo -c -o nfcapd-netflow_v5_v7.o `test -f 'netflow_v5_v7.c' || echo './'`netflow_v5_v7.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfcapd-netflow_v5_v7.Tpo .deps/nfcapd-netflow_v5_v7.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-netflow_v9.o -MD -MP -MF .deps/nfcapd-netflow_v9.Tpo -c -o nfcapd-netflow_v9.o `test -f 'netflow_v9.c' || echo './'`netflow_v9.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfcapd-netflow_v9.Tpo .deps/nfcapd-netflow_v9.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-ipfix.o -MD -MP -MF .deps/nfcapd-ipfix.Tpo -c -o nfcapd-ipfix.o `test -f 'ipfix.c' || echo './'`ipfix.c
ipfix.c: In function âProcess_ipfix_option_templatesâ:
ipfix.c:994: warning: unused variable ânr_optionsâ
ipfix.c:994: warning: unused variable ânr_scopesâ
ipfix.c:993: warning: unused variable âpâ
ipfix.c: At top level:
inline.c:81: warning: âGet_val24â defined but not used
inline.c:232: warning: âPut_val16â defined but not used
inline.c:242: warning: âPut_val24â defined but not used
inline.c:253: warning: âPut_val32â defined but not used
inline.c:283: warning: âPut_val48â defined but not used
inline.c:317: warning: âPut_val64â defined but not used
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfcapd-ipfix.Tpo .deps/nfcapd-ipfix.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-bookkeeper.o -MD -MP -MF .deps/nfcapd-bookkeeper.Tpo -c -o nfcapd-bookkeeper.o `test -f 'bookkeeper.c' || echo './'`bookkeeper.c
mv -f .deps/nfcapd-bookkeeper.Tpo .deps/nfcapd-bookkeeper.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfcapd-expire.o -MD -MP -MF .deps/nfcapd-expire.Tpo -c -o nfcapd-expire.o `test -f 'expire.c' || echo './'`expire.c
mv -f .deps/nfcapd-expire.Tpo .deps/nfcapd-expire.Po
gcc  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfcapd nfcapd-nfcapd.o nfcapd-nf_common.o nfcapd-util.o nfcapd-minilzo.o nfcapd-nffile.o nfcapd-nfx.o nfcapd-nfxstat.o nfcapd-flist.o nfcapd-fts_compat.o nfcapd-nfstatfile.o nfcapd-launch.o nfcapd-nfnet.o nfcapd-collector.o nfcapd-netflow_v1.o nfcapd-netflow_v5_v7.o nfcapd-netflow_v9.o nfcapd-ipfix.o nfcapd-bookkeeper.o nfcapd-expire.o   -lresolv
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfdump.o -MD -MP -MF .deps/nfdump.Tpo -c -o nfdump.o nfdump.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfdump.Tpo .deps/nfdump.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfstat.o -MD -MP -MF .deps/nfstat.Tpo -c -o nfstat.o nfstat.c
nfstat.c: In function âSetLimitsâ:
nfstat.c:544: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 3 has type âuint64_tâ
nfstat.c:547: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 3 has type âuint64_tâ
nfstat.c: At top level:
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfstat.Tpo .deps/nfstat.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfexport.o -MD -MP -MF .deps/nfexport.Tpo -c -o nfexport.o nfexport.c
mv -f .deps/nfexport.Tpo .deps/nfexport.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nf_common.o -MD -MP -MF .deps/nf_common.Tpo -c -o nf_common.o nf_common.c
mv -f .deps/nf_common.Tpo .deps/nf_common.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nflowcache.o -MD -MP -MF .deps/nflowcache.Tpo -c -o nflowcache.o nflowcache.c
mv -f .deps/nflowcache.Tpo .deps/nflowcache.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT minilzo.o -MD -MP -MF .deps/minilzo.Tpo -c -o minilzo.o minilzo.c
mv -f .deps/minilzo.Tpo .deps/minilzo.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nffile.o -MD -MP -MF .deps/nffile.Tpo -c -o nffile.o nffile.c
mv -f .deps/nffile.Tpo .deps/nffile.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfx.o -MD -MP -MF .deps/nfx.Tpo -c -o nfx.o nfx.c
mv -f .deps/nfx.Tpo .deps/nfx.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfxstat.o -MD -MP -MF .deps/nfxstat.Tpo -c -o nfxstat.o nfxstat.c
mv -f .deps/nfxstat.Tpo .deps/nfxstat.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT flist.o -MD -MP -MF .deps/flist.Tpo -c -o flist.o flist.c
mv -f .deps/flist.Tpo .deps/flist.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT fts_compat.o -MD -MP -MF .deps/fts_compat.Tpo -c -o fts_compat.o fts_compat.c
mv -f .deps/fts_compat.Tpo .deps/fts_compat.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT grammar.o -MD -MP -MF .deps/grammar.Tpo -c -o grammar.o grammar.c
mv -f .deps/grammar.Tpo .deps/grammar.Po
/bin/sh ../ylwrap scanner.l lex.yy.c scanner.c -- flex -i
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT scanner.o -MD -MP -MF .deps/scanner.Tpo -c -o scanner.o scanner.c
scanner.c:1644: warning: âyyunputâ defined but not used
scanner.c:1685: warning: âinputâ defined but not used
scanner.c: In function âyy_fatal_errorâ:
scanner.c:2112: warning: function might be possible candidate for attribute ânoreturnâ
mv -f .deps/scanner.Tpo .deps/scanner.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nftree.o -MD -MP -MF .deps/nftree.Tpo -c -o nftree.o nftree.c
mv -f .deps/nftree.Tpo .deps/nftree.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT ipconv.o -MD -MP -MF .deps/ipconv.Tpo -c -o ipconv.o ipconv.c
mv -f .deps/ipconv.Tpo .deps/ipconv.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfprof.o -MD -MP -MF .deps/nfprof.Tpo -c -o nfprof.o nfprof.c
mv -f .deps/nfprof.Tpo .deps/nfprof.Po
gcc -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfdump nfdump.o nfstat.o nfexport.o nf_common.o nflowcache.o util.o minilzo.o nffile.o nfx.o nfxstat.o flist.o fts_compat.o grammar.o scanner.o nftree.o ipconv.o nfprof.o  -lresolv
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfreplay.o -MD -MP -MF .deps/nfreplay.Tpo -c -o nfreplay.o nfreplay.c
nfreplay.c: In function âFlushBufferâ:
nfreplay.c:145: warning: implicit declaration of function â__fpurgeâ
nfreplay.c: At top level:
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfreplay.Tpo .deps/nfreplay.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfnet.o -MD -MP -MF .deps/nfnet.Tpo -c -o nfnet.o nfnet.c
mv -f .deps/nfnet.Tpo .deps/nfnet.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT collector.o -MD -MP -MF .deps/collector.Tpo -c -o collector.o collector.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/collector.Tpo .deps/collector.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT netflow_v1.o -MD -MP -MF .deps/netflow_v1.Tpo -c -o netflow_v1.o netflow_v1.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/netflow_v1.Tpo .deps/netflow_v1.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT netflow_v9.o -MD -MP -MF .deps/netflow_v9.Tpo -c -o netflow_v9.o netflow_v9.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/netflow_v9.Tpo .deps/netflow_v9.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT netflow_v5_v7.o -MD -MP -MF .deps/netflow_v5_v7.Tpo -c -o netflow_v5_v7.o netflow_v5_v7.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/netflow_v5_v7.Tpo .deps/netflow_v5_v7.Po
gcc -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfreplay nfreplay.o nf_common.o util.o minilzo.o nffile.o nfx.o nfxstat.o flist.o fts_compat.o grammar.o scanner.o nftree.o ipconv.o nfprof.o nfnet.o collector.o netflow_v1.o netflow_v9.o netflow_v5_v7.o  -lresolv
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfexpire.o -MD -MP -MF .deps/nfexpire.Tpo -c -o nfexpire.o nfexpire.c
mv -f .deps/nfexpire.Tpo .deps/nfexpire.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT bookkeeper.o -MD -MP -MF .deps/bookkeeper.Tpo -c -o bookkeeper.o bookkeeper.c
mv -f .deps/bookkeeper.Tpo .deps/bookkeeper.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT expire.o -MD -MP -MF .deps/expire.Tpo -c -o expire.o expire.c
mv -f .deps/expire.Tpo .deps/expire.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfstatfile.o -MD -MP -MF .deps/nfstatfile.Tpo -c -o nfstatfile.o nfstatfile.c
mv -f .deps/nfstatfile.Tpo .deps/nfstatfile.Po
gcc -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfexpire nfexpire.o bookkeeper.o expire.o util.o nfstatfile.o  -lresolv
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfanon.o -MD -MP -MF .deps/nfanon.Tpo -c -o nfanon.o nfanon.c
mv -f .deps/nfanon.Tpo .deps/nfanon.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT panonymizer.o -MD -MP -MF .deps/panonymizer.Tpo -c -o panonymizer.o panonymizer.c
mv -f .deps/panonymizer.Tpo .deps/panonymizer.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT rijndael.o -MD -MP -MF .deps/rijndael.Tpo -c -o rijndael.o rijndael.c
mv -f .deps/rijndael.Tpo .deps/rijndael.Po
gcc -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfanon nfanon.o util.o minilzo.o nffile.o nfx.o nfxstat.o flist.o fts_compat.o panonymizer.o rijndael.o  -lresolv
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nfprofile.o -MD -MP -MF .deps/nfprofile.Tpo -c -o nfprofile.o nfprofile.c
nffile_inline.c:312: warning: âPackRecordâ defined but not used
mv -f .deps/nfprofile.Tpo .deps/nfprofile.Po
gcc -DHAVE_CONFIG_H -I. -I..    -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT profile.o -MD -MP -MF .deps/profile.Tpo -c -o profile.o profile.c
mv -f .deps/profile.Tpo .deps/profile.Po
gcc -ggdb  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfprofile nfprofile.o profile.o nf_common.o util.o minilzo.o nffile.o nfx.o nfxstat.o flist.o fts_compat.o grammar.o scanner.o nftree.o ipconv.o nfstatfile.o -lrrd -lresolv
make[3]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/bin'
make[2]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/bin'
Making all in man
make[2]: Entering directory `/root/tmpBuild/nfdump-1.6.6/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/man'
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6'

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild/nfdump-1.6.6)-(32 files, 736Kb)--> make install
Making install in .
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6'
make[2]: Entering directory `/root/tmpBuild/nfdump-1.6.6'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/tmpBuild/nfdump-1.6.6'
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6'
Making install in bin
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6/bin'
make  install-am
make[2]: Entering directory `/root/tmpBuild/nfdump-1.6.6/bin'
make[3]: Entering directory `/root/tmpBuild/nfdump-1.6.6/bin'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c nfcapd nfdump nfreplay nfexpire nfanon nfprofile '/usr/local/bin'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/bin'
make[2]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/bin'
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/bin'
Making install in man
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6/man'
make[2]: Entering directory `/root/tmpBuild/nfdump-1.6.6/man'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 ft2nfdump.1 nfcapd.1 nfdump.1 nfexpire.1 nfprofile.1 nfreplay.1 nfanon.1 sfcapd.1 '/usr/local/share/man/man1'
make[2]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/man'
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/man'

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild/nfdump-1.6.6)-(32 files, 736Kb)--> make clean
Making clean in man
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6/man'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/man'
Making clean in bin
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6/bin'
test -z "nfcapd nfdump nfreplay nfexpire nfanon  nfprofile  " || rm -f nfcapd nfdump nfreplay nfexpire nfanon  nfprofile
test -z "lex.yy.c grammar.c grammar.h scanner.c scanner.h" || rm -f lex.yy.c grammar.c grammar.h scanner.c scanner.h
rm -f *.o
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6/bin'
Making clean in .
make[1]: Entering directory `/root/tmpBuild/nfdump-1.6.6'
make[1]: Nothing to be done for `clean-am'.
make[1]: Leaving directory `/root/tmpBuild/nfdump-1.6.6'

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild/nfdump-1.6.6)-(32 files, 736Kb)--> cd ..

(root@doon)-(0)-(03:23 PM Wed May 23)->
(~/tmpBuild)-(11 files, 2.2Mb)--> wget http://downloads.sourceforge.net/project/nfsen/stable/nfsen-1.3.6p1/nfsen-1.3.6p1.tar.gz
--2012-05-23 15:24:09--  http://downloads.sourceforge.net/project/nfsen/stable/nfsen-1.3.6p1/nfsen-1.3.6p1.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://internode.dl.sourceforge.net/project/nfsen/stable/nfsen-1.3.6p1/nfsen-1.3.6p1.tar.gz [following]
--2012-05-23 15:24:09--  http://internode.dl.sourceforge.net/project/nfsen/stable/nfsen-1.3.6p1/nfsen-1.3.6p1.tar.gz
Resolving internode.dl.sourceforge.net... 150.101.135.12
Connecting to internode.dl.sourceforge.net|150.101.135.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 220620 (215K) [application/x-gzip]
Saving to: ânfsen-1.3.6p1.tar.gzâ

100%[====================================================================================================================================================>] 220,620      407K/s   in 0.5s

2012-05-23 15:24:10 (407 KB/s) - ânfsen-1.3.6p1.tar.gzâ


(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild)-(12 files, 2.4Mb)--> tar -zxvf nfsen-1.3.6p1.tar.gz
nfsen-1.3.6p1/
nfsen-1.3.6p1/bin/
nfsen-1.3.6p1/BSD-license.txt
nfsen-1.3.6p1/ChangeLog
nfsen-1.3.6p1/contrib/
nfsen-1.3.6p1/etc/
nfsen-1.3.6p1/helpers/
nfsen-1.3.6p1/html/
nfsen-1.3.6p1/install.pl
nfsen-1.3.6p1/installer-items/
nfsen-1.3.6p1/libexec/
nfsen-1.3.6p1/plugins/
nfsen-1.3.6p1/README
nfsen-1.3.6p1/README.plugins
nfsen-1.3.6p1/plugins/backend/
nfsen-1.3.6p1/plugins/frontend/
nfsen-1.3.6p1/plugins/PluginTemplate.pm
nfsen-1.3.6p1/plugins/frontend/demoplugin.php
nfsen-1.3.6p1/plugins/backend/demoplugin.pm
nfsen-1.3.6p1/plugins/backend/smily.jpg
nfsen-1.3.6p1/libexec/AbuseWhois.pm
nfsen-1.3.6p1/libexec/Log.pm
nfsen-1.3.6p1/libexec/Lookup.pm
nfsen-1.3.6p1/libexec/NfAlert.pm
nfsen-1.3.6p1/libexec/Nfcomm.pm
nfsen-1.3.6p1/libexec/NfConf.pm
nfsen-1.3.6p1/libexec/NfProfile.pm
nfsen-1.3.6p1/libexec/NfSen.pm
nfsen-1.3.6p1/libexec/NfSenRC.pm
nfsen-1.3.6p1/libexec/NfSenRRD.pm
nfsen-1.3.6p1/libexec/NfSenSim.pm
nfsen-1.3.6p1/libexec/Nfsources.pm
nfsen-1.3.6p1/libexec/Nfsync.pm
nfsen-1.3.6p1/libexec/Notification.pm
nfsen-1.3.6p1/installer-items/CopyRecursive.pm
nfsen-1.3.6p1/installer-items/RRDconvertv1.pm
nfsen-1.3.6p1/html/alerting.php
nfsen-1.3.6p1/html/colour_palette.html
nfsen-1.3.6p1/html/colour_picker.html
nfsen-1.3.6p1/html/css/
nfsen-1.3.6p1/html/details.php
nfsen-1.3.6p1/html/icons/
nfsen-1.3.6p1/html/js/
nfsen-1.3.6p1/html/lookup.php
nfsen-1.3.6p1/html/navigator.php
nfsen-1.3.6p1/html/nfsen.php
nfsen-1.3.6p1/html/nfsenutil.php
nfsen-1.3.6p1/html/overview.php
nfsen-1.3.6p1/html/pic.php
nfsen-1.3.6p1/html/process.php
nfsen-1.3.6p1/html/profileadmin.php
nfsen-1.3.6p1/html/rrdgraph.php
nfsen-1.3.6p1/html/js/alerting.js
nfsen-1.3.6p1/html/js/ColorPicker2.js
nfsen-1.3.6p1/html/js/detail.js
nfsen-1.3.6p1/html/js/global.js
nfsen-1.3.6p1/html/js/menu.js
nfsen-1.3.6p1/html/js/profileadmin.js
nfsen-1.3.6p1/html/icons/arrow.blue.down.png
nfsen-1.3.6p1/html/icons/arrow.blue.right.png
nfsen-1.3.6p1/html/icons/arrow.yellow.down.png
nfsen-1.3.6p1/html/icons/arrow.yellow.right.png
nfsen-1.3.6p1/html/icons/cancel.png
nfsen-1.3.6p1/html/icons/close.png
nfsen-1.3.6p1/html/icons/cursor-line.png
nfsen-1.3.6p1/html/icons/cursor-start.png
nfsen-1.3.6p1/html/icons/cursor-stop.png
nfsen-1.3.6p1/html/icons/edit.png
nfsen-1.3.6p1/html/icons/EmptyGraph.png
nfsen-1.3.6p1/html/icons/Error.png
nfsen-1.3.6p1/html/icons/ErrorGraph.png
nfsen-1.3.6p1/html/icons/help.png
nfsen-1.3.6p1/html/icons/invisible.png
nfsen-1.3.6p1/html/icons/minus.png
nfsen-1.3.6p1/html/icons/ok.png
nfsen-1.3.6p1/html/icons/plus.png
nfsen-1.3.6p1/html/icons/progress.png
nfsen-1.3.6p1/html/icons/save.png
nfsen-1.3.6p1/html/icons/shade.gif
nfsen-1.3.6p1/html/icons/shade.png
nfsen-1.3.6p1/html/icons/shadeactive.png
nfsen-1.3.6p1/html/icons/space.png
nfsen-1.3.6p1/html/icons/spyglas.png
nfsen-1.3.6p1/html/icons/trash.png
nfsen-1.3.6p1/html/icons/trigger.png
nfsen-1.3.6p1/html/css/alerting.css
nfsen-1.3.6p1/html/css/detail.css
nfsen-1.3.6p1/html/css/lookup.css
nfsen-1.3.6p1/html/css/nfsen.css
nfsen-1.3.6p1/html/css/profileadmin.css
nfsen-1.3.6p1/etc/nfsen-dist.conf
nfsen-1.3.6p1/contrib/PortTracker/
nfsen-1.3.6p1/contrib/PortTracker/INSTALL
nfsen-1.3.6p1/contrib/PortTracker/PortTracker.php
nfsen-1.3.6p1/contrib/PortTracker/PortTracker.pm
nfsen-1.3.6p1/bin/nfsen
nfsen-1.3.6p1/bin/nfsend
nfsen-1.3.6p1/bin/RebuildHierarchy.pl
nfsen-1.3.6p1/bin/testPlugin

(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild)-(13 files, 2.4Mb)--> cd nfsen-1.3.6p1/

(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(13 files, 92Kb)--> ls
bin  BSD-license.txt  ChangeLog  contrib  etc  helpers  html  installer-items  install.pl  libexec  plugins  README  README.plugins

(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(13 files, 92Kb)--> cd etc/

(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(1 files, 20Kb)--> ls
nfsen-dist.conf

(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(1 files, 20Kb)--> cp nfsen-dist.conf nfsen.conf

(root@doon)-(0)-(03:24 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> vim nfsen.conf

(root@doon)-(0)-(03:39 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> mkdir -p /
.autofsck           cgroup/             etc/                lib64/              misc/               opt/                root/               srv/                usr/
bin/                .dbus/              home/               lost+found/         mnt/                proc/               sbin/               sys/                var/
boot/               dev/                lib/                media/              net/                .readahead_collect  selinux/            tmp/

(root@doon)-(0)-(03:39 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> mkdir -p /var/
account/    crash/      db/         games/      lib/        lock/       lost+found/ nis/        preserve/   run/        tmp/        yp/
cache/      cvs/        empty/      gdm/        local/      log/        mail/       opt/        rrdtool/    spool/      www/

(root@doon)-(0)-(03:39 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> mkdir -p /var/
account/    crash/      db/         games/      lib/        lock/       lost+found/ nis/        preserve/   run/        tmp/        yp/
cache/      cvs/        empty/      gdm/        local/      log/        mail/       opt/        rrdtool/    spool/      www/

(root@doon)-(0)-(03:39 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> mkdir -p /var/loc
local/ lock/

(root@doon)-(0)-(03:39 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> mkdir -p /var/local/rancid/
2960_access_switches/ core_switches/        firewalls/            nexus_switches/       wan_routers/
3750_access_switches/ CVS/                  logs/                 riverbeds/

(root@doon)-(0)-(03:39 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> mkdir -p /var/local/nfsen

(root@doon)-(0)-(03:40 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> /usr/sbin/useradd -c 'NfSen' -d / -g apache -M -s /sbin/nologin nfsen

(root@doon)-(0)-(03:41 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> vim nfsen.conf

(root@doon)-(0)-(03:44 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

(root@doon)-(0)-(03:44 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> vim nfsen.conf

(root@doon)-(0)-(05:00 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> vim nfsen.conf

(root@doon)-(0)-(05:05 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> man nfcapd

(root@doon)-(0)-(05:05 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)-->

(root@doon)-(0)-(05:05 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> man nfsen.conf
No manual entry for nfsen.conf

(root@doon)-(0)-(05:06 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> man nfcapd

(root@doon)-(0)-(06:20 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> vim nfsen.conf

(root@doon)-(0)-(06:37 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> sudo
sudo        sudoedit    sudoreplay

(root@doon)-(0)-(06:37 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> sudo
sudo        sudoedit    sudoreplay

(root@doon)-(0)-(06:37 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/etc)-(2 files, 32Kb)--> cd ..

(root@doon)-(0)-(06:37 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(13 files, 92Kb)--> sudo ./install.pl etc/nfsen.conf
Check for required Perl modules: All modules found.
Setup NfSen:
Version: 1.3.6p1: $Id: install.pl 53 2012-01-23 16:36:02Z peter $

Perl to use: [/usr/bin/perl]
Found /usr/local/bin/nfdump: Version: 1.6.6 $Date: 2012-03-11 11:57:45 +0100 (Sun, 11 Mar 2012) $
Setup php and html files.

Copy NfSen dirs etc bin libexec plugins doc ...
Copy config file 'etc/nfsen.conf'

In directory: /usr/local/libexec ...
Update script: AbuseWhois.pm
Update script: Log.pm
Update script: Lookup.pm
Update script: NfAlert.pm
Update script: Nfcomm.pm
Update script: NfConf.pm
Update script: NfProfile.pm
Update script: NfSen.pm
Update script: NfSenRC.pm
Update script: NfSenRRD.pm
Update script: NfSenSim.pm
Update script: Nfsources.pm
Update script: Nfsync.pm
Update script: Notification.pm
In directory: /usr/local/bin ...
Update script: nfsen
Update script: nfsend
Update script: RebuildHierarchy.pl
Update script: testPlugin

Cleanup old files ...

Setup diretories:

Use UID/GID 1079 48
Exists: /var/local/nfsen
Creating: mkdir /var/local/nfsen/tmp
/var/local/nfsen/tmp
Creating: mkdir /var/local/nfsen/run
/var/local/nfsen/run
Creating: mkdir /var/local/nfsen/filters
/var/local/nfsen/filters
Creating: mkdir /var/local/nfsen/fmt
/var/local/nfsen/fmt
Creating: mkdir {VARDIR}
mkdir {VARDIR}/profiles-stat
{VARDIR}/profiles-stat
Creating: mkdir {VARDIR}/profiles-stat/live
{VARDIR}/profiles-stat/live
Creating: mkdir /var/local/nfsen/profiles-data
/var/local/nfsen/profiles-data
Creating: mkdir /var/local/nfsen/profiles-data/live
/var/local/nfsen/profiles-data/live

Profile live: spool directories:
Creating: mkdir /var/local/nfsen/profiles-data/live/hba-wo-550
hba-wo-550
Creating: mkdir /var/local/nfsen/profiles-data/live/per-wo-550
per-wo-550
Creating: mkdir /var/local/nfsen/profiles-data/live/cbr-ama-wo-3020
cbr-ama-wo-3020
Creating: mkdir /var/local/nfsen/profiles-data/live/syd-wo-1050
syd-wo-1050
Creating: mkdir /var/local/nfsen/profiles-data/live/adl-rtr-2851-sec
adl-rtr-2851-sec
Creating: mkdir /var/local/nfsen/profiles-data/live/per-rtr-2921-pri
per-rtr-2921-pri
Creating: mkdir /var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640
cbr-ama-rtr-3640
Creating: mkdir /var/local/nfsen/profiles-data/live/hba-rtr-2921
hba-rtr-2921
Creating: mkdir /var/local/nfsen/profiles-data/live/mel-wo-1050
mel-wo-1050
Creating: mkdir /var/local/nfsen/profiles-data/live/bne-wo-1050
bne-wo-1050
Creating: mkdir /var/local/nfsen/profiles-data/live/bne-rtr-2921-pri
bne-rtr-2921-pri
Creating: mkdir /var/local/nfsen/profiles-data/live/adl-rtr-2851-pri
adl-rtr-2851-pri
Creating: mkdir /var/local/nfsen/profiles-data/live/syd-rtr-2921-pri
syd-rtr-2921-pri
Creating: mkdir /var/local/nfsen/profiles-data/live/mel-rtr-2921-pri
mel-rtr-2921-pri
Creating: mkdir /var/local/nfsen/profiles-data/live/adl-wo-2050
adl-wo-2050
Rename gif RRDfiles ... done.
Create profile info for profile 'live'

Rebuilding profile stats for './live'
Reconfig: No changes found!
Setup done.

* You may want to subscribe to the nfsen-discuss mailing list:
* http://lists.sourceforge.net/lists/listinfo/nfsen-discuss
* Please send bug reports back to me: phaag@sourceforge.net

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> ls -l /usr/local/bin/
agmrancid            clogin               fnlogin              jlogin               nfanon               nrancid              rancid-run           tac_plus             zrancid
alogin               control_rancid       fnrancid             jrancid              nfcapd               nslogin              rblogin              tac_pwd
arancid              cssrancid            francid              lg.cgi               nfdump               nsrancid             rbrancid             testPlugin
arrancid             do_auth.py           hlogin               lgform.cgi           nfexpire             nxrancid             rbrancidtest/        tlogin
avologin             elogin               hpuifilter           mrancid              nfprofile            par                  RebuildHierarchy.pl  tntlogin
avorancid            erancid              hrancid              mrvlogin             nfreplay             prancid              rivlogin             tntrancid
blogin               f10rancid            htlogin              mrvrancid            nfsen                rancid               rivrancid            trancid
brancid              f5rancid             htrancid             mtlogin              nfsend               rancid-cvs           rrancid              xrancid
cat5rancid           flogin               jerancid             mtrancid             nlogin               rancid-fe            srancid              xrrancid

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> ls -l /usr/local/bin/n
nfanon     nfcapd     nfdump     nfexpire   nfprofile  nfreplay   nfsen      nfsend     nlogin     nrancid    nslogin    nsrancid   nxrancid

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> ls -l /usr/local/bin/nf
nfanon     nfcapd     nfdump     nfexpire   nfprofile  nfreplay   nfsen      nfsend

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> ls -l /usr/local/bin/nfsen
-rwxr-xr-x. 1 root apache 25135 May 23 18:38 /usr/local/bin/nfsen

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim /etc/init.d/
abrt-ccpp           cgconfig            halt                matahari-host       netfs               postfix             rpcgssd             snmpd               wpa_supplicant
abrtd               cgred               httpd               matahari-network    network             psacct              rpcidmapd           snmptrapd           ypbind
abrt-oops           cpuspeed            ip6tables           matahari-service    NetworkManager      qpidd               rpcsvcgssd          spice-vdagentd
acpid               crond               iptables            matahari-sysconfig  nfs                 quota_nld           rrdcached           sshd
atd                 cups                irqbalance          mcelogd             nfslock             rdisc               rsyslog             sssd
auditd              dnsmasq             kdump               mdmonitor           ntpd                restorecond         sandbox             sysstat
autofs              firstboot           killall             messagebus          ntpdate             rhnsd               saslauthd           tac_plus
avahi-daemon        functions           lvm2-monitor        mysqld              oddjobd             rhsmcertd           single              udev-post
certmonger          haldaemon           matahari-broker     netconsole          portreserve         rpcbind             smartd              wdaemon

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim /etc/init.d/
abrt-ccpp           cgconfig            halt                matahari-host       netfs               postfix             rpcgssd             snmpd               wpa_supplicant
abrtd               cgred               httpd               matahari-network    network             psacct              rpcidmapd           snmptrapd           ypbind
abrt-oops           cpuspeed            ip6tables           matahari-service    NetworkManager      qpidd               rpcsvcgssd          spice-vdagentd
acpid               crond               iptables            matahari-sysconfig  nfs                 quota_nld           rrdcached           sshd
atd                 cups                irqbalance          mcelogd             nfslock             rdisc               rsyslog             sssd
auditd              dnsmasq             kdump               mdmonitor           ntpd                restorecond         sandbox             sysstat
autofs              firstboot           killall             messagebus          ntpdate             rhnsd               saslauthd           tac_plus
avahi-daemon        functions           lvm2-monitor        mysqld              oddjobd             rhsmcertd           single              udev-post
certmonger          haldaemon           matahari-broker     netconsole          portreserve         rpcbind             smartd              wdaemon

(root@doon)-(0)-(06:38 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim /etc/init.d/nfsen

(root@doon)-(0)-(06:41 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> chmod 775 /etc/init.d/nfsen

(root@doon)-(0)-(06:41 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> /sbin/chkconfig --add nfsen

(root@doon)-(0)-(06:41 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> /sbin/chkconfig nfsen on

(root@doon)-(0)-(06:41 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> /sbin/chkconfig --list nfsen
nfsen           0:off   1:off   2:on    3:on    4:on    5:on    6:off

(root@doon)-(0)-(06:41 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> service nfsen start
Error reading profile 'live': Can't open profile data file for profile: 'live' in group '.': No such file or directory
Died at /usr/local/bin/nfsen line 456.

(root@doon)-(0)-(06:42 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim /etc/n
nanorc           netconfig        networks         nfsen.conf       nfsen-dist.conf  nfsmount.conf    nsswitch.conf    ntp/             ntp.conf         ntp.conf.orig

(root@doon)-(0)-(06:42 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim /etc/nfsen.conf

(root@doon)-(0)-(06:42 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> ls
bin  BSD-license.txt  ChangeLog  contrib  etc  helpers  html  installer-items  install.pl  libexec  plugins  README  README.plugins  {VARDIR}

(root@doon)-(0)-(06:53 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> cd /var/www/nfsen/

(root@doon)-(0)-(06:53 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> ls
alerting.php         colour_picker.html  css          icons  lookup.php     nfsen.php      overview.php  plugins      profileadmin.php
colour_palette.html  conf.php            details.php  js     navigator.php  nfsenutil.php  pic.php       process.php  rrdgraph.php

(root@doon)-(0)-(06:53 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Wed May 23 18:53:43 2012] [debug] mod_authnz_ldap.c(1105): [30433] auth_ldap url parse: `ldap://cbrdc01.itsa-int.itsa.gov.au:389/DC=itsa-int,DC=itsa,DC=gov,DC=au?sAMAccountName', Host: cbrdc01.itsa-int.itsa.gov.au:389, Port: 389, DN: DC=itsa-int,DC=itsa,DC=gov,DC=au, attrib: sAMAccountName, scope: base, filter: (null), connection mode: not using SSL
[Wed May 23 18:53:43 2012] [debug] mod_authnz_ldap.c(1105): [30433] auth_ldap url parse: `ldap://cbrdc01.itsa-int.itsa.gov.au:389/DC=itsa-int,DC=itsa,DC=gov,DC=au?sAMAccountName', Host: cbrdc01.itsa-int.itsa.gov.au:389, Port: 389, DN: DC=itsa-int,DC=itsa,DC=gov,DC=au, attrib: sAMAccountName, scope: base, filter: (null), connection mode: not using SSL
                                                           [  OK  ]

(root@doon)-(0)-(06:53 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> vim /etc/nfsen.conf

(root@doon)-(0)-(06:53 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> vim /etc/httpd/conf.d/nfsen.conf

(root@doon)-(0)-(06:54 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> cat /etc/httpd/conf.d/
auth_kerb.conf  nfsen.conf      php.conf        README          websvn.conf     welcome.conf

(root@doon)-(0)-(06:54 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> cat /etc/httpd/conf.d/websvn.conf
Alias /websvn/ "/var/www/websvn/"

<Directory "/var/www/websvn">
        # Kerberos Auth
        AuthName "AD Login"
        AuthType Kerberos
        KrbAuthRealms ITSA-INT.ITSA.GOV.AU
        KrbServiceName HTTP
        Krb5Keytab /etc/httpd/conf/doon.HTTP.keytab
        KrbMethodNegotiate on
        KrbMethodK5Passwd on
        KrbDelegateBasic on
        KrbSaveCredentials on
        KrbAuthoritative on

        MapUsernameRule (.*)@(.*) "$1"

        AuthzLDAPAuthoritative off
        AuthLDAPUrl "ldap://cbrdc01.itsa-int.itsa.gov.au:389/DC=itsa-int,DC=itsa,DC=gov,DC=au?sAMAccountName"
        AuthLDAPBindDN "CN=svc-doon,OU=Service Accounts,DC=itsa-int,DC=itsa,DC=gov,DC=au"
        AuthLDAPBindPassword "34PhfL48kfPHR1JFViOaEuZPv8T9erUvmJBpSQMlL4ygHXqAK15vNAYNWlLIXpJ"
                #LDAPVerifyServerCert Off

        require ldap-group cn=InfrastructureAdmins,ou=CBR,ou=Groups Distribution,DC=itsa-int,DC=itsa,DC=gov,DC=au
</Directory>

(root@doon)-(0)-(06:54 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> vim /etc/httpd/conf.d/nfsen.conf

(root@doon)-(0)-(06:54 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Wed May 23 18:55:01 2012] [debug] mod_authnz_ldap.c(1105): [30498] auth_ldap url parse: `ldap://cbrdc01.itsa-int.itsa.gov.au:389/DC=itsa-int,DC=itsa,DC=gov,DC=au?sAMAccountName', Host: cbrdc01.itsa-int.itsa.gov.au:389, Port: 389, DN: DC=itsa-int,DC=itsa,DC=gov,DC=au, attrib: sAMAccountName, scope: base, filter: (null), connection mode: not using SSL
[Wed May 23 18:55:01 2012] [debug] mod_authnz_ldap.c(1105): [30498] auth_ldap url parse: `ldap://cbrdc01.itsa-int.itsa.gov.au:389/DC=itsa-int,DC=itsa,DC=gov,DC=au?sAMAccountName', Host: cbrdc01.itsa-int.itsa.gov.au:389, Port: 389, DN: DC=itsa-int,DC=itsa,DC=gov,DC=au, attrib: sAMAccountName, scope: base, filter: (null), connection mode: not using SSL
                                                           [  OK  ]

(root@doon)-(0)-(06:55 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> ls -lah
total 304K
drwxr-xr-x. 6 root root   4.0K May 23 18:38 .
drwxr-xr-x. 8 root root   4.0K May 23 15:22 ..
-rw-r--r--. 1 root apache  43K May 23 18:38 alerting.php
-rw-r--r--. 1 root apache  24K May 23 18:38 colour_palette.html
-rw-r--r--. 1 root apache 3.3K May 23 18:38 colour_picker.html
-rw-r--r--. 1 root root    152 May 23 18:38 conf.php
drwxr-xr-x. 2 root apache 4.0K May 23 18:38 css
-rw-r--r--. 1 root apache  66K May 23 18:38 details.php
drwxr-xr-x. 2 root apache 4.0K May 23 18:38 icons
drwxr-xr-x. 2 root apache 4.0K May 23 18:38 js
-rw-r--r--. 1 root apache 1.2K May 23 18:38 lookup.php
-rw-r--r--. 1 root apache 4.1K May 23 18:38 navigator.php
-rw-r--r--. 1 root apache  22K May 23 18:38 nfsen.php
-rw-r--r--. 1 root apache  18K May 23 18:38 nfsenutil.php
-rw-r--r--. 1 root apache 3.8K May 23 18:38 overview.php
-rw-r--r--. 1 root apache 2.8K May 23 18:38 pic.php
drwxr-xr-x. 2 root apache 4.0K May 23 18:38 plugins
-rw-r--r--. 1 root apache 4.2K May 23 18:38 process.php
-rw-r--r--. 1 root apache  58K May 23 18:38 profileadmin.php
-rw-r--r--. 1 root apache 1.4K May 23 18:38 rrdgraph.php

(root@doon)-(0)-(06:55 PM Wed May 23)->
(/var/www/nfsen)-(18 files, 304Kb)--> cd -
/root/tmpBuild/nfsen-1.3.6p1

(root@doon)-(0)-(06:56 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim /etc/
Display all 255 possibilities? (y or n)
abrt/                                 fprintd.conf                          modprobe.d/                           readahead.conf
acpi/                                 fstab                                 motd                                  redhat-lsb/
adjtime                               gai.conf                              mtab                                  redhat-release
aliases                               gconf/                                mtools.conf                           request-key.conf
aliases.db                            gcrypt/                               my.cnf                                resolv.conf
aliases.orig                          gdm/                                  nanorc                                resolv.conf.2012-05-11
alsa/                                 ghostscript/                          netconfig                             resolv.conf.orig
alternatives/                         gnome-vfs-2.0/                        NetworkManager/                       rhsm/
anacrontab                            gnupg/                                networks                              rpc
asound.conf                           gre.d/                                nfsen.conf                            rpm/
at.deny                               group                                 nfsen-dist.conf                       rsyslog.conf
audisp/                               group-                                nfsmount.conf                         rwtab
audit/                                grub.conf                             nsswitch.conf                         rwtab.d/
autofs_ldap_auth.conf                 gshadow                               ntp/                                  samba/
auto.master                           gshadow-                              ntp.conf                              sasl2/
auto.misc                             gssapi_mech.conf                      ntp.conf.orig                         securetty
auto.net                              gtk-2.0/                              oddjob/                               security/
auto.smb                              hal/                                  oddjobd.conf                          selinux/
avahi/                                host.conf                             oddjobd.conf.d/                       services
bash_completion.d/                    hosts                                 openldap/                             sestatus.conf
bashrc                                hosts.allow                           opt/                                  setuptool.d/
blkid/                                hosts.deny                            PackageKit/                           sgml/
bonobo-activation/                    httpd/                                pam.d/                                shadow
cas.conf                              idmapd.conf                           pango/                                shadow-
certmonger/                           init/                                 passwd                                shells
cgconfig.conf                         init.d/                               passwd-                               skel/
cgrules.conf                          inittab                               pcmcia/                               smartd.conf
cgsnapshot_blacklist.conf             inittab.orig                          php.d/                                snmp/
chkconfig.d/                          inputrc                               php.ini                               sos.conf
ConsoleKit/                           ipa/                                  pinforc                               sound/
cron.d/                               iproute2/                             pki/                                  ssh/
cron.daily/                           issue                                 plymouth/                             ssl/
cron.deny                             issue.net                             pm/                                   sssd/
cron.hourly/                          issue.orig                            pm-utils-hd-apm-restore.conf          statetab
cron.monthly/                         java/                                 polkit-1/                             statetab.d/
crontab                               jvm/                                  popt.d/                               subversion/
cron.weekly/                          jvm-commmon/                          portreserve/                          sudoers
crypttab                              kdump-adv-conf/                       postfix/                              sudoers.d/
csh.cshrc                             kdump.conf                            ppp/                                  sudoers.orig
csh.login                             krb5.conf                             prelink.cache                         sysconfig/
cups/                                 latrace.conf                          prelink.conf                          sysctl.conf
dbus-1/                               latrace.d/                            prelink.conf.d/                       system-release
default/                              ld.so.cache                           printcap                              system-release-cpe
depmod.d/                             ld.so.conf                            profile                               tac_plus.conf
dhcp/                                 ld.so.conf.d/                         profile.d/                            terminfo/
DIR_COLORS                            libaudit.conf                         protocols                             Trolltech.conf
DIR_COLORS.256color                   libreport/                            pulse/                                udev/
DIR_COLORS.lightbgcolor               libuser.conf                          .pwd.lock                             updatedb.conf
dnsmasq.conf                          localtime                             qpid/                                 vimrc
dnsmasq.d/                            login.defs                            qpidd.conf                            virc
do_auth.ini                           logrotate.conf                        quotagrpadmins                        vmware-tools/
dracut.conf                           logrotate.d/                          quotatab                              warnquota.conf
dracut.conf.BeforeVMwareToolsInstall  lsb-release.d/                        rancid/                               wgetrc
dracut.conf.d/                        ltrace.conf                           rc                                    wpa_supplicant/
elinks.conf                           lvm/                                  rc0.d/                                wvdial.conf

(root@doon)-(0)-(06:56 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim etc/nfsen
nfsen.conf       nfsen-dist.conf

(root@doon)-(0)-(06:56 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim etc/nfsen-dist.conf

(root@doon)-(0)-(06:56 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> ls
bin  BSD-license.txt  ChangeLog  contrib  etc  helpers  html  installer-items  install.pl  libexec  plugins  README  README.plugins  {VARDIR}

(root@doon)-(0)-(06:57 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> cd \{VARDIR\}/

(root@doon)-(0)-(06:57 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/{VARDIR})-(1 files, 12Kb)--> ls
profiles-stat

(root@doon)-(0)-(06:57 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1/{VARDIR})-(1 files, 12Kb)--> cd ..

(root@doon)-(0)-(06:57 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> vim etc/nfsen.conf

(root@doon)-(0)-(06:57 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> sudo ./install.pl etc/nfsen.conf
Check for required Perl modules: All modules found.
Setup NfSen:
Version: 1.3.6p1: $Id: install.pl 53 2012-01-23 16:36:02Z peter $

Perl to use: [/usr/bin/perl]
Found /usr/local/bin/nfdump: Version: 1.6.6 $Date: 2012-03-11 11:57:45 +0100 (Sun, 11 Mar 2012) $
Setup php and html files.

Copy NfSen dirs etc bin libexec plugins doc ...
Copy config file 'etc/nfsen.conf'

In directory: /usr/local/libexec ...
Update script: AbuseWhois.pm
Update script: Log.pm
Update script: Lookup.pm
Update script: NfAlert.pm
Update script: Nfcomm.pm
Update script: NfConf.pm
Update script: NfProfile.pm
Update script: NfSen.pm
Update script: NfSenRC.pm
Update script: NfSenRRD.pm
Update script: NfSenSim.pm
Update script: Nfsources.pm
Update script: Nfsync.pm
Update script: Notification.pm
In directory: /usr/local/bin ...
Update script: nfsen
Update script: nfsend
Update script: RebuildHierarchy.pl
Update script: testPlugin

Cleanup old files ...

Setup diretories:

Use UID/GID 1079 48
Exists: /var/local/nfsen
Exists: /var/local/nfsen/tmp
Exists: /var/local/nfsen/run
Exists: /var/local/nfsen/filters
Exists: /var/local/nfsen/fmt
Creating: mkdir /var/local/nfsen/profiles-stat
/var/local/nfsen/profiles-stat
Creating: mkdir /var/local/nfsen/profiles-stat/live
/var/local/nfsen/profiles-stat/live
Exists: /var/local/nfsen/profiles-data
Exists: /var/local/nfsen/profiles-data/live

Profile live: spool directories:
Exists: hba-wo-550
Exists: per-wo-550
Exists: cbr-ama-wo-3020
Exists: syd-wo-1050
Exists: adl-rtr-2851-sec
Exists: per-rtr-2921-pri
Exists: cbr-ama-rtr-3640
Exists: hba-rtr-2921
Exists: mel-wo-1050
Exists: bne-wo-1050
Exists: bne-rtr-2921-pri
Exists: adl-rtr-2851-pri
Exists: syd-rtr-2921-pri
Exists: mel-rtr-2921-pri
Exists: adl-wo-2050
Rename gif RRDfiles ... done.
Create profile info for profile 'live'

Reconfig: No changes found!
Setup done.

* You may want to subscribe to the nfsen-discuss mailing list:
* http://lists.sourceforge.net/lists/listinfo/nfsen-discuss
* Please send bug reports back to me: phaag@sourceforge.net

(root@doon)-(0)-(06:58 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> service nfsen start
Starting nfcapd:(adl-rtr-2851-pri adl-rtr-2851-sec adl-wo-2050 bne-rtr-2921-pri bne-wo-1050 cbr-ama-rtr-3640 cbr-ama-wo-3020 hba-rtr-2921 hba-wo-550 mel-rtr-2921-pri mel-wo-1050 per-rtr-2921-pri per-wo-550 syd-rtr-2921-pri syd-wo-1050)[30615]
Starting nfsend.

(root@doon)-(0)-(06:58 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> /usr/sbin/sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

(root@doon)-(0)-(06:59 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> setenforce 1

(root@doon)-(0)-(07:00 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> setenforce 0

(root@doon)-(0)-(07:00 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> /usr/sbin/sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

(root@doon)-(0)-(07:00 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> setenforce 1

(root@doon)-(0)-(07:00 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> grep nfsen /var/log/audit/audit.log
type=USER_CMD msg=audit(1337762296.017:82817): user pid=30271 uid=0 auid=1071 ses=7256 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/root/tmpBuild/nfsen-1.3.6p1" cmd=2E2F696E7374616C6C2E706C206574632F6E6673656E2E636F6E66 terminal=pts/0 res=success'
type=USER_CMD msg=audit(1337763488.234:82836): user pid=30590 uid=0 auid=1071 ses=7256 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/root/tmpBuild/nfsen-1.3.6p1" cmd=2E2F696E7374616C6C2E706C206574632F6E6673656E2E636F6E66 terminal=pts/0 res=success'
type=AVC msg=audit(1337763516.697:82839): avc:  denied  { write } for  pid=30514 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763517.948:82840): avc:  denied  { write } for  pid=30516 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763518.628:82841): avc:  denied  { write } for  pid=30510 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763519.137:82842): avc:  denied  { write } for  pid=30512 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763519.738:82843): avc:  denied  { write } for  pid=30514 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763619.261:82850): avc:  denied  { write } for  pid=30509 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763620.176:82851): avc:  denied  { write } for  pid=30512 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763622.356:82852): avc:  denied  { write } for  pid=30513 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763638.520:82854): avc:  denied  { write } for  pid=30514 comm="httpd" name="nfsen.comm" dev=dm-4 ino=133516 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=sock_file
type=AVC msg=audit(1337763638.520:82854): avc:  denied  { connectto } for  pid=30514 comm="httpd" path="/var/local/nfsen/run/nfsen.comm" scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket

(root@doon)-(0)-(07:01 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(14 files, 96Kb)--> grep nfsen /var/log/audit/audit.log | audit2allow -M httpd_nfsen
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i httpd_nfsen.pp


(root@doon)-(0)-(07:02 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> semodule -i httpd_nfsen.pp

(root@doon)-(0)-(07:02 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables
iptables v1.4.7: no command specified
Try `iptables -h' or 'iptables --help' for more information.

(root@doon)-(0)-(07:04 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -l
iptables v1.4.7: option `-l' requires an argument
Try `iptables -h' or 'iptables --help' for more information.

(root@doon)-(0)-(07:04 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -h
iptables v1.4.7

Usage: iptables -[AD] chain rule-specification [options]
       iptables -I chain [rulenum] rule-specification [options]
       iptables -R chain rulenum rule-specification [options]
       iptables -D chain rulenum [options]
       iptables -[LS] [chain [rulenum]] [options]
       iptables -[FZ] [chain] [options]
       iptables -[NX] chain
       iptables -E old-chain-name new-chain-name
       iptables -P chain target [options]
       iptables -h (print this help information)

Commands:
Either long or short options are allowed.
  --append  -A chain            Append to chain
  --delete  -D chain            Delete matching rule from chain
  --delete  -D chain rulenum
                                Delete rule rulenum (1 = first) from chain
  --insert  -I chain [rulenum]
                                Insert in chain as rulenum (default 1=first)
  --replace -R chain rulenum
                                Replace rule rulenum (1 = first) in chain
  --list    -L [chain [rulenum]]
                                List the rules in a chain or all chains
  --list-rules -S [chain [rulenum]]
                                Print the rules in a chain or all chains
  --flush   -F [chain]          Delete all rules in  chain or all chains
  --zero    -Z [chain [rulenum]]
                                Zero counters in chain or all chains
  --new     -N chain            Create a new user-defined chain
  --delete-chain
            -X [chain]          Delete a user-defined chain
  --policy  -P chain target
                                Change policy on chain to target
  --rename-chain
            -E old-chain new-chain
                                Change chain name, (moving any references)
Options:
[!] --proto     -p proto        protocol: by number or name, eg. `tcp'
[!] --source    -s address[/mask][...]
                                source specification
[!] --destination -d address[/mask][...]
                                destination specification
[!] --in-interface -i input name[+]
                                network interface name ([+] for wildcard)
 --jump -j target
                                target for rule (may load target extension)
  --goto      -g chain
                              jump to chain with no return
  --match       -m match
                                extended match (may load extension)
  --numeric     -n              numeric output of addresses and ports
[!] --out-interface -o output name[+]
                                network interface name ([+] for wildcard)
  --table       -t table        table to manipulate (default: `filter')
  --verbose     -v              verbose mode
  --line-numbers                print line numbers when listing
  --exact       -x              expand numbers (display exact values)
[!] --fragment  -f              match second or further fragments only
  --modprobe=<command>          try to insert modules using this command
  --set-counters PKTS BYTES     set the counter during insert/append
[!] --version   -V              print package version.

(root@doon)-(0)-(07:04 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     udp  --  10.20.0.0/16         anywhere            udp dpt:snmp
ACCEPT     udp  --  anywhere             anywhere            udp spt:ntp dpt:ntp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:tacacs
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:https
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:http
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

(root@doon)-(0)-(07:04 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -I RH-Firewall-1-INPUT 9

(root@doon)-(0)-(07:06 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     udp  --  10.20.0.0/16         anywhere            udp dpt:snmp
ACCEPT     udp  --  anywhere             anywhere            udp spt:ntp dpt:ntp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:tacacs
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:https
           all  --  anywhere             anywhere
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:http
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

(root@doon)-(0)-(07:06 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -R RH-Firewall-1-INPUT 9 -p udp -m udp -dport 2050 -j ACCEPT
Bad argument `2050'
Try `iptables -h' or 'iptables --help' for more information.

(root@doon)-(0)-(07:07 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -R RH-Firewall-1-INPUT 9 -p udp  -dport 2050 -j ACCEPT
Bad argument `2050'
Try `iptables -h' or 'iptables --help' for more information.

(root@doon)-(0)-(07:08 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -R RH-Firewall-1-INPUT 9 -p udp  --dport 2050 -j ACCEPT

(root@doon)-(0)-(07:08 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     udp  --  10.20.0.0/16         anywhere            udp dpt:snmp
ACCEPT     udp  --  anywhere             anywhere            udp spt:ntp dpt:ntp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:tacacs
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:https
ACCEPT     udp  --  anywhere             anywhere            udp dpt:av-emb-config
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:http
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

(root@doon)-(0)-(07:08 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -R RH-Firewall-1-INPUT 9 -p udp -m udp --dport 2050 -j ACCEPT

(root@doon)-(0)-(07:08 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     udp  --  10.20.0.0/16         anywhere            udp dpt:snmp
ACCEPT     udp  --  anywhere             anywhere            udp spt:ntp dpt:ntp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:tacacs
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:https
ACCEPT     udp  --  anywhere             anywhere            udp dpt:av-emb-config
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:http
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

(root@doon)-(0)-(07:09 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> vim /etc/nfsen.conf

(root@doon)-(0)-(07:10 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -R RH-Firewall-1-INPUT 9 -p udp -m udp --dport 2055 -j ACCEPT

(root@doon)-(0)-(07:10 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     udp  --  10.20.0.0/16         anywhere            udp dpt:snmp
ACCEPT     udp  --  anywhere             anywhere            udp spt:ntp dpt:ntp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:tacacs
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:https
ACCEPT     udp  --  anywhere             anywhere            udp dpt:iop
ACCEPT     tcp  --  10.20.0.0/16         anywhere            tcp dpt:http
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

(root@doon)-(0)-(07:10 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> vim /etc/nfsen.conf

(root@doon)-(0)-(07:11 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> cd /var/
account/    crash/      db/         games/      lib/        lock/       lost+found/ nis/        preserve/   run/        tmp/        yp/
cache/      cvs/        empty/      gdm/        local/      log/        mail/       opt/        rrdtool/    spool/      www/

(root@doon)-(0)-(07:11 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> cd /var/local/nfsen/
filters/       fmt/           profiles-data/ profiles-stat/ run/           tmp/

(root@doon)-(0)-(07:11 PM Wed May 23)->
(~/tmpBuild/nfsen-1.3.6p1)-(16 files, 104Kb)--> cd /var/local/nfsen/

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen)-(6 files, 32Kb)--> cd profiles-data/live/
adl-rtr-2851-pri/ adl-wo-2050/      bne-wo-1050/      cbr-ama-wo-3020/  hba-wo-550/       mel-wo-1050/      per-wo-550/       syd-wo-1050/
adl-rtr-2851-sec/ bne-rtr-2921-pri/ cbr-ama-rtr-3640/ hba-rtr-2921/     mel-rtr-2921-pri/ per-rtr-2921-pri/ syd-rtr-2921-pri/

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen)-(6 files, 32Kb)--> cd profiles-data/live/

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> cd cbr-ama-wo-3020/

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls
2012  nfcapd.current.30613

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 305K May 23 19:11 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:11 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> cd ..

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> ls
adl-rtr-2851-pri  adl-wo-2050       bne-wo-1050       cbr-ama-wo-3020  hba-wo-550        mel-wo-1050       per-wo-550        syd-wo-1050
adl-rtr-2851-sec  bne-rtr-2921-pri  cbr-ama-rtr-3640  hba-rtr-2921     mel-rtr-2921-pri  per-rtr-2921-pri  syd-rtr-2921-pri

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> cd bne-wo-1050/

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/bne-wo-1050)-(2 files, 16Kb)--> ls
2012  nfcapd.current.30613

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/bne-wo-1050)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:10 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/bne-wo-1050)-(2 files, 16Kb)--> cd ..

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> ls
adl-rtr-2851-pri  adl-wo-2050       bne-wo-1050       cbr-ama-wo-3020  hba-wo-550        mel-wo-1050       per-wo-550        syd-wo-1050
adl-rtr-2851-sec  bne-rtr-2921-pri  cbr-ama-rtr-3640  hba-rtr-2921     mel-rtr-2921-pri  per-rtr-2921-pri  syd-rtr-2921-pri

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> cd cbr-ama-wo-3020/

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls
2012  nfcapd.current.30613

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 620K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:10 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 607K May 23 19:12 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:12 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 620Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:15 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 306K May 23 19:15 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:15 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:15 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 306K May 23 19:15 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:15 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:15 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 306K May 23 19:15 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> ls -lah
total 320K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:15 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 306K May 23 19:15 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020)-(2 files, 320Kb)--> cd 2012

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012)-(1 files, 12Kb)--> ls
05

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012)-(1 files, 12Kb)--> cd 05/23/

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012/05/23)-(4 files, 1.6Mb)--> ls
nfcapd.201205231855  nfcapd.201205231900  nfcapd.201205231905  nfcapd.201205231910

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012/05/23)-(4 files, 1.6Mb)--> ls -lah
total 1.6M
drwxr-xr-x. 2 nfsen apache 4.0K May 23 19:15 .
drwxr-xr-x. 3 nfsen apache 4.0K May 23 19:00 ..
-rw-r--r--. 1 nfsen apache  276 May 23 19:00 nfcapd.201205231855
-rw-r--r--. 1 nfsen apache  276 May 23 19:05 nfcapd.201205231900
-rw-r--r--. 1 nfsen apache  276 May 23 19:10 nfcapd.201205231905
-rw-r--r--. 1 nfsen apache 1.6M May 23 19:15 nfcapd.201205231910

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012/05/23)-(4 files, 1.6Mb)--> cd ..

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012/05)-(1 files, 12Kb)--> ls
23

(root@doon)-(0)-(07:16 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012/05)-(1 files, 12Kb)--> cd ..

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-wo-3020/2012)-(1 files, 12Kb)--> cd ../..

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> cd cbr-ama-
cbr-ama-rtr-3640/ cbr-ama-wo-3020/

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live)-(15 files, 68Kb)--> cd cbr-ama-rtr-3640/

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls
2012  nfcapd.current.30613

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:37 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah 2012/05/23/nfcapd.201205231
nfcapd.201205231855  nfcapd.201205231900  nfcapd.201205231905  nfcapd.201205231910  nfcapd.201205231915  nfcapd.201205231920  nfcapd.201205231925  nfcapd.201205231930

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah 2012/05/23/nfcapd.201205231*
-rw-r--r--. 1 nfsen apache 276 May 23 19:00 2012/05/23/nfcapd.201205231855
-rw-r--r--. 1 nfsen apache 276 May 23 19:05 2012/05/23/nfcapd.201205231900
-rw-r--r--. 1 nfsen apache 276 May 23 19:10 2012/05/23/nfcapd.201205231905
-rw-r--r--. 1 nfsen apache 276 May 23 19:15 2012/05/23/nfcapd.201205231910
-rw-r--r--. 1 nfsen apache 276 May 23 19:20 2012/05/23/nfcapd.201205231915
-rw-r--r--. 1 nfsen apache 276 May 23 19:25 2012/05/23/nfcapd.201205231920
-rw-r--r--. 1 nfsen apache 276 May 23 19:30 2012/05/23/nfcapd.201205231925
-rw-r--r--. 1 nfsen apache 276 May 23 19:35 2012/05/23/nfcapd.201205231930

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah 2012/05/23/nfcapd.201205231*
-rw-r--r--. 1 nfsen apache 276 May 23 19:00 2012/05/23/nfcapd.201205231855
-rw-r--r--. 1 nfsen apache 276 May 23 19:05 2012/05/23/nfcapd.201205231900
-rw-r--r--. 1 nfsen apache 276 May 23 19:10 2012/05/23/nfcapd.201205231905
-rw-r--r--. 1 nfsen apache 276 May 23 19:15 2012/05/23/nfcapd.201205231910
-rw-r--r--. 1 nfsen apache 276 May 23 19:20 2012/05/23/nfcapd.201205231915
-rw-r--r--. 1 nfsen apache 276 May 23 19:25 2012/05/23/nfcapd.201205231920
-rw-r--r--. 1 nfsen apache 276 May 23 19:30 2012/05/23/nfcapd.201205231925
-rw-r--r--. 1 nfsen apache 276 May 23 19:35 2012/05/23/nfcapd.201205231930

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah 2012/05/23/
total 40K
drwxr-xr-x. 2 nfsen apache 4.0K May 23 19:35 .
drwxr-xr-x. 3 nfsen apache 4.0K May 23 19:00 ..
-rw-r--r--. 1 nfsen apache  276 May 23 19:00 nfcapd.201205231855
-rw-r--r--. 1 nfsen apache  276 May 23 19:05 nfcapd.201205231900
-rw-r--r--. 1 nfsen apache  276 May 23 19:10 nfcapd.201205231905
-rw-r--r--. 1 nfsen apache  276 May 23 19:15 nfcapd.201205231910
-rw-r--r--. 1 nfsen apache  276 May 23 19:20 nfcapd.201205231915
-rw-r--r--. 1 nfsen apache  276 May 23 19:25 nfcapd.201205231920
-rw-r--r--. 1 nfsen apache  276 May 23 19:30 nfcapd.201205231925
-rw-r--r--. 1 nfsen apache  276 May 23 19:35 nfcapd.201205231930

(root@doon)-(0)-(07:38 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:35 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:39 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> ls -lah
total 292K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 277K May 23 19:39 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:39 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 292Kb)--> ls -lah
total 292K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:35 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache 277K May 23 19:39 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:39 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 292Kb)--> ls -lah
total 16K
drwxrwxr-x.  3 nfsen apache 4.0K May 23 19:40 .
drwxrwxr-x. 17 nfsen apache 4.0K May 23 18:38 ..
drwxr-xr-x.  3 nfsen apache 4.0K May 23 19:00 2012
-rw-r--r--.  1 nfsen apache  276 May 23 19:40 nfcapd.current.30613
-rw-r--r--.  1 nfsen apache    0 May 23 18:38 .nfstat

(root@doon)-(0)-(07:40 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv00
                      5.0G  2.8G  2.0G  59% /
tmpfs                1004M     0 1004M   0% /dev/shm
/dev/sda1             248M   32M  204M  14% /boot
/dev/mapper/vg00-lv05
                      2.8G   80M  2.5G   4% /home
/dev/mapper/vg00-lv03
                      3.0G   75M  2.8G   3% /opt
/dev/mapper/vg00-lv04
                      2.0G   68M  1.9G   4% /tmp
/dev/mapper/vg00-lv02
                      3.0G  335M  2.5G  12% /var
/dev/sr0              3.4G  3.4G     0 100% /mnt

(root@doon)-(0)-(07:40 PM Wed May 23)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> vim /etc/nfsen.conf

(root@doon)-(0)-(11:28 AM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 568Kb)--> df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv00
                      5.0G  2.8G  2.0G  59% /
tmpfs                1004M     0 1004M   0% /dev/shm
/dev/sda1             248M   32M  204M  14% /boot
/dev/mapper/vg00-lv05
                      2.8G   80M  2.5G   4% /home
/dev/mapper/vg00-lv03
                      3.0G   75M  2.8G   3% /opt
/dev/mapper/vg00-lv04
                      2.0G   68M  1.9G   4% /tmp
/dev/mapper/vg00-lv02
                      3.0G  1.2G  1.7G  41% /var
/dev/sr0              3.4G  3.4G     0 100% /mnt

(root@doon)-(0)-(11:28 AM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 568Kb)--> fo
fold                                   foomatic-configure                     foomatic-perl-data                     foomatic-replaceoldprinterids
font2c                                 foomatic-datafile                      foomatic-ppdfile                       foomatic-rip
fonttosfnt                             foomatic-extract-text                  foomatic-ppd-options                   foomatic-searchprinter
foomatic-addpjloptions                 foomatic-fix-xml                       foomatic-ppd-to-xml                    for
foomatic-cleanupdrivers                foomatic-getpjloptions                 foomatic-preferred-driver
foomatic-combo-xml                     foomatic-kitload                       foomatic-printermap-to-gutenprint-xml
foomatic-compiledb                     foomatic-nonumericalids                foomatic-printjob

(root@doon)-(0)-(11:28 AM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 568Kb)--> yum install fortune
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
rhel-cdrom                                                                                                                                                             | 4.0 kB     00:00 ...
Setting up Install Process
No package fortune available.
Error: Nothing to do

(root@doon)-(0)-(11:35 AM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 16Kb)--> df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv00
                      5.0G  2.8G  2.0G  59% /
tmpfs                1004M     0 1004M   0% /dev/shm
/dev/sda1             248M   32M  204M  14% /boot
/dev/mapper/vg00-lv05
                      2.8G   80M  2.5G   4% /home
/dev/mapper/vg00-lv03
                      3.0G   75M  2.8G   3% /opt
/dev/mapper/vg00-lv04
                      2.0G   68M  1.9G   4% /tmp
/dev/mapper/vg00-lv02
                      3.0G  1.6G  1.3G  57% /var
/dev/sr0              3.4G  3.4G     0 100% /mnt

(root@doon)-(0)-(02:48 PM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 1.9Mb)--> service nfsen stop
Shutdown nfcapd: (adl-rtr-2851-pri adl-rtr-2851-sec adl-wo-2050 bne-rtr-2921-pri bne-wo-1050 cbr-ama-rtr-3640 cbr-ama-wo-3020 hba-rtr-2921 hba-wo-550 mel-rtr-2921-pri mel-wo-1050 per-rtr-2921-pri per-wo-550 syd-rtr-2921-pri syd-wo-1050)[30615].^[[A .
Shutdown nfsend:[30617]..

(root@doon)-(0)-(03:53 PM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(1 files, 16Kb)--> service nfsen start
Starting nfcapd:(adl-rtr-2851-pri adl-rtr-2851-sec adl-wo-2050 bne-rtr-2921-pri bne-wo-1050 cbr-ama-rtr-3640 cbr-ama-wo-3020 hba-rtr-2921 hba-wo-550 mel-rtr-2921-pri mel-wo-1050 per-rtr-2921-pri per-wo-550 syd-rtr-2921-pri syd-wo-1050)[9445]
Starting nfsend.

(root@doon)-(0)-(03:53 PM Thu May 24)->
(/var/local/nfsen/profiles-data/live/cbr-ama-rtr-3640)-(2 files, 20Kb)-->

the stuff that goes into routers for netflow

conf t

int g 0/0 
 ip flow ing 
int g 0/1 
 ip flow ing 
int t 1 
 ip flo ingress
ip flow-cache timeout inactive 30
ip flow-cache timeout active 5
ip flow-export source GigabitEthernet0/1
ip flow-export version 9
ip flow-export destination 10.20.55.230 2055
end 
conf t
ip flow-ex sour g 0/0
end 

conf t
int g 0/0
 ip flow egress
int g 0/1
 ip flow egress
int t 1
 ip flow egress
end
sh ip flow interface
wr
config.txt · Last modified: 2013/05/22 09:34 by admin