Jython script to Display Websphere Topology
Following Script will display attributes for each configuration item/element displayed at each “level”
def show( hier, here = 0, scope = None ) :
if here < len( hier ) :
pad, Type = here * ‘ ‘, hier[ here ];
for e in AdminConfig.list( Type, scope ).splitlines() :
name = AdminConfig.showAttribute( e, ‘name’ );
print ‘%s%s : %s ‘ % ( pad, Type, name );
if here < len( hier ) :
show( hier, here + 1, e );
show( [ ‘Cell’, ‘Node’, ‘Server’ ] );wsadmin>show( [ ‘Cell’, ‘Node’, ‘Server’ ] );
Cell : Server1_Cell
Node : Server1_Manager
Server : dmgr
Node : Server1_Node01
Server : ihs
Server : nodeagent
Server : IHS2
Server : server_member1
Server : server_member2
Leave a Reply
You must be logged in to post a comment.
Hi Sagar,
How Can I get the password?
I used my user password, but it didn’t.
Please suggest me.
Regards,
Suresh