mercredi 6 octobre 2010

java : weblogic script commandes via API console

Voici un résumé des commandes weblogic (lorsque l'on fonctionne en mode managé et que le serveur d'administration serveurAdmin est lancé)


java weblogic.Admin -url monNomDeServeur:11131 -username weblogic -password secret ALL


Voici, un Arret forcé sans attente des déconnexion des users (par opposition au gracefull shutdown)

java weblogic.Admin -url monNomDeServeur:11131 -username weblogic -password secret FORCESHUTDOWN valo


Voici le lancement d'une commande START à un serveur "serveurAdmin" pour démarrer un serveur nommé "monNomDeServeur"

java weblogic.Admin -url monNomDeServeur:11131 -username weblogic -password secret START valo



Une autre méthode qui passe par le node manager,et est parfois utilisée mais ne fonctionne pas bien

java -Dweblogic.Name=bocorchestre -Dweblogic.management.server.url=cronos:11131 weblogic.Server >/var/TRACES/wlsbod3/bocorchestre.log &




Usage: java [] weblogic.Admin
[ [-url | -adminurl] [://]:]
-username [-password ]



Where commands and arguments are:

********** Managing the Server Life Cycle **********

UNLOCK
RESUME []
FORCESHUTDOWN []
SHUTDOWN [-ignoreExistingSessions] [-timeout ] []
OR
(Deprecated) SHUTDOWN [ [""]] []
LOCK [""]
START
(Deprecated) STARTINSTANDBY
DISCOVERMANAGEDSERVER [-serverName [-listenPort ] [-listenAddress ] [-listenPortSecure]]

********** Retrieving Information about WebLogic Server **********

GETSTATE []
HELP []
CONNECT []
LICENSES
LIST []
PING [] []
THREAD_DUMP
VERSION
SERVERLOG [ []]

********** Working with JDBC Connection Pools **********

SUSPEND_POOL -poolName
(Deprecated) DISABLE_POOL -poolName [true | false]
RESET_POOL -poolName
CREATE_POOL
(Deprecated) DESTROY_POOL [true | false]
SHUTDOWN_POOL -poolName
RESUME_POOL -poolName
TEST_POOL -poolName
EXISTS_POOL -poolName
(Deprecated) ENABLE_POOL -poolName
DELETE_POOL -poolName

********** Managing WebLogic Server MBeans **********

GET [-pretty] {-type |-mbean } [-property ]...
CREATE {-name -type } | {-mbean }
INVOKE {-type |-mbean }
-method [...]
BATCHUPDATE -batchFile [-continueOnError] [-batchCmdVerbose]
DELETE {-type | -mbean }
QUERY [-pretty] -pattern
SET {-type |-mbean } [-property []]...

********** Working with Clusters **********

VALIDATECLUSTERCONFIG -configPath
CLUSTERSTATE -clusterName
STOPCLUSTER -clusterName
MIGRATE [-jta] -migratabletarget { | } -destination [-sourcedown] [-destinationdown]
STARTCLUSTER -clusterName

********** Managing the Admin Configuration **********

STOREUSERCONFIG -username -password [-userconfigfile ] [-userkeyfile ]**************** SSL Trust Options **************** If the domain-wide administration port is enabled, or if you are connecting to a server through some other SSL port, you might need to include Java options to indicate which host the weblogic.Admin utility trusts. For example, if the server to which you are connecting is using the demonstration SSL keys and certificates, you must include the TrustKeyStore option as follows: java -Dweblogic.security.TrustKeyStore=DemoTrust weblogic.Admin [<...>] For more information, refer to the WebLogic Server security documentation.

Aucun commentaire:

Enregistrer un commentaire