hi,
I use Net::telnet connecting my router,rename hosname,show current
users,but I got an error.
My code below:
<code>
require 'net/telnet'
tn = Net::Telnet.new({'Host'=> '3333::1', 'Waittime'=> '100'})
sleep 1
#tn.login()
tn.cmd("config\r\nhostname TEST\r") {|c| puts c}
sleep 1
tn.cmd("show user") {|c| puts c}
sleep 1
tn.close
</code>
but I got an error as the attachment,I don`t konw how to fix this
error.Pls help me.Thx~~~
on 2013-02-26 14:18
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.
