VNX:如何設定在 Control Station、Windows 或 Linux 中執行 navicli 命令的路徑 (使用者可修正)

Summary: 本文說明在 .bash_profile (Linux 中) 和環境變數 (Windows 中) 新增路徑的程序。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

若要在控制站 (Linux) 主機中設定路徑:

  1. 一般來說,在 Control Station (Linux) 主機中執行任何 navicli 命令之前,我們必須提供路徑。例如: 
[nasadmin@vnx5700 ~]$ /nas/sbin/navicli -h spa getagent
  1. 我們可以匯出單個會話的路徑或編輯.bas_profile以添加路徑,而不是始終提供路徑。若要匯出控制站中的路徑,請使用
[nasadmin@vnx5700 ~]$ export PATH=$PATH:/nas/sbin

若要編輯.bas_profile:

  1. 前往主目錄。
[nasadmin@vnx5700 /]$ cd
[nasadmin@vnx5700 ~]$ vi .bash_profile
  1. 尋找行:
路徑=$PATH:$NAS_DB/bin

 

  1. 使行看起來像這樣:

PATH=$PATH:$NAS_DB/bin:/nas/sbin

  1. 儲存檔案,登出,然後重新登入。

注意:在 Linux 上執行時,請提供 navicli 安裝在 Linux 主機中的路徑,而不是 /nas/sbin。

 

若要在 Windows 的環境變數中設定路徑:

在 Windows 中安裝 Navisphere CLI 軟體時,請按一下「在系統環境路徑中包含 Navisphere CLI」核取方塊。

如果在安裝時未完成,請按照以下過程在環境變數中添加路徑。
  1. 在桌面上,以滑鼠右鍵按一下電腦圖示。
  2. 從上下文功能表中選擇屬性
  3. 按一下進階系統設定連結。
  4. 按兩下環境變數。在「系統變數」部分中,找到 Path 環境變數並選擇它。按一下編輯。如果 路 環境變數不存在,按一下 New)
  5. 編輯系統變數 (或新系統變數) 視窗中,指定 Path 環境變數。按一下確定按一下確定以關閉所有剩餘的視窗。

注意:路徑應為 Windows 中安裝 Navisphere CLI 的資料夾路徑。

如果路徑已存在,請在添加新路徑之前放置分號 (;)。

Windows 10 使用者可以搜尋「系統 (控制台)」,然後依照步驟 3 的指示操作。

 

完成此操作后,您可以從 Windows 命令列中的任何資料夾執行 naviseccli 命令。

如果未設定路徑,您必須從安裝 Navisphere CLI 的資料夾執行命令。

Affected Products

VNX1 Series

Products

VNX1 Series, VNX2 Series
Article Properties
Article Number: 000022607
Article Type: How To
Last Modified: 22 Mar 2022
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.