def printHelp(self): self.printUsage() print "" print "Used to stop a member server." print MBeanArgs.printHelp(self) print "Example: jython stopServer.py --serverName=member1 --serverHost=localhost --serverUsrdir=/wlp/usr --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2 --options=[\"--clean --include=someValue\"]"
def printHelp(self): self.printUsage() print "" print "Used to list the names of the clusters known to the collective controller." print MBeanArgs.printHelp(self) print "Example: jython listClusterNames.py --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2"
def printHelp(self): self.printUsage() print "" print "Used to list the members in the cluster specified by the clusterName" print "parameter." print MBeanArgs.printHelp(self) print "Example: jython listClusterMembers.py clusterName --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2"
def printHelp(self): self.printUsage() print "" print "Generate plugin for all the started members of the cluster" print "parameter." print MBeanArgs.printHelp(self) print "Example: jython genClusterPlugin.py clusterName --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2"
def printHelp(self): self.printUsage() print "" print "Used to deploy a set of member servers from a zip file." print "The script will push the zip to the specified installHost, extract the" print "member servers and start them." print MBeanArgs.printHelp(self) print print "Example: jython deployMembers.py --zipFile=/home/user/wlp.zip --installDir=/opt/ --installHost=targetHostName --rpcUser=Administrator --rpcUserPassword=secret --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=controllerHostName --port=9443 --user=admin --password=secret2"
def printHelp(self): self.printUsage() print "" print "Used to transfer an application to a static cluster manged by a collective" print "controller. The collective controller is also referred to as the" print "\"routing server\" in some messages." print print "This action will push the application file to all cluster members" print "Ensure that the remote application members directories are" print "configured to be writable by the filetransfer operations." print " <remoteFileAccess>" print " <writeDir>${server.config.dir}</writeDir>" print " </remoteFileAccess>" print MBeanArgs.printHelp(self) print print "Example: jython transferAppToCluster.py /home/user/apps/myApplication.war -clusterName=cluster1 --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2 "
def printHelp(self): self.printUsage() print "" print "Used to transfer a server.xml to a static cluster managed by a collective" print "controller. The collective controller is also referred to as the" print "\"routing server\" in some messages." print print "This action will push the server.xml file to all cluster members" print "Ensure that the remote members directories are" print "configured to be writable by the filetransfer operations." print " <remoteFileAccess>" print " <writeDir>${server.config.dir}</writeDir>" print " </remoteFileAccess>" print MBeanArgs.printHelp(self) print print "Example: jython transferConfigToCluster.py path/to/server.xml --clusterName=cluster1 --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2 "
def printHelp(self): self.printUsage() print "" print "Used to transfer an application to a member server manged by a collective" print "controller. The collective controller is also referred to as the" print "\"routing server\" in some messages." print print "This action will push the application file to the member server" print "Ensure that the remote application directory is " print "configured to be writable by the filetransfer operations. e.g." print " <remoteFileAccess>" print " <writeDir>${server.config.dir}/</writeDir>" print " </remoteFileAccess>" print MBeanArgs.printHelp(self) print print "Example: jython transferAppToServer.py path/to/app --serverName=member1 --serverHost=localhost --serverUsrdir=/wlp/usr --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2"
def printHelp(self): self.printUsage() print "" print "Used to modify the configuration (server.xml) for a server manged by the" print "collective controller. The collective controller is also referred to as the " print "\"routing server\" in some messages. The operation can be \"get\" or \"put\":" print print "get - Obtain the server.xml and store it into the directory specified" print self.printHelpPad("get -") + "by " + LOCAL_DIR print print "put - Update the server.xml on the server with the copy obtained from" print self.printHelpPad( "put -") + "the directory specified by " + LOCAL_DIR print "This action will push the server.xml file to the server" print "Ensure that the remote server directory is" print "configured to be writable by the filetransfer operations. e.g." print " <remoteFileAccess>" print " <writeDir>${server.config.dir}/</writeDir>" print " </remoteFileAccess>" print MBeanArgs.printHelp(self) print print "Example: jython updateServerConfig.py get --serverName=server1 --serverHost=localhost --serverUsrdir=/wlp/usr --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2 --localDir=/tmp/liberty/config/defaultServer"
def printHelp(self): self.printUsage() print "" print "Used to install or uninstall an application in a member server." print "This action will push the file to member server, and modify" print "the server.xml of member server to include the application" print "configuration. Ensure that the remote application directory is" print "configured to be writable by the filetransfer operations." print " <remoteFileAccess>" print " <writeDir>${server.config.dir}</writeDir>" print " </remoteFileAccess>" print print "Actions:" print print INSTALL + " The path in the local file system to the application" print self.printHelpPad(INSTALL) + "to be installed within the server" print print UNINSTALL + " The name of the application to uninstall from the server" print MBeanArgs.printHelp(self) print print "Install example: jython manageAppOnServer.py --install=/home/user/apps/myApplication.war --serverName=member1 --serverHost=localhost --serverUsrdir=/wlp/usr --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2" print print "Uninstall example: jython manageAppOnServer.py --uninstall=myApplication.war --serverName=member1 --serverHost=localhost --serverUsrdir=/wlp/usr --truststore=/wlp/usr/servers/<servername>/resources/security/trust.jks --truststorePassword=secret --host=localhost --port=9443 --user=Administrator --password=secret2"