SlideShare a Scribd company logo
Mule Tcat Server
Automating Tasks
Shanky Gupta
Introduction
 The Admin shell allows you to easily build and install your own
extensions for Tcat Server by writing scripts. You can then run the
scripts on startup or schedule them using a cron-like scheduling
mechanism. The scripts are written using the Java-like Groovy
scripting language.
 By default, the Tcat Server includes two scheduled scripts:
 Heartbeat: pings all your servers looking for unregistered Tcat Server
instances. You should not need to modify this script.
 Usage Statistics: sends anonymous information to MuleSoft.
Creating a Script
 To create a script, go to the Administration tab, click Admin Shell, and enter
your script. For example, you could enter the following text:
 You can then click Evaluate to run the script once. If it works without any
errors, you can save the script to you can schedule it to run as a scheduled
job. To save the script, enter a unique name for it, and click Save. If you
always want this script to run when Tcat Server starts, click Run on startup.
 To use an existing script as a template for a new script, click the existing
script on the right side of the screen, make your modifications, click Save As,
and enter a new name for the script.
println "Hello"
Modifying a Script
 To edit an existing script, click its name on the right side of the
screen, make the modifications, and click Save. At any time, you can
click Reset to return to the last saved version of the script.
 To delete a script, click it on the right side of the screen, and then
click Delete.
Scheduling a Script
 You can use the scheduler to periodically run your script, which is
useful for jobs such as replication.
Creating a Scheduled Job
 To create a scheduled job:
 On the Administration tab, click Scheduler, and click New.
 Select the script to run.
 Enter a unique name and description for the scheduled job.
 Enter a Cron Command Syntax to specify when the script should be
run.
 To allow this script to be run even if the last execution of the script
is still running, click Allow Concurrent Execution.
 Click Save.
Deleting a Scheduled Job
 To delete a scheduled job:
 Click Scheduler on the Administration tab.
 Click the scheduled job you want to delete.
 Click Delete, and then click OK to confirm you want to delete
this job.
Cron Command Syntax
 You use the following syntax when specifying the cron command:
Field Name Mandatory Allowed Values Allowed Special
Characters
Seconds YES 0-59 , - * /
Minutes YES 0-59 , - * /
Hours YES 0-23 , - * /
Day Of Month YES 0-31 , - * / L W
Month YES 1-12 or JAN-DEC , - * /
Day Of Week YES 1-7 or SUN-SAT , - * / L #
Year NO empty, 1970-2099 , - * /
Cron command – special characters
 Following is a description of the special characters:
Character Description
, Separates individual values, such as 0,30 in the minutes position to run the job on the hour and
half hour.
- Specifies a range of values, such as MON-FRI in the Day Of Week position to run the job each
day of the work week.
* Specifies all values for that position, such as every day of the week when * is specified in the
Day Of Week position.
? Skips setting a value for that position. Since Day of Week and Day of Month are mutually
exclusive, always use ? in one of these fields and specify * or a specific value for the other.
/ Specifies increments, such as every fifteen seconds starting on the first second of each minute
when 1/15 is specified in the Seconds position.
L Specifies the last day of the month or week, depending on the position.
W Specifies the weekday nearest the specified day, such as running the job on the weekday
closest to the third of the month when 3W is specified in the Day of Month position.
# Specifies a day of the week as it occurs in the month, such as running the job the second Friday
of every month by specifying 6#2 in the Day of Week position (where 6 is the sixth day of the
week, or Friday, and #2 specifies the second occurrence of that day in the month).
Cron examples - I
Command Description
0 0 12 * * ? 12pm (noon) every day. Note that no year is specified,
because the year position is optional.
0 15 10 ? * *
0 15 10 * * ?
0 15 10 * * ? *
0 15 10 * * ? ?
Any of these commands runs the job at 10:15am every
day
0 0/5 14 * * ? Every 5 minutes starting at 2pm and ending at 2:55pm,
every day
Cron examples - II
Command Description
0 0/5 14,18 * * ? Fire every 5 minutes starting at 2pm and
ending at 2:55pm, AND fire every 5
minutes starting at 6pm and ending at
6:55pm, every day
0 0/5 14-16 * * ? Every 5 minutes starting at 2pm and
ending at 4:55pm, every day
0 10,44 14 ? 3 WED 2:10pm and 2:44pm every Wednesday
in March
0 15 10 ? * 6L 2010-2012 10:15am on the last Friday of every
month during the years 2010, 2011, and
2012

More Related Content

DOCX
6.develop a synchronous service for caliculation of factorial of a given number
PDF
A short guide to git's interactive rebase
PDF
Delphi L07 Controls at Runtime P1
PPTX
Mule tcat server - common problems and solutions
PPTX
Creating debian package in mule apps 1
PPTX
Probability Problems
DOCX
Rúbrica para Byron y Espronceda
PPT
Mule anypoint workday-connectors
6.develop a synchronous service for caliculation of factorial of a given number
A short guide to git's interactive rebase
Delphi L07 Controls at Runtime P1
Mule tcat server - common problems and solutions
Creating debian package in mule apps 1
Probability Problems
Rúbrica para Byron y Espronceda
Mule anypoint workday-connectors

Viewers also liked (20)

DOCX
Θερμικες ζωνες- Διαφορα ωρας
PPTX
Mulesoft Solutions for SOA
PDF
Flaky tests and bugs in Apache software (e.g. Hadoop)
PPTX
Cloudhub fabric
PPTX
Mule tcat server - deploying applications
PPTX
Mule with velocity
PPTX
Mule access management - Managing Environments and Permissions
PPTX
Configuring Anypoint Studio MQ connector
PPTX
Carnival Εύχαρις Σιγανού
PPTX
Anypoint access management - Roles
PPTX
Mule message structure
PPTX
Receiving christmas cards from our bean's partners (1)
PPTX
Mule tcat server - Server profiles
PDF
PPTX
MUnit run and wait scope
PPTX
Mule agent notifications
PPTX
10-minuten Presentatie BNI
PPTX
MuleSoft CloudHub FAQ
PPTX
MUnit matchers
PPTX
Mule testing
Θερμικες ζωνες- Διαφορα ωρας
Mulesoft Solutions for SOA
Flaky tests and bugs in Apache software (e.g. Hadoop)
Cloudhub fabric
Mule tcat server - deploying applications
Mule with velocity
Mule access management - Managing Environments and Permissions
Configuring Anypoint Studio MQ connector
Carnival Εύχαρις Σιγανού
Anypoint access management - Roles
Mule message structure
Receiving christmas cards from our bean's partners (1)
Mule tcat server - Server profiles
MUnit run and wait scope
Mule agent notifications
10-minuten Presentatie BNI
MuleSoft CloudHub FAQ
MUnit matchers
Mule testing
Ad

Similar to Mule tcat server - automating tasks (20)

DOCX
Linux crontab
PPT
CRON SYSTEM.ppt is powerpoint presentation
PDF
Lecture Notes Unit5 chapter 15 PL/SQL Programming
PPTX
SAP BASIS Training in Chennai Demo Part-4
PPTX
Cronjob
PDF
cronjob-180822194232-1.pdf
PPTX
Js tutorial(Basic concepts, running a program ,console,variable,types etc..)
DOCX
Oracle pl sql
DOCX
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
PDF
maXbox Blix the Programmer
PPTX
MICROSOFT PROJECT TUTORIAL
PPTX
Compose Camp - Session3.pptx
DOC
Project two c++ tutorial
PDF
Bert Zuurke - A Lean And Mean Approach To Model-Based Testing - EuroSTAR 2010
PDF
eTimeTrackLite_Desktop_manual.pdf
DOC
Basic Debugging
DOC
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
PDF
Programming in Oracle with PL/SQL
PDF
ABAP for Beginners - www.sapdocs.info
DOCX
Scheduling bods jobs sequentially and conditionally
Linux crontab
CRON SYSTEM.ppt is powerpoint presentation
Lecture Notes Unit5 chapter 15 PL/SQL Programming
SAP BASIS Training in Chennai Demo Part-4
Cronjob
cronjob-180822194232-1.pdf
Js tutorial(Basic concepts, running a program ,console,variable,types etc..)
Oracle pl sql
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
maXbox Blix the Programmer
MICROSOFT PROJECT TUTORIAL
Compose Camp - Session3.pptx
Project two c++ tutorial
Bert Zuurke - A Lean And Mean Approach To Model-Based Testing - EuroSTAR 2010
eTimeTrackLite_Desktop_manual.pdf
Basic Debugging
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Programming in Oracle with PL/SQL
ABAP for Beginners - www.sapdocs.info
Scheduling bods jobs sequentially and conditionally
Ad

More from Shanky Gupta (17)

PPTX
Mule: Munit domain support
PPTX
Mule tcat server - Monitoring a server
PPTX
Mule tcat server - Monitoring applications
PPTX
Mule management console Architecture
PPTX
CloudHub networking guide
PPTX
Using mule with web services
PPTX
Mule management console
PPTX
Cloudhub and Mule
PPTX
Mule Security
PPTX
Anypoint access management - Users
PPTX
Anypoint access management
PPTX
The Mule Agent
PPTX
MUnit - Testing Mule
PPTX
Cloud hub scalability and availability
PPTX
Cloud hub architecture
PDF
OAuth 2.0 authorization
PDF
OAuth 2.0 authentication
Mule: Munit domain support
Mule tcat server - Monitoring a server
Mule tcat server - Monitoring applications
Mule management console Architecture
CloudHub networking guide
Using mule with web services
Mule management console
Cloudhub and Mule
Mule Security
Anypoint access management - Users
Anypoint access management
The Mule Agent
MUnit - Testing Mule
Cloud hub scalability and availability
Cloud hub architecture
OAuth 2.0 authorization
OAuth 2.0 authentication

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
A Presentation on Artificial Intelligence
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Modernizing your data center with Dell and AMD
PPT
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
Understanding_Digital_Forensics_Presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Agricultural_Statistics_at_a_Glance_2022_0.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Monthly Chronicles - July 2025
A Presentation on Artificial Intelligence
The AUB Centre for AI in Media Proposal.docx
Review of recent advances in non-invasive hemoglobin estimation
Dropbox Q2 2025 Financial Results & Investor Presentation
Modernizing your data center with Dell and AMD
Teaching material agriculture food technology

Mule tcat server - automating tasks

  • 1. Mule Tcat Server Automating Tasks Shanky Gupta
  • 2. Introduction  The Admin shell allows you to easily build and install your own extensions for Tcat Server by writing scripts. You can then run the scripts on startup or schedule them using a cron-like scheduling mechanism. The scripts are written using the Java-like Groovy scripting language.  By default, the Tcat Server includes two scheduled scripts:  Heartbeat: pings all your servers looking for unregistered Tcat Server instances. You should not need to modify this script.  Usage Statistics: sends anonymous information to MuleSoft.
  • 3. Creating a Script  To create a script, go to the Administration tab, click Admin Shell, and enter your script. For example, you could enter the following text:  You can then click Evaluate to run the script once. If it works without any errors, you can save the script to you can schedule it to run as a scheduled job. To save the script, enter a unique name for it, and click Save. If you always want this script to run when Tcat Server starts, click Run on startup.  To use an existing script as a template for a new script, click the existing script on the right side of the screen, make your modifications, click Save As, and enter a new name for the script. println "Hello"
  • 4. Modifying a Script  To edit an existing script, click its name on the right side of the screen, make the modifications, and click Save. At any time, you can click Reset to return to the last saved version of the script.  To delete a script, click it on the right side of the screen, and then click Delete.
  • 5. Scheduling a Script  You can use the scheduler to periodically run your script, which is useful for jobs such as replication.
  • 6. Creating a Scheduled Job  To create a scheduled job:  On the Administration tab, click Scheduler, and click New.  Select the script to run.  Enter a unique name and description for the scheduled job.  Enter a Cron Command Syntax to specify when the script should be run.  To allow this script to be run even if the last execution of the script is still running, click Allow Concurrent Execution.  Click Save.
  • 7. Deleting a Scheduled Job  To delete a scheduled job:  Click Scheduler on the Administration tab.  Click the scheduled job you want to delete.  Click Delete, and then click OK to confirm you want to delete this job.
  • 8. Cron Command Syntax  You use the following syntax when specifying the cron command: Field Name Mandatory Allowed Values Allowed Special Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23 , - * / Day Of Month YES 0-31 , - * / L W Month YES 1-12 or JAN-DEC , - * / Day Of Week YES 1-7 or SUN-SAT , - * / L # Year NO empty, 1970-2099 , - * /
  • 9. Cron command – special characters  Following is a description of the special characters: Character Description , Separates individual values, such as 0,30 in the minutes position to run the job on the hour and half hour. - Specifies a range of values, such as MON-FRI in the Day Of Week position to run the job each day of the work week. * Specifies all values for that position, such as every day of the week when * is specified in the Day Of Week position. ? Skips setting a value for that position. Since Day of Week and Day of Month are mutually exclusive, always use ? in one of these fields and specify * or a specific value for the other. / Specifies increments, such as every fifteen seconds starting on the first second of each minute when 1/15 is specified in the Seconds position. L Specifies the last day of the month or week, depending on the position. W Specifies the weekday nearest the specified day, such as running the job on the weekday closest to the third of the month when 3W is specified in the Day of Month position. # Specifies a day of the week as it occurs in the month, such as running the job the second Friday of every month by specifying 6#2 in the Day of Week position (where 6 is the sixth day of the week, or Friday, and #2 specifies the second occurrence of that day in the month).
  • 10. Cron examples - I Command Description 0 0 12 * * ? 12pm (noon) every day. Note that no year is specified, because the year position is optional. 0 15 10 ? * * 0 15 10 * * ? 0 15 10 * * ? * 0 15 10 * * ? ? Any of these commands runs the job at 10:15am every day 0 0/5 14 * * ? Every 5 minutes starting at 2pm and ending at 2:55pm, every day
  • 11. Cron examples - II Command Description 0 0/5 14,18 * * ? Fire every 5 minutes starting at 2pm and ending at 2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55pm, every day 0 0/5 14-16 * * ? Every 5 minutes starting at 2pm and ending at 4:55pm, every day 0 10,44 14 ? 3 WED 2:10pm and 2:44pm every Wednesday in March 0 15 10 ? * 6L 2010-2012 10:15am on the last Friday of every month during the years 2010, 2011, and 2012