Automation SoftwareAutomation Anywhere
  Home > Product > Solutions > IT Automation > T99  

T99 - Automate Windows Services - Check telnet service status and start telnet service if not started.

Task Description

While running terminal commands, telnet service must be in started. For the purposes of this we check whether telnet service is started or not, if not then we will start the telnet service.

Test File T99.atmn

Solutions
1 Create new task
  • Click on New -> Task Editor.
Service command
Screenshot 1

IF Variable
Screenshot 2

Start service
Screenshot 3


Task Editor
Screenshot 4
2 Insert service command to ‘Get Service Status’
  • Drag and drop services command.
  • Select ‘Get service status’ option.
  • Select Telnet service from the list.
  • Select the variable from the list.
  • Save the command.
3 Enter if condition to check whether the service is started or not.
  • Select $Prompt-Assignment$ in variable.
  • Select Equal to operation.
  • Select ‘Fix’ option.
  • Type ‘SERVICE STOPPED’
  • Save the command.
4 Insert services command to START service
  • Drag and drop services command.
  • Select ‘Start service’ option.
  • Select Telnet service from the list.
  • Save the command.
5 Enter Else if condition to check the service is paused or not.
  • Select $Prompt-Assignment$ in variable.
  • Select Equal to operation.
  • Select ‘Fix’ option.
  • Type ‘SERVICE PAUSED’
  • Save the command.
6 Insert services command to Resume Service
  • Drag and drop services command.
  • Select ‘Resume service’ option.
  • Select Telnet service from the list.
  • Save the command.
7 Insert all terminal commands which you want to run
8 Insert stop services command
  • After all the terminal commands put stop service command.
  • Drag and drop services command.
  • Select Stop service status option.
  • Select Telnet service from the list.
  • Save the command.
9 Save and Run the task

When you run this task, telnet service is started if it is not already started or paused. The service stops after executing all terminal commands.
10 How to run the task
  • In case you do not have Automation Anywhere installed, please download and install it from, http://www.automationanywhere.com/download/freeTrial.htm
  • Download T99.atmn to location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks
  • Launch Automation Anywhere and from Task List select T99.atmn and click on RUN button to run the task.

Buy Now Free Trial

Next Steps
Compare versions Compare versions
Watch a flash demo Watch a flash demo
Contact me Contact me
Ask the Expert Ask the Expert
Request live demo Request live demo

Call 1-888-484-3535

Our Customers
Automation Anywhere Customers
Customer list | Case Studies

We started using this product to copy data from legacy system to new system. Now we use it just to do about anything automated. Countless hours saved. Thank you guys.
- Jack Greenberg

Read Customer Testimonies >>
  Products     Download     Purchase     Services     Support     Customers     Company     Sitemap     Trademark FacebookTwitterAutomation Anywhere Blog © Automation Anywhere, Inc. 2012 Privacy Policy
Automation Anywhere Call: 1-888-484-3535 x1   

Automation Software - Free Trial Automation Software - Buy Now