(file) Return to init_repository_Linux CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm / scripts

 1 kumpf 1.2 #!/bin/sh
 2           #%/////////////////////////////////////////////////////////////////////////////
 3           #
 4           # Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
 5           # The Open Group, Tivoli Systems
 6           #
 7           # Permission is hereby granted, free of charge, to any person obtaining a copy
 8           # of this software and associated documentation files (the "Software"), to
 9           # deal in the Software without restriction, including without limitation the
10           # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11           # sell copies of the Software, and to permit persons to whom the Software is
12           # furnished to do so, subject to the following conditions:
13           # 
14           # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
15           # ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
16           # "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
17           # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
18           # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19           # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20           # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21           # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 kumpf 1.2 #
23           #==============================================================================
24           #
25           # Author: Warren Otsuka (warren.otsuka@hp.com)
26           #
27           # Modified By:
28           #
29           #%/////////////////////////////////////////////////////////////////////////////
30           
31           
32           #
33           # WARNING:
34           # This script can be run in order to re-create the repository.
35           # It will REMOVE the entire contents of any existing repository
36           # first, so care should be used when running this.
37           #
38           
39           #
40           # GET RID OF THE OLD REPOSITORY ...
41           # Actually, you need to do this by hand without cimserver
42           # running, and then start up cimserver again.
43 kumpf 1.2 #
44           
45           ##### rm -rf /var/opt/wbem/repository
46           
47           #
48           # CREATE CLEAN REPOSITORY ...
49           #
50           
51           PG_SCHEMA_VER=20
52           CIM_SCHEMA_VER=25
53           
54           MOF_PATH=/etc/opt/wbem/mof
55           
56           #
57           # The following are for the InterOp Namespace
58           #
59           
60           INTEROPNS=root/PG_InterOp
61           
62           /opt/wbem/bin/cimmof -I$MOF_PATH -n$INTEROPNS $MOF_PATH/CIM_Core$CIM_SCHEMA_VER.mof
63           /opt/wbem/bin/cimmof -I$MOF_PATH -n$INTEROPNS $MOF_PATH/InterOpSchema.mof
64 kumpf 1.2 
65           #
66           # The following are for the Internal Namespace
67           #
68           
69           INTERNALNS=root/PG_Internal
70           
71           /opt/wbem/bin/cimmof -I$MOF_PATH -n$INTERNALNS $MOF_PATH/CIM_Qualifiers$CIM_SCHEMA_VER.mof
72           /opt/wbem/bin/cimmof -I$MOF_PATH -n$INTERNALNS $MOF_PATH/InternalSchema.mof
73           
74           #
75           # The following are for the ManagedSystem Namespace
76           #
77           
78           # ATTN:    MANAGEDSYSTEMNS=root/PG_ManagedSystem
79           MANAGEDSYSTEMNS=root/cimv2
80           
81           /opt/wbem/bin/cimmof -I$MOF_PATH -n$MANAGEDSYSTEMNS $MOF_PATH/CIM_Schema$CIM_SCHEMA_VER.mof
82           /opt/wbem/bin/cimmof -I$MOF_PATH -n$MANAGEDSYSTEMNS $MOF_PATH/ManagedSystemSchema.mof
83           /opt/wbem/bin/cimmof -I$MOF_PATH -n$INTEROPNS $MOF_PATH/ManagedSystemSchemaR.mof

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2