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

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

On Sat, Jul 21, 2001 at 01:41:21PM -0500, Bseet wrote:

>  script  "telnet"
>  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             YES IPCP   up
> up
> Ethernet0             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
>  =-============================

What you want is SNMP, try packages snmp and stools. snmpwalk in package
snmp is useful to find out just what information you can get. I would
strongly advice not to to do that telnet except yahoo.


Reply to: