Skip to content

metalcloud-cli network-device change-status

Change the operational status of a network device

Change the operational status of a network device in the management system. This affects how the system treats the device for operations and monitoring.

Arguments: network_device_id The unique identifier of the network device status New operational status for the device Values: active, inactive, maintenance, error

Status descriptions: active - Device is operational and available for use inactive - Device is present but not operational maintenance - Device is under maintenance, avoid new allocations error - Device has issues and requires attention

Examples:

metalcloud-cli network-device change-status 12345 maintenance

metalcloud-cli network-device change-status 12345 active

metalcloud-cli switch change-status 12345 error

metalcloud-cli network-device change-status <network_device_id> <status> [flags]
-h, --help help for change-status
-k, --api_key string MetalCloud API key
-c, --config string Config file path
-d, --debug Set to enable debug logging
-e, --endpoint string MetalCloud API endpoint
-f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
-i, --insecure_skip_verify Set to allow insecure transport
-l, --log_file string Log file path
-v, --verbosity string Log level verbosity (default "INFO")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”