SCRIPTING LANGUAGE EXECUTOR SERVICE FOR APPLICATIONS
First Claim
1. A method for executing a script on a plurality of virtual machines, the method comprising:
- loading, by a first process, a library configured to connect to a virtual management center and enable remote execution of a script on the plurality of virtual machines;
establishing a connection to the virtual management center based on the loaded library;
receiving, from a second process, a command request having a script and specifying at least one target virtual machine of the plurality of virtual machines on which to invoke the script;
responsive to determining an agent is available on the target virtual machine, storing the received command request associated with the target virtual machine in a command queue; and
responsive to determining an agent is not available on the target virtual machine, invoking execution of the script on the target virtual machine using the connection to the virtual management center.
4 Assignments
0 Petitions
Accused Products
Abstract
A method and system for executing scripts on virtual machines is provided. The system includes an executor service that accepts scripts, parameters, authentication information from another process that needs to invoke a script on a target virtual machine (or group of virtual machines). The executor service remains running even after a script has completed execution. The executor service accepts any number of scripts and places them in a command queue. Agents running on the target virtual machine(s) check-in with the executor service to receive scripts from the command queue. Also, the executor service may directly invoke a script using a persistent connection to a virtual machine management center.
-
Citations
18 Claims
-
1. A method for executing a script on a plurality of virtual machines, the method comprising:
-
loading, by a first process, a library configured to connect to a virtual management center and enable remote execution of a script on the plurality of virtual machines; establishing a connection to the virtual management center based on the loaded library; receiving, from a second process, a command request having a script and specifying at least one target virtual machine of the plurality of virtual machines on which to invoke the script; responsive to determining an agent is available on the target virtual machine, storing the received command request associated with the target virtual machine in a command queue; and responsive to determining an agent is not available on the target virtual machine, invoking execution of the script on the target virtual machine using the connection to the virtual management center. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for executing scripts on a plurality of virtual machines, comprising:
-
one or more computer processors; and a memory containing a program which, when executed by the one or more computer processors, is configured to perform an operation comprising; loading, by a first process executing in the computer processor, a library configured to connect to a virtual management center and enable remote execution of a script on the plurality of virtual machines; establishing a connection to the virtual management center based on the loaded library; receiving, from a second process executing in the computer processor, a command request having a script and specifying at least one target virtual machine of the plurality of virtual machines on which to invoke the script; responsive to determining an agent is available on the target virtual machine, storing the received command request associated with the target virtual machine in a command queue; and responsive to determining an agent is not available on the target virtual machine, invoking execution of the script on the target virtual machine using the connection to the virtual management center. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code comprising:
-
computer-readable program code configured to load, by a first process, a library configured to connect to a virtual management center and enable remote execution of a script on a plurality of virtual machines; computer-readable program code configured to establish a connection to the virtual management center based on the loaded library; computer-readable program code configured to receive, from a second process, a command request having a script and specifying at least one target virtual machine of the plurality of virtual machines on which to invoke the script; computer-readable program code configured to, responsive to determining an agent is available on the target virtual machine, store the received command request associated with the target virtual machine in a command queue; and computer-readable program code configured to, responsive to determining an agent is not available on the target virtual machine, invoke execution of the script on the target virtual machine using the connection to the virtual management center. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification