Re: [cisco-ttl] Otomaik Router Conf Backup Alma

From: <burakgocmen_at_....>
Date: Mon Nov 21 2005 - 17:11:27 EET

merhaba,

aa覺daki scripti solaris 羹zerinden telnet yapt覺r覺p, baz覺 komut 癟覺kt覺lar覺n覺 txt olarak dosyaya yazd覺rmak i癟in kullan覺yorum. unix t羹revi dier sistemlerde de 癟al覺acakt覺r, iinizi g繹rebilir. iyi 癟al覺malar,


#!/bin/bash

###########################################
# Router's IP address
#

     IP_ADDRESS='X.X.X.X'

# Directory where the log files will be stored
#
DIR=/XXX
########################################
if [ ! -e $DIR ] then mkdir $DIR fi
# Tag specification: ddmmhhmm
DATE=`date +'%d%m'` TIME=`date +'%H%M'` TAG=$DATE-$TIME
# Collect data from the router
(echo "kullan覺c覺 ad覺";\ echo "kullan覺c覺 ifresi";\ echo "enable";\ echo "user enable ifresi";\ echo "term leng 0";\ echo "show run";\ sleep 3 echo "exit";\ sleep 3 sleep 10)|telnet $IP_ADDRESS > $DIR/router_cfg.$TAG ----------------------------------------------------------------------------------------------------------------- (Embedded image moved to file: pic06698.gif) To: cisco-ttl@yahoogroups.com "Bahad覺r" Girtten cc: <bgirtten@yahoo.com> Subject: [cisco-ttl] Otomaik Router Conf Backup Alma Sent by: cisco-ttl@yahoogroup s.com 21.11.2005 16:20 Please respond to cisco-ttl

Selamlar,

  Cisco Routerlarda script yazmak mumkun mudur? (Her ak臘am belli bir saatte routerlar configurasyon dosyalar羸n羸 bir TFTP servera ats羸n istiyorum)

  Routerlara script yazam羸yorsak s羸rayla routerlara telnet ile baglanarak konfigurasyonlar羸 tftpye atacak bir bilgisayar i癟in gerekli bir perl scripti ya da linux bash scripti vs. nereden bulabilirim?

  Te臘ekk羹rler

  Bahad羸r



 Yahoo! FareChase - Search multiple travel sites in one click.

[Non-text portions of this message have been removed]

--
Cisco Teknik Tartisma Listesi (Cisco-ttl)

Bu listede onerilen degisikliklerin uygulanmasindaki tum sorumluluk kullaniciya aittir. Liste yoneticileri, oneride bulunan liste uyeleri ya da

bu uyelerin calistigi kuruluslar herhangi bir sekilde sorumlu tutulamazlar.

Yahoo! Groups Links

[Non-text portions of this message have been removed]

--
Cisco Teknik Tartisma Listesi (Cisco-ttl)

Bu listede onerilen degisikliklerin uygulanmasindaki tum sorumluluk 
kullaniciya aittir. Liste yoneticileri, oneride bulunan liste uyeleri ya da 
bu uyelerin calistigi kuruluslar herhangi bir sekilde sorumlu tutulamazlar. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cisco-ttl/

<*> To unsubscribe from this group, send an email to:
    cisco-ttl-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
Received on Mon Nov 21 17:12:44 2005

This archive was generated by hypermail 2.1.8 : Mon Nov 21 2005 - 17:12:44 EET