title: snmptrap : host Name or service not known
body: <p>I'm trying to send a snmp trap with these command line :</p>
  
  <pre><code>snmptrap -v 1 -c public host '1.2.3.4.5.6' '192.193.194.195' 6 99 '55' 1.11.12.13.14.15  s "teststring"
  </code></pre>
  
  <p>or</p>
  
  <pre><code>snmptrap -v 2c -c public host "" UCD-NOTIFICATION-TEST-MIB::demoNotif \
     SNMPv2-MIB::sysLocation.0 s "Just here"
  </code></pre>
  
  <p>But I get this error message :</p>
  
  <pre><code>getaddrinfo: host Name or service not known
  getaddrinfo("host", NULL, ...): Name or service not known
  snmptrap: 
  zsh: exit 1     snmptrap -v 1 -c public host '1.2.3.4.5.6' '192.193.194.195' 6 99 '55'  s
  </code></pre>
  
  <p>What's wrong ? It seems I don't get something..</p>
  
  <p>My final aim is just to send a trap on localhost on a specific port in a shell script..</p>
  
  <p>EDIT : I have a new error :</p>
  
  <pre><code>read_config_store open failure on /var/lib/snmp/snmpapp.conf
  </code></pre>
  
  <p>How can I fix that ? I can't modify any files on the computer. I just can write some lines in a shell script to send a trap..</p>