NSO 4.1.2 Manual Pages First Published: May 17, 2010 Last Modified: April 1, 2016

NSO 4.1.2 Manual Pages First Published: May 17, 2010 Last Modified: April 1, 2016

NSO 4.1.2 Manual Pages First Published: May 17, 2010 Last Modified: April 1, 2016 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 Tel: 800 553-NETS (6387) Fax: 408 527-0883 THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, IN- FORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EX- PRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WAR- RANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRAC- TICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, net- work topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is un- intentional and coincidental. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http:// www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship be- tween Cisco and any other company. (1110R) This product includes software developed by the NetBSD Foundation, Inc. and its contributors. This product includes cryptographic software written by Eric Young ([email protected]). This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit http://www.openssl.org/. This product includes software written by Tim Hudson ([email protected]). U.S. Pat. No. 8,533,303 and 8,913,519 Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016 Cisco Systems, Inc. All rights reserved. ii CONTENTS CHAPTER I NCS man-pages, Volume 1 1 ncs-backup 3 ncs-collect-tech-report 5 ncs-installer 7 ncs-maapi 11 ncs-make-package 17 ncs-netsim 19 ncs-project-clean 23 ncs-project-create 25 ncs-project-git 27 ncs-project-setup 29 ncs-project 17 ncs-setup 33 ncs-uninstall 37 ncs 39 ncs_cli 43 ncs_cmd 47 ncs_load 49 ncsc 53 nct-backup 65 nct-check 69 nct-cli-cmd 73 nct-copy 77 nct-get-logs 81 nct-ha 85 nct-hostsfile 89 nct-install 91 nct-load-config 95 NSO 4.1.2 Manual Pages iii Contents nct-move-device 99 nct-packages 103 nct-patch 107 nct-ssh-cmd 111 nct-start 115 nct-stop 119 nct-upgrade 123 nct 127 pyang 137 CHAPTER II NCS man-pages, Volume 3 149 confd_lib 151 confd_lib_cdb 153 confd_lib_dp 191 confd_lib_events 249 confd_lib_ha 255 confd_lib_lib 257 confd_lib_maapi 279 confd_types 343 CHAPTER III NCS man-pages, Volume 5 379 clispec 381 mib_annotations 423 ncs.conf 425 tailf_yang_cli_extensions 455 tailf_yang_extensions 487 NSO 4.1.2 Manual Pages iv NCS man-pages, Volume 1 1 2 Name ncs-backup — Command to backup and restore NCS data Synopsis ncs-backup [--install-dir InstallDir] [--non-interactive] ncs-backup --restore [Backup] [--install-dir InstallDir] [--non-interactive] DESCRIPTION The ncs-backup command can be used to backup and restore NCS CDB, state data, and config files for an NCS "system installation", i.e. one that was done with the --system-install option to the NCS in- staller (see ncs-installer(1)). Unless the --restore option is used, the command creates a backup. The backup is stored in the RunDir/backups directory, named with the NCS version and current date and time. OPTIONS --restore [ Backup ] Restore a previously created backup. The Backup argument is ei- ther the name of a file in the RunDir/backups directory or the full path to a backup file. If the argument is omitted, unless the -- non-interactive option is given, the command will offer se- lection from available backups. [ --install-dir In- Specifies the directory for installation of NCS static files, like the stallDir ] --install-dir option to the installer. If this option is omitted, / opt/ncs will be used for InstallDir. [ --non-interactive ] If this option is used, restore will proceed without asking for confir- mation. 3 4 Name ncs-collect-tech-report — Command to collect diagnostics from an NCS installation that has been installed with the --system-install option Synopsis ncs-collect-tech-report [--install-dir InstallDir] [--full] [--num-debug-dumps Integer] DESCRIPTION The ncs-collect-tech-report command can be used to collect diagnostics from an NCS installation. The re- sulting diagnostics file contains information that is useful to Tail-f support to diagnose problems and er- rors. If the NCS daemon is running, runtime data from the running daemon will be collected. If the NCS dae- mon is not running, only static files will be collected. OPTIONS [ --install-dir In- Specifies the directory for installation of NCS static files, like the stallDir ] --install-dir option to the installer. If this option is omitted, / opt/ncs will be used for InstallDir. [ --full ] This option is used to also include a full backup (as produced by ncs-backup) of the system. This makes it sometimes possible for Tail-f support to reproduce issues locally. [ --num-debug-dumps This option is sometimes useful when a resource leak (memory/file Count ] descriptors) is suspected. It instructs the ncs-collect-tech-report script to run the command ncs --debug-dump multiple times. 5 6 Name ncs-installer — NCS installation script Synopsis ncs-VSN.OS.ARCH.installer.bin [--local-install] LocalInstallDir ncs-VSN.OS.ARCH.installer.bin --system-install [--install-dir InstallDir] [--config-dir ConfigDir] [--run-dir RunDir] [--log-dir LogDir] [--run-as-user User] [--non-interactive] DESCRIPTION The NCS installation script can be invoked to do either a simple "local installation", which is convenient for test and development purposes, or a "system installation", suitable for deployment. LOCAL INSTALLATION [ --local-install ] Lo- When the NCS installation script is invoked with this option, or is calInstallDir given only the LocalInstallDir argument, NCS will be in- stalled in the LocalInstallDir directory only. SYSTEM INSTALLATION --system-install When the NCS installation script is invoked with this option, it will do a system installation that uses several different directories, in ac- cordance with Unix/Linux application installation standards. The first time a system installation is done, the following actions are tak- en: • The directories described below are created and populated. • An init script for start of NCS at system boot is installed. • User profile scripts that set up $PATH and other environment variables appropriately for NCS users are installed. • A symbolic link that makes the installed version the currently active one is created (see the --install-dir option). [ --install-dir In- This is the directory where static files, primarily the code and li- stallDir ] braries for the NCS daemon, are installed. The actual directory used for a given invocation of the installation script is InstallDir/ ncs-VSN, allowing for coexistence of multiple installed versions. The currently active version is identified by a symbolic link In- stallDir/current pointing to one of the ncs-VSN directo- ries. If the --install-dir option is omitted, /opt/ncs will be used for InstallDir. [ --config-dir ConfigDir This directory is used for config files, e.g. ncs.conf. If the -- ] config-dir option is omitted, /etc/ncs will be used for Con- figDir. [ --run-dir RunDir ] This directory is used for run-time state files, such as the CDB da- ta base and currently used packages. If the --run-dir option is omitted, /var/opt/ncs will be used for RunDir. [ --log-dir LogDir ] This directory is used for the different log files written by NCS. If the --log-dir option is omitted, /var/log/ncs will be used for LogDir. 7 [ --run-as-user User ] By default, the system installation will run NCS as the root user. If a different user is given via this option, NCS will instead be run as that user. The user will be created if it does not already exist. This mode is only supported on Linux systems that have the setcap com- mand, since it is needed to give NCS components the required capa- bilities for some aspects of the NCS functionality. When the option is used, the following executable files (assuming that the default /opt/ncs is used for --install-dir) will be installed with elevated privileges: /opt/ncs/current/lib/ Setuid to root.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    524 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us