SNMP Subagent Programmer's Guide

Security Checker
2-84 119728—SNMP Subagent Programmer’s Guide
Programming Tutorials
Figure 2-8. Logic Flow for Security Checker
223
mgmt_new_instance()
(Register MIB)
Still
connected to
agent
?
Stop
Is
password
valid
?
Run-Time Library Actions
mgmt_poll()
(Process SNMP request)
Terminate MIB
management and
agent connection
Call access function(s)
associated with MIB
object in request
Send SNMP error
to manager
NO
YES
NO
Process request
Start
Identify
request
Did
helloPrintFreq
value change
?
mgmt_trap()
(Send trap)
GET_helloPrintFreq
(Get value of trap
varbind)
Process trap
YES
NO
Perform nowait read
from agent
mgmt_init_env()
(Initialize
management
environment)
authenticate()
(Determine
password
validity)
Input from
agent
?
mgmt_security()
(Get password
from agent)
NO
YES
A
A
YES