ZtnBatch is a console program to automate telnet sessions for ZyXEL routers. You can find source code (Borland C++ Builder 6) in src.zip files. Please inform me about bugs and proposed modifications in sources - zyxmon@nm.ru How ztnbatch.exe works - the program starts telnet session, passes the router its password, then it sends "24" to enter "System Maintenance" menu, then it sends "8" to enter "Command Interpreter Mode". Afterwards CI commands are executed. The parameters are passed to ztnbatch.exe in command line: ztnbatch.exe -h -p -c "cmd1" -c "cmd2" .... Please enter router ip instead of and router password instead of . Commands are given after -ñ in quotes. ztnbatch.exe can execute any number of commands. Additional options can be passed to ztnbatch -silent : means no console output -wait : means message "Press any key to finish...." after execution -timeout nnnn : sets timeout (nnnn) to wait response from router in milliseconds (default 5000). -file name : Optional filename for output -loop nnn : Optional loop all CI commands nnn times, onpositive nnn means endless loop (Ctrl-C to stop) -sleep nnn : Time to sleep betwean loop cycles (default 500ms = 0.5s) --------- Examples 1) ztnbatch.exe -h 192.168.1.1 -p 1234 -c "poe drop poe0" -wait will drop pppoe session. (Assuming IP=192.168.1.1, Password 1234). 2) ZTnBatch -h 192.168.1.1 -p 1234 -c "wan adsl linedata near" -c "wan adsl linedata far"-loop 3600 -sleep 1000 -file line.txt Example to test line quality every second during 1 hour, the results are written to the file "line.txt". --------- WARNING! Zyxel routers can handle only one telnet session. Zyxmon and ZtnBatch will not work simultaneously. --------- Zyxmon Mail - zyxmon@nm.ru Homepage - http://zyxmon.nm.ru