Jump to: navigation, search

Creating Virtual IP control scripts (Windows)

Start

  1. On the primary VM Server, create a batch file that is named SC_VIP_UP.BAT, and enter the following commands into the file:

          [+] Commands for SC_VIP_UP.BAT

  1. In the batch file, replace the variables indicated by angle brackets with appropriate values.
  2. On the primary VM Server, create a batch file that is named SC_VIP_DOWN.BAT, and enter the following commands into the file:

          [+] Commands for SC_VIP_DOWN.BAT


  1. In the batch file, replace the variables indicated by angle brackets with appropriate values.
  2. Add the SC_VIP_DOWN script as a task in Task Scheduler and schedule it to execute when the system starts. This disables the VIP by default when the system starts and according to the mode (Primary/Backup) of the application, the VIP will be enabled or disabled by the alarm reaction scripts.
  3. Copy the MLCMD utility files (mlcmd.exe and mlcmd.exe.manifest files) that are installed with SCS onto the VM Server.
  4. On the primary VM Server, create an accessory script that is named Ping.vbs, and enter the following commands into the script:

          [+] Commands for Ping.vbs

  1. On the primary VM Server, create an accessory script that is named Check_ip.vbs, and enter the following commands into the script:

          [+] Commands for Check_ip.vbs

  1. Place the accessory scripts Ping.vbs and Check_ip.vbs in the same directory as the SC_VIP_UP.BAT and SC_VIP_DOWN.BAT files.
  2. Repeat the steps in this procedure to create the scripts on the backup VM Server.

End

Next Steps

Testing control scripts OR Back to Task Table

This page was last edited on July 17, 2020, at 16:05.
Comments or questions about this documentation? Contact us for support!