Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Scripting for batch applications > Scripting batch applications
removePGC.py
We can use the removePGC.py Jython script to remove the common batch container from your deployment target. The removePGC.py script is provided with the product. The removePGC.py script removes the common batch container from your deployment target or removes it when your deployment target is the only target.
Location
At installation, removePGC.py is copied onto the installation target machines in the <install_root>/bin directory.
Usage
To run removePGC.py script with the wsadmin utility, use this command:
wsadmin -lang jython -f removePGC.py <option>You might have to modify the wsadmin command to wsadmin.sh or wsadmin.bat, depending on your operating system environment.
To see a list of all available operations, use the following command:
wsadmin -lang jython -f removePGC.py --help
Operations
- - list
Lists the targets that have the common batch container.
Example
Use following command to list the targets which have the common batch container:
wsadmin -lang jython -f removePGC.py --listFor example:>> wsadmin -lang jython -f removePGC.py --list INFO: Grid Execution Environment was found on following targets: cell=myCell,cluster=Endpoint1 cell=myCell,cluster=Endpoint2 cell=myCell,node=node1,server=server1
Grid endpoints
Administer the batch environment