CLI Operations Management¶
The pan-scm-cli
provides capabilities beyond just managing individual configuration objects, allowing you to handle operations like deployment, status checking, and more.
Configuration Deployment¶
After making changes to your configurations using the CLI, you need to deploy those changes to make them active in your environment.
Committing Changes¶
To commit your configuration changes:
# Commit changes with a description
scm-cli set deployment commit --description "Updated address objects and security rules"
Pushing Configurations¶
To push configurations to devices:
# Push configurations to all devices
scm-cli set deployment push
# Push to specific device groups
scm-cli set deployment push --device-groups "Branch-Firewalls,DataCenter"
Job Monitoring¶
Many operations in Strata Cloud Manager generate jobs that run asynchronously. The CLI provides commands to monitor these jobs.
Checking Job Status¶
To check the status of a job:
Listing Recent Jobs¶
To view recent jobs:
License Management¶
Manage licenses for your deployment using the CLI.
Checking License Status¶
Health Monitoring¶
Monitor the health of your Strata Cloud Manager deployment.
System Status¶
Check the current system status:
Connectivity Tests¶
Test connectivity to various services:
User Management¶
The CLI includes commands for managing users and roles.
Listing Users¶
User Roles¶
Audit Logs¶
Access audit logs to track changes made through the CLI and other interfaces.
Retrieving Audit Logs¶
Filtering Audit Logs¶
# Filter audit logs by user
scm-cli get operations audit-logs --filter-user "admin"
# Filter audit logs by date range
scm-cli get operations audit-logs --start-date "2025-03-01" --end-date "2025-03-30"
Scheduled Tasks¶
Manage scheduled tasks for recurring operations.
Listing Scheduled Tasks¶
Creating Backup Tasks¶
# Create a scheduled backup
scm-cli set operations scheduled-task --type backup --name "Daily-Backup" --schedule "0 0 * * *"
Troubleshooting¶
The CLI provides tools to help with troubleshooting.
Diagnostic Tools¶
Log Collection¶
Best Practices¶
When using the CLI for operations management:
- Use descriptive commit messages to document your changes
- Check job status after initiating operations that generate jobs
- Review audit logs periodically to track changes
- Set up scheduled tasks for recurring operations
- Use the
--verbose
flag when troubleshooting operations
Next Steps¶
- Explore the Command Reference for detailed information on all available commands
- Learn more about Advanced Topics for scripting and automation
- Review Configuration Objects to understand the types of resources you can manage