remove / add host to LVS perl scrip
Ngân sách $30-250 USD
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
Được trao cho:
Good evening, I'm a Unix SysAdmin and PERL Developer. I can do what you need, very quickly. More details in your PMB.
6 freelancer đang chào giá trung bình $110 cho công việc này
Hello, I have more than 5 years of professional Linux/UNIX administration experience, including bash and perl scripting. Please check my PM.
Hi, I'm expirienced linux administrator and worked with LVS, Perl and other tools before, so I'm sure i can complete this task.