Ruleset Commands
These commands are used to create and modify rule sets. Rule sets are applied to new devices
registering to your server that do not present a registration key. Rule set commands begin with the
word ruleset in the long form, or with the letters rs in the short form.
ruleset-add-rule (rsar) [options] [name or position] [attribute]
[operator] [value]
Adds a rule to a rule set. Each rule defines a condition that must be met in order for a rule set to
be applied to a device. Each rule in a rule set must evaluate to TRUE in order for the rule set to
be applied. Accepts the following arguments:
Attribute - Valid attributes are: Alias, AssetTag, CPU, DNS, DeviceType, GUID, HostName,
IPAddress, Location, MacAddress, OS, and SubnetMask.
Operator - Valid string operators are: contains, starts, ends, equals. Valid integer operators are:
<, <=, =, >, >=.
Value - The format and contents of value are determined by the attribute. For additional
information about attribute values see the Inventory section in the ZENworks Linux
Management Administration Guide.
ruleset-add-server-group (rsasg) [options] [name or position]
[group] [...]
Adds workstation group membership to objects imported with a given rule set. Any servers that
satisfy each rule condition of the rule set are added to the specified groups.
ruleset-add-workstation-group (rsaw) [options] [name or position]
[group] [...]
Adds server group membership to objects imported with a given rule set. Any workstations that
satisfy each rule condition of the rule set are added to the specified groups.
ruleset-create-workstation (rscw) [options] [name] [position]
Creates a new rule set to apply when a workstation registers without a key.
ruleset-create-server (rscs) [options] [name] [position]
Creates a new rule set to apply when a server registers without a key.
ruleset-delete (rsd) [options] [name or position]
Removes a rule set.
ruleset-info (rsi) [options] [name or position]
Displays detailed information about a rule set.
ruleset-list (rsl) [options]
Lists all rule sets. Accepts the following option flags:
-f,--filter - Displays options matching the specified filter. Wildcard characters * and ? can be
used if they are enclosed in quotation marks.
ruleset-list-groups (rslg) [options] [name or position]
Displays a list of groups that a device will be a member of when it is created with the specified
rule set.
558 Novell ZENworks 7.2 Linux Management Administration Guide