Te Commander User Guide
Te Commander User Guide
COMMANDER
TRIPWIRE ENTERPRISE
COMMANDER 8.7.4
USER GUIDE
Tripwire is a registered trademark of Tripwire, Inc. Other brand or product names may be trademarks or
registered trademarks of their respective companies or organizations.
Contents of this document are subject to change without notice. Both this document and the software described
in it are licensed subject to Tripwire’s End User License Agreement located at https://www.tripwire.com/terms,
unless a valid license agreement has been signed by your organization and an authorized representative of
Tripwire. This document contains Tripwire confidential information and may be used or copied only in
accordance with the terms of such license.
This product may be protected by one or more patents. For further information, please visit:
https://www.tripwire.com/company/patents.
Tripwire software may contain or be delivered with third-party software components. The license agreements
and notices for the third-party components are available at: https://www.tripwire.com/terms.
Tripwire, Inc.
308 SW Second Ave, Suite 400
Portland, OR 97204
US Toll-free: 1.800.TRIPWIRE
main: 1.503.276.7500
fax: 1.503.223.0182
https://www.tripwire.com
tripwire@tripwire.com
Contents
Getting Started 7
Introduction 7
Installation and Configuration 7
Command Reference 12
Overview 12
Active Directory to TE User Sync (ad2tesync) 12
Add TE User (adduser) 14
Add TE User Group (addusergrp) 14
Analyze TE Deployment (analyzer) 15
Application to CSV (apptocsv) 15
Create Saved Filter (avcreatefilter) 16
Create Tagging Profile (avcreateprofile) 16
Create Tag (avcreatetag) 18
Delete Saved Filter (avdeletefilter) 18
Introduction
Tripwire Enterprise Commander (TE Commander) is a Tripwire Enterprise command-line
interface (CLI) tool that greatly expands the functionality of twtool, the standard Tripwire
Enterprise CLI. TE Commander is a Tripwire Enterprise web services client application. It is
written in Java and is supported with JRE 1.8.0_60 and later.
To install TE Commander:
1. Unzip the tecommander.zip file into a directory on any system that has TE Console or
TE Agent software installed.
2. Locate the tecommander.cmd (.sh) file in the installation directory's bin folder and open it
with a text editor.
3. Find the line in the file that looks like this:
set JAVA_HOME=d:\Program Files\Tripwire\TE\Server\jre
4. Modify this line to point to any Java JRE (1.8.0_60 or later) with JCE libraries installed.
5. Save the file.
Authentication
TE Commander, like the twtool CLI, supports typing credentials with each command or storing
encoded credentials in the local Java preferences repository or an XML file. The use of the term
‘encoded’ only applies to the account password. All other credentials are stored and used in
plain text.
For example:
tecommander link –s myteserver -u administrator -p passphrase –w “Windows Nodes”
–t “By Platform”
To encode and store these credentials for automatic use by TE Commander, use the set
command with the following format:
tecommander set -s <TE_system> -u <TE account_name> -p <TE_account_password>
For example:
tecommander set –s myteserver -u administrator -p passphrase
You can also set the credentials for an Active Directory connection which is used by the
ad2tesync command. It is very similar to the command above:
tecommander set -d <AD_Domain> -U <AD_account_name> -P <AD_account_password>
For example:
tecommander set –s lab.tripwire.com -u “lab\jUser” -p passphrase
The TE user account password is encrypted using the TE Commander encrypt command (see
below), but the username must be manually set in the .xml file on the <UserID> line.
Once the XML file is encrypted, it can be referenced in other TE Commander commands by
using the -M option.
For example:
Standard Options
There are some "standard" options that can be used with almost every TE Commander
command. These include the -s, -u, -p, and –M options discussed in Authentication on page 8. In
addition, the table below lists other "standard" options that can be used with almost every
TE Commander command.
Note Use the -h or --help option with any command to see the actual options that are
available for that command.
Option
(Short, Long Form) Description
-q, --quiet Suppress informational text that would normally be displayed.
-W, --wait Wait for the specified number of minutes before proceeding.
This is useful when using TE Commander in script mode and running commands
like restartagent that take time to execute before moving on to the next
command.
-Q, --trustall This option is available on every command that requires a connection to the TE
Server. It is useful when the TE Server's out-of-the-box cert has been replaced
with a custom certificate.
-Z, --timeout Specify how many minutes the API client should wait after a request is made.
-h, --help Display information about this command and a list of available options.
Unique Names
When specifying any object by name, TE Commander cannot determine which object to operate
on if multiple objects of the same type have the same name. Therefore, objects of the same type
MUST have unique names.
For example, if you have an “Oracle” node group under a “Linux” node group and an “Oracle”
node group under a “Windows” node group, there is no way to specify which “Oracle” is the
desired object. One solution would be to rename the objects to “Oracle Linux” and “Oracle
Windows” respectively.
If duplicate objects of the same name are found, a message similar to “Specified <object type>
does not exist or is not uniquely named” will be displayed and processing of the command will
cease.
Spaces
If a command argument contains spaces, the text must be surrounded with double-quotes “ ”.
tecommander @<filename>.tec
When a file is specified in this way, TE Commander will authenticate once to Tripwire
Enterprise and execute all commands listed in the file. This can be useful when creating or
scripting automated processes in the TE environment. A sample script is listed in Appendix A –
Sample Script Using Multiple Commands (on page 66).
Help Messages
To list all available TE Commander commands and get a brief description of each, enter
tecommander at the command prompt.
For a list of command-line options for a specific command, use this format:
tecommander <command> --help
Overview
This section describes the commands and options available in TE Commander, organized
alphabetically by command name. The set and encrypt commands were previously described in
Authentication (on page 8).
Notes Examples in this guide focus on Windows platforms. For Unix-based platforms,
make the appropriate syntax adjustments.
The examples in this section assume that the set command (see Storing
Credentials as Encoded Java Preferences on page 8) has previously been used to
store authentication credentials.
Only the most relevant command options for each command are shown, omitting
some common options that are available in most commands. For a complete list of
options for any command, use the --help option with that command:
tecommander <command> --help
If the AD user does not exist in TE, a new user will be created with the provided parameters. If
the AD user already exists in TE, that user will be updated with AD information (email/display
name) as well as any provided TE settings. If the user has set the search type to group and there
are TE users in the identified role that don’t match any of the AD users, the TE users will be
disabled. A custom role, DisabledUsers, will be created the first time users have been identified
that need to be disabled.
Option
(Short,Long Form)
Arguments Description
-c, -- Maximum length of time (in milliseconds) that a connection attempt should
connectionTimeout be allowed to continue before giving up.
<milliseconds>
The default value is 10.
-g, --groups List of TE user groups that user(s) should belong to.
<groups>
-j, --asJSON Flag indicating user information should be output in JSON format.
-R, --remove If --searchType is group, this flag indicates that TE users should be
removed/deleted if there is no matching AD user in the role.
-T, --searchType Type of Active Directory search. Valid search types are group or user.
<searchType>
Default value is group.
For example:
Sync AD group to TE (polite sync, TE users will remain even if matching AD user has been
removed):
tecommander ad2tesync -s localhost -u administrator -p *********
-D lab.tripwire.com -U jUser -P ******** -T group -s “cn=TE Users” -r “Power User”
-g “NERC Users” -d “Created via TECommander”
Sync AD group to TE (dangerous sync, TE users will be removed if matching AD user has been
removed):
tecommander ad2tesync -s localhost -u administrator -p *********
-D lab.tripwire.com -U jUser -P ******** -T group -s “cn=TE Users” -r “Power User”
-g “NERC Users” --remove -d “Created via TECommander”
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
tecommander -n “NERC Users” -d “Users working with NERC assets and policies”
Option
(Short,Long Form)
Arguments Description
-o,--outputfile Full path to the location where the output .xlsx file with analysis will be
<outputxslxfile> created.
Option
(Short,Long Form)
Arguments Description
-Y,--cmdb_format If specified, includes information about the rules used to monitor each node
instead of just listing the nodes.
For example:
Option
(Short,Long Form)
Arguments Description
-T,--tagsettagpair A string containing one or more tagset/tag pairs to include in this saved filter. If
<tagset/tag> multiple tagset/tag pairs are specified, they should be separated with semi-
colons. For example:
-T Location/Portland;Applications/IIS
Option
(Short,Long Form)
Arguments Description
-C,--conditions String containing one or more conditions for the tagging profile. Multiple
<conditions> conditions should be delimited by a colon. See the table below for more
information about conditions.
-O,--operator Specify whether an asset must match any or all of the specified conditions to be
<operator> included in the tagging profile.
-R,--runtype Specify whether this tagging profile runs automatically to continually monitor
<run type> assets or can only be run manually.
-T,--tagsettagpair A string containing one or more tagset/tag pairs that the tagging profile assigns
<tag set pairs> to assets that meet its conditions. If multiple tagset/tag pairs are specified, they
should be separated with semi-colons. For example:
-T Location/Portland;Applications/IIS
-C <ConditionType>,<condparm_1>,<condparm_2>,<condparm_n>:
<NextConditionType>,<nextcondparm_1>,<nextcondparm_2>,<nextcondparm_n>:
<NextConditionType>...
Works the same as HostnameContainsCondition above, but regular expressions can be used for the
matching text.
IpRangeCondition,IS_IN_RANGE,lowIP1,highIP1,IS_NOT_IN_RANGE,lowIP2,highIP2,etc.
Matches assets that are either in or not in the specified IP address range.
TagContainsCondition,<true or false>,containsText1,tagName1,
<true or false>,containsText2,tagName2,etc.
Matches assets that either have or do not have tags that contain the specified text applied.
For example:
matches assets that don't have "Windows" in any of their Operating System tags and/or (based
on the -O option) don't have "Data Center" in any of their Location tags.
IpRangeCondition,IS_IN_RANGE,10.4.20.15,10.4.20,50:
TagCondition,Location/Houston,false
matches assets that are in the IP address range of 10.4.20.15 - 10.4.20.50 and/or (based on the -O
option) don't have the Location:Houston tag applied.
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
l by name
l by node group
l by having a specific custom property value
l by having TE run a specified report and using the output
l in an existing XML report file
Option
(Short,Long Form)
Arguments Description
-B,--propertytype The type of custom property used to select nodes that will have errors
<propType> deleted.
-i,--inputfile The full path to an existing XML report file with a list of nodes to have
<filePath> their errors deleted. Supported report types for this option are:
Device Inventory
System Log
Nodes with Changes
Last Node Check Status
-N,--propertyname The name of the custom property used to select nodes that will have
<propName> errors deleted.
-V,--propertyvalue The value of the custom property used to select nodes that will have
<propValueText> errors deleted.
Examples
Delete node errors in all categories for all nodes in a node group:
tecommander avdeletenodeerrors -w "App Node Group" -C ""
Delete node errors in specified category for all nodes that descend from a node group:
tecommander avdeletenodeerrors -w "App Node Group" -b -C COMMUNICATION_ERROR
Delete node errors in all categories for all nodes with a specified custom node property value:
tecommander avdeletenodeerrors -N Environment -B select -V Production -C ""
Delete node errors for specified category for all nodes in an existing XML report file:
tecommander avdeletenodeerrors -i c:\temp\failednodes.xml -C NODE_OUT_OF_SYNC
Delete node errors in all categories for all nodes in a qualified report:
tecommander avdeletenodeerrors -R "Failed Nodes Report" -C ""
Option (Short,Long Form)
Arguments Description
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
avresettagset -S Application
untags all of the tags in the Application tagset from all nodes. The only option for the command
is:
Option (Short,Long Form)
Arguments Description
l by name
l by node group
l by having a specific custom property value
l by having TE Commander run a specified report and using the output
l in an existing XML report file
Option
(Short,Long Form)
Arguments Description
-B,--propertytype The type of custom property used to select nodes that will have tags
<propType> applied.
-N,--propertyname The name of the custom property used to select nodes that will have tags
<propName> applied.
-S,--tagset The name of the tagset with the tag to be applied to the selected nodes.
<tagSetText>
-V,--propertyvalue The value of the custom property used to select nodes that will have tags
<propValueText> applied.
-w,--nodegroup The name(s) of one or more node groups to have tags applied. Use the
<name1[;name2;etc]> --recurse option to recurse through sub-groups.
-Y,--autoCreate Create the specified tagset/tag pair if it doesn't already exist.
Examples
Tag all nodes in a node group and create the tagset/tag pair if it doesn't already exist:
tecommander avtagasset -w "App Node Group" -S MyTagSet -T MyTag -Y
l by name
l by node group
l by having a specific custom property value
l by having TE Commander run a specified report and using the output
l in an existing XML file
Option
(Short,Long Form)
Arguments Description
-B,--propertytype The type of custom property used to select nodes that will have tags
<propType> removed.
-N,--propertyname The name of the custom property used to select nodes that will have tags
<propName> removed.
-S,--tagset The name of the tagset with the tag to be removed from the selected
<tagSetText> nodes.
-T,--tag The name of the tag to be removed from the selected nodes.
<tagText>
-V,--propertyvalue The value of the custom property used to select nodes that will have tags
<propValueText> removed.
Examples
Option (Short,Long Form)
Arguments Description
-x,--rulegroup The name of the rule group used to create the baseline.
<ruleGroupName>
For example:
Option
(Short,Long Form)
Arguments Description
-i,--inputfile The full path to a baseline elements report that has been exported to an
<filepath> XML file.
For example:
Option (Short,Long Form)
Arguments Description
"CHG;;CRQ;;INC;;Multiple;;CSV"
-D,--daterange Date range specified as "M/d/yy h:mm aa,M/d/yy h:mm aa". For
<dates> example:
Option (Short,Long Form)
Arguments Description
Check (check)
The check command is used to check a node or node group against a single rule or rule group.
The key options for the command are:
Option (Short,Long Form)
Arguments Description
-x,--rulegroup The name of the rule group to use for the check.
<name>
For example:
Option
(Short,Long Form)
Arguments Description
-B,--os Use the OS as the audit source. If not specified, the Event Generator will
be used as the audit source.
-W,--wait The number of minutes to wait after the command is complete before
<minutes> continuing.
-Y,--auditevents Collect audit information. If not specified, audit information will not be
collected.
For example:
A node name, external rule name, and element name must be specified. Key options are:
Option
(Short,Long Form)
Arguments Description
-C,--content The content for the new element. Content can be specified in the following ways:
<content>
l Specifying an empty content string will generate an 'exists=false' element
version.
l Specifying anything else as the content string will use the content string as
the version content.
-D,--timeDetected Detected time for the element in the format (2016-09-30 17:30:17).
<time>
If not defined, defaults to the time when the command is run.
-n,--node The name of the node where the new element should be created.
<nodeName>
-r,--rule The name of an external rule (see createextrule below) to be associated with
<ruleName> the new element.
--returnCode The return code of the source of the content. This should be set to zero if
<returnCode> creating versions wtih empty content
-S,--severity The severity value for the created content. The default value is 0.
<severity>
-T,--changeType The type of change for the element. Valid values are BASELINE, ADDED,
<type> MODIFIED, REMOVED. The default value is MODIFIED.
For example:
You must specify a name for the new rule and an existing rule group where the new rule should
be linked. Key options are:
Option (Short,Long Form)
Arguments Description
-x,--rulegroup The name of the rule group where the new external rule will be linked.
<ruleGroupname>
For example:
Option (Short,Long Form)
Arguments Description
-z,--policytestgroup The policy test group in which to create the new group.
<name>
For example:
Option (Short,Long Form)
Arguments Description
Option
(Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option
(Short,Long Form)
Arguments Description
-e,--elementname Include any elements with a name that matches the specified pattern.
<name>
-n,--node Include any nodes with a name that matches the specified pattern.
<name>
For example:
Count all elements containing "opt/java/dev" on any node in the node group "Monitoring
Enabled" collected by the "TEIF" rule:
Export (export)
The export command is used to export any object type supported by the SOAP API export
command. Specify the object to export and the full path of the desired export file.
When exporting version content, the node and element name are minimum requirements. With
these specs alone, the most recent baseline version is exported UNLESS the –Y option is used.
In this case, the most recent version is exported. Additionally, specifying the version date (as
displayed in the TE user interface) will restrict the export to the requested version.
Option (Short,Long Form)
Arguments Description
-Y,--currvers If specified when exporting elements, gets the current version instead
of the baseline version.
For example:
tecommander export -w "Node Group" -o Node_export_file.xml
Option (Short,Long Form)
Arguments Description
Option (Short,Long Form)
Arguments Description
For example:
tecommander findhash -H
5bf0a775ab633ad3c289cde39c5d553c9d580f35,e2be805bc142baea4dc327e817aa27ac9c01e25a
Option
(Short,Long Form)
Arguments Description
-a, --administrator Flag indicating that when searching, only roles with full administrator
permissions should be considered.
-b, --builtin Flag indicating that only built-in roles should be searched.
For example:
tecommander findroles -j -b
Option (Short,Long Form)
Arguments Description
-b, --builtin Flag indicating only built-in user groups should be searched.
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option
(Short,Long Form)
Arguments Description
For example:
Option
(Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
Option (Short,Long Form)
Arguments Description
For example:
tecommander listnodes -B yesno -N "In Scope" -V Yes
Option (Short,Long Form)
Arguments Description
Option (Short,Long Form)
Arguments Description
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
Option
(Short,Long Form)
Arguments Description
For example:
This command will delete all elements containing opt/java/dev on any node containing tecon
in the node group Monitoring Enabled collected by the TEIF rule.
Option
(Short,Long Form)
Arguments Description
-i,--inputfile Input text file with a list of nodes. Formatting options for this file are:
<inputfile>
1) Node name only
2) Node name and description, separated by a comma
-o,--outputfile Full path to the location where the output XMLfile will be created.
<outputxslxfile>
-t,--nodetype The type of nodes to be created. Valid values for <type> are:
<type>
l ND for Network Device nodes
l SQLServerNode for SQL Server nodes
-X,--model Full path to the "model" node export XML file.
<path>
Option (Short,Long Form)
Arguments Description
For example:
Options are:
Option (Short,Long Form)
Arguments Description
Example:
Option
(Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
l Method 1 retrieves the hostname from the Agent itself using a rule that captures the
hostname in a specified element and uses that name to rename the node. This method is
used by default, unless the -L option is specified.
l Method 2 executes a reverse lookup operation, retrieving the hostname from the default
DNS and using that name to rename the node.
This command can be executed against a single Agent node, a node group's immediate child
nodes, or all nodes descending from a node group. There is also an option to only rename nodes
whose name is an IP address. This is currently required for the reverse lookup method.
Options are:
Option
(Short,Long Form)
Arguments Description
-e,--elementname The name of the element used to store the hostname using Method 1,
<name> above.
-L,--revlookup Uses reverse lookup instead of element content. See description above.
Option
(Short,Long Form)
Arguments Description
-D,--date This can be a Since date (single date value) or date range (two date values,
<dateordates> comma-separated).
The date format is: MM/dd/yyyy HH:mm:ss (using a 24-hour clock)
-t,--template Report template. If specified, the command will create a new report.
<templatename>
If not specified, the command will attempt to locate an existing report with the
name specified by the -T option.
If not using an existing report, report criterion can be specified on the command line with the -P
option. The following report criterion are supported.
BooleanCriterion – 2 parameters; the name of the criterion and the value, true or false.
MatchCriterion – 3 parameters; the name of the criterion, the type (contains, excludes,
etc.) and the value to match
SelectCriterion – 3 parameters; the name of the criterion, the display value and the actual value
-P <CriterionType>,<critparm_1>,<critparm_2>,<critparm_n>:
<NextCriterionType>,<nextcritparm_1>,<nextcritparm_2>,<nextcritparm_n>, etc.
Report criterion are grouped by type. In other words, specify all BooleanCriterion together,
starting with “BooleanCriterion” then the name/value pairs as shown here:
BooleanCriterion,currentVersionsOnly,false,displayCriteriaAtEnd,true,displayUsers,true
If there are different criterion required for the same report, separate each type of Criterion with
a single colon character as shown here:
BooleanCriterion,currentVersionsOnly,false,displayCriteriaAtEnd,true,displayUsers,tru
e:SelectCriterion,elementExists,Yes,yes:MatchCriterion,approvalId,contains,CRQ1234
If hard dates are required as opposed to relative time ranges, the –D option can be used instead of a
RelativeTimeRangeCriterion. If one datetime string is specified, it will be interpreted as a ‘since
date’. If two datetime strings are found (comma-separated), they will be considered a range.
l systemlog_rpt
Option
(Short,Long Form)
Arguments Description
-R,--report If specified, TE Commander runs the specified report and restarts the Agent on
<name> all nodes listed in the report.
Supported report templates are:
Device Inventory Report
System Log Report
Nodes with Changes Report
Llast Node Check Status Report
-w,--nodegroup The name of a node group. The Agents on all nodes in this group will be
<name> restarted.
For example:
Option
(Short,Long Form)
Arguments Description
-d,--disable_days (Required) Disable all user accounts with at least this many days of inactivity.
<number>
-i,--inputfile (Optional) Full or relative path to a text file with a list of user account names to
<filePath> ignore.
-r,--remove_days (Required) Remove all user accounts with at least this many days of inactivity.
<number>
Option (Short,Long Form)
Arguments Description
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
For example:
Option (Short,Long Form)
Arguments Description
-t,--displayobject Display either the nodes associated with the log message (the
<nodes|messages> default) or the messages themselves.
This example searches for nodes with errors messages in the last 72 hours:
This example searches for “System” error messages in the last 12 hours:
The -i option can be used to specify an existing detailed changes report (in XML format) with a
list of versions whose version properties should be changed.
Option (Short,Long Form)
Arguments Description
-i,--inputfile The path to an existing Detailed Changes report in XML format that lists
<inputfile> versions with custom properties that should be changed.
For example:
Option (Short,Long Form)
Arguments Description
Option
(Short,Long Form)
Arguments Description
-i,--inputfile The path to an existing XML file listing nodes to have licenses changed.
<file>
Supported report types are: deviceinventory_rpt, systemlog_rpt,
nodeswithchanges_rpt, and lastnodecheckstatus_rpt.
-l,--options Options string listing which licenses to enable and disable for the selected nodes.
<text> The license types are Change Audit, Configuration Assessment, and Automated
Remediation.
-R,--report If specified, TE Commander will run the specified report and change the licenses
<name> for all nodes included in the report.
Supported report types are: deviceinventory_rpt, systemlog_rpt,
nodeswithchanges_rpt, and lastnodecheckstatus_rpt.
-w,--nodegroup Node group name. Any licensing changes will occur on ALL nodes in the node
<name> group hierarchy.
Option
(Short,Long Form)
Arguments Description
-i,--inputfile The path to an existing XML file listing nodes to have their status changed.
<inputfile>
Supported report templates are:
Device Inventory Report
System Log Report
Nodes with Changes Report
Llast Node Check Status Report
-R,--report If specified, TE Commander with run the specified report and change the status
<name> for all nodes included in the report.
Supported report templates are:
Device Inventory Report
System Log Report
Nodes with Changes Report
Llast Node Check Status Report
-w,--nodegroup Node group name. Any status changes will occur on ALL nodes in the node
<name> group hierarchy.
For example:
l If one or more nodes or node groups are specified, a local text variables will be set for all
of the specified node(s).
l If no node or node group is specified, a global variable will be set.
l If the -Y option is specified, a global password variable will be set.
Options are:
Option (Short,Long Form)
Arguments Description
Unlink (unlink)
The unlink command is used to unlink existing objects from an existing group of the same type.
Specify the object to unlink and the object group to be unlinked from. The key options for the
command are:
Option
(Short,Long Form)
Arguments Description
For example:
Option
(Short,Long Form)
Arguments Description
-a,--action Action to take if user does not exist in Active Directory but does in TE.
<action>
The sample script below performs the following actions on the sample nodes tw1.example.com,
tw2.example.com, and tw3.example.com:
1. Moves the nodes from the Discovered node group to a platform-related node group.
2. Links the nodes to the appropriate application-related node group(s).
3. Sets a custom node property that indicates whether or not the node is in a production
environment.
4. Changes the default node description to include the name of the application running on the
node.
Sample script: