strconf Command

Purpose

Queries stream configuration.

Syntax

strconf-t | -m module ]

Description

The strconf command is used to query the configuration of a stream. When used without any flags, it prints a list of all the modules in the stream as well as the topmost driver. The list is printed with one name per line, where the first name printed is the topmost module on the stream and the last item printed is the name of the driver.

Note: The strconf command only reads from standard input.

Flags

Item Description
-m Module Determines if the specified module is present on the stream. If the module is present, the strconf command prints the message yes and returns a value of 0. If it is not present, the strconf command prints the message no and returns a nonzero value.

The -t and -m flags are mutually exclusive.

-t Prints only the topmost module of the stream (if one exists).

Parameter

Item Description
Module Specifies the module for which to look.

Examples

  1. For a stream that has only the ldterm module pushed above the ports driver, the strconf command (with no flags) would produce the following output:
    ldterm
    ports
  2. Entering the following command asks if the ldterm module is on the stream:
    strconf -m ldterm
    The command produces the following output while returning an exit status of 0:
    yes