Đang Thực Hiện

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

Kỹ năng: Linux, Perl, Quản trị hệ thống

Xem thêm: 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

Về Bên Thuê:
( 0 nhận xét ) Boca Raton, United States

Mã Dự Án: #1716069

Đã trao cho:

arthurpalves

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 trong 2 ngày
(6 Đánh Giá)
3.5

6 freelancer đang chào giá trung bình $110 cho công việc này

gangabass

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

$100 USD trong 2 ngày
(145 Đánh Giá)
5.9
honeypotant

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

$150 USD trong 3 ngày
(3 Đánh Giá)
3.9
dsumsky

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

$75 USD trong 2 ngày
(3 Đánh Giá)
2.9
asileika

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 trong 2 ngày
(1 Đánh Giá)
2.1
E7OxY8iD3

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

$250 USD trong 1 ngày
(0 Đánh Giá)
0.0
mslebodnik

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

$100 USD trong 4 ngày
(0 Đánh Giá)
0.0