NSO - Troubleshooting, Backup & Restore
NSO - Troubleshooting, Backup & Restore
Restore
Imtiaz Ahmad & Imran Baig
Platform Software Group / Cisco Advanced Services
June 2017
Agenda
§ NSO Logs & Troubleshooting Tips
§ NSO Logs
§ NSO Error Log commands
§ Changing Log Level
§ Log Rotation
§ Performance Impact by each Log file
§ NSO Backup & Restore
§ Backup Functionality
§ Restore Functionality
§ Alternate of ncs-backup tool
NSO Logs
• Log Files
• audit.log – NB Calls including WebUI, JSON, REST API calls coming into NSO
• ncs.log – Logs NSO system events including issues with startup/shutdown
• ncs-java-vm.log – NSO’s Java VM issues
• devel.log – capture detailed info on Java code / CBD / sync-from and other details
NSO Logs - Continued
• Log Files
• ned-alu-..trace – generated by setting device trace on via NSO CLI (raw vs. pretty)
• xpath-trace-log – troubleshooting Xpath in YANG must statements (use carefully)
• ncserr.log – NSO Daemon errors are logged
• snmp.log – SNMP traps info
• netconf.log – Troubleshooting NB NETCONF operations coming into NSO
• ncs-python-vm.log – NSO python VM issues
• ncs-python-vm-<package-name>.log – Troubleshooting Python package specific issues
NSO Logs - Commands
• Commands
• ncs –debug-dump myncsdebug : send this to NSO Dev Team or attach to case
• ncs --printlog ncserr.log.1 :send this to NSO Dev Team
• ncs_cmd –c reopen_logs : restarting Logging without restarting NSO
Changing Log level
• Changing logging level for ’devel.log’ in >> ncs.conf
• Restore Process
• Stop NSO
• ncs-backup –restore <path-to-backup-file>
• Start NSO
Backup / Restore
• Complex Backup
• NSO in HA
• NSO with Clustering & HA
• NSO with LSA & HA
• Solution
• nct tool - useful for multiple NSO nodes
• Backup & Restore
• Upgrade
• Install & Uninstall
• …..