RE: YAVUZ TEMIZKAN [cisco-ttl] DSL interface boot

From: YAVUZ TEMIZKAN (ytemizkan_at_inteltek.com.tr)
Date: Thu Jun 24 2004 - 07:05:05 GMT

  • Next message: Yasin BATMAZ: "[cisco-ttl] CiscoPedia"

    ┼×u ┼čekilde bir ├Ârnek expect scripti var:
     
    #!/usr/bin/expect --
    set username USER
    set password PASS
     
    log_file -noappend telnetoutput.txt
    spawn "/bin/sh"
    send "telnet x.x.x.x\r"
    sleep 1
    expect "sername"
    send "$username\r"
    expect "Password"
    send "$password\r"
    expect "#"
    send "conf t\r"
    expect "#"
    send "int s 0\r"
    expect "#"
    send "shut\r"
    expect "#"
    send "no shut\r"
    expect "#"
    send "q\r"
    send "\r\r"
     
     
    USER ve PASS yerine router user ve passlerini gireceksiniz.
    linux ve unixlerde bu script ( e─čer expect scripti install edilmi┼čse) ├žal─▒┼č─▒r.
    cron'a koyup her g├╝n belirli saatlerde ├žal─▒┼čt─▒rabilirsiniz ( unixten biraz anlayan bir arkada┼č kolayca yapabilir)
    Int. isimleirnin de─či┼čtirilmesi gerekebilir.
    Ilgili serverdan routera telnet de a├ž─▒lmas─▒ gerekiyor.
    Selamlar
    Yavuz Temizkan
     
     

            -----Original Message-----
            From: Erkan Ural [mailto:kaan42_at_gmx.de]
            Sent: Thursday, June 24, 2004 11:53 AM
            To: cisco-ttl_at_yahoogroups.com
            Subject: RE: YAVUZ TEMIZKAN [cisco-ttl] DSL interface boot
            
            
            Evet Skripti g├Ânderebilirseniz cok sahane olur.
            
            
            Simdiden yardiminiz icin cok tesek├╝rler.
            
            Erkan
            
            
    > ├ťst model routerlarda hotswappable kartlar├Ż reload ettirmek m├╝mk├╝n ancak
    > istedi├░iniz ├żey 1721lerde yap├Żlam├Żyor.
    > Bir script yazarak ( vbasic/perl/shell script vs) uzaktan routera telnet
    > ├žekip interface'i shut /no shut yapt├Żrman├Żz laz├Żm.
    > Daha sonra bu scriptin ├žal├Ż├żmas├Ż da belirli bir saate set edilebilir.
    > ├Łsterseniz gerekli scripti g├Ânderebilirim.
    >
    > -----Original Message-----
    > From: Erkan Ural [mailto:kaan42_at_gmx.de]
    > Sent: Thursday, June 24, 2004 9:33 AM
    > To: cisco-ttl_at_yahoogroups.com
    > Subject: [cisco-ttl] DSL interface boot
    >
    >
    > Merhaba arkadaslar,
    >
    > Benim bir Cisco 1721 var. Onunla DSL ├╝zeri VPN yapiyorum. Almanyada
    > Telekom
    > her 24 saate DSL bir sefer reset yapiyormus. Sorun su : Telekom tam 24
    > saate
    > resetyapmiyor bazen tam is vaktinde yapiyor. Unun icin ben Router de DSL
    > interfacei down ve hemen yine UP yaptirmak istiyorum. Tabiki zamanini da
    > vermem gerekir.
    > Yani Routeri reboot yaptirmak istemiyorum, sadece bir interfacei.
    > B├Âyle bir komut taniyormusunuz ??
    >
    > Tesek├╝rler
    > Erkan Ural
    > ZLB Behring GmbH
    > Information Solutions Server Opertions
    > mailto:Erkan.Ural_at_zlbbehring.com
    >
    >
    >
    >
    > --
    > "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
    > Jetzt aktivieren unter http://www.gmx.net/info
    >
    >
    >
    > Bu listenin Cisco Systems ile herhangi bir baglantisi bulunmamaktadir.
    >
    > Listeden cikmak i├žin cisco-ttl-unsubscribe_at_yahoogroups.com adresine bir
    > e-posta g├Ânderebilirsiniz.
    >
    >
    >
    > Yahoo! Groups Sponsor
    > ADVERTISEMENT
    > click here
    >
            <http://us.ard.yahoo.com/SIG=129f41oc0/M=298184.5022502.6152625.3001176/D=groups/S=1705004726:HM/EXP=1088145215/A=2164339/R=0/SIG=11e2d64in/*http://www.netflix.com/Default?mqso=60183348>
    >
    >
    >
            <http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=groups/S=:HM/A=2164339/rand=577894713>
                  
    >
    >
    > _____
    >
    > 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_at_yahoogroups.com
    > <mailto:cisco-ttl-unsubscribe_at_yahoogroups.com?subject=Unsubscribe>
    >
    > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
    > <http://docs.yahoo.com/info/terms/> .
    >
    >
    >
            
            --
            +++ Jetzt WLAN-Router f├╝r alle DSL-Einsteiger und Wechsler +++
            GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
            
            
            
            Bu listenin Cisco Systems ile herhangi bir baglantisi bulunmamaktadir.
            
            Listeden cikmak i├žin cisco-ttl-unsubscribe_at_yahoogroups.com adresine bir e-posta g├Ânderebilirsiniz.
            
            
            
    Yahoo! Groups Sponsor
    ADVERTISEMENT
    click here <http://us.ard.yahoo.com/SIG=129pr66no/M=295196.4901138.6071305.3001176/D=groups/S=1705004726:HM/EXP=1088153580/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>
     <http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=252929372>

            
      _____

            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_at_yahoogroups.com <mailto:cisco-ttl-unsubscribe_at_yahoogroups.com?subject=Unsubscribe>
                      
            * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .




    This archive was generated by hypermail 2.1.5 : Thu Jun 24 2004 - 11:04:16 GMT