1) I did run ./configure command with this option '--with-cflags=-DFOR_TESTING -DVLAN_SUPPORT -DRSTP_SUPPORT1 -DRSTP_SUPPORT -DVALIDATIONS_SUPPORTED' Before running configure, I had not added subagent code to net-snmp. During configuration, I set default version as 1, mentioned root, location,log file, etc. 2) make (which gave me warnings in snmplib/container.c and snmplib/container_list_ssll.c) 3) umask 022 4) make install 5) Run ./local/snmpconf The following configuration files were found: 1: /usr/local/share/snmp/snmpd.conf Would you like me to read them in? Their content will be merged with the output files created by this session. Valid answer examples: "all", "none","1,2,5" Read in which (default = all): press Enter Select file to create: 1: snmp.conf 2: snmptrapd.conf 3: snmpd.conf Other options: quit,q Select File: Select 3 Select configuration section for snmpd.conf to operate on: 1: System Information Setup 2: Access Control Setup 3: Trap Destinations 4: Monitor Various Aspects of the Running Host 5: Extending the Agent 6: Agent Operating Mode Other options: finished,f Select section: Select 2 Section: Access Control Setup Description: This section defines who is allowed to talk to your running snmp agent. Select from: 1: a SNMPv1/SNMPv2c read-write access community name 2: a SNMPv1/SNMPv2c read-only access community name 3: a SNMPv3 read-only user 4: a SNMPv3 read-write user Other options: finished,f,list,l Select section: Select 1 Configuring: rwcommunity Description: a SNMPv1/SNMPv2c read-write access community name arguments: community [default|hostname|network/bits] [oid] Enter the community name to add read-write access for: Press Enter The hostname or network address to accept this community name from [RETURN for all]: type LAN The OID that this community should be restricted to [RETURN for no-restriction]: press enter Finished Output: rwcommunity lan Section: Access Control Setup Description: This section defines who is allowed to talk to your running snmp agent. Select from: 1: a SNMPv1/SNMPv2c read-write access community name 2: a SNMPv1/SNMPv2c read-only access community name 3: a SNMPv3 read-only user 4: a SNMPv3 read-write user Other options: finished,f,list,l Select section: enter f Select configuration section for snmpd.conf to operate on: 1: System Information Setup 2: Access Control Setup 3: Trap Destinations 4: Monitor Various Aspects of the Running Host 5: Extending the Agent 6: Agent Operating Mode Other options: finished,f Select section: enter f Select file to create: 1: snmp.conf 2: snmptrapd.conf 3: snmpd.conf Other options: quit,q Select File: type q Run again ./local/snmpconf The following configuration files were found: 1: ./snmpd.conf 2: /usr/local/share/snmp/snmpd.conf Would you like me to read them in? Their content will be merged with the output files created by this session. Valid answer examples: "all", "none","1,2,5" Read in which (default = all): Press Enter Select file to create: 1: snmp.conf 2: snmptrapd.conf 3: snmpd.conf Other options: quit,q Select File: Select 3 Select configuration section for snmpd.conf to operate on: 1: System Information Setup 2: Access Control Setup 3: Trap Destinations 4: Monitor Various Aspects of the Running Host 5: Extending the Agent 6: Agent Operating Mode Other options: finished,f Select section: Select 6 Section: Agent Operating Mode Description: This section defines how the agent will operate when it is running. Select from: 1: The IP address and port number that the agent will listen on. 2: The system user that the agent runs as. 3: Should the agent operate as a master agent or not. 4: The system group that the agent runs as. Other options: finished,f,list,l Select section: Select 3 Configuring: master Description: Should the agent operate as a master agent or not. Currently, the only supported master agent type for this token is "agentx". arguments: (on|yes|agentx|all|off|no) Should the agent run as a AgentX master agent?: type agentx Finished Output: master agentx Section: Agent Operating Mode Description: This section defines how the agent will operate when it is running. Select from: 1: The IP address and port number that the agent will listen on. 2: The system user that the agent runs as. 3: Should the agent operate as a master agent or not. 4: The system group that the agent runs as. Other options: finished,f,list,l Select section: type f Select configuration section for snmpd.conf to operate on: 1: System Information Setup 2: Access Control Setup 3: Trap Destinations 4: Monitor Various Aspects of the Running Host 5: Extending the Agent 6: Agent Operating Mode Other options: finished,f Select section: type f Select file to create: 1: snmp.conf 2: snmptrapd.conf 3: snmpd.conf Other options: quit,q Select File: type q Select File: q Error: snmpd.conf already exists. 'overwrite', 'skip', 'rename' or 'append'? : type overwrite mv snmpd.conf /usr/local/share/snmp/ Run /usr/local/sbin/./snmpd 6) After following above steps as it is, I copied subagent code at net-snmp/agent/mibgroup/examples/mymib Then did run makefiles and subAgent is created. 7) After running subagent, that error came up.