nv-l
[Top] [All Lists]

Re: Router backups

To: nv-l@lists.tivoli.com
Subject: Re: Router backups
From: "Boulieris, Arthur" <Arthur.Boulieris@NZ.UNISYS.COM>
Date: Thu, 13 Jan 2000 15:09:17 -0500
Hi Steve,
Thanks for the script. Ive tried doing:
/usr/OV/bin/snmpget -c community router1 .1.3.6.1.4.1.9.2.1.55.serverip
octetstring
/tftpboot/router1.
This is pretty much what your script does only I get "A general failure
occured on the agent"
I had to create /tftpboot, Should it allready have been there?
I created the file router1,both tftpboot and router1 and chmod 666 them.
The community string is ok so Im not sure why this isnt working.
Did you have any problems with this?

thankyou Arthur

-----Original Message-----
From: Steve Francis [mailto:steve.francis@COMMSERV.UCSB.EDU]
Sent: Thursday, January 13, 2000 2:55 PM
To: NV-L@UCSBVM.UCSB.EDU
Subject: Re: Router backups


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