cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
844
Views
2
Helpful
3
Replies

how can I know device(ssh connection to NSO) reboot by NSO

haofan
Level 4
Level 4

Hi experts,

How can I know device like cBR8(managed by NSO) that is rebooting  by NSO.

I want to get reboot events.

Thanks,

Hao Fan.

3 Replies 3

gschudel
Cisco Employee
Cisco Employee

Hi Hao

do you think you can get CBR8 to send an "coldstart" or "wramstart" SNMP Trap at "reboot"?

i think this should be possible (i'm not a CBR8 person)

https://www.cisco.com/c/en/us/td/docs/cable/cbr/configuration/guide/b_cbr_full_book_docsis/b_cbr_full_book_docsis_30_chapter_01000011.html

And then you can config NSO to list for the specific SNMP Trap (based on OID) and have your "action" handle the trap and take the action you desire.

(there is an SNMP Trap example in ./examples)

Got your point. how can I get "action message" by my client. I don't want to periodic get. 

If you look in

./nso-4.7.0/examples.ncs/snmp-notification-receiver/packages/snmp-notif-recv/src/java/src/com/example/snmpnotificationreceiver/ExampleHandler.java

it shows all the code for listening for the desired OID. Once you have your OID, you can "do whatever you like" ...

(e.g. sync-from)... 

This corresponds to the example near the end of the nso-development guide

(see SNMP notification handlers)

should be good to go!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: