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:
- 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
- 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:
- Go to home directory.
[nasadmin@vnx5700 /]$ cd
[nasadmin@vnx5700 ~]$ vi .bash_profile
[nasadmin@vnx5700 ~]$ vi .bash_profile
- Find the line:
PATH=$PATH:$NAS_DB/bin
- Make the line look like this:
PATH=$PATH:$NAS_DB/bin:/nas/sbin
- 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.
- From the desktop, right-click the Computer icon.
- Choose Properties from the context menu.
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the
Pathenvironment variable and select it. Click Edit. If the Path environment variable does not exist, clickNew. - In the Edit System Variable (or New System Variable) window, specify the value of the
Pathenvironment 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 SeriesProducts
VNX1 Series, VNX2 SeriesArticle 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.