to do a script that telnet to a server send agent , username, password, and a command with a variable?
example of telnet session
[admin@networks] > system telnet update.3domain.hk 9120
Trying 210.17.188.133…
Connected to 210.17.188.133.
Escape character is ‘^]’. miniDNS.net Update Server 0.8.1 agent mikrotik
OK Agent accepted login myusername plain
PASSWORD:mysecret
OK Authenticated a_update online my.domain
OK MY.DOMAIN mapped to 200.117.151.125