Auki

shell script to take inputs and run some test and do some health checking

Need a shell script which should run on Linux

The command step I should run is

All the values mentioned below are totally and example base

[ ./[login to view URL] dev-acs-test-blue 26.1.0+2019-06-10-232918 ]

First is the environment and second is version number

(this is just an example input to the shell values will be different each time)

Here the shell script in linux should pick the value “dev-acs-test-blue” and the version “26.1.0+2019-06-10-232918” as the input

And do steps 
step1:

Inputparamter= dev-acs-test-blue

inputversion= 26.1.0+2019-06-10-232918

instance_id= $(aws autoscaling describe-auto-scaling-groups --auto-scaling-group-name $Inputparamter --query 'AutoScalingGroups[*].Instances[*].[InstanceId]' --output text)

FROM THE ABOVE COMMAND WE MAY GET MULTIPLE OUTPUTS, THIS OUTPUTS ARE AWS INSTANCES ID, SO THIS ID HAVE TO RETRIVE PRIVATE IP address

private__ip = $(aws ec2 describe-instances --instance-id $instance_id --query 'Reservations[*].Instances[*].[PrivateIpAddress]' --output text)

THE PRIVATE IP OUT IS DERIVED


WE NEED TO DO TEST NOW

check1= curl 'http://'$private__ip':80/health' | jq '.status' | tr -d '"'

check2= curl 'http://'$private__ip':80/health' | jq '.version'| tr -d '"'

wait until ( check1 == “OK” && check2 == “$inputversion” )

(HERE IT HAS TO SLEEP TILL THE OUTPUTS ARE RIGHT)

(IF THE OUT PUT IS SUCCESS, WE HAVE TO START THE LOOP AGAIN AT THE INSTANCES_ID and pick the second ID)

(THIS LOOP HAS TO BE DONE TILL ALL THE INSTANCE ARE READ AND TESTED AND SUCCESSFULLY )

If all the instances are read, it will exit successfully

The end of the code, we are checking for the health of all the instances with specific parameter

Taidot: Shell Script, Linux

Näytä lisää: check system health using unix shell script, will shell script run, run shell script remote machine, linux run perl script shell script, script example run postal smtp test, shell script checking telephone numbers, centos run shell script, shell script condition checking url, checking url availability shell script, os run shell script remotely, rbl checking shell script, run ruby script unix shell script, run shell script automation fails, run shell script whm, pam run shell script, run multiple django server shell script, shell script help monitor health passwd file, run custom shell script

Tietoa työnantajasta:
( 0 arvostelua ) cary, United States

Projektin tunnus: #20740462

13 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

bindmission

Hello Hope you are doing well. I have 7 years of experience in Linux and shell scripting. I can handle this project. Regards VishnuLal*

$30 USD 1 päivässä
(102 arvostelua)
6.0
AhmadSameer

Hey there, I'm a Systems Engineer with coding skills. I have been working with Linux/Unix-systems for years. I had developed tons of Shell scripts. I can help. Regards.

$30 USD 7 päivässä
(37 arvostelua)
5.2
VarunUnix

Hi, I can create a shell script for the above requirement. I just want to confirm if the commands listed in the project description are correct. If those are the steps then its easy to wrap into a shell script. Thank Lisää

$30 USD 2 päivässä
(38 arvostelua)
5.1
$30 USD 1 päivässä
(30 arvostelua)
4.7
goodwork20k

I am good in shell scripting along with automation and development stuff, please let me know if you are good to award this project to me

$30 USD 4 päivässä
(11 arvostelua)
4.3
smartweb4

Hello, I am a senior linux administrator and I have written hundreds of bash scripts. I can help you write the script you need to launch instances and check every instance is up and running. Contact me by chat for fu Lisää

$30 USD 7 päivässä
(1 arvostelu)
2.5
goldenor

Hey, I can help you get your script, I'm a linux Administrator and I have developpe a lot of scripts (automation tools).. Best regards Mouad OURGH

$20 USD 1 päivässä
(2 arvostelua)
1.5
sinuousinfixy

Hi, My name is sachin and i am a system administrator with over 7 years of hands on experience. Along with System Administration and automation expect i am a EC-Council Certified Ethical Hacker CEH and i am aware of a Lisää

$40 USD 1 päivässä
(1 arvostelu)
0.6
harishkr55

I can work for you with respect to this script also can suggest you some ideas for other scripting as well. Here if you can do the ad and DNS mapping then without ip grasp also you can do this . Again as per your requi Lisää

$25 USD 1 päivässä
(0 arvostelua)
0.0
$25 USD 2 päivässä
(0 arvostelua)
0.0
salesvft

We HAVE THE SCRIPT ready. Please check the output below. We may modify the script to meet your requirement if we have mis-understood any part of your requirement. If all is well then please award the project so that we Lisää

$30 USD 1 päivässä
(0 arvostelua)
0.0
arunkpkkd

I am working as devops engineer in a multinational company in india. i have 10 years of experience in IT. My suggestion is we need a threshold for checking ok status here.. if any of the instance goes wrong the script Lisää

$20 USD 3 päivässä
(0 arvostelua)
0.0
ruconse

Linux vendor engineer,10+ yrs related experience, I built shell script for aws vm auto deployment, backup and restoration, so I can help you : )

$30 USD 4 päivässä
(0 arvostelua)
0.0