Hi all,
I want to send a snmp trap by snmptrap and shown the device name in snmptt.log
,for example
Wed Mar 19 15:18:39 2014 .1.3.6.1.4.1.3607.6.10.30.0.220 Critical "CISCO"
CISCO-13000 - .1.3.6.1.4.1.3607.6.10.30.0.220 CISCO-13000 Carrier Loss On The
LAN in testFAC-1-2 (majorServiceAffecting),ifIndex=16386
Not shown the ip
Wed Mar 19 15:18:39 2014 .1.3.6.1.4.1.3607.6.10.30.0.220 Critical " CISCO "
10.28.63.12 - .1.3607.6.10.30.0.220 10.28.63.12 Carrier Loss On The LAN in
testFAC-1-2 (majorServiceAffecting),ifIndex=16386
Can anyone tell me how to do ?
Andrew
From: jrego...@rego.org [mailto:jrego...@rego.org]
Sent: Wednesday, April 09, 2014 3:24 AM
To: andrewarnier; net-snmp-users@lists.sourceforge.net
Subject: RE: send a snmp trap
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
<http://www.google.com> 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" < <mailto:andrewarn...@gmail.com> andrewarn...@gmail.com>
Date: Tue, April 08, 2014 12:59 am
To: < <mailto:net-snmp-users@lists.sourceforge.net>
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> http://p.sf.net/sfu/13600_Cloudbees
_____
_______________________________________________
Net-snmp-users mailing list
<mailto:Net-snmp-users@lists.sourceforge.net>
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>
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