SNMP Subagent Programmer's Guide
Static Directory Program
2-36 119728—SNMP Subagent Programmer’s Guide
Programming Tutorials
3. The structure that holds the subvolume name is initialized.
4. The value zsnmpsdk is assigned to the dir_name field of the directory structure.
5. The management environment is initialized.
6. MIB objects are made available for management.
7. The function build_files() is called to build the table of file names. The file named
dirH contains related structure definitions (10) and the function prototypes (11).
The file named dirC contains the definition of build_files (15) as well as the
definition of the function insert_new_file() (14), called by build_files() (17).
Function comp_files() (13) is used by function insert_new_file().
Figure 2-4. Logic Flow for Static Directory
209
mgmt_init_env()
(Initialize
management
environment)
mgmt_new_instance()
(Register MIB)
build_files()
(Build table)
mgmt_new_instance()
(Register each entry)
mgmt_poll()
(Process SNMP
request)
Still
connected to
agent
?
Stop
YES NO
Start