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.
|action||action||Invoke a YANG action.
||Show or set a specific yangcli-pro command alias.
||Manage the yangcli-pro command aliases.
||Run automatic edit testing on the specified object
||Backup the current running configuration to a file on the device.
||Clear 1 or all entries from the YANG module cache.
||This operation is used to cancel an ongoing confirmed commit.
||Cancel a notification subscription for the session, if this session has an active subscription.
||Change the current working directory.
||Request graceful termination of a NETCONF session.
||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.
||Enter the configuration mode for the current session.
||Connect to a NETCONF server.
||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 some NETCONF config data with the edit-config operation.
||The command to create a notification subscription.
||Delete some NETCONF config data with the edit-config operation. Delete all instances of a leaf-list.
||Delete some NETCONF config data with the edit-config operation. Delete all instances of a leaf-list or list object.
||Delete the specified backup file on the device.
||Delete a configuration datastore. The 'running' configuration datastore cannot be deleted.
||Access a device configuration.
||Controls access to the saved devices file.
||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.
||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.
||Start an intermediate block in a conditional statement.
||Start the last block in a conditional statement.
||End an 'if' command block or a 'while' command block.
||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
||Access the notification event log.
||Exit the currrent configuration level for the current session.
||Fill a value for reuse in a NETCONF PDU or other operation.
||Retrieve running configuration and device state information.
||Retrieve multiple list entries at a time
||Retrieve all or part of a specified configuration.
||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 the customization settings for this session
||This operation is used to retrieve a schema from the NETCONF server.
||Retrieve the support-save info from the server.
||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.
||Print the yangcli-pro help text.
||Access the command line history buffer.
||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 some NETCONF config data with the edit-config operation.
||Force the termination of a NETCONF session.
||List some NETCONF info.
||Load a module into the server, if it is not already loaded.
||Load a SIL bundle into the server, if it is not already loaded.
||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.
||Write a message to the output log if the log-level is greater or equal to 'debug'.
||Write a message to the output log if the log-level is greater or equal to 'error'.
||Write a message to the output log if the log-level is greater or equal to 'info'.
||Write a message to the output log if the log-level is greater or equal to 'warn'.
||Merge some NETCONF config data with the edit-config operation.
||Load a module or other file into the client.
||Just returns 'ok'. Used for debugging or relative performance measurements.
||Save the running datastore to the startup datastore.
||A NETCONF operation that locks parts of the running datastore.
||A NETCONF operation that releases a previously acquired partial-lock.
||Print the current working directory.
||Quit the yangcli-pro application.
||Recall the specified command line history buffer entry into the current command line.
||Use the unit test-suite automatic test recording feature. Only one test can be recorded at a time.
||Unlock all the server databases that were previously locked with the get-locks command.
||Remove some NETCONF config data with the edit-config operation. Remove all instances of a leaf-list.
||Remove some NETCONF config data with the edit-config operation. Remove all instances of a leaf-list or list object.
||Create some NETCONF config data with the edit-config operation.
||Restart the server. Does not reload the software image..
||Restore a saved configuration on the device to the running configuration.
||Internal command to run a script.
||Meta command to save configuration edits.
||Access an active session.
||Access a session configuration.
||Controls access to the saved sessions file.
||Sets the server log verbosity level.
||Set the customization settings for this session.
||Get some NETCONF running config or state data with the get operation, using an optional subtree filter.
||Get some NETCONF config data with the get-config operation, using an optional subtree filter.
||Local show command for yangcli-pro session info.
||Shutdown the server.
||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 an active session from the specified configured session.
||Start a timer to do simple performance measurements.
||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.
||Terminate an active session.
||Stop a timer and output the delta value.
||Use the unit test-suite feature.
||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 a SIL bundle from the server, if it is loaded.
||The unlock operation is used to release a configuration lock, previously obtained with the 'lock' operation.
||Delete a specific yangcli-pro command alias.
||Update the configuration cache for the current session.
||Access a user configuration.
||Controls access to the saved users file.
||Manage the yangcli-pro user variables.
||Validates the contents of the specified configuration.
||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.
||Get some NETCONF running config or state data with the get operation, using an optional XPath filter.
||Get some NETCONF config data with the get-config operation, using an optional XPath filter.