Some of my day to day jobs are done by a Tcl script. This includes obtaining router logs and so on.
Eggdrop will watch a specific file, and see when it's been updated.
It's contents are based on security messages, and other bits.
For the last part, I also wish to see if any of the router have fallen over, and let me know.
SNMP will tell me the routers system uptime, but it will not issue the uptime of a connection.
For this, I either have to parse the output from a telnet connection, or via a web-page.
The system returns 3 values for it's uptime. Time since last reboot, time since it last lost sync with the exchange and time that it's been authenticated to the ISP.
vaklues 2 & 3 usualy stay the same. When both reset, it means I lst connection. When 3 is lower than 2, it means there has been a stability issue. This is what I need to catch.
The web-interface to the router, uses HTTP Basic authentication to protect it. As such, I can't seem to get past it.
Using the http Tcl package, I have tried using
Code: Select all
-headers [list "Authorization" "Basic $base64"]
Has any1 had any look with using the http package to navigate WWW-authenticate pages?