SNMP Subagent Programmer's Guide
Indexed Trap Generator
2-62 119728—SNMP Subagent Programmer’s Guide
Programming Tutorials
Figure 2-6. Logic Flow for Indexed Trap Generator
218
mgmt_init_env()
(Initialize
management
environment)
mgmt_new_instance()
(Register MIB)
mgmt_new_instance()
(Register table)
next_entry()
(Find index to next
entry)
locate_entry()
(Find entry)
Process
request
Run-Time Library Actions
Reject
request
mgmt_poll()
(Wait for NonStop agent
to respond)
Prompt for card and
port numbers
Is
input
valid
?
mgmt_trap()
(Generate trap)
locate_entry()
(Find entry)
Send
trap
Still
connected to
agent
?
Stop
NO
mgmt_poll()
(Process any
pending SNMP
requests)
YES
Initialize tblTrapTable
Start
Identify
request
Get
Set
GetNext
YES
NO