Diagnosing the naming service connection

The CORBA probe framework is supplied with two utilities that allow you to diagnose the naming service connection. These can help you to troubleshoot any connection related issues that the probe may have.

dumpns

This utility allows you display the naming context of a session. The dumpns script takes as arguments the naming service host and port and returns the naming context string. This is a wrapper script for org.jacorb.naming.ContextLister.

dumpns takes the following format:

dumpns nshost nsport

Where nshost is the host and nsport is the port of the naming service whose naming context string you want to return.

Example Usage

> $OMNIHOME/probes/java/corba/jacorb-3.3/bin/dumpns 127.0.0.1 1570
/opt/ibm/tivoli/nco740/omnibus/probes/java/corba/jacorb-3.3/bin/jaco org.jacorb.naming.ContextLister
 -url corbaloc:iiop:127.0.0.1:1570/NameService
May 22, 2014 9:48:23 AM org.jacorb.orb.ORBSingleton <init>
INFO: created ORBSingleton
May 22, 2014 9:48:23 AM org.jacorb.orb.portableInterceptor.InterceptorManager <init>
INFO: InterceptorManager started with 0 Server Interceptors, 0 Client Interceptors and 1 IOR Interceptors
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: created new ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
May 22, 2014 9:48:23 AM org.jacorb.orb.iiop.ClientIIOPConnection connect
INFO: Connected to 127.0.0.1:1570 from local port 59928
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
   TMF_MTNM.Class/
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
        HUAWEI.Vendor/
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
                Huawei\/U2000.EmsInstance/
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
                        2\.0.Version/
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
May 22, 2014 9:48:23 AM org.jacorb.orb.giop.ClientConnectionManager getConnection
INFO: ClientConnectionManager: found ClientGIOPConnection to 127.0.0.1:1570 (bf7f82d6)
                                Huawei\/U2000.EmsSessionFactory_I
   NotificationService
May 22, 2014 9:48:23 AM org.jacorb.orb.ORB shutdown
INFO: prepare ORB for shutdown...
May 22, 2014 9:48:23 AM org.jacorb.orb.ORB shutdown
INFO: ORB going down...
May 22, 2014 9:48:23 AM org.jacorb.orb.iiop.ClientIIOPConnection close
INFO: Client-side TCP transport to 127.0.0.1:1570 closed.
May 22, 2014 9:48:23 AM org.jacorb.orb.ORB shutdown
INFO: ORB shutdown complete

Naming Context: TMF_MTNM.Class/HUAWEI.Vendor/Huawei\/U2000.EmsInstance/2\.0.Version/Huawei\/
U2000.EmsSessionFactory_I

dior

This utility allows you to decode an interoperable object reference (IOR) in string form into a more readable representation. The dior script is provided by JacORB for org.jacorb.orb.util.PrintIOR. It prints the IOR components in detail.

dior takes the following format:

dior -i ior_str

Where ior_str is the path of the IOR file whose details you want to print.

Example Usage

> $OMNIHOME/probes/java/corba/jacorb-3.3/bin/dior -i `cat ns.ior` 2>/dev/null
------IOR components-----
TypeId  :       IDL:omg.org/CosNaming/NamingContextExt:1.0
TAG_INTERNET_IOP Profiles:
        Profile Id:             0
        IIOP Version:           1.2
        Host:                   127.0.0.1
        Port:                   1570
        Object key (URL):       StandardNS/NameServer-POA/_root
        Object key (hex):       0x53 74 61 6E 64 61 72 64 4E 53 2F 4E 61 6D 65 53 
65 72 76 65 72 2D 50 4F 41 2F 5F 72 6F 6F 74
        -- Found 2 Tagged Components--
        #0: TAG_ORB_TYPE
                Type: 1245790976 (JacORB)
        #1: TAG_CODE_SETS
                ForChar native code set Id: ISO8859_1
                Char Conversion Code Sets: ISO8859_15, UTF8
                ForWChar native code set Id: UTF16
                WChar Conversion Code Sets: UTF8, UCS2