CONTEXT AFFINITY IN A REMOTE SCRIPTING ENVIRONMENT
First Claim
1. A computer-implemented method for providing context affinity in a remote scripting environment, comprising:
- initiating on a local computer a remote scripting component;
determining from a dictionary if a connection pool is available;
in response to determining that the connection pool is available,determining if a connection to the remote computer is available in the connection pool;
in response to determining that the connection to the remote computer is available in the connection pool, using the connection to execute a command at the remote computer; and
receiving result data from the execution of the command.
3 Assignments
0 Petitions
Accused Products
Abstract
A global context object may be used to create context affinity between two or more commands executed at a remote computer. A local computer may access a connection pool to determine if a runspace exists for a particular context on the remote computer in which the command is to be executed. If the runspace does not exist in the connection pool, the local computer may create a runspace associated with a particular context and add the runspace to the connection pool. The local computer may receive result data of executed commands from a remote computer and store the result data for use by the global context object to create context affinity between two or more commands executed at the remote computer.
12 Citations
20 Claims
-
1. A computer-implemented method for providing context affinity in a remote scripting environment, comprising:
-
initiating on a local computer a remote scripting component; determining from a dictionary if a connection pool is available; in response to determining that the connection pool is available, determining if a connection to the remote computer is available in the connection pool; in response to determining that the connection to the remote computer is available in the connection pool, using the connection to execute a command at the remote computer; and receiving result data from the execution of the command. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer configured to provide context affinity in a remote scripting environment, comprising:
-
a processor; and a computer-readable storage medium in communication with the processor, the computer-readable storage medium comprising computer-executable instructions stored thereupon which, when executed by the processor, cause the processor to initiate a connection pool at the local computer, the connection pool comprising a plurality of connections; form the remote scripting environment between the local computer and a remote computer by using a connection of the plurality of connections; initiate a global context object at the local computer; send an instruction to the remote computer to execute a first command, wherein the instruction comprises the global context object; receive result data from the remote computer comprising a result of the execution of the first command; update the global context object to create an updated global context object; and send an instruction to the remote computer to execute a second command, wherein the instruction comprises the updated global context object. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable storage medium having computer-executable instructions stored thereupon which, when executed by a computer, cause the computer to:
-
initiate on the computer a remote scripting component configured to cause the computer to send instructions to a remote computer to execute a first command and a second command; initiate on the computer a connection pool comprising a plurality of connections, each connection maintaining a global context object, wherein at least one connection of the plurality of connections is maintained between the computer and the remote computer; add the connection pool to a dictionary; send an instruction to the remote computer to execute a first command, wherein the instruction uses the global context object; receive result data from the remote computer comprising a result of the execution of the first command; based on the results of first command, create second command using the global context object to create an updated global session object; and send an instruction to the remote computer to execute a second command, wherein the instruction comprises the updated global context object. - View Dependent Claims (18, 19, 20)
-
Specification