File: snmpttconvert.html

package info (click to toggle)
snmptt 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,496 kB
  • sloc: perl: 6,822; sh: 184; python: 31; makefile: 12
file content (73 lines) | stat: -rw-r--r-- 2,884 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE doctype PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0" />
<title>SNMP Trap Translator Convert</title>
</head>
<body>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.4.0" />
<meta content="text/html; charset=utf-8" http-equiv=
"Content-Type" />
<meta content="Alex Burger" name="Author" />
<meta content="Mozilla/4.78 [en] (Windows NT 5.0; U) [Netscape]"
name="GENERATOR" />
<link rel="StyleSheet" type="text/css" href="layout1.css" />
<h1>SNMP Trap Translator Convert v1.5</h1>
<p><strong>(</strong><a href=
"http://www.snmptt.org"><strong>SNMPTTCONVERT</strong></a><strong>)</strong><br />

This file was last updated on: August 30th, 2004</p>
<h1>License</h1>
<p>Copyright 2002-2022 Alex Burger<br />
alex_b@users.sourceforge.net<br />
4/3/2002</p>
<p>This program is free software; you can redistribute it and/or
modify<br />
it under the terms of the GNU General Public License as published
by<br />
the Free Software Foundation; either version 2 of the License,
or<br />
(at your option) any later version.</p>
<p>This program is distributed in the hope that it will be
useful,<br />
but WITHOUT ANY WARRANTY; without even the implied warranty
of<br />
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br />
GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public
License<br />
along with this program; if not, write to the Free Software<br />
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA</p>
<h1>SNMPTTCONVERT</h1>
<p>Some vendors provide a file that can be imported into HP
Openview using a HP Openview utiltity. SNMPTTCONVERT is a simple
Perl script which will convert one of these files into the format
used by SNMPTT. The file can contain multiple traps.</p>
<p>For example, if the file ciscotrap.txt contained:</p>
<pre><code> rpsFailed {.1.3.6.1.4.1.437.1.1.3} 6 5 - "Status Events" 1  
 Trap received from enterprise $E with $# arguments: sysName=$1  
 SDESC  
 "A redundant power source is connected to the switch but a failure exists in  
 the power system."  
 EDESC
</code></pre>
<p>Executing snmpttconvert ciscotrap.txt would output:</p>
<pre><code> #  
 #  
 #  
 EVENT rpsFailed .1.3.6.1.4.1.437.1.1.3.0.5 "Status Events" Normal  
 FORMAT Trap received from enterprise $E with $# arguments: sysName=$1  
 #EXEC qpage -f TRAP notifygroup1 "Trap received from enterprise $E with $# arguments: sysName=$1"  
 SDESC  
 "A redundant power source is connected to the switch but a failure exists in  
 the power system."  
 EDESC
</code></pre>
<p>Note: The #EXEC line is added by default. This can be changed by
editing the SNMPTTCONVERT script.</p>
</body>
</html>