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
Introduction:

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.

Instructions:

Sample:

 

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

 

========

#!/usr/bin/env python 

 

from telnetlib import Telnet 

import os 

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

connection.interact() 

========

 

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

 

An example of it being used: 

$ ./telnet.sh 1235 

 

Welcome to the DSA Management Console 

dsa> logout; 

logout; 

*** Connection closed by remote host ***