Skip to content

Automated Network Task Scheduling in rConfig V8

Scheduled Tasks for Network Automation in rConfig V8

Section titled “Scheduled Tasks for Network Automation in rConfig V8”

Scheduled Tasks in rConfig automate recurring operations such as configuration backups, policy compliance checks, snippet deployment, system maintenance, and integration synchronization. Tasks execute at configured intervals, eliminating manual intervention for routine network management operations. This automation ensures consistent configuration capture, timely compliance validation, and systematic infrastructure maintenance across your entire network estate.

Configuration automation: Schedule regular device backups by device, category, or tag at intervals matching your change management requirements—hourly for critical infrastructure, daily for standard devices, or custom schedules for specific needs.

Compliance enforcement: Automate policy compliance checks to continuously validate network configurations against organizational standards, detecting drift immediately rather than during manual audits.

Operational efficiency: Deploy configuration snippets on schedules, synchronize external integrations automatically, and perform system maintenance tasks without administrator intervention.

Flexibility and control: Tasks can target individual devices, entire categories, or tagged device groups, with the ability to pause, modify, or manually trigger any task without disrupting schedules.

rConfig uses Laravel’s task scheduler and queue system for task execution:

  1. Scheduler: Evaluates task schedules every minute, queuing tasks that are due to run
  2. Queue system: Processes queued tasks through Horizon queue manager, providing visibility into execution status
  3. Background processing: Tasks execute asynchronously without blocking web interface or other operations
  4. Logging: All task executions are logged for audit trails and troubleshooting

This architecture ensures reliable task execution even during high-load periods, with automatic retry mechanisms for transient failures.

Navigate to Tasks → Scheduled Tasks to access the task management interface. The main view displays all configured tasks with their schedules, last execution times, and status.

Scheduled Tasks main view showing task list with status and controls Tasks Main View

Run any task immediately without waiting for its scheduled time by clicking Run Now next to the task. This is useful for:

  • Testing newly created tasks
  • Performing on-demand backups before maintenance
  • Validating task configuration
  • Running tasks outside normal schedules

Monitoring manual execution: View task progress and results in the Horizon Queue Manager. Horizon provides real-time status updates, job completion details, and failure information.

Click Add Task to create new scheduled tasks. The creation process varies by task type but follows a consistent pattern.

  1. Select task type from available options
  2. Configure schedule using cron expression or visual scheduler
  3. Select targets (devices, categories, tags) based on task type
  4. Configure task-specific options as needed
  5. Save and enable the task

Testing new tasks: After creation, use Run Now to verify task executes correctly before relying on scheduled execution.

The table below details each task type and its configuration options.

#Task TypeDescriptionConfiguration Options
1Config Downloads - DevicesDownload configurations at scheduled intervals for selected devicesSelect specific devices, set schedule
2Config Downloads - CategoriesDownload configurations at scheduled intervals for device categoriesSelect categories, set schedule
3Config Downloads - TagsDownload configurations at scheduled intervals for tagged devicesSelect tags, set schedule
4Config Downloads - Policy ComplianceRun Policy Compliance checks as configured in Compliance AssignmentsSelect compliance assignment, set schedule
5Send Snippets - DevicesDeploy configuration snippets to selected devicesSelect devices and snippets, set schedule
6Send Snippets - CategoriesDeploy configuration snippets to device categoriesSelect categories and snippets, set schedule
7Send Snippets - TagsDeploy configuration snippets to tagged devicesSelect tags and snippets, set schedule
8Other Tasks - Full System BackupCreate complete system backup including database and configurationsSet schedule only (no additional options)
9Other Tasks - Clean BackupsClean temporary backup files and optimize storageSet schedule only (no additional options)
10Other Tasks - Purge Old ConfigsRemove configuration files older than specified retention periodSet number of days for retention, set schedule
11Other Tasks - Archive System LogsArchive system logs older than specified periodSet days or row count for archival, set schedule
12Other Tasks - Integration JobExecute specific integration synchronization jobSelect integration to run, set schedule
13API Collections - API CollectionsRun downloads for specific API collection configurationsSelect API collection, set schedule

Purpose: Automate regular configuration backups for devices, categories, or tags.

Configuration:

  • Target selection: Choose devices, categories, or tags to backup
  • Schedule: Set frequency (hourly, daily, weekly, custom cron)
  • Command execution: Tasks execute configured commands for target devices
  • Output storage: Configuration files saved with timestamps for versioning

Best practices:

  • Schedule critical devices for hourly backups
  • Use daily backups for standard infrastructure
  • Group devices by change frequency using tags
  • Stagger backup times to distribute system load

Example schedule: Daily backups at 2 AM for production routers:

0 2 * * *

Purpose: Automate policy compliance validation against device configurations.

Configuration:

  • Compliance assignment: Select pre-configured compliance policy assignment
  • Schedule: Set validation frequency
  • Reporting: Results stored and available in compliance reports
  • Notifications: Configure alerts for compliance failures

Best practices:

  • Run compliance checks after backup tasks complete
  • Schedule checks daily for critical compliance policies
  • Review compliance reports regularly
  • Configure notifications for immediate awareness of violations

Workflow: Task runs → Configurations evaluated against policies → Results logged → Notifications sent (if configured)

Purpose: Automate deployment of configuration changes or standardized settings.

Configuration:

  • Target selection: Devices, categories, or tags to receive snippets
  • Snippet selection: Choose which configuration snippets to deploy
  • Schedule: Set deployment frequency
  • Execution: Snippets deployed during task run

Best practices:

  • Test snippets manually before scheduling deployment
  • Use maintenance windows for production deployments
  • Deploy to small device groups first, then expand
  • Monitor deployment logs for failures

Use cases:

  • Deploy standardized NTP configurations weekly
  • Update SNMP community strings on schedule
  • Apply security baseline configurations quarterly
  • Roll out DNS server changes systematically

Purpose: Automate system housekeeping operations.

Full System Backup:

  • Creates complete backup of rConfig system
  • Includes database, configuration files, and system settings
  • No additional configuration required beyond schedule
  • Critical for disaster recovery planning

Clean Backups:

  • Removes temporary files and optimizes storage
  • Reclaims disk space from incomplete or failed backups
  • Schedule weekly or monthly based on system activity

Purge Old Configs:

  • Removes configuration files older than specified retention period
  • Frees storage space while maintaining compliance with retention policies
  • Configure retention days based on regulatory requirements
  • Example: Retain 90 days for standard devices, 365 days for critical infrastructure

Archive System Logs:

  • Archives old log entries to reduce database size
  • Maintains system performance as log volume grows
  • Configure based on days or row count thresholds
  • Archived logs remain accessible for compliance and auditing

Best practices:

  • Schedule maintenance tasks during low-activity periods
  • Coordinate purge tasks with backup retention policies
  • Monitor storage usage to adjust retention periods
  • Document retention decisions for compliance audits

Purpose: Synchronize data between rConfig and external systems.

Configuration:

  • Integration selection: Choose which integration to execute
  • Schedule: Set synchronization frequency
  • Direction: Depends on integration type (import, export, bi-directional)

Common integrations:

  • CMDB synchronization (ServiceNow, Jira)
  • Monitoring platform updates (Nagios, Zabbix)
  • Ticketing system integration
  • Custom API integrations

Best practices:

  • Schedule integrations when external systems are least busy
  • Monitor integration logs for failures
  • Implement error notifications for integration issues
  • Test integration changes before production scheduling

Purpose: Execute API-based collection operations on schedule.

Configuration:

  • Collection selection: Choose API collection to run
  • Schedule: Set collection frequency
  • Data processing: Results processed according to collection configuration

Use cases:

  • Collect data from REST APIs
  • Synchronize with cloud management platforms
  • Aggregate information from multiple sources
  • Automate external data ingestion

rConfig uses standard cron syntax for task scheduling:

* * * * *
│ │ │ │ │
│ │ │ │ └─ Day of week (0-7, where 0 and 7 are Sunday)
│ │ │ └─── Month (1-12)
│ │ └───── Day of month (1-31)
│ └─────── Hour (0-23)
└───────── Minute (0-59)
ScheduleCron ExpressionDescription
Every hour0 * * * *At minute 0 of every hour
Daily at 2 AM0 2 * * *2:00 AM every day
Every 6 hours0 */6 * * *At 00:00, 06:00, 12:00, 18:00
Weekdays at 9 AM0 9 * * 1-59:00 AM Monday through Friday
Weekly on Sunday0 3 * * 03:00 AM every Sunday
Monthly on 1st0 4 1 * *4:00 AM on the 1st of each month
Every 15 minutes*/15 * * * *At minutes 0, 15, 30, 45 of every hour

Stagger task execution: Avoid scheduling multiple resource-intensive tasks at the same time. Distribute load across different times to prevent system overload.

Consider time zones: Schedule tasks based on your rConfig server’s timezone. Account for daylight saving time changes if applicable.

Match business requirements: Align backup schedules with change windows. For example, if changes typically occur during business hours, schedule evening backups to capture those changes.

Account for task duration: Ensure sufficient time between task runs for completion. If a daily backup takes 2 hours, don’t schedule it to run every hour.

Test schedules: After creating tasks, verify they execute at expected times by monitoring the first few scheduled runs.

Temporarily disable tasks without deleting their configuration by using the pause feature.

When to pause tasks:

  • During maintenance windows when backups aren’t needed
  • When troubleshooting device connectivity issues
  • During major network changes to avoid capturing transient configurations
  • When system resources are constrained
  • For testing alternative task configurations

Resuming tasks: Click the pause toggle again to re-enable scheduled execution. The task resumes on its normal schedule.

Modify existing tasks to update schedules, change targets, or adjust configuration:

  1. Navigate to Tasks → Scheduled Tasks
  2. Click Edit on the desired task
  3. Update schedule, targets, or options
  4. Click Save
  5. Changes take effect on next scheduled run

Best practice: Test significant task changes using Run Now before relying on scheduled execution.

Remove tasks that are no longer needed:

  1. Navigate to Tasks → Scheduled Tasks
  2. Click Delete on the task
  3. Confirm deletion

Deleting tags does not affect individual devices or device groups directly. However, scheduled tasks configured for those tags will fail to find target devices.

Resolution: Before deleting tags, review scheduled tasks using those tags and either:

  • Update tasks to use different tags
  • Modify tasks to target devices or categories directly
  • Delete tasks that are no longer needed

Modifying device category assignments affects tasks configured for those categories. Devices moved out of categories are no longer targeted by category-based tasks.

Best practice: Audit scheduled tasks after significant category restructuring to ensure tasks still target intended devices.

Deactivated devices are excluded from scheduled tasks automatically, even if still in targeted categories or tags. This prevents tasks from attempting connections to unavailable devices.

View real-time task execution status in the Horizon Queue Manager:

  1. Navigate to Settings → Queues → Horizon
  2. View active jobs, pending jobs, and completed jobs
  3. Review job metrics: execution time, success rate, failures
  4. Examine failed jobs for error details

Horizon provides:

  • Real-time job processing visibility
  • Detailed error messages for failures
  • Job retry history and outcomes
  • Queue performance metrics

Review detailed task execution logs:

  1. Navigate to Settings → Logs → Application Logs
  2. Filter by task name or device
  3. Review log entries for task start, completion, and any errors

Log information includes:

  • Task execution timestamps
  • Target devices or groups
  • Success/failure status
  • Error messages and stack traces
  • Duration and performance metrics

Each task maintains execution history:

  1. Navigate to Tasks → Scheduled Tasks
  2. Click on a task to view details
  3. Review Last Run timestamp and status
  4. Check Next Run scheduled time

Symptoms: Task doesn’t run at scheduled times.

Diagnosis:

  1. Verify task is not paused
  2. Check cron expression is correct
  3. Confirm Laravel scheduler is running: php artisan schedule:list
  4. Review system cron configuration

Resolution:

Terminal window
# Verify scheduler cron job exists
crontab -l | grep schedule:run
# Should see:
* * * * * cd /var/www/html/rconfig8/current && php artisan schedule:run >> /dev/null 2>&1

If cron entry missing, add it:

Terminal window
crontab -e
# Add the line above

Symptoms: Tasks queue but fail during execution, visible in Horizon as failed jobs.

Diagnosis:

  1. Check Horizon Queue Manager for error details
  2. Review application logs for specific error messages
  3. Verify target devices are accessible
  4. Confirm credentials are correct

Common causes and resolutions:

Device connectivity issues:

  • Test device connectivity manually
  • Verify credentials haven’t changed
  • Check firewall rules

Command execution failures:

  • Verify commands exist in device command groups
  • Check command syntax for device type
  • Review command execution logs

System resource constraints:

  • Monitor CPU, memory, disk usage during task execution
  • Reduce concurrent task execution if overloaded
  • Increase system resources if consistently constrained

Symptoms: Tasks queue but never execute, queue depth continuously grows.

Diagnosis:

Terminal window
# Check queue worker status
systemctl status rconfig-worker
# Check Horizon status
php artisan horizon:status

Resolution:

Terminal window
# Restart queue worker
systemctl restart rconfig-worker
# Restart Horizon
php artisan horizon:terminate
# Supervisor automatically restarts it

Symptoms: Tasks timeout or block subsequent executions.

Resolution:

  1. Reduce scope: Break large tasks into smaller tasks targeting fewer devices
  2. Adjust concurrency: Modify queue worker concurrency settings
  3. Optimize commands: Remove unnecessary commands or reduce command output
  4. Increase timeout: Adjust task timeout settings if legitimately long-running

Symptoms: Multiple tasks running simultaneously cause system slowdown or failures.

Resolution:

  1. Stagger task schedules to prevent overlap
  2. Reduce concurrent task limits in queue configuration
  3. Prioritize critical tasks during peak times
  4. Schedule intensive tasks during off-peak hours

Start conservative: Begin with longer intervals (daily backups) and reduce intervals (hourly) only as system capacity allows.

Distribute load: Stagger tasks across different times to prevent resource contention. Don’t schedule 10 major tasks at midnight.

Match business needs: Align schedules with operational requirements. Critical devices may need hourly backups while others need daily.

Plan for growth: As device count increases, ensure scheduled tasks won’t overwhelm system resources.

Use clear naming: Name tasks descriptively to indicate purpose, targets, and frequency:

  • Daily-Backup-Core-Routers
  • Hourly-Backup-Critical-Infrastructure
  • Weekly-Compliance-Check-Firewalls

Group related devices: Use categories and tags to organize devices logically, simplifying task configuration:

  • Critical-Production tag for hourly backups
  • Standard-Infrastructure tag for daily backups
  • Lab-Equipment tag for weekly backups

Document task purposes: Use task descriptions to explain why tasks exist, what they accomplish, and any special considerations.

Review logs regularly: Check application logs and Horizon weekly to identify patterns of failures or performance issues.

Monitor system resources: Track CPU, memory, disk usage trends to identify when system capacity needs expansion.

Audit task effectiveness: Periodically review whether scheduled tasks still serve their intended purposes and adjust or remove as needed.

Test after changes: Whenever modifying tasks, schedules, or device configurations, manually trigger tasks to verify continued operation.

Maintain backup retention: Balance storage capacity with retention requirements. Implement appropriate purge schedules to prevent disk exhaustion.

Snippet deployment security: Thoroughly test configuration snippets before scheduling automatic deployment. Erroneous snippets deployed at scale can cause widespread outages.

Credential management: Ensure device credentials remain current. Scheduled tasks fail if credentials expire or change without updating rConfig.

Audit task execution: Review task logs for unauthorized task creation or modification. Scheduled tasks have significant operational impact.

Terminal window
# Every hour at minute 0
0 * * * *
# Daily at 2 AM
0 2 * * *
# Every 6 hours
0 */6 * * *
# Weekdays at 9 AM
0 9 * * 1-5
# Weekly on Sunday at 3 AM
0 3 * * 0
# Monthly on 1st at 4 AM
0 4 1 * *
# Every 15 minutes
*/15 * * * *
# Every 30 minutes
*/30 * * * *

Scheduled Tasks automate critical network management operations in rConfig, from routine configuration backups to policy compliance validation and system maintenance. Proper task configuration, monitoring, and maintenance ensure reliable automation that scales with your network infrastructure.

Comprehensive automation: Schedule configuration backups, compliance checks, snippet deployments, and system maintenance without manual intervention.

Flexible targeting: Tasks target individual devices, categories, or tags, providing granular control over automation scope.

Reliable execution: Laravel’s scheduler and queue system ensure tasks execute reliably with automatic retry handling for transient failures.

Visibility and control: Monitor task execution through Horizon Queue Manager and application logs, with manual execution options for testing and on-demand operations.

Version awareness: V6 Core supports configuration download tasks only. V8 Pro and MSP editions support full task capabilities including compliance, snippets, and integrations.

With properly configured scheduled tasks, rConfig provides automated, consistent network management operations that scale from small networks to enterprise environments with thousands of devices.