

<?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=Snmpset</id>
		<title>Snmpset - 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=Snmpset"/>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=Snmpset&amp;action=history"/>
		<updated>2026-04-23T16:41:50Z</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=Snmpset&amp;diff=5101&amp;oldid=prev</id>
		<title>Wes: Created page with &quot;{{tool|snmpset|tutorial=1|manual=1|code=apps/snmpset.c}}  The &#039;&#039;&#039;snmpset&#039;&#039;&#039; application sends configuration components to an agent using the SNMP SET protocol operation.  The...&quot;</title>
		<link rel="alternate" type="text/html" href="https://net-snmp.sourceforge.io/wiki/index.php?title=Snmpset&amp;diff=5101&amp;oldid=prev"/>
				<updated>2011-06-30T23:23:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{tool|snmpset|tutorial=1|manual=1|code=apps/snmpset.c}}  The &amp;#039;&amp;#039;&amp;#039;snmpset&amp;#039;&amp;#039;&amp;#039; application sends configuration components to an agent using the SNMP &lt;a href=&quot;/wiki/index.php/SET&quot; title=&quot;SET&quot;&gt;SET&lt;/a&gt; protocol operation.  The...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{tool|snmpset|tutorial=1|manual=1|code=apps/snmpset.c}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;snmpset&amp;#039;&amp;#039;&amp;#039; application sends configuration components to an agent using the SNMP [[SET]] protocol operation.  The configuration is a list of [[OID]]s and values that make up the configuration that should be set.&lt;br /&gt;
&lt;br /&gt;
Generally you can use &amp;#039;&amp;#039;OID&amp;#039;&amp;#039; = &amp;#039;&amp;#039;value&amp;#039;&amp;#039; in order to set the objects and Net-SNMP is smart enough, when it has the available [[MIB]]s, to figure out what the datatype for the &amp;#039;&amp;#039;value&amp;#039;&amp;#039; should be.  But, you can always specify it manually if want to ensure the data is sent as the right type (ie, as an OCTET STRING or an INTEGER).  See &amp;#039;&amp;#039;snmpset -h&amp;#039;&amp;#039; for value types.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;(this example, unlike most others, won&amp;#039;t actually work on the demo server)&amp;lt;/font&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  # snmpset -v 1 -c demopublic test.net-snmp.org sysContact.0 = &amp;#039;test&amp;#039;&lt;br /&gt;
  SNMPv2-MIB::sysContact.0 = &amp;quot;test&amp;quot;&lt;/div&gt;</summary>
		<author><name>Wes</name></author>	</entry>

	</feed>