CLI Guide

Table Of Contents
pushd and popd commands
Use the pushd directory command to save the current directory, and jump to the specified directory.
Once a directory is added to the pushd stack, use the pushd command with no argument to switch back to the previous
directory.
In the following example, pushd switches between the clusters and monitoring parent contexts:
VPlexcli:/clusters/cluster-1/directors/director-1-1-A> pushd /monitoring/directors/
director-1-1-A
[/monitoring/directors/director-1-1-A, /clusters/cluster-1/directors/director-1-1-A, /
monitoring/directors/director-1-1-A]
VPlexcli:/monitoring/directors/director-1-1-A> pushd
[/clusters/cluster-1/directors/director-1-1-A, /monitoring/directors/director-1-1-A, /
monitoring/directors/director-1-1-A]
VPlexcli:/clusters/cluster-1/directors/director-1-1-A> pushd
[/monitoring/directors/director-1-1-A, /clusters/cluster-1/directors/director-1-1-A, /
monitoring/directors/director-1-1-A]
VPlexcli:/monitoring/directors/director-1-1-A>
Use the dirs command to display to the current context stack:
VPlexcli:/clusters/cluster-1> dirs
[/clusters/cluster-1, /, /, /clusters/cluster-1/directors/director-1-1-A/hardware/
ports/A5-GE01, /]
Use the popd command to remove the last directory saved by the pushd command and jump to the new top directory.
In the following example, the dirs command displays the context stack saved by the pushd command, and the popd
command removes the top directory, and jumps to the new top directory:
VPlexcli:/clusters/cluster-1/directors/director-1-1-A> dirs
[/clusters/cluster-1/directors/director-1-1-A, /monitoring/directors/director-1-1-A]
VPlexcli:/clusters/cluster-1/directors/director-1-1-A> popd
[/clusters/cluster-1/directors/director-1-1-A]
VPlexcli:/monitoring/directors/director-1-1-A>
Where am I in the context tree?
The CLI includes several features to help locate your current position in the context tree and determine what contexts and/or
commands are accessible.
NOTE:
The context tree displays only those objects associated with directors to which the management system is
connected.
The command prompt displays the current context:
VPlexcli:/> cd /monitoring/directors/director-1-1-B/monitors/
VPlexcli:/monitoring/directors/director-1-1-B/monitors>
The ls command displays the sub-contexts immediately accessible from the current context:
VPlexcli:/> ls
clusters data-migrations distributed-storage monitoring notifications system-
defaults
The ls -l command displays more information about the current sub-contexts:
VPlexcli:/data-migrations> ls -l
Name Description
----------------- -------------------------------------
device-migrations Contains all the device migrations in the system.
extent-migrations Contains all the extent migrations in the system.
For contexts where the next lowest level is a list of individual objects, the ls command displays a list of the objects:
VPlexcli:/clusters/cluster-1/exports/ports> ls
P000000003B2017DF-A0-FC00 P000000003B2017DF-A0-FC01
16
Using the VPlexcli