This Universal Task and associated Task Templates provides a dynamic File Monitoring and File Transfer solution for containerized applications running in any container management solution (for example: OpenShift, Kubernetes).
For containers running a Universal Agent, or for application pods with a sidecar container running a Universal Agent, the container file system can be dynamically monitored and files automatically transferred from the container file system.
Dynamically creates and enables an Agent File Monitor Trigger each time specific containers are started.
Transfer files from the containers.
Cleanup Agent File Monitor Triggers each time specific containers are stopped.
This solution-pack requires a Universal Agent and a Python runtime to execute the Universal Task.
Universal Agent for Windows x64 Version 7.0.0 and later with python options installed
Universal Agent for Linux Version 22.214.171.124 and later with python options installed
Software Requirements for Universal Controller
Universal Controller Version 126.96.36.199 and later
Software Requirements for the Application to be Scheduled
The requests Python module is used to make API call to a Universal Controller instance.
Dynamic container File Monitoring and File Transfers can be achieved with this Universal Task and its associated Task Templates by simply configuring the containerized Universal Agents as Transient and ensuring that they register with a specific Agent Cluster.
Each time the Container File Monitor Universal Task runs, it lists the members of the specified Agent Cluster, and for each member Agent performs the functions detailed in the following flowchart.
Customers must make sure that the Universal Task is executed on a schedule that suits their requirements for how often they need to check whether new containerized Agents have been started or stopped.
This can be done by either:
Simple Time Trigger based on the desired interval.
Using a Recurring Task (requires Universal Controller 6.9.x or higher) to provide a loop function.
Import Universal Template
To use the Universal Template, you first must perform the following steps:
Universal Controller Credential, specified user will need the following access rights:
Read Access to the specified Agent Cluster
Ability the delete the container Agents
Ability to Create, Enable, Disable and Delete Agent File Monitors, File Transfer Tasks, and Agent File Monitor Triggers that are members of the Business Service specified in the Monitor Task Business Service field.
Monitor Task Business Service
Business Service required for the generated UDM File Transfer Task, Agent File Monitor Task, and Agent File Monitor Trigger definitions.
Agent Cluster Name
Agent Cluster to Monitor.
Path on the Container to Monitor; that is /tmp/*.txt or /tmp. This value is passed to the template Agent File Monitor Task
Destination Agent Name
Destination Agent for the UD File Transfer. This value is used in the generated UDM File Transfer Task.
Destination Credential for File Transfer. This value is used in the generated UDM File Transfer Task.
Destination Path for File Transfer. This value is used in the generated UDM File Transfer Task.
Example for Container File Monitoring Universal Tasks