SNMP Subagent Programmer's Guide
Programming Tutorials
SNMP Subagent Programmer’s Guide—119728 2-47
Dynamic Directory Program
Figure 2-5. Logic Flow for Dynamic Directory
214
mgmt_init_env() 
(Initialize 
management 
environment)
mgmt_new_instance() 
(Register MIB)
mgmt_new_instance() 
(Register head of 
table)
mgmt_poll() 
(Process SNMP 
request)
Still 
connected to 
agent 
?
Stop
YES
NO
free_files() 
(Release 
allocated 
memory)
next_file() 
 (Build table and find 
index to next entry)
locate_file() 
 (Build table and find or 
insert entry)
Process 
request
Run-Time Library Actions
Start
Identify 
request
GetSet
GetNext










