SNMP Subagent Programmer's Guide
Programming Tutorials
SNMP Subagent Programmer’s Guide—119728 2-19
Nowaited Hello World Program
Logic Flow
Figure 2-2 illustrates how Nowaited Hello World uses management functions and 
Guardian procedure calls.
Figure 2-2. Logic Flow for Nowaited Hello World
mgmt_init_env() 
(Initialize 
management 
environment)
mgmt_new_instance() 
(Register MIB)
204
mgmt_poll() 
(Process SNMP 
request)
YES
NO
mgmt_del_instance() 
(De-register MIB)
NO
mgmt_trap() 
(Send trap)
Did 
helloPrintFreq 
value change 
?
YES
Still 
connected to 
agent 
?
Stop
mgmt_term_env() 
(Terminate 
management)
mgmt_read_nowait() 
(Initiate nowait read 
from agent)
AWAITIOX 
 (Detect I/O operation 
completion)
Did I/O 
operation 
complete 
?
Is input from 
agent 
?
Did a  
timeout occur 
?
FILE_GETINFO_ 
 (Determine why I/O did 
not complete)
YES
NO
YES
NO
YES NO
Start
Print 
message










