Go to main content

Managing Service Location Protocol Services in Oracle® Solaris 11.3

Exit Print View

Updated: October 2017
 
 

How to Configure Scopes

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

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  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