Devam Ediyor

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.

Thanks!

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ün: telnet persistent connection, using regular expressions, sample regular expressions, need python programmer project, need python code, matching strings, matching logic, looking python programmer, need programmer python, told two, python strings, python programmer, python programmer needed, multiple phases, modify python, check connection, add skills, python telnet script, project need python script, python login, session script, program script, add login feature, windows command script, scripting python

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

Proje NO: #4456579

Seçilen:

suriyant

With my Python experience, I can do it.

5 gün içinde 64$ USD
(9 Değerlendirme)
3.8

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

hddh

I can do it.

in 5 gün içinde220$ USD
(3 Değerlendirme)
2.1
ddhnyh1

Hi. Please check my pm.

in 5 gün içinde210$ USD
(1 Değerlendirme)
2.0