Download SunNet Manager 2.2.3 Programmer`s Guide

Transcript
Getting Data, Event, and Trap Reports
3
When you registered for data or event/trap reports, one parameter you
specified was the function to handle incoming reports. Each time an event or
data report comes in, your report-handling function is called with the
following arguments:
u_int type
report type—either NETMGT_DATA_REPORT, NETMGT_EVENT_REPORT,
NETMGT_TRAP_REPORT, or NETMGT_ERROR_REPORT.
char *target
name of the target system where the managed element resides.
char *group
name of the group whose attribute values are being reported.
char *key
unique row identifier for tables. An instance of the group on the managed
system. This is used if a key was specified.
count
the reporting count.
timeval interval
the reporting interval.
u_int flags
report flags.
3-1