07-10-2018 08:48 PM - edited 03-01-2019 04:12 AM
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.
07-11-2018 10:41 AM
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)
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)
07-11-2018 07:09 PM
Got your point. how can I get "action message" by my client. I don't want to periodic get.
07-11-2018 08:51 PM
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!
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: