export

dpsctl topology export Usage Guide

Export an existing topology to JSON format.

Usage

dpsctl topology export

Flags

Includes global dpsctl options.

   --topology value    topology name (required)
   --entities          export entities
   --policies          export policies
   --help, -h          show help

Examples

Export Topology Only

$ dpsctl topology export --topology datacenter
{
  "topology": {
    "name": "datacenter",
    "entities": [
      {
        "name": "PD-A",
        "children": ["PDU-A1"]
      },
      {
        "name": "PDU-A1",
        "children": ["node001", "node002"]
      },
      {
        "name": "node001"
      },
      {
        "name": "node002"
      }
    ]
  },
  "topology_hash": "abc123def456"
}

Export with Entities

$ dpsctl topology export --topology datacenter --entities
{
  "entities": [
    {
      "type": "PowerDomain",
      "name": "PD-A",
      "constraints": {
        "power_value": {
          "value": 1150000,
          "type": "W"
        },
        "power_factor": 0.9
      }
    },
    {
      "type": "ComputerSystem",
      "model": "DGX_H100",
      "name": "node001",
      "policy": "Node-High"
    }
  ],
  "topology": {...}
}

Export with Policies

$ dpsctl topology export --topology datacenter --policies
{
  "policies": [
    {
      "Name": "Node-High",
      "description": "High power profile configuration",
      "Limits": [
        {
          "ElementType": "Node",
          "PowerLimit": {
            "Watts": 10200
          }
        }
      ]
    }
  ],
  "topology": {...}
}

Export Complete Configuration

$ dpsctl topology export --topology datacenter --entities --policies
{
  "entities": [...],
  "policies": [...],
  "topology": {...},
  "topology_hash": "abc123def456"
}

Save to File

$ dpsctl topology export --topology datacenter --entities --policies > exported-topology.json

Notes

  • Exported JSON can be used to recreate the topology in another DPS instance
  • The topology hash helps track versions and changes
  • Use --entities and --policies flags to include complete configuration
  • Exported format is compatible with dpsctl topology import