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

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

book

Article ID: 10088

calendar_today

Updated On:

Products

CA Directory

Issue/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.



Environment

Release: ETRDIR99000-12.5-Directory
Component:

Resolution

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 ***