SNMP Subagent Programmer's Guide
Hello World Program
2-12 119728—SNMP Subagent Programmer’s Guide
Programming Tutorials
The names of these variables need not be the same as their corresponding MIB 
object names, but they do need to match the variable name in the associated MIB 
extension. For example, the MIB object named helloOutputText is associated with 
the subagent C variable named helloText:
EXTEND OBJECT-TYPE helloOutputText
 WITH C_VARIABLE helloText
 IN C
Figure 2-1. Logic Flow for Hello World
202
mgmt_init_env() 
(Initialize 
management 
environment)
mgmt_new_instance() 
(Register MIB)
mgmt_poll() 
(Process SNMP 
request)
Stop
YES
NO
mgmt_term_env() 
(Terminate 
management)
mgmt_del_instance() 
(De-register MIB)
mgmt_trap() 
(Send trap)
Did 
helloPrintFreq 
value change 
?
NO
YES
Still 
connected to 
agent 
?
Start










