Workflow Tasks

Tasks are are nothing but checks and actions that help you automate repeated IT actions.

Checks:
Checks are if-else condition based. If the condition is passed/satisfied, the workflow executes the set of actions associated on the success part, executes the other set of actions associated on the failure part. Example: Consider that you have created a workflow with Test a Service, Send Mail, and Start a Service tasks. Send Mail is associated on the success part of Test a Service, and Start a Service is assocated on the part. If the service is running, workflow executes Send Mail task to notify the admin that the service is running, else executes Start a Service task to start the service.

Actions:
An action just performs the said activity. Tasks such as start a service, delete file, reboot system are action tasks. If an action task is executed successfully, workflow executes the next successive task. If an action task fails, action task associated on the failure part is executed. Example: Consider that you have created a workflow with 2 action tasks  - Start Process and List All Process. List All Process is associated to the success part of the Start Process task. When the workflow is executed, in case if the Start Process task is failed, workflow looks for the task associated on the failure section. If no task is found, executes the task in the success section i.e., List All Process.

 

Conditions and Actions available in Workflow

Device
ChecksDescription
DNS LookupExecutes a DNS lookup command on the end device.
Ping DeviceSends ICMP packets to the end device.
Trace RouteExecutes a trace route command on the end device.
Actions 
Add a Time DelayAdds a delay to the execution of an action
Reboot SystemReboots the system
Shut Down SystemShuts down the system
  
Windows Service
Check 
Test a ServiceTests whether a service is running or not.
Actions 
Get Active ServicesProvides a list of service that are currently running.
Pause a ServicePauses a service.
Restart ServiceRestarts a service.
Resume a ServiceResumes a service.
Start a ServiceStarts a service.
Stop a ServiceStops a service.
  
Process
Check 
Test a ProcessTest whether a process is running or not.
Actions 
List All ProcessesLists all the processes that currently running.
Processes by Disk ReadLists processes by Disk Read.
Processes by Disk WriteLists processes by Disk Write.
Processes by Memory UsageLists processes by Memory usage.
Processes by CPU UsageLists processes by CPU usage.
Start ProcessStarts a process.
Stop ProcessStops a process.
  
HTTP & FTP
Check 
Check URLTest the availability of a URL.
Actions 
FTP Delete FileDeletes a file via FTP.
FTP Move FileMoves a file within the same remote device via FTP.
FTP Rename FileRenames a files via FTP.
FTP Upload FileWrites the given content in a file (.txt) and uploads it to the remote device via FTP.
HTTP Post Data/ResultPosts the output received upon querying an URL, in the workflow logs.
  
File
Checks 
Check FileChecks the availability of a file.
Get File SizeGets the size of a file.
Actions 
Compress FilesFiles are compressed with Windows Compression.
Compress Older FilesFiles which are not used for a long time are compressed with Windows Compression. You can configure the age of the files.
Copy FileCopies file to another directory within the same device.
Delete FileDeletes a file.
Delete Older FilesDeletes the files which are not used for a long time. Also deletes older files in sub folders. You can configure the age of the files.
Move FileMoves the files to another directory within the same device.
Move Older FilesMoves the files which are not used for a long time to another directory within the same device. You can configure the age of the files.
Rename FileRenames a file.
Uncompress FileUncompresses a file.
  
Folder
Checks 
Check Drive Free SpaceChecks for free space available in a drive.
Get Folder SizeGets the size of a folder.
Actions 
Compress FolderCompresses a folder.
Copy FolderCopies the folder to another local directory.
Create FolderCreates a folder.
Delete FolderDeletes a folder.
List FilesList the files available in a folder.
Move FolderMoves a folder to another location.
Rename FolderRenames a folder.
Uncompress FolderUncompresses a folder.
  
VMware
Actions 
Power Off VMTurns off the power to a VM.
Power On VMTurns on the power to a VM.
Reboot Guest OSRestarts a VM.
Refresh DatastoreRefreshes the datastore.
Reset VMResets a VM abruptly.
Shut Down Guest OSShuts down a VM.
Stand by Guest OSPuts a VM in the Stand By mode.
Suspend VMSuspends a VM.
  
OpManager Plus
Check 
Check Device StatusChecks the availability status of a device.
Actions 
Acknowledge AlarmAcknowledges an alarm.
Add Alarm NoteAdds a note to an alarm.
Clear AlarmClears an alarm.
Delete AlarmDeletes an alarm.
Exit MaintenanceMoves the device under maintenance mode to normal.
Generate AlarmGenerates an alarm in OpManager Plus.
Place on MaintenancePuts the device on maintenance mode.
Rediscover DeviceRediscovers a device.
Unacknowledge AlarmUnacknowledges an alarm.
  
External Actions
Actions 
Execute Another WorkflowExecutes another workflow as an action.
Execute Linux ScriptExecutes a script on the end Linux devices.
Execute Windows ScriptExecutes a script on the end Windows devices.
Log a Ticket (Remedy)Creates a ticket in BMC Remedy.
Log a Ticket (SDP)Creates a ticket in ManageEngine ServiceDesk Plus.
Send EmailSends a notification via Email. Ensure that you have configured Mail server settings.
Send Popup MessageSends a notification via a pop-up on the end device. At present Workgroup devices alone are supported.
Send SMSSends a notification via SMS. Ensure that you have configured SMS server settings.
  
NCM Actions
Actions 
BackupTakes backup of device configuration files
Execute CommandExecutes a command on the end device
Execute TemplateExecutes a template created in NCM Plug-in on the end device
Get Last N ChangesFetches the last N configuration changes made

 

 

DNS Lookup:
DNS Lookup executes a DNS lookup command on the end device and provides its status.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device. If no device is selected, it will be executed on the device selected in the Info tab.

 

 

Ping Device:

Sends ICMP packets to test whether the device is responding.

ParameterDescription
NameDisplay name for the task
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Number of requestsNumber of ping requests you want to send.
Packet SizeSize of the ping packets.
TimeoutTimeout interval for the ping requests.
RetriesNumber of retries for the ping operation.


 

Trace Route:

Executes a trace route command on the end device.

ParameterDescription
NameDisplay name for the task
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device.

 

 

Add a Time Delay:
Adds a delay to the execution of the subsequent operation.

ParameterDescription
NameDisplay name for the task.
DurationTime delay to carry out the subsequent task. You can configure time delay in hours, minutes, and seconds. Select the required one from the dropdown menu.

 

 

Reboot System:
Reboots a remote Windows machine.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device.

 

 

Shut Down System:

Logs off, shuts down, reboots or powers off a remote Windows device forcefully.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device. You can also log off by selecting the Log Off action from the dropdown.
OptionsSelect the action (Log off, Shut down, Reboot or Power off) that you want to carryout on the remote device.

 

 

Test a Service

Tests whether a service is running or not.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device. 
Service NameName of the service that you want to task whether it is running or not. Use the dropdown menu to select the service. If the service is not listed, use the discover icon to discover the services running the device.

Supported Variable:
${Alarm.ServiceName} - Select this option if you want to retrieve the service name from the alarm entity. If the workflow is triggered from the service down alarm, then this variable is replaced by the servicename from the alarm entity during runtime.
Note: If multiple services down alarm is triggered, this task will be executed for all those services.

 

 Get Active Services

Provides the list of active services running in the device.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device. 

 

 Pause/Restart/Resume/Start/Stop a Service

Pauses/Restarts/Resumes/Starts/Stops a service.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device. 
Service NameName of the service that you want to pause/restart/resume/start/stop. Use the dropdown menu to select the service. If the service is not listed, use the discover icon to discover the services running the device.

Supported Variable:
${Alarm.ServiceName} - Select this option if you want to retrieve the service name from the alarm entity. If the workflow is triggered from the service down alarm, then this variable is replaced by the servicename from the alarm entity during runtime.
Note: If multiple services down alarm is triggered, this task will be executed for all those services.

 

 Test a Process

Tests whether a process is running or not.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device.  
Process NameName of the process that you want to test. Either you can enter the process name right away (Eg.:mysqld-nt.exe) or you can use the select icon to select the process from the remote devices.
PathThis field is optional. If you want to match the path also, then check the checkbox near path field and specify the full executable path with process name. Otherwise leave this field empty.
Eg.: C:Program FilesMySQLMySQL Server 5.0binmysqld-nt.exe
ArgumentsThis field is also optional. If you want to match the arguments, then check the checkbox near arguments field and specify the arguments. Otherwise leave this field empty.
Eg.: --defaults-file="my.ini"

 

 List All Processes/Processes by Disk Read/Processes by Disk Write/Processes by Memory Usage/Processes by CPU Usage

Provides the list of active services, processes by disk read/disk write/Memory usage/CPU usage.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device.

 

 

Start Process

Starts a process.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device.
Start DirectoryThe directory from where you want to execute the process.
Process CommandCommand to start the process.

 

 

Stop Process

Stops a process running on a device.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select devices icon to select the device.
Process NameName of the process that you want to test. Either you can enter the process name right away (Eg.:mysqld-nt.exe) or you can use the select icon to select the process from the remote devices.
PathThis field is optional. If you want to match the path while terminating the process, then check the checkbox near path field and specify the full executable path with process name. Otherwise leave this field empty.
Ex: C:Program FilesMySQLMySQL Server 5.0binmysqld-nt.exe

Note:  If the checkbox is unchecked and multiple instance of process is running with the same name, all the processes will be terminated.
ArgumentsThis field is also optional. If you want to match the arguments when terminating the process, select the checkbox near arguments field and specify the arguments. Otherwise leave this field empty.
Ex: --defaults-file="my.ini"
Note:  If the checkbox is unchecked and multiple instance of process is running with the same name, all the processes will be terminated.

 

 

Check URL

Check whether the URL for its availability.

ParameterDescription
NameDisplay name for the task.
URL AddressAddress of the HTTP URL that has to be queried.

Supported Variables :
${Alarm.URLAddress} -  will retrieve the URLAddress from the alarm entity, if  workflow is triggered through alarm. Otherwise nothing will happen.
Form Method: Get or PostOpManager Plus tests the URL via Get or Post method. Select the appropriate condition.
Search and Match ContentThe content specified here is verified for its presence in the web page.
TimeoutTimeout interval for the URL. Default value is 25 seconds. Click on check now button to verify the URL.
URL Authorization DetailsProvide the username and password for URLs that require authentication.
Check NowChecks whether the URL is accessible with the entered details.

 

FTP Delete File

Deletes a file via FTP.

ParameterDescription
NameDisplay name for the task.
FTP ServerName of the FTP Server. You can enter the ftp server name directly or use '${DeviceName}' variable. '${DeviceName} will be replaced with the name device selected in the Info tab, during the workflow execution.
FTP UsernameUsername of the FTP server.
FTP PasswordPassword to connect to the FTP server.
File NameName of the file to be deleted. Enter the file name with the path.

 

FTP Move File

Move a file to another directory within the same system via FTP.

ParameterDescription
NameDisplay name for the task.
FTP ServerName of the FTP Server. You can enter the ftp server name directly or use '${DeviceName}' variable. '${DeviceName} will be replaced with the name device selected in the Info tab, during the workflow execution.
FTP UsernameUsername of the FTP server.
FTP PasswordPassword to connect to the FTP server.
File NameName of the file to be moved. Enter the file name with the path.
Destination FolderDestination folder where the file to has to be moved. Enter the path.

 

 

FTP Rename File

Renames a file via FTP.

ParameterDescription
NameDisplay name for the task.
FTP ServerName of the FTP Server. You can enter the ftp server name directly or use '${DeviceName}' variable. '${DeviceName} will be replaced with the name device selected in the Info tab, during the workflow execution.
FTP UsernameUsername of the FTP server.
FTP PasswordPassword to connect to the FTP server.
Source FileName of the file to be renamed. Enter the file name with the path. Eg.:/root/OpManagerPlus/backup/Backup_DB.zip
New NameNew name for the file. Eg.: Backup_DB_Old.zip

 

 

FTP Upload File

Writes the given content in a file (.txt) and uploads it to the remote device via FTP.

ParameterDescription
NameDisplay name for the task.
FTP ServerName of the FTP Server. You can enter the ftp server name directly or use '${DeviceName}' variable. '${DeviceName} will be replaced with the name device selected in the Info tab, during the workflow execution.
FTP UsernameUsername of the FTP server.
FTP PasswordPassword to connect to the FTP server.
DirectoryDirectory where the file has to be uploaded.
ContentContent/value that has to be uploaded

 

 

HTTP Post Data/Result

Posts the output received upon querying an URL, in the workflow logs.

ParameterDescription
NameDisplay name for the task.
URL AddressAddress of the HTTP URL that has to be queried.

Supported Variables :
${Alarm.URLAddress} -  will retrieve the URLAddress from the alarm entity, if  workflow is triggered through alarm. Otherwise nothing will happen.
Form Method: Get or PostOpManager Plus tests the URL via Get or Post method. Select the appropriate condition.
Search and Match ContentThe content specified here is verified for its presence in the web page.
TimeoutTimeout interval for the URL. Default value is 25 seconds. Click on check now button to verify the URL.
URL Authorization DetailsProvide the username and password for URLs that require authentication.
Check NowChecks whether the URL is accessible with the entered details.
Post DataThe content specified here will be displayed in the execution logs.

Supported Variables :
${URLAddress} - will replace the address specified in the URL Address field.
${Result} - will replace the response obtained from the URL Address.

 

 

Check File 

Checks the existence of a file in the specified path.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
File NameName of the file that has to be checked for its existence. Specify the file name with its path.

 

Get File Size
Checks the file for its size and execute tasks accordingly.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
File NameName of the file that has to checked for its size. Specify the file name with its path.
File SizeThe size of the file is compared with the value specified here. According to the condition (greater or lesser than) selected the actions are executed.

 

Compress File/Delete File

Compresses a file with Windows Compression/Deletes a file.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
File NameName of the file that has to be compressed/deleted. Specify the file name with its path.

 

Compress Older Files/Delete Older Files

Compresses older files with Windows Compression/deletes older files.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Folder NameFolder that contains the old files. Specify the folder path. Note: Delete older files option, deletes the older files in the sub folders also.
Files Older ThanFiles older than the specified number of months/days/hours are compressed/deleted.

 

 

Copy File/Move File

Copies/moves a file from one folder to another within the same computer.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
File NameName of the file that has to be copied/moved to another folder. Specify the file name with its path.You can use the wild card character * (eg.: stderr*.txt) to do the action on all the files. You can also enter multiple files separated by a comma.
Destination FolderName of the folder where the file has to be pasted/moved. Specify the folder path.

 

 

Move Older Files

Moves files that match the age specified to another folder.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Source FolderFolder that contains the old files. Specify the folder path.
Destination FolderFolder to which the old files have to be moved to.
Files Older ThanFiles older than the specified number of months/days/hours are moved.

 

 

Rename File

Renames a file. 

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Source File NameSpecify the source file name to be renamed
Eg.: C:Program FilesOpManagerPlusbackupBackup_DB.zip
New NameNew name for the file.
Eg.: Backup_DB_Old.zip

 

Uncompress File

Uncompresses a file that had been compressed with Windows Compression.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
File NameName of the file that has to be uncompressed. Specify the file name with its path. You can use the wild card character * (eg.: stderr*.txt) to do the action on all the files. You can also enter multiple files separated by a comma.

 

 

Check Drive Free Space

Checks the free space available in a drive.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Drive NameName of the drive that has to checked for free space.
Drive SizeThe size of the drive is compared with the value (GB/MB/KB) specified here. According to the condition (greater or lesser than) selected the actions are executed.

 

Check Folder Exists 

Checks the existence of a folder in the specified path.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
File NameName of the folder that has to be checked for its existence. Specify the folder path.

 

Get Folder Size

Checks the free space available in a drive.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Folder NameName of the folder that has to checked for its size.
Folder SizeThe size of the drive is compared with the value (GB/MB/KB) specified here. According to the condition (greater or lesser than) selected the actions are executed.

 

 

Compress /Uncompress/Delete Folder

Compresses/uncompresses/deletes a folder.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Folder NameFolder that has to be compressed/uncompressed/deleted. Specify the folder path.

 

 

Create Folder

Creates a folder in the computer.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Folder NameName of the folder that has to be created. Specify the folder name with its path.

 

 

Copy Folder/Move Folder

Copies/moves a folder to another folder within the same computer. 

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Folder NameName of the folder that has to be copied/moved to another folder. Specify the file name with its path.
Destination FolderName of the destination folder where the source folder has to be pasted/moved. Specify the folder path.

 

List Files

List the files available in a folder.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Folder NameName of the folder whose files has to be listed. Specify the folder path.

 

 

Rename Folder

Renames a folder.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Source FolderSpecify the source folder name to be renamed
Eg.: C:OpManagerPluslogs
New NameNew name for the folder.
Eg.: logs_old

 

Add Alarm Note

Adds note to an alarm.

ParameterDescription
NameDisplay name for the task.
NoteNote that has to be added to the alarm.

Supported Variables :
${Result} - will be replaced with the previously executed task's result.

 

Generate Alarm

Generates an alarm in OpManager Plus.

ParameterDescription
NameDisplay name for the task.
SourceNote that has to be added to the alarm.

Supported Variables :
${Result} - will be replaced with the previously executed task's result.
SeveritySelect the severity of the alarm.
MessageMessage that you want to display in the alarm.
Alarm Code Unique string used to trigger the event. Eg:-Threshold-DOWN
EntityUniquely identifies the failure object within the source.Events will be correlated into alarms according to the entity field. Multiple events with the same entity will be grouped as a single alarm.
Event TypeDescription of the event type

 

 

Execute Linux Script

Execute script on remote Linux machines and retrieves the output. Depending on the input, this script will either execute from OpManager Plus server or from remote machine. Its success/failure is decided based on its exit code. If the script returns with the exit code 0, then it is consider as success, any other value is consider as failure.

Eg.:For shell script,
            exit(0) --  Success
            exit(1)  -- Failure
            exit(-2) -- Failure

 

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Command LineSpecify the command used to execute the script.
Eg.: sh ${FileName} ${DeviceName} arg1
Here, ${FileName} variable is a must to execute the script. OpManager will replace this variable during runtime.

Supported Variables :
${DeviceName} - will replace the executing devicename during runtime.
${UserName} -   will replace the device username if already given for this device.
${Password} - will replace the device password if already given for this device.
Script BodyThe actual script that has to be executed.
AdvancedClick on Advanced button to configure the following fields.
Execute from Remote MachineIf this option is checked, the script is pushed to remote machine and will be executed. Otherwise it will be executed from OpManager Plus server.
Working DirectorySpecify the directory from where you want to execute the script.

Supported Variables :
${UserHomeDir}  - will replace the user's home directory during runtime.
${TempDir} - will replace device temp directory during runtime. Eg: /tmp
Response TimeoutTime to wait for the script to complete its execution. The default value given here is 60 seconds.

 

Execute Windows Script

Execute the script on remote Windows machines from OpManager Plus server and retrieves the output. Its success/failure is decided based on its exit code.
If the script returns with  the exit code 0, it is consider as success, any other value is consider as a failure.

Eg.: for VBscript:
           WScript.Quit(0) --  Success
           WScript.Quit(1)  -- Failure
           WScript.Quit(-2) -- Failure

 

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
Command LineSpecify the command used to execute the script.
Eg. : cscript ${FileName}.vbs ${DeviceName} ${UserName} ${Password} arg1
Here, ${FileName} variable is must to execute the script.  OpManager Plus will replace this variable during runtime.

Supported Variables :
${DeviceName} - will replace the executing devicename druing runtime.
${UserName} -   will replace the device username if already given for this device.
${Password} - will replace the device password if already given for this device.
Script BodyThe actual script that has to be executed.
AdvancedClick on Advanced button to configure the following fields.
Working DirectorySpecify the directory from where you want to execute the script.
Supported Variables :
${UserHomeDir}  - will replace the user's home directory during runtime.
${TempDir} - will replace OpManager Plus temporary directory during runtime.  
Response TimeoutTimeout interval for the response from the device for the script execution status.

 

Log a Ticket (Remedy)

Logs a ticket in BMC Remedy.

ParameterDescription
NameDisplay name for the ticket.
From Email IDEmail ID of the sender.
Service Desk Mail IDEmail ID of BMC Remedy service desk.
ImpactSelect the impact level of the ticket.
UrgencySelect the severity of the ticket.
SummaryAdd summary for quick understanding of the issue reported.
DescriptionDescribe the issue.

 

Log a Ticket (SDP)

Logs a ticket in ManageEngine ServiceDesk Plus. Ensure that ServiceDesk Plus is integrated with OpManager.

ParameterDescription
NameDisplay name for the ticket.
CategorySelect the appropriate category for the ticket.
Sub CategorySelect the appropriate sub category.
ItemSelect the appropriate item.
PrioritySelect the priority level of the ticket.
GroupSelect the group.
TechnicianSelect the technician to whom you want to assign the ticket.
TitleSubject of the ticket. You can use variables.
DescriptionDescribe the issue. You can use variables.

 

Send Mail

Sends a mail to the email IDs specified. This is useful to notify the result/completion of a task in the workflow.

ParameterDescription
NameDisplay name for the task.
From Email IDEmail ID of the sender.
To Mail IDEmail ID of of the recipients.
Mail FormatEmail can be sent in plain text or html or in both the formats. Select the required format.
SubjectSubject of the email.You can use variables.
MessageContent of the email. You can use variables.

 

Send Popup Message

Opens a popup window with the given message on remote computers.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
MessageMessage that has to be displayed in the popup.

 

Send SMS

Sends SMS notifications to the mobile number specified. This is useful to notify the result/completion of a task in the workflow.

ParameterDescription
NameDisplay name for the task.
Destination DeviceDevice on which the task has to be executed. Click on the select device icon to select the device or use ${DeviceName} variable. ${DeviceName} will be replaced with the name of the device that is selected in the Info-> Devices, during the workflow execution.
MessageMessage that has to be sent as an SMS. Message should not exceed 160 characters.


Variables:
Variables are used to append dynamic values in a field of a task. Following are the variables:
${DeviceName} - Name of the device to which workflow has to be associated. Can be used in all fields
${WorkflowName} - Name of the Workflow that is to triggered. Can be used in all fields.
${Result} - Result of previous task.
${Alarm.ServiceName} - Name of the service for which an alarm is raised.
${URLAddress} - URL address
${Alarm.URLAddress} - URL address for which an alarm is raised.
${UserName} - Username of the device.
${Password} - Password of the device.
${Device.DisplayName} - Display name of the device for which an alarm is raised.
${Alarm.ProcessName} - Name of the process for which an alarm is raised.

Using Variables
Variables can be better understood with an example. Following is the workflow that has to be triggered as an action whenever a service down alarm is raised.


Task1: 'Test a service' task is created to test the service that is down. When the workflow is triggered, the variable ${Alarm.ServiceName`} is replaced with the name of the service that has gone down. ${DeviceName} is replaced with the name of device

.Screen Shot 2018-05-03 at 1.45.42 PM

Task 2: The result of previous task (service up or down) is added as notes to the alarm using ${Result} variable.

Screen Shot 2018-05-03 at 1.47.32 PM

 

Video Zone
OpManager Customer Videos
Michael Senatore, Operations Manager, Rojan Australia Pty Ltd.
  
  •  Venkatesan Veerappan, IT Consultant
     Mohd Jaffer Tawfiq Murtaja, Information Security officer from Al Ain sports club
  •  Jonathan ManageEngine Customer
     IT Admin from "Royal flying doctor service", Australia
  •  Michael Senatore, Operations Manager, Rojan Australia Pty Ltd.
     Michael - Network & Tech, ManageEngine Customer
  •  Altaleb Alshenqiti - Ministry of National Guard - Health Affairs
     Donald Stewart, IT Manager from Crest Industries
  •  John Rosser, MIS Manager - Yale Chase Equipment & Services
     David Tremont, Associate Directory of Infrastructure,USA