I have a program that logs into every device on our network (via telnet) then sends the command “export”. Records the results then compares it to the previous file it captured. Then if it detects a change it sends an e-mail to us.
We are having issues getting the program to work properly I have done a putty capture and I noticed a bunch of characters before the prompt and after the MikroTik logo that I think is causing issues.
Does anybody have any idea what these characters are and why they are there?
If the following is unclear the text file has the raw data
Well that was an issue before so I use the login admin+c instead of admin. The +c makes the session have no color coding on anything so it should eliminate color coding characters.
I appologize the program that I am trying to use is using +ct not +c although for some reason +c still made the color coding go away, +ct did cause a lot of the junk at the beginning to go away. The Program PuTTY allows you to log to a txt document the raw data that it receives from the session, that is what I have attached.
I think you should look at this differently - this isn’t an issue with RouterOS not giving you the output you want, it’s an issue with your application not accepting and validating input correctly. It’s trivial to just throw away all non-printable characters from a data stream.
If it’s not your own application (you don’t have control over the source code), lobby the programmer to properly validate input.
Even if you succeed in getting RouterOS to give you output the application can use as is, that’s just a bandaid. You can’t rely on whatever feature (admin+c, admin+ct) helping you out not going away in version 4.2, or you might start monitoring other devices that give problematic output. The definitive fix is in the app.
I feel that you are correct in that statement, unfortunately this is one of my final attempts. The company who writes the software has said they won’t support MikroTik devices so I am stuck figuring it out on my own. I am looking for even a bandaid at this point. I understand I should just make the software work, and I am still trying to do that I am just looking down other avenues as well.