nv-l
[Top] [All Lists]

Re: Router backups

To: nv-l@lists.tivoli.com
Subject: Re: Router backups
From: Steve Francis <steve.francis@COMMSERV.UCSB.EDU>
Date: Wed, 12 Jan 2000 17:55:11 -0800
Here's the script I wrote. Put it in a crontab to run each night, and it
collects the routers configs if they have changed.

#!/bin/ksh
for x in router1 router2 router3 router4 router5
#You could change this to do all the routers that Netview has discovered, if
you want, instead of a list of specific routers.
    do
        y=${x}_`date +"%C%y%m%d-%H%M"`
        touch /tftpboot/configs/$y
        chmod 666 /tftpboot/configs/$y
        /usr/OV/bin/snmpset $x cisco.local.lsystem.writenet.128.111.251.200
octetstring /tftpboot/configs/$y
        chmod 600 /tftpboot/configs/$y
done
sleep 10
for x in /tftpboot/configs/*
        do
        grep -v clock-period $x > $x.2
        mv $x.2 $x
        same=false
        host=`basename $x | cut -d"_" -f1`
        y=`ls -art /usr/OV/databases/configs/$host* | tail -1`
                if  diff $y $x > /dev/null; then
                      same=true
                fi
        if [ "$same" = "false" ]; then
                mv $x /usr/OV/databases/configs/
        else
                rm $x
        fi
done

"Boulieris, Arthur" wrote:

> Hi,
> I have netview 5.1.2 on solaris 2.6.
> Does any one know if there is a tivoli or netview module that manages cisco
> router config backups.
> If not does anyone out there have a useful tool that can do this.
> I am currently doing it using a telnet scriptor on an NT box.Unfortunately
> the NT box is being removed and I need a solaris solution.
> Any help or suggestions appreciated.
>
> regards
>
>     Arthur Boulieris
>     Implementation & Support
>     Systems Management
>  <<...>>
>
> ------
> Attachments are virus free!
>
> This message has been scanned for viruses at the originating end by
> Nemx Anti-Virus for MS Exchange Server/IMC
>         http://www.nemx.com/products/antivirus


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web