Gateway Remote Commands

In addition to standard OpsRamp Agent remote commands, OpsRamp supports a set of gateway-specific commands that you can run through the OpsRamp Agent installed on NextGen Gateways. These commands support gateway-level diagnostics, including Kubernetes pod management and gateway service monitoring.

Required Permissions

The following permissions are required to view and run these commands.

CategoryPermission TypePermissions
Account AdministrationDevicesManage
CollectorsManage Management ProfileManage
Remote AccessCommandsAllow To Run

NextGen Gateway Commands

These commands let you inspect and manage Kubernetes resources that run on a NextGen Gateway.

Remote CommandDescription
Kubectl Get PodsLists all Kubernetes pods running on the NextGen Gateway, including status, restart count, and age.
Kubectl Get ServicesLists all Kubernetes services on the NextGen Gateway, showing service type, cluster IP, and exposed ports.
Kubectl Get PVCLists all Kubernetes Persistent Volume Claims (PVCs) on the NextGen Gateway, showing storage capacity and binding status.
Kubectl Get NodesLists all Kubernetes nodes on the NextGen Gateway, displaying node status, roles, and resource capacity.
Kubectl Top PodsDisplays real-time Central Processing Unit (CPU) and memory usage for each pod running on the NextGen Gateway.
Kubectl Top Pods NextGen Gw ContainersDisplays real-time CPU and memory usage at the container level within NextGen Gateway pods, providing more granular resource visibility.
Kubectl Describe Pod NextGen GwRuns kubectl describe on the NextGen Gateway pod and provides detailed information, including events, resource limits, and container status.
Kubectl Describe Pod NextGen Gw Redis MasterRuns kubectl describe on the Redis Master pod within the NextGen Gateway and shows configuration and event history.
Kubectl Describe NodeRuns kubectl describe on the Kubernetes node that hosts the NextGen Gateway and shows node conditions, allocated resources, and running pods.
Kubectl Delete Pod NextGen GwDeletes a specified pod on the NextGen Gateway. Kubernetes automatically reschedules a replacement pod. Use this command to recover from a stuck or failed pod.
Show Recent NextGen GW Vprobe and TLS LogsRetrieves the most recent vprobe and Transport Layer Security (TLS) logs from the NextGen Gateway. Select the number of log lines to retrieve. For example, 100 lines returns the last 100 lines from both logs.

Execute Remote Commands for a NextGen Gateway in a Specific Kubernetes Namespace

You can execute supported remote commands for a NextGen Gateway deployed in a specific Kubernetes namespace.

This feature is useful in Kubernetes environments that host multiple NextGen Gateway deployments across different namespaces. When you specify a namespace, OpsRamp identifies the gateway pod running in that namespace and executes the selected command against that gateway instance.

If you do not specify a namespace, OpsRamp uses the default namespace behavior to maintain compatibility with existing workflows.

Supported Deployments

This feature applies to NextGen Gateway deployments that run on Kubernetes, including environments that use multiple namespaces for separate gateway deployments.

Prerequisites

Before you execute a remote command, ensure that:

  • A NextGen Gateway is deployed in a Kubernetes cluster.
  • The target namespace contains a running NextGen Gateway deployment.
  • You have permission to execute gateway commands.
  • You know the name of the target namespace.

Procedure

To execute a remote command for a NextGen Gateway in a specific Kubernetes namespace, follow these steps:

  1. Navigate to Infrastructure > Search.
  2. On the Resources page, click the gateway resource name.
  3. On the resource details page, click Actions > Execute Command.
  4. From the Command Name list, select a command.
  5. In the Namespace field, enter the Kubernetes namespace where the target NextGen Gateway is deployed.
  6. Click Execute Command.

Group By State - Unmanaged, Discovered in resource listing pages

OpsRamp identifies the gateway pod in the specified namespace and executes the command against that gateway instance.

Default Namespace Behavior

The Namespace field is optional.

If you do not specify a namespace, OpsRamp executes the command by using the default namespace configuration.