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

Chapter 3. Commands


3.1. Connecting to RHSC

3.1.1. Connect to RHSC via connect

The connect command connects to Red Hat Storage Console Application as follows:
# connect [options]
Copy to Clipboard Toggle word wrap
Expand
Table 3.1. Options for connect
Option Required Description
--ca-file Yes, unless --insecure is used. The certificate authority file to connect via SSL.
--cert-file No The certificate file to connect via SSL.
--filter No Enable filtering based on user permissions.
--insecure Yes, but only if no certificate authority is provided. Allow the CLI to connect via SSL without certification. Use this option with caution, as it may allow man-in-the-middle (MITM) attackers to spoof the identity of the server.
--key-file No The key file to connect via SSL.
--password Yes The password for the user attempting access to the Red Hat Storage Console Application.
--port No The port number to connect to the REST API, if not specified as part of the --url.
--session-timeout No The timeout period for the session.
--timeout - The timeout period for connection.
--url Yes The URL to the Red Hat Storage Console's REST API. This takes the form of https://[server]/api.
--user Yes The user name and directory service domain of the user attempting access to the Red Hat Storage Console Application. This takes the form of [username]@[domain].

Example 3.1. Example for connect

[RHSC shell (disconnected)]# connect --url "https://rhsc.example.com/api" --user "admin@exampleids.com" --password "p@55w0rd!" --ca-file "/home/user/ca.crt"

 ==========================================
 >>> connected to RHSC manager 3.3.0.0 <<<
 ==========================================

[RHSC shell (connected)]#
Copy to Clipboard Toggle word wrap

Note

Use the --insecure option to connect without certification. However, this is not recommended because it allows man-in-the-middle (MITM) attackers to spoof the server's identity.

3.1.2. Disconnect from RHSC Using disconnect

The disconnect command disconnects from Red Hat Storage Console Application as follows:
# disconnect
Copy to Clipboard Toggle word wrap

Example 3.2. Example for disconnect

[RHSC shell (connected)]# disconnect

  =======================================
  >>> disconnected from RHSC manager <<<
  =======================================

[RHSC shell (disconnected)]#
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat