Andrew,

Your oght to be seeing some errors from your command. Assuming that 192.168.3.45 is your management statation and CISCO-13000 is the device, that device name needs to be a resolvable name or an IP.

For example:

$ snmptrap -v1 -c 506 10.228.70.123 .1.3.6.1.4.1.3607.6.10.30 CISCO-13000 6 3540 15
getaddrinfo: CISCO-13000 Name or service not known
unknown host: CISCO-13000
$

If I change the agent tot something resolvable:

$ snmptrap -v1 -c 506 10.228.70.123 .1.3.6.1.4.1.3607.6.10.30 www.google.com 6 3540 15
$

You should be getting errors on stderr when you run your command.
-------- Original Message --------
Subject: send a snmp trap
From: "andrewarnier" <andrewarn...@gmail.com>
Date: Tue, April 08, 2014 12:59 am
To: <net-snmp-users@lists.sourceforge.net>

Hi all,
I try to send a snmp trap to my system, the example as follows,
 
 
snmptrap -v 1 -c public 192.168.3.45 .1.3.6.1.4.1.3607.6.10.30 CISCO-13000 6 3540 15 \
.1.3.6.1.4.1.3607.6.10.100.10.20.1 s "20080227205807S" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.80.4103.220 s "90" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.20.4103.220 s "670" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.60.4103.220 s "16386" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.30.4103.220 s "4" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.40.4103.220 s "10" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.50.4103.220 s "0" \
.1.3.6.1.4.1.3607.6.10.20.30.20.1.100.4103.220 s "testFAC-3-4"
 
 
And I check the log
#tail –f /var/log/snmptt/snmptt.log
But it’s didn’t shown in the log
 
Can anyone tell me what is wrong with the trap?
 
Thanks,
Andrew
  

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to