0% found this document useful (0 votes)
36 views7 pages

System Variables - Specific To System SettingsParameters - 1-30-2019

This document discusses system variables in Automation Anywhere Enterprise that return system-related settings and parameters. It provides examples of common system variables like $Machine$, $CPUUsage$, $TotalRAM$, and $AAApplicationPath$ and how they can be used to log performance data, task execution details, and more. Steps are provided on how to select these special system variables through the variable picker.

Uploaded by

nanda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views7 pages

System Variables - Specific To System SettingsParameters - 1-30-2019

This document discusses system variables in Automation Anywhere Enterprise that return system-related settings and parameters. It provides examples of common system variables like $Machine$, $CPUUsage$, $TotalRAM$, and $AAApplicationPath$ and how they can be used to log performance data, task execution details, and more. Steps are provided on how to select these special system variables through the variable picker.

Uploaded by

nanda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Automation Anywhere Enterprise

Automation Anywhere Enterprise

Automation Anywhere Enterprise 1


Legal Notices
© 2019 Automation Anywhere Software, LLC. All Rights Reserved.

Automation Anywhere and the Automation Anywhere logo are trademarks owned by Automation Anywhere
Software,

The information contained in this documentation is proprietary and confidential.Your use of this information and
Automation Anywhere Software products is subject to the terms and conditions of the applicable End-User
License Agreement and/or Nondisclosure Agreement and the proprietary and restricted rights notices included
therein.

You may print, copy, and use the information contained in this documentation for the internal needs of your
user base only. Unless otherwise agreed to by Automation Anywhere and you in writing, you may not otherwise
distribute this documentation or the information contained here outside of your organization without obtaining
Automation Anywhere’s prior written consent for each such distribution.

Contact Automation Anywhere

Automation Anywhere Enterprise


Contents

Contents
System Variables - Specific to System Settings/Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Automation Anywhere Enterprise


Automation Anywhere Enterprise

System Variables - Specific to System Settings/


Parameters
You can use system-related system variables to include parameters in your automation task that are
related to a particular computer.

The variables return actual system settings and parameters, such as RAM, CPU/RAM usage, and total
RAM.

Common Use Case


These variables are useful when the performance of a system needs to be tracked during an activity; for
instance load testing.
The following matrix provides description and the system variable's possible uses:

Variable Description Example


You can use it in Log to File command to log the
Machine Returns machine name name of the machine on which the Bot was
executed.
You can use it in Clipboard to copy or in Message
Clipboard Returns clipboard text data command to display the text that is copied to the
clipboard.
You can use it in Log to File command to log the
System Returns name of the system
name of the system on which the Bot was executed.

Automation Anywhere Enterprise 4


Automation Anywhere Enterprise

Variable Description Example


Returns the application path You can use it in Run Task command to select the
AAApplicationPath
of the product task from an application path.
You can use it in Message command to display or in
Returns the installation path
AAInstallationPath Log to File command to log the installation path of
of the product
AAE Client.
Returns the name of the You can use it in Comment/Message command to
AATaskName task being played along with display the name of the task with its application
its path path.
Returns the name of the
user who executed the task You can use it in a notification to know who executed
AATaskExecutor
from the Client or Control the automation and from where did it originate.
Room
Returns the URL of the You can use it in Email Automation command to
AAControlroom Control Room the Bot is send the URL of the Control Room the Bot Runner
connected to is connected to.
You can use it in Log to File command to log data of
Returns the CPU usage
CPUUsage CPU usage for a particular operation within the Bot
stats in percentage
(Task) while it was executed.
You can use it in Log to File command to log data of
Returns the RAM usage
RAMUsage RAM usage for a particular operation within the Bot
stats in MB
(Task) while it was executed.
Returns the total amount of You can use it in Log to File command to log data of
TotalRAM
RAM in MB Total RAM available in the system.
You can use it in Log to File command to log the
Returns the name of the
OSName name of the Operating System (OS) used in the
Operating System
system on which a Bot (Task) was executed.
You can use it in If command with variable
Returns the number of rows
ArrayRows conditions based on the number of rows in the Array
for selected Array Variable
Variable.
Returns the number of You can use it in If command with variable
ArrayColumns columns for selected Array conditions based on the number of columns in the
Variable Array Variable.
Returns the data in read
You can use it only in the Insert Work Item
only form for individual
WorkItem command when you want to read attributes of the
attributes of a selected
selected queue.
queue

Note: When you select the System variable, a menu is displayed from which you can select the
specific system variable (see steps below).

Steps to select System Related Variables:

1. Click F2 and you will see Insert Variable window.

Automation Anywhere Enterprise 5


Automation Anywhere Enterprise

2. Select the required variable and click Insert.

Note: Don't confuse System Related Variables with System Variables. To select System
from System Related Variables, refer the following section.

Steps to select System from System Related Variables

1. Click F2 and you will see Insert Variable window.

2. Select System and click Insert, a pop up window for System Variable Option is displayed.

3. Click OK and insert the system variable.

Troubleshooting an error
Error: If you use the $CPUUsage$ variable in a message box and an error message is issued, you need
to reset the counter for the system by performing the following action:
Open a command prompt and enter the following two commands:
cd\windows\system32 [enter]
lodctr /R [enter]

Automation Anywhere Enterprise 6


Automation Anywhere Enterprise

Examples
When creating an executable file (EXE) for a task, you might want to use the path of the EXE to log a file
or refer to a file located in a folder. In this case, use the AAApplicationPath variable to select the path of
the EXE from any location in which it is stored. This eliminates the need to use static paths for EXEs.

1. The following command stores the current application path in a log file. Drag and drop a Log To File
command to your task, and press the F2 key to insert $AAApplicationPath$ variable:
Log to File:Automation Anywhere Application Path:$AAApplicationPath$ in "C:\Variable
2. The following command stores the current RAM usage and CPU usage in a log file. Drag and drop a
Log To File command to your task, and press the F2 key to insert $RAMUsage$ and $CPUUsage$
variables.
Log to File: CPU Usage:$CPUUsage$RAM Usage:$RAMUsage$ in "C:\Variable Operation.txt"
3. The following command stores the current Task path in a log file. Drag and drop a Log To File
command to your task, and press the F2 key to insert $AATaskName$ variable.
Log to File:Automation Anywhere Application Path:$AATaskName$ in "C:\Variable Operati

Automation Anywhere Enterprise 7

You might also like