version 1.139, 2008/10/17 11:07:33
|
version 1.156, 2013/06/13 13:19:55
|
|
|
/* |
//%LICENSE//////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
|
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Licensed to The Open Group (TOG) under one or more contributor license |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
// this work for additional information regarding copyright ownership. |
// IBM Corp.; EMC Corporation, The Open Group. |
// Each contributor licenses this file to you under the OpenPegasus Open |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// Source License; you may not use this file except in compliance with the |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// License. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// |
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Permission is hereby granted, free of charge, to any person obtaining a |
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// copy of this software and associated documentation files (the "Software"), |
// EMC Corporation; Symantec Corporation; The Open Group. |
// to deal in the Software without restriction, including without limitation |
// |
// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
// and/or sell copies of the Software, and to permit persons to whom the |
// of this software and associated documentation files (the "Software"), to |
// Software is furnished to do so, subject to the following conditions: |
// deal in the Software without restriction, including without limitation the |
// |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
// The above copyright notice and this permission notice shall be included |
// sell copies of the Software, and to permit persons to whom the Software is |
// in all copies or substantial portions of the Software. |
// furnished to do so, subject to the following conditions: |
// |
// |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
// | // |
//============================================================================== |
////////////////////////////////////////////////////////////////////////// |
|
/* |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
*/ | */ |
|
|
| |
#define PEGASUS_QUEUENAME_WBEMEXECCLIENT "WbemExecClient" | #define PEGASUS_QUEUENAME_WBEMEXECCLIENT "WbemExecClient" |
#define PEGASUS_QUEUENAME_INTERNALCLIENT "InternalClient" | #define PEGASUS_QUEUENAME_INTERNALCLIENT "InternalClient" |
#define PEGASUS_QUEUENAME_BINARY_HANDLER "BinaryMessageHandler" |
|
| |
|
#define PEGASUS_QUEUENAME_WSMANEXPORTCLIENT "WSMANExportClient" |
|
#define PEGASUS_QUEUENAME_WSMANEXPORTREQENCODER "WSMANExportRequestEncoder" |
|
#define PEGASUS_QUEUENAME_WSMANEXPORTRESPENCODER "WSMANExportResponseDecoder" |
| |
/* | /* |
* ModuleController Module Names | * ModuleController Module Names |
|
|
#define WBEM_HTTP_SERVICE_NAME "wbem-http" | #define WBEM_HTTP_SERVICE_NAME "wbem-http" |
#define WBEM_HTTPS_SERVICE_NAME "wbem-https" | #define WBEM_HTTPS_SERVICE_NAME "wbem-https" |
| |
|
/* |
|
* Hard limit for number of HTTP headers, elements in container and keybindings |
|
*/ |
|
#define PEGASUS_MAXELEMENTS_NUM 1000 |
|
#define PEGASUS_MAXELEMENTS "1000" |
| |
/* | /* |
* File system layout | * File system layout |
|
|
# define PEGASUS_SSLCLIENT_RANDOMFILE \ | # define PEGASUS_SSLCLIENT_RANDOMFILE \ |
"/QOpenSys/QIBM/UserData/UME/Pegasus/ssl.rnd" | "/QOpenSys/QIBM/UserData/UME/Pegasus/ssl.rnd" |
# define PEGASUS_SSLSERVER_RANDOMFILE \ | # define PEGASUS_SSLSERVER_RANDOMFILE \ |
"/QOpenSys/QIBM/UserData/UME/Pegasus/ssl/keystore/cimserver.rnd" |
"/QOpenSys/var/UME/cimserver.rnd" |
# define PEGASUS_LOCAL_AUTH_DIR "/QOpenSys/var/UME" | # define PEGASUS_LOCAL_AUTH_DIR "/QOpenSys/var/UME" |
# define PEGASUS_LOCAL_DOMAIN_SOCKET_PATH "/QOpenSys/var/UME/cimxml.socket" | # define PEGASUS_LOCAL_DOMAIN_SOCKET_PATH "/QOpenSys/var/UME/cimxml.socket" |
# define PEGASUS_PAM_STANDALONE_PROC_NAME \ | # define PEGASUS_PAM_STANDALONE_PROC_NAME \ |
|
|
# else | # else |
# define PEGASUS_CIMSERVER_STARTFILES_DIR "/tmp" | # define PEGASUS_CIMSERVER_STARTFILES_DIR "/tmp" |
# endif | # endif |
|
|
|
#ifdef PEGASUS_FLAVOR |
|
# define PEGASUS_CIMSERVER_START_FILE \ |
|
PEGASUS_CIMSERVER_STARTFILES_DIR "/cimserver" PEGASUS_FLAVOR "_start.conf" |
|
# define PEGASUS_CIMSERVER_START_LOCK_FILE \ |
|
PEGASUS_CIMSERVER_STARTFILES_DIR "/cimserver" PEGASUS_FLAVOR "_start.lock" |
|
#else |
# define PEGASUS_CIMSERVER_START_FILE \ | # define PEGASUS_CIMSERVER_START_FILE \ |
PEGASUS_CIMSERVER_STARTFILES_DIR "/cimserver_start.conf" | PEGASUS_CIMSERVER_STARTFILES_DIR "/cimserver_start.conf" |
# define PEGASUS_CIMSERVER_START_LOCK_FILE \ | # define PEGASUS_CIMSERVER_START_LOCK_FILE \ |
PEGASUS_CIMSERVER_STARTFILES_DIR "/cimserver_start.lock" | PEGASUS_CIMSERVER_STARTFILES_DIR "/cimserver_start.lock" |
|
#endif |
|
|
# define PEGASUS_REPOSITORY_DIR "repository" | # define PEGASUS_REPOSITORY_DIR "repository" |
# define PEGASUS_CURRENT_CONFIG_FILE_PATH "cimserver_current.conf" | # define PEGASUS_CURRENT_CONFIG_FILE_PATH "cimserver_current.conf" |
# define PEGASUS_PLANNED_CONFIG_FILE_PATH "cimserver_planned.conf" | # define PEGASUS_PLANNED_CONFIG_FILE_PATH "cimserver_planned.conf" |
|
|
# define PEGASUS_SSLCLIENT_RANDOMFILE "ssl.rnd" | # define PEGASUS_SSLCLIENT_RANDOMFILE "ssl.rnd" |
# define PEGASUS_SSLSERVER_RANDOMFILE "cimserver.rnd" | # define PEGASUS_SSLSERVER_RANDOMFILE "cimserver.rnd" |
# define PEGASUS_LOCAL_AUTH_DIR PEGASUS_CIMSERVER_STARTFILES_DIR | # define PEGASUS_LOCAL_AUTH_DIR PEGASUS_CIMSERVER_STARTFILES_DIR |
|
|
|
#ifdef PEGASUS_FLAVOR |
|
# define PEGASUS_LOCAL_DOMAIN_SOCKET_PATH \ |
|
PEGASUS_CIMSERVER_STARTFILES_DIR "/cimxml" PEGASUS_FLAVOR ".socket" |
|
#else |
# define PEGASUS_LOCAL_DOMAIN_SOCKET_PATH \ | # define PEGASUS_LOCAL_DOMAIN_SOCKET_PATH \ |
PEGASUS_CIMSERVER_STARTFILES_DIR "/cimxml.socket" | PEGASUS_CIMSERVER_STARTFILES_DIR "/cimxml.socket" |
|
#endif |
|
|
# define PEGASUS_PAM_STANDALONE_PROC_NAME "bin/cimservera" | # define PEGASUS_PAM_STANDALONE_PROC_NAME "bin/cimservera" |
# define PEGASUS_PROVIDER_AGENT_PROC_NAME "bin/cimprovagt" | # define PEGASUS_PROVIDER_AGENT_PROC_NAME "bin/cimprovagt" |
# undef PEGASUS_DEFAULT_MESSAGE_SOURCE /* Not defined */ | # undef PEGASUS_DEFAULT_MESSAGE_SOURCE /* Not defined */ |
#endif | #endif |
| |
|
#define PEGASUS_PROVIDER_AGENT32_PROC_NAME \ |
|
PEGASUS_PROVIDER_AGENT_PROC_NAME "32" |
|
|
/* Use the PID file as a semaphore for repository access */ | /* Use the PID file as a semaphore for repository access */ |
/* Use the configuration file instead of the PID file on Windows*/ | /* Use the configuration file instead of the PID file on Windows*/ |
#ifdef PEGASUS_OS_TYPE_WINDOWS | #ifdef PEGASUS_OS_TYPE_WINDOWS |
|
|
#define PG_PROVMODULE_USERCTXT_PRIVILEGED 4 | #define PG_PROVMODULE_USERCTXT_PRIVILEGED 4 |
#define PG_PROVMODULE_USERCTXT_CIMSERVER 5 | #define PG_PROVMODULE_USERCTXT_CIMSERVER 5 |
| |
|
/* Constants defining Bitness values in a PG_ProviderModule */ |
|
#define PG_PROVMODULE_BITNESS_DEFAULT 1 |
|
#define PG_PROVMODULE_BITNESS_32 2 |
|
#define PG_PROVMODULE_BITNESS_64 3 |
|
|
/* Constant defining Server truststore type value in a PG_SSLCertificate */ | /* Constant defining Server truststore type value in a PG_SSLCertificate */ |
#define PG_SSLCERTIFICATE_TSTYPE_VALUE_SERVER Uint16(2) | #define PG_SSLCERTIFICATE_TSTYPE_VALUE_SERVER Uint16(2) |
| |
|
|
#define PEGASUS_DEFAULT_PROV_USERCTXT PG_PROVMODULE_USERCTXT_PRIVILEGED | #define PEGASUS_DEFAULT_PROV_USERCTXT PG_PROVMODULE_USERCTXT_PRIVILEGED |
#endif | #endif |
| |
/* |
|
Standard Pegasus Global Prefix. |
|
This prefix is used as the basis for pegasus defined classes |
|
and in identity creation that would require a standard |
|
Pegasus prefix |
|
*/ |
|
#define PEGASUS_INSTANCEID_GLOBAL_PREFIX "PG" |
|
|
|
/* Constants defining the size of the hash table used in the OrderedSet | /* Constants defining the size of the hash table used in the OrderedSet |
implementation. Specific classes have their own hash table size to | implementation. Specific classes have their own hash table size to |
accomodate for amounts of probable members | accomodate for amounts of probable members |
|
|
#define PEGASUS_MAXLOGFILESIZEKBYTES_CONFIG_PROPERTY_MINIMUM_VALUE 32 | #define PEGASUS_MAXLOGFILESIZEKBYTES_CONFIG_PROPERTY_MINIMUM_VALUE 32 |
#endif | #endif |
| |
|
|
/* | /* |
**============================================================================== | **============================================================================== |
** | ** |
|
|
enum SnmpVersion {SNMPV1_TRAP = 2, SNMPV2C_TRAP = 3, SNMPV2C_INFORM = 4, | enum SnmpVersion {SNMPV1_TRAP = 2, SNMPV2C_TRAP = 3, SNMPV2C_INFORM = 4, |
SNMPV3_TRAP = 5, SNMPV3_INFORM = 6}; | SNMPV3_TRAP = 5, SNMPV3_INFORM = 6}; |
| |
|
/** |
|
Values for the AlertCause property of the PG_ProviderModuleInstAlert |
|
class, as defined in the PG Events MOF |
|
|
|
*/ |
|
enum PMInstAlertCause {PM_UNKNOWN = 1, PM_OTHER = 2, PM_CREATED = 3, |
|
PM_DELETED = 4, PM_ENABLED = 5, PM_DISABLED = 6, PM_DEGRADED = 7, |
|
PM_FAILED = 8, PM_FAILED_RESTARTED = 9, PM_GROUP_CHANGED = 10, |
|
PM_PROVIDER_ADDED = 11, PM_PROVIDER_REMOVED = 12, |
|
PM_ENABLED_CIMSERVER_START = 13, PM_DISABLED_CIMSERVER_STOP = 14}; |
|
|
|
/* Values for Delivery mode property of CIM_ListenerDestinationWSManagement |
|
class , as defined in CIM_ListenerDestinationWSManagement.mof */ |
|
|
|
enum deliveryMode {Push = 2 ,PushWithAck = 3, Events = 4 ,Pull = 5, |
|
DMTF_Reserved = 6 , Vendor_Reserved = 7 }; |
|
|
// | // |
// CIM Class Names | // CIM Class Names |
// | // |
|
|
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_CIMXML; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_CIMXML; |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_INDHANDLER_SNMP; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_INDHANDLER_SNMP; |
PEGASUS_COMMON_LINKAGE | PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_CLASSNAME_INDHANDLER_WSMAN; |
|
PEGASUS_COMMON_LINKAGE |
extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_SYSTEM_LOG; | extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_SYSTEM_LOG; |
|
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_FILE; |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_EMAIL; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_LSTNRDST_EMAIL; |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_INDFILTER; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_INDFILTER; |
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_CLASSNAME_PROVIDERMODULE_INSTALERT; |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_SHUTDOWN; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_SHUTDOWN; |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME___NAMESPACE; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME___NAMESPACE; |
| |
|
|
| |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_CIMNAMESPACE; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_CIMNAMESPACE; |
| |
|
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_PG_OBJECTMANAGER; |
|
|
#if defined PEGASUS_ENABLE_INTEROP_PROVIDER | #if defined PEGASUS_ENABLE_INTEROP_PROVIDER |
| |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_OBJECTMANAGER; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_OBJECTMANAGER; |
|
|
// | // |
// Server Profile-related class names | // Server Profile-related class names |
// | // |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_CLASSNAME_PG_OBJECTMANAGER; |
|
| |
PEGASUS_COMMON_LINKAGE | PEGASUS_COMMON_LINKAGE |
extern const CIMName PEGASUS_CLASSNAME_PG_COMMMECHANISMFORMANAGER; | extern const CIMName PEGASUS_CLASSNAME_PG_COMMMECHANISMFORMANAGER; |
|
|
extern const CIMName PEGASUS_CLASSNAME_PG_HOSTEDINDICATIONSERVICE; | extern const CIMName PEGASUS_CLASSNAME_PG_HOSTEDINDICATIONSERVICE; |
PEGASUS_COMMON_LINKAGE | PEGASUS_COMMON_LINKAGE |
extern const CIMName PEGASUS_CLASSNAME_PG_SERVICEAFFECTSELEMENT; | extern const CIMName PEGASUS_CLASSNAME_PG_SERVICEAFFECTSELEMENT; |
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_CLASSNAME_PG_LSTNRDSTQUEUE; |
#endif | #endif |
| |
// | // |
|
|
extern const CIMName PEGASUS_PROPERTYNAME_MODULE_USERCONTEXT; | extern const CIMName PEGASUS_PROPERTYNAME_MODULE_USERCONTEXT; |
PEGASUS_COMMON_LINKAGE | PEGASUS_COMMON_LINKAGE |
extern const CIMName PEGASUS_PROPERTYNAME_MODULE_DESIGNATEDUSER; | extern const CIMName PEGASUS_PROPERTYNAME_MODULE_DESIGNATEDUSER; |
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_PROPERTYNAME_MODULE_MODULEGROUPNAME; |
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_PROPERTYNAME_MODULE_BITNESS; |
| |
/** | /** |
The name of the Destination property for CIM XML Indication Handler | The name of the Destination property for CIM XML Indication Handler |
|
|
extern const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION; | extern const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION; |
| |
/** | /** |
|
Property names for WSMAN Indication Handler subclass. |
|
*/ |
|
// Delivery Mode |
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_PROPERTYNAME_WSM_DELIVERY_MODE; |
|
|
|
/** |
|
Property names for File Indication Handler subclass. |
|
*/ |
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_FILE; |
|
|
|
/** |
|
The name of the CreationTime property for CIM XML Indication Handler |
|
subclass. |
|
*/ |
|
|
|
PEGASUS_COMMON_LINKAGE |
|
extern const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_CREATIONTIME; |
|
|
|
/** |
The name of the TargetHost property for SNMP Mapper Indication | The name of the TargetHost property for SNMP Mapper Indication |
Handler subclass | Handler subclass |
*/ | */ |
|
|
PEGASUS_COMMON_LINKAGE extern const CIMName _PROPERTY_OPERATIONALSTATUS; | PEGASUS_COMMON_LINKAGE extern const CIMName _PROPERTY_OPERATIONALSTATUS; |
| |
/** | /** |
|
The name of the SubscriptionInfo property for Formatted Indication |
|
Subscription class |
|
*/ |
|
PEGASUS_COMMON_LINKAGE extern const CIMName _PROPERTY_SUBSCRIPTION_INFO; |
|
|
|
/** |
The name of the Filter reference property for indication subscription class | The name of the Filter reference property for indication subscription class |
*/ | */ |
PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_PROPERTYNAME_FILTER; | PEGASUS_COMMON_LINKAGE extern const CIMName PEGASUS_PROPERTYNAME_FILTER; |