Creating hosts and domains via the command line (reglcnt)

  • 7009329
  • 09-Sep-2011
  • 26-Apr-2012

Environment

Novell Privileged User Manager 2.3.0

Situation

Creating hosts and domains via the command line (reglcnt)

Resolution

Apply Privileged User Manager 2.3.0 HF3 (2.3.0-3) or greater to the Registry Managers.  Agents may be older version (2.2.2, 2.3.0, 2.3.0-2, etc).

The 'unifi regclnt register' command which is used to register an Agent after an install can now create host and domain records from the command line during the registration process. 

In order to allow a user, during command line registration, to create hosts or domains the following roles must be configured for the user in the Framework User Manager:  (Note: Admin has these rights by default.)

To allow creation of host records during registration:
Module: unifi 
Role: register_host

To allow creation of domain records during registration:
Module: unifi 
Role: register_domain

To define the domain where the host should be created use a / syntax to reference the domain hierarchy when entering the agent name e.g.

/mydomain/mysubdomain1/mysubdomain2/myagentname

which would create the following underneath the Hosts domain.

Hosts
 - mydomain
    -mysudomain1
       - mysubdomain2
           -myagentname


Syntax:
/opt/novell/npum/sbin/unifi regclnt register <Manager> 29120 <hostname> /<agentname> admin password



Additional Information

Examples: 

Creates sd194.lab.novell.com under Hosts, & use supplied domain.
/opt/novell/npum/sbin/unifi regclnt register sd142.lab.novell.com 29120 sd194.lab.novell.com /sd194.lab.novell.com admin password

After command 
Hosts
 -sd194.lab.novell.com

Creates sd194.lab.novell.com under Hosts->Provo, & use supplied domain.
/opt/novell/npum/sbin/unifi regclnt register sd142.lab.novell.com 29120 sd194.lab.novell.com /Provo/sd194.lab.novell.com admin password

After command
Hosts
 -Provo
    -sd194.lab.novell.com

Creates sd194.lab.novell.com and the UK and Ilminster domain and subdmain under Hosts.
/opt/novell/npum/sbin/unifi regclnt register sd142.lab.novell.com 29120 sd194.lab.novell.com /UK/Ilminster/sd194.lab.novell.com admin password

After command
Hosts
 -UK
  -Ilminster
    - sd194.lab.novell.com