The group identifies the collection of object attributes being reported by the agent.
An additional piece of information returned by netmgt_fetch_msginfo(3n) is a status code from the agent. It is usually NETMGT_SUCCESS, but could be NETMGT_WARNING or NETMGT_FATAL (or something else), in which case you need to find out more. Chapter 6, "Handling Error Reports ," explains the procedures for handling error conditions.
Now you know who sent you the report. The type field tells you what type of report was sent--either NETMGT_DATA_REPORT, NETMGT_EVENT_REPORT , NETMGT_TRAP_REPORT, or NETMGT_ERROR_REPORT. The first three are discussed below. Error reports are discussed in Chapter 6, "Handling Error Reports ."
The first time you call netmgt_fetch_data
(3n) after getting a data report, you get the first data statistic in the
report. Each successive call gets another data statistic. Two sentinel statistics
are possible--if <name> is NETMGT_ENDOFROW, you've
just hit the end of a row of a table. You might need this information to format
your output report. The second sentinel you might get is a <name>
of NETMGT_ENDOFARGS, which signals the end of the data report.
NOTE - Agents that report
tables can immediately follow NETMGT_ENDOFROW with NETMGT_ENDOFARGS
. You need to check for this so you don't process a "blank" row.
The fixed set of attributes are listed in
Table 3-1
.
Attribute Name |
Type |
Description |