ExamGecko
Question list
Search
Search

Question 58 - D-PST-MN-A-24 discussion

Report
Export

A Storage Administrator ran a PSTCLI command on a Linux host. The error ' -bash: pstcli: command not found' appears. How is the problem resolved?

A.
Add /opt/dellemc/pstcli/bin/ in PSTCLI.sh
Answers
A.
Add /opt/dellemc/pstcli/bin/ in PSTCLI.sh
B.
Run rpm -ihv pstcli to reinstall the PSTCLI software on the Linux host
Answers
B.
Run rpm -ihv pstcli to reinstall the PSTCLI software on the Linux host
C.
Install in default directory /opt/dellemc/pstcli-version/bin/
Answers
C.
Install in default directory /opt/dellemc/pstcli-version/bin/
D.
Add the installation directory to the PATH variable on shell initialization file
Answers
D.
Add the installation directory to the PATH variable on shell initialization file
Suggested answer: D

Explanation:

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.

By adding the PSTCLI installation directory to the PATH variable, the shell will be able to locate the pstcli executable when the command is run1. It is important to ensure that the PATH variable is correctly set to include all necessary directories for command-line tools to function properly. If the issue persists, it may be necessary to check the installation of PSTCLI or consult the Dell EMC PowerStore documentation for further troubleshooting steps1.

asked 16/09/2024
Ernesto Barba
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first