Exporting F5 Distributed Cloud Configurations Made Easier: A CLI Tool for Engineers

Exporting F5 Distributed Cloud Configurations Made Easier: A CLI Tool for Engineers

While working with F5 Distributed Cloud (F5 XC), there are situations where you need to collect configuration objects from a tenant for troubleshooting, documentation, migration planning, or change management.

Doing this manually across multiple resource types can be repetitive, especially when you want a consolidated view of what exists in a namespace and need to identify objects that could not be retrieved.

I built the F5 XC Config Exporter CLI to make this process easier for fellow F5 engineers.

The tool uses the F5 XC API to retrieve supported configuration objects from a selected namespace and organizes the results into export files and reports. It is a community utility intended to simplify configuration collection, not a replacement for a complete tenant backup or disaster recovery solution.

Why I Built This Tool

A few practical challenges motivated me to work on this:

  • Manual configuration collection: Collecting multiple configuration objects individually takes time and introduces repetitive effort.
  • Limited visibility before export: It is useful to know which supported resource categories contain objects before starting the collection process.
  • Namespace awareness: Configuration collection should remain within the intended namespace, with scope inconsistencies reported rather than overlooked.
  • Unavailable resources: When an object cannot be retrieved, engineers need visibility into that failure instead of assuming the export is complete.
  • Export troubleshooting: Progress information and detailed logs make it easier to understand what happened during a long-running export.

The idea was to bring these activities into one CLI workflow.

What the Tool Does

The F5 XC Config Exporter CLI includes the following capabilities:

  • Interactive authentication: Enter the tenant URL and API token at runtime. Token input is hidden, and the tool is designed not to save or log the token.
  • Namespace selection: Select the default, shared, or a custom namespace.
  • Preflight inventory: Discover supported resources across configured resource categories before export.
  • Automated export: Retrieve supported configuration objects using read-only API GET requests.
  • Structured output: Generate raw configuration exports and create/replace-oriented payloads where supported.
  • Built-in policy handling: Skip selected built-in F5 policies.
  • Detailed reporting: Identify unavailable objects, skipped policies, and scope warnings.
  • Progress and logging: Follow the export process and inspect detailed diagnostic information.

The tool does not make configuration changes to the tenant.

Where It Can Help

1. Configuration Review and Documentation

Need to inspect the existing configuration of an F5 XC namespace? Export the supported objects and review them locally. This can help with technical documentation, operational handovers, and configuration reviews.

2. Change Management

Before a planned change, engineers may want a point-in-time collection of the current configuration for reference. The exporter can help collect supported objects that can be retained alongside change records.

3. Migration Planning

When assessing an existing deployment for migration or redesign, exported configuration objects can provide a useful reference for identifying settings and planning the work.

Keep in mind that not every F5 XC resource is necessarily covered, and exported objects may require changes before they can be used in another environment. Dependencies and destination-specific settings must be reviewed separately.

4. Troubleshooting

When investigating an issue, it can be useful to inspect relevant configuration objects outside the live console. The local export and associated reports provide material for offline analysis and help highlight objects that could not be retrieved.

5. Understanding the Export Scope

The preflight inventory provides an overview of supported resource categories before the export begins. This helps engineers understand what the tool discovered and makes the overall collection process more transparent.

How to Use It

You can run the tool on Windows using the published executable or run it from source.

Using the Windows Executable

  1. Open the latest GitHub release linked below.
  2. Download the Windows executable attached to the release.
  3. Launch the CLI.
  4. Enter your F5 XC tenant URL and API token.
  5. Select the namespace you want to export.
  6. Review the preflight inventory.
  7. Allow the export to complete and inspect the generated archive and reports.

Project Links

A Few Things to Keep in Mind

  • The exporter retrieves only the resource types currently supported by the tool.
  • An export should not be treated as a complete backup of the tenant.
  • Review the reports for unavailable objects and scope warnings.
  • Exported configurations may contain sensitive environment details, so store and share them appropriately.
  • Use an API token with the minimum permissions required for the intended operation.
  • Review exported payloads and dependencies before considering them for use in another environment.

This is a community-built utility, not an official F5 product.

Feedback from the Community

I am sharing this with fellow F5 engineers who may find it useful in their day-to-day work with Distributed Cloud.

If you try it, I would appreciate feedback on any issues you encounter, resource types you would like to see supported, or improvements that could make the export workflow more useful.

Repository: GitHub - NormanMadeira/f5xc-config-exporter-cli · GitHub

Download: Release F5 XC Config Exporter CLI v1.0 · NormanMadeira/f5xc-config-exporter-cli · GitHub