How to connect to DSA console (aka DXconsole) if telnet is not available

Document ID : KB000010088
Last Modified Date : 14/02/2018
Show Technical Document Details

If the corporate policy does not allow to have telnet client installed locally on Linux machine, you may use Python script which can work as replacement for telnet.




You can create a script with following content and e.g. give it a name as ''.



#!/usr/bin/env python 


from telnetlib import Telnet 

import os 

connection = Telnet('localhost', os.sys.argv[1]) 




Execution: (here 1235 is assumed to be your console-port)


An example of it being used: 

$ ./ 1235 


Welcome to the DSA Management Console 

dsa> logout; 


*** Connection closed by remote host ***