slptool command

Use the slptool command on a management node with IBM® Flex System Manager Platform Agent to manage the agent manager used by a Common Agent.

Important: Before you can use the slptool command, you must complete the following steps:
  1. Call IBM Support and obtain the password that is required to run the pesh command.
  2. From the management software command-line interface, use the lsconfig -v command to determine the UVMID of management node.
  3. Run the command pesh UVMID, where UVMID is the system ID that you determined in the previous step. When you are prompted, enter the password that you obtained from IBM Support. For more information about the command, see pesh.

Synopsis

slptool [-v | -s scope_list | -l language_tag | -i interface_list | -u interface] {command arguments}

Operands

None

Options

-i | –interfaces interface[,interface,...]
Specifies one or more interfaces applicable for the command, in a comma-separated list.
-l | –language language_tag
Specifies the language tag to be used for the command.
-s | –scope scope[,scope,...]
Specifies one or more scopes applicable for the command, in a comma-separated list.
-u | --unicastifc interface
Specifies a single interface.
-v | –version
Displays the versions of the slptool command and OpenSLP.
deregister url
Deregisters service registrations for the specified URL.
findattrs url [attr_ids]
Displays a list of attributes for the service registrations for the specified URL. You can specify one or more attribute IDs in a comma-separated list.
findscopes
Displays information related to the available scopes.
findsrvs service_type [filter]
Displays a list of URLs for all services registered with the specified service type. You can specify a filter with format "(attr1=val1)" to display URLs for only those services satisfying the filter condition.
findsrvtypes [authority]
Displays a list of all service types registered to the SLP. You can specify a naming authority for the SLP.
getproperty property_name
Displays the property value in the slp.conf file for the specified property name.
register url [attrs]
Registers a specified URL. You can specify a list of attributes to use for registering the URL, separated by commas.

Exit status

The following codes are returned by this command.
  • 0: The operation completed.
  • 2: The command or bundle was not found.
  • 3: The command was not performed because either authentication failed or you are not authorized to perform the action.
  • non-zero: An error occurred.

Examples

  1. Run commands using slptool

    The following examples illustrate how to use the slptool command to run various commands.

    . /slptool register service:myserv.x://myhost.com 
    "(attr1=val1),(attr2=val2)"
    . /slptool findsrvs service:myserv.x
    . /slptool findsrvs service:myserv.x "(attr1=val1)"
    . /slptool -i 10.77.13.240,192.168.250.240 
    findsrvs service:myserv.x
    . /slptool -u 10.77.13.237 findsrvs service:myserv.x 
    "(attr1=val1)"
    . /slptool findattrs service:myserv.x://myhost.com
    . /slptool findattrs service:myserv.x://myhost.com attr1
    . /slptool -i 10.77.13.243 
    findattrs service:myserv.x://myhost.com attr1
    . /slptool -u 10.77.13.237 
    findattrs service:myserv.x://myhost.com attr1
    . /slptool deregister service:myserv.x://myhost.com
    . /slptool getproperty net.slp.useScopes
  2. Identify the agent manager for a Common Agent managed system

    The following examples illustrate how to identify the agent manager for a Common Agent managed system on the management server.

    . /slptool -u 10.11.19.203 
    findsrvs service:management-software.IBM:platform-agent
    . /slptool -u 10.11.19.203 
    findsrvs service:wbem