555124 Telnet Script to add persistent connection feature

Modify existing scripts to allow for a global variable to def.c called $PERSISTENT_CONN that if set to 0 does nothing but if set to a number does the following every n minutes... So if $PERSISTENT_CONN=5 the script would check to make sure the connection to both Host A and Host B is still alive.

Send to Host A: "#MONITORING,12,2"

Verify that "~MONITORING,12,2" is received with in a few seconds

If not, kill the connection and re-establish the connection to Host A

Send to Host B: "#MONITORING,12,2"

Verify that "~MONITORING,12,2" is received with in a few seconds

If not, kill the connection and re-establish the connection to Host B

Below are the old phases of the project:


I have an existing Python script that originates telnet sessions to multiple hosts and logs in to each.

The script then captures certain text output and based on that output makes decisions based on if / then conditions to send what text to where.

The script relies heavily on TIMING, REGULAR EXPRESSIONS and conditional logic.

We needed the script to include a norepeat functionality such that lines flagged with a norepeat=x (where x is the number of seconds) would not repeat the output if the output was told to be sent multiple times in x seconds. This was attempted and written by another Python programmer. This introduced a further problem with output being sent too fast to the host. The programmer that was helping us abruptly quit the project so now we need someone to implement yet another flag called delay=n (where n is 1/10 of a second). So on lines that have delay=5 the host would wait one half a second to send the output and then continue.

This is an advanced PYTHON script so please only inquire if you have advanced python skills. If you are an advanced python programmer then please inquire and bid and I can share the code with you to review.

Upon completion of this first phase with delay functionality I may be looking to the same programmer to add some additional functionality as a separate project.


Below is the original project from a year ago:


We preferably want this to run on a windows 7 platform. Need a program/script to open and login telnet sessions on two hosts (different ip addresses...one host is a lighting controller and one is a shade controller). The script will interact with both telnet sessions. Based on some of the scrolling output from one of the telnet sessions, commands will be sent to either that same telnet session or the other telnet session based on matching various strings. In summary, once logged in there will be a large conditional if/then type of loop that based on certain output and conditions, various command will be issued to either one or both of the open telnet sessions.

I am open to doing something completely from scratch or using an existing telnet application (such as SecureCRT) but the problem is that I have not found any off-the-shelf telnet application that has a robust enough scripting language AND that can have one script interact between two telnet sessions.

Upon request, I can send you sample output of both sessions and what is to be expected to be sent by the script.

Beceriler: Python

Daha fazlasını gör: python script establish telnet connection, telnet persistent connection, using regular expressions, sample regular expressions, need python programmer for project, need python programmer, need a python code that does, matching strings, matching logic, looking for python programmer, looking for a python programmer, i need a python programmer, i need a programmer in python, we told two, python strings, python programmer, python programmer needed, multiple phases, modify a python, check for connection, add skills, python telnet script, project need python script, python login, session script

İşveren Hakkında:
( 3 değerlendirme ) Miami Beach, United States

Proje NO: #4456579



With my Python experience, I can do it.

%selectedBids___i_period_sub_7% gün içinde 64%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(9 Değerlendirme)

Bu iş için 3 freelancer ortalamada $165 teklif veriyor


I can do it.

in %bids___i_period_sub_35% gün içinde220%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)

Hi. Please check my pm.

in %bids___i_period_sub_35% gün içinde210%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)