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 192.168.1.1"
> " This is a test Network User Access Verification Password: "
> script within 30 secs "password<CR>"
> response "Cisco827>"
> script "sh ip int br<CR>"
> "Interface IP-Address OK? Method Status
> ATM0 unassigned YES NVRAM up
> ATM0.1 unassigned YES unset up
> Dialer1 126.96.36.199 YES IPCP up
> Ethernet0 192.168.1.1 YES manual up
> Ethernet0.1 unassigned YES unset deleted
> Virtual-Access1 unassigned YES TFTP up
> 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.