此内容没有您所选择的语言版本。

3.3. Other Commands


3.3.1. .rhscshellrc Configuration

The .rhscshellrc configuration file contains options for connecting to the rhsc-shell. The .rhscshellrc file is available in the /home/[user name]/ directory.
Expand
Table 3.5. .rhscshellrc Parameters
Name Type Description
url
string
The address of the Red Hat Storage Console Application.
username
string
User name to be used to log in.
password
string
Password to be used for user name.
insecure
boolean
Toggles CA certificate requirement. The status is either True or False.
autopage
boolean
Toggles pagination in the shell. The status is either True or False.
filter
boolean
Toggles object filtering. Object filtering allows users to fetch objects according to their permissions. Only admin roles can toggle filtering off. The status is either True or False.
--session-timeout integer The timeout period for connection.
timeout
integer
Requests timeout. The default is -1.

3.3.2. Clear the Screen Using clear

Use the clear command to clear the CLI screen as follows:
# clear
Copy to Clipboard Toggle word wrap

Example 3.9. Example for clear

Clear the screen:
[RHSC shell (connected)]# clear
Copy to Clipboard Toggle word wrap

3.3.4. Show Last Status Using status

Use the status command to display the most recently run command status as follows:
# status
Copy to Clipboard Toggle word wrap

Example 3.11. Example for status

View the last status:
[RHSC shell (connected)]# status

last command status: 0 (OK)
Copy to Clipboard Toggle word wrap

3.3.5. Show CLI Information Using info

Use the info command to display environment connection details and version information as follows:
# info
Copy to Clipboard Toggle word wrap

Example 3.12. Example for info

View CLI information:
[RHSC shell (connected)]# info

backend version: 3.3
sdk version    : 2.1
cli version    : 2.1
python version : 2.6.6.final.0

entry point    : https://www.example.com:8443/api
Copy to Clipboard Toggle word wrap

3.3.6. Test Connection Using ping

Use the ping command to test the connection to your Red Hat Storage Console Application. The command retrieves a remote resource and ensures the URL, username and password for the connection are correct.
# ping
Copy to Clipboard Toggle word wrap

Example 3.13. Example for ping

Test your connection:
[RHSC shell (connected)]# ping

success: RHSC manager could be reached OK.
Copy to Clipboard Toggle word wrap

3.3.7. Exit from the CLI Using exit

Use the exit command to leave the CLI as follows:
# exit
Copy to Clipboard Toggle word wrap

Example 3.14. Example for exit

Leave the CLI:
[RHSC shell (connected)]# exit
Copy to Clipboard Toggle word wrap

3.3.8. End of File Using EOF

Use the EOF command to leave the CLI shell using a Ctrl+D sequence.
# EOF
Copy to Clipboard Toggle word wrap

Example 3.15. Example for EOF

Leave the CLI shell:
[RHSC shell (connected)]# EOF
Copy to Clipboard Toggle word wrap

3.3.9. Show Help Using help

Use the help command displays help for CLI command and resource combinations as follows:
# help [command][resource][options]
Copy to Clipboard Toggle word wrap

Example 3.16. Examples for help

Get CLI help:
[RHSC shell (connected)]# help
Copy to Clipboard Toggle word wrap
Get help for the add command:
[RHSC shell (connected)]# help add
Copy to Clipboard Toggle word wrap
Get help for the add command on the cluster resource type:
[RHSC shell (connected)]# help add cluster
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat