remove / add host to LVS perl scrip

I need a perl script that will look at the IP address of the local machine and then execute command(s) on a _remote host_ that has a shared SSH key and verify that the commands executed successfully before the script continues.

1. Get Localhost IP address (ie. [url removed, login to view])

2. Via SSH Remove host from LVS Pool (lvs pool should be a variable ie. [url removed, login to view])

a. ipvsadm -e -t [url removed, login to view] -r [url removed, login to view] -w 0 (if the command executed successfully then wait 5 minutes)

3. On Localhost stop tomcat, if tomcat does not stop gracefully kill tomcat

4. Verify no Java or Tomcat processes are running

5. Start tomcat

6. Via SSH Add host to LVS Pool (lvs pool is [url removed, login to view])

a. ipvsadm -e -t [url removed, login to view] -r [url removed, login to view] -w 1

Taidot: Linux, Perl, Järjestelmänvalvoja

Näytä lisää: shared variable, pool host, perl get, java get ip address, Remove, host, remove script, add address, add key, wait system, admin perl, java command, java ssh, perl admin, perl java, execute ssh, perl system admin, perl timeout unreachable host, add facebook need friends, stop wait, java add, script kill perl processes, pool java, execute ssh commands, tomcat host

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

Projektin tunnus: #1716069

Myönnetty käyttäjälle:


Good evening, I'm a Unix SysAdmin and PERL Developer. I can do what you need, very quickly. More details in your PMB.

65 $ USD 2 päivässä
(6 arvostelua)

6 freelancers are bidding on average $110 for this job


I can do this for you. See PM for details.

100 $ USD 2 päivässä
(145 arvostelua)

Hi. I am Linux expert. I have 7 year's experience in Linux. Thanks.

150 $ USD 3 päivässä
(3 arvostelua)

Hello, I have more than 5 years of professional Linux/UNIX administration experience, including bash and perl scripting. Please check my PM.

75 $ USD 2 päivässä
(3 arvostelua)

Hi, I'm expirienced linux administrator and worked with LVS, Perl and other tools before, so I'm sure i can complete this task.

70 $ USD 2 päivässä
(1 arvostelu)

Custom software development - <b><i>Removed by Admin</i></b>

250 $ USD 1 päivässä
(0 arvostelua)

Hi, i guess shell script would be better on in this scenario.

100 $ USD 4 päivässä
(0 arvostelua)