postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Create the preReg dir needed for cim class registration
mkdir -p ${DMGT_PREGDIR}
mkdir -p ${NFS_PREGDIR}
mkdir -p ${CIM27_PREGDIR}
# create the mof used for registration
cat <<DMGT_MOF_END >${DMGT_PREGDIR}/Solaris_DMGT1.0.mof
/*
* Title Solaris Device Management MOF specification
* Description This model incorporates Disks, Disks Partitions and other
* device management classes.
*/
#pragma namespace("root/cimv2")
#pragma Locale ("en_US")
#pragma namespace("__modify")
//=============================================================================
// Title: Solaris_DiskDrive
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_DiskDrive MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"Provides information about the logical characteristics"
"of a disk drive attached to a Solaris system.")]
class Solaris_DiskDrive : CIM_DiskDrive
{
[Deprecated {
""},
MaxLen (256),
Description (
"A string describing the type of disk. The use of"
"this is deprecated. This is a media specific attribute. ")]
string DiskType;
[Deprecated {
"Solaris_Disk.PhysicalLabels"},
MaxLen (256),
Description (
"A string containing a user defined label for the disk."
"This attribute has been deprecated. It is a media attribute and"
"is covered by the label property inherited on the media object.")]
string DiskLabel;
[Deprecated {
""},
Description (
"The number of sectors per cylinder.This attribute has"
"been deprecated. It is a media attribute and is not valid"
"because this information cannot be reliably determined." )]
uint32 SectorsPerCylinder;
[Deprecated {
""},
Description (
"The number of heads per cylinder. This attribute has been"
"deprecated. See SectorsPerCylinder for details." )]
uint32 HeadsPerCylinder;
[Deprecated {
""},
Description (
"The number of sectors per track. This attribute has been"
"deprecated. See SectorsPerCylinder for details.")]
uint32 SectorsPerTrack;
[Deprecated {
""},
Description (
"The size of a cylinder in bytes. This attribute has been"
"deprecated. See SectorsPerCylinder for details.")]
uint32 BytesPerCylinder;
[Deprecated {
""},
Description (
"The number of cylinders for this disk. This attribute"
"has been deprecated. See SectorsPerCylinder for details.")]
uint32 PhysicalCylinders;
[Deprecated {
""},
Description (
"The number of cylinders available for partitions. This"
"attribute has been deprecated. See SectorsPerCylinder for details.")]
uint32 DataCylinders;
[Deprecated {
""},
Description (
"The number of reserved cylinders. This attribute has been"
"deprecated. See SectorsPerCylinder for details.")]
uint32 AlternateCylinders;
[Deprecated {
""},
Description (
"The number of actual cylinders. This attribute has"
"been deprecated. See SectorsPerCylinder for details.")]
uint32 ActualCylinders;
[Deprecated {
""},
Description (
"Does this disk require fdisk partitions?"
"Solaris i386 machines require a disk to"
"contain fdisk partitions. This attribute has been deprecated.")]
boolean FdiskRequired;
[Deprecated {
""},
Description (
"Does this disk contain fdisk partitions. This attribute"
"has been deprecated. This is now modeled using the"
"Solaris_DiskPartBasedOnFDisk association.")]
boolean FdiskPresent;
[Deprecated {
"Solaris_Disk.labelDisk()"
},
Description (
"Label the disk with the given string."
"The string should contain a short label for the"
"disk of up to 8 characters. This method has been deprecated."
"This behavior is now modeled using the labelDisk method on"
"Solaris_Disk.")]
boolean LabelDisk([IN] String label);
[Deprecated {
"Solaris_Disk.createFDiskPartitions"
},
Description (
"Create one Solaris fdisk partition that"
"uses the whole disk. This method has been deprecated. This has"
"been replaced with the Solaris_Disk.createFDiskPartitions method.")]
boolean CreateDefaultFdiskPartition();
[Deprecated {
"Solaris_Disk.createFDiskPartitions"
},
Description (
"Create fdisk partitions on this disk. This method"
"has been deprecated. It has been replaced with the"
"Solaris_Disk.createFDiskPartitions method.")]
boolean CreateFdiskPartitions([IN] uint32 DiskParameters[]);
[Deprecated {
""},
Description (
"Retrieve the current fdisk partitions for this disk."
"This method has been deprecated. It is now modeled using the "
"Solaris_DiskPartition object with the fDisk subtype" )]
boolean GetFdiskPartitions([OUT, IN(False)] uint32 FDiskPartitions[]);
};
//=============================================================================
// Title: Solaris_DiskPartition
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_DiskPartition MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description("Provides information about the logical partitions"
"on a disk drive attached to a Solaris system.")]
class Solaris_DiskPartition : CIM_DiskPartition
{
[Description ("The type of Solaris partition."),
ValueMap{"0", "1", "2", "3", "4"},
Values {"Unknown", "Other", "Solaris", "FDisk", "EFI"}]
uint16 SolarisPartitionType;
[Description ("The size in bytes of this partition"),
Units("Bytes")]
uint64 PartitionSize;
[Description ("The Starting cylinder for this partition")]
uint32 StartCylinder;
[Description ("The ending cylinder for this partition")]
uint32 EndCylinder;
[Description ("The number of cylinders for this partition")]
uint32 TotalCylinders;
[Deprecated {
""},
MaxLen (256),
Description ("A string containing the deviceID of the scoping disk."
"This is now modeled on the media object and is obtained by the Name"
"attribute on that object. ")]
string DiskID;
[Deprecated {
""},
Description ("The FLAG for this partition. The Flag describes"
"how the partition is to be mounted."
"0x00 Mountable Read Write"
"0x01 Not Mountable"
"0x10 Mountable Read Only. This attribute has been deprecated."
" A partition is not mounted. A Filesystem is.")]
uint8 Flag;
[Deprecated {
""},
Description ("The TAG for this partition. The Tag describes"
"the type of partition"
"Unassigned 0x00"
"Boot 0x01"
"Root 0x02"
"Swap 0x03"
"Usr 0x04"
"Backup 0x05"
"Stand 0x06"
"Var 0x07"
"Home 0x08"
"Altsctr 0x09"
"Cache 0x0a This attribute has been deprecated. A"
"Filesystem on a partition determines its use case.")]
uint8 Tag;
[Deprecated {
""},
Description ("Is there an existing file system on this partition."
"This attribute has been deprecated. This information is obtained"
"by traversing the Solaris_LocalFSResidesOnExtent association.")]
boolean ValidFileSystem;
[Deprecated {
"" },
Description ("Create file system on this partition using the default"
"parameters. Returns TRUE if successful. This method has been"
"deprecated. The behavior for this method is done with the "
"creation of a Solaris_FileSystem object.")]
boolean CreateFileSystem();
[Deprecated {
"Solaris_Disk.createPartitions()"},
Description ("Create partition on this disk. Partitions are created"
"based on the instance of Solaris_DiskPartition that"
"are associated with this Solaris_DiskDrive instance. This "
"method has been deprecated. It is replaced by the"
"Solaris_Disk.createPartitions() method.")]
boolean CreatePartitions([IN] uint32 DiskParameters[]);
};
//=============================================================================
// Title: Solaris_MediaPresent
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_MediaPresent MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description ("Solaris_MediaPresent an association that represents"
"The relationship between a media access device and"
"its media if present.")]
class Solaris_MediaPresent : CIM_MediaPresent
{
};
#pragma namespace("__create")
//=============================================================================
// Title: Solaris_LogicalDisk
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_LogicalDisk MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description("Provides information about the logical characteristics"
"of a disk.")]
class Solaris_LogicalDisk : CIM_StorageVolume
{
};
//=============================================================================
// Title: Solaris_PhysicalMedia
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_PhysicalMedia MOF Class definition
//=============================================================================
[Version("1.3.0"),
Abstract,
Description(
"The PhysicalMedia class represents any type of documentation"
"or storage medium, such as tapes, CDROMs, etc. This class"
"is typically used to locate and manage Removable Media"
"(versus Media sealed with the MediaAccessDevice, as a single"
"Package, as is the case with hard disks). However, 'sealed'"
"Media can also be modeled using this class, where the Media"
"would then be associated with the PhysicalPackage using the"
"PackagedComponent relationship.")]
class Solaris_PhysicalMedia : CIM_PhysicalMedia
{
};
//=============================================================================
// Title: Solaris_Disk
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_Disk MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description("Provides information about the physical characteristics"
"of a disk.")]
class Solaris_Disk : Solaris_PhysicalMedia
{
[Description ("Create partitions on this disk.")]
boolean createPartitions([IN] uint32 diskParameters[]);
[Description ("Create fdisk partitions on this disk.")]
boolean createFDiskPartitions([IN] uint32 diskParameters[]);
[Description ("Change the label on this disk.")]
boolean labelDisk([IN] string newLabel);
[Description ("Returns the geometry information with regard to this"
"disk.")]
boolean getDiskGeometry([IN] string diskName, [OUT, IN(False)] uint32 geometry[]);
};
//=============================================================================
// Title: Solaris_PhysicalPackage
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_PhysicalPackage MOF Class definition
//=============================================================================
[Version("1.3.0"),
Description (
"This class represents the package that realizes the Solaris"
"logical devices.This class does not have a provider,rather it relies on"
"the user to provide instances of this class. Physical package"
"characteristics are not generally available via Solaris, so the"
"user will have to manually input the instances of these.")]
class Solaris_PhysicalPackage : CIM_PhysicalPackage
{
};
//=============================================================================
// Title: Solaris_RealizesExtent
// Version: 1.3.0
// Date: 02/12/02
// Description: Solaris_RealizesExtent MOF Class definition
//=============================================================================
[Association,
Version("1.3.0"),
Provider ("jni:libWBEMdisk.so"),
Description("A logical disk is realized by a physical disk. This"
"association models this relationship, specifically the relationship"
"between the Solaris_Disk and the Solaris_LogicalDisk.")]
class Solaris_RealizesExtent : CIM_RealizesExtent
{
[Override ("Antecedent"), Key,
Description(
"The physical disk which realizes the logical disk")]
Solaris_Disk REF Antecedent;
[Override ("Dependent"), Key,
Description(
"The logical representation of the physical disk")]
Solaris_LogicalDisk REF Dependent;
};
//=============================================================================
// Title: Solaris_RealizesDiskPartition
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_RealizesDiskPartition MOF Class definition
//=============================================================================
[Association,
Version("1.3.0"),
Provider ("jni:libWBEMdisk.so"),
Description("Disk partitions are directly realized on physical media."
"This is used to model the creation of partitions on a raw SCSI or"
"IDE drive, Solaris_PhysicalDisk")]
class Solaris_RealizesDiskPartition: CIM_RealizesDiskPartition
{
[Override ("Antecedent"), Key,
Description (
"The physical media on which the partition is realized."),
Max (1)]
Solaris_Disk REF Antecedent;
[Override ("Dependent"), Key,
Description (
"The disk partition that is located on the media.")]
Solaris_DiskPartition REF Dependent;
};
//=============================================================================
// Title: Solaris_RealizesDiskDrive
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_RealizesDiskDrive MOF Class definition
//=============================================================================
[Association,
Version("1.3.0"),
Provider ("jni:libWBEMdisk.so"),
Description("Disk drives are realized by physical packages."
"This is used to model the realization of a Solaris_DiskDrive by"
"Solaris_PhysicalPackage. If the user has not input instances"
"of Solaris_PhysicalPackage no values will be returned on enumeration."
"Additionally, no create, modify or delete operations are allowed.")]
class Solaris_RealizesDiskDrive: CIM_Realizes
{
[Override ("Antecedent"), Key,
Description (
"The physical package that implements the logical device.")]
Solaris_PhysicalPackage REF Antecedent;
[Override ("Dependent"), Key,
Description (
"The logical device .") ]
Solaris_DiskDrive REF Dependent;
};
//=============================================================================
// Title: Solaris_DiskPartitionBasedOnDisk
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_DiskPartitionBasedOnDisk MOF Class definition
//=============================================================================
[Association,
Version("1.3.0"),
Provider ("jni:libWBEMdisk.so"),
Description("A disk partition in Solaris can be based on either"
"a disk or an fdisk. This association models the relationship of"
"Solaris disk partition with its underlying disk(not fDisk)")]
class Solaris_DiskPartitionBasedOnDisk: CIM_DiskPartitionBasedOnVolume
{
[Override ("Antecedent"), Key,
Description (
"The lower level StorageExtent.") ]
Solaris_LogicalDisk REF Antecedent;
[Override ("Dependent"), Key,
Description (
"The higher level StorageExtent.") ]
Solaris_DiskPartition REF Dependent;
};
//=============================================================================
// Title: Solaris_DiskPartitionBasedOnFDisk
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_DiskPartitionBasedOnFDisk MOF Class definition
//=============================================================================
[Association,
Version("1.3.0"),
Provider ("jni:libWBEMdisk.so"),
Description("A disk partition in Solaris can be based on either"
"a disk or an fdisk. This association models the relationship of"
"Solaris disk partition with its underlying fdisk")]
class Solaris_DiskPartitionBasedOnFDisk: CIM_BasedOn
{
[Override ("Antecedent"), Key,
Description (
"The lower level StorageExtent. The Fdisk partition")]
Solaris_DiskPartition REF Antecedent;
[Override ("Dependent"), Key,
Description (
"The higher level StorageExtent. The Solaris disk partition")]
Solaris_DiskPartition REF Dependent;
};
//=============================================================================
// Title: Solaris_SCSIController
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_SCSIController MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"Provides data with regard to the capabilities and management"
"of a SCSI controller under Solaris.")]
class Solaris_SCSIController : CIM_SCSIController
{
};
//=============================================================================
// Title: Solaris_IDEController
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_IDEController MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"Provides data with regard to the capabilities and management"
"of a SCSI controller under Solaris.")]
class Solaris_IDEController : CIM_IDEController
{
};
//=============================================================================
// Title: Solaris_MPXIOController
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_MPXIOController MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"Provides data with regard to the capabilities and management"
"of a MPXIO controller under Solaris.")]
class Solaris_MPXIOController : CIM_Controller
{
};
//=============================================================================
// Title: Solaris_USBSCSIController
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_USBSCSIController MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"Provides data with regard to the capabilities and management"
"of a USB SCSI controller under Solaris.")]
class Solaris_USBSCSIController : Solaris_SCSIController
{
};
//=============================================================================
// Title: Solaris_GenericController
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_GenericController MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"Provides data with regard to the capabilities and management"
"of 'unknown' controllers under Solaris.")]
class Solaris_GenericController : CIM_Controller
{
};
//=============================================================================
// Title: Solaris_SCSIInterface
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_SCSIInterface MOF Class definition
//=============================================================================
[Association,
Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"The ControlledBy relationship indicating which devices"
"are accessed through a SCSIController, along with the characteristics"
"of this access.")]
class Solaris_SCSIInterface : CIM_SCSIInterface
{
};
//=============================================================================
// Title: Solaris_MPXIOInterface
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_MPXIOInterface MOF Class definition
//=============================================================================
[Association,
Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"MPXIOInterface is a ControlledBy relationship indicating"
"which devices are accessed through the MPXIOController and the"
"the characteristics of this access.")]
class Solaris_MPXIOInterface : CIM_ControlledBy
{
};
//=============================================================================
// Title: Solaris_IDEInterface
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_IDEInterface MOF Class definition
//=============================================================================
[Association,
Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"IDEInterface is a ControlledBy relationship indicating"
"which devices are accessed through the IDEController and the"
"the characteristics of this access.")]
class Solaris_IDEInterface : CIM_ControlledBy
{
};
//=============================================================================
// Title: Solaris_ExtraCapacityGroup
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_ExtraCapacityGroup MOF Class definition
//=============================================================================
[Version("1.3.0"),
Abstract,
Description(
"A class that indicates that the aggregated elements have more"
"capacity or capability than is needed.")]
class Solaris_ExtraCapacityGroup : CIM_ExtraCapacityGroup
{
};
//=============================================================================
// Title: Solaris_MPXIOGroup
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_MPXIOGroup MOF Class definition
//=============================================================================
[Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"A class that indicates that the aggregated elements have more"
"capacity or capability than is needed. Specifically, this"
"class addresses the controllers that make up the MPXIO "
"controller functionality.")]
class Solaris_MPXIOGroup : Solaris_ExtraCapacityGroup
{
};
//=============================================================================
// Title: Solaris_ControllerLogicalIdentity
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_ControllerLogicalIdentity MOF Class definition
//=============================================================================
[Association,
Abstract,
Version("1.3.0"),
Description(
"This association represents the different aspects of the "
"the same controller.")]
class Solaris_ControllerLogicalIdentity : CIM_LogicalIdentity
{
};
//=============================================================================
// Title: Solaris_MPXIOCtrlrLogicalIdentity
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_MPXIOCtrlrLogicalIdentity MOF Class definition
//=============================================================================
[Association,
Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"This association represents the different aspects of the "
"the same MPXIO controller. Specifically, the ExtraCapacityGroup"
"view of the MPXIO Controller.")]
class Solaris_MPXIOCtrlrLogicalIdentity : Solaris_ControllerLogicalIdentity
{
[Override ("SystemElement"), Key,
Description(
"Represents the mpxio aspect of the controller.")]
Solaris_MPXIOController REF SystemElement;
[Override ("SameElement"), Key,
Description(
"Represents the other logical aspect of the mpxio controller.")]
Solaris_MPXIOGroup REF SameElement;
};
//=============================================================================
// Title: Solaris_ControllerComponent
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_ControllerComponent MOF Class definition
//=============================================================================
[Association, Aggregation,
Abstract,
Version("1.3.0"),
Description(
"A redundancy group aggregates managed system elements, and"
"indicates that these elements provide redundancy.")]
class Solaris_ControllerComponent : CIM_RedundancyComponent
{
};
//=============================================================================
// Title: Solaris_MPXIOComponent
// Version: 1.3.0
// Date: 2/12/02
// Description: Solaris_MPXIOComponent MOF Class definition
//=============================================================================
[Association, Aggregation,
Provider ("jni:libWBEMdisk.so"),
Version("1.3.0"),
Description(
"A redundancy group aggregates managed system elements, and"
"indicates that these elements provide redundancy. Specifically"
"this class represents the physical controllers that are"
"a part of the scsi_vhci controller group.")]
class Solaris_MPXIOComponent : Solaris_ControllerComponent
{
[Override ("GroupComponent"), Aggregate, Key,
Description (
"This grouping is an extra capacity group.")]
Solaris_MPXIOGroup REF GroupComponent;
[Override ("PartComponent"), Key,
Description (
"Parts can only be a controller type.")]
CIM_Controller REF PartComponent;
};
//=============================================================================
// Title: Solaris_StorageLibrary
// Version: 0.0.9
// Date: 2/12/02
// Description: Solaris_StorageLibrary MOF Class definition
//=============================================================================
[Version("0.0.9"),
Experimental,
Description (
"A StorageLibrary is a collection of ManagedSystemElements "
"that operate together to provide cartridge library "
"capabilities. This object serves as an aggregation point to "
"group the following elements: MediaTransferDevices, a Label"
"Reader, a library Door, MediaAccessDevices, and other "
"Library components.") ]
class Solaris_StorageLibrary : CIM_StorageLibrary
{
};
DMGT_MOF_END
# Update the MOF, if needed.
then
sed -e '/^#pragma namespace("__modify")/d' \
-e '/^#pragma namespace("__create")/d' \
fi
cat <<CIM27_MOF_END >${CIM27_PREGDIR}/CIM2.7.mof
/*
* Title CIM version 2.7 NFS dependencies.
* Description CIM version 2.7 Solaris Network File System model dependencies.
* Date 02/18/2003
* Version 2.7
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma namespace("root/cimv2")
#pragma Locale ("en_US")
#pragma namespace("__create")
// ==================================================================
// ManagedElement
// ==================================================================
[Abstract, Version ("2.7.0"), Description (
"ManagedElement is an abstract class that provides a common "
"superclass (or top of the inheritance tree) for the "
"non-association classes in the CIM Schema.") ]
class CIM_ManagedElement {
[MaxLen (64), Description (
"The Caption property is a short textual description (one-"
"line string) of the object.") ]
string Caption;
[Description (
"The Description property provides a textual description of "
"the object.") ]
string Description;
[Description (
" A user-friendly name for the object. This property allows "
"each instance to define a user-friendly name IN ADDITION TO its "
"key properties/identity data, and description information. \n"
" Note that ManagedSystemElement's Name property is also defined "
"as a user-friendly name. But, it is often subclassed to be a "
"Key. It is not reasonable that the same property can convey "
"both identity and a user friendly name, without inconsistencies. "
"Where Name exists and is not a Key (such as for instances of "
"LogicalDevice), the same information MAY be present in both "
"the Name and ElementName properties.") ]
string ElementName;
};
// ==================================================================
// SettingData
// ===================================================================
[Abstract, Experimental, Version ("2.7.0"), Description (
" The SettingData class represents configuration-related and "
"operational parameters for one or more ManagedElement(s). A "
"ManagedElement may have multiple SettingData objects associated "
"with it. The current operational values for an Element's "
"parameters are reflected by properties in the Element itself or "
"by properties in its associations. These properties do not have "
"to be the same values present in the SettingData object. For "
"example, a modem may have a SettingData baud rate of 56Kb/sec "
"but be operating at 19.2Kb/sec. \n"
" Note that the CIM_SettingData class is very similar to "
"CIM_Setting, yet both classes are present in the model. This is "
"because many implementations have successfully used CIM_Setting. "
"However, issues have arisen that could not be resolved without "
"defining a new class. Therefore, until a new major release "
"occurs, both classes will exist in the model. Refer to the Core "
"White Paper for additional information.") ]
class CIM_SettingData : CIM_ManagedElement {
[Key, Description (
"InstanceID opaquely identifies a unique instance of "
"SettingData. The InstanceID must be unique within a "
"namespace. In order to ensure uniqueness, the value of "
"InstanceID SHOULD be constructed in the following manner: \n"
"<Vendor ID><ID> \n"
" <Vendor ID> MUST include a copyrighted, trademarked "
"or otherwise unique name that is owned by the business entity "
"or a registered ID that is assigned to the business entity "
"that is defining the InstanceID. (This is similar to the "
"<Schema Name>_<Class Name> structure of Schema class names.) "
"The purpose of <Vendor ID> is to ensure that <ID> is truly "
"unique across multiple vendor implementations. If such a "
"name is not used, the defining entity MUST assure that the "
"<ID> portion of the Instance ID is unique when compared with "
"other instance providers. For DMTF defined instances, the "
"<Vendor ID> is 'CIM'. \n"
" <ID> MUST include a vendor specified unique "
"identifier.") ]
string InstanceID;
[Required, Description (
"The user friendly name for this instance of SettingData. "
"In addition, the user friendly name can be used as a "
"index property for a search of query. (Note: Name "
"does not have to be unique within a namespace.)") ]
string ElementName;
};
// ===================================================================
// Share
// ===================================================================
[Abstract, Experimental, Version ("2.7.0"), Description (
"A Share is representative of an object presented for use "
"(or shared) across systems. Instances of CIM_Share are "
"associated with the shared object on the 'server'-side via "
"the CIM_SharedElement association. Shares are mounted on the "
"'client'-side (usually into another namespace) via the CIM_Import"
"Share association. CIM_Share is Abstract to force subclassing to "
"define the semantics of sharing." ) ]
class CIM_Share : CIM_LogicalElement {
[Key, MaxLen (256),
Propagated ("CIM_System.CreationClassName"),
Description ("The scoping System's CreationClassName. ") ]
string SystemCreationClassName;
[Key, Propagated ("CIM_System.Name"),
Description ("The scoping System's Name.") ]
string SystemName;
[Key, MaxLen (256), Description (
"CreationClassName indicates the name of the class or the "
"subclass used in the creation of an instance.") ]
string CreationClassName;
[Override("Name"), Key, Description (
"The Name property, inherited from LogicalElement, "
"defines the shared name by which the shared object is "
"exported.") ]
string Name;
};
// ===================================================================
// FileShare
// ===================================================================
[Abstract, Experimental, Version ("2.7.0"), Description (
"A FileShare is representative of a file or directory presented "
"for use (or shared) across systems. Instances of FileShare are "
"associated with the shared object on the 'server'-side via "
"the CIM_SharedElement association. Shares are mounted on the "
"'client'-side (usually into another namespace) via the CIM_Import"
"Share association. FileShare is Abstract to force subclassing to "
"define the semantics of sharing." ) ]
class CIM_FileShare : CIM_Share {
[Description ("Indicates whether a directory or file is presented "
"for use (or shared) across systems. A value of true "
"represents a directory. A value of false represents a file") ]
boolean SharingDirectory;
};
// ===================================================================
// NFSShare
// ===================================================================
[Experimental, Version ("2.7.0"), Description (
"An NFSShare represents a Directory associated "
"via CIM_SharedElement that is made accessible to "
"other systems. On the client-side, the NFSShare is "
"associated with its mount point via "
"CIM_ImportedShare.") ]
class CIM_NFSShare : CIM_FileShare {
[Override("Name"), Description (
"The Name property, inherited from Share, defines the "
"shared name by which the shared object is exported. "
"For NFS, this will typically be the pathname of the "
"exported directory, using forward slashes '/' to "
"precede directory names in the path.") ]
string Name;
};
// ===================================================================
// SharedElement
// ===================================================================
[Association, Experimental, Version ("2.7.0"), Description (
"SharedElement associates the Share to a LogicalElement"
"that is being exported.") ]
class CIM_SharedElement: CIM_LogicalIdentity {
[Override("SystemElement"), Key, Max (1),
Description ("The Directory that is Shared.") ]
CIM_LogicalElement REF SystemElement;
[Override("SameElement"), Key, Description (
"The Shared view of the Directory.") ]
CIM_Share ref SameElement;
};
// ==================================================================
// HostedShare
// ==================================================================
[Association, Experimental, Version ("2.7.0"), Description (
"CIM_HostedShare is an association between a Share and "
"the System on which the functionality resides. The "
"cardinality of this association is 1-to-many. A System "
"may host many Shares. Shares are weak with respect to "
"their hosting System. Heuristic: A Share is hosted on "
"the System where the LogicalElement that Exports the "
"Share is located, (via LogicalIdentity.)") ]
class CIM_HostedShare:CIM_Dependency {
[Override ("Antecedent"), Max (1), Min (1),
Description ("The hosting System.") ]
CIM_System REF Antecedent;
[Override ("Dependent"), Weak,
Description ("The Share hosted on the System.") ]
CIM_Share REF Dependent;
};
CIM27_MOF_END
sleep 2
cat <<NFS_MOF_END >${NFS_PREGDIR}/Solaris_NFS1.0.mof
/*
* Title Solaris Network File System (NFS) MOF specification 1.3
* Description Solaris Network File System model.
* Date 03/21/2003
* Version 1.3
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma namespace("root/cimv2")
#pragma Locale ("en_US")
// ===================================================================
// Objects
// ===================================================================
#pragma namespace("__create")
[Provider("jni:libWBEMnfs.so"),
Version("1.3.0"),
Description (
"A class that represents a local NFS shared object on the "
"server side that is made accessible to other systems.")
]
class Solaris_NFSShare : CIM_NFSShare
{
[Description("If set to true: maximal access is given to all "
"clients. Valid for NFS version 2 only. Corresponds "
"to the 'aclok' share_nfs option (Solaris 9)."),
ModelCorrespondence{"Solaris_NFSMount.Version"}]
boolean AllowAccessControl = false;
[Description("Sets the the effective user ID of unknown users. By "
"default, unknown users are given the effective user "
"ID UID_NOBODY. UID_NOBODY is usually set to 60001 but "
"because an administrator can change this we don't set "
"it to this by default. Corresponds to the "
"'anon=' share_nfs option (Solaris 9)."),
Required,
Units("Bytes")]
Uint32 EffectiveUID;
[Description("If set to true: causes the server file system to "
"silently ignore any attempt to enable the setuid or "
"setgid mode bits. Corresponds to the 'nosuid' "
"share_nfs option (Solaris 9).")]
boolean IgnoreSetId = false;
[Description("Enables NFS server logging for the specified file "
"system. The optional tag determines the location of "
"the related log files. The tag is defined in "
"etc/nfs/nfslog.conf. The default value is the global "
"tag. The log file tag is only applicable when logging is "
"turned on. Corresponds to the 'log=' share_nfs option "
"(Solaris 9)."),
MappingStrings{"SOLARIS9.SUN|/etc/nfs/nfslog.conf"}]
String LogFileTag;
[Description("If set to true: the share is to be persistent across "
"reboots.")]
boolean Persistent = false;
[Description(
"A value of true prevents clients from mounting subdirectories "
"of shared directories. Corresponds to the 'nosub' share_nfs "
"option (Solaris 9).")]
boolean PreventSubDirMount = false;
[Description("If set to true: the public file handle is moved from "
"root (/) to the exported directory. Corresponds to "
"the 'public' share_nfs option (Solaris 9).")]
boolean Public = false;
[Description("This attribute is only used upon creation of a share. "
"Security information should be retrieved from "
"Solaris_NFSShareSecurity and Solaris_NFSShareSecurityModes."
"This attribute stores the security options for a share. "
"Each element of the array is a string starting with "
"sec=<mode> and including all options, such as access lists, "
"pertaining to that security mode.")]
String SecurityOptions[];
[Description("A string of share options for the shared file system as found"
"in /etc/dfs/sharetab.")]
String ShareOptions;
[Description("An attribute that is only used at the time of creation of "
"a Solaris_NFSShare instance. If it is set to true, the "
"the NFS server daemons (nfsd and mountd) will be started "
"with the default settings, if and only if, nfsd and mountd "
"aren't already running on the host. The daemons will NOT "
"be stopped and restarted. As a side effect of starting the "
"NFS server daemons the share being created will be placed "
"as an entry in /etc/dfs/dfstab since the starting of the "
"daemon relies on entries here."),
MappingStrings{"SOLARIS9.SUN|/etc/init.d/nfs.server start"}]
boolean StartDaemons = false;
};
[Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description (
"A class used to represent the NFS share security mode and "
"associated options for a Solaris_NFSShare object.")
]
class Solaris_NFSShareSecurity : CIM_Setting
{
[Description("Sets the maximum life time (in seconds) of the "
"RPC request's credential, that the NFS server "
"will allow. Valid for NFS sec mode of diffie "
"helman (dh) only. Corresponds to the 'window=' "
"share_nfs option (Solaris 9)."
"If the security mode is not Diffie Helman, this "
"property will not be set."),
ModelCorrespondence{"Solaris_NFSShareSecurity.Mode"},
Units("seconds")]
uint32 MaxLife = 30000;
[Key,
Description (
"Security mode used. Can be either sys, dh, krb5, krb5i, "
"krb5p. Unknown and other default to the default security "
"mode of AUTH_SYS (sys). Corresponds to the 'sec=' share_nfs "
"option (Solaris 9)."),
Required,
ValueMap{"Unknown", "other", "sys", "dh", "krb5", "krb5i", "krb5p"}]
String Mode;
[Description (
"If true: Access will be read-only for all clients in this "
"security mode. else: access will be read-write. Corresponds "
"to the 'ro' share_nfs option (Solaris 9).")]
boolean ReadOnly;
[Description (
"The list of clients whose access will be read-only. "
"Corresponds to the 'ro=' share_nfs option (Solaris 9).")]
string ReadOnlyList[];
[Description (
"The list of clients whose access will be read-write. "
"Corresponds to the 'rw=' share_nfs option (Solaris 9).")]
string ReadWriteList[];
[Description (
"The list of hosts with root access. Only root users from the "
"hosts specified will have root access. Corresponds to the "
"'root=' share_nfs option (Solaris 9).")]
string RootServers[];
[Override("SettingId"),
Key,
Description("The path name of the share."),
Required]
String SettingId;
};
#pragma namespace("__modify")
[Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description (
"The options used to mount a Solaris NFS file system.")]
class Solaris_NFS : CIM_NFS
{
[Deprecated {
"This is not replaced with anything. Global doesn't apply to NFS file "
"system mounts."},
Description("If set to true: the filesystem is mounted 'globally' on all "
"nodes of a cluster. "
"If set to false (default): the filesystem is not mounted on "
"all nodes of a cluster. "
"Ignored for non-clustered systems.")]
boolean Global = false;
[Deprecated {
"Solaris_NFSMount.GroupId"},
Description("If set to true: use BSD style group id semantics. "
"If set to false (default): use System V style group "
"id semantics.")]
boolean GrpId = false;
// [Override("Name"),
// Description("The Name property is populated with the following string: "
// "resource:=<resource> devid:=<devid> "
// "Upon creation of an instance of Solaris_NFS, Name must be "
// "populated with just the file system resource "
// "(ex: /dev/dsk/c0t0d0s6 or pogo:/export) since the devid/file "
// "system id is not yet known.")]
// string Name;
[Deprecated {
"Solaris_Mount.NoMnttabEntry"},
Description("If set to true: the mount entry is not added to /etc/mnttab. "
" If set to false (default): the mount is recorded in "
"/etc/mnttab.")]
boolean NoMnttabEntry = false;
[Deprecated {
"Solaris_Mount.NoSuid"},
Description("If set to true: don't allow allow setuid execution. "
"If set to false (default): allow setuid execution.")]
boolean NoSuid = false;
[Deprecated {
"Solaris_Mount.Overlay"},
Description("If set to true: the file system is mounted over an existing "
"mounted filesystem. "
"If set to false (default): the filesystem is not mounted over "
"an existing mounted filesystem.")]
boolean Overlay = false;
[Deprecated {
"Solaris_NFSMount.Posix"},
Description("If set to true: use POSIX.1 semantics for filesystem. "
"If set to false (default): do not use POSIX.1 semantics.")]
boolean Posix = false;
[Deprecated {
"Solaris_NFSMount.Protocol"},
Description("A string specifying the transport protocol used for the "
"NFS mount. It is the value of the network_id field from "
"/etc/netconfig.")]
String Proto;
[Deprecated {
"Solaris_NFSMount.Public"},
Description("If set to true: use the public file handle. "
"If set to false (default): do not use the public "
"file handle.")]
boolean Public = false;
[Deprecated {
"Solaris_NFSMount.EnableQuotaChecking"},
Description("If set to true: enable quota checking. "
"If set to false (default): disable quota checking.")]
boolean Quota = false;
[Deprecated {
"The same effect can be achieved by setting Solaris_Mount.ReadOnly "
"to false which resets the mount option to read-write. Then remount "
"the filesystem."},
Description("If set to true: remount a read-only file system with "
"read-write options. "
"If set to false (default): the filsystem is mounted with "
"the specified mount options.")]
boolean Remount = false;
[Deprecated {
"Solaris_NFSMount.SecurityMode"},
Description("A string describing the security mode for NFS transactions. "
"Available modes is listed in /etc/nfssec.conf.")]
String SecurityMode;
[Deprecated {
"Calculate from CIM_FileSystem.FileSystemSize and "
"CIM_FileSystem.AvailableSpace. "
"UsedSpace = CIM_FileSystem.FileSystemSize - "
"CIM_FileSystem.AvailableSpace. "
"Note: CIM_FileSystem.AvailableSpace now contains "
"the correct value with respect to the space "
"reserved only for superuser."},
Description("Indicates the total amount of used space on the "
"File System in bytes. Note that this is not the "
"FileSystemSize minus AvailableSpace due to the space "
"reserved only for superuser."),
Units("Bytes")]
uint64 UsedSpace;
[Deprecated {
"Solaris_NFSMount.Version"},
Description ("Version number of NFS protocol to use."),
ValueMap {"2", "3", "4", "highest"}]
String Version = "highest";
// Methods
[Deprecated {
"Solaris_NFSMount.getNetCfgList"},
Description("Method to obtain the list of network IDs from "
"the /etc/netconfig file.")]
sint32 getNetCfgList([OUT, IN(false)]string ids[]);
[Deprecated {
"Solaris_NFSMount.getNfsSecList"},
Description("Method to obtain the list of nfs security modes from "
"the /etc/nfssec.conf file.")]
sint32 getNfsSecList([OUT, IN(false)]string secmodes[]);
[Deprecated {
"Solaris_NFSMount.getDefaultNfsSecMode"},
Description("Method to obtain the the default nfs security mode from "
"the /etc/nfssec.conf file.")]
sint32 getDefaultNfsSecMode([OUT, IN(false)]string secmode);
};
#pragma namespace("__create")
[Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description (
"This class represents a share that is to be persistent across reboots. "
"There is a possiblity depending on the persistance mechanism "
"(ex: /etc/dfs/dfstab) that there are multiple shares that are to be "
"persistent which have the same path. If this occurs, a Key Not Unique "
"type of error will be set when calling intrinsic methods getInstance, "
"deleteInstance, addInstance and editInstance and no instance will be "
"returned.")]
class Solaris_PersistentShare : CIM_SystemSetting
{
[Description(
"String representing the share command entry in /etc/dfs/dfstab.")]
String Command;
[Override ("SettingID"),
Description("The path of the persistent share.")]
string SettingID;
//Methods
[Description("Method to be used to clear up conflicts in the "
"/etc/dfs/dfstab file. Conflicts are defined as any entries that have "
"the same path to be shared. All entries with the same path as passed "
"in with the <path> parameter will be deleted. The method returns 1 "
"if it succeded, 0 if a failure occurred.")]
sint32 deleteAllWithDuplicatePath([IN]String path);
};
[Experimental,
Version("1.3.0"),
Description("The Solaris_MountSetting object contains attributes that "
"are commonly used to configure a file system mount on a "
"Solaris system. Attributes which have the potential of "
"operating at a different value than what was configured "
"will also be on the Solaris_Mount object.")]
class Solaris_MountSetting : CIM_SettingData {
[Description ("The underlying file system type the mount is to be "
"configured for."),
ValueMap {"Unknown", "Other", "ufs", "nfs", "hsfs", "cachefs", "pcfs",
"procfs", "tmpfs", "VxFS", "SAMQFS", "devfs", "udfs", "sockfs",
"autofs", "specfs", "fifofs"},
ModelCorrespondence {"CIM_FileSystem.FileSystemType"},
MappingStrings {"SOLARIS9.SUN|mount -F <FStype>"}]
string FsType;
[Description ("A string of file system mount options specified when "
"mounting the file system. This property is also present on "
"the Solaris_Mount class. The Solaris_Mount.MountOptions "
"property represents the actual operational value of the "
"mount options string as reported in /etc/mnttab. "
"Therefore, the properties may have different values."),
MappingStrings {"SOLARIS9.SUN|mount -o <mount options, comma delimited>"}]
string MountOptions;
[Description("If set to true: the mount entry is added to /etc/mnttab."
"If set to false (default): the mount is not recorded in "
"/etc/mnttab."),
MappingStrings {"SOLARIS9.SUN|mount -m"}]
boolean NoMnttabEntry = false;
[Description("If set to true: don't allow allow setuid execution. "
"If set to false (default): allow setuid execution."),
MappingStrings {"SOLARIS9.SUN|mount -o suid | nosuid"}]
boolean NoSuid = false;
[Description("If set to true: the filesystem is mounted over an "
"existing mounted filesystem. If set to false (default): "
" the filesystem is not mounted over an existing mounted "
"filesystem."),
MappingStrings {"SOLARIS9.SUN|mount -O"}]
boolean Overlay = false;
[Description("If set to true: the filesystem is mounted as a read only "
"filesystem. If set to false (default): the "
"filesystem is mounted as a read/write "
"filesystem."),
MappingStrings {"SOLARIS9.SUN|mount -o rw | ro"}]
boolean ReadOnly = false;
[Description("If set to true, the file system will have a corresponding "
"device to mount/mount point entry in /etc/vfstab. This "
"property is also present on the Solaris_Mount class. The "
"Solaris_Mount.VfstabEntry property represents the actual "
"operational value of whether or not the mount has and entry "
"in /etc/vfstab. Therefore, the properties may have "
"different values."),
MappingStrings {"SOLARIS9.SUN|vfstab"}]
boolean VfstabEntry;
};
[Experimental,
Version("1.3.0"),
Description ("The Solaris_NFSMountSetting object contains attributes "
"that are commonly used to configure an NFS mount "
"on a Solaris system. Attributes which have the "
"potential of operating at a different value than what "
"was configured will also be on the Solaris_NFSMount object.") ]
class Solaris_NFSMountSetting : Solaris_MountSetting
{
[Description (
"If set to true, allow data and attribute caching. If set to "
"false, suppress data and attribute caching. Corresponds to "
"the 'noac' mount_nfs option (Solaris 9).") ]
boolean AttributeCaching = true;
[Description (
"Maximum number of seconds that cached attributes are held "
"after directory update. Corresponds to the 'acdirmax=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForDirectoriesMax = 60;
[Description (
"Minimum number of seconds that cached attributes are held "
"after directory update. Corresponds to the 'acdirmin=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForDirectoriesMin = 30;
[Description (
"Maximum number of seconds that cached attributes are held "
"after file modification. Corresponds to the 'acregmax=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForRegularFilesMax = 60;
[Description (
"Minimum number of seconds that cached attributes are held "
"after file modification. Corresponds to the 'acregmin=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForRegularFilesMin = 3;
[Description("If set to true: enable quota checking. If set to "
"false (default): disable quota checking. "
"Corresponds to the 'quota/noquota' mount_nfs "
"options (Solaris 9).")]
boolean EnableQuotaChecking = false;
[Description (
"The list of resources to be used for failover. Each "
"resource must be of the form host:/pathname, NFS URL or a "
"list of hosts, if the exported directory name is the same.")]
string FailoverList[];
[Description("If true, data is transferred directly between "
"client and server, with no buffering on the client. "
"If false: Data is buffered on the client. "
"The default is false. Corresponds to the "
"'forcedirectio/noforcedirectio' mount_nfs options "
"(Solaris 9).")]
boolean ForceDirectIO = false;
[Description("If set to true: use BSD style group id semantics. "
"If set to false (default): use System V style group "
"id semantics. Corresponds to the 'grpid' mount_nfs "
"option (Solaris 9).")]
boolean GroupId = false;
[Description (
"If set to true, once the FileSystem is mounted, NFS requests "
"are retried until the hosting System responds. "
"If set to false, once the FileSystem is mounted, an error "
"is returned if the hosting System does not respond. "
"Corresponds to the 'hard/soft' mount_nfs options (Solaris 9).")]
boolean HardMount = true;
[Description (
"If set to true, keyboard interrupts are permitted to kill a "
"process that is hung while waiting for a response on a hard- "
"mounted file system. If set to false, keyboard interrupts "
"are ignored. Corresponds to the 'intr/nointr' mount_nfs "
"options (Solaris 9).") ]
boolean Interrupt = true;
[Description ("Maximum number of NFS retransmissions allowed. "
"Corresponds to the 'retrans=' mount_nfs option (Solaris 9).") ]
uint16 MaxRetransmissionAttempts = 5;
[Description ("Maximum number of mount failure retries allowed. The "
"default for the mount command is 10000. The default for the "
"automounter is 0. "
"Corresponds to the 'retry=' mount_nfs option (Solaris 9). "
"This value is only valid upon creation of an instance of "
"instance of Solaris_NFSMount. This is actually a mount _process_ "
"option and not a mount option.") ]
uint16 MountFailureRetries;
[Description("If true, do not perform the normal close-to-open "
"consistency. The client will not perform the flush "
"on close and the request for validation, allowing "
"the possiblity of differences among copies of the "
"same file as stored on multiple clients. This can "
"be used where it can be guaranteed that accesses to "
"a specified file system will be made from only one "
"client and only that client. The default is false. "
"Corresponds to the 'nocto' mount_nfs option (Solaris 9).")]
boolean NoCloseToOpenConsistency = false;
[Description("If set to true: use POSIX.1 semantics for filesystem. "
"If set to false (default): do not use POSIX.1 "
"semantics. Corresponds to the 'posix' mount_nfs "
"option (Solaris 9).")]
boolean Posix = false;
[Description("A string specifying the transport protocol used for the "
"NFS mount. It is the value of the network_id field from "
"/etc/netconfig. Corresponds to the 'proto=' "
"mount_nfs option (Solaris 9)."),
MappingStrings{"SOLARIS9.SUN|/etc/netconfig"} ]
String Protocol;
[Description("If set to true: use the public file handle. "
"If set to false (default): do not use the public "
"file handle. Corresponds to the 'public' mount_nfs "
"option (Solaris 9).")]
boolean Public = false;
[Description ("Read buffer size in bytes. The default is 32768 for "
"version 3 and 8192 for version 2. Corresponds to the "
"'rsize=' mount_nfs option (Solaris 9)."),
Units("Bytes") ]
uint64 ReadBufferSize;
[Description ("NFS timeout in tenths of a second. The default is 11 "
"tenths of a second for connectionless transports and 600 "
"tenths of a second for connection oriented transports. "
"Corresponds to the 'timeo=' mount_nfs option (Solaris 9)."),
Units ("Tenths of Seconds") ]
uint32 RetransmissionTimeout;
[Description (
"If set to true, if the first mount attempt fails, retries are "
"performed in the foreground. If set to false, retries are "
"performed in the background. Corresponds to the 'bg/fg' "
"mount_nfs options (Solaris 9). "
"This value is only valid upon creation of an instance of "
"instance of Solaris_NFSMount. This is actually a mount _process_ "
"option and not a mount option.") ]
boolean RetryInForeground = true;
[Description("A string describing the security mode for NFS transactions. "
"Available modes is listed in /etc/nfssec.conf. "
"Corresponds to the 'sec=' mount_nfs option (Solaris 9)."),
MappingStrings{"SOLARIS9.SUN|/etc/nfssec.conf"} ]
String SecurityMode;
[Description (
"The NFS Server IP port number. Default is NFS_PORT which is defined "
"in /usr/include/nfs/nfs.h. Corresponds to the 'port=' mount_nfs "
"option (Solaris 9).") ]
uint32 ServerCommunicationPort;
[Description("The name of the NFS server.")]
String ServerName;
[Description("The path of the NFS resource on the server.")]
String ServerPath;
[Description (
"Version number of NFS protocol to use. Corresponds to the "
"'vers=' mount_nfs option (Solaris 9)."),
ValueMap {"2", "3", "4", "highest"} ]
String Version = "highest";
[Description ("Write buffer size in bytes. The default is 32768 for "
"version 3 and 8192 for version 2. Corresponds to the "
"'wsize=' mount_nfs option (Solaris 9)."),
Units("Bytes") ]
uint64 WriteBufferSize;
[Description(
"Allows the creation and manipulation of extended attributes. "
"Corresponds to the 'xattr/noxattr' mount_nfs options (Solaris 9). ")]
boolean Xattr = true;
};
[Experimental,
Version("1.3.0"),
Description("The Solaris_ShareSetting object contains attributes that "
"are commonly used to configure the sharing of a resource "
"on a Solaris system.")]
class Solaris_ShareSetting : CIM_SettingData {
};
[Experimental,
Version("1.3.0"),
Description (
"A class that contains attributes for a local NFS shared object "
"on the server side that is made accessible to other systems. "
"Attributes which have the potential of operating at a different "
"value than what was configured will also be on the Solaris_Mount "
"object.")
]
class Solaris_NFSShareSetting : Solaris_ShareSetting
{
[Description("If set to true: maximal access is given to all "
"clients. Valid for NFS version 2 only. Corresponds "
"to the 'aclok' share_nfs option (Solaris 9)."),
ModelCorrespondence{"Solaris_NFSMount.Version"}]
boolean AllowAccessControl;
[Description("Sets the the effective user ID of unknown users. By "
"default, unknown users are given the effective user "
"ID UID_NOBODY. UID_NOBODY is usually set to 60001 but "
"because an administrator can change this we don't set "
"it to this by default. Corresponds to the "
"'anon=' share_nfs option (Solaris 9)."),
Required,
Units("Bytes")]
Uint32 EffectiveUID;
[Description("If set to true: causes the server file system to "
"silently ignore any attempt to enable the setuid or "
"setgid mode bits. Corresponds to the 'nosuid' "
"share_nfs option (Solaris 9).")]
boolean IgnoreSetId;
[Description("Enables NFS server logging for the specified file "
"system. The optional tag determines the location of "
"the related log files. The tag is defined in "
"etc/nfs/nfslog.conf. The default value is the global "
"tag. Corresponds to the 'log=' share_nfs option (Solaris 9)."),
MappingStrings{"SOLARIS9.SUN|/etc/nfs/nfslog.conf"}]
String LogFileTag = "global";
[Description("If set to true: the public file handle is moved from "
"root (/) to the exported directory. Corresponds to "
"the 'public' share_nfs option (Solaris 9).")]
boolean Public;
[Description (
"A value of true prevents clients from mounting subdirectories "
"of shared directories. Corresponds to the 'nosub' share_nfs "
"option (Solaris 9).")]
boolean PreventSubDirMount;
[Description("An attribute that is only used at the time of creation of "
"a NFS Share instance. If it is set to true, the "
"the NFS server daemons (nfsd and mountd) will be started "
"with the default settings, if and only if, nfsd and mountd "
"aren't already running on the host. The daemons will NOT "
"be stopped and restarted. As a side effect of starting the "
"NFS server daemons the share being created will be placed "
"as an entry in /etc/dfs/dfstab since the starting of the "
"daemon relies on entries here."),
MappingStrings{"SOLARIS9.SUN|/etc/init.d/nfs.server start"}]
boolean StartDaemons;
};
[Provider("jni:libWBEMnfs.so"),
Version("1.3.0"),
Description("A logical element that contains the information necessary "
"to represent and manage the functionality provided by "
"shares in Solaris.")]
class Solaris_ShareService : CIM_Service {
//Methods
[Description("Method which shares all resources listed in the file "
"specified with the file parameter. The specified file "
"should contain a list of share command lines. "
"If no file is specified /etc/dfs/dfstab is used. "
"Resources may be shared by specific file system types by "
"specifying the file system type (or types in a comma "
"delimited list) as input parameter, fstype. The method "
"returns 1 if it succeded, 0 if a failure occurred. "
"Corresponds to /usr/sbin/shareall (Solaris 9)")]
sint32 shareall([IN]String fstype, [IN]String file);
[Description("Method which unshares all currently shared resources. "
"If a fstype (or fstypes in a comma delimited list) is not "
"specified in the fstype parameter, all distributed file "
"system type resources will be unshared. The method "
"returns 1 if it succeded, 0 if a failure occurred. "
"Corresponds to /usr/sbin/unshareall (Solaris 9)")]
sint32 unshareall([IN]String fstype);
};
[Provider("jni:libWBEMnfs.so"),
Version("1.3.0"),
Description("A logical element that contains the information necessary "
"to represent and manage the functionality provided by "
"file system mounts in Solaris.")]
class Solaris_MountService : CIM_Service {
//Methods
[Description("Method which mounts file systems listed in the file system "
"table as specified with the fstable parameter."
"The specified file system table (file) must be in the vfstab "
"format. If no file system table is specified (an empty "
"string is passed in) /etc/vfstab is used. Only the file "
"systems having the mount at boot field set to yes in the "
"table will be mounted. "
"The fstype parameter can be used to specify the file "
"system type of the file systems to be mounted. The "
"onlyLocalFileSystems and onlyRemoteFileSystems parameters "
"are mutually exclusive. If onlyLocalFileSystems is true, "
"the mountall action will be limited to local file systems. "
"If onlyRemoteFileSystems is true, the mountall action will "
"be limited to remote file system types. The method "
"returns 1 if it succeded, 0 if a failure occurred. "
"Corresponds to /usr/sbin/mountall (Solaris 9)")]
sint32 mountall([IN]String fstype, [IN]Boolean onlyLocalFileSystems,
[IN]Boolean onlyRemoteFileSystems, [IN]String fstable);
[Description("Method used to unmount all file systems except root, /usr, "
"/var, /var/adm, /var/run, /proc, and /dev/fd. There is no "
"guarantee that this function will unmount busy file "
"systems. "
"The fstype parameter can be used to specify the fstype of "
"the file systems to be unmounted. The host parameter "
"can be used to unmount all file systems listed in "
"/etc/mnttab that are remote-mounted from the host specified."
" If onlyLocalFileSystems is true, limit the unmounting to "
"local file systems. If onlyRemoteFileSystems is true, the "
"mounting will be limited to remote file system types. "
"If killProcesses is true, a SIGKILL signal is sent to each "
"process using the file and this spawns kills for those"
"processes. If unmountInParallel is true, the umount "
"operation will be performed in parallel. "
"The onlyLocalFileSystems and onlyRemoteFileSystems "
"parameters are mutually exclusive and cannot be used when "
"a host is defined. The fstype and host parameters are also "
"mutually exclusive. The method returns 1 if it succeded, 0 "
"if a failure occurred. Corresponds to /usr/sbin/umountall "
"(Solaris 9)")]
sint32 unmountall([IN]String fstype,
[IN]String host,
[IN]Boolean onlyLocalFileSystems,
[IN]Boolean onlyRemoteFileSystems,
[IN]Boolean killProcesses,
[IN]Boolean umountInParallel);
};
// ===================================================================
// Associations
// ===================================================================
#pragma namespace("__modify")
[Association,
Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description (
"An association between a remote directory that can be mounted "
"and the NFS mounted file system.") ]
class Solaris_NFSMount : Solaris_Mount
{
[Description (
"If set to true, allow data and attribute caching. If set to "
"false, suppress data and attribute caching. Corresponds to "
"the 'noac' mount_nfs option (Solaris 9).") ]
boolean AttributeCaching = true;
[Description (
"Maximum number of seconds that cached attributes are held "
"after directory update. Corresponds to the 'acdirmax=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForDirectoriesMax = 60;
[Description (
"Minimum number of seconds that cached attributes are held "
"after directory update. Corresponds to the 'acdirmin=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForDirectoriesMin = 30;
[Description (
"Maximum number of seconds that cached attributes are held "
"after file modification. Corresponds to the 'acregmax=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForRegularFilesMax = 60;
[Description (
"Minimum number of seconds that cached attributes are held "
"after file modification. Corresponds to the 'acregmin=' "
"mount_nfs option (Solaris 9)."),
Units("Seconds") ]
uint16 AttributeCachingForRegularFilesMin = 3;
[Override ("Dependent"),
Description ("The file system mounted via NFS. "
"It is also referred to as the resource to mount.") ]
Solaris_NFS REF Dependent;
[Description("If set to true: enable quota checking. If set to "
"false (default): disable quota checking. "
"Corresponds to the 'quota/noquota' mount_nfs "
"options (Solaris 9).")]
boolean EnableQuotaChecking = false;
[Description("If true, data is transferred directly between "
"client and server, with no buffering on the client. "
"If false: Data is buffered on the client. "
"The default is false. Corresponds to the "
"'forcedirectio/noforcedirectio' mount_nfs options "
"(Solaris 9).")]
boolean ForceDirectIO = false;
[Description (
"The list of resources to be used for failover. Each "
"resource must be of the form host:/pathname, NFS URL or a "
"list of hosts, if the exported directory name is the same.")]
string FailoverList[];
[Description("If set to true: use BSD style group id semantics. "
"If set to false (default): use System V style group "
"id semantics. Corresponds to the 'grpid' mount_nfs "
"option (Solaris 9).")]
boolean GroupId = false;
[Description (
"If set to true, once the FileSystem is mounted, NFS requests "
"are retried until the hosting System responds. "
"If set to false, once the FileSystem is mounted, an error "
"is returned if the hosting System does not respond. "
"Corresponds to the 'hard/soft' mount_nfs options (Solaris 9).")]
boolean HardMount = true;
[Description (
"If set to true, keyboard interrupts are permitted to kill a "
"process that is hung while waiting for a response on a hard- "
"mounted file system. If set to false, keyboard interrupts "
"are ignored. Corresponds to the 'intr/nointr' mount_nfs "
"options (Solaris 9).")]
boolean Interrupt = true;
[Description ("Maximum number of NFS retransmissions allowed. "
"Corresponds to the 'retrans=' mount_nfs option (Solaris 9).") ]
uint16 MaxRetransmissionAttempts = 5;
[Description ("Maximum number of mount failure retries allowed. The "
"default for the mount command is 10000. The default for the "
"automounter is 0. "
"Corresponds to the 'retry=' mount_nfs option (Solaris 9). "
"This value is only valid upon creation of an instance of "
"instance of Solaris_NFSMount. This is actually a mount _process_ "
"option and not a mount option.") ]
uint16 MountFailureRetries;
[Description("If true, do not perform the normal close-to-open "
"consistency. The client will not perform the flush "
"on close and the request for validation, allowing "
"the possiblity of differences among copies of the "
"same file as stored on multiple clients. This can "
"be used where it can be guaranteed that accesses to "
"a specified file system will be made from only one "
"client and only that client. The default is false. "
"Corresponds to the 'nocto' mount_nfs option (Solaris 9).")]
boolean NoCloseToOpenConsistency = false;
[Description("If set to true: use POSIX.1 semantics for filesystem. "
"If set to false (default): do not use POSIX.1 "
"semantics. Corresponds to the 'posix' mount_nfs "
"option (Solaris 9).")]
boolean Posix = false;
[Description("A string specifying the transport protocol used for the "
"NFS mount. It is the value of the network_id field from "
"/etc/netconfig. Corresponds to the 'proto=' "
"mount_nfs option (Solaris 9)."),
MappingStrings{"SOLARIS9.SUN|/etc/netconfig"}]
String Protocol;
[Description("If set to true: use the public file handle. "
"If set to false (default): do not use the public "
"file handle. Corresponds to the 'public' mount_nfs "
"option (Solaris 9).")]
boolean Public = false;
[Description ("Read buffer size in bytes. The default is 32768 for "
"version 3 and 8192 for version 2. Corresponds to the "
"'rsize=' mount_nfs option (Solaris 9)."),
Units("Bytes") ]
uint64 ReadBufferSize;
[Deprecated {
"Solaris_NFSMount.FailoverList"},
Description (
"Array of replicated resources to be used for failover. Each "
"resource must be of the form host:/pathname, NFS URL or a "
"list of hosts, if the exported directory name is the same.") ]
string ReplicatedResources[];
[Description ("NFS timeout in tenths of a second. The default is 11 "
"tenths of a second for connectionless transports and 600 "
"tenths of a second for connection oriented transports. "
"Corresponds to the 'timeo=' mount_nfs option (Solaris 9)."),
Units ("Tenths of Seconds")]
uint32 RetransmissionTimeout;
[Description (
"If set to true, if the first mount attempt fails, retries are "
"performed in the foreground. If set to false, retries are "
"performed in the background. Corresponds to the 'bg/fg' "
"mount_nfs options (Solaris 9). "
"This value is only valid upon creation of an instance of "
"instance of Solaris_NFSMount. This is actually a mount _process_ "
"option and not a mount option.")]
boolean RetryInForeground = true;
[Description("A string describing the security mode for NFS transactions. "
"Available modes are listed in /etc/nfssec.conf. "
"Corresponds to the 'sec=' mount_nfs option (Solaris 9)."),
MappingStrings{"SOLARIS9.SUN|/etc/nfssec.conf"}]
String SecurityMode;
[Description (
"The NFS Server IP port number. Default is NFS_PORT which is defined "
"defined in /usr/include/nfs/nfs.h. Corresponds to the "
"'port=' mount_nfs option (Solaris 9).") ]
uint32 ServerCommunicationPort;
[Description("The name of the NFS server.")]
String ServerName;
[Description("The path of the NFS resource on the server.")]
String ServerPath;
[Description (
"Version number of NFS protocol to use. Corresponds to the "
"'vers=' mount_nfs option (Solaris 9)."),
ValueMap {"2", "3", "4", "highest"} ]
String Version = "highest";
[Description ("Write buffer size in bytes. The default is 32768 for "
"version 3 and 8192 for version 2. Corresponds to the "
"'wsize=' mount_nfs option (Solaris 9)."),
Units("Bytes") ]
uint64 WriteBufferSize;
[Description(
"Allows the creation and manipulation of extended attributes. "
"Corresponds to the 'xattr/noxattr' mount_nfs options (Solaris 9). ")]
boolean Xattr = true;
// Methods
[Description("Method to obtain the list of network IDs from "
"the /etc/netconfig file. Returns 1 if method completed "
"successfully, 0 if an error occurred. Corresponds to the "
"data stored in /etc/netconfig (Solaris 9).")]
sint32 getNetCfgList([OUT, IN(false)]string ids[]);
[Description("Method to obtain the list of nfs security modes from "
"the /etc/nfssec.conf file. Returns 1 if method completed "
"successfully, 0 if an error occurred. Corresponds to the "
"data stored in /etc/nfssec.conf (Solaris 9).")]
sint32 getNfsSecList([OUT, IN(false)]string secmodes[]);
[Description("Method to obtain the the default nfs security mode from "
"the /etc/nfssec.conf file. Returns 1 if method completed "
"successfully, 0 if an error occurred. Corresponds to the "
"data stored in /etc/nfssec.conf (Solaris9).")]
sint32 getDefaultNfsSecMode([OUT, IN(false)]string secmode);
};
#pragma namespace("__create")
[Association,
Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description (
"This association represents the relationship between an NFS "
"share and its security modes.")
]
class Solaris_NFSShareSecurityModes : CIM_ElementSetting
{
[Override ("Element"),
Description ("The share the mode is for.")]
Solaris_NFSShare REF Element;
[Override("Setting"), Description (
"The Setting that can be applied") ]
Solaris_NFSShareSecurity REF Setting;
};
[Association,
Version("1.3.0"),
Description ("Class represents the relationship between an NFS "
"Share object and its default setting. The default "
"setting of AUTH_SYS for the security mode will be "
"set in the provider.")
]
class Solaris_NFSShareDefSecurityMode : CIM_DefaultSetting
{
[Override ("Element"),
Description ("The share the mode is for.")]
Solaris_NFSShare REF Element;
[Override("Setting"),
Description ("The Setting that can be applied to ") ]
Solaris_NFSShareSecurity REF Setting;
};
[Association,
Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description ("Class that represents the association between the "
"share and its host.")
]
class Solaris_HostedShare : CIM_HostedShare
{
[Override ("Antecedent"),
Description ("The host of the NFS shared file system.")]
Solaris_ComputerSystem REF Antecedent;
[Override ("Dependent"),
Description ("The NFS shared directory.")]
Solaris_NFSShare REF Dependent;
};
[Association,
Aggregation,
Version("1.3.0"),
Description(
"An association that represents the aggregation of all of "
"the Solaris_PersistentShare objects and ties them to a "
"Solaris_SystemConfiguration object.")]
class Solaris_PersistentShareConfiguration : CIM_SystemSettingContext
{
};
[Association,
Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description(
"This class ties an individual Solaris_PersistentShare to its "
"owning system.")]
class Solaris_PersistentShareForSystem : CIM_SettingForSystem
{
[Override ("Antecedent"),
Description ("The Solaris Hosting System.")]
Solaris_ComputerSystem REF Antecedent;
[Override ("Dependent"),
Description ("The dfstab entry for the system.")]
Solaris_PersistentShare REF Dependent;
};
[Association,
Provider(
"jni:libWBEMnfs.so"),
Version("1.3.0"),
Description(
"This class ties an individual Solaris_PersistentShare to a "
"Solaris_NFSShare.")]
class Solaris_NFSShareEntry : CIM_ElementSetting
{
[Override ("Setting"),
Description ("The persistent share setting")]
Solaris_PersistentShare REF Setting;
};
[Association,
Version("1.3.0"),
Description ("associates the Share to a LogicalElement that is "
"being exported.") ]
class Solaris_SharedElement : CIM_SharedElement
{
};
#pragma namespace("__modify")
[Association,
Provider("java:com.sun.wbem.solarisprovider.fsmgr.share.Solaris_NFSExport"),
Deprecated {
"Solaris_SharedFileSystem"},
Description ("Solaris_NFSExport inherited from CIM_Export")]
class Solaris_NFSExport : CIM_Export
{
[Description (
"If set to true: give maximum access to NFS v2 clients. "
"If set to false (default): give minimum access to NFS v2 "
"clients.") ]
boolean AclOk = false;
[Description (
"The effective UID of unknown users. The default value is "
"UID_NOBODY (60001).") ]
sint32 AnonUid;
[Description ("Share description.") ]
string Description;
[Description (
"Index file to use when accessing a Web-NFS directory.") ]
string IndexFile;
[Description (
"If set to true: prevents clients from mounting "
"subdirectories of the exported directory. "
"If set to false (default): allows clients to mount "
"subdirectories.") ]
boolean NoSub = false;
[Description (
"If set to true: don't allow allow setuid execution. "
"If set to false (default): allow setuid execution.") ]
boolean NoSuid = false;
[Description (
"If set to true: use exported directory as the location of "
"the public file handle for Web-NFS. "
"If set to false (default): exported directory is not the "
"location of the public file handle.") ]
boolean Public = false;
[Description (
"If set to true: grant read-only access to all clients. "
"If set to false (default):do not grant read-only access "
"to all clients.") ]
boolean ReadOnly = false;
[Description (
"If set to true (default): grant read-write access to all "
"clients. "
"If set to false: do not grant read-write access to all "
"clients.") ]
boolean ReadWrite = true;
[Description ("Array of clients granted read-only access.") ]
string ROAccessList[];
[Description (
"Array of hosts from which root users can gain "
"root access.") ]
string RootAccessList[];
[Description ("Array of clients granted read-write access.") ]
string RWAccessList[];
[Description (
"If set to true: the filesystem is shared at boot. "
"If set to false (default): the resource is not shared at "
"boot.") ]
boolean ShareAtBootEntry = false;
[Description (
"Array of security modes to be used to NFS transactions. "
"Available modes is listed in /etc/nfssec.conf.") ]
string SecurityModes[];
[Description ("Share options.") ]
string ShareOptions;
[Description (
"Maximum lifetime of a request allowed by the NFS server "
"(in seconds) when using Diffie-Hellman or Kerberos security. "
"Default value is 30000 seconds (8.3 hours).") ]
uint32 Window = 30000;
//Methods
[Description("Method to delete a dfstab entry.")]
sint32 deleteDfstabEntry([IN]string pathName);
};
#pragma namespace("__create")
[Association,
Version("1.3.0"),
Provider(
"jni:libWBEMnfs.so"),
Description ("Class that represents the association between the local "
"filesystem and the Solaris_NFSShare on the server.")
]
class Solaris_SharedFileSystem : Solaris_SharedElement
{
[Override("SystemElement"), Key, MAX(1),
Description ("The Directory that is Shared.") ]
CIM_LogicalElement REF SystemElement;
[Override("SameElement"), Key, Description (
"The Shared view of the Directory.") ]
CIM_Share REF SameElement;
};
NFS_MOF_END
then
sed -e '/^#pragma namespace("__modify")/d' \
-e '/^#pragma namespace("__create")/d' \
fi
exit 0