Adding MIBs
The process for adding SNMP device support to the VOCAL system includes working with both the SNMPd and agent sides.
SNMPd Side
Follow these steps on the SNMPd side:
Create new agent code as described in the upcoming section “Creating New Agent Code.”
Move new agents to
vocal-1.3.0/snmp/vovidaSNMP/agent/mibgroup, under the proper subdirectory.
Here are some places to find more information:
Tables can use code similar to that found in
applTable.c.Traps are similar to
softSwitchNotifications.c.Nontable items are similar to
localGrp.c.
Agent Side
Here are some tips about working with the agent side:
The threads on the agent side are part of the monitored processes for the different VOCAL servers.
vocal-1.3.0/util/AgentApiis the class from which the agents are derived.vocal-1.3.0/heartbeat/hbs/HBAgent.cxxis the current agent for the HBS and can be used as a basis for other agents.vocal-1.3.0/util/AgentApiMibVars.hxxis a large enumerator that includes all VOCAL-specific MIB variables. New variables should be included here as well.
MIB Group Directory
The point of having an MIB group directory is to help the developer organize her MIBs in the Concurrent Versioning System (CVS) tree. The directory—vocal-1.3.0/snmp/vovidaSnmp/agent/mibgroup/—holds the implementation of individual MIB groups. Currently, this contains the eight MIB II groups, plus a basic template for new MIB groups (examples/example.c and examples/example.h). See the Net-SNMP manual pages for information about how ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access