

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://net-snmp.sourceforge.io/wiki/index.php?action=history&amp;feed=atom&amp;title=TUT%3Aagentxtrap</id>
		<title>TUT:agentxtrap - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://net-snmp.sourceforge.io/wiki/index.php?action=history&amp;feed=atom&amp;title=TUT%3Aagentxtrap"/>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=TUT:agentxtrap&amp;action=history"/>
		<updated>2026-04-28T12:16:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>https://net-snmp.sourceforge.io/wiki/index.php?title=TUT:agentxtrap&amp;diff=4376&amp;oldid=prev</id>
		<title>Wes: initial cut.</title>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=TUT:agentxtrap&amp;diff=4376&amp;oldid=prev"/>
				<updated>2010-06-17T21:24:14Z</updated>
		
		<summary type="html">&lt;p&gt;initial cut.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{require|5.6}}&lt;br /&gt;
&lt;br /&gt;
[[AgentX]] is a master/sub-agent protocol that allows for notifications to be sent from a subagent to the master agent.  The master agent will then retransmit that trap to all of its configured notification destinations.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;agentxtrap&amp;#039;&amp;#039;&amp;#039; application is designed to simulate a subagent that simply connects to a running snmpd that is running as a master agent and ask it to send a notification.&lt;br /&gt;
&lt;br /&gt;
For example, if in your [[snmpd.conf]] file you had:&lt;br /&gt;
&lt;br /&gt;
  trapv2sink host1.example.com myCommunity&lt;br /&gt;
  trapsess tls:host2.example.com&lt;br /&gt;
  master all&lt;br /&gt;
&lt;br /&gt;
And then you ran:&lt;br /&gt;
&lt;br /&gt;
  # &amp;#039;&amp;#039;&amp;#039;agentxtrap linkUp.0&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
It would cause snmpd to send a &amp;#039;&amp;#039;linkUp&amp;#039;&amp;#039; trap to both &amp;#039;&amp;#039;host1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;host2&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== User Requirements ==&lt;br /&gt;
&lt;br /&gt;
By default, &amp;#039;&amp;#039;&amp;#039;snmpd&amp;#039;&amp;#039;&amp;#039; uses the &amp;#039;&amp;#039;/var/agentx/master&amp;#039;&amp;#039; unix socket to listen for AgentX connections on.  Because this is a root-owned file you&amp;#039;ll likely only be able to run &amp;#039;&amp;#039;&amp;#039;agentxtrap&amp;#039;&amp;#039;&amp;#039; as root, unless you set up different permissions using the [[agentxsocket]] and [[agentxperms]] config tokens.  If you change this model, be careful as you only want trusted people to be able to send notifications from your agents.&lt;/div&gt;</summary>
		<author><name>Wes</name></author>	</entry>

	</feed>