Only 500 alarms returned from the nas get_alarms callback

Document ID : KB000057300
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptoms


Only getting 500 alarms from the get_alarms callback

Customer wrote a PERL script and was using the PERL API and the get_alarms callback to the nas probe but was only able to return 500 alarms from the callback.

When he used the nas probe utility (ctrl-p) in IM, and triggered the get_alarms callback, he could only get 500 alarms here as well.

Resolution was to:

Loop through get_alarms until you get a return of NIME_NOENT.

As per engineering:

"You want to loop and keep making the get_alarms call until you run out of data."
"Check the return code and I believe you will continue to make the call until the return code is ?NIME_NOENT?.





Solution