Encerrado

Create a curl script to check servers responses

Hi,

I need you create for me curl script that check the responses from the servers and filter them

So let me clarify it !

We have 40 differents servers listed on the server configuration file "[login to view URL]"

Each server on this list is identified by an "ID" ( un number ex : "4500" ) and an URL

What we need is to check if all the 40 servers are available and working so we will send an CURL request and see the response

We know how to do that, but the problem is that we have 40 server so every time we need to execute the CURL x 40 times !

This is the CURL :

curl -X POST -H 'Content-type:text/xml' -d @[login to view URL] https://localhost/script/

As you can see the CURL containt a XML content, we have an xml content for each server with the server ID number '[login to view URL]'

So the script will execute the same CURL request by changing the xml file name we will provide you a text file with all the 40 servers xml files everyone on a line

And the response is :

<SOAP-ENV:Envelope xmlns:SOAP-ENV="[login to view URL]">

<SOAP-ENV:Header/>

<SOAP-ENV:Body>

<ns2:Reponse xmlns:ns2="[login to view URL]">

<ns2:accord>true</ns2:accord>

<ns2:StatusEnrolement>KO</ns2:StatusEnrolement>

<ns2:Reference>22232323323</ns2:Reference>

<ns2:AcsTransId>2222222222</ns2:AcsTransId>

<ns2:ScadIdTrans>F8E90082112590</ns2:ScadIdTrans>

<ns2:ChoixAuthent>STRONG</ns2:ChoixAuthent>

<ns2:NiveauAuthent>32</ns2:NiveauAuthent>

<ns2:Retour>

<ns2:CodeMessage>03</ns2:CodeMessage>

<ns2:LibelleMessage>Téléphone OK- Mail OK</ns2:LibelleMessage>

<ns2:RetourMetier><![CDATA[<MESSAGE>

<LDISPOSITIF IDNISE="01">

<NUTELF ADRRTC="0120202020" CDPORT="O" />

<ADEMAF ADREMA="email [login to view URL]" />

</LDISPOSITIF>

<PARTENAIRESCAD IDPIVOT="F50032065474648 " />

</MESSAGE>]]></ns2:RetourMetier>

</ns2:Retour>

</ns2:Reponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Note :

When the server is working good :

<ns2:accord>true</ns2:accord>

When something wrong :

<ns2:accord>false</ns2:accord>

The result that we want is :

The script check all the 40 servers responses and show us the result on a table format :

Server ID | Server Name | Server HTTP code Statut | Server Accord response (true or false) |

.

.

.

in the end it give us the total of "true" and total of "false"

Habilidades: XML, PHP, Shell Script, Arquitetura de software, Linux

Veja mais: centos create startup script, php script check confirm passwords, create logon script server 2003 sets background, reciprocal script check, php script check cpu usage, php file upload script check file size, create database script, simple script check server, awstats logresolvemergepl script multiple servers, bash script check web page, script check sendmail, xtremetop100 voting script check, script check link megavideo, create curl script proxy log, check servers online script, curl script check, create curl script, php curl script check email

Acerca do Empregador:
( 0 comentários ) vias, France

ID do Projeto: #27941443

13 freelancers estão ofertando em média €30 nesse trabalho

kaloyan13

I can automate the checking of server statuses, using the XML and a bash script. Will finish the task in 1-2 hours time.

€20 EUR em 1 dia
(392 Comentários)
7.2
batasoy

Hi! Basically, there are 3 ways to achieve that..It takes huge time if you run CURL consecutively; thats not how it should be done. I can at least speed up the process 4x times. And also display server availability i Mais

€45 EUR in 7 dias
(72 Comentários)
6.5
VarunUnix

Hello, I can write a shell scrip to achieve this requirement. I can make the output in table or html format. Thanks

€34 EUR em 1 dia
(61 Comentários)
5.5
nvbishr

hi, I can write php code with curl to do the 40 servers check and save result to a file, please contact

€45 EUR em 1 dia
(49 Comentários)
5.7
(34 Comentários)
4.9
AntonioTejeda86

Hello, I can help you developing the script you want, I have more than 10 years of experience, contact me in order to start with it. REGARDS

€35 EUR em 1 dia
(5 Comentários)
4.1
JVMHost

Hi, I will write the loop for you with neat table report. Please send me a zip with [login to view URL] + a few [login to view URL] so that I could test before dfelivery. Thank you for taking me into consideration.

€19 EUR em 1 dia
(19 Comentários)
3.9
Leoflance

I can create a Python script for you which will do all the job. Bash is OK too, but Python is more flexible. What is your OS? Do you have Python preinstalled? Regards, Leo

€30 EUR in 2 dias
(7 Comentários)
4.0
vpnshogun

Hello there, what about singlerun with multicurl? I think it will be much faster than 40 curl instances one after another? If you are interested contact me, for more details. Cheers,

€24 EUR in 3 dias
(3 Comentários)
3.8
gihanranganamr

Hello there, I can help you to take your 40 serves status report by writing a Shell Script. Feel free to contact me. Regards, Gihan.

€22 EUR in 2 dias
(7 Comentários)
3.7
iswaradrmwn

Hi I've read your reqs, and I can help you create those scripts to curl those 40 servers and give the results as requested. PM me and lets discuss about this

€25 EUR em 1 dia
(6 Comentários)
2.5
acislak

Hi, I have 6 years programming expierience in [login to view URL] write You a script for only 15E. Best regards

€15 EUR in 3 dias
(1 Comentário)
0.0
dnseu

I can write such a script in bash and I can be trusted with this task. I'm familiar with regex and shell scripting. Let's do it.

€20 EUR in 2 dias
(0 Comentários)
0.0