Both yp-shell and yangcli-pro provide a command line interface to netconfd-pro, but there are some important differences.


yp-shell is the optional embedded CLI for the netconfd-pro server which is enabled by default.

yangcli-pro is a NETCONF client that is used to connect to, manage, and configure multiple NETCONF servers.


yp-shell and yangcli-pro share many of the same commands and features.

The table below summarizes the commands available to each program. A star '*' is printed to indicate server commands.


yangcli-pro
yp-shell
description
action action Invoke a YANG action.
alias
alias
Show or set a specific yangcli-pro command alias.
aliases
aliases
Manage the yangcli-pro command aliases.
auto-test

Run automatic edit testing on the specified object
backup*
backup*
Backup the current running configuration to a file on the device.
cache*

Clear 1 or all entries from the YANG module cache.
cancel-commit*

This operation is used to cancel an ongoing confirmed commit.
cancel-subscription*

Cancel a notification subscription for the session, if this session has an active subscription.
cd

Change the current working directory.
close-session*

Request graceful termination of a NETCONF session.
commit*

When a candidate configuration's content is complete, the configuration data can be committed, publishing the data set to the rest of the device and requesting the device to conform to the behavior described in the new configuration.
config
config
Enter the configuration mode for the current session.
connect

Connect to a NETCONF server.
copy-config*

Create or replace an entire configuration datastore with the contents of another complete configuration datastore. If the target datastore exists, it is overwritten. Otherwise, a new one is created, if allowed. If a NETCONF peer supports the :url capability (Section 8.8), the 'url' element can appear as the <source> or <target> parameter.
create
create
Create some NETCONF config data with the edit-config operation.
create-subscription*

The command to create a notification subscription.
delete
delete
Delete some NETCONF config data with the edit-config operation. Delete all instances of a leaf-list.
delete-all
delete-all
Delete some NETCONF config data with the edit-config operation. Delete all instances of a leaf-list or list object.
delete-backup*
delete-backup*
Delete the specified backup file on the device.
delete-config*

Delete a configuration datastore. The 'running' configuration datastore cannot be deleted.
device-cfg

Access a device configuration.
devices-cfg

Controls access to the saved devices file.
discard-changes*

If the client decides that the candidate configuration should not be committed, the 'discard-changes' operation can be used to revert the candidate configuration to the current running configuration.
edit-config*

The 'edit-config' operation loads all or part of a specified configuration to the specified target configuration. This operation allows the new configuration to be expressed in several ways, such as using a local file, a remote file, or inline.
elif

Start an intermediate block in a conditional statement.
else

Start the last block in a conditional statement.
end

End an 'if' command block or a 'while' command block.
eval

Evaluate an XPath expression locally on the manager. All local variables will be available to the session context, in the following precedence:
   1) current script run level
   2) global variable
eventlog

Access the notification event log.
exit
exit
Exit the currrent configuration level for the current session.
fill

Fill a value for reuse in a NETCONF PDU or other operation.

get*
get*
Retrieve running configuration and device state information.
get-bulk*
get-bulk*
Retrieve multiple list entries at a time
get-config*
get-config*
Retrieve all or part of a specified configuration.
get-locks

Get a lock for the running configuration and the candidate and startup configurations, if needed. If all the locks cannot be obtained, then release all of them (all-or-nothing). The entire operation must be completed within the lock timeout interval, if it is set.
get-my-session*
get-my-session*
Get the customization settings for this session
get-schema*
get-schema*
This operation is used to retrieve a schema from the NETCONF server.
get-support-save*
get-support-save*
Retrieve the support-save info from the server.
group

Manage the yangcli-pro session groups. A group name is not allowed to have the same name as any session name. This allows the 'session set-current' command to select a group or an individual session.
help
help
Print the yangcli-pro help text.
history
history
Access the command line history buffer.
if

Evaluate an XPath expression locally on the manager and execute the block of commands that follow if the expression is true. The block ends when a matching 'elif', 'else', or 'end' command is reached.
insert
insert
Insert some NETCONF config data with the edit-config operation.
kill-session*

Force the termination of a NETCONF session.
list

List some NETCONF info.
load*
load*
Load a module into the server, if it is not already loaded.
load-bundle*
load-bundle*
Load a SIL bundle into the server, if it is not already loaded.
lock*

The lock operation allows the client to lock the configuration system of a device. Such locks are intended to be short-lived and allow a client to make a change without fear of interaction with other NETCONF clients, non-NETCONF clients (e.g., SNMP and command line interface (CLI) scripts), and human users.
log-debug

Write a message to the output log if the log-level is greater or equal to 'debug'.
log-error

Write a message to the output log if the log-level is greater or equal to 'error'.
log-info

Write a message to the output log if the log-level is greater or equal to 'info'.
log-warn

Write a message to the output log if the log-level is greater or equal to 'warn'.
merge
merge
Merge some NETCONF config data with the edit-config operation.
mgrload
mgrload
Load a module or other file into the client.
no-op*
no-op*
Just returns 'ok'. Used for debugging or relative performance measurements.
nvsave
nvsave
Save the running datastore to the startup datastore.
partial-lock*

A NETCONF operation that locks parts of the running datastore.
partial-unlock*

A NETCONF operation that releases a previously acquired partial-lock.
pwd

Print the current working directory.
quit
quit
Quit the yangcli-pro application.
recall
recall
Recall the specified command line history buffer entry into the current command line.
record-test

Use the unit test-suite automatic test recording feature. Only one test can be recorded at a time.
release-locks

Unlock all the server databases that were previously locked with the get-locks command.
remove
remove
Remove some NETCONF config data with the edit-config operation. Remove all instances of a leaf-list.
remove-all
remove-all
Remove some NETCONF config data with the edit-config operation. Remove all instances of a leaf-list or list object.
replace
replace
Create some NETCONF config data with the edit-config operation.
restart*
restart*
Restart the server. Does not reload the software image..
restore*
restore*
Restore a saved configuration on the device to the running configuration.
run

Internal command to run a script.
save
save
Meta command to save configuration edits.
session

Access an active session.
session-cfg

Access a session configuration.
sessions-cfg

Controls access to the saved sessions file.
set-log-level*
set-log-level*
Sets the server log verbosity level.
set-my-session*
set-my-session*
Set the customization settings for this session.
sget
sget
Get some NETCONF running config or state data with the get operation, using an optional subtree filter.
sget-config
sget-config
Get some NETCONF config data with the get-config operation, using an optional subtree filter.
show
show
Local show command for yangcli-pro session info.
shutdown*
shutdown*
Shutdown the server.
start-rpc-timing

Start collecting RPC timing statistics for the current session. Will set $$echo-replies to false and $$time-rpcs to true. Will record stats to output file if specified.
start-session

Start an active session from the specified configured session.
start-timer

Start a timer to do simple performance measurements.
stop-rpc-timing

Stop collecting RPC timing statistics for the current session. Will set session $$echo-replies to true and $$time-rpcs-state to false. Will close the stats file, if opened.
stop-session

Terminate an active session.
stop-timer

Stop a timer and output the delta value.
test-suite

Use the unit test-suite feature.
unload*
unload*
Unload a module from the server. Remove the associated server instrumentation library (SIL). Remove any data nodes in the system from the module. Remove the module from the server capabilities and NETCONF monitoring data. Remove the module namespace from the system.
unload-bundle*
unload-bundle*
Unload a SIL bundle from the server, if it is loaded.
unlock*

The unlock operation is used to release a configuration lock, previously obtained with the 'lock' operation.
unset
unset
Delete a specific yangcli-pro command alias.
update-config
update-config
Update the configuration cache for the current session.
user-cfg

Access a user configuration.
users-cfg

Controls access to the saved users file.
uservars

Manage the yangcli-pro user variables.
validate*

Validates the contents of the specified configuration.
while

Evaluate an XPath expression locally on the manager and execute the block of commands that follow while the expression is true. The block ends when a matching 'end' command is reached.
xget
xget
Get some NETCONF running config or state data with the get operation, using an optional XPath filter.
xget-config
xget-config
Get some NETCONF config data with the get-config operation, using an optional XPath filter.