Script permettant de lister les ihs supervisées ou monitorées.

Execution du script.
was8@arecibo:/home/was8$  /apps/WebSphere/profiles8/dmgr/bin/wsadmin.sh -lang jython -f /apps/tmpInstall/WASManager/src/JYTHON/list_ihs_migration.py
WASX7209I: Connected to process "dmgr" on node areciboManager using SOAP connector;  The type of process is: DeploymentManager
NOM_SERVEUR= http-arvdev01 :
was8@arecibo:/home/was8$
Visualisation du script jython.
#=============================
# Version  1.1 
# Created by : TURLAN Franck
# Society : ARECIBO
# Email : franckturlan@yahoo.com
#=============================== 


lineSeparator = java.lang.System.getProperty('line.separator')
TABLEAU_IHS = AdminTask.listServers(["-serverType WEB_SERVER "]).split(lineSeparator)
for IHS in TABLEAU_IHS:
        NomIHS = AdminConfig.showAttribute(IHS, "name")
        print 'NOM_SERVEUR=',NomIHS,':'