Community discussions

 
shaun12
just joined
Topic Author
Posts: 2
Joined: Sat Nov 10, 2018 12:17 pm

MAC-Telnet Solution via Code

Sat Nov 10, 2018 2:22 pm

So I am trying to build a program that can access 1 router via another through mac-telnet but im at a crossroad with my code.
i have tried everything i could think of. the connection to the router works fine but after that not so much

ITikConnection initconnection = ConnectionFactory.CreateConnection(TikConnectionType.Api);
initconnection.Open("10.255.107.2", "admin", "xxxxx");
var loadCmd = initconnection.CreateCommandAndParameters("/tool/mac-telnet","host","xxxxxx", "Login","admin","Password","xxxxx");
var response = loadCmd.ExecuteList();

if i try this code it gives me the following error

tik4net.TikCommandException: ''

any advice?

Kind regards

Who is online

Users browsing this forum: Jotne, tigro11 and 3 guests