D-PST-MN-A-24 practice question 13 of 15

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

Full set: 61 questions
Answer options
A: Add /opt/dellemc/pstcli/bin/ in PSTCLI.sh
B: Run rpm -ihv pstcli to reinstall the PSTCLI software on the Linux host
C: Install in default directory /opt/dellemc/pstcli-version/bin/
D: Add the installation directory to the PATH variable on shell initialization file Correct answer
Correct Answer:
D. Add the installation directory to the PATH variable on shell initialization file
Explanation

The error message -bash: pstcli: command not found is a standard Linux shell error indicating that the pstcli executable cannot be found in any of the directories specified in the PATH environment variable. The correct and standard procedure to resolve this is to modify the PATH variable to include the directory where the pstcli binary is located. This is typically done by adding an export PATH command to a shell initialization file (e.g., ~/.bashrc or ~/.bashprofile), ensuring the command is available in future shell sessions.

Why Incorrect

A. PSTCLI.sh is not a standard shell initialization file for environment configuration; modifying it is improper and may not be persistent.
B. The error does not imply a corrupted or failed installation, but rather a shell configuration issue. Reinstalling the software is unnecessary.
C. This describes a choice made during the installation process, not a method to resolve a pathing issue for an existing installation.

References

1. Dell PowerStore Command Line Interface 3.0 User Guide

Page 11

"Install the PowerStore CLI on Linux"

Step 5.

The document explicitly states: "To run the pstcli commands from any directory

add the installation path to the PATH environment variable. For example: export PATH=$PATH:/opt/dellemc/pstcli/bin". This directly supports the correct answer (D) as the official procedure.

2. Sobell

M. G.

& Helmke

M. (2018). A Practical Guide to Linux Commands

Editors

and Shell Programming. Pearson Education. Chapter 4

"The Shell".

This academic-level text explains that a "command not found" error occurs when the shell searches the directories in the PATH variable and fails to find a matching executable. It confirms that the solution is to add the command's directory to the PATH.

Scroll to Top