Information Library for Solaris 2.6 (SPARC Platform Edition)

Registering the Server

To include your document server in a pool of servers for a site, or to give users the ability to choose from several document servers, you can register the name of your server with the Federated Naming Services system. Users can still access unregistered document servers if they know the URL.

To register your server, use the ab2regsvr command. The ab2regsvr command looks at your system's configuration and, depending on the naming service you are using, sets up the appropriate name space for your server.

To register your server, use the following command:


# /usr/lib/ab2/bin/ab2regsvr server_url

where server_url is the fully qualified URL to get to this server (for example: imayoyo.eng.sun.com:8888).

To find out what servers are currently registered, use the following command:


% fnlookup -v thisorgunit/service/answerbook2

This returns a list of registered servers that looks similar to the following:


Reference type: onc_answerbook2
Address type: onc_addr_answerbook2
  length: 19
  data: 0x68 0x74 0x74 0x70 0x3a 0x2f 0x2f 0x61 0x6e 0x73  http://ans
        0x77 0x65 0x72 0x73 0x3a 0x38 0x38 0x38 0x38       wers:8888

In this example, the registered server is answers:8888.

If you get a response similar to the following, then no document servers are registered.


Lookup of 'thisorgunit/service/answerbook2' failed: Name Not Found: 'answerbook2'