summaryrefslogtreecommitdiffstats
path: root/Schemas
diff options
context:
space:
mode:
authordenise.eckstein <denise.eckstein>2008-11-06 21:22:57 +0000
committerdenise.eckstein <denise.eckstein>2008-11-06 21:22:57 +0000
commit145b97de83d932749422374788e87d2e7df71917 (patch)
treec64b9f7988509d598292af8b96d7349a0f9df032 /Schemas
parent592a21ab0d70e2662a984bfe1545f4952a99ee9b (diff)
downloadtog-pegasus-145b97de83d932749422374788e87d2e7df71917.zip
tog-pegasus-145b97de83d932749422374788e87d2e7df71917.tar.gz
tog-pegasus-145b97de83d932749422374788e87d2e7df71917.tar.xz
BUG#: 8077
TITLE: In supported environments, packaged providers should run as Requestor DESCRIPTION: In environments that support running providers in the context of the user requesting an operation, the Operating System, Computer System and Process providers should register to run as Requestor (i.e., UserContext = 2).
Diffstat (limited to 'Schemas')
-rw-r--r--Schemas/Pegasus/ManagedSystem/Makefile5
-rw-r--r--Schemas/Pegasus/ManagedSystem/VER20/PG_ComputerSystem21R.mof82
-rw-r--r--Schemas/Pegasus/ManagedSystem/VER20/PG_ManagedSystemSchema21R.mof34
-rw-r--r--Schemas/Pegasus/ManagedSystem/VER20/PG_OperatingSystem21R.mof73
-rw-r--r--Schemas/Pegasus/ManagedSystem/VER20/PG_UnixProcess21R.mof96
5 files changed, 290 insertions, 0 deletions
diff --git a/Schemas/Pegasus/ManagedSystem/Makefile b/Schemas/Pegasus/ManagedSystem/Makefile
index f3269c0..7b4680b 100644
--- a/Schemas/Pegasus/ManagedSystem/Makefile
+++ b/Schemas/Pegasus/ManagedSystem/Makefile
@@ -67,8 +67,13 @@ repository:
@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof"
@ $(ECHO) +++++ Loading PG_ManagedSystemSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
+ifdef PEGASUS_DISABLE_PROV_USERCTXT
@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema$(PG_SCHEMA_VER) ...
@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
+else
+ @ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema21R ...
+ @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema21R.mof"
+endif
ifndef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
@ $(ECHO) +++++ Loading PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof"
diff --git a/Schemas/Pegasus/ManagedSystem/VER20/PG_ComputerSystem21R.mof b/Schemas/Pegasus/ManagedSystem/VER20/PG_ComputerSystem21R.mof
new file mode 100644
index 0000000..0eaf30a
--- /dev/null
+++ b/Schemas/Pegasus/ManagedSystem/VER20/PG_ComputerSystem21R.mof
@@ -0,0 +1,82 @@
+//%2006////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation, The Open Group.
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; Symantec Corporation; The Open Group.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// 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.
+//
+//==============================================================================
+instance of PG_ProviderModule
+{
+ Name = "ComputerSystemModule";
+ Location = "ComputerSystemProvider";
+ Vendor = "OpenPegasus";
+ Version = "2.5.0";
+ InterfaceType = "C++Default";
+ InterfaceVersion = "2.5.0";
+ UserContext = 2;
+};
+
+instance of PG_Provider
+{
+ ProviderModuleName = "ComputerSystemModule";
+ Name = "PG_ComputerSystemProvider";
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "ComputerSystemModule";
+ ProviderName = "PG_ComputerSystemProvider";
+ CapabilityID = "1";
+ ClassName = "CIM_ComputerSystem";
+ Namespaces = {"root/cimv2"};
+ ProviderType = { 2 }; // Instance
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "ComputerSystemModule";
+ ProviderName = "PG_ComputerSystemProvider";
+ CapabilityID = "2";
+ ClassName = "CIM_UnitaryComputerSystem";
+ Namespaces = {"root/cimv2"};
+ ProviderType = { 2 }; // Instance
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "ComputerSystemModule";
+ ProviderName = "PG_ComputerSystemProvider";
+ CapabilityID = "3";
+ ClassName = "PG_ComputerSystem";
+ Namespaces = {"root/cimv2"};
+ ProviderType = { 2 }; // Instance
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
diff --git a/Schemas/Pegasus/ManagedSystem/VER20/PG_ManagedSystemSchema21R.mof b/Schemas/Pegasus/ManagedSystem/VER20/PG_ManagedSystemSchema21R.mof
new file mode 100644
index 0000000..d930e16
--- /dev/null
+++ b/Schemas/Pegasus/ManagedSystem/VER20/PG_ManagedSystemSchema21R.mof
@@ -0,0 +1,34 @@
+//%2006////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation, The Open Group.
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; Symantec Corporation; The Open Group.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// 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.
+//
+//==============================================================================
+
+#pragma include ("PG_OperatingSystem21R.mof")
+#pragma include ("PG_ComputerSystem21R.mof")
+#pragma include ("PG_UnixProcess21R.mof")
diff --git a/Schemas/Pegasus/ManagedSystem/VER20/PG_OperatingSystem21R.mof b/Schemas/Pegasus/ManagedSystem/VER20/PG_OperatingSystem21R.mof
new file mode 100644
index 0000000..38b9a86
--- /dev/null
+++ b/Schemas/Pegasus/ManagedSystem/VER20/PG_OperatingSystem21R.mof
@@ -0,0 +1,73 @@
+//%2006////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation, The Open Group.
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; Symantec Corporation; The Open Group.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// 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.
+//
+//==============================================================================
+
+instance of PG_ProviderModule
+{
+ Name = "OperatingSystemModule";
+ Vendor = "OpenPegasus";
+ Version = "2.1.0";
+ InterfaceType = "C++Default";
+ InterfaceVersion = "2.5.0";
+ Location = "OSProvider";
+ UserContext = 2;
+};
+
+instance of PG_Provider
+{
+ ProviderModuleName = "OperatingSystemModule";
+ Name = "PG_OperatingSystemProvider";
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "OperatingSystemModule";
+ ProviderName = "PG_OperatingSystemProvider";
+ CapabilityID = "1";
+ ClassName = "CIM_OperatingSystem";
+ Namespaces = {"root/cimv2"};
+// do instances, but won't do enum for this superclass,
+// the CIMOM will invoke us for that, we just do Get
+ ProviderType = { 2, 5 }; // Instance and Method
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "OperatingSystemModule";
+ ProviderName = "PG_OperatingSystemProvider";
+ CapabilityID = "2";
+ ClassName = "PG_OperatingSystem";
+ Namespaces = {"root/cimv2"};
+ ProviderType = { 2, 5 }; // Instance and Method
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
diff --git a/Schemas/Pegasus/ManagedSystem/VER20/PG_UnixProcess21R.mof b/Schemas/Pegasus/ManagedSystem/VER20/PG_UnixProcess21R.mof
new file mode 100644
index 0000000..c09b670
--- /dev/null
+++ b/Schemas/Pegasus/ManagedSystem/VER20/PG_UnixProcess21R.mof
@@ -0,0 +1,96 @@
+//%2006////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation, The Open Group.
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+// EMC Corporation; Symantec Corporation; The Open Group.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// 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.
+//
+//==============================================================================
+
+// We have one shared library module with two providers
+// in it: Process and ProcessStat
+
+instance of PG_ProviderModule
+{
+ Name = "ProcessModule";
+ Location = "ProcessProvider";
+ Vendor = "OpenPegasus";
+ Version = "2.1.0";
+ InterfaceType = "C++Default";
+ InterfaceVersion = "2.5.0";
+ UserContext = 2;
+};
+
+// Provider for PG_UnixProcess
+
+instance of PG_Provider
+{
+ ProviderModuleName = "ProcessModule";
+ Name = "ProcessProvider";
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "ProcessModule";
+ ProviderName = "ProcessProvider";
+ CapabilityID = "1";
+ ClassName = "CIM_Process";
+ Namespaces = { "root/cimv2" };
+ ProviderType = { 2 }; // Instance
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "ProcessModule";
+ ProviderName = "ProcessProvider";
+ CapabilityID = "2";
+ ClassName = "PG_UnixProcess";
+ Namespaces = { "root/cimv2" };
+ ProviderType = { 2 }; // Instance
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};
+
+// Provider for class PG_UnixProcessStatisticalInformation (ProcessStat)
+
+instance of PG_Provider
+{
+ ProviderModuleName = "ProcessModule";
+ Name = "ProcessStatProvider";
+};
+
+instance of PG_ProviderCapabilities
+{
+ ProviderModuleName = "ProcessModule";
+ ProviderName = "ProcessStatProvider";
+ CapabilityID = "1";
+ ClassName = "PG_UnixProcessStatisticalInformation";
+ Namespaces = { "root/cimv2" };
+ ProviderType = { 2 }; // Instance provider
+ SupportedProperties = NULL; // All properties
+ SupportedMethods = NULL; // All methods
+};