Consulta de estados de clústeres mediante scripts

Puede consultar los estados de clúster utilizando la herramienta wsadmin y scripts.

Antes de empezar

Antes de iniciar esta tarea, la herramienta wsadmin debe estar ejecutándose. Consulte el tema sobre cómo iniciar el cliente de scripts wsadmin mediante scripts wsadmin para obtener más información.

Acerca de esta tarea

Realice los pasos siguientes para consultar el estado de clúster:

Procedimiento

  1. Identifique el MBean Cluster y asígnelo a la variable cluster.
    • Utilizando Jacl:
      set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1,*]
    • Utilizando Jython:
      cluster = AdminControl.completeObjectName('cell=mycell,type=Cluster,name=cluster1,*')
      print cluster
    Este mandato devuelve el MBean Cluster.
    Salida de ejemplo:
    WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1
  2. Consulte el estado del clúster.
    • Utilizando Jacl:
      $AdminControl getAttribute $cluster state
    • Utilizando Jython:
      AdminControl.getAttribute(cluster, 'state')
    Este mandato devuelve el valor del atributo de estado de tiempo de ejecución.

Icon that indicates the type of topic Task topic



Timestamp icon Last updated: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_clusterstate
File name: txml_clusterstate.html