Skip to content

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:

# Check job status by ID
scm-cli get operations job --job-id "12345"

Listing Recent Jobs

To view recent jobs:

# List the 10 most recent jobs
scm-cli get operations jobs --limit 10

License Management

Manage licenses for your deployment using the CLI.

Checking License Status

# Check current license status
scm-cli get operations licenses

Health Monitoring

Monitor the health of your Strata Cloud Manager deployment.

System Status

Check the current system status:

# Get overall system status
scm-cli get operations status

Connectivity Tests

Test connectivity to various services:

# Test connectivity to firewalls
scm-cli get operations connectivity-test --target firewalls

User Management

The CLI includes commands for managing users and roles.

Listing Users

# List all users
scm-cli get operations users

User Roles

# List available roles
scm-cli get operations roles

Audit Logs

Access audit logs to track changes made through the CLI and other interfaces.

Retrieving Audit Logs

# Get recent audit logs
scm-cli get operations audit-logs --limit 20

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

# List all scheduled tasks
scm-cli get operations 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

# Run diagnostic checks
scm-cli get operations diagnostics

Log Collection

# Collect logs for support
scm-cli get operations collect-logs --output-dir "./support-logs"

Best Practices

When using the CLI for operations management:

  1. Use descriptive commit messages to document your changes
  2. Check job status after initiating operations that generate jobs
  3. Review audit logs periodically to track changes
  4. Set up scheduled tasks for recurring operations
  5. Use the --verbose flag when troubleshooting operations

Next Steps