Create a curl script to check servers responses

Închis Postat la acum 3 ani S-au achitat serviciile după ce au fost prestate
Închis S-au achitat serviciile după ce au fost prestate

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"

XML PHP Shell Script Arhitectură software Linux

ID Proiect: #27941443

Detalii despre proiect

11 propuneri Proiect la distanță Activ acum 3 ani

11 freelanceri plasează o ofertă medie de 30€ pentru proiect

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 în 1 zi
(503 recenzii)
7.5
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 Mai multe

€45 EUR în 7 zile
(91 recenzii)
7.0
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 în 1 zi
(71 recenzii)
5.7
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 în 1 zi
(51 recenzii)
5.8
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 în 2 zile
(20 recenzii)
5.1
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 în 2 zile
(7 recenzii)
3.6
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 în 1 zi
(8 recenzii)
2.9
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 în 2 zile
(0 recenzii)
0.0