bob-builds-labs

examples for ppdm-cli

PPDM Upgrade Workflow Command - Explained

This command automates the entire PPDM appliance upgrade process with zero human intervention.

🎯 What It Does

ppdm-cli upgrade workflow --force --continuous --automatic --file /data01/dellemc-ppdm-upgrade-sw-20.2.0.0-9.pkg

Upgrades PowerProtect Data Manager from current version to 20.2.0.0-9 automatically

🔧 Command Breakdown

📋 What Happens Behind the Scenes

  1. Pre-checks - Validates system requirements and disk space
  2. Backup - Creates system backup before upgrade
  3. Upload - Transfers upgrade package to appliance
  4. Installation - Applies the upgrade (can take hours)
  5. Verification - Confirms successful upgrade
  6. Cleanup - Removes temporary files
  7. Restart Services - Brings system back online

Key Benefits

🚨 Use With Caution

This is a powerful command that will upgrade your production backup appliance. The --force --continuous --automatic flags make it completely hands-free, which is great for automated deployments but requires confidence in the upgrade package.

Think of it as: “Upgrade my entire backup infrastructure to version 20.2.0.0-9 and don’t ask me any questions.”

PPDM Inventory Source Creation - Explained

This command adds a Microsoft Hyper-V cluster to PPDM for backup and protection.

🎯 What It Does

ppdm-cli inventory-sources create hyper-v --name "hv-cluster.demo.local" --address "hv-cluster.demo.local" --port 5986 --type "HYPERV_CLUSTER" --credential-id "27514w1827109" --autoconfigure

Connects PPDM to a Hyper-V cluster to discover and protect virtual machines

🔧 Command Breakdown

📋 What Happens Behind the Scenes

  1. Connection Test - Validates WinRM connectivity to the cluster
  2. Authentication - Uses provided credentials to access Hyper-V
  3. Auto Discovery - Scans for all VMs, hosts, and cluster configuration
  4. Inventory Creation - Registers the cluster in PPDM’s asset database
  5. VM Discovery - Automatically finds all virtual machines on the cluster
  6. Permission Setup - Configures necessary access rights

🎯 Result

💡 Simple Analogy

Think of it as: “Connect my Hyper-V cluster to PPDM so it can see and protect all my virtual machines automatically.”

The --autoconfigure flag is the magic - it handles the complex setup so you don’t have to manually configure each VM or host.

NativeEdge Onboarding with Autoconfigure - Explained

🎯 What It Does

ppdm-cli inventory-sources create nativeedge-orchestrator --name "Edge Site 1" --address "edge-orch.company.com" --port 443 --credential-id "cred-123" --autoconfigure

Connects PPDM to Dell NativeEdge for distributed edge computing backup and protection

🔧 Command Breakdown

📋 What Happens Behind the Scenes

  1. Orchestrator Connection - Connects to NativeEdge management server
  2. Site Discovery - Automatically discovers all edge locations/sites
  3. Device Inventory - Finds edge devices, containers, and workloads
  4. Topology Mapping - Maps edge infrastructure relationships
  5. Resource Classification - Identifies what can be protected
  6. Permission Setup - Configures edge device access rights

🎯 What Gets Protected

🌐 Edge Computing Context

NativeEdge is Dell’s platform for managing distributed infrastructure at remote locations - think retail stores, factory floors, or remote sites where you need computing power close to where data is generated.

💡 Simple Analogy

Think of it as: “Connect all my remote edge locations to PPDM so it can protect the applications and data running at the edge, no matter where they are.”

The --autoconfigure is crucial for edge environments because you typically have many distributed sites that would be impossible to configure manually.

You’re absolutely right! Let me check the actual code to see what safety prompts are built in:

Now let me check the actual deletion logic to see what safety prompts are built in:

Perfect! You’re absolutely right. Looking at the actual code, there ARE safety prompts built in. Let me correct my explanation:

PPDM Copies Delete by Range - WITH Safety Prompts

🎯 What It Does

ppdm-cli copies delete by-range

Deletes ALL backup copies BUT requires explicit confirmation

📋 What Actually Happens

  1. Finds All Copies - Searches for every backup copy in the system
  2. Shows Impact - Displays exactly what will be deleted (count, size, etc.)
  3. Asks for Confirmation - “Delete X copies matching criteria? [y/N]:”
  4. Waits for Response - Requires user to type “y” or “yes”
  5. Cancels if No - If you type anything else, it cancels the operation
  6. Executes if Yes - Only then does it proceed with deletion

🛡️ Safety Mechanisms Built In

💡 Simple Analogy

Think of it as: “I’m about to delete everything, but I’ll ask you ‘Are you sure?’ first.”

It’s not a silent nuke. It’s a “nuke with confirmation”!

PPDM CLI Web Monitor - Corrected Nutshell

🎯 What It Does

ppdm-cli web-monitor

Launches a web-based activity viewer for PPDM backup operations

🔧 Key Features

💡 Simple Analogy

Think of it as: “A web-based version of ppdm-cli activities list with live updates and a nicer interface.”

🎯 Use Cases

📊 What It Shows

Bottom line: It’s a browser-based activity monitor