wsadmin script to print namespace

You can dump namespace of a managed process i.e. either DMGR, NodeAgent or Server using dumpNamespace tool. Other option is to use the following wsadmin script

def printNameSpace(processname):
print "Printing name space for " + processname
nameserver =AdminControl.queryNames("*:*,type=NameServer,process="+porcessname)
print AdminControl.invoke(nameserver,"dumpServerNameSpace",'["-report long"]')


The printNameSpace command takes name of the process as argument and generates dump which is same as the output of the dumpNameSpace for that process

No comments: