

<?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=How_can_I_set_the_SNMPv3_context</id>
		<title>How can I set the SNMPv3 context - 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=How_can_I_set_the_SNMPv3_context"/>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=How_can_I_set_the_SNMPv3_context&amp;action=history"/>
		<updated>2026-04-28T18:57:14Z</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=How_can_I_set_the_SNMPv3_context&amp;diff=3237&amp;oldid=prev</id>
		<title>Dts12: Link to relevant FAQ entry</title>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=How_can_I_set_the_SNMPv3_context&amp;diff=3237&amp;oldid=prev"/>
				<updated>2008-01-03T10:30:07Z</updated>
		
		<summary type="html">&lt;p&gt;Link to relevant FAQ entry&lt;/p&gt;
&lt;table class=&#039;diff diff-contentalign-left&#039;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039; lang=&#039;en&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:30, 3 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Contexts were really designed to allow talking through an agent to a&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Contexts were really designed to allow talking through an agent to a&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;remote device.&amp;#160; You can also use them to distinguish overlapping data.&amp;#160; For example, the [[snmptrapd]] application registers itself as a subagent using the [[AgentX]] protocol underneath the main agent.&amp;#160; Because the snmptrapd program also has a user table, it would conflict with the main agent&amp;#039;s usmUserTable.&amp;#160; So, the snmptrapd subagent registers its own usmUserTable under the context &amp;quot;snmptrapd&amp;quot; instead.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;remote device.&amp;#160; You can also use them to distinguish overlapping data.&amp;#160; For example, the [[snmptrapd]] application registers itself as a subagent using the [[AgentX]] protocol underneath the main agent.&amp;#160; Because the snmptrapd program also has a user table, it would conflict with the main agent&amp;#039;s usmUserTable.&amp;#160; So, the snmptrapd subagent registers its own usmUserTable under the context &amp;quot;snmptrapd&amp;quot; instead.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== In MIB code ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Please see the FAQ entry&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[FAQ:Coding_22|How can I register a MIB module in a different (SNMPv3) context?]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:SNMPv3]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:SNMPv3]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dts12</name></author>	</entry>

	<entry>
		<id>https://net-snmp.sourceforge.io/wiki/index.php?title=How_can_I_set_the_SNMPv3_context&amp;diff=3232&amp;oldid=prev</id>
		<title>Wes at 22:00, 27 December 2007</title>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=How_can_I_set_the_SNMPv3_context&amp;diff=3232&amp;oldid=prev"/>
				<updated>2007-12-27T22:00:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{GoodAnswer}}&lt;br /&gt;
&lt;br /&gt;
== Question ==&lt;br /&gt;
&lt;br /&gt;
How can I configure the SNMPv3 contextEngineID or the contextName?&lt;br /&gt;
&lt;br /&gt;
== Answer ==&lt;br /&gt;
&lt;br /&gt;
=== In the Clients ===&lt;br /&gt;
&lt;br /&gt;
The clients can use the -N switch to specify the &amp;#039;&amp;#039;contextName&amp;#039;&amp;#039; they wish to use, or the -E switch to specify the contextEngineID they wish to use.&lt;br /&gt;
&lt;br /&gt;
The [[snmp.conf]] configuration token &amp;#039;&amp;#039;defaultContext&amp;#039;&amp;#039; can also be used to specify the &amp;#039;&amp;#039;contextName&amp;#039;&amp;#039; that should be used by default.&lt;br /&gt;
&lt;br /&gt;
=== In the Agent ===&lt;br /&gt;
&lt;br /&gt;
The contextName used inside the agent (which is what I assume you&amp;#039;re&lt;br /&gt;
talking about) is always the default context name, which is an empty&lt;br /&gt;
string.  The default contextEngineID is the same as the security engine&lt;br /&gt;
ID for USM.&lt;br /&gt;
&lt;br /&gt;
You can have modules coded to register under different contextNames, but&lt;br /&gt;
there isn&amp;#039;t a configuration method to change the context of the entire&lt;br /&gt;
agent.&lt;br /&gt;
&lt;br /&gt;
Contexts were really designed to allow talking through an agent to a&lt;br /&gt;
remote device.  You can also use them to distinguish overlapping data.  For example, the [[snmptrapd]] application registers itself as a subagent using the [[AgentX]] protocol underneath the main agent.  Because the snmptrapd program also has a user table, it would conflict with the main agent&amp;#039;s usmUserTable.  So, the snmptrapd subagent registers its own usmUserTable under the context &amp;quot;snmptrapd&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
[[Category:SNMPv3]]&lt;/div&gt;</summary>
		<author><name>Wes</name></author>	</entry>

	</feed>