1 mike 1.2 //%/////////////////////////////////////////////////////////////////////////////
2 //
|
3 kumpf 1.5 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
|
5 mike 1.2 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 kumpf 1.5 // of this software and associated documentation files (the "Software"), to
8 // deal in the Software without restriction, including without limitation the
9 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10 mike 1.2 // sell copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
|
13 kumpf 1.5 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
14 mike 1.2 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
16 kumpf 1.5 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19 mike 1.2 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 //
22 //==============================================================================
23 //
24 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
|
30 kumpf 1.3 #include "sr_conf.h"
31 #include <stdio.h>
32 #include <stdarg.h>
33 #include <unistd.h>
34 #include <fcntl.h>
35 #include <string.h>
36 #include <stdlib.h>
37
38 #include <sys/types.h>
39 #include <sys/sem.h>
40 #include <sys/stat.h>
41 #include <sys/param.h>
42
43 #include <signal.h>
44 #include <netinet/in.h>
45 #include <sys/socket.h>
46 #include <arpa/inet.h>
47 #include <netdb.h>
48 #include <errno.h>
49
50 #include "sr_snmp.h"
51 kumpf 1.3 #include "comunity.h"
52 #include "v2clssc.h"
53 #include "sr_trans.h"
54 #include "context.h"
55 #include "method.h"
56 #include "diag.h"
57 #include "subagent.h"
58 #include "agentsoc.h"
59 #include "evq.h"
60 #include "sig.h"
61
|
62 mike 1.2 #include <iostream>
63 #include <Pegasus/Common/Config.h>
64
65 #include "snmpDeliverTrap.h"
66
67 #define _SNMP_FIFO "/var/opt/wbem/wbemagent_fifo"
68
69 PEGASUS_NAMESPACE_BEGIN
70
71 class snmpDeliverTrap_emanate : public snmpDeliverTrap
72 {
73 public:
|
74 kumpf 1.3
75 snmpDeliverTrap_emanate();
76
77 ~snmpDeliverTrap_emanate();
78
79 void initialize();
80
|
81 mike 1.2 void deliverTrap(
82 const String& trapOid,
|
83 kumpf 1.4 const String& community,
|
84 mike 1.2 const String& destination,
85 const String& trapType,
86 Array<String>& vbOids,
87 Array<String>& vbTypes,
88 Array<String>& vbValues);
89 };
90
91 PEGASUS_NAMESPACE_END
|