; ファイル名 ; cisco_reloadsapport.ttl ; ; 機能 ; CiscoルータのReloadを半自動化する ; ; 動作環境 ; Cisco ; ; 作者 ; hiroc ; ; 作成日 ; 2004/12/13 ; sendln 'telnet 10.0.1.6' call log sendln 'telnet 10.0.1.7' call log sendln 'telnet 10.0.1.8' call log sendln 'telnet 10.0.1.9' call log sendln 'telnet 10.0.1.10' call log sendln 'telnet 10.0.1.11' call log sendln 'telnet 10.0.1.12' call log sendln 'telnet 10.0.1.13' call log sendln 'telnet 10.0.1.14' call log sendln 'telnet 10.0.1.15' call log sendln 'telnet 10.0.1.16' call log sendln 'telnet 10.0.1.17' call log sendln 'telnet 10.0.1.18' call log sendln 'telnet 10.0.1.19' call log sendln 'telnet 10.0.1.20' call log end ;subroutine :log wait "Password:" if result=0 then return endif sendln "pass" sendln "en" wait "Password:" sendln "password" sendln "sh conf" sendln "!" sendln "reload" wait "[Connection to" return