System Administration Guide: Network Services

ProcedureHow to Configure Scopes

Use the following procedure to add scope names to the net.slp.useScopes property in the slp.conf file.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Stop slpd and all SLP activity on the host.


    # svcadm disable network/slp
    
  3. Back up the default /etc/inet/slp.conf file before you change the configuration settings.

  4. Change the net.slp.useScopes property in the slpd.conf file:


    net.slp.useScopes=<scope names>
    
    scope names

    A list of strings that indicate which scopes a DA or SA is allowed to use when making requests, or which scopes a DA must support

    Default Value=Default for SA and DA/Unassigned for UA


    Note –

    Use the following to construct scope names:

    • Any alphanumeric characters, uppercase or lowercase

    • Any punctuation characters (except for: '', \, !, <, =, >, and ~)

    • Spaces that are considered part of the name

    • Non-ASCII characters

      You use a backslash to escape non-ASCII characters. For example, UTF-8 encoding uses 0xc3a9 hex code to represent the letter e with the French aigue accent. If the platform does not support UTF-8, you use the UTF-8 hex code as the escape sequence \c3\a9.


    For example, to specify scopes for eng and mktg groups in bldg6, you change the net.slp.useScopes line to the following.


    net.slp.useScopes=eng,mktg,bldg6
  5. Save your changes and close the file.

  6. Restart slpd to activate your changes.


    # svcadm enable network/slp