Professional Documents
Culture Documents
2A02 NSO Troubleshooting
2A02 NSO Troubleshooting
<DEBUG> 5-Jun-2017::17:58:29.054 RAMKRAJA ncs[16616]: devel-c service_create request for callpoint ‘demo’ path /service:test{1}
CRIT devel-c
ERR Date hostname OS pid devel-cdb Message
WARNING devel-aaa
INFO
devel-snmpa
DEBUG
devel-econfd
…
NSO Logs - north-bound logs
‘debug’ commands
• Available as pipe commands to ‘commit’
• debug template - Display the template evaluation
• debug service - Display all FASTMAP operations done by
the service
• debug xpath - Display evaluation of xpath (must/when)
expressions in the service model
NSO CLI Devtools - debug template
admin@ncs(config)# commit dry-run| debug template
Evaluating "$PE" (from file "l3vpn-pe.xml", line 4)
Context node: /vpn/l3vpn[name='volvo']
Result: "pe0”
Operation 'merge' on existing node: /devices/device[name='pe0']
(from file "l3vpn-pe.xml", line 4)
The device /devices/device[name='pe0'] does not support
namespace 'urn:ios' for node "vrf" (from file "l3vpn-pe.xml",
line 6)
Skipping...
NSO CLI Devtools - debug template
admin@ncs(config)# commit dry-run| debug service
Service: /vpn/l3vpn[name='volvo']
shared_create /devices/device[name='ce0']/config/ios:policy-
map[name='volvo'], refcount: 1
shared_create /devices/device[name='ce0']/config/ios:policy-
map[name='volvo']/class[name='class-default'], refcount: 1
shared_set /devices/device[name='ce0']/config/ios:policy-
map[name='volvo']/class[name='class-default']/shape/average/bit-
rate: 12000000, refcount: 1
shared_create /devices/device[name='ce0']/config/ios:class-
map[name='BUSINESS-CRITICAL'], refcount: 1
NSO CLI Devtools - debug template
admin@ncs(config)# commit dry-run| debug xpath
5-Jun-2017::17:35:03.308 Evaluating XPath for:
/vpn/l3vpn[name='volvo']/endpoint[id='branch-office1']/ce-
device:
/ncs:devices/ncs:device/ncs:nameget_elem("/l3vpn:vpn/l3vpn{volvo
}/endpoint{branch-office1}/ce-device") = ce1
exists("/ncs:devices/device{ce1}") = true
get_elem("/l3vpn:vpn/l3vpn{volvo}/endpoint{branch-office1}/ce-
device") = ce1
5-Jun-2017::17:35:03.309 XPath for:
/vpn/l3vpn[name='volvo']/endpoint[id='branch-office1']/ce-device
returns true
Micellaneous
Internal Error
• Hard to debug
• Usual symptoms are random restarts of NSO/Java-vm
• When the logs are not of much use, it’s probably a
memory issue J
• Debug-dumps (or just “top”) taken at regular intervals help
System issues - File descriptors