A Storage Administrator ran a PSTCLI command on a Linux host. The error " -bash: pstcli: command not found" appears. How is the problem resolved?
When the error ''-bash: pstcli: command not found'' appears after running a PSTCLI command on a Linux host, it typically means that the shell cannot locate the pstcli executable in the directories listed in the PATH environment variable. To resolve this issue, the installation directory of pstcli needs to be added to the PATH variable. This can be done by editing the shell initialization file (such as .bashrc or .bash_profile for Bash shell) and appending the installation directory to the PATH variable.
Here are the steps to resolve the problem:
Locate the installation directory of PSTCLI. If you followed the default installation, it should be in /opt/dellemc/pstcli-version/bin/.
Open the shell initialization file in a text editor. For example, if using Bash, you might edit ~/.bashrc or ~/.bash_profile.
Add the following line to the file: export PATH=$PATH:/opt/dellemc/pstcli-version/bin/. Replace /opt/dellemc/pstcli-version/bin/ with the actual installation directory if it is different.
Save the file and reload the shell configuration by running source ~/.bashrc or source ~/.bash_profile, or simply close and reopen the terminal.
Verify that pstcli can be found by running echo $PATH and ensuring the directory is listed.
Try running the pstcli command again to confirm that the issue is resolved.
Fatima
3 months agoStephane
2 months agoAntonette
2 months agoRonald
2 months agoNicholle
2 months agoJavier
3 months agoBlair
3 months agoAmber
3 months agoVivan
3 months agoSharen
3 months agoAlpha
3 months agoEulah
3 months agoOmer
3 months agoTimothy
3 months agoPilar
3 months agoShaunna
3 months agoFrancisca
4 months ago