1.4. Visual Web Terminal


The Visual Web Terminal is a tech preview feature. You can use the Visual Web Terminal to run many commands across your cluster. Run commands and get outputs without leaving the entire console. You can run multiple commands, similar to what you can do in a standard terminal.

With Visual Web Terminal, commands that return cluster resource data are displayed visually in interactive tabular format, rather than plain text that is displayed in a standard terminal. You can see the data, click on a row, and then see more details about that resource.

Notes:

The information that is provided in the Visual Web Terminal is limited by the permissions of the user. When you run a command, only the items that you have permission to view are displayed.

If there are over ten sessions that are running at the same time, there might be a slower response time when running commands.

The Visual Web Terminal connects to the cloud that you are already logged into with the hub cluster console.

1.4.1. Starting a session

You can access the Visual Web Terminal by completing the following steps:

  1. Log in to your console.
  2. From the console Header, select the Visual Web Terminal icon.
  3. Choose to open in a new tab or open in a current tab.
  4. Start running commands in the input field. For example, you can start running any oc or kubectl commands and get a visual output.
  5. Optional: Select the getting started command to pull up the About page and more, or type the command in the input field.
  6. Optional: You can change your default namespace. Click @default in the status bar at the bottom of the page to run the command that displays your namespaces. View the output, then click on a row in the table to set a different namespace.
  7. Use the Supported command list to learn about commands that you can run using kubectl or oc.

1.4.2. Supported command list

The following table provides information and examples for the command types that are supported by the Visual Web Terminal:

Expand
CommandDescriptionExample

!!

Run the previous command again

!!

bash commands

Run the following basic bash commands: base64, basename, cat, cksum, cp, cut, date, dirname, echo, grep, head, ls, mkdir, mv, printf, readlink, rm, sed, tail, touch, uname, vi, and vim

mkdir new_directory

cd

Change the current working directory for local filesystem changes

cd dir_name

clear

Clear the screen of previous commands and output

clear

export

Export the output of the command to an external file

export search search_criteria

helm

Run supported helm commands. Tip: See the helm commands topic in the Helm documentation for more information about the Helm commands.

helm list --chart-name

help (alias for getting started)

Display additional information about a command that is supported in the Visual Web Terminal in a side panel.

help

history

Displays the previous 25 commands that were run during the current session. Tip: You can limit the search criteria by adding it to the end of the command. For example, history help displays the last 25 commands that contained the string help.

history

kubectl or k

Run supported kubectl (or shorthand k) commands. Tip: See the Kubernetes CLI reference for more information about the kubectl commands.

kubectl get pods

oc

Runs Red Hat OpenShift oc commands. Tip: See Red Hat OpenShift CLI Operations for more information about the oc commands.

oc get svc

search

Searches your Kubernetes resources for those that match the specified search filters and parameters

search pod

savedsearches

Displays your saved searches that you created and saved in the Search page.

savedsearches Tip: You can specify a string after the savedsearches command to limit the data that is returned. For example, savedsearches projectA displays the saved searches that contain the string projectA.

sleep

Pauses activity during a session. Note: Requires a sleepTime parameter that identifies the number of seconds that it pauses

sleep 20

themes

Displays the contrast theme options of the interface, which you can set to either light or dark

themes

1.4.3. Searching with Visual Web Terminal

The Visual Web Terminal search function provides visibility into your resources across all your clusters.

You can only search for resources based on your role-based access control level assignment. If you save and share a search query with another user, returned results for that user depend on his or her access level.

  1. Start a Visual Web Terminal session.
  2. In the command entry field of the Visual Web Terminal, type: search. When you run a search command, the Visual Web Terminal verifies that the search function is available. If it is not available, a message indicates that either the search function is not installed, or that it is just not available. If it is installed, but not available, it might be a network issue.
  3. Add a space after the search command. The list of filters that are available for the search is displayed. The list of filters might be empty because it is dependent on the resources that are available in your environment and your role permissions.
  4. Select one of the filters from the list. The selected filter is added to the search criteria on your command line, and the next level of filters for that selection are displayed. Tip: You can also enter a string after the search command, rather than selecting a filter from the list.
  5. Optional: Add filters by entering a single space after each filter entry until your command contains all of the required filters.
  6. When you are finished adding your search criteria, press Enter to run the search.

You can refine your results with specific fields. See the following example:

  • Search for a single field, such as kind:pod to find all pod resources.
  • Search for multiple fields, such as kind:pod namespace:default to find the pods in the default namespace.

You can also search with conditions using characters, such as (>, >=, <, <=, !=).

See the following examples:

  • Search for kind:pod status:!Running to find all pod resources where the status is not Running.
  • Search for kind:pod restarts:>1 to find all pods that have restarted at least twice.

The search returns resources that meet the criteria of your search request, as well as links to view related resources. Viewing all of them helps you visualize how the resources interact with other resources in the system.

Your search results are grouped by kind and each resource kind is grouped in a table. You can reorder the data in the tables by selecting the row and column headings.

You can use a search that was saved in the console by entering the savedsearches command and selecting the search that you want to run.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat