OSF DCE Administration Guide--Core Components

OSF DCE Administration Guide—Core Components
The string binding for the host where the server resides. String bindings can
represent security servers, DTS servers, and audit daemons. They cannot represent
CDS servers. An example of a string binding is {ncacn_ip_tcp 110.15.22.131}. The
DCE control program resolves the binding to the appropriate service on the host.
The name of the cell. This form applies only to registry operations. For a remote
cell, specify a global cell name, for example /.../my_cell.goodco.com. For the local
cell you can specify the root as /.:. These operations use an arbitrary server that is
suitable for the operation.
2.6.9 Last Security Server Used (_b(sec))
The _b(sec) convenience variable holds the name of the security server used for the most
recent registry operation. The DCE control program sets this variable based on previous
registry operations. Consequently, users can view, but not set, this variable.
One reason to read the value of this variable is to check which registry performed the
most recent operation as shown in the following example:
dcecp> puts $_b(sec)
/.../my_cell.goodco.com/subsys/dce/sec/master
dcecp>
Registry operations use the value of the _b(sec) variable in conjunction with the value of
the _s(sec) variable to determine which security server to use. Refer to Section 2.6.8 for
information about the _s(sec) variable and how these values work together for registry
operations.
2.7 Measuring and Counting with Expressions
The expr command offers flexible ways to express and use arithmetic functions in your
scripts. Expressions are useful for things like comparing numeric information such as the
number of elements in a list, setting thresholds for monitoring purposes, incrementing
counters that control your script’s execution, and producing statistical information.
A simple dcecp expression is a combination of an operator like + (add) or * (multiply)
and some operands. The expr command takes one argument—the expression—so
parentheses or braces may be needed if your expression has spaces. Use parentheses to
control grouping in expressions. Expressions can also be nested. All of the following
are valid expressions:
dcecp> expr {2 + 3}
5
dcecp> expr 2+3
5
dcecp> set x 24
2 14 Tandem Computers Incorporated 124243