Skip to main content

NameService shutdown using NSUtil with corbaloc and no osagent

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker
  • Product Version: 5.x
  • Product Component: Naming Service
  • Platform/OS Version: All

Running a nameservice without osagent and wanting to use nsutil to shut it down by using corbaloc. How to determine the corbaloc parameter values? e.g. nsutil -VBJprop vbroker.agent.enableLocator=false shutdown corbaloc:iiop::/

 

Resolution:

1. launch the naming service and saving the IOR string:

> nameserv -VBJprop vbroker.agent.enableLocator=false -VBJprop vbroker.naming.factoryIorFile=factory.ior -VBJprop vbroker.se.iiop_tp.scm.iiop_tp.listener.port=40004

2. You now need to get the "key_string" from the object key.

> printIOR factory.ior

Interoperable Object Reference:
  Type ID: IDL:omg.org/CosNaming/ExtendedNamingContextFactory:1.0
  Contains 1 profile.
  Profile 0-IIOP Profile:
    version: 1.2
    host: 143.186.191.80
    port: 40004
    Object Key: PersistentId[repId=IDL:omg.org/CosNaming/ExtendedNamingContextFactory:1.0,objectName=NameService,poaName=/EXT_FACTORY_POA,key_string=PMC7IDL:omg.org/CosNaming/ExtendedNamingContextFactory:1.0 NameService/EXT_FACTORY_POA]
    VB Capability component:
    ORB_TYPE Component: VBJ 4.x
    Code Sets Component: native char codeset:ISO 8859_1 conversion_code_sets:, native wchar codeset:ISO UTF-16 conversion_code_sets:

3. Shutdown the naming service:

> nsutil -VBJprop vbroker.agent.enableLocator=false shutdown corbaloc::143.186.191.80:40004/PMC7IDL:omg.org/CosNaming/ExtendedNamingContextFactory:1.0 NameService/EXT_FACTORY_POA]

Assuming that the server's ip and port don't change then the key will stay the same, i.e. steps 1 and 3 can be repeated without step 2.


#Security
#VisiBroker