Community discussions

 
guestph
just joined
Topic Author
Posts: 4
Joined: Sat May 04, 2019 7:26 am

Telnet Response after admin login

Tue May 14, 2019 12:52 pm

i need help with decoding the response send by the Mikrotik after a successful login via Telnet. Supposedly i'll get response after typing "ip address print", but i get strange characters for the response. i get this response "p [9999B [9999B Z [6n".
Image

i have this code for printing the response.
Image

Question:
What type of response does Mikrotik send after a successful login via Telnet, is it String or Char or ???
Badly need help with this one.
 
pe1chl
Forum Guru
Forum Guru
Posts: 5351
Joined: Mon Jun 08, 2015 12:09 pm

Re: Telnet Response after admin login

Tue May 14, 2019 2:40 pm

Those are ANSI standard escape sequences that are used to do cursor movement, set colors, etc.
You can do a telnet login with options to disable that.
See the wiki: https://wiki.mikrotik.com/wiki/Manual:C ... in_process
 
nescafe2002
Long time Member
Long time Member
Posts: 597
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Telnet Response after admin login

Tue May 14, 2019 3:04 pm

If you want to automate configuration tasks, you'd better use the built in API functionality (or SSH at least).

https://wiki.mikrotik.com/wiki/Manual:API

Who is online

Users browsing this forum: No registered users and 16 guests