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.

/etc/snmp/snmpd.conf:
	#
	# 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

/etc/quagga/ospfd.conf:
	! ... the rest of ospfd.conf has been omitted for clarity ...
	!
	agentx
	!

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 .1.3.6.1.2.1.14.1.1
OSPF-MIB::ospfRouterId.0 = IpAddress: 192.168.42.109
[...]

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:

/etc/snmp/quagga.conf:
	[snmpd]
	# Use a remote master agent
	agentXSocket tcp:192.168.15.12:705