[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how do I manage a router through it on a schedule (guess that's a cron)



I've got a Linux box and I'm interested in how to manage a router through it
on a schedule (guess that's a cron)  see below


 ===========================
 script  "telnet 192.168.1.1"
 response
 " This is a test Network User Access Verification  Password: "

 script within 30 secs "password<CR>"
 response "Cisco827>"
 script "sh ip int br<CR>"
 response
 "Interface                  IP-Address      OK? Method Status
 Protocol
 ATM0                       unassigned      YES NVRAM  up
up
ATM0.1                     unassigned      YES unset  up
up
Dialer1                    64.171.255.68   YES IPCP   up
up
Ethernet0                  192.168.1.1     YES manual up
up
Ethernet0.1                unassigned      YES unset  deleted
down
Virtual-Access1            unassigned      YES TFTP   up
up
 Cisco827>"
 script find IP address assigned to dialer1; extract
 script put IP address into an email and send it to me
 script "exit<CR>"

 run this every 24hrs
 =-============================

                     ,,,                           |||||
                   (o o)                        ( \ / )
-----------oOOo-(_)-oOOo--------oOOo--^--oOOo-------------------
Software Engineer               Cell: (214) 454-7545
Leon D. Wheeler                 Voice Mail: (972) 642-1190                             
bseet@msn.com                 Fax:  (972) 642-1190
******************************************************************
"The only thing that stands between a man and what he wants from life
is often merely the will to try it and the faith to believe that it
is possible."   --Richard M. Devos
 
"If we all did the things we are capable of doing, we would literally   
astound ourselves."     ---- Thomas A. Edison

Reply to: