---
title: "Run 'show' commands (Gateway)"
method: POST
path: "/network-troubleshooting/v1/gateways/{serial-number}/showCommands"
tags: ["Gateways"]
---

# Run 'show' commands (Gateway)

`POST /network-troubleshooting/v1/gateways/{serial-number}/showCommands`

Starts an asynchronous execution of one or more 'show' commands on a Gateway. Rejected with 400 if any command does not start with 'show ', or if more than 20 commands are provided.

## Path parameters

- `serial-number` string, required

## Request body

- ShowCommandRequest
  - `commands` string[], required — List of CLI commands to run; each MUST start with 'show '.

## Response `202`

Accepted.

- AsyncOperationStatus
  - `location` string, uri-reference — The relative URL path to query the status and result of the asynchronous operation.
  - `status` 'INITIATED' — The initial status of the operation.
  - `startTime` string, date-time — ISO 8601 timestamp indicating when the operation was initiated.

## Other responses

- `400` — Bad Request. Validation errors in the request body or parameters, or invalid parameters for the specific device.
- `401` — Unauthorized. Authentication credentials are required or invalid.
- `403` — Forbidden: Access is denied.
- `404` — Not Found. The device with the specified serial number was not found.
- `409` — Conflict. The device is currently offline.
- `429` — Too Many Requests. The user has sent too many requests in a given amount of time.
- `500` — Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.net/arubanetworks/apis/authorization.md) · [All operations](https://skmtc.net/arubanetworks/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/arubanetworks/authorization/versions/74c95058b11f/schema)
