Next: , Previous: , Up: SNMP Support   [Contents][Index]

18.2 AgentX configuration

To enable AgentX protocol support, Quagga must have been build with the --enable-snmp or --enable-snmp=agentx option. Both the master SNMP agent (snmpd) and each of the Quagga daemons must be configured. In /etc/snmp/snmpd.conf, master agentx directive should be added. In each of the Quagga daemons, agentx command will enable AgentX support.

	# example access restrictions setup
	com2sec readonly default public
	group MyROGroup v1 readonly
	view all included .1 80
	access MyROGroup "" any noauth exact all none none
	# enable master agent for AgentX subagents
	master agentx

	! ... the rest of ospfd.conf has been omitted for clarity ...

Upon successful connection, you should get something like this in the log of each Quagga daemons:

2012/05/25 11:39:08 ZEBRA: snmp[info]: NET-SNMP version 5.4.3 AgentX subagent connected

Then, you can use the following command to check everything works as expected:

# snmpwalk -c public -v1 localhost .
OSPF-MIB::ospfRouterId.0 = IpAddress:

The AgentX protocol can be transported over a Unix socket or using TCP or UDP. It usually defaults to a Unix socket and depends on how NetSNMP was built. If need to configure Quagga to use another transport, you can configure it through /etc/snmp/quagga.conf:

	# Use a remote master agent
	agentXSocket tcp: