Community discussions

MikroTik App
 
007mira
just joined
Topic Author
Posts: 2
Joined: Fri Apr 06, 2018 8:33 am

API for Telnet

Tue Oct 16, 2018 10:16 pm

We have prepared php script for connection via telnet protocol where https://pastebin.com/fhSu20Af has been used. Initial process looks great and we are able to connect but when we want to send some command, everything looks like froozen. Image
Code below:
$t = new \Telnet\Telnet("xxx.xxx.xxx.xxx", 23, 10, "");
        $t->login("login+cte", "password");
       
        $t->setPrompt(">");
        $t->exec("interface");
        $t->exec("print");
        $t->disconnect();
Could anybody help me where we have an issue?
You do not have the required permissions to view the files attached to this post.