title: snmpwalk: –c: Unknown Object Identifier (Sub-id not found: (top) -> –c)
body: <p>I am relatively new to snmp and am trying to test out snmp on a device with snmpwalk command. I am using it as such: <code>snmpwalk -v2c -c public &lt;ip&gt;</code></p>
  <p>and it returns and error of <code>–c: Unknown Object Identifier (Sub-id not found: (top) -&gt; –c)</code></p>
  <p>I've tried removing the <code>-c public</code> option and it just gives an <code>Unknown Object Identifier &lt;ip&gt;</code></p>
  <p>The debian packages for snmp I have are <code>snmp snmp-mibs-downloader snmpd snmptrapd</code></p>
  <p>I have not seen much online about this specific error and from looking at examples and the docs I believe I am using the command correctly. Maybe there is some configuration or package I am missing.</p>