VNX: How to set path for running navicli commands in Control Station, Windows, or Linux (User Correctable)

Summary: This article describes the procedure to add a path in .bash_profile (in Linux) and environment variables (in 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

To set the path in control station (Linux) host:

  1. Generally we must provide the path before running any navicli commands in Control station (Linux) host. For example, 
[nasadmin@vnx5700 ~]$ /nas/sbin/navicli -h spa getagent
  1. Instead of always providing the path, we can export the path for a single session or edit .bas_profile to add the path. To export the path in control station, use
[nasadmin@vnx5700 ~]$ export PATH=$PATH:/nas/sbin

To edit .bas_profile:

  1. Go to home directory.
[nasadmin@vnx5700 /]$ cd
[nasadmin@vnx5700 ~]$ vi .bash_profile
  1. Find the line:
PATH=$PATH:$NAS_DB/bin

 

  1. Make the line look like this:

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

  1. Save the file, log off, and log back in.

Note: While running on Linux, instead of /nas/sbin, give the path where navicli is installed in Linux host.

 

To set the path in environment variable of Windows:

While installing Navisphere CLI software in Windows, click the checkbox for "Include Navisphere CLI in system environment path."

If it is not done while installing, follow the below procedure to add the path in environment variable.
  1. From the desktop, right-click the Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced system settings link.
  4. Click Environment Variables. In the section System Variables, find the Path environment variable and select it. Click Edit. If the Path environment variable does not exist, click New.
  5. In the Edit System Variable (or New System Variable) window, specify the value of the Path environment variable. Click OK. Close all remaining windows by clicking OK.

Note: The path should be the folder path where Navisphere CLI is installed in Windows.

If a path already exists, put a semicolon (;) before adding the new path.

Windows 10 users can search for "System (Control Panel)" and then follow from step 3.

 

After this is done, you can run naviseccli commands from any folder in Windows command line.

If the path is not set, you have to go to run commands from the folder where Navisphere CLI is installed.

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.