1 karl 1.10 //%2005////////////////////////////////////////////////////////////////////////
|
2 mike 1.2 //
|
3 karl 1.9 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.7 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.9 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.10 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 mike 1.2 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
13 kumpf 1.4 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
16 mike 1.2 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
18 //
|
19 kumpf 1.4 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
20 mike 1.2 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
22 kumpf 1.4 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
25 mike 1.2 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
31 //
|
32 kumpf 1.6 // Modified By: Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
|
33 mike 1.2 //
34 //%/////////////////////////////////////////////////////////////////////////////
35
36 #include <iostream>
37 #include <Pegasus/Common/Config.h>
|
38 kumpf 1.5 #include <Pegasus/Common/Array.h>
|
39 mike 1.2 #include <Pegasus/Common/String.h>
40
41 PEGASUS_NAMESPACE_BEGIN
42
43 typedef struct _trapHeader
44 {
45 char destination[255];
46 char snmpType[10];
47 char enterprise[255];
48 char trapOid[255];
49 int variable_packets;
50 } trapHeader;
51
52 typedef struct _trapData
53 {
54 char vbOid[255];
55 char vbType[255];
56 char vbValue[512];
57 } trapData;
58
59 class snmpDeliverTrap
60 mike 1.2 {
61 public:
62
63 snmpDeliverTrap() { }
64
65 virtual ~snmpDeliverTrap() { }
66
67 virtual void deliverTrap(
68 const String& trapOid,
|
69 kumpf 1.6 const String& securityName,
70 const String& targetHost,
71 const Uint16& targetHostFormat,
72 const String& otherTargetHostFormat,
73 const Uint32& portNumber,
74 const Uint16& snmpVersion,
75 const String& engineID,
|
76 kumpf 1.8 const Array<String>& vbOids,
77 const Array<String>& vbTypes,
78 const Array<String>& vbValues) = 0;
|
79 mike 1.2 };
80
81 PEGASUS_NAMESPACE_END
|