dumpNameSpace.sh
Overview
Use dumpNameSpace.sh to dump the contents of a name space.
The dumpNameSpace.sh tool cannot dump name spaces local to the server process, such as those with java: and local: URL schemes, which contain references to enterprise beans with local interfaces. For that, use wsadmin.sh.
Syntax
dumpNameSpace.sh [[-keyword value]...]
Parameters
-host myhost.amsterdam.setgetweb.com
Host containing the name space you want to dump. Default is localhost.
-port nnn
Bootstrap port. Default is 2809.
-root {cell | server | node | host | legacy | tree | default}
Root context to use as the initial context for the dump. The applicable root options and default root context depend on the type of name server from which the dump is being obtained. This information is provided in the following tables.
cell Start at the cell root context. Default. server Start at the server root context. node Start at the node root context. (Synonymous with host.) legacy Start at the legacy root context. host Start at the bootstrap host root context. (Synonymous with node.) tree Start at the tree root context. default Start at the initial context which JNDI returns by default for that server type. This is the only -root choice that is compatible with with non-WAS name servers.
-url some provider URL
Value for the java.naming.provider.url property used to get the initial JNDI context. This option can be used in place of the -host, -port, and -root options. If the -url option is specified, the -host, -port, and -root options are ignored.
-factory com.ibm.websphere.naming.WsnInitialContextFactory
Initial context factory to be used to get the JNDI initial context. The value defaults to: com.ibm.websphere.naming.WsnInitialContextFactory The default value generally does not need to be changed.
-startAt some/subcontext/in/the/tree
The path from the bootstrap host's root context to the top level context where the dump should begin. The utility recursively dumps subcontexts below this point. It defaults to an empty string, that is, the bootstrap host root context.
-format{jndi | ins}
Option Description jndi The default. Displays name components as atomic strings. ins Shows name components parsed per INS rules (id.kind).
-report {short | long}
Option Description short The default. Dumps the binding name and bound object type. This output is also provided by JNDI Context.list(). long Dumps the binding name, bound object type, local object type, and string representation of the local object (that is, the IORs, string values, and other values that are printed). For objects of user-defined classes to display correctly with the long report option, it may be necessary to add their containing directories to the list of directories searched. Set the environment variable WAS_USER_DIRS. The value can include one or more directories, as for example...
WAS_USER_DIRS=/usr/classdir1:/usr/classdir2 export WAS_USER_DIRSAll zip, jar, and class files in the specified directories can then be resolved by the class loader when running dumpNameSpace.
-traceString "some.package.name.to.trace.*=all=enabled"
Represents the trace string with the same format as that generated by the servers. The output is sent to the file, DumpNameSpaceTrace.out.
By default, an "UNAUTHENTICATED" credential is used that is equivalent to the "Everyone" access authorization policy. You can modify this default setting by changing the value for the...
com.ibm.CSI.performClientAuthenticationRequired....property to true in...$WAS_HOME/properties/sas.client.propsWhen you change this property to true, rerun dumpNameSpace.sh, and cancel the login prompt, the authorization fails and the command will not continue outbound.
To access programmatically, use com.ibm.websphere.naming.DumpNameSpace. For example...
{ ... import javax.naming.Context; import javax.naming.InitialContext; import com.ibm.websphere.naming.DumpNameSpace; ... java.io.PrintStream filePrintStream = ... Context ctx = new InitialContext(); // Starting context for dump ctx = (Context) ctx.lookup("cell/nodes/node/servers/server"); DumpNameSpace dumpUtil = new DumpNameSpace(filePrintStream, DumpNameSpace.SHORT); dumpUtil.generateDump(ctx); ... }
Sample Output
bash-2.03$ dumpNameSpace.sh -report long | tee /tmp/dumpNameSpace.txt Getting the initial context Getting the starting context Realm/Cell Name: bopdc01.company.net:389 User Identity: User Password: ============================================================================== Name Space Dump Provider URL: corbaloc:iiop:localhost:2809 Context factory: com.ibm.websphere.naming.WsnInitialContextFactory Requested root context: cell Starting context: (top)=serverNetwork Formatting rules: jndi Time of dump: Sat Jul 10 17:43:41 CDT 2004 ============================================================================== ============================================================================== Beginning of Name Space Dump ============================================================================== 1 (top) 1 Bound Java type: 1 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 1 Corba binding type: org.omg.CosNaming.BindingType.ncontext 1 Context unique ID: serverNetwork 1 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 2 (top)/nodes 2 Bound Java type: javax.naming.Context 2 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 2 Corba binding type: org.omg.CosNaming.BindingType.ncontext 2 Context unique ID: serverNetwork/nodes 2 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes) 3 (top)/nodes/server2 3 Bound Java type: javax.naming.Context 3 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 3 Corba binding type: org.omg.CosNaming.BindingType.ncontext 3 Context unique ID: serverNetwork/nodes/server2 3 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server2) 4 (top)/nodes/server2/servers 4 Bound Java type: javax.naming.Context 4 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 4 Corba binding type: org.omg.CosNaming.BindingType.ncontext 4 Context unique ID: serverNetwork/nodes/server2/servers 4 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server2/servers) 5 (top)/nodes/server2/servers/nodeagent 5 Linked to URL: corbaloc::server2:2809/NameServiceServerRoot 5 Bound Java type: javax.naming.Context 5 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 5 Corba binding type: org.omg.CosNaming.BindingType.ncontext 5 Context unique ID: serverNetwork/nodes/server2/servers/nodeagent 5 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server2/servers/nodeagent) 6 (top)/nodes/server2/servers/server2A 6 Linked to URL: corbaloc::server2:9815/NameServiceServerRoot 6 Bound Java type: javax.naming.Context 6 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 6 Corba binding type: org.omg.CosNaming.BindingType.ncontext 6 Context unique ID: serverNetwork/clusters/cluster1 6 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster1) 7 (top)/nodes/server2/servers/template_server2_ajax 7 ERROR: Cannot resolve URL "corbaloc::server2:9814/NameServiceServerRoot" for binding "null" 7 Bound Java type: javax.naming.Context 7 Local Java type: NULL 7 String representation: 8 (top)/nodes/server2/servers/server2B 8 Linked to URL: corbaloc::server2:9816/NameServiceServerRoot 8 Bound Java type: javax.naming.Context 8 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 8 Corba binding type: org.omg.CosNaming.BindingType.ncontext 8 Context unique ID: serverNetwork/clusters/cluster3 8 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster3) 9 (top)/nodes/server2/servers/server2C 9 Linked to URL: corbaloc::server2:9817/NameServiceServerRoot 9 Bound Java type: javax.naming.Context 9 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 9 Corba binding type: org.omg.CosNaming.BindingType.ncontext 9 Context unique ID: serverNetwork/clusters/cluster4 9 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster4) 10 (top)/nodes/server2/persistent 10 Linked to URL: corbaname::server2:2809/NameServiceNodeRoot#persistent 10 Bound Java type: javax.naming.Context 10 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 10 Corba binding type: org.omg.CosNaming.BindingType.ncontext 10 Context unique ID: serverNetwork/nodes/server2/persistent 10 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server2/persistent) 11 (top)/nodes/server2/nodeAgent 11 Linked to URL: corbaloc::server2:2809/NameServiceServerRoot 11 Bound Java type: javax.naming.Context 11 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 11 Corba binding type: org.omg.CosNaming.BindingType.ncontext 11 Context unique ID: serverNetwork/nodes/server2/servers/nodeagent 11 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server2/servers/nodeagent) 12 (top)/nodes/server2/domain" 12 Linked to context: serverNetwork 12 Bound Java type: javax.naming.Context 12 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 12 Corba binding type: org.omg.CosNaming.BindingType.ncontext 12 Context unique ID: serverNetwork 12 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 13 (top)/nodes/server2/cell" 13 Linked to context: serverNetwork 13 Bound Java type: javax.naming.Context 13 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 13 Corba binding type: org.omg.CosNaming.BindingType.ncontext 13 Context unique ID: serverNetwork 13 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 14 (top)/nodes/server2/node" 14 Linked to context: serverNetwork/nodes/server2 14 Bound Java type: javax.naming.Context 14 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 14 Corba binding type: org.omg.CosNaming.BindingType.ncontext 14 Context unique ID: serverNetwork/nodes/server2 14 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server2) 15 (top)/nodes/server2/nodename 15 Bound Java type: java.lang.String 15 Local Java type: java.lang.String 15 Corba binding type: org.omg.CosNaming.BindingType.nobject 15 String representation: server2 16 (top)/nodes/serverManager 16 Bound Java type: javax.naming.Context 16 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 16 Corba binding type: org.omg.CosNaming.BindingType.ncontext 16 Context unique ID: serverNetwork/nodes/serverManager 16 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/serverManager) 17 (top)/nodes/serverManager/node" 17 Linked to context: serverNetwork/nodes/serverManager 17 Bound Java type: javax.naming.Context 17 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 17 Corba binding type: org.omg.CosNaming.BindingType.ncontext 17 Context unique ID: serverNetwork/nodes/serverManager 17 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/serverManager) 18 (top)/nodes/serverManager/servers 18 Bound Java type: javax.naming.Context 18 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 18 Corba binding type: org.omg.CosNaming.BindingType.ncontext 18 Context unique ID: serverNetwork/nodes/serverManager/servers 18 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/serverManager/servers) 19 (top)/nodes/serverManager/servers/dmgr 19 Linked to URL: corbaloc::server:9809/NameServiceServerRoot 19 Bound Java type: javax.naming.Context 19 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 19 Corba binding type: org.omg.CosNaming.BindingType.ncontext 19 Context unique ID: serverNetwork/nodes/serverManager/servers/dmgr 19 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/serverManager/servers/dmgr) 20 (top)/nodes/serverManager/cell" 20 Linked to context: serverNetwork 20 Bound Java type: javax.naming.Context 20 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 20 Corba binding type: org.omg.CosNaming.BindingType.ncontext 20 Context unique ID: serverNetwork 20 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 21 (top)/nodes/serverManager/nodename 21 Bound Java type: java.lang.String 21 Local Java type: java.lang.String 21 Corba binding type: org.omg.CosNaming.BindingType.nobject 21 String representation: serverManager 22 (top)/nodes/serverManager/domain" 22 Linked to context: serverNetwork 22 Bound Java type: javax.naming.Context 22 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 22 Corba binding type: org.omg.CosNaming.BindingType.ncontext 22 Context unique ID: serverNetwork 22 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 23 (top)/nodes/server 23 Bound Java type: javax.naming.Context 23 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 23 Corba binding type: org.omg.CosNaming.BindingType.ncontext 23 Context unique ID: serverNetwork/nodes/server 23 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server) 24 (top)/nodes/server/domain" 24 Linked to context: serverNetwork 24 Bound Java type: javax.naming.Context 24 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 24 Corba binding type: org.omg.CosNaming.BindingType.ncontext 24 Context unique ID: serverNetwork 24 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 25 (top)/nodes/server/nodeAgent 25 Linked to context: serverNetwork/nodes/server/servers/nodeagent 25 Bound Java type: javax.naming.Context 25 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 25 Corba binding type: org.omg.CosNaming.BindingType.ncontext 25 Context unique ID: serverNetwork/nodes/server/servers/nodeagent 25 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server/servers/nodeagent) 26 (top)/nodes/server/cell" 26 Linked to context: serverNetwork 26 Bound Java type: javax.naming.Context 26 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 26 Corba binding type: org.omg.CosNaming.BindingType.ncontext 26 Context unique ID: serverNetwork 26 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 27 (top)/nodes/server/persistent 27 Bound Java type: javax.naming.Context 27 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 27 Corba binding type: org.omg.CosNaming.BindingType.ncontext 27 Context unique ID: serverNetwork/nodes/server/persistent 27 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server/persistent) 28 (top)/nodes/server/node" 28 Linked to context: serverNetwork/nodes/server 28 Bound Java type: javax.naming.Context 28 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 28 Corba binding type: org.omg.CosNaming.BindingType.ncontext 28 Context unique ID: serverNetwork/nodes/server 28 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server) 29 (top)/nodes/server/servers 29 Bound Java type: javax.naming.Context 29 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 29 Corba binding type: org.omg.CosNaming.BindingType.ncontext 29 Context unique ID: serverNetwork/nodes/server/servers 29 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server/servers) 30 (top)/nodes/server/servers/serverA 30 Linked to URL: corbaloc::server:9814/NameServiceServerRoot 30 Bound Java type: javax.naming.Context 30 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 30 Corba binding type: org.omg.CosNaming.BindingType.ncontext 30 Context unique ID: serverNetwork/clusters/cluster1 30 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster1) 31 (top)/nodes/server/servers/nodeagent 31 Bound Java type: javax.naming.Context 31 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 31 Corba binding type: org.omg.CosNaming.BindingType.ncontext 31 Context unique ID: serverNetwork/nodes/server/servers/nodeagent 31 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server/servers/nodeagent) 32 (top)/nodes/server/servers/nodeagent/UserRegistry" 32 Bound Java type: com.ibm.websphere.security._UserRegistry_Stub 32 Local Java type: com.ibm.websphere.security._UserRegistry_Stub 32 Corba binding type: org.omg.CosNaming.BindingType.nobject 32 String representation: IOR:000... 33 (top)/nodes/server/servers/nodeagent/servername 33 Bound Java type: java.lang.String 33 Local Java type: java.lang.String 33 Corba binding type: org.omg.CosNaming.BindingType.nobject 33 String representation: nodeagent 34 (top)/nodes/server/servers/nodeagent/cell" 34 Linked to context: serverNetwork 34 Bound Java type: javax.naming.Context 34 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 34 Corba binding type: org.omg.CosNaming.BindingType.ncontext 34 Context unique ID: serverNetwork 34 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 35 (top)/nodes/server/servers/nodeagent/thisNode 35 Linked to context: serverNetwork/nodes/server 35 Bound Java type: javax.naming.Context 35 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 35 Corba binding type: org.omg.CosNaming.BindingType.ncontext 35 Context unique ID: serverNetwork/nodes/server 35 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/server) 36 (top)/nodes/server/servers/nodeagent/SecurityServer" 36 Bound Java type: com.ibm.ws.security.server._SecurityServer_Stub 36 Local Java type: com.ibm.ws.security.server._SecurityServer_Stub 36 Corba binding type: org.omg.CosNaming.BindingType.nobject 36 String representation: IOR:000... 37 (top)/nodes/server/servers/serverC 37 Linked to URL: corbaloc::server:9816/NameServiceServerRoot 37 Bound Java type: javax.naming.Context 37 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 37 Corba binding type: org.omg.CosNaming.BindingType.ncontext 37 Context unique ID: serverNetwork/clusters/cluster4 37 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster4) 38 (top)/nodes/server/servers/serverB 38 Linked to URL: corbaloc::server:9815/NameServiceServerRoot 38 Bound Java type: javax.naming.Context 38 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 38 Corba binding type: org.omg.CosNaming.BindingType.ncontext 38 Context unique ID: serverNetwork/clusters/cluster3 38 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster3) 39 (top)/nodes/server/nodename 39 Bound Java type: java.lang.String 39 Local Java type: java.lang.String 39 Corba binding type: org.omg.CosNaming.BindingType.nobject 39 String representation: server 40 (top)/cells 40 Bound Java type: javax.naming.Context 40 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 40 Corba binding type: org.omg.CosNaming.BindingType.ncontext 40 Context unique ID: serverNetwork/cells 40 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/cells) 41 (top)/clusters 41 Bound Java type: javax.naming.Context 41 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 41 Corba binding type: org.omg.CosNaming.BindingType.ncontext 41 Context unique ID: serverNetwork/clusters 41 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters) 42 (top)/clusters/cluster4 42 Linked to URL: corbaloc::server:9816,:server2:9817/NameServiceServerRoot 42 Bound Java type: javax.naming.Context 42 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 42 Corba binding type: org.omg.CosNaming.BindingType.ncontext 42 Context unique ID: serverNetwork/clusters/cluster4 42 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster4) 43 (top)/clusters/cluster3 43 Linked to URL: corbaloc::server:9815,:server2:9816/NameServiceServerRoot 43 Bound Java type: javax.naming.Context 43 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 43 Corba binding type: org.omg.CosNaming.BindingType.ncontext 43 Context unique ID: serverNetwork/clusters/cluster3 43 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster3) 44 (top)/clusters/cluster1 44 Linked to URL: corbaloc::server2:9815,:server:9814/NameServiceServerRoot 44 Bound Java type: javax.naming.Context 44 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 44 Corba binding type: org.omg.CosNaming.BindingType.ncontext 44 Context unique ID: serverNetwork/clusters/cluster1 44 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/clusters/cluster1) 45 (top)/cell" 45 Linked to context: serverNetwork 45 Bound Java type: javax.naming.Context 45 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 45 Corba binding type: org.omg.CosNaming.BindingType.ncontext 45 Context unique ID: serverNetwork 45 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 46 (top)/cellname 46 Bound Java type: java.lang.String 46 Local Java type: java.lang.String 46 Corba binding type: org.omg.CosNaming.BindingType.nobject 46 String representation: serverNetwork 47 (top)/deploymentManager 47 Linked to URL: corbaloc::server:9809/NameServiceServerRoot 47 Bound Java type: javax.naming.Context 47 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 47 Corba binding type: org.omg.CosNaming.BindingType.ncontext 47 Context unique ID: serverNetwork/nodes/serverManager/servers/dmgr 47 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/nodes/serverManager/servers/dmgr) 48 (top)/persistent 48 Bound Java type: javax.naming.Context 48 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 48 Corba binding type: org.omg.CosNaming.BindingType.ncontext 48 Context unique ID: serverNetwork/persistent 48 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/persistent) 49 (top)/persistent/cell" 49 Linked to context: serverNetwork 49 Bound Java type: javax.naming.Context 49 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 49 Corba binding type: org.omg.CosNaming.BindingType.ncontext 49 Context unique ID: serverNetwork 49 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 50 (top)/domain" 50 Linked to context: serverNetwork 50 Bound Java type: javax.naming.Context 50 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 50 Corba binding type: org.omg.CosNaming.BindingType.ncontext 50 Context unique ID: serverNetwork 50 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork) 51 (top)/legacyRoot 51 Linked to context: serverNetwork/persistent 51 Bound Java type: javax.naming.Context 51 Local Java type: com.ibm.ws.naming.jndicos.CNContextImpl 51 Corba binding type: org.omg.CosNaming.BindingType.ncontext 51 Context unique ID: serverNetwork/persistent 51 String representation: com.ibm.ws.naming.jndicos.CNContextImpl(serverNetwork/persistent) ============================================================================== End of Name Space Dump ==============================================================================
Name space dumps of java: and local:
Use wsadmin.sh to dump java: and local: name spaces. Options include...
-startAt some/subcontext/in/the/tree
Recursively dump subcontexts below path indicated. Defaults is an empty string, i.e., the root context.
-report {short | long}
Option Description short Dump binding name and bound object type. Default. long Dump the binding name, bound object type, local object type, and string representation of the local object.
-root {tree | host | legacy | cell | node | server | default}
Root context of where the dump should start. Default is cell. This option is only valid for server name space dumps.
Option Start at the... tree tree root context host server host root context (node) legacy legacy root context cell cell root context. Default option. node node root context (host) server server root context. This is -root default. default initial context which JNDI returns by default for that server type.
-format {jndi | ins}
Specify the format to display name component as atomic strings or parsed according to INS rules (id.kind). This option is only valid for server name space dumps.
Option Description jndi Display name components as atomic strings. This is -format default. ins Display name components parsed according to INS rules (id.kind).
Execution
Execute the following script commands to select the NameServer instance you want to invoke. For example,
set mbean [$AdminControl completeObjectName WebSphere:*,type=NameServer,cell=cellName,node=nodeName,process=serverName]You can see a list of all NameServer MBeans current running by issuing the following query...
$AdminControl queryNames {*:*,type=NameServer}To Invoke the NameServer MBean for java: name space...
$AdminControl invoke $mbean dumpJavaNameSpace {{appname}{modName}{compName}{opts}}To Invoke the NameServer MBean for local: name space...
$AdminControl invoke $mbean dumpLocalNameSpace {{opts}}To Invoke the NameServer MBean for the Server name space...
$AdminControl invoke $mbean dumpServerNameSpace {{opts}}
Example: Dump a java: name space
set mbean [$AdminControl completeObjectName WebSphere:*,type=NameServer,cell=cell,node=node,process=server] $AdminControl invoke $mbean dumpJavaNameSpace { \ {AcctApp} \ {AcctApp.war} \ {Acct Servlet} \ {-report long} \ }
Example: Dump a local: name space
set mbean [$AdminControl completeObjectName WebSphere:*type=NameServer,cell=cell,node=node,process=server] $AdminControl invoke $mbean dumpLocalNameSpace {{-report short}}