Upload
doanhanh
View
311
Download
5
Embed Size (px)
Citation preview
Tivoli® System Automation for Multiplatforms
��� � ��� ���
�� 3.1
SA30-3680-00
���
Tivoli® System Automation for Multiplatforms
��� � ��� ���
�� 3.1
SA30-3680-00
���
�!
� ��� � ��� ���� ��� ���� ��, 331 ���� �� D ������� �� ��� �����.
� IBM Tivoli System Automation for Multiplatforms ��� � ��� ��� ��� � ���� ��� ���� �� �,
IBM Tivoli System Automation for Multiplatforms� �� 3, ��� 1, ���� 0, ���� �� 5724–M00 � � ��� �
� �� ���� ����� ����.
IBM ��� ��� �����. �� ��� �� � �� ���� ���� ���, �� ��� ��� ��� ���� �
� ����.
135-700
����� ��� ��� 467-12, ��������
�� ��.�.� ����
�����
����: 080-023-8080
��� �� : [email protected]
��� ���, ��� �, ��, �� �� �� FAX ��� �� ��� ����.
��� ���� ���� �� ��� ���� ��� ���.
v � �� �� � �� ��
v ��� �� �� ��� �� �� ��
IBM� ��� ���, IBM ��� ��� ���� �� �� ��� ���� ���� ���� ��� ��� ��� �
���� �� � ����.
© Copyright International Business Machines Corporation 2006, 2008. All rights reserved.
��
�� . . . . . . . . . . . . . . . . . ix
�. . . . . . . . . . . . . . . . . . xi
� �� �� . . . . . . . . . . . . . xiii
� �� ��� . . . . . . . . . . . . . xiii
� �� �� � . . . . . . . . . . . . xiii
�� �� �� . . . . . . . . . . . . . xiv
�� . . . . . . . . . . . . . . . . xiv
ISO 9000 . . . . . . . . . . . . . . . xv
�� �� . . . . . . . . . . . . . . . xv
� �� � . . . . . . . . . . . . . xvi
�� � ���� � . . . . . . . . . . xvi
�� �� . . . . . . . . . . . . . . xvii
��� 3.1� ��� �� . . . . . . . . . xvii
� 1 � �� . . . . . . . . . . . . . . 1
� . . . . . . . . . . . . . . . . . 1
���� � �� ����. . . . . . . . . 1
Policy �� ��� . . . . . . . . . . . 1
�� �� . . . . . . . . . . . . . . 2
������ �� �� . . . . . . . . . 2
�� ���. . . . . . . . . . . . . . 2
System Automation for Multiplatforms �� . . . 3
���� � �� ��� . . . . . . . . . 3
�� . . . . . . . . . . . . . . . . 3
�� �� . . . . . . . . . . . . . . 3
�� ���. . . . . . . . . . . . . . 4
�� �� . . . . . . . . . . . . . . 4
�� �� . . . . . . . . . . . . . . 4
�� �� . . . . . . . . . . . . . . 4
��� . . . . . . . . . . . . . . . 5
� . . . . . . . . . . . . . . . . 5
�� . . . . . . . . . . . . . . . . 5
�� ��� . . . . . . . . . . . . . 6
�� �� . . . . . . . . . . . . . . 6
� ��� ��� . . . . . . . . . 6
System Automation for Multiplatforms� �� ��
�� RSCT. . . . . . . . . . . . . . . 7
RSCT � System Automation for
Multiplatforms� �� �� ��� . . . . . 7
Windows�� System Automation for
Multiplatforms �� . . . . . . . . . . . 10
� 2 � ���� . . . . . . . . . . . . 11
1� : ���� �� � �� . . . . . . . . 12
� � . . . . . . . . . . . . . . 12
2-� ���� �� . . . . . . . . . . 13
�� ��� � . . . . . . . . . . . 15
�� ����� � �� . . . . . . . . 15
�� ���� �� �� �� ������ �
��� . . . . . . . . . . . . . . . 16
������ � �� �� �� ���� �� 17
�� �� ��� �� . . . . . . . . . 18
2� : RSCT �� �� . . . . . . . . . . 20
� � . . . . . . . . . . . . . . 20
� ��� RSCT �� �� . . . . . . . . 20
3� : ���� ��� policy �� . . . . . 24
� � . . . . . . . . . . . . . . 26
���� ���� �� ��� �� �� . . . 27
apache1 � apache1IP� �� �� �� �� 28
� �� �� � � �� . . . . . . . . 28
� �� �� ��� ����� ���� . . . 28
� 3 � �� �� . . . . . . . . . . . . 31
��� �� . . . . . . . . . . . . . . 31
�� ���� �� . . . . . . . . . . . . 31
�� ��� �� . . . . . . . . . . . . 32
�� �� . . . . . . . . . . . . . 32
� �� . . . . . . . . . . . . . . 32
�� ��� �� . . . . . . . . . . . . 32
��� �� �� . . . . . . . . . . . . 32
��� �� �� . . . . . . . . . . . . 33
NodeNameList �� . . . . . . . . . . 33
SelectFromPolicy �� . . . . . . . . . 33
ResourceType �� . . . . . . . . . . 34
OpState ��. . . . . . . . . . . . . 35
NominalState� �� ��� ���� � ��
� . . . . . . . . . . . . . . . . 36
� 4 � �� �� �� . . . . . . . . . . 37
�� ��� �� . . . . . . . . . . . . 37
�� �� ��� � . . . . . . . . . . 39
�� ��� �� �� . . . . . . . . . . 40
© Copyright IBM Corp. 2006, 2008 iii
AllowedNode �� . . . . . . . . . . . 41
MemberLocation �� . . . . . . . . . 42
Name �� . . . . . . . . . . . . . 43
NominalState �� . . . . . . . . . . . 43
Priority �� . . . . . . . . . . . . . 44
ExcludedList �� . . . . . . . . . . . 45
ActivePeerDomain . . . . . . . . . . . 45
Description . . . . . . . . . . . . . 45
InfoLink . . . . . . . . . . . . . . 45
Owner . . . . . . . . . . . . . . . 45
Subscription . . . . . . . . . . . . . 45
OpState ��. . . . . . . . . . . . . 46
TopGroup �� . . . . . . . . . . . . 46
AutomationDetails �� . . . . . . . . . 46
MoveStatus �� . . . . . . . . . . . 47
ConfigValidity . . . . . . . . . . . . 48
�� �� ���� �� �� . . . . . . . 49
Mandatory �� . . . . . . . . . . . . 49
MemberOf ��. . . . . . . . . . . . 49
�� �� �� � �� . . . . . . . . . . 50
�� �� �� . . . . . . . . . . . . 50
�� ��� ��� �� �� . . . . . . . 50
�� �� � � ��� � . . . . . . . 51
�� �� �� � �� . . . . . . . . . 52
�� ��� �� �. . . . . . . . . . 52
�� �� ���� �� � . . . . . . . 53
�� ���� ��� �� �� . . . . . . 53
�� �� �� . . . . . . . . . . . . 53
� 5 � ��� �� . . . . . . . . . . . 55
���� �� . . . . . . . . . . . . . 55
��� ��� � . . . . . . . . . . . 57
���� �� �� . . . . . . . . . . . 57
MemberClass �� . . . . . . . . . . . 57
Membership �� . . . . . . . . . . . 57
SelectString �� . . . . . . . . . . . 57
SelectFromPolicy �� . . . . . . . . . 57
��� ���� �� �� . . . . . . . . 59
��� �� � �� . . . . . . . . . . . 59
��� �� . . . . . . . . . . . . . 59
�� ��� ��� �� . . . . . . . . . 59
��� � . . . . . . . . . . . . . 60
��� �� . . . . . . . . . . . . . 60
� 6 � �� �� �� . . . . . . . . . . 61
�� � � �� . . . . . . . . . . . . 61
�� � � �� �� . . . . . . . . . . 62
Name �� . . . . . . . . . . . . . 63
Source �� . . . . . . . . . . . . . 63
Target �� . . . . . . . . . . . . . 63
Relationship �� . . . . . . . . . . . 63
Condition �� . . . . . . . . . . . . 63
��/�� ��� � . . . . . . . . . . . 64
StartAfter � . . . . . . . . . . . . 64
StopAfter � . . . . . . . . . . . . 70
DependsOn � . . . . . . . . . . . 72
DependsOnAny � . . . . . . . . . . 78
ForcedDownBy � . . . . . . . . . . 79
�� � . . . . . . . . . . . . . . . 80
IfOnline, IfOffline, IfNotOnline �
IfNotOffline � . . . . . . . . . . . 81
�� � ��� � . . . . . . . . . . 81
Collocated � . . . . . . . . . . . . 82
AntiCollocated � . . . . . . . . . . 85
Affinity � . . . . . . . . . . . . . 87
IsStartable � . . . . . . . . . . . . 89
� �� � �� . . . . . . . . . . . . 90
� �� . . . . . . . . . . . . . . 90
� � . . . . . . . . . . . . . . 91
� � . . . . . . . . . . . . . . 91
� �� . . . . . . . . . . . . . . 92
� 7 � System Automation for Multiplatforms
� ��� ��� ���� �� . . . . . . . 93
�� � �: �� ��� . . . . . . . 93
�� ��� ����� ��� �� . . . . 97
IBM Tivoli System Automation for
Multiplatforms� �� �� . . . . . . . . . 99
� ���� . . . . . . . . . . . . 99
System Automation for Multiplatforms� �
�� ���� ��� ��� OpState ��
���� � . . . . . . . . . . . . 103
System Automation� �� ��� OpState�
���� � . . . . . . . . . . . . 106
System Automation� �� �� ���� ��
� OpState �� ���� � . . . . . 107
��� �� ��� ����� ���
MonitorCommand� � ��� ���
OpState� ���� �� System Automation
� ���� � . . . . . . . . . . . 115
�� ��� �� �� . . . . . . . . . . 116
� 8 � Integrated Solutions Console �� . . 119
iv ��� � ��� ���
Integrated Solutions Console�� �� ���
���� ���� �� ����� �� �� . . 119
Integrated Solutions Console�� System
Automation for Multiplatforms� �� ���
�� ��� �� � �� �� . . . . . 119
Integrated Solutions Console� � ���� �� 121
Integrated Solutions Console� ��� . . . . 122
Integrated Solutions Console ��� . . . . 123
����� ��� System Automation for
Multiplatforms ��� . . . . . . . . . . 124
SA �� �� �� . . . . . . . . . . . 126
SA �� ��� � . . . . . . . . . 126
SA �� ��� ��� �� . . . . . . 127
��� Policy� �� �� . . . . . . . . 138
�� ��� ���� �� �� . . . . . . 141
��� �� �� �� . . . . . . . . . . 145
�� �� ���� ��� �� �� �� . . 145
��� �� �� � � �� . . . . . . 146
Policy ���� ���� ��� Policy �� �
�� . . . . . . . . . . . . . . . . 147
Policy ���� ��� �� . . . . . . 147
Policy �� . . . . . . . . . . . . . 149
� 9 � �� �� – �� �� . . . . . . . 167
� . . . . . . . . . . . . . . . . 167
�� �� . . . . . . . . . . . . . . 168
�� �� �� . . . . . . . . . . . . . 168
AIX, Solaris � Linux �� � �� ��
��. . . . . . . . . . . . . . . 169
Windows �� � �� �� �� . . . . 169
�� ���� � . . . . . . . . . . 169
VMTIMEBOMB �� . . . . . . . . . 171
� �� � . . . . . . . . . . . . 171
�� �� ���� . . . . . . . . . . 173
�� ��� � � �� . . . . . . . 174
�� ��� �� . . . . . . . . . . 176
��� �� ����� ��� �� �� 183
���� �� ��� . . . . . . . . . 183
�� �� �� ��� . . . . . . . . 187
� 10 � System Automation for
Multiplatforms �� � �� . . . . . . . 189
System Automation for Multiplatforms �� . . 189
TimeOut � RetryCount . . . . . . . . 190
Automation . . . . . . . . . . . . . 192
ExcludedNodes . . . . . . . . . . . 192
ResourceRestartTimeout . . . . . . . . 192
�� . . . . . . . . . . . . . . . 193
System Automation for Multiplatforms ����
�� ��� Policy �� . . . . . . . . . 194
samPolicy �� ���� Policy �� . . . 194
��� Policy� XML �� . . . . . . . 195
Policy �� �� . . . . . . . . . 199
�� �� � �� ��� �� � �� . . . . 202
�� � �� �� �� . . . . . . . . 202
�� � �� �� ���� � . . . . . 202
�� � �� � �� . . . . . . . . . 203
� �� �� . . . . . . . . . . . . 203
�� ���� . . . . . . . . . . . . 203
�� ���� �� �� � �� � � �
�� . . . . . . . . . . . . . . . . 206
� �� �� . . . . . . . . . . . 206
�� ���� �. . . . . . . . . . 207
�� ���� . . . . . . . . . . . . 207
�� ���� �. . . . . . . . . . . 208
�� �� � �� ���� . . . . . . . 208
�� ���� � � . . . . . . . . 209
rgreq �� ���� �� �� �� . . . . . 210
��� �� . . . . . . . . . . . . . 210
�� �� �� . . . . . . . . . . . 211
�� � � . . . . . . . . . . . . 211
���(shadow) �� �� . . . . . . . . . 212
��� �� �� . . . . . . . . . . . 213
System Automation for Multiplatforms ����
� �� �� � . . . . . . . . . . . 216
� � �� � ���� . . . . . . . . 219
System Automation for Multiplatforms �� �
� . . . . . . . . . . . . . . . . . 221
System Automation for Multiplatforms�� TEC
�� ����� �� . . . . . . . . . . 223
Tivoli Enterprise Console� �� . . . . . 223
��� �� . . . . . . . . . . . . 223
TEC� �� � . . . . . . . . . . 224
TEC ��� �� �� . . . . . . . . . 224
TEC �� ���� �� � � ��
� . . . . . . . . . . . . . . . . 227
System Automation for Multiplatforms ��
��� RSCT �� �� �� . . . . . . 229
GDPS/PPRC Multiplatform Resiliency for
zSeries �� . . . . . . . . . . . . . 229
���� GDPS �� . . . . . . . . . 230
���� Linux ��� . . . . . . . . . 230
��� � � . . . . . . . . . . . . 230
�� v
�� � . . . . . . . . . . . . . . 232
� �� . . . . . . . . . . . . . 232
� �� . . . . . . . . . . . . . 232
�� � �� �� . . . . . . . . . . 232
� 11 � System Automation for
Multiplatforms �� ��� . . . . . . . . 235
�� �� ��� �� . . . . . . . . . 235
IBM.Application �� ���� �� . . . . 235
IBM.ServiceIP �� ���� �� . . . . . 252
�� �� ��� �� . . . . . . . . . 259
IBM �� �� ���� �� . . . . . . 259
IBM.Test� �� �� . . . . . . . . 259
��: �� �� �� � � OpState � 262
� 12 � RSCT ���� �� ��� �� ��
� . . . . . . . . . . . . . . . . . 263
���� ���� ��� . . . . . . . . 263
IBM TotalStorage DS4000 ���� � ��
� �� �� ���� ���� �� ���
�� . . . . . . . . . . . . . . . 264
�� IBM TotalStorage ��� �� ����
� �� � �� �� ���� ���� �
� �� . . . . . . . . . . . . . . 265
�-DS4000 � �� ���� ���� ��
�� . . . . . . . . . . . . . . . 267
���� � ��� �� �� . . . . . 268
��� �� IBM.AgFileSystem �� �� . . . 269
LVM ���� ��� �� IBM.AgFileSystem
�� ��� . . . . . . . . . . . . . . 269
IBM.AgFileSystem� �� �� . . . . . . 269
�� ���� . . . . . . . . . . . . 270
� 13 � Windows �� System Automation
for Multiplatforms: ��� � �� �� . . . 273
Windows �� �� System Automation for
Multiplatforms �� . . . . . . . . . . . 273
SA for Multiplatforms� �� . . . . . . 273
IBM Tivoli System Automation Shell� ��
�� . . . . . . . . . . . . . . . 274
�� ���� �� �� ��� ��� . . 274
�� ���� . . . . . . . . . . . . . 281
SRC(System Resource Controller) �� ��
�� . . . . . . . . . . . . . . . 281
SRC � RMC �� �� . . . . . . . . 283
� ��� ���� DMS(Dead-Man-Switch) 283
�� �� �� � . . . . . . . . . . 284
Windows��� System Automation for
Multiplatforms�� �� ��� ��� . . . . 285
SAMSERVICE ���� . . . . . . . . 285
Windows��� System Automation for
Multiplatforms� �� ���� ��� . . . . 286
�� A. ���� ���� �� . . . . . . . 287
���� ���� � � � ���� . . . . 287
���� �� �� ����� ��� ��
� . . . . . . . . . . . . . . . 287
���� ���� � �� ���� �� 288
� � � 2-� ������ ���� ���
�� �� �� . . . . . . . . . . . . . 288
zVM �� Linux on zSeries�� �� � ��
���� . . . . . . . . . . . . . . 289
2-� ����, � �� � �� ����
� �� . . . . . . . . . . . . . . . 290
2-� ����, � �� 2�� ���� ���
�� �� . . . . . . . . . . . . . . 292
��� �� 2�� ����, � �
ServiceIP �� . . . . . . . . . . . . 292
� �� ����� �� 3�� �� ���
�, ���� ����� � ServiceIP �� . . 293
��� �� 2�� ����, � �� �
VIPA . . . . . . . . . . . . . . . 294
����� �� . . . . . . . . . . . 295
�� B. ��� �� . . . . . . . . . . . 297
� System Automation for Multiplatforms �
� � ��� ��. . . . . . . . . . . . 297
��� �� � . . . . . . . . . . . 298
��� �� ��� ���� � . . . . . 299
�� � . . . . . . . . . . . . . 309
��� � . . . . . . . . . . . . . 314
����� � � �� . . . . . . . . 320
� �� � �� �� �� ���� ���
� �� . . . . . . . . . . . . . 320
��� �� . . . . . . . . . . . . . 320
��� ��� � ���� . . . . . . . . 321
System Automation for Multiplatforms �� �
� ��� �� . . . . . . . . . . . . . 321
��� ���� � �� ��� ���� �� 321
�� ��� �� �� ��� �� �� �� 326
� �� � �� ��� �� ���� �
�� � �� ��� ���. . . . . . . 327
��� ���� �� � �� . . . . . . 327
Policy ���� �� �� � �� . . . . 327
vi ��� � ��� ���
�� C. IBM Support Assistant �� . . . . 329
IBM Support Assistant � Tivoli System
Automation for Multiplatforms ��� � . . 329
�� D. ���� . . . . . . . . . . . . 331
�� . . . . . . . . . . . . . . . . 332
�� . . . . . . . . . . . . . . . . 335
�� vii
viii ��� � ��� ���
��
1. � ����� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
2. System Automation for Multiplatforms �� � . . . . . . . . . . . . . . . . . . . . 9
3. � �� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
4. ��� ��� �� �� �� � . . . . . . . . . . . . . . . . . . . . . . . . 104
5. �� ��� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
6. �� ��� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
7. �� ��� � � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
8. �� ��� ��� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
9. Policy ���� � �. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
10. �� – �� ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
11. 2-� ���� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
12. �� ���� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
13. ���� 1: ��� ��� �� DependsOn � . . . . . . . . . . . . . . . . . . . . 212
14. ��� ��� �� DependsOn � . . . . . . . . . . . . . . . . . . . . . . . . 213
15. ��� �� � � �� � � � . . . . . . . . . . . . . . . . . . . . . . . . 225
16. TEC �� � � �� � � � . . . . . . . . . . . . . . . . . . . . . . . . 226
17. �� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
18. IBM.Application ��� �� �� �� �� . . . . . . . . . . . . . . . . . . . . . 251
19. ���� � ���� Windows �� �� �� . . . . . . . . . . . . . . . . . . . 282
20. �� ��� BSOD �� � �� ����� � . . . . . . . . . . . . . . . . . . . . 285
21. ���� ���� � � ��� . . . . . . . . . . . . . . . . . . . . . . . . . 287
22. 2�� �, 1�� ����� . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
23. 2�� �, 1�� ����� – ����� �� . . . . . . . . . . . . . . . . . . . . 291
24. 2�� �, 2�� �����, 2�� ��� �� ���� . . . . . . . . . . . . . . . . 292
25. 2�� �, 2�� �����, 1�� �� ���� . . . . . . . . . . . . . . . . . . . 294
26. ��� �� 2�� ����, � �� � VIPA . . . . . . . . . . . . . . . . . . . 295
27. 1�� �� ���� ���� � �� ���� ����� . . . . . . . . . . . . . . . 296
© Copyright IBM Corp. 2006, 2008 ix
x ��� � ��� ���
�
1. �� ��� ���� System Automation for Multiplatforms � . . . . . . . . . . . . . . 31
2. �� ���� ���� System Automation for Multiplatforms � . . . . . . . . . . . . . 37
3. MoveStatus � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4. ���� �� �� System Automation for Multiplatforms � . . . . . . . . . . . . . . 55
5. �� � � �� �� System Automation for Multiplatforms � . . . . . . . . . . . . . 61
6. Res1 ��� OpState �� �� System Automation � . . . . . . . . . . . . . . . . 105
7. Res2 ��� OpState �� �� System Automation � . . . . . . . . . . . . . . . . 105
8. �� �� OpState �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
9. StartCommand� �� �� � �� System Automation � . . . . . . . . . . . . . . . 108
10. StartCommand� �� �� � System Automation �. . . . . . . . . . . . . . . . . 109
11. StartCommand� ��� �� ��� �� ���� � � System Automation � . . . . . . . 110
12. System Automation � � StopCommand� �� �� �� . . . . . . . . . . . . . . . 113
13. StopCommand� �� �� � System Automation � . . . . . . . . . . . . . . . . . 114
14. StopCommand� ��� �� ��� �� ��� � System Automation � . . . . . . . . 114
15. MonitorCommand� � ��� ��� OpState �� ��� � System Automation � . . . . 115
16. System Automation for Multiplatforms� �� ��� � . . . . . . . . . . . . . . . . 120
17. � �� ��� �� ���� ��� . . . . . . . . . . . . . . . . . . . . . . . 129
18. � �� ��� �� ��� �� ��� . . . . . . . . . . . . . . . . . . . . . . . 130
19. �� ��� �� ���. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
20. �� ��� ��� � ��� . . . . . . . . . . . . . . . . . . . . . . . . . . 142
21. �� ���� � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
22. ���� �� � ��� �� �� ���� �� . . . . . . . . . . . . . . . . . . . 184
23. �� � �� �� �� � ���� . . . . . . . . . . . . . . . . . . . . . . 208
24. System Automation for Multiplatforms ��� ��� �� �� � �. . . . . . . . . . . . 220
25. �� �� �� �� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
© Copyright IBM Corp. 2006, 2008 xi
xii ��� � ��� ���
� �� ��
� ���� IBM Tivoli System Automation for Multiplatforms(System Automation
for Multiplatforms)� �� Policy ��� ���� ��� ���� ���� �
� �� ����.
System Automation for Multiplatforms� AIX® ����(IBM System p ��), Solaris
����(SPARC ��), Linux ����(IBM System x, System z, System i �
System p ��) � Windows ����(IBM System x ��)� ��� ����� �
����.
� �� ���
� � System Automation for Multiplatforms� ��� � �� �� ��� ��
�� ��� � ���� �� �� ����.
� �� �� ��
� ��� IBM Tivoli System Automation for Multiplatforms(System Automation
for Multiplatforms)� ���� ���� �� �� ��� �� ����.
v � 1 ���� System Automation for Multiplatforms� �� ��� �����.
System Automation for Multiplatforms� �� ���, ��� �� � �
���� �� �� ��� �� ����.
v � 2 ���� System Automation for Multiplatforms� �� ��� ���� �
� �� ���� �� �� ����. ���� � �� ���� �
��� Policy� ���� �� �� ����.
v � 3 ���� System Automation for Multiplatforms� �� ��� �� �
���.
v � 4 ���� �� ��� ���� ���� �� �� ����.
v � 5 ���� ���� ���� ���� �� �� ����.
v � 6 ���� �� � � ���� ���� �� �� ����.
v � 7 ���� System Automation for Multiplatforms� �� ��� ����
�� �� ����.
v � 8 ���� �� ��, Policy ���, Integrated Solutions Console�� ��
��� �� � � ������ �� ����.
v � 9 ���� System Automation for Multiplatforms� ��� ���� ��
�� ����.
© Copyright IBM Corp. 2006, 2008 xiii
v � 10 ���� System Automation for Multiplatforms� ���� ���� �
� �� ����.
v � 11 ���� System Automation for Multiplatforms� �� �� ����
�� ����.
v � 12 ���� RSCT ���� �� ��� ��� ����� �� �� �
���.
v � 13 ���� Windows �� System Automation for Multiplatforms� AIX,
Solaris � Linux �� �� System Automation for Multiplatforms� ���
� �� ����.
v �� A��� ���� ����� ��� �� �� ����.
v �� B��� ��� ��� ��� �� ��� �����.
v �� C��� IBM Support Assistant �� �� �� ����.
�� �� ��
IBM Tivoli System Automation for Multiplatforms ������� � ��� ��
� �� �� �� �����.
v IBM Tivoli System Automation for Multiplatforms � � �� ���, SA30-3683
v IBM Tivoli System Automation for Multiplatforms ��, SA30-3681
�� ��� �� ���� ��� � ����.
http://publib.boulder.ibm.com/tividd/td/IBMTivoliSystemAutomationforMultiplatforms3.1.html
System Automation for Multiplatforms ���� � ��� ��� � System
Automation for Multiplatforms ����� �� �� ��� �����.
System Automation for Multiplatforms ��� ��� �� ����.
.ibm.com/software/tivoli/products/sys-auto-linux
��
� �� �� ��� �� �� ����.
� �, �� �, ��, � , �, ���� � ��� �� �� ����
�� �� �� �����. �� ��� ����(�: ���� � �� ��,
�� � ���)� �� �����.
���� ���� ��� ���� �� � �� � ����� �����.
������ �� ��� �� ��, ��� � �� � ��� ���� ��, ������
�� �� ���� ��� ��, ������� ��� �� ��� ��
�� ��� ������� �����.
xiv ��� � ��� ���
� ������ ��� ���� ��, �� ��, ��� � � � �����. �
� ��� �� ����.
ISO 9000� ��� �� � ��� ISO 9000 �� �� ��� ��� ���.
�� ��
System Automation for Multiplatforms CD�� ���� IBM RSCT(Reliable
Scalable Cluster Technology) � �� ����.
v RSCT �� ���
v AIX 5L� RSCT: �� ��
v RSCT for Multiplatforms: Technical Reference
v RSCT ���
v RSCT Diagnosis Guide
RSCT � �� � ������ �����.
www.ibm.com/servers/eserver/clusters/library/
� ��� IBM Redpaper� �� ����.
v IBM zSeries® � S/390® �� Linux: z/VM® � Linux� ����
�� � ���� �����.
http://publib-b.boulder.ibm.com/Redbooks.nsf/RedpaperAbstracts/redp0220.html
�� 1. � ����� �� ��
� �� �� xv
�� �� ��
System Automation for Multiplatforms � �� � ������ �����(�
�� ��).
.ibm.com/servers/eserver/clusters/library/
.ibm.com/servers/eserver/zseries/software/sa/
.ibm.com/software/sysmgmt/products/support/
���� ���� ��
�� � ����� ��� ��� [email protected]�� ������.
xvi ��� � ��� ���
�� ��
��� 3.1� ��� ��
�� 3 ��� 1�� ���� ��� �� � ���� �� ����.
v System Automation for Multiplatforms� � � �� ����� �� �
���.
– AIX 5.3 � 6.1(RSCT �� � ����� ��)
– SPARC ��� Solaris 10
– Windows Server 2008
v Red Hat Enterprise Linux� � �� �� 4.6���.
v X-Window� � �� ��� �� ��� ���� �� � ����.
v Windows�� System Automation for Multiplatforms� System Automation
Application Manager ���� �� � �� � ���.
v ��� Policy ���� �����.
v ��� �� � �����.
v AIX�� �� �� ��� �����.
© Copyright IBM Corp. 2006, 2008 xvii
xviii ��� � ��� ���
� 1 � ��
��
System Automation for Multiplatforms� Linux, AIX, Solaris � Windows ��
���� �� �� ������ ���� �����. ��� �� �� ���
IBM Tivoli System Automation for Multiplatforms � � �� ���� ���
��. System Automation for Multiplatforms� �� ��� �����.
���� � �� ����
System Automation for Multiplatforms� ��� �� �� � �� �� �
�� ��� � �� ����� ���� ��� �� ��� ���� ����
�� �� ���� ��� �����. ���� �� �� ��, ���� �
����� ��� ��� ����, ���� �� �� �� �� �� ����
�.
System Automation for Multiplatforms� ����� ��� � � � � �
� � �� �� � ��� ��� ���� � ��� � ����� ���
��. ��, ���� �� � �� Linux, AIX, Solaris �� Windows ���
� �� ��� �� � ���� ��� �� � �� ���� ������
��� � ��� ����, �� ���� ����� ��� � � � �
�� �� �� � � ������ ��� �� ��� �����.
Policy �� ���
System Automation for Multiplatforms� ��� ��� ��� �� � � �
��� �� ��� Policy� ��� �� ���� ��� �� � ����. �
Policy� � ��� �� ������ � � � ����. ��� �
� �� ��� System Automation for Multiplatforms�� �� �� ��
���� ��� �� ���� ��� �����, �� ��� �� � ��� �
����� ��� � ��� �� ���. ��, ���� �� ��� ��
� ��� �� �� � ����.
� ��� Policy� �� ��� IBM Tivoli Open Process Automation Library
�� ��� � ����.
http://catalog.lotus.com/wps/portal/topal
�� �����, ���� �� ��� Tivoli ��� � �� �-�� �
��� Tivoli System Automation� � ����.
© Copyright IBM Corp. 2006, 2008 1
�� ��
System Automation for Multiplatforms� Linux, AIX, Solaris �� Windows �
��� �� ��� �� � ���� ��� �� � �� ���� �����
� ��� ���� �� �����. ��� ����� � ��� �� ��� �
��� ���� �����.
������� �� ��
System Automation for Multiplatforms� ���� ���� ���� �� ��
� � �����. � �� ������ �� �� �� ��, �� � ��
� , � ��� � �� �� �� �� �� System Automation for
Multiplatforms� �� ���� �����. ��� ���� �� � ��� ��
� � ���� ��� ��� ��� �����.
�� ���
System Automation for Multiplatforms�� ��� � ��� � ����. �
� ����, ��� ��� �� �� � (�� ��, �� � � �� � �� �
)� ��� � ����. ��� ��� ��� �� ��� � ��� ����
�� ������ ���� ����� ��� � � � ���� �� � �
���� ��� ��� ��� �����.
��
2 ��� � ��� ���
System Automation for Multiplatforms ��
� ���� � ���� System Automation for Multiplatforms � �� ���
� ��� �� �����.
���� � �� ���
� ����� ���� � �� ��� ����� �� ���� �� System
Automation for Multiplatforms� �� ��� � ��� ���� ��� ���
��� ��� �� ���� ���� �����. ����� � �� �� �
� ��� � ����(� � ��� �� ���� ���� ���). System
Automation for Multiplatforms� ���� �� �� 32� � �����.
��
�� System Automation for Multiplatforms� ��� � �� ��� �� �
����� �� �����. ���� �� ��� ��� System Automation for
Multiplatforms� �� � ����.
v ���� mkrsrc("make resource") � ��
v XML ��� Policy � ��
v ��� Policy ��� ��
v � ��, � �� ���� �� �� �� �� ��� �� ���� ��
���.
�� � �� ���� �� �����(7 ���� �RSCT � System Automation
for Multiplatforms� �� �� ���� �). �� �� ��� ��� ���, �
� �� �����. �� ��, IP ��� ���� ��� �� � IP ��� �
����� ��� � ����.
�� � � ��� ����.
�� ��
���� �� ����� ��� �� �����. � �� �� ���
� 1�� ��� ����, �� � ��� ���� � � ����.
�� ��
����� �� ��� ��� � ��� � �� 1�� ���� ���
� �� ��(34 ���� �ResourceType ��� �).
�� ��
�� �� ��� �� ��� ����. �� ���� �� � � ����.
��� ��
IP ��� ��(�� �� � �����) �� ��� � �� � � �
��
� 1 � �� 3
��, ��� �� ��� ����. IP �� � ������ � �
� ��� � �� ��� ���� ��� ����.
�� ��
��, � �� ��� � ��� ����. �� ��, IP ��� �
�� �� �� ��� � � ����.
�� ���
�� ���� � � � �� ������. �� ��, ������ ��� �
�, ����� �� �� ����� �� ���� �����. �� ����
���� ���� �� �� �� ��� �� � ����. ������ ��,
�� ���� ��� ��(�: ������ �) �� ��(�: ����
�� �� ��� ��)� � �� � ����. ��� ���� � �� ��
��� � ���� �� � ����. �� ���� ��� �� ���� ��
�����(7 ���� �RSCT � System Automation for Multiplatforms� ��
�� ���� �).
�� ��
�� �� �� ���� �� �� ������. � ���� ���� ��
��� � �� ��� �� � ����. �� �� System Automation for
Multiplatforms �� ��� �� ������. �� �� �� ��(nest)� �
���, �� ����� ��� � �� �� ��� ��� �� �� ��
�� �� � ��� � ���. ��, � ���� ����� � ��� �
� � ��� �� ��� �� � ����.
�� ��
�� �� System Automation for Multiplatforms� �� �����. �� �
� �� �� ���� ����� �� � � ���� ��� �� ��� ��
�.
�� ��
�� ��� �� ��� � ��� ��� � ��� ������ ��� ���
���� ���� System Automation for Multiplatforms� �����. �� ��
� ″Offline″�� �� System Automation for Multiplatforms� ��� ���
�����, ″Online″�� �� � �� ��� ��� �����. NominalState
�� ��� �� � � � ��� ��� �� ��� �� � � ���
�. 43 ���� �NominalState ���� �����.
��
4 ��� � ��� ���
���
��� � ��� ���� �� ������. �� ��, ��� IP ��� �
��� �� ���� ���� � �� �� �����. ���� ���� ��
���� �, System Automation for Multiplatforms� � ���� ���� �
�� IP ��� �����.
��
System Automation for Multiplatforms� ����� �� �� � ��� ���
��. ��� �� � � � � ����.
v ��/�� ��
� � �� �� �� � �� ���� ���� � �����. StartAfter,
StopAfter, DependsOn, DependsOnAny � ForcedDownBy � � ���� �
�� �� � ����. �� ��, ��� ���� �� � ��� �� �
��� �� ��, Policy � StartAfter � � ���� �� �� � ���
�.
v � ��
����� � �� � ��� ��� ���� �� �� � � ��
��. System Automation for Multiplatforms�� ���� �� � � Collocation,
AntiCollocation, Affinity, AntiAffinity � IsStartable���. �� ���, ���
�� �� ��� ��� � �� � �� � � ��� IP ��� �� ��
����� ���. ��� �� ����� ���� � ��� ���� ���
�. �� System Automation for Multiplatforms� ���� Policy ��� ��
��� �� � ��� �����.
� � �� � �� ��� �����.
– �� ��, �� � ��� �� � � �� � �� ��.
– ����� � ��� �� �� �� �� � � �� � �� ��.
��
�� ��� � ��� ���� ��� ���� � ��� ���� ����. �
� ���� ��� ����� �� ���� ��� ���� �� �� ��
��� � �� � � ����. �� � � ��� ����.
�� ��
�� �� ����� �� ���� � �� �����. ���� �
� ��� ��� ��� �� �� �� �� ��� ��� �� �
����. ��� � 168 ���� ��� ���� �����.
��
� 1 � �� 5
�� �� ��
�� �� �� ��� �� �� ��� ��� �� ���� ���
� � ��� ��� ���� � �����. ����� � �� ��
��� ����� �� ���� ��� ��������� ��� ��
� ����. ��� � 168 ���� ��� �� ���� ����
�.
�� ����
� �� �� ��� ����� �� �� ��� ��� ��� �����
�� ����� ��(tie) ��� ���� ��, �� �� ���� ��� ���
���� ���� �� �� ���� �����.
�� ��
� ����� �� �� � SA �� �� � System Automation for
Multiplatforms� ���� �� ��� ��� ������ � ���.
�� ���� �� � ��� ����.
v �� System Automation for Multiplatforms� ��� ���� ����
� � ����.
v �� ��, �� ��� System Automation for Multiplatforms� �� ���
�� ���� �� ��� ���� ���� -�- ��� ���(��� �
��)� SA �� �� �� ��� ���� �����.
����� ��� ���
System Automation for Multiplatforms� � ��� ��� ��� ��
� SA �� ��(�� IBM Tivoli System Automation Application Manager,
� ��) �� ��� ���� ���� �� ����. ���� System
Automation for Multiplatforms� �� ���� ����.
��
6 ��� � ��� ���
System Automation for Multiplatforms� �� ���� RSCTRSCT(Reliable Scalable Cluster Technology)� System Automation for Multiplatforms
� �� ���� �� �����. RSCT� AIX, Linux, Solaris � Windows�
���� ����� ��� �����. System Automation for Multiplatforms�
RSCT �� �� ���� �� ���, ��� � ���� �� ����� �
����.
RSCT� �� � �� ������ ���� ����.
v RMC(Resource Monitoring and Control) ����:
RMC� � �� ���� � ���� �� ������� �����. �
������ RMC� � ����� �� ���� � ��� �� �� �
��� �����. �� �, ����� �� � ���� � �� �� ��
�����.
v HAGS(High Availability Group Services) ����
HAGS� �� �, ��� � ��� ������.
v HATS(High Availability Topology Services) ����
HATS� ��� � � �� ��� �� �� � �� �� ��� ����
�� ����� ��� ��� ���� �����.
v SRC(System Resource Controller: �� �� ����)
SRC(System Resource Controller: �� �� ����)� �� �� RSCT �
System Automation for Multiplatforms� ��� �� �� �� �� ����
� ���� ����� �������. �� �� � � �� ����� �� �
��� ��� ����. System Resource Controller� �� ���� ����
�� � ��� ���� �� �� � � �� � ��� �����.
AIX � Linux ��� System Resource Controller� inittab�� �����.
Solaris ��� System Resource Controller� SMF(Service Management Facility)
�� �����.
Windows ��� System Resource Controller� Windows ���� �����.
RSCT � System Automation for Multiplatforms� ��� �� ��
�
�� ���� �� ���(RM)� �� �����. �� ��� ��� ���� �
� ���� �� ���� �� �����. �� ���� �� RMC �� ��
��� ����. �� ���� SRC(System Resource Controller)� �� ���
� ���� �����.
��
� 1 � �� 7
RSCT� � �� � ���� ���� System Automation for Multiplatforms
��� ���� � �� ��� ��� �����. RSCT �� ��� ��� �
� �� System Automation for Multiplatforms ��� �� ��� � ��� �
����.
�� �� ���(�� RM)
�� RM(IBM.RecoveryRM) System Automation for Multiplatforms� ��
��� �� � ����. � �� ��� � � � ���� �� ��� Policy
� ���, Policy ��� �� RM�� �����. Recovery RM ����� �
� ��� ����, �� ��� Recovery RM� ���� �����. ��� �
� RM ��� �� ���� ���� ���� ��� ���� ���. ��� �
� ��� ���, �� RM �� �� ��� �� �� ����� ���
����.
��� �� ���(��� �� RM)
�� �� RM(IBM.GblResRM) �� ��� �� ���� �����.
IBM.Application
IBM.Application �� ���� � ����� ��� ��� �����.
� ���� ����� ��, �� � ������ � ��� � ����.
� ����� ���� ����� ��� ��� ��� ������ �
��� � ��� � ����. ��� ���� ����� � ���
� ����. ��� ��� 235 ���� ��� �� ��� ���� �
����.
IBM.ServiceIP
� ����� ���� IP(Internet Protocol) �� ��� ��� ����
�. � ���� ���� IP ��� ���� �� � ����. ��� IP
��� � ���� ‘�’����� ���. ��� ��� 252 ����
�IBM.ServiceIP �� ���� ���� �����.
���� �� ���(���� RM)
���� �� ���� ��� ��� ��� ���� ��� �� ���� � �
�� �����. ���� �� ���� � ��� ���� �� ���� ���
�� ���� �� ��� ��� RMC� �� � �� ���� �� �� ��
���� �����.
��� ���� � ��� �� ����� ���, ���� �� ���� ��
� �� �� ���(� �� ���� ��)� �� ��� ���� � ��� �
� ��� ����� �����. �� �� ��� �� ��� ���� ��� �
� ��� �� ���� ���� �� ����� ��� ��� � ���� ���
�� ��� �����.
��
8 ��� � ��� ���
��� ��� � �� �� � ��� ����� ����� � ��� �
���� �� � ���� ����� �� ���� ��� ��, ���� �
� ���� �� ���� �� ��� ��� � �� ���� ���� ��
� ��� �� �� ���� �� � ����.
�� �� ���(�� RM)
�� RM(IBM.ConfigRM) ���� ��� �����. ��, ����� ���
� ��� ��� �� ��� ���� � �� ���� �� ��� �����.
��� �� ���(��� RM)
�� RM(IBM.TestRM) �� ��� ����, ���� �� �� ���
��� � �����. �� RM� �� ��� ����� ����.
�� RM �� ��� ���� �� ���� IBM.Test �� ���� ���
��. �� RM� �� ��� � 235 ���� � 11 � �System Automation
for Multiplatforms �� ����� �����.
�� 2� ��� � ���� ������ �����.
�� 2. System Automation for Multiplatforms �� �
��
� 1 � �� 9
Windows�� System Automation for Multiplatforms ��
Windows��� System Automation for Multiplatforms� AIX, Solaris � Linux
���� ���� �� ��� � ���. �� Windows��� System
Automation for Multiplatforms� �� Windows Server 2003 R2 � Windows Server
2008� ���UNIX �� ������ ������ �����.
Windows�� System Automation for Multiplatforms� ��� �� Win32 �
���� � ���� �� � ��� � ����.
���� ���� �� ��(126 ���� �SA �� �� ��� �) ���Tivoli
System Automation ��� �� ���� ��� �� � ����. � � ��
� ″Korn Shell″ ����� �� ����. � ���� �� ���� UNIX �
� � � ��� �� �� ��� ��� ���� ��� ���. �� Windows
���� �� �� System Automation for Multiplatforms� ���� ����.
�� ���� �� UNIX � ��� ��, ��� � � �� � ��, ���
�� � ��� ���� ��, ����(�: ″ps″ � ″grep″)� �� ��� ���
�� ���. � ��� ��� ���� � �� � UNIX ��� ����
����. � � Windows � � ���� �� � ����.
��
10 ��� � ��� ���
� 2 � ���
�: Windows�� System Automation for Multiplatforms� ���� 273 ���
� � 13 � �Windows �� System Automation for Multiplatforms: ���
� �� ��� �����.
� ���� System Automation for Multiplatforms� �� ��� ���� �� �
��� �� � � �� ����.
1��: ���� �� � ��(12 ��� ��)
� � ��� ����� ���� ���� �, ����� �� ���
� ���� � � System Automation for Multiplatforms ��� ���
� �� �� ����.
2��: RSCT �� ��(20 ��� ��)
� � ��� � ��� � �� � ��� � � ���� �� ��
����.
3��: ����� ��� policy ��(24 ��� ��)
� � ��� 1� � 2� �� �� ��� �� � � ���� �
� �� ����. � ��� ��� Policy ���� ���.
� ��� ��� �� �� ��� ��� �� ��� �����.
IBM RSCT(Reliable Scalable Cluster Technology) ��
RSCT �� �� ��� � �� man page � xv ���� ���
����� RSCT ���� �����.
RSCT ��� System Automation for Multiplatforms CD� �����.
�� �� � ������ ���� �����.
www.ibm.com/servers/eserver/clusters/library/
���� �� ��� �� ��� �����.
http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp
System Automation for Multiplatforms ��
� �� �� ��� � IBM Tivoli System Automation for
Multiplatforms ��� �����. � System Automation for
Multiplatforms � 3� �� �����.
© Copyright IBM Corp. 2006, 2008 11
1��: ���� �� � ��
�� ������� ����� ���� �� ���� ��� �, �����
�� ���� � � System Automation for Multiplatforms �� RM ��
(IBM.RecoveryRM)� ��� ���� �� �� �����.
�� ��
�� �� ���� ��� �� �� � �� RSCT(Reliable Scalable Cluster
Technology) �� �� �� �����. 1� ��� �� � � �� ��
���. �� �� ��� � 11 ���� � RSCT ���� ����
�.
preprpnode � � ����� �� �� �� �� ��� �����.
� �� ��� � �� �� �� ����, ����� �� �
�� ���� ��� ��� ����� RMC ACL(Access Control
List)� �����.
mkrpdomain � � ���� ��� �� �����. ����� � � ��
��� �� �� ��� ���� � �����.
lsrpdomain � � �� ���� �� ��� � ����� �� ��
� � ���.
startrpdomain/stoprpdomain
� � �� ����� ��� � ������ ���� � ��
���.
addrpnode � ����� ���� �� ���, � � ����� �
� �� ���� � �����.
startrpnode/stoprpnode
� � �� �� ����� ��� � ������ �� ��
�����. � � �� ��� �� ����� �� �� �
� �����. �� ����, �� �� ����� �� ��,
�� �� �����. ��� � �� ����� ������.
lsrpnode � � ����� �� �� �� � � �� �� ��
(OpState)� �� �� �����. � � ������ ����
��� ����, ���� �� �� � ��� ���� ���
� �� ������.
lssrc � � ����� ��� � ���.
rmrpdomain � � �� ����� �����.
rmrpnode � � ���� ���� �� ��� �� �����.
startsrc � � �� ����� �����.
����
12 ��� � ��� ���
stopsrc � � �� ����� �����.
2-�� ���� ��
���� ��� ���� �� �� ���� �� � � ������.
v � ���� �� IP, ����� � ����� ��� ��� ��� ��
�.
v �� ��� ��� ��, DNS ��� �� �� �� �� /etc/hosts �
� ��� �� ��� � �� ������.
v � ���� �� ���� ������ � �� ���� ����.
v �� ���� ���� �� ��� ICMP ping � IP ���� cthats�
12347/udp, cthags� 12348/udp, rmc 657/udp � tcp� �� ����� ��
�� ���.
��� ��� 287 ���� �� A ����� ���� ��� �����.
2-� ����� ���� �� � � ���� ���.
1. ����� � �� �������.
v AIX/Solaris/Linux:
– � �� ��� ����� �� �������.
– � ��� �� � CT_MANAGEMENT_SCOPE� 2� �����.
�� �� ���� ��� � �� /etc/profile� ����
��.
– /etc/hosts ���� � ��� �� ��� �� ��� ����
��(�: 127.0.0.2 my_hostname). � �� �� �� � �� ���
�� ���� �� �� �����.
v Windows:
�� � � ������.
a. System Automation for Multiplatforms� � � ��� ��� ��
� � �� �������.
b. Windows �� ��� ����.
c. ″IBM Tivoli System Automation �″� ����. ��� �� > �
� ���� > Tivoli SA MP Base � ����. Windows ���
telnet ���� ����� �� �� telnet ��� � ����.
d. /etc/hosts, /etc/services � /etc/protocols� <WINDOWS>\system32\
drivers\etc ������ � � � �� ���� ������.
2. �� ��� preprpnode �� ���� ���� � �� ��� ����
��.
preprpnode node01 node02
����
� 2 � ���� 13
3. �� node01 � node02�� ���� �� SA_Domain� ����� ��
� ����. �� � �� ���� ��� � ����.
mkrpdomain SA_Domain node01 node02
mkrpdomain�� RSCT �� ���(����)� �� � �� ��� ��
���� ASCII ��� A - Z, a – z, 0 - 9, .(�) � _(��)� �����.
4. SA_Domain� ��� ���� lsrpdomain �� ������.
lsrpdomain
��:
Name OpState RSCTActiveVersion MixedVersions TSPort GSPortSA_Domain Offline 2.5.5.1 No 12347 12348
����� ��� �� �������.
5. startrpdomain �� ���� ����� ����� ������.
startrpdomain SA_Domain
lsrpdomain �� �� ���� ����� �� �� ��� OpState� �
�� ���� �� �� � ����.
Name OpState RSCTActiveVersion MixedVersions TSPort GSPortSA_Domain Pending online 2.5.5.1 No 12347 12348
�� � ����� ���� lsrpdomain �� �� ���� ����� �
���� �� �� � ����.
Name OpState RSCTActiveVersion MixedVersions TSPort GSPortSA_Domain Online 2.5.5.1 No 12347 12348
�:
1. �� � �� ���� �� � ����.
2632-044 �� ���� ��� ���� �� ��� �� ��� ������ ��� � ����.node1: 2632-068 � ��� node2� ��� �� ID� ��� ����� ��� ��� � ����.
� ��� �� Linux � �� ��� �� ��� �� �����.
����� ��� �� �� ��� ���� ���. � ID� ����
�� �� ���� ���� �� ��� �� �� ���� � ����
������.
/usr/sbin/rsct/install/bin/recfgct
preprpnode ��� �����.
2. �� � �� ���� ��� �� ����.
����
14 ��� � ��� ���
2632-044 �� ��� ��� ���� �� ��� �� ����� ���� ��� � ����.node1: 2610-418 � ��� ��� �� � ���� �� ��� ��� �������.
��� � ��� ������. �� �� �� /etc/hosts � � �� ��
��� � �� �� �� �� � �� ��� � �� ������.
3. �� � �� ���� ��� �� ����.
2612-022 <node_name>� RMC ���� ��� ���� �����.
� ��� ���� ���� � � ���� �� �� ��� �� ��
���. ���� ���� ��� ������� �� ��� ������.
rmc port 657 TCP IN/OUT Source Port Range: ephemeral portrmc port 657 UDP IN/OUT Source Port Range: ephemeral portcthats port 12347 UDP IN/OUT Source Port Range: 1024 - 65535cthags port 12348 UDP IN/OUT Source Port Range: 1024 - 65535
�� ��� � BROADCAST ��� cthats ��� ���� ���� ��
� �� ������. ��� ��� IBM RSCT �� ���(�� A. RSCT �
��� ����)� �����.
�� ���� ��
�� �� �� ���� �� ������ �� ���� ��� ���.
2-� ����� �� ���� �� ��� �� ����.
v �� ���� �� ��, System Automation for Multiplatforms� ���� �
� ��� ��� �� ��� ������. �� ���� �� 2-� �
������ ���� ���� �� � ������ ���.
v �� ���� � � ��� ����� ����� � ���� � �
���� �� �� ��� ����� ���.
�� �� �� ���� �� ������ �� ���� ��� ���. ��
���� ���� �� ��� ������ ����� ��� �� ����
�� ����� ���.
�� ��� �, �� � ��� �� ��� ��� 167 ���� � 9 � ���
�� – �� ���� �����.
�� ����� �� ��
2-� ����� ��� � SA_Domain� � �� �� �� �� ����.
� ��� ���� ��� �����.
1. lsrpdomain �� ���� ����� ����� ������.
Name OpState RSCTActiveVersion MixedVersions TSPort GSPortSA_Domain Online 2.5.5.1 No 12347 12348
����
� 2 � ���� 15
lsrpnode �� ���� ���� �� ������.
Name OpState RSCT Versionnode02 Online 2.5.5.1node01 Online 2.5.5.1
2. �� preprpnode �� ���� �� �� � � �� ��� �����
�.
node03� ����� ��� ������.
preprpnode node01 node02
node02� ����� ��� ������.
preprpnode node03
node01� ����� ��� ������.
preprpnode node03
�� ��� ��� preprpnode �� �� �� �����.
3. ���� ��� node03� ����, ������ � ��� ��� node01
�� node02�� addrpnode �� ������.
addrpnode node03
�� � � lsrpnode �� ���� �� �� ��� ������.
�� OpState RSCT �node02 Online 2.5.5.1node03 Offline 2.5.5.1node01 Online 2.5.5.1
4. ��� ��� node03� ������.
startrpnode node03
�� � node03� ���� ���.
�� ���� �� �� ��� ������ ����
� ����� ����� ����� ���� ���� �� �� ����
�� ����� �� �� ������ ����� �� ����.
v SA-Domain ����� �� ����� ���� �� � ����� ����
�� ����� �� ����. � ��� ���� ����� ��� ���
��� stoprpdomain �� ������.
stoprpdomain SA_Domain
lsrpdomain �� ���� SA-Domain ����� ��� ������.
Name OpState RSCTActiveVersion MixedVersions TSPort GSPortSA_Domain Offline 2.5.5.1 No 12347 12348
����
16 ��� � ��� ���
����� ���� ���� ��� ���� ���� startrpdomain �� �
��� � ����� �� ����� �� � ����.
v �� ��� ���� �� ������ ��� �� stoprpnode �� ���
��. ���� �� ������ �� �� ����. �� ��, �� �
���.
– ����� ���� ���� ��
– ��� ����� ����� ��
– ������ �� ����� ��
– �� �� ����� ��� � ��� � �� � �� ������� ��
���� ���, � ������ �� �� ����� ���� � �
� ������ �� ���.
�� ������ ��, ����� ��� ��� ��� stoprpnode �
� ���� ������ �� ���� � �� ������. �� �
�, node03� ���� ��� ������.
stoprpnode node03
�: ����� �� �� �� �� ��� ������. �� �� ��
���� �� ��� �� � ����, ����� ��� ��� �� �
� ��� �� �� �� �� ��� �� ���� ����. ��� ���
167 ���� � 9 � ��� �� – �� ���� �����.
lsrpnode �� ���� node03� ����� � �� ������.
lsrpnode node03
Name OpState RSCT Versionnode03 Offline 2.5.5.1
������ �� �� �� �� ���� ��
���� ��� �� �� ���� ��� ��� � ������ �� �
� ����� �� ���� ��� ���� ��� ����.
v ������ �� ����� �� rmrpnode �� �����. ������
�� ���� �� ������� ���. ����� �� �� ����
� �� ��, stoprpnode �� ���� � �� ������ �� ��
�. �� rmrpnode �� ���� ������ �� �� �� �� ��
��. �� ������ ����, ����� ��� ��� ��� lsrpnode
�� ������.
lsrpnode
Name OpState RSCT Versionnode02 Online 2.5.5.1node03 Offline 2.5.5.1node01 Online 2.5.5.1
����
� 2 � ���� 17
� �� ����� ��� ��� ��� rmrpnode �� ���� node03�
������.
rmrpnode node03
lsrpnode �� �� ���� node03� ��� �� ������.
lsrpnode
Name OpState RSCT Versionnode02 Online 2.5.5.1node01 Online 2.5.5.1
v �� ���� ��� ����� �� rmrpdomain �� �����. ����
� ��� ����� � �� �� ���� ��� �� �����. � ��
� ���� ���� ����� �� �� ������ ���. startrpnode
�� ���� �� �� ����� ��� startrpdomain �� ����
����� ���� �� � ����� � ����. rmrpdomain �
� �� �� ��� �� ��� �� �� ���� ��� ����
�. �� ����� ��� ��� ���� � �� � ���� ��,
� � � ���� �� � � � �����. �� rmrpdomain �
� ���� ��� �� � �� ��(�� ��, �� ������� �
��� �� ��), rmrpdomain � � �� ���� ��� �� �
����. ����� ����� � �� �� �� �� -f� ���� ��
� ����� �� � ����.
startrpdomain �� ���� SA_Domain ����� �� � �����
����.
startrpdomain SA_Domain
� �� rmrpdomain �� ���� SA_Domain ����� ������.
rmrpdomain SA_Domain
�� �� ��� ��
����� ���� � ��� System Automation for Multiplatforms �� RM
��(IBM.RecoveryRM)� ���� ����. �� ����� ���� � ��
�� �����.
��� �� � ���� ID� ���� �� �� ������.
lssrc -s IBM.RecoveryRM
�� �� ����.
Subsystem Group PID StatusIBM.RecoveryRM rsct_rm 18283 active
�� ��, �� ��� ��� ���� �� � ����.
stopsrc -s IBM.RecoveryRM
����
18 ��� � ��� ���
��� ���� �� �� ������.
startsrc -s IBM.RecoveryRM
���� ��� ����� ��� ��� ����. � �� �� �� ����
� ���� �� ���. ��� ��� ��� �� ��� �� �� �
�����.
lssrc -ls IBM.RecoveryRM | grep Master
�� �� ����.
Master Node Name : node03 (node number = 3)
���� ��� �� node03��� ��� �����.
�� �� ‘�� ��’��� ���. ��� �� �� ��� ��� ��� ��
���� �� ��� ���� �� �� �� ���� ��� �� �� � �
� �� � ��� ���� ���. � �� �� � � � System Automation for
Multiplatforms� ��� ��� �� �� �����.
����
� 2 � ���� 19
2��: RSCT �� ��
�� ��
�� RSCT ��� �� � �� RSCT(Reliable Scalable Cluster Technology)
�� �� �� �����. 2� ��� �� � � �� ����. ��
�� ��� � 11 ���� � RSCT ���� �����.
chrsrc � � �� �� ��� ��� ��� �� �� �� ����.
lsrsrc � � �� ���� ��� � ���.
mkrsrc
� � �� �� ���� ��� �����.
resetrsrc
� � �� �� ���� ��� �����.
rmrsrc
� � �� �� ���� ��� �����.
runact
� � �� ���� �� �� �����.
startrsrc
� � �� ��� ����� �����.
stoprsrc
� � �� ��� ������ �����.
� ��� RSCT �� ��
�� ��� SA_Domain ����� � ��� ���� � ��� ���� �
� �� ����. � ���� � � �(node01, node02 � node03)� ��
� 12 ���� �1� : ���� �� � ���� �����.
���� � ��� �� ��� �� ����.
v � ��� ����� �� ���� �� ����� �� � ���� ���
�� ���.
v �� � ����� � � �� � ��� � ��� ���� �� ���
�� ���. �� ��� ��� � ���� � �� ��� �� ��
��� ���� �� �� ����.
v � ��� �� ���� �� � �� � � IP ��� ��� �� � ��
� ���. ��� ��� � ��� � �� ��� � � �� �� �
��� ��� ���� ���� � � ����.
����
20 ��� � ��� ���
���� ���� �� ���� RSCT �� �� ��� �� ����� �
��. ��� �� ��� ��� �� ���� � ��� �� ��� RSCT ��
���� �����. � ����� �� � ���� � ��� RSCT ��� �
����.
1. � �� ��� ���� apache1��� �� ����� ��. � ��
IBM.Application��� ���� ����.
� ��� ����� �� �� ���� �� ���� apache1 � ��
���.
2. � ��� IP ��� ���� � ���� apache1IP�� �� IP ��.
apache1IP� IBM.ServiceIP�� ���� ����. apache1IP� � ��� ��
� �� ������ �� � ���� � �����.
3. apache1IP ��� ��� � �� ���� ����� �� �� netequ� �
� �� ��. �� ������ �� IBM.Equivalency ���� ����.
� ����� “�” �� “��” �� � � ����.
����
� 2 � ���� 21
������ �� apache1 ��
����� �� apache1� ����� � ��� ��, �� � ��� �� �
�� ����� ���� ���. � � �/�� ����� �� �� � ���
��/��/�� �� � � �� ���� �� � ������ � ��
� ���� �� �� �� ����. � ����� ���� �� ���� ��
� ����. ����� ���� �� ��� �� 235 ���� � 11 �
�System Automation for Multiplatforms �� ����� �����.
� ���� ���� Linux ��� ����� �� ����.
/cluster/scripts/apache
�� ��� ������.
#!/bin/bash
OPSTATE_ONLINE=1OPSTATE_OFFLINE=2
Action=${1}
case ${Action} instart)/usr/sbin/apachectl start >/dev/null 2>&1logger -i -t "SAM-apache" "Apache started"RC=0;;
stop)/usr/sbin/apachectl stop >/dev/null 2>&1logger -i -t "SAM-apache" "Apache stopped"RC=0;;
status)ps -ax |grep -v "grep"|grep "/usr/sbin/httpd">/dev/nullif [ $? == 0 ]thenRC=${OPSTATE_ONLINE}elseRC=${OPSTATE_OFFLINE}fi;;
esacexit $RC
����� � � ���� ��� �� �� ��� � ��� ����.
RSCT �� ��� mkrsrc ��� �����. �� �� ��� �� ���
� ��� � ���, mkrsrc �� � ���� �� � � � ����.
�� ��� apache1.def�� �� �� � � ��� �� ��� ���
��.
����
22 ��� � ��� ���
PersistentResourceAttributes::Name="apache1"StartCommand="/cluster/scripts/apache start"StopCommand="/cluster/scripts/apache stop"MonitorCommand="/cluster/scripts/apache status"MonitorCommandPeriod=5MonitorCommandTimeout=5NodeNameList={"node01","node02","node03"}StartCommandTimeout=10StopCommandTimeout=10UserName="root"ResourceType=1
�� �� � � ���� mkrsrc ��� �� ��� �� � ����.
mkrsrc -f apache.def IBM.Application
IP �� �� apache1IP ��
� ��� IP �� apache1IP� ����� �� IP ���, � ���� �� ��
�� ���� �� �� IP ��� ���� ��� System Automation for
Multiplatforms ��� �� ���� �����. ��� apache1IP� ��� System
Automation for Multiplatforms� �� ����, � ��� ���� �� ��
���� ���� ��� �� �����. � ��� � ��� ���, �� �
� �� ��� ���� � ��� ������. ��� � ���� � ��
� �� ���� ���.
� ���� apache1IP� �� ��� ��� ����.
v IP 9.152.172.11
v ����� 255.255.255.0
v IP ��� ����� ��� ��� �� � ����.
� ����� mkrsrc �� �� ���� ���� apache1IP ��� ���
��.
mkrsrc IBM.ServiceIP \NodeNameList="{’node01’,’node02’,’node03’}" \Name="apache1IP" \NetMask=255.255.255.0 \IPAddress=9.152.172.11
�� � ���� ��� �� �� ���� �� ����. ��� apache1IP
�� �� �� �� ��� � ��� ����. ��� �� � ��
��� �� ���. �� � ResourceType �� ��� ���� “�”��
�����.
�� �� �� � ��� ��(�� ��, Linux �� �� ���� ��
����) ��/���� ����.
����
� 2 � ���� 23
3��: ����� ��� policy ��
��� Policy� ���� �� �� ��� � �� �� ��� ����.
v �� ��� ��� ��� � �� System Automation for Multiplatforms
� �� ����� �����. �� System Automation for Multiplatforms��
��� �� �� ��(OpState)� �� ��� �� ��� ��(DesiredState)
�� �� ��(NominalState)� ��� �� � ���. System Automation for
Multiplatforms� �� ��� �� ��� ���� �� ���� �� �� �
��� ��, System Automation for Multiplatforms� � ��� ������ �
��� ���� �� � ��� �� �� ���� ��� Policy� �� �
�� �� ��� ���.
��� ��� Policy� ���� �� ��, System Automation for Multiplatforms
� � ��� ���� � ��� �� ���� � �� �� �� System
Automation for Multiplatforms� ��� ������.
�� ����� ���� �� �� ��� ����(IBM Tivoli System
Automation for Multiplatforms ��� � samctrl � �).
�� ��� System Automation for Multiplatforms� ��� ����� ���
��, ���� �� �� ���� ���� � � ����.
# samctrl -M T
��� �� ��� System Automation for Multiplatforms� ���� ����
�� �� ���� � ��� �� �� �� ��� ���.
# samctrl -M F
�� ��� IBM Tivoli System Automation for Multiplatforms ��� �
samctrl � lssamctrl �� �����.
v System Automation for Multiplatforms� �� ���� ��(�����)
�� System Automation for Multiplatforms �(chrg, rgreq �� rgmbrreq)
� ����� ���� �� � �� � ����. � �� ���� ����
System Automation for Multiplatforms� ��� �� ��� ���� ��
� �����. ��� '��' �� ���� �� �� ���� ���� System
Automation for Multiplatforms� ��� Policy�� �� � ��� '��' ��
� ��� ���� ���� �� � ��� �� �� �� �� �� ����
� � ��� ��� ��� �� �����.
v System Automation for Multiplatforms ����� �� �� ��� ��� �
��� ����� ����. � � ��� ���� �� ��� ���
�(AIX/Solaris/Linux: halt � reboot, Windows: shutdown, reboot, hibernate,
freeze).
����
24 ��� � ��� ���
��� �� ���� �� ��� �� ��� ���� ���. �� � �
�� ���� �� ��� ���� � ��� � �� ���� �� System
Automation for Multiplatforms� ������. �� ��� � ��� ��
��� �� �� ���� �� �� �� � ����. �� ��� �
�� '� ��'� ��/�� ��� �� �� �� �� �����(167
���� � 9 � ��� �� – �� ��� �). �� � �� �� ���
�����.
# samctrl -u a <node-name>
�� �� ���� ��� � ����. �� ����� �� ���� �
�� ��� �� ���� � �� ���� ���.
# samctrl -u d <node-name>
v System Automation for Multiplatforms� � �� ������ ��� ��
�� �� �� �� ���� �� ��� �� ���� �� ��� �� �
� ��� ���� ����. �� �� �� �� ���� �� � ��
��.
# lssamctrl
v 2-�(�� �� �� �)� ���� System Automation for Multiplatforms
������ �� ���� ��� ���. �� ���� ��, �� �
� ����� �� ��� �� ��� ��� � �� ����. �� �
�� � � �� ���� 167 ���� � 9 � ��� �� – �� ����
�����.
�� ��� apache1 � apache1IP ��� ���� ���� � ��� ����
� ���� System Automation for Multiplatforms �� ���� �� �� �
� ����(32 ���� ��� ��� ��� �). apache1 � apache1IP ���
���� � 20 ���� �2� : RSCT �� ���� �����.
"apache1" � "apache1IP" ��� �� ���� �� � ��� �� ���
���� ���. � ��� ���, System Automation for Multiplatforms� �
� �� � � ��� ��� ���� �����.
��� ��, ��� �� ���� �� �� �� �� ��� ���� �����
�� �����. �� �, ���� "apache1" � "apache1IP" �� � �
��� �� ����� ���� ���. �� �� �� ��� ��� �� �
� �� ��� ���� ���(61 ���� ��� � � ��� �).
�, ���� �� ��� ������ �� ����� ���� �� �� �� �
�� ����� ��� ����� ���.
����
� 2 � ���� 25
�� ��
�� �� Policy� ���� �� ���� �� �� �� �����. � �
� �� ��� � IBM Tivoli System Automation for Multiplatforms ��
� �����.
mkequ
��� ��� �����.
chequ �� ���� ����.
lsequ ��� � � ��� � ���.
rmequ
�� ��� �� ���� �����.
mkrg �� ��� �����.
chrg �� ��� �� �� �� ����(�� �� �� � �� ��).
lsrg �� �� �� �� �� ���� �� �� �� � ���.
rmrg �� ��� �����.
mkrel �� � �� � � �����.
chrel �� � �� ��� �� � � ����.
lsrel �� � � � ���.
rmrel �� � �� � � �����.
samctrl
System Automation for Multiplatforms �� ���� ����.
lssamctrl
System Automation for Multiplatforms ��� � ���.
addrgmbr
�� ��� �� ��� ��� �����.
chrgmbr
�� ���� �� ��� �� �� �� ����.
rmrgmbr
�� ���� �� ��� ��� �����.
lsrgreq
�� �� �� �� ��� �� � �� �� � ���.
rgmbrreq
�� ��� �� �� ����� ���� �� �����.
rgreq �� ��� ��, �� �� ����� ���� �� �����.
����
26 ��� � ��� ���
lssam �� �� �� � � ���� �� ��� � ���.
sampolicy
�� � � �� Policy� ��� � � �����, �� � �� ��
Policy� ����, �� Policy� �������. �� �� Policy� XML
�� � � �����.
���� ���� �� ��� �� ��
����� �� �� ���� ��� ���� ��, �� �� apache1IP ��
� ���� ������ ���� ����. ��� ��� apache1IP ��� �
��� � ��� � �� ���� ���� �����. ��� � ���� �
���� ��� �� �� � �� � � �� ��� �� � ��� �� �
���. � ��� ����� � ��� �� � ��� ���, � �� �
�� � � � � �� � ���� ���� ���.
��� � ���� �� ��� � ������ . ���� ����
IBM.NetworkInterface�� �� ���� ����. RSCT� �� �� � �
�� �� �� �� ��� ���� ���� �� ��� ����, ���� �
� �� ���� ���� �� �� ��� ���� �� ����.
�� �(Linux �) netequ�� �� � ���� ����, ���� � �
��� �� ���� ���� ���� ����.
mkequ netequ IBM.NetworkInterface:eth0:node01,eth0:node02,eth0:node03
� ���(�: �� ��� �� ���)�� ���� ��� ��� �� �
� �����. � ��� � � �� ���� �� ��� �� ��� ��
� ��� ����. �� ���� ���� ���� ���� ������ ��
���� ���� � ���� ������ ��� ���� �� �� ���� �
��� �� ��� ��� ��� ����� ����.
���� ������ � IP ��� ����� ���� ������ ���� �
� ���� ���� �����. ���� ������ ��� �� ����� �
� System Automation� �� ���� ���� ��� �� ����� ��� �
�� ���� ����� ����.
� ����� ���� �� �� �(Linux �)� ���� � � �� ��
� �� � ����.
mkequ -D ’Name like "eth0" ’ netequ IBM.NetworkInterface
� ��� ������ �� ��� ‘eth0’ ���� ������ � �����.
� �� �� System Automation� ��� �� �� ���� ���
�����. System Automation� ���� ������ � ���� �����
� ���� ��, � ���� � ���� �����(IP ��� ����� �
����
� 2 � ���� 27
��)� ���� ���� ��� � �� ��� ‘eth0’ ��� ��� �� � �
���. ��� � � �� �� � ���� ��� ��� � ����.
apache1 � apache1IP� �� �� �� ��
�� �� mkrg �� ���� �����. �� � "apacherg"�� ��
�� ��� �����.
mkrg apacherg
"apache1" � "apache1IP" �� � "apacherg" �� ��� �����. � �
� addrgmbr �� �� �����. �� ��� ��� ��� � ���
�� ���� ���.
addrgmbr -g apacherg IBM.Application:apache1addrgmbr -g apacherg IBM.ServiceIP:apache1IP
� �� �� � �� ��
apache1 � apache1IP ��� ����� �� �� � �� ����.
v �� � ����� � ��� ���� �� �� ���� ���. ��
Collocated � �� ���(82 ���� �Collocated � � �).
v IP �� apache1IP� �� ���� � ��� � �� apache1� ���� �
�� ����. �, apache1IP� apache1� ���� �� �� ����� �
��.
System Automation for Multiplatforms� �� �� � ���� DependsOn
��� � � � �����(72 ���� �DependsOn � � �). �� � �
mkrel �� �� �����. �� � IP �� apache1IP�� apache1 ���
���� ���� apache1_dependson_ip1��� �� �� � � �����.
mkrel -p DependsOn -S IBM.Application:apache1 -G IBM.ServiceIP:apache1IP apache1_dependson_ip1
����� �� � � ����. 20 ���� �2� : RSCT �� �����
apache1IP ��� ���� ���� � ���� ���� ���� ���� ���
� �� �����. apache1IP_dependson_netequ�� ��� �� �
� ��� ���, apache1IP� ��� neteque� ��� �����.
mkrel -p DependsOn -S IBM.ServiceIP:apache1IP -G IBM.Equivalency:netequ apache1IP_dependson_netequ
� �� �� �� ����� ����
�� �� ��� ��� � ���� �� ��� ��� ��� ������
����. �� chrg ��� �� ��� �� � � ����. apacherg
�� ��� ����� ���� �� �� ������.
chrg -o online apacherg
����
28 ��� � ��� ���
����� �� �� � �� � System Automation for Multiplatforms �
� ���� �� ��� �� � ����.
v �� ��� ��� ��� ��, ��, �, � � ������. ��� ��
37 ���� � 4 � ��� �� ���� �����.
v �� �� ��� ��� ��� ��� ��, ��, �, � � ������. �
�� �� 31 ���� � 3 � ��� ���� �����.
v ��� ��� �� ����� ��, ��, �, � � ������. ��� �
� 55 ���� � 5 � ���� ���� �����.
v �� � ��� �� ����� ��, ��, �, � � ������. ���
�� 61 ���� � 6 � ��� � ���� �����.
System Automation for Multiplatforms �� �� �� IBM Tivoli System
Automation for Multiplatforms ��� ������.
����
� 2 � ���� 29
30 ��� � ��� ���
� 3 � �� ��
� � �� � �� ���� ���, ��� ��� �� ����.
v ���� ���
v 32 ���� ��� ��� ���
v 33 ���� ���� �� ���
�� ��� ���� System Automation for Multiplatforms � �� �� �
�����.
� 1. �� ��� ���� System Automation for Multiplatforms �
�� �� ��
addrgmbr �� ��� �� ��� ��� �����. ��� ��
IBM Tivoli
System
Automation for
Multiplatforms �
��� � �
�� ��
���.
chrgmbr �� ���� �� ��� �� �� �� ����.
lsrg ��� �� �� �� �� � ��� ��� � ���.
rmrgmbr �� ���� �� ��� ��� �����.
��� ��
�� RMC� �� ��� �� ������ ���, 3 ���� �����
��� ����.
7 ���� �System Automation for Multiplatforms� �� ���� RSCT���
�� � ��, System Automation for Multiplatforms��� RMC� ��� ��
��� �����. ��� ��� RMC ������ ���.
��(���, ����, ���, ��� �) �� ���(RM�� ���)� �� �
����.
�� ���� ��
�� ���� � � � �� �����. �� ��, ��� �� � �� �
� �� ��� ��� �� ���� � �� �� �� ��� �� ��
� ���. �� ���� �� ���� ����� �� � �� �� ��(��
�, �� � �� � � ��� ��� ��� ��) � � ��(�:
© Copyright IBM Corp. 2006, 2008 31
����� ��� ��)� �����. �� ���� ��� �� �� ����� �
��� �� �� ��� �����(�: � � �� �� ″/var″�� ��
����� �� � ���).
�� ��� ��
�� �� ��� � ��� ����. ��� ��� ��� ���� ��,
� �� ��� �, �� ���� ��, �� � � � ��� ���
��.
�� ���� �� �� � � ��� �� � � ����.
�� ��
�� � ��� ��� ��(��� �, �� ���� �� � �� � )
�� ��� ����, ��� �� ��� ����. ��� �� ���
� �� ���� ��� �� � ��� � �� ��� ���� �� ��
� ����.
� ��
� �� ��� � ��� ����. �� �, ��� ��� � �� �
� ��� �� �� �� ���� �, ���� �� ��, �� ��� ��� �
� � ��� �����.
�� ��� ��
�� System Automation for Multiplatforms �� ���� ���� �� System
Automation for Multiplatforms �� ��(�� �� ������ �)� ���. �
�� System Automation for Multiplatforms�� addrgmbr �� ���� �
����(IBM Tivoli System Automation for Multiplatforms �� �). � ��
�� System Automation for Multiplatforms � � ����� ���� ��� �
� � ����.
�� �� System Automation for Multiplatforms �� ���
IBM.ManagedResource� �����.
��� �� �
System Automation for Multiplatforms��� ��� �� �� �� �� � �
�� �� ������.
��� �� � ��� �� ��� NominalState �� �� ����. �� ��,
�� ��� NominalState ��� ″Online″�� �� � �� ��� ��� �
�� ��
32 ��� � ��� ���
���, �� ��� NominalState ��� ″Offline″�� �� � �� ���
��� ����� . 52 ���� ��� �� �� � ��� � 43 ����
�NominalState ���� �����.
��� ��� ��
��� ���� �� �� ����.
NodeNameList
��� ��� ���� �� �����. NodeNameList� RSCT
��� �� �����.
SelectFromPolicy
��� �� ��� �� ��� �����. SelectFromPolicy� �
� ��� �� �����.
ResourceType
��� ��� �� ��� ��� � ��� ���� �
����. ResourceType RSCT ��� �� �����.
OpState �� �� �� ��� �� �� ��� �����. OpState� RSCT
��� � �����.
NodeNameList ��
NodeNameList �� �� ��� ��� � �� � ��� �����.
System Automation for Multiplatforms� �� �� � �� ���
NodeNameList� �� ��� ��� �� �����. ���� � � �� �
� ��� �� � � ���� ��� � �� � ��� � �� �� ��
���. � �� ��� � SelectFromPolicy ���� �� � ����. �
��� � �� ��� � ��(�� �� � � �� ��)
Anticollocated ��� � �� ��� �����.
� � �� �� ��� �� ��, � �� ��� ��� � �
� �����. �� ��� ���� 1�� �� ���� � ���.
SelectFromPolicy ��
��� �� � ��, NodeNameList �� �� ��� �� ��� ��
��� �����. � �� ���� �� �� �� �� ��� ���� ��
���� ���� ���� ������. SelectFromPolicy �� ����� ��
�� �� �����. � �� ���� �� � � �� ����
System Automation for Multiplatforms� ���� �����. �� ������
(�, System Automation for Multiplatforms� �� ��� �� ��� �� �
�� ��
� 3 � �� �� 33
� � ��� ���� ����� � �) ���(System Automation for
Multiplatforms� �� ���� � ��� � �) �� � ����.
ResourceType ��
ResourceType �� �� ���� �� ����� �� �� �� �����.
ResourceType �� �� ��� ��� ���� ��� �����.
v �� ��(NodeNameList ��� � � ��� ���).
�� ��
�� �� ���� �� ����� ��� �� �����. � �� �
���, � ��� � ��� �����. ����, ��� ��� �� �
��� ���� � � ��� �����.
����� �� � �� 2� �� ���� ������ ����� ��,
� �� 1�� �� ��� ���� � ��(�: �, ��/��/����
�)� ���� ���, � �� ��� � � �� ��� ���.
v �� �(NodeNameList ��� � �� �� ��� ���). �� �� �
� ����� ����� ��� ����� �� ��� ��� � ����. �
� ��, � ���� � ���� ��� � �� IP ��� � ����
�. �, �� ��� �� ���� IP ��� �� � ��� � �� 1��
����� IP ��� �����.
�� ��
� �� ����� �� ��� ��� � �� �����. � �
� �� ��� RMC� �����. �� �� 1�� �� ��� �
�� � �� �� �� 1�� ����.
�� ��� ResourceType �� � 1���. ��� ��� � �� �
��� �� ��� NodeNameList ��� �����. � ��� ��
��� ��� ��
34 ��� � ��� ���
�� �� ���� � ��� ��� �� �����.
� ��� ���� �� � �� ��� �����. � �� � �
���� �� ���� ��� �� � �� �� ��� �����.
�� �� �� �� �� ��� ����. �� ��� ResourceType
0(�� ��)��, NodeNameList� �� ��� �����. �� � �
� �� �� �� � � �� ����.
� ��� ��� ��� �� �� � �� �� ��.
– �� ��� NodeNameList � � �� ��� ����� ����
�.
– �� ��� ��� �� �� �� �� �� ��� ��� ��
��.
– �� ��� ��� �� �� ���� ��� �� �� �� �
� �� �� ���� ��� �� ����.
� �� �� ��� ��� � �� ����� �� ��� ip �
�� �� ��� ��� ��� �����.
�: � �� �� ��� �� ���� ��� ���� ����.
OpState ��
RMC� OpState � ��� ���� ��� �� �� ��� �����. ���
�� ��� ���� �� �����.
OpState ��� �� � �� � �� ����.
���� ��� ���� ����.
��� ���
��� ��� �� �� �� ��� �� �����.
��� ��� �� ��� ��� ���.
���� ���
��� �� �� ����.
� �� �� ��� ���� �����.
���� �� ��� ��� �� ��� � ����. ���� ��� � �
�� ���� ���.
��� �� ��� �� �� ��, �� �� �� �� �� ��� ����
�� ������ � � ����. ��, ��� ��� ����� �
��� �� �� � ��� ������ �� ��� ����
����.
��� ��� ��
� 3 � �� �� 35
� � �� System Automation for Multiplatforms� ��� ���� RMC�
� �� � �� �� ��� ��� � ����.
�: ��� ��� ���� ��� �� ���� � ����. � ��� ��
�� RMC � resetrsrc� ������. ��� �� � �� �� man
page �� RSCT ��� �����(xv ���� ��� ��� �).
��� �� ���� � � ��� �� ��� � � ����� � ��
���� ��� �����. �� �� �� �� �� ���� ���� System
Automation for Multiplatforms� � ��� �� � ����.
NominalState� �� ��� ���� �� ���
NominalState �� �� ��� ���� �� � ����. �� ���
NominalState �(Online �� Offline) � ���� � ����� �����
� ������ ������� �����. �� ��� NominalState ��� ��
� �� ��� �� ��� ������ �� �����.
��� ��� ��
36 ��� � ��� ���
� 4 � �� �� ��
� ���� ��� � ��� �� ��� ���� �� �� ����.
v ��� ��� ���
v 40 ���� ��� ��� �� ���
v 50 ���� ��� �� ���
v 52 ���� ��� ��� �� ��
v 53 ���� ��� �� ���
v 51 ���� ��� �� � � ��� � �
v 50 ���� ��� ��� ��� �� ���
v 53 ���� ��� ���� ��� �� ���
v 53 ���� ��� �� ���� �� ��
�� �:
v 97 ���� ��� ��� ����� ��� ���
� 2� �� ���� ���� System Automation for Multiplatforms �� ��
��. ��� �� IBM Tivoli System Automation for Multiplatforms ���
� � �� �����.
� 2. �� ���� ���� System Automation for Multiplatforms �
�� ��
mkrg �� �� ��
rmrg �� �� ��
chrg �� ��� �� �� �(�� �� �� � �� ��)
lsrg �� ��� �� �� �
addrgmbr �� ��� ��� �� ��
rmrgmbr �� ���� ��� �� ��
chrgmbr �� ��� ��� �� �� �
rgreq �� �� ��, ��, �� �� ��
rgmbrreq �� ��� ��, �� �� ����� �
lsrgreq �� �� �� �� ��� �� � �� � �
�� ��� ��
�� �� System Automation for Multiplatforms�� �� �� �����. �
� �� ��� �� ����� ��� � �� �� ���� �� �� ���
���.
© Copyright IBM Corp. 2006, 2008 37
v �� ��� ���� � ���� � � �� � ����. �� ��, �
� ��� NominalState� ����� �� �� ���� ���� ����
� �����. NominalState� ������ �� �� ���� ���� �
����� �����.
v � OpState� ����� �� �� �� ���� OpState� �����.
�� ��� ����� ��� � �� ����.
v �� ��
v �� �
v �� �� ��(��� ���� ��� � ��� � )
�� �� ��� �� RG_Fix �� �� �� ��� ���� �� ��� �
�� � � ����. �1��� �� � �� FixWebServer� �2� ���
������ �� FixDB2� ��� ����.
FixWebServer � FixDB2 ��� � � ���� RG_Fix� NominalState� �
���� �����. �� � ��� System Automation for Multiplatforms� �
���� �� � �� ���� �� �� �� ���� �� � ��� ��
���.
� �� �� ���� ��� �� ����. � �� apache1 �1, �2
�� �3 � �� ���� �� � ����. RG_WebApp �� �� � �
�� � � � �� ���� ��� � ��� � ��� �� �����.
�� ��
38 ��� � ��� ���
� ��� �� � �� � � �� ���� �� � ��� �����.
�� ��� �� �� ��� �� �� ��� ����� ����� �� ��
���. �� ��� ��� �� A�, �� ��� �� ��� RG_WebApp� �
��� �� �� RG_A� � �����. ��(nest) �� �� �� ��� �
�� �� ��� �����. �� 50���.
�� �� ��� � ��� ��/�� � � �� �� � � � �� ��
��� �� ��� � � �� �� �� ���� ��� � ��� ����. �
� �� �� ��� �� �� �� �� � � � �� � �� ����.
�� �� System Automation for Multiplatforms �� ��� IBM.ResourceGroup
� �����.
�� �� ��� �
�� �� �� ��� �� ����.
1. �� �� ���� �� � ��, � ���� �� ��� �� � ���
�.
2. �� � ���� �� � ����.
3. ��� ���� ����� �� � ����.
4. �� ��� �� 50�� �����.
5. �� �� � � �� �� �� 100�� �����.
�� ��
� 4 � �� �� �� 39
�� ��� ��� ��
�� �� ���� �� ��� � �� �� � �� RSCT ��� ���
��.
AllowedNode �� �� ���� ��� � �� �� �����.
MemberLocation
�� ��� �� ���� ����� ��� ��� �����.
Collocated� �� ���� � ��� ����� ��� � �
��. None ���� �� ���� �� ���� �� ��� �
��� ��� � ��� � ���.
Name �� ��� �� �� �����.
NominalState �� ��� �� � ��� � . Sys tem Automat ion for
Multiplatforms� �� ��� ���� � ��� ����� ���.
Priority �� ���� �� ��� ��� �����.
ExcludedList ��� � ���� ��� ���� �� ��� �����.
ActivePeerDomain
��� ���� �� ���� ����. �� ���� � �
����.
Description �� ��� �� � ���� �� � ����.
InfoLink ���� ��� �� �� ��� �� � �� HTML ����
URL� ���� � ��� � ����.
Owner � �� �� ��� ���� �� ��(�: ���� � � �
� ��)� �����.
Subscription -�- ���� �� ��� �� � ����.
�: � �� � �� �� � ��� ���� �� ��� ����� ��
�� ��� � ����. NominalState �� � ��� ��� Description,
InfoLink � Owner� ����, �� ��� ��� ��� ��� � ���
�.
�� �� �� � � ��� �����.
OpState �� �� ���� �� �� �� ��� �����.
TopGroup �� ��� �� �� �� �� �����.
AutomationDetails
�� ��� System Automation for Multiplatforms �� ��� �
����.
�� ��
40 ��� � ��� ���
MoveStatus rgreq �� �� �� �� ��� �� ��� �����.
ConfigValidity
Policy� ��� �� ��� �� ��.
AllowedNode ��
AllowedNode ��� ���� �� �� ���� ��� ���� ����� �
��� �����.
�� ��� ��� � � ����.
�� ������. �� ��� �� ��� ��� � ���. ����
� �� ��� ��� � ����.
� �� �� �� �� ���� ��� �� �� �����. �� ��
��� ������ ���� �� AllowedNode� � � ��
����.
��� ��� �� �� ���� ��� ���� � ��� �����. � �
��� �����. 55 ���� � 5 � ���� ���� ����
�.
AllowedNode ����� �� �� �
�� ���� � ���� �� �� ���� ��� ���� �� � � �
���. �� ��, � ��� �� � ��� System Automation for
Multiplatforms �� ��� NodeNameList� ���� ���. � ���
NodeNameList� � ��� ���� �� ���(�: GblResRM)� �����. �
� �� NodeNameList� � ��� ���� ���� ��� � �� ��
�����. ��� AllowedNode �� � ��� �� � �� �� ����
���� �� �� ���� ����. ��� AllowedNode �� �� �� �
��� ��� � �� �� ����� �����. � �� �� � � �� �
� ���� ����.
v �� ��. �� ��� ��� � ��� ���� NodeNameList� AllowedNode
���� ���� ���.
v �� ��. NodeNameList � AllowedNode ���� ��� � ���
System Automation for Multiplatforms� �� �� � ���� � ��� �
����.
v �� ��. �� � �� ��� AllowedNode ���� ��� �� ��� �
��� ��� � ��� �����. � �� �� �� ��� ����
��� ���� �� �����.
�� ��� � ����� � AllowedNode ���� ��� �� ����.
FixA ���� ���� �� �� �� RG_A� ��� NodeNameList = {�
�� ��
� 4 � �� �� �� 41
1}� ����, � ��� FloatB� ��� NodeNameList = {�1, �2, �
3}� ����, �� �� RG_B� ��� AllowedNode = {�2, �3, �
4}� �����. RG_A� AllowedNode �� {�1, �2, �4}� ����
�. RG_B� {�1, �2, �3, �4}� NodeNameList� FloatC� ����,
{�3, �4}� NodeNameList� FloatD� �����.
� ����� �� �� ����.
v FixA� System Automation for Multiplatforms� �1��� �� � ���
�.
v FloatB� System Automation for Multiplatforms� �1 � �2��� ��
� ����.
v RG_B� ��� �2 � �4�� ��� �����.
v FloatC� System Automation for Multiplatforms� �2 � �4��� ��
� ����.
v FloatD� System Automation for Multiplatforms� �4��� �� � ��
��.
�� ��� AllowedNode �� �� AllowedNode ���� ��� � �
� ��� AllowedNode ��� ����� �� � �� ��� � ����
� �� ��� �� ����.
MemberLocation ��
MemberLocation �� ��� ���� �� ��� �� �� �� ��� ���
��. ��� �� ����.
�� ��
42 ��� � ��� ���
Collocated(��)
Collocated� �� ���� � ��� ����� ��� � �
��. Collocated� ���� ��, ��� ��� ���� �� �
� ���� �� �� ��� �� �� Affinity, AntiAffinity �
AntiCollocated �� � � � � ����. � � �� ���
� 61 ���� � 6 � ��� � ���� �����.
None None �� ��� � ���� ��� ��� ��� ���
� �� �� � ���.
MemberLocation �� �� ��� ��� ��� � ����.
�� ��� ���� ��, �� �� ��� MemberLocation �� � �� ��
��� ���� ���. ��� �� ��� MemberLocation ��� collocated� �
�, � �� �� �� ��� ����� �����.
Name ��
�� ��� � ������ � �� ���.
NominalState ��
NominalState �� ��� ���� �� ��� �����. �� ���
NominalState� ����� �� � ���� � ���� ����� ���
��.
NominalState �� ��� �� ���� � �� �� � ���� .
NominalState� ����� �� �� �� ���� ���� ������ ���
��. ��� �� � ��� ����.
1. �� ��� ���� ��, �� ��� NominalState� ���� �� ���
���� NominalState� ������ � �� ��� �����. � ��
�� ���� �� � ����.
2. �� ��� ���� ��, �� ��� NominalState� ����� �� ��
� ��� NominalState� ����� ����. �� ��� ��� NominalState
� � �� � �� ��� �� ��� �����. �� ��� OpState�
����, �� �� ��� ���� � ��� ����.
3. �� �� ��� �� �� ���� ����� �� �� � ����. 64
���� ���/�� ��� � �� �����.
�� ��� NominalState� �� ��� �������.
� �� ��� �� � ����.
�� ��
� 4 � �� �� �� 43
�: � �� chrg –o ��� �� � ����. IBM Tivoli System Automation
for Multiplatforms ���� chrg �� �� �� �����. � ���
�� � �� ����.
1 ����
0 ���
Priority ��
Priority �� ��� ���� �� �� ��� � �� � �� ��� �� �
���� ������.
Priority �� ��� �� ���� � �� ���� �� � (61 ����
� 6 � ��� � ��� �)� �� �� ��� �� � � ��� ����
�� �����. �� �� �� �� � ��� �� �� �� ��� �
� �� �� � �� �� �� � ����.
��� � ��� �� ���� ��� ���� �� �� +10� � �� �
� ����. ��� ���� � �� ��� �� ��� �� ��� �� ���
�����. ��� ��� �� ��� �� �� � ��� � �� ���� ��
�. �� ��� �� ����� � �� ��� �� ���� �� � � ��, �
�� ��� ��� ��� �����.
�� ��, ��� ��� �� �� ����� �� AntiCollocated � � ��
�� ��� ����. �� �� ��� ��� � ��� �� � ���
� ���. �� System Automation for Multiplatforms� �� ��� ���� �
� �� ���� ������ �� �� �� ���� AntiCollocated � ��
� ���� �� ��� �� ��� ����.
�� ���� �� �� ��� �� ���� �� ��� ���� �� ��, ��
����� �� �� ��� ���� � � ��� �� ���� �� ���
�����.
�� ��� ���� ��, �� �� ��� ����� �� �� ���� ��
� ��� ���.
���� ��� ��� 0(��)��, �� 200���.
�� ��� �� ����� ���� �� � � ��� �� �� ��� ����
� ��� ���(46 ���� �AutomationDetails ��� �). ��� ���
�� � �� ��� � �� � ��� +10� � �� ��, ���� ��
� ��� ���� -10� �� ���. �� ���� ��� -10�� +210 �� �
� �� � ����. ����� � � �� ��� ��� 93 ���� ��� �
�: �� ����� �����.
�� ��
44 ��� � ��� ���
��: System Automation for Multiplatforms� �� ��� �� ��(49 ����
��� �� ���� �� ��� �)� ���� �� ���� �� ��� �
����. �� �� ��� ��, ��� �� ���� �� �� �� ����
� ����� ��� ���. ��� �� �� ���� ��� ���� ����.
ExcludedList ��
ExcludedList ��� ���� ��� � ���� � �� � ��� ��
� �����. � �� � �� �� �� �� ������ �� �� ��
�� ����. �� rgreq ��� ����� ���.
�� System Automation for Multiplatforms� �� ��� �� �� �� ��
� �� ��� ���� ��� �� � ���. �� samctrl �� ��
EXCLUDE� ���� ��� ��� ����� �� ���� ���� �� �
�� � ����.
ExcludedList ��� ��� � �� ����.
1. �� �� �� ���� �� ��� � ��� �� �� � ���
�.
2. � �� �� ���� �� ��� � �� ���� �� ��
� ����.
ActivePeerDomain
� �� ��� ���� �� RSCT �� ���� �� �����.
Description
� �� �� ��� �� � ���� �� � ����. � �� �����
� ���� ��� ���� ��� �� ����.
InfoLink
� �� ���� ��� �� �� ��� �� � �� HTML ���� URL�
���� � ��� � ����. � �� ������ ���� ��� ����
��� �� ����.
Owner
� �� �� ��� ���� �� ��(�: ���� � � �� ��)� ���
��. � �� ������ ���� ��� ���� ��� �� ����.
Subscription
� ���� -�- ���� �� �� ��� ���� ����.
�� ��
� 4 � �� �� �� 45
OpState ��
System Automation for Multiplatforms� OpState � ��� ���� �� ��
���� �� �� �� ��� �����. �� �� ��� ��� �� �� ��
���� �����. �� OpState ��� �� � �� ��� ����.
�� ��
� � �� 0
��� 1 �� ��� ��� � ����� �����. ��� �� �
�� �� �����.
���� 2 ��� ��� � ������ �����.
���� �� 3 �� ��� �� �� ��� ��� ��� ���� ���
�����. � �� �� ��� �� �� ��� �����
� ����.
�� ��� ���� �� � �� ��, �� �� �
��� �� ���� �� ��� �� � ����(93 ���
� ��� � �: �� ���� �). �� � ��, �
�� ���� BindingState� Sacrificed� �����
(�AutomationDetails ��� �).
��� �� 4 ��� ��� ��� ��� �����.
��� ��� 5 �� �� ����� �����(�� ��� NominalState �
� ����� ��). �� �� ��� � ��� ���
� ���.
���� ��� 6 ���� �� ����� �����.
TopGroup ��
� �� �� ��� �� �� ��� �����.
System Automation for Multiplatforms�� �� �� � �� ��� ����
� � ���, � �� �� ��� ��� � ����. TopGroup �� �� ��
� �� �� ��� �� �����. ��� �� IBM Tivoli System Automation
for Multiplatforms ��� � lsrg �� ���� ��� �� � ���
�.
�: lsrg –g �� ���� �� ��� � � � � ��� NominalState� �
�� ��� TopGroup �� �� ��� �����. �� �� ���
�.
TopGroup = apachergTopGroupNominalState = Offline
AutomationDetails ��
� �� ��� �� ��� �� ��� �����. ��� ��� �� ��
��.
�� ��
46 ��� � ��� ���
� ��(CompoundState)
�� ���� ��� ��� �� �� ��. ″��″ �� – ��/
��� � ��� ��� ������.
��� ��(DesiredState)
�� ��� ��� � ��. ″���″ �� – ���� �� ��
� ���� ��� �����.
�� ��(ObservedState)
��� ���� �� ��� �� ��. ″���″ �� – �� ��
� �� ������.
��� ��(BindingState)
�� ��� �� ��� �� ��� ���� ��. ″�
�″ �� – �� ��� �� �� ��� ��� ����.
��� ��(AutomationState)
�� ��� �� ����� ���� ���� ��. ″��″ �� –
System Automation for Multiplatforms� �� �� ��� �� �
� ����� �� ����.
�� ��(ControlState)
�� ��� ���� ��� � ���� ���� ��. ″��
��″ �� - �� � ��� ���� �� �����.
�� ��(HealthState)
��� ���� ��� �� ���� ��� �����.
�� �� ��� ����� ���� �� –A d � –V �� �� lsrg ��
�����. �� ��, �� ″apacherg″� �� ��� ��� ����� ����
�� �� �� ������.
lsrg –A d –V –g apacherg
MoveStatus ��
� � �� rgreq �� �� �� �� ��� �� ��� �����.
�� ��� ���� �� -A d � -V �� �� lsrg �� �����.
��:
″apacherg″ �� ��� �� ��� ���� �� �� �� ������.
lsrg –A d -V –g apacherg
� 3. MoveStatus �
MoveStatus ��
���� �� ��� �� ��
�� ��
� 4 � �� �� �� 47
� 3. MoveStatus � ( �)
MoveStatus ��
���� �� ��� ���� ��
�� �� �� ��
�� �� ��� ���
�� ���� � 1: ��� �� ��
�� ��� ���(�� ���)
�� ��� � : ��� �� ���
�� �� ��, ��� ��� ��� �� ��
�� �� �� �
ConfigValidity
Policy� �� � � Policy� ���� �� �� �� ��� �� � ���
�. � �� ��� ��� ����.
�� ��, �� �� �� ��� ���� �� � � �� �� �� ���
�� ���� ��, ��� �� �� � ����. ��� ��� ConfigValidity
��� �����.
�� ��
48 ��� � ��� ���
�� �� ���� ��� ��
� �� �� ��� ��� ���� �� ��� ���� ���.
Mandatory � �� �� ���� �� ����, ��� ���� ��� ���
��. �� ��� ���� ��� �� � ����.
MemberOf ��� ����� ���� �� �� ��� �.
SelectFromPolicy
�� � ��� ��� System Automation for Multiplatforms
� ��� � �����.
ConfigValidity
� �� �� ��� �����.
Mandatory ��
Mandatory �� ��� ���� �� ��� ���� ��� ���� ����
�.
�� ��� ��� � � �� ��� ��� �� �� ��� ���� ���.
��� ��(�� ��� False� ��� ��) �� �� ��� �� � ���
� �� � ����. ��� �� ��� ���� �� �� �� ��� � �
�� �� � �����, �� ��� ��� �� ���� ���� �� �� ��
� ��� ����� �� ���.
�� ��� ���� �� � �� �� ���� False� ��� �� ��
���� �����.
�� �� �� ��� False� ��� �� �� ��� ����� �� ����
�.
MemberOf ��
��� �� �� ��� ���� ��� �����. MemberOf �� �� (�
� �� �� ��) ��� �� ��� ��� � ���� �����. MemberOf
�� (���� �� ��� �� �� ���� �� ���� ��� �� �
�� ��) �� ��� ��� �� ����� � �� � �� �� ��� ��
�� �� �����. �� � � �� ��� ��� � ����.
�� ��
� 4 � �� �� �� 49
�� �� �� � ��
�� �� ��
�� ��� ���� �� mkrg �� �����. �� ���� System
Automation for Multiplatforms� �� �� ��� �����.
v �� ��� ��� ���� ��
v �� �� ��� ��� � �� ��� ��� ��(44 ���� �Priority
���� � ���� �� ��)
v �� ��� ��� �� � �� � (80 ���� ��� � � �)
�� �� �� �� ���� NominalState� �������. ��� ���
� ���� �� �� � � ��� ���� �� � ����.
�� ��, �� � � “��”�� ���� � �� “node03”� apacherg2�
� �� �� ��� �� ����� �� ��� ������.
mkrg -l None -n node03 apacherg2
��� �� mkrg man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� ��� �� � ��� ����� �� �� � ��� �� � ����.
v �� ��� �� ���� mkrg �
v � �� �� ��� �� chrg �
�� �� ��� �� � ��� ���� �� �� � ��� �� �
����.
v mkrg/chrg � �� � � �� ������.
v �� ��� ���� � �� � ��� ����� ������. � �� �
��� ���� �� ���� ���. � ��� mkrg/chrg �� ���
�� ���� �� ��� �����. ���� �� ��� � 55 ����
� 5 � ���� ���� �����.
�� ��� ��� �� ��
�� ��� � ��� ��� �� ��� ����� �� addrgmbr �� ��
���.
�:
1. ��� ��� ��� ��� � ��� �� ��� ��� � ����.
2. ��� ��� ��� ��� �� �� � ���� �� � ����.
�� ��
50 ��� � ��� ���
�� ��, �� ��� IBM.Application� ��� ��� �� apache1� �� ��
apacherg2� ����� �� ��� ������.
addrgmbr -g apacherg2 IBM.Application:apache1
��� �� addrgmbr man page� ���� IBM Tivoli System Automation
for Multiplatforms ���� � �� �� �����.
�� �� � �� ��� �
�� �� ���� �� �� � � ���� � ����.
lssam �� �� � � ���� �� ��� � ���. �� �� ��� �
�� lssam man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����. Windows��
lssam �� > �� ���� > Tivoli SA MP �� > ��� �� ��
� - lssam �� �� � ����.
lsrg �� �� �� �� ��� ���� � ���. � ���� � �� �
� �� �� ���� � �� �� ��� �����.
��� �� lsrg man page� ���� IBM Tivoli System Automation
for Multiplatforms ���� � �� �� �����.
�� �� �� � ���� � ��� �� lsrg �� �� � ����. ��
�� �� �� ��, �� ��� � � ���. �� �� �� -m ���
� ���� ��, ��� �� � � �� ���� � ���.
Attr ���� ���, �� ��� �� ��� � ���.
� �� �� �� ��� ���� ����.
�� 1: lsrg �� ��� � � � ��� �����.
Resource Group Names:apacherg2apacherg3apacherg4
�� 2: �� �� ��� ���� � � �� ��� ������.
lsrg -m
�� �� ��� �����.
Displaying Member Resource information:Class:Resource:Node[ManagedResource] Mandatory MemberOf OpState WinSource LocationIBM.Application:apache1 True apacherg2 Offline Nominal node03
�� 3: apacherg2�� ��� ��� ���� ����. apacherg2� ���� �
�� �� �� �� �����.
�� ��
� 4 � �� �� �� 51
lsrg -m -g apacherg2
�� �� ��� �����.
Member Resource 1:Class:Resource:Node[ManagedResource] = IBM.Application:apache1Mandatory = TrueMemberOf = apacherg2OpState = Offline
�� 4: apacherg2 �� ��� ��� � �� �� �� �� �����.
lsrg -g apacherg2
�� �� ��� �����.
Resource Group 1:Name = apacherg2MemberLocation = NonePriority = 0AllowedNode = node03NominalState = OfflineOpState = Offline
�� �� �� � ��
�� ��� �� �� ����� ��, �� ��� NominalState ��� �� ��
� �� ������ ����. chrg �� ���� ��� ������.
�� ��, apacherg2�� �� ��� ����� �� ��� ������.
chrg -o online apacherg2
��� �� chrg man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� ��� �� �
�� ��� �� ��� �� �� �� �� ���, chrg �� �����
�. �� ��� � -c ��� ���� � ��� � �� ����.
�� 1: apacherg2 ��� �� � � collocated� ��� ��� ������.
chrg -l collocated apacherg2
�� 2: apacherg3 ��� �� apacherg4� ��� ��� ������.
chrg -c apacherg4 apacherg3
��� �� chrg man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� ��
52 ��� � ��� ���
�� �� ���� �� �
�� �� ���� ��� ��� chrgmbr �� ������.
�� � �� �� -m ��� ���� �� ��� �� ���� ���� ��
� ��, -c ��� ���� ��� ��� �� ��� � � ����.
�� ��, �� �� �� apacherg2�� �� �� apacherg3�� �� ���
IBM.Application� ��� �� apache2� ��� �� ��� ���, ��� �
�����.
chrgmbr -c apacherg3 -g apacherg2 IBM.Application:apache2
��� �� chrgmbr man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� ���� ��� �� ��
rmrgmbr �� ���� ��� �����.
v �� �� ��� �� ��� ��
v �� �� ���� �� ��� ���
v � �� �� ��� ��� ��
�� System Automation for Multiplatforms� �� �� �� � �� ���
� ����� ���.
�� ��, �� �� apacherg3�� �� ��� IBM.Application� ��� ���
�� apache2� ���� ��� ������.
rmrgmbr -g apacherg3 IBM.Application:apache2
��� �� rmrgmbr man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� �� ��
�� ��� �� ��� ����� �� rmrg �� �����. Resource_group
���� ����� � �� �� ��� �� �� ��� �����. �
� �� �� �� ��� ��� System Automation for Multiplatforms� �
� �����. �� �� ��� ��� ���� ��, � �� ��� ����
����. �� �� ��� ��� � � �� ���� �� ������.
�� �� �� �� ��� ��(nest)�� �� �� ��� �� ���� ��
�����. �� �� ��� ���� ���� ���� ��, �� ��
�����.
1. rmrgmbr �� ���� �� �� ���� ���� � �� ��� ��
����.
�� ��
� 4 � �� �� �� 53
2. �� �� ��� ������.
�� ��, apacherg2 � apacherg3��� �� ��� ���� ��� ����
��.
rmrg apacherg2 apacherg3
��� �� rmrg man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� ��
54 ��� � ��� ���
� 5 � ��� ��
� ���� ���� �� ���, �� �� ���� ����.
v ����� ���
v 57 ���� ����� �� ���
v 57 ���� ���� ��� ��
v 59 ���� ���� ���
v 60 ���� ���� ��
v 60 ���� ���� ���
v 59 ���� ��� ��� ��� ���
� 4� ���� ���� System Automation for Multiplatforms �� � ��
�. ��� �� IBM Tivoli System Automation for Multiplatforms ���� �
�� �����.
� 4. ���� �� �� System Automation for Multiplatforms �
�� ��
mkequ ��� �� ��
rmequ ��� �� ��
chequ ��� �� �
lsequ ��� �� �
���� ��
��� � ��� ���� �� ������. ��� � �� ���� ��
�� ��� ���� ����.
�� ��, ���� ���� ����� ��� � ����. � ���� ����
����� �, � ���� ���� ���� ������ ��� � �� �
����.
��� �� ��� � ��� ���� �� �����. � ����� �� �
� ����� �� �� ��� ��� � � ����. ��� �� � � �
���� � ���� ��� ��� �����. �� � � ��� �� 61 �
��� � 6 � ��� � ���� �����.
�� � � ���� ����.
1. � �� ��� ���. � � � ��� ���� � ���� ��
�� ��� �� �� ��� �����.
© Copyright IBM Corp. 2006, 2008 55
2. � �� ��� ���. � � � ��� � ��� �� �� ��
��� ���� ��� �����. RMC ��� � � �� ���
� ���� ��, � �� ��� �� �� ���� �����. ��� ��
� ����� ���� � � � ���� �� Policy� ���� ����.
�� � � ��� �� ��� ��� ��� �� �� �� � ����.
Failback
��� ����� �� � ����. � � � ��� �� ��� �
����.
System Automation for Multiplatforms� � ���� ��� � �
���� � �� ���� ���� ��� ����� ���. � ��
�� ����� �, System Automation for Multiplatforms� � ��
�� �� ���� ���� ��� ��� �����. � �� ��
�� �� ���� �, System Automation for Multiplatforms� �� �
� ��� ���� � ���� � �� ���� ���� ��� �
�� �� �����.
�� �� � � ��� � � �� �� ��� �� �� � ���
�� ��� �� � ��� ������. ��� ��� ���� ���
�� �� �� �� ��� ���� �� �� �����.
NoFailure
� � � ��� �� ��� �����.
� ���� ���� �� �� ��� �� �� ��� �� �� �
�� ���� ��� �� ���� �� ��� ��� ����. � ��
� ���� � �� ��� ��� ��� �����. �� ���
StartCommandTimeout� ���� � � ��� ��� ���� �
�� � � ��� �� ���� � ��� ��� ����. ��� �� �
StartCommandTimeout �� �� �� �� ��� �� ���
StartCommandTimeout� �� � � ���� � ����.
��� ��/��� ���
���(shadow) �� � ��� OpState� ������. System
Automation for Multiplatforms� ��� ��� OpState� �� �
��� ����� ���� ����. ��� �� � �� � �
�� �� �� � ��� �� �� � ��� � � ���� � ���
��. ��� � 212 ���� ����(shadow) �� ���� ����
�.
��� System Automation for Multiplatforms �� ��� IBM.Equivalency� �
����.
���
56 ��� � ��� ���
��� ��� �
�� ��� ��� �� ����.
1. �� ��� �� �� �� � �� ��� ��� � ���, � � � �
���.
2. �� ��� � ��� ���� �� � ����.
3. �� � � �� ����� ����� ���.
4. ��� ��� � ���� ���� � � ����.
5. �� �� ���� ���� � � ����.
6. ��� �� ��� ���� � � ����.
7. �� ��� �� � � ����� ��� �� � ����.
8. ��� �� � � ��� � � ����(�� � � ��� � � ��).
9. ���� ��� �� ����� ���. � �� ���� ����.
���� ��� ��
MemberClass ��
System Automation for Multiplatforms� MemberClass �� ��� ���� �
� ��� ��� �� ���� �����.
Membership ��
System Automation for Multiplatforms� Membership �� ��� ���� �
�� �� �� �� �� ��� �����. Membership ��� ���� �� �
� SelectString ��� �����.
SelectString ��
System Automation for Multiplatforms� SelectString �� ��� ���� ��
� �� �� �� ��� ��� �����. � �� �� ��� ���
��� ����� ���� ���� ��, System Automation for Multiplatforms
� � ���� ���� �����. SelectString ��� ���� �� ��
Membership ��� �����.
SelectFromPolicy ��
System Automation for Multiplatforms� SelectFromPolicy �� ��� ���
� ����� � ��� ���� � ���� Policy� �����. ���� �
�� ��� ���� � ��� � ��� �� � ����. ��� Policy� �
� ����.
���
� 5 � ��� �� 57
Any(��) � �� ��� �� �� �� ��� ���, System Automation
for Multiplatforms� � ��� �� � �� ��� ���
�� ��� ��� � ���.
Ordered � �� ��� �� �� �� ��� ���, System Automation
for Multiplatforms� �� � �� ��� ���� �����.
�: � SelectString� ��� �� Ordered Policy� ���� �
���.
SelectFromPolicy �� ���� ���� � � �� �� ����. �
��� ��(Any) �� ���(Ordered) � ���� �� ��� ��� ���
� � ����.
Failback
�� �� �� Ordered Policy� ���� �� � ����. ��� �
��� �� ��, System Automation for Multiplatforms� ��� ���
���� � ���� � �� ���� �� �� ���� � � � �
��� ���� �� ��� ������.
� �� �� ��� �� �� �� ��� ��� �� ������(�
� 210 ���� �rgreq �� ���� �� �� ��� �). Failback
Policy� ���� �� �� ���� ��, �� ��� ��� ����
� ��� �� ��� ���� �� � ���� Failback ����
�� �� �� ��� �� �� �����.
NoFailure
NoFailure ��� ���� �� ��, � ��� DependsOn � � �
� �� � ��� �� ��� �� ��� ��� �� �� ����
��� �� ���� ��� ��� ����. �� � ��� ��
MonitorCommand� ���� ��� ���� ���� � ��� �� �
��� � �� �� ��� �����.
NoControl
NoControl �� � ���� ���� ��� ���� �����. � �
�� System Automation for Multiplatforms� � ���� ���� �
� �� ���� �� ��� �� ���� OpState ����� ���
���. ���� System Automation for Multiplatforms� ��� �� �
�� �� ��� ��(�: IBM.Application ���� ��)� �� � ��
���.
���
58 ��� � ��� ���
��� ���� ��� ��
v ���� �� � �� �� � ��� ��� ��� ���.
– OpState
v ���� �� � �� �� � ��� ��� �� � ����.
– NodeNameList
– ResourceType
� ��� ��� �� 33 ���� ���� �� ���� �����.
��� �� � ��
��� ��
�� �� ���� ����� ��, mkequ �� �����.
��� �� mkequ man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� mkequ �� �� �����.
�� ��, Linux �� node01 � node02� ��� �� �� ����� eth0
� �� NetworkInterfaces�� �� � ���� ����� �� ��� ����
��.
mkequ NetworkInterfaces IBM.NetworkInterface:eth0:node01,eth0:node02
Linux ��� ����� �� ��� �� ������ � ����
NetworkInterfacesDynamic��� �� � ���� ����� �� ��� ���
���.
mkequ -D "Name like ’eth%’" NetworkInterfacesDynamic IBM.NetworkInterface
AIX ��� ������� ��� ������.
mkequ -D "Name like ’en%’" NetworkInterfacesDynamic IBM.NetworkInterface
Solaris ��� ������� ��� ������.
mkequ -D "Name like ’bge%’" NetworkInterfacesDynamic IBM.NetworkInterface
�� ��� ���
�� ��� ���� � ��� �� lsequ �� �����.
��� �� lsequ man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� lsequ �� �� �����.
���
� 5 � ��� �� 59
��� �� ��� �� ���� � � ���. ���� ��� � ��
�� �� ��� � ���. �� �� ���� ���� ��, � ����
�� ��� � ���.
�� ��, NetworkInterfaces ���� �� ��� � ��� �� ��� ��
����.
lsequ -A p -e NetworkInterfaces
��� �
���� �� ��� ��, �� �� �� ��� ��, chequ �� ���
��.
��� �� chequ man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �� �����.
�� � �� ���� ���� �� � �� ����.
�� ��, �� ��� IBM.NetworkInterface� ��� Linux �� node01� �
�� �� eth1� NetworkInterfaces�� �� ���� ����� �� ��� ��
����.
chequ -u a NetworkInterfaces IBM.NetworkInterface:eth1:node01
��� ��
�� ��� ���� ����� �� rmequ �� �����.
��� �� rmequ man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� � �� �����.
Equivalency �� ���� ����� � �� �� � ���� �� ���
���� �����.
�� ��, NetworkInterfaces�� ���� ����� �� ��� ������.
rmequ NetworkInterfaces
���
60 ��� � ��� ���
� 6 � �� �� ��
� ���� ��� � ��� �� � � ���� �� �� ����.
v ��� � � ���
v 62 ���� ��� � � �� ���
v 64 ���� ���/�� ��� � �
v 80 ���� ��� � �
v 90 ���� �� �� � ���
�: System Automation ��� �(�: �� �� ��� � ��) ��
�� � ��� �� ��� �� �����. ��� � �� ��� ���
��� � � ����. ��� �� ��� � � ��� � ���� �
� ��� ��� ���� ���� �� �� ��� �� � �� �
����.
� 5� �� � � ���� System Automation for Multiplatforms �� � �
��. ��� �� IBM Tivoli System Automation for Multiplatforms ����
� �� �����.
� 5. �� � � �� �� System Automation for Multiplatforms �
�� ��
mkrel �� � ��
lsrel �� � �
rmrel �� � ��
chrel �� � �
�� ��� ��
�� �� �� ��� �� �� �� �� � � �����. � �� ���, �
� �� �� ��� �� ��� ����� � �� ��� ���� ��, �
��� �� � � � ��� StartAfter �� �����.
����� �� � � �� ��� �����. � � � � � ���� � �
���.
© Copyright IBM Corp. 2006, 2008 61
�� ���, �� �� ��� �� �� �� � ��� ����� �
��. � ��� �� � � � ��� ��� �� �����(63 ����
�Relationship ��� �).
Relation �� Condition �� �� ��� � ����(63 ���� �Condition
��� �). � �� ���, �� ��� ���� ��� ���� �� ��� �
�� �� �� �� � ��� ����� ���. � ��� �� � � �
��� IfOnline � �� � ��� ��� �� �����.
� �� 63 ���� �Relationship ����� ���, � �� 63 ���
� �Condition ����� ����.
�� � � ��� ���� �� ��� ����� �� � ����.
�� �� � ��, � � ��� �� ��� �� �� �� �����. �
� �� ��� ���� ��(�� �� ��� �� �� RMC �� � ��) �
� �����. �� �� ���� ��� �� ��� ���� ��(�� �� �
�� �� �� RMC �� � ��) � � �����. �� rmrel �� ��
�� � � � ���� ���.
��� � � ���� ������ ���� �� �� �� ���� ���.
�� ��, DependsOn� �� ���� �� ���� �� ��� ����. ��
�� �� ��� �� ��� �� � ����. ��� System Automation
for Multiplatforms�� � � ���� ��� ����� � � ���� ���
��� ����.
�� � � System Automation for Multiplatforms �� ���
IBM.ManagedRelationship� �����.
�� ��� ��� ��
�� �:
v 33 ���� ���� �� ���
v 40 ���� ��� ��� �� ���
v 57 ���� ����� �� ���
�� �� �� � � � ��� �����.
�� � � �� �� � ��� �����.
�� ��
62 ��� � ��� ���
Name ��
Name �� ��� ���� �� � � ����� �� �����. � ��
� ���. � �� � � �� ��� ���� ���.
Source ��
Source �� ��� ���� �� � � �� ��� �����.
Target ��
Target �� ��� ���� �� ��� ��� �����.
Relationship ��
Relationship �� ��� ���� ��� �� �� �� ��� � � ���
��. �� � � � , � ��/�� ��� � �� ���� ����.
��/�� ���
v StartAfter
v StopAfter
v DependsOn
v DependsOnAny
v ForcedDownBy
��/�� ��� ��/�� ��� ���� � �����.
� ���
v Collocated
v AntiCollocated
v Affinity
v AntiAffinity
v IsStartable
�� ��� ��� ��� �� �� �����.
Condition ��
Condition �� �� IsStartable �� � � ���� �� �� � (80 ���
� ��� � � �)� �� ���� �� �����. IfPossible � StartAfter
� �� �� ��� �� � ����.
� �� �� � � � ��� �����. � � �� � ��
����.
v IfOnline
v IfNotOnline
v IfOffline
�� ��
� 6 � �� � �� 63
v IfNotOffline
v IfPossible
v None
�/�� �� ��
System Automation for Multiplatforms� �� � � � ���� ��/�� �
�� �� � ����.
v StartAfter
v StopAfter
v DependsOn
v DependsOnAny
v ForcedDownBy
��/�� � � ��� �� �� �� �� ��� ������. �� ��� ��
��� ��� 37 ���� ��� ��� ���� �����.
��/�� � � �� �� ����.
v �� �� �� �� ��� ���
v ���
v OpState ��� ���� �� RSCT ��(�� ��� ��)
DependsOn � , ��� �� ��, �� �� � ��� ��� � �� ���
��� Collocated ���� ��� �� ������.
�� � �� ��� �� �� � ����. ��� ��� ���� �� ��
� �� ��� ����� ��� ��� �����.
StartAfter ��
StartAfter � � ���� �� ��� ��� �� �� ��� ����� ��
��.
StartAfter � � ��� �� ���� �����.
v �� ���� StartAfter� A� B ��� �� ��� �����.
�� �� A� ���� �� �� �� �� B� �� �����. B ��� �
���� � A ��� �����.
A �� B �� �� � ��� ��� � ����.
�� ��
64 ��� � ��� ���
�� �� �� StartAfter � � IfPossible �� ���, �� �� ��
B� ��� �� �� Sacrified �� ��� � ���� ��� � ��
� � �����(93 ���� ��� � �: �� ���� �). � �
�� � � ��� ���� � � � �����.
StartAfter � � �� �� �� �� ��� ���� ����(72 ����
�DependsOn � � �).
StartAfter ��� �� ��� �� ���
�� �� �� ��� �� �� ��(OpState)� �� �����. B ��� ��
�� ��� ���� � A ��� �����.
���� ��, A� B �� � �� ��� ������.
�� ��� �� ��� ����� �� A� B ���� � �����. A�
B� StartAfter � � �� B ��� �� �����. B ��� �� �� ���
��� � A ��� �����.
A ��� RG_A �� ��� ����� B ��� RG_BC �� ��� ����
A� B �� StartAfter � � �����. � ��� RG_A� �� ��� ����
� ��� StartAfter � � �� ��� ������.
StartAfter � � �� ��� �� B ��� �� ����� ���. RG_BC� �
� ��� ������ ��� �� �� �� � ��� ����.
RG_BC� B ��� ����� ��� ��� StartAfter � � B� ����� �
� �����. System Automation for Multiplatforms� ��� �� �� ��
�� ��� �� ���� � ��� �����. ��� ��� �� ��� ��
����� RG_BC� � ��� �� ���� ���� ��� B ��� ���
��. B ��� ���� System Automation for Multiplatforms� A ��� �
����. C �� ���� ����.
A ��� ��� � B ��� StartAfter � � �� ������ �� ��� �
� ��� �� ����� �� B ��� �����. ����, B� ��� ��
�� ���� � ���. � �� �� System Automation for Multiplatforms
�� ��
� 6 � �� � �� 65
��� 2.3� �� �����. �� ������ B� ��� �� �� ����
�����.
�� ��� � � ������ �����. A �� B ��� �� � �� �
�� ��� ��(A� RG_A� ��� B� RG_B� ��), RG_B� �� ��� �
���� �� B �� A �� �� � � �� ��� A ��� ���
�� ���� ����.
RG_A� �� ��� ����� ��, B ��� � ������ A �� �
��� � ����.
� ������� A ��� B �� � C ��� StartAfter � � �� ��
�� ����.
�� ��
66 ��� � ��� ���
� ��, A� ���� System Automation for Multiplatforms� A ��� ��
�� �� B� C ��� � � ������ ���. �� �, A, B � C�
RG_ABC �� ��� ������. RG_ABC� �� ��� ����� ��
B� C ��� �� ��� �����. ��� �� �� ��� � ����
A ��� �����.
�� A �� RG_A �� ��� ����� B �� RG_B� ����� C �
� RG_C� ��� ���� ����.
A� B� C � �� StartAfter � � ����. RG_A� �� ��� �����
�� StartAfter � � �� C �� B ��� �����. B� C ��� �
� ������ A� �����.
��� �� ��� �� ��(�RG1� � �RG2�)� StartAfter/IfPossible �
� �� ���� �� �� ��(�RG2�)� �� � �� � ���� �� ��
� �����.
v � (�RG1�)� ��� �����.
v �� �� ��(�RG2�)� � � ���� ��, � �� ��� Sacrificed
� ����. �� ��� � � ��� ���� ��� � ��� �
���� �� ������.
�� ��
� 6 � �� � �� 67
StartAfter ��� IfPossible ��: StartAfter � � IfPossible �� �
� � ����. � � �� �� ��� �� � �� �� � ��
�� ��� �� � ��� �����. ��� ��, �� �� �� Sacrificed(�
��) ��� ��� StartAfter � � �����. StartAfter/IfPossible �� ��
� ���� ���. �� ��� �� ���� �� ���� �� ����.
StartAfter ��� �� ��� �� ���
�� �� B� �� �� A� ���� ��� �� � ����. �� �� A�
NominalState ��� ������ ��� �� �� �� B� ���� ���
��. �� � ��� �� � ����.
���� ��, �� �� A � �� �� B� � �� ��� ������. ��
� � NominalState � � ���.
RG_AB� NominalState ��� ������ ��� A� B ���� � �
�����. StartAfter � �� �� ��� ��� ���� A� B ��� ��
� �� � ����.
�� ��
68 ��� � ��� ���
RG_B� NominalState� ���� RG_B �� ��� ��� �� �� RG_A�
�� � �� � ����. � �� �� �� ��� ��� ����.
RG_B� NominalState� ������ ��� RG_A� NominalState� ����
� ��� ��, �� �� B� �� �� A�� �� �����.
RG_A� NominalState� ������ ��� �� A� B ��� ��� ���
��.
�� �� ��� ������.
RG_A� NominalState� ����� RG_B� NominalState� �����, A �
� B �� ������. ��, RG_A� NominalState� ������ ���
��. A �� B ��� ��� �����. � ��� ���, StartAfter � � �
� �� RG_A �� ��� �� �� �� �� B ��� ��� � ����
�. RG_A� ������ �� �� �� ����, RG_B �� ���
NominalState� ����� B ��� �����.
StartAfter � � �� �� ��� �����, A� B �� ��� �� �
����.
A, B � C �� �� �� �� RG_A, RG_B � RG_C� ������.
A� B ��� � ���� C ��� ������ ���. RG_A � RG_B �
� �� � ��� NominalState� ���� ���� RG_C� NominalState� �
������ C ��� ����� ���� ���. RG_A � RG_B� NominalState
� � ���� �� C ��� �� � ����. �� RG_C� NominalState
� ����� ���� ����.
StartAfter �� ��� �
1. StartAfter � � �� DependsOn � � ����� ����.
�� ��
� 6 � �� � �� 69
2. StartAfter � � �� �� �� �� � � �� ��� �����. �� �
� ����� ��(80 ���� ��� � � �) � ��� �� � � ���
� ���.
3. System Automation for Multiplatforms� �� ��� ����� �� ��
�� �� �� �� ��� ����� �����.
4. �� ��� ���� ��, �� �� ��� � ���� � ����.
StopAfter ��
StopAfter � � ���� �� ��� � ��� � �� �� ��� �� �
�� ����.
StopAfter � � �� � �� ���� �����.
v �� ��� �� ����(���� �� ��)�� ��� ��� �� A ��
� ���� ����.
StopAfter � � �� � �� �� �� ��� ���� ����(64 ����
�StartAfter � � � 72 ���� �DependsOn � � �).
StopAfter ��� �� ��� �� ���
�� �� A� �� �� B� ���� ��� �� � ����. �� �� B�
OpState ��� ���� �� ���� ��� �� A �� ��� ����
�����.
���� ��, �� �� A � �� �� B� � �� ��� ������.
RG_AB� NominalState ��� ����� ��� A� B ���� � ��
����. StopAfter � �� �� ��� ��� ���� A� B ��� ���
�� � ����. � �� ��� NominalState ��� ������ �� �
��� �����. A� B� � � �� B ��� �� �����. B ��� ��
�� ��� ���� � A ��� �����.
�� ��
70 ��� � ��� ���
A �� B ��� �� � �� ��� ����(A� RG_A� ��� B� RG_B
� ��) RG_B� NominalState� ����� ��, RG_B �� ��� ��� ��
��� RG_A� �� � �� � ����. RG_B� NominalState� �����
��� RG_A� NominalState� ������ ��� ��, �� �� B� ��
�� ���� �� �� A� �� � ����.
RG_A� NominalState� ����� ��, A ��� ��� �� ��� RG_B� �
� �� �� � ����.
�� A �� RG_A �� ��� ����� B �� RG_B �� ��� ���
�� C �� RG_C �� ��� ��� ���� ����. A� B� C � ��
StopAfter � � ����.
RG_A� NominalState� ����� RG_A� ����� ��, RG_B � RG_C �
� NominalState� ���� ���� RG_A� �� � ����. RG_B � RG_C
� � NominalState� ���� �� ���� �� �� A ��� �� � �
���.
�� ��
� 6 � �� � �� 71
DependsOn ��
System Automation for Multiplatforms� DependsOn � � ���� �� ���
��� �� �� ��� �� � ��� ���. ��� ���� StartAfter �
� ��� ��� �����.
v DependsOn � �� �� � �� �� �� �� collocation(82 ����
�Collocated � � �)� ���� ����.
v �� ��� ��� �� ��� �����.
DependsOn � � �� � ��� �� ���� �����.
A �� B ��� ��� �� ����, �� A ��� B �� �� �� � �
�� � ���. ��� �� �� �� ��� ���� ���(�� ���� 3 �
� �).
1. �� ���� DependsOn �� collocation ��� A� B ��� �� ��
� �����.
A ��(��)� ���� �� �� �� �� B� �� �����. B ��� �
���� � A ��(��)� � ��� �����.
2. �� ���� DependsOn A� B ��� �� ��� �����.
B ��(��)� ���� �� �� �� A� �� �����. A ��� ��
���� � B ��(��)� �����.
3. �� ��� ���� �� �� �� ��� ������. �� �� B� ��
� �� A ��� �����. � � 1� � �� ��� �� �� ���
������.
DependsOn ��� �� ��� �� ���
DependsOn � � �� ��� �� ��� �� �� ��(OpState)� �� ���
��. B ��� �� �� ��� ���� � A ��� �����. �� �� �
�� DependsOn collocated �� �� ����, �� �� B ��� �� �
��� A ��� ���� ���. ��� ��� A ��� ��� � �� �
�� B ��� � ��� ���. DependsOn � � ��� Collocated ��
� collocated � � ��� ����. � ��� �� ��� �� 82 ���
� �Collocated � �� �����.
�� ��
72 ��� � ��� ���
���� ��, A �� B �� � �� ��� ������.
�� ��� �� ��� ����� �� A� B ���� � �����. A�
B� DependsOn � � �� B ��� �� �����. B ��� �� �� ���
��� � A ��� � ��� �����.
A ��� RG_A �� ��� ����� B ��� RG_BC �� ��� ����
A� B� DependsOn � � �����. � ��� RG_A� �� ��� ����
� ��� DependsOn � � �� ��� ������.
DependsOn � � �� ��� �� B ��� �� ����� ���. RG_BC�
�� ��� ������ ��� �� �� �� � ��� ����. RG_BC�
B ��� ����� ��� ��� DependsOn � � B� ����� �� ���
��. System Automation for Multiplatforms� ��� �� �� ���� �
�� �� ���� � ��� �����. ��� ��� �� ��� ������
� RG_BC� � ��� �� ���� ���� ��� B ��� �����. B
��� ���� System Automation for Multiplatforms� A ��� �����.
� �� A� B �� � ��� �����. C �� ���� ����.
�� ��� � � ������ �����. A �� B ��� �� � �� �
�� ��� ��(A� RG_A� ��� B� RG_B� ��),
RG_B� �� ��� ����� �� B �� A �� �� � � �� �
�� A ��� ��� �� ���� ����. � � RG_A� �� ��� ���
�� ��, B ��� � ������ A �� � ��� � ��� � �
���.
�� ��
� 6 � �� � �� 73
� ������� A ��� B �� � C ��� DependsOn � � �� ��
�� ����.
� �� A� ����, System Automation for Multiplatforms� A ��� ��
�� �� B� C ��� � � ������ ���. �� �, A, B � C�
RG_ABC �� ��� ������. RG_ABC� �� ��� ����� ��
B� C ��� �� ��� �����. ��� �� �� ��� � ����
A ��� �����. B� C� �� �� � ��� A� ���� ��� � �
� � � ��� �����.
�� A �� RG_A �� ��� ����� B �� RG_B� ����� C �
� RG_C� ��� ���� ����.
A� B� C � �� DependsOn � � ����. RG_A� �� ��� �����
�� B �� C ��� �����. B� C ��� � � ������ A� �
��� �����.
DependsOn ��� �� ��� �� ���
DependsOn � � �� ��� �� ��� �� �� ��(OpState)� �� ��
� ����.
�� ��
74 ��� � ��� ���
A ��� OpState� ����� � B ��� ��� � ����.
���� ��, A �� B �� � �� ��� ������.
�� ��� �� ��� ������ ��� A� B ���� � �����
�. DependsOn � � �� A ��� �����. A ��� ���� � B ��
� �����.
A �� RG_A �� ��� �����, B �� RG_B �� ��� �����,
A� B� DependsOn � � ���� ����. RG_B� �� ��� ������
��� DependsOn � � �� ��� ��� �����(System Automation for
Multiplatforms�� �� ��� �� � ��). DependsOn � � �� A ���
�� �����. A �� ��� �� ��� ����� ��� �� ��� �
���. RG_A� A ��� ���� ��� ��� DependsOn � � � ���
������.
System Automation for Multiplatforms� �� ��� �� ���� ��� �
� ���� � ��� �����. ��� A ��� ����� ����� B ���
�� � ����. RG_A� �� ��� ����� � ���� A ��� �
� � ����. A ��� ������ �� B ��� �����.
�� �� �� �� ��� ����.
RG_A� �� ��� ����� RG_B �� ��� �� ��� ������ �
�� ��, �� �� �� �� ������ A� B �� ������. ��
RG_A� �� ��� ������ ��� ����. �� �� A ��� ����
�. �� B ��� �����. � ��� ���, DependsOn � � �� ��
RG_A �� ��� �� �� �� �� B ��� ��� � �����. � ��
�� ��
� 6 � �� � �� 75
�� RG_A� ������ ��� ��� �� �� ���� RG_B �� ��
�� ����� �� ��� �� B� �����. DependsOn � � �� �
� ��� �����, A ��� ���� �� B ��� �� � ����. ���
A ��� �� �����. A� ����� B ��� �����.
� ����� A� B ��� C� DependsOn � � �� �����. C ���
���� A� B ��� � �� ������ ���� ���.
�� ��, A, B � C� � �� �� RG_ABC� ������.
RG_ABC� �� ��� ������ �� A� B ��� �� �����.
��� �� �� ��� � ����� C ��� �����. � ����, A,
B � C �� �� �� �� �� RG_A, RG_B � RG_C� ������.
RG_C� �� ��� ������ �� DependsOn � � �� ��� ���
���. ��� RG_A � RG_B �� ��� �� ��� �� ��� �� �
� ����. RG_A �� RG_B� �� ��� ���� ���� C ��� ��
� ����. �� �� ���� ��� �� �� ���� �� �� ���
�����. ��� DependsOn � � �� �� RG_A � RG_B� �� ���
������ �� � � �����. � ��� A� B ���� ����� C
��� �����.
DependsOn ��� �� �� �� ��� �� ���
DependsOn � � �� ��� A ��� B �� ��� ��� �� ���� ��
��. �� �� B� ��� �� �� A� �� ��� �� � ����.
�� ��
76 ��� � ��� ���
��� B� �� ���� ���� ���� ����. B� ��� �� A ���
�� �� �����. � � �� � �� ��� �� �� �����. ���
B, � ��� A� ��� �����.
�� ��, B �� DependsOn � � �� A ��� �� � ����.
�� � ������. B ��� ���� ��, A ��� ��� ��� ��
�� ��� �����. B ��� �� �� ��� A ��� �����.
A �� B �� � �� �� RG_AB� ������.
��, A �� B ��� DependsOn � � �����. RG_AB� �����
��� ��, ��� B ��� ���� ��� A ��� �����. B ��� �
���� ����� �� A ��� �����. � �� DependsOn� �� ��
� �� ���� �� �����.
A� ���� �� B� �����.
�� A �� RG_A �� ��� ����� B �� RG_B �� ��� ���
�� A� B� DependsOn � � �� �� �� ����.
RG_A �� ��� ����� ��� �� RG_B� �� ��� �����, �
�� B ��� ���� � �� A ��� �����. DependsOn � � �� �
� �� �� B ��� ��� ������. �� �� A ��� �����. �
�� RG_A� �� ��� ���� ���� �����. System Automation for
Multiplatforms� �� �� �� ��� �� �� ��� ��� ��� �� �
��� ��� ��� �� �����.
�� �� �� �� DependsOn � � ��� �� �����. �� �����
� A �� RG_A �� ��� ����� B �� RG_B �� ��� ����
� C �� RG_C �� ��� �����, A� B � � B� C ��� DependsOn
� � ����.
�� ��
� 6 � �� � �� 77
RG_A �� ��� ����� ��� ��, �� �� � �� C, B � A� ��
�� ��� � ��� ��� ��� �����. ��� C ��� �����. �
� �� A� B ��� �� �� �����. �� A ��� ���� �� B
��� �����. ��� �� �� �� ��� �� ��� ��� ���
�����.
DependsOn �� �� �
DependsOn � � ���� � �� �� ����.
1. �� �� �� ��� ��� �� ��� �� ��� Collocated ���� �
��.
DependsOnAny ��
DependsOnAny � � ��, �� ��� �� collocated �� �� ���� �
� � ��� DependsOn � � � ���. ��� �� � �� �� � �
�� �� � ��� �� � ����.
DependsOnAny � � �� � ��� �� ���� �����.
1. �� ���� DependsOnAny� �� � �� A� B ��� �� ��� �
����.
A ��(��)� ���� �� �� �� �� B� �� �����. B ��� �
���� � A ��(��)� �����. DependsOn � �� � � ���
A �� B ��� �� � ��� ��� � ��� ����.
2. �� ���� DependsOnAny� A� B ��� �� ��� �����.
B ��(��)� ���� �� �� �� A� �� �����. A ��� ��
���� � B ��(��)� �����.
3. �� ��� ���� �� �� �� ��� ������. �� �� B� ��
� �� A ��� �����. � � 1� � �� ��� �� �� ���
������.
DependsOnAny � � �� ��� �� DependsOn � � �����.
�� ��
78 ��� � ��� ���
�: A ---> DependsOn ----> B ����� A ---> DependsOnAny ---> B � A
----> Collocated ----> B ����� ����.
ForcedDownBy ��
ForcedDownBy � � ���� �� ��� ����� �� �� �� ��� �
� �� � ��� ����.
ForcedDownBy � � ��� �� ���� �����.
v �� ��� ��� ��� ������ ��� �� �� ��� ������ �
� ���� �� A ��� ������ �� ���� ���. A� B ��� �
�� ��� �� � ����. B ��� ��� ��� �� �� �� �� �
�(����) � ��� ����� �� ��� � �� ��� �� �� ��
(���� ��) � ��� �� � A ��� �� �� ��� ������.
ForcedDownBy � � �� � �� ��� ���� ���� (64 ����
�StartAfter � �, 70 ���� �StopAfter � � � 72 ���� �DependsOn �
� �).
ForcedDownBy ��� �� �� �� ��� �� ���
ForcedDownBy � � �� ��� �� �� B� ����� ��� �� � A
��� ������ �� ���� ��� ����.
�� ��, B �� ForcedDownBy � � �� A ��� �� � ����.
�� � ������. B ��� ����� ���� �� A ��� �� ��
�����.
�� A �� RG_A �� ��� ����� B �� RG_B �� ��� ���
�� A� B� ForcedDownBy � � �� �� �� ����.
RG_A � RG_B �� ��� NominalState ��� ����� ��, A� B �
� �� ��� �� �� �����. ForcedDownBy � � �� �� �� ��
�� �� � ��� �� ������.
�� ��
� 6 � �� � �� 79
1. B ��� ��. �� �� A ��� �����. � �� RG_A� �� ���
���� ���� �����. �, � ���� RG_A� �� ��� �� �
��� A ��� System Automation for Multiplatforms� �� �� ���
��.
2. �� B ��� �����.
RG_B� �� ��� ������ �� A ��� �����. � ��
RG_A� �� ��� ���� ���� �����. �, � ���� RG_A� �
� ��� �� ���� A ��� System Automation for Multiplatforms
� �� �� �����.
�� ��
System Automation for Multiplatforms� �� � � ���� � �� � ��
�� � � �����.
v Collocated
v AntiCollocated
v Affinity
v AntiAffinity
v IsStartable
�� ��, A� B �� node1, node2 � node3�� ��� � �� � ���
��.
� � � �� �� �� �� �� �� �� ���� ����. � ��
� �� � � �� ��� ��� � �� �� ��� �����. A ��
B �� node1, node2 � node3�� ��� � �� � �����.
�� ��
80 ��� � ��� ���
B ��� � �� ���� ��� ��� ���� A ��� ���� ���
���� �� � ����. A� B� Collocated � � ���� � ��� ��
� ����.
B ��� � �� �� ��� A ��� ����� ��� ��� �� �
� AntiCollocated � � ���� �� � ����.
���� ��, ��� � B ��� �� �� ��� A ��� ���� ��
��� �� � �� �� � �� ��, Affinity(��) � � �����.
Collocated � � ���, Affinity � � ‘���’ �� � � ��� ����.
AntiAffinity � � ��� � B� � �� �� �� A ��� ���� ��
� ���� �� �����. � ���� ���� � �� ���� B� ���
��� A ����� �� � ����. Affinity � � �����, AntiAffinity
� � �� AntiCollocated � � �� ‘���’� �� �� �� ����.
IsStartable � � �� �� B� �� � �� ��� �� �� A� ��� �
��� �����. ��� �� ��� �� ��� ���� ���� � � � �
����. �� � ��(�� �� ��)� �� ��� ���� �� � IsStartable
� � �� ��� ����� �� �� �����.
IfOnline, IfOffline, IfNotOnline � IfNotOffline
IsStartable� ���� �� �� � � �� �� �� �� � ����. �
� �� ����.
IfOnline IfOnline �� ��� OpState� ��� �� �� � � ��
��� �����. ��� �� ��� �����. IfOnline �
�� ��� � ���� ��� � ��� ���� ���
�.
IfOffline IfOffline �� ��� OpState� ����, ���� �� �� �
� �� � �� �� �� �� � � ����� �����. �
�� �� �� � � �����.
IfNotOnline IfNotOnline �� ��� ��� ��� �� �� �� � � �
��� � ���. IfNotOnline ��� ��� � ��� ��
� � ��� �����. ��� �� �� � � �����.
IfNotOffline IfNotOffline �� ��� ����, ���� �� �� � � �
� ��� �� �� �� � � ���� � ���. ��� �
� �� � � �����.
�� �� ��� �
1. �� � � ��� �� �� �� �� ��� ������. �� ��� ��
��� ��� 37 ���� ��� ��� ���� �����.
�� ��
� 6 � �� � �� 81
2. �� � � �� �� � �� �����.
v �� �� �� �� ��� ���
v ��/�� �� � OpState ��� ���� �� RMC ��(�� ��� �
�)
3. �� �� �� ��� ��� �� ��� �� ��� Collocated ����
���.
Collocated ��
System Automation for Multiplatforms� Collocated(��) � � ���� �� �
� �� ��� � �� ����� ���. Collocated � � ��� �� �
��� �����.
v Collocated � � A �� �� � B ��� � �� �� ���� A ��
� �� � ��� �����.
Collocated � � 84 ���� � � �� �� �� � ����.
Collocated ��� �� ��� �� ���
�� Collocated � � � � �� 4�� ��� �� �� ����.
��� I:
A �� �� � B ��� � �� �� � �� A ��� �����. ��
� B ��� OpState� ���, ��� ���, ��� �� �� ���� �
�� � ���� � ���.
� �� �� ��� ����.
collocated � � � �� ��� ���� � � �� �� �����. �
�� �� � ���� �����.
�� ��
82 ��� � ��� ���
��� II:
B ��� ���� A ��� ����, ���� �� �� � � �� �����.
��� B ��� � � �� A �� ��� ��� �����. ���
System Automation for Multiplatforms� B ��� �� �� � � �� A
��� �� � �� �� � ���. � �� ��� ��� ��� A ��
� �� �� ��� ��� � ����. �, �� ��� ���� �� ��, B
��� �� � B ��� ���� � ��� A ��� �� � ��� ��
�.
��� III:
A ��� ���� B ��� ���� �����.
���� B� �� �� �� A� �� � ����, A �� � ���
�� ��� ��� � ����. ��� �� �� �� ��� B ��� ��
� � ��, A ��� � ��� ���� ���. ��� System Automation for
Multiplatforms� A ��� ���� A� B ��� �� � � ��� ��
���. �� System Automation for Multiplatforms �� �� �� ����
�. A ��� ���� � System Automation for Multiplatforms� A� B
��� �� � �� ��� ��� �� A ��� �����. (�: B ��� ��
collocated � � �� ���� ����. �� � ��/�� � �� �� �
�� �� �����.)
�� ��� �: A �� �� B �� � �� ��� ���� � ��� ��
�� ��� �� ��, System Automation for Multiplatforms� A� B � ���
���� �� �� � ���� ��� � ��� �����.
� �� �� �� ��� � �� � �� ������. � � �
� � ��� �� �� � ��� ��� �� �� � ����.
� � � �� �� � �� �� ����� �� � ����. A� B �
�� � ���� � 1, 2, 3� �� � ����. A -- Collocated ---> B �
� ���� ����. �� B ��� ���� ���. collocated � � ��
System Automation for Multiplatforms� A� B ��� �� node1� � �
����. � �� B ��� �����. �� � ��� �� ��� �� A ��
�� ��
� 6 � �� � �� 83
� �� � 1 �� �� � ����. � 1�� ��� OpState� ����
�����. � � �� �� A ��� ���� ���. A ��� �� � 1
�� ��� � ��� ���� �� ��(��� ��)� �����.
��� IV:
B ��� ��� � A ��� � �� � ��� �� � ��� ��� �� �
����(OpState� ���, ��� ���, ��� �� �� ���� ��� �
���).
A ��� �� �� B ���� � � �� � �� ����. ��� ��
�� � �� ��� B ��� �� � ����. B ��� �� � ���
�� � ��� �� ���� ��, � ��� � ���� B �� ��
� � � ��� ��� ���. �� B ��� � ��� ��� � ��� �
���.
�� �� �� � � �� � ����.
v Collocated/IfOnline
A ---> Collocated/IfOnline -----> B � � �� � � B ��� ��� ��
�� ���� � ���. ��� �� �� � � �����. IfOnline �
�(�: ��� ��� � ���� ���)� ���� ����.
v Collocated/IfOffline
A ---> Collocated/IfOffline -----> B � � �� � � B ��� ����, �
��� �� �� � � �� �� �� ����� � ���.
v Collocated/IfNotOnline
A ---> Collocated/IfNotOnline -----> B � � �� � � B ��� ��� �
�� �� �� ����� � ���.
v Collocated/IfNotOffline
A ---> Collocated/IfNotOffline -----> B � � �� � � B ��� ����,
���� �� �� � � �� �� �� ����� � ���.
�� ��
84 ��� � ��� ���
AntiCollocated ��
System Automation for Multiplatforms� AntiCollocated � � ���� �� �
� �� ��� �� � �� ���� ���. AntiCollocated � � �� �
� ���� �����.
v TheAntiCollocated � � A �� �� � B ��� � �� �� � ��
�� A ��� �� � ��� �����.
AntiCollocated � � 86 ���� � � �� �� �� � ����.
AntiCollocated ��� �� ��� �� ���
�� AntiCollocated � � � � �� 4�� ��� �� �� ����.
��� I:
A �� �� � B ��� �� �� �� �� �� � �� A ��� ���
��. �� � B ��� OpState� ���, ��� ���, ��� �� �� �
��� ��� � ���� � ���.
� �� �� ��� ����.
AntiCollocated � � � �� ��� ���� � � ��� �� ���
��. ��� �� � ���� �����.
��� II:
B ��� ���� A ��� ����, ���� �� �� � � �� �����.
��� B ��� � � �� A �� ��� ��� �����. ���
System Automation for Multiplatforms� B ��� �� �� � � �� A
��� � ��� ��� � ��� �� �� � ���. � �� ��� �
�� ��� A ��� �� �� ��� ��� � ����. �, �� ��� �
��� �� ��, B ��� �� � B ��� ���� �� � ��� A �
�� �� � ��� ���. �� ��� I� � ����.
�� ��
� 6 � �� � �� 85
��� III:
A ��� ���� B ��� ���� ��(����, ���� ��)���.
���� A �� � ��� �� ��� ��� � ����. ��� �� �
� �� ��� B ��� � ��� ��� � ��� ��, A ��� �
��� ���� ���. ��� System Automation for Multiplatforms� A ���
���� B ��� �� � ��� �����.
�� ��� �:
A ��� ���� ��� �� A �� �� B �� � �� ��� ���(��
� II � ��� III), System Automation for Multiplatforms� A� B � ���
���� �� ��� �� �� � �� �����.
Collocated � � ��� � �� � ��, �� ��� � ��� ���
��� �� ��� � �� ���� ����. ��� �� �� ���� �
� ��� ��� ������.
��� IV:
B ��� ��� � A ��� � �� � ��(OpState� ���, ��� ��
�, ��� �� �� ���� ��� � ���)� ����.
A ��� �� �(��� III �) B ���� � � �� � �� ���
�. ��� ���� � �� ��� B ��� �� � ����. B ��� ��
� ��� �� � ��� �� ���� ��, B �� �� � � � ��
� ����. �� A ��� � �� �� ���� B ��� � ��� ��
� � ��� � ���.
�� �� �� � � �� � ����.
v AntiCollocated/IfOnline
A ---> AntiCollocated/IfOnline -----> B � � �� � � B ��� ��� �
�� �� �� ����� � ���. ��� �� �� � � �����.
IfOnline ��� ��� � ���� ��� � ��� ���� ���
�.
�� ��
86 ��� � ��� ���
v AntiCollocated/IfOffline
A ---> AntiCollocated/IfOffline -----> B � � �� � � B ��� ����,
���� �� �� � � �� �� �� ����� � ���.
v AntiCollocated/IfNotOnline
A ---> AntiCollocated/IfNotOnline -----> B � � �� � � B ��� ��
� ��� �� �� ����� � ���.
v AntiCollocated/IfNotOffline
A ---> AntiCollocated/IfNotOffline -----> B � � �� � � B ��� ��
��, ���� �� �� � � �� ��� �� �� ����� � ���.
Affinity ��
Affinity(��) � � ��� �� ���� �����.
v Affinity � � ��� �� A �� �� � B ��� � �� �� � �
� � ��� �����. � �� � � � � � ��� ��, A ��� �
��� ��� � ����.
Affinity � � Collocated � � �� �����. ��� Affinity(��) � � �
�� �� � � �����, Collocated � � �� ����� �� � ���.
Affinity � � � ��(63 ���� �Condition ��� �) �� �� � �
���.
�� �� �� � � �� � ����.
v Affinity/IfOnline
A ---> Affinity/IfOnline -----> B � � �� � � B ��� ��� �� �
� ��� � ��� � ���. ��� �� �� � � �����. IfOnline
��� ��� � ���� ��� � ��� ���� ����.
v Affinity/IfOffline
A ---> Affinity/IfOffline -----> B � � �� � � B ��� ����, ���
� �� �� � � �� �� �� �� � ��� � ���.
v Affinity/IfNotOnline
A ---> Affinity/IfNotOnline -----> B � � �� � � B ��� ��� ��
� �� �� �� � ��� � ���.
�� ��
� 6 � �� � �� 87
v Affinity/IfNotOffline
A ---> Affinity/IfNotOffline -----> B � � �� � � B ��� ����, �
��� �� �� � � �� �� �� �� � ��� � ���.
AntiAffinity ��
AntiAffinity � � �� �� ���� �����.
v AntiAffinity � � ��� �� A �� �� � B ��� � �� �� �
� � �� � ��� �����. � �� � � � � � ��� ��,
A ��� � ��� ��� � ����.
AntiAffinity � � AntiCollocated � � �� �����. ��� AntiAffinity(�
��) � � ��� �� � � �����, AntiCollocated � � �� �����
�� � ���.
AntiAffinity � � � ��(63 ���� �Condition ��� �) �� �� �
����.
80 ���� ��� � �� �����.
�� �� �� � � �� � ����.
v AntiAffinity/IfOnline
A ---> AntiAffinity/IfOnline -----> B � � �� � � B ��� ��� ��
�� �� � ��� � ���. ��� �� �� � � �����.
IfOnline ��� ��� � ���� ��� � ��� ���� ���
�.
v AntiAffinity/IfOffline
A ---> AntiAffinity/IfOffline -----> B � � �� � � B ��� ����, �
��� �� �� � � �� �� �� �� � ��� � ���.
v AntiAffinity/IfNotOnline
A ---> AntiAffinity/IfNotOnline -----> B � � �� � � B ��� ���
��� �� �� �� � ��� � ���.
v AntiAffinity/IfNotOffline
A ---> AntiAffinity/IfNotOffline -----> B � � �� � � B ��� ���
�, ���� �� �� � � �� ��� �� �� �� � ��� � ��
�.
�� ��
88 ��� � ��� ���
IsStartable ��
IsStartable � � ��� �� ���� �����.
v IsStartable � � A� B ��� �� ��� ��� � B ��� �� � �
� ��� A ��� ��� � ��� �����.
IsStartable �� ��� ��� ��� �� � ��� � ����. �� ��
��� �� ��� � � � � ��� � �� �� �����.
80 ���� ��� � �� �����.
IsStartable ��� �� ��� �� ���
IsStartable � � �� �� ����.
IsStartable � � �� ��� �� � �� ��� �� ��� ��� � ��
� �����. ��� �� ��� �� ��� ���� ���� � � � ���
��. �� � ��(�� �� ��)� �� ��� ���� �� � IsStartable �
� �� ��� ����� �� �� �����.
�� ��� IsStartable � � ��� �� ����.
A �� B �� � ���� � �� �� RG_A� ������. A ��
node1 � node2�� �� � ��, B �� node2 � node3�� �� � ��
��. A ���� B ���� IsStartable � � �����.
�� ��� �� ��� ����� �� �� � �����. IsStartable
� � �� A �� B ��� node2�� �����, � �� ��� �� �
���. B ��� ���� �� �� �� RG_A �� �� �� � A ���
���� ���, �� A �� B ��� � ��� � �� �� �� ���
��.
�� ��� IsStartable � � �� ��� ��� �����. � ������ A
�� node1, node2 � node3�� �� � �� RG_A �� ��� �����
�� ��
� 6 � �� � �� 89
�. B �� node1 � node2�� �� � �� RG_B �� ��� ������.
A ���� B ���� IsStartable � � �����.
�� � ���� ��� ��� ����.
v RG_A� �� ��� RG_B� ����� ���� ����� ����. ��
� �� ��� �� ��� ���(��� RG_A � RG_B)�� RG_B� �� �
�� ����� IsStartable � � ����� � ���� � � �����.
��� A �� node1, node2 �� node3 � ���� �� � ����.
v RG_A� �� ��� RG_B� � ���� ���� ����� ����. �
���� IsStartable � � ���� System Automation for Multiplatforms� B
��� �� � �� �(node1 �� node2)�� A ��� �����.
v ����� �� B �� node1 � node2�� �� � ��, RG_B� �� �
�� ������. RG_A �� ��� ��� �� B� �� � node1 �
node2�� �� � ��� A ��� ���� � � ����.
v ����� �� B �� node1 � node2�� �� � ��, RG_B �� ��
� �� ��� �������. RG_A� �� ��� ����� �� System
Automation for Multiplatforms� B ��� ���, RG_B �� ��� ��� �
�� ������� IsStartable � � �����.
�� � � ��
�� ��
�� �� �� ��� �� �� �� � � ����� �� mkrel �� ��
���.
�� �� �� ��� ������ ���. �� ��� �� ��� �� ��
����.
�� ��, ‘IfOnline’ �� �� �� ‘Rel1’� IBM.Application ���� ��
�� FloatWebServerB� �� IBM.Application ���� �� ��
FloatWebServerA� AntiCollocated � � ���� ��� ������.
mkrel -p anticollocated -o ifonline -S IBM.Application:FloatWebServerA-G IBM.Application:FloatWebServerB Rel1
��� �� mkrel man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� mkrel �� �� �����.
�� ��
90 ��� � ��� ���
�� �
� � � ��� �� lsrel �� �����.
� �� ���� � ��, �� �� � � � � ���.
lsrel
Displaying Managed Relations :
Name Class:Resource:Node[Source] ResourceGroup[Source]Rel1 IBM.Application:FloatWebServerA RG_WebApp
-M ���� � �� ���� ��, �� � � �� ��� � ���. �
� ��, Rel1 � � ��� � ��� �� ��� ������.
lsrel -M Rel1
Displaying Managed Relationship Information:for Managed Relationship "Rel1".
Managed Relationship 1:Name = Rel1Class:Resource:Node[Source] = IBM.Application:FloatWebServerAClass:Resource:Node[Target] = {IBM.Application:FloatWebServerB}Relationship = AntiCollocatedConditional = IfOnlineResourceGroup[Source] = RG_WebApp
IBM.Application:FloatWebServerA� ��� � � � � � �� � �
� �� ���(-S ��).
lsrel -S IBM.Application:FloatWebServerA
Displaying Managed Relationship Information:
Managed Relationship 1:Name = Rel1Class:Resource:Node[Source] = IBM.Application:FloatWebServerAClass:Resource:Node[Target] = {IBM.Application:FloatWebServerB}Relationship = AntiCollocatedConditional = IfOnlineResourceGroup[Source] = RG_WebApp
��� �� lsrel man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� lsrel �� �� �����.
�� �
� � ���� �� chrel �� �����.
�� ��, �� Rel1� � (��� ���)� AntiAffinity� ���� �� �
�� ������.
chrel -p antiaffinity Rel1
�� ��
� 6 � �� � �� 91
��� �� chrel man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� chrel �� �� �����.
�� ��
�� � �� �� ��� � � ����� �� rmrel �� �����.
�� ��, IBM.Application ���� �� �� FloatWebServerA� �� � �
����� �� ��� ������.
rmrel -S IBM.Application:FloatWebServerA
��� �� rmrel man page� ���� IBM Tivoli System Automation for
Multiplatforms ���� rmrel �� �� �����.
�� ��
92 ��� � ��� ���
� 7 � System Automation for Multiplatforms� ��� ���
���� ��
� �� � �� ����� ���� �� �� ���� �� ����.
�� �� ��� � ��� ���� System Automation for Multiplatforms �
� �����. � �� �� ����� �� ��� ���� ��� �� ��
� �� ����. � �� � �� ��� System Automation for Multiplatforms
� �� ��� �� �����.
�� �� ��: �� ����
System Automation for Multiplatforms� �� � ��� �� �� ��� ��
�� ��� �� �����. � ��� ���� �� �� �� �
�� ���. �� ��, �� ��� ���� ��� � �� � �� A� �
���. ��� �� ��� �� �� � � ���� � ��� � ��
� ��(�)�� ���. � � ��� �� �� �� ��� ���
�� � � �� ��� ���. �� � � �� ���(non-ambiguous)�
�� �� ����. � ��� � �� �� �� � �� ����� System
Automation for Multiplatforms�� ��� � � ����.
��(ambiguous) ����� ��� node1 node2�� ��� � �� 2��
� �� A� B� ���� ��(collocated) �� � � �� �� �����. �
��� ��� 2��� �� � �� �����. �, A� B � � �� ���
node1� ���� � � node2� ����.
�� ���� �� �� ��� � �� � �� �� � �� �� ���
�����. ��� �� � � �� ��� �� � ���, � �� �� ���
� ���.
��: 2�� � �� "A"� "B"� � ��� ��� ��� � �� �� ��
�� ���� ��� �� "node1" � "node2"� �� � ����. �� "A"
�� "B" � "B"�� "A"�� AntiCollocated � � ���� �����. node 2
� ��� node 1�� "A" ��� � �� ���� �����. ���� ��
"B" ��� ���, ��� � ��� ��� � �� ��� �� � ���
�����. � ����� �� � ����� ��, � ���� �� ���
© Copyright IBM Corp. 2006, 2008 93
� �� � � � � . �� � �� ���� �� System Automat ion for
Multiplatforms� "��� � "� �����.
� ���� ��� ��� ��� � �� ����. � �� �� ��� �
����� �� ���� 10� ���� ����. Priority �� � ��� �� �
�� ��� �� ��� �� �� � 44 ���� �Priority ���� ����
�.
�� ���� �� � � �� � ��� �� System Automation for
Multiplatforms� � � ��� �� �� ����. � �� ����� ��
������ ���.
�� ��� � �� � � ���� ����.
1. �� ��: � ��� ��� � �� � �� �� ���� ��
�� ��� � �� �� � � ���� ����.
a. 1a ��: �� �� ��(�� ����) ��
�� � � � ��� ���� ��� � �� �� �� ����� �
� � ����. ��� �� ��� �� � � �� �� ��� ����
�� ��� �� �����. A --> Collocated(��) --> B, B -->
Collocated --> C � D --> Collocated --> E� � �� ��� ����.
��� A, B � C� �� �� � � D� E�� ���� ��� � ��
��. ����� �� �� � � � ���� �����.
b. 1b ��: OpState = ���� ��� ��� �� �� �
OpState� ���� ��� �� �� ����� �� � �� �� �
����. ��� � ����� �� � �� �� � ���� �� �
����� �����. �� �� ��� node1 node2�� ��� � ��
2�� � �� A� B� ���� �� �� R1���. � �� �� �
�� ��� ��� ���, �� A � B ��� � ��� �����
�� � ���. node2� �� ��� node2�� � �� A � B� �
��� ���� �� ��� �� ������. ��� node2� ���
�� �� ���� ���� � ��� �� �� �� ������ �
���� �����.
c. 1c ��: �� � �� �� �� ��
�� �� �� ���� ���� �� ��� ��, �� �� ��� ��
� �� ��� �� � ����. ��� � �� ��� �� �� �
� �� ���� ���� ���.
System Automation for Multiplatforms ��
94 ��� � ��� ���
��� �� � � �� A� B� ���� �� �� R1���. �
�� A� ����� ��� �� �� ���� ��� � �� �� �
� ��� �� �� �� ���� ��, � �� B� �����(�� ��
��� �).
2. �� ��: ‘��’ ����
���� �� �� ���� �� ����� �� �� �� � � ��� �
�� ���� ���. � � ��� 80 ���� ��� � �� � ��
��� �����. � � �� � � ��� ��� � �� �� ����, �
� Affinity(��) � AntiAffinity(���) � � �� Collocated � AntiCollocated
� � ��� �����. �� ������ ���� ���� �� �� �
� �� ���� �����. �� � ��� ��� ��, �� ��
� ��� �� ���� �����. �� � � System Automation for
Multiplatforms� ����� ��� �� � ����.
� �� � � �� � �� �� �� ��� �� ��� ��� �
�� ����. � ��� ���� �� System Automation for Multiplatforms
� ��� � �� �� � � �� ��� � � �����.
3. ��� ��: � �� ��� �� �� ��
��� � � ��� �� � � ���� ����.
a. 3a ��: Affinity � AntiAffinity ��� �� �
�� ��� ���� 1� �� Affinity � AntiAffinity � � ‘���’
�� � � �� � ���� � ���. �� ��� �� System
Automation for Multiplatforms� ��� ��� ��� ���� �
��. Affinity � AntiAffinity � � � ��� �� � � �����
�� � �� �� � �� ���� ����. � �� �� � �� �
��� Sacrifice � � �����. ��� �� ��� �� � �� ��
�� �� �� ����. �� Sacrifice � � �� � ��!��.
b. 3b ��: OpState = ���� ��� ��� ���� ��� �� �
� �� �
Affinity � AntiAffinity � � � ��� �� �� ���� �� ��
� �� � ��� �� �� ��(3a � �), �� ������
�� ���� ���� ��� � �� ���� ���� ����. ��
� � �� � �� �� � �� ���� ����.
�� ��� �� � �� �� ��, Sacrifice � � �����. ���
� �� Sacrifice� �� � � ��!��.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 95
��� � �� A� ���� �� �� R1, � �� B� ���� ��
�� R2 � A AntiCollocated B � ���. � �� A� B� node1
node2�� ��� � ��� node2� �� �����.
�� R1� �� ��� ����� ���, � � A �� ���� �
� ���� ���. ���� System Automation for Multiplatforms�
��� � �� ���� ���. ��� A� B� ���� ���. ��
� ���� � �� �� � ����. � �� System Automation for
Multiplatforms� Affinity � AntiAffinity � � � ���� � �� �
��� ����. �� ���� ���� �� �� �� ��� �
�����. � � B ��� ���� �����. �� A ��� node1�
��� �� �����.
��� �� �� �� � ��� �� ���� �����.
1) �� � �� ��� �� �����.
2) �� � �� ��� �� �� ����� ��� ���� ����
�.
3) �� �� � �� ��� �� ��� �� ��� � ����
�.
4) �� �� ��� ��� �� ���� ��, �� ���� ���� �
� ��� �����.
c. 3c ��: �� ��� �� �� ��� ��
�� � � �� �� �� ���� ���� �� ���� �
���� ���� ����. � �� ��� ���� �� ���� ���
� ���� �� �� ��� �� �� ���� �� ���� � ��� �
��� �� �� � � ��� �����. ���� �� �� �
� ���� �� ��, �� �� ���� � �� �� ���� � �
��.
���� ��� ��� �� ��� �� � ���� �� 2�� �� � �
�����.
1) �� � �� �� �� ���� � �� ��� �� ���� �
��� �����. ��� � ��� ��� �� ���� ��, �� �
��� ���� �����. � �� � � SAP Policy� �� �
System Automation for Multiplatforms ��
96 ��� � ��� ���
�� Policy� ���� � ��� ��, �� �� SAP �� �� ���
���� � �� ���� �� � �� �� �� ��� ���� �
� �� ��� �����.
2) ��� �� �� �� ��, ��� �� � �� ���� ����
� �� � ��� ���� �����.
�� � �� �� � ��� �� ���� �� ���� ��� ���
� � � � � � ���� �����. ��� ��, �� ���� �
��� �� ��� ����, � ��� �� ��� ��� ���� ��
���.
��:
v �� ��� ����� �� ���� ��� ��� ���. ��� �
�, �� ��� �� ���� �� �����. ��� �� ��� ��
� �� ��� ���� �����.
v � �� ��� ��� �� ���� �� �� � �� ��� ��
���� �� ���� � ����� ��� ��� ���. ���
�� �� ���� ��� � ����.
v ���� ��� �� ��� ��� �� ��� �� ��, 44 ����
�Priority ���� �����.
�� ��� ���� ���� ���
NominalState ��� ���� �� �� ��� � ������. �� �
�� �� ��� �� ��� �� � � ��� � �� ��� ��
�� �� � � �� � �� ��� ��� ���� � ���.
�� �� �� �� ��� ����� ��� � �� ��(� ��� �� � �
� ��� ��� �� ��� ���� � �� ���� ��), �� ��� ��
�� ��� ����. System Automation for Multiplatforms� �� �� ���
�� ����� ���� ��� ���� � � � �� �� ���� ��
� ����.
�� ���� �� ��� ����� ��� �����.
v �� �� �� ��� ��� � �� �� �� ���� �� �� ���
AllowedNodes ��� �(explained41 ���� �AllowedNode ��� �)��
�. ��� �� IBM Tivoli System Automation for Multiplatforms ����
chrg �� �� �� �����.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 97
v �� ���� �� ��� �����. � � ��� � �� ��� ���� �
� ��� ��� �� ���� � ����. ��� �� IBM Tivoli System
Automation for Multiplatforms ���� rmrgmbr �� �� �� ��
���.
v �� �� ��� ���� ���� �� � � �� ��� ��� �� ���
�����. � �� System Automation for Multiplatforms� �� ������.
� � �� � � ���� �� ��� ��� �� � ����. ��� �
� IBM Tivoli System Automation for Multiplatforms ���� addrgmbr
�� �� �� �����.
v System Automation for Multiplatforms�� �� � �� �� �� ����
�� �� � � �� ��� �����. � � � ��� ����� ��
� �� � � �����. �� �� ��� ����� � � ����. ���
���� �� RMC startrsrc �� �� �� ����(��� �� � �
� �� man page �).
v �� ��� �� ��� �� ���� ��� ���� ���� System
Automation for Multiplatforms� �� � �� �� � ����� ��
��� � ����. ���� ���� ��� �� ���� ��� �
�� ��� ���� ���. ��� � ��� �� NodeNameList ��� �
�� ���� ���� �����. ��� �� RMC �� � man page
� �����.
v � � �� � ���� ����� � ��� ����. � � � ��
���� ���� � ���� �� �� � � �� � ����.
v �� ��� NotMandatory� ���� � ��� ����� ���. � � �
� �� ��� �� � ����. ��� �� IBM Tivoli System Automation
for Multiplatforms ���� chrgmbr �� �� �� �����.
v ��� �� � �� �� �� ��� � ���� ��� �����. � �
��� ����� �� �� System Automation for Multiplatforms� ��
��� � ����. ��� �� RMC resetrsrc �� �� man page� �
����.
v ����� � �� ����� ���. � � System Automation for
Multiplatforms� �� ��� ����� ��� � ����.
v �� ��� ���� ��� ����(44 ���� �Priority ��� �). ��
�� � �� ��� ���� ��� �� �� ��� �� ����. �
��, ����� ��� ����� ����� �� ��� ����� ����
���.��� ��� �� � ���� ����.
System Automation for Multiplatforms ��
98 ��� � ��� ���
v �� ���� �� ��� ���� �� ���� �� ��� ���� ����
���. � � �� � ��� � � ����. ��� �� IBM Tivoli
System Automation for Multiplatforms ���� chrg �� �� �� �
����.
�� ��� �� � NominalState ��� ���� ��, �� ��� �� ��
��� �� �� � ����.
1. NominalState �� �� ������ ����� ����.
2. NominalState �� �� ����� ������ ����.
IBM Tivoli System Automation for Multiplatforms� � ��
� ���� �� ���� System Automation for Multiplatforms� ���� ��
�� �� �� ����.
�� ���
�� ���� StartCommand, MonitorCommand � StopCommand� �� ���
����.
StartCommand �
IBM Tivoli System Automation for Multiplatforms� ��� StartCommand ��
� ���� �� �� ���� ��� ����� �����.
�� ����� StartCommand� �����.
v �� ��� NominalState ��� ����� ��� � ��� �� ����
� �� ��
v ��� ���� � ��� OpState� ����� ������ � ��
�� �� � ��� �� OpState� ������ ��� �� StartCommand�
���� ����.
v �� ��� NominalState� ������ �� ���.
v System Automation for Multiplatforms�� � ��� �� ��� ���� �
� � ��� ����� �� �� ������.
StartCommand� ��� �� ��� �� ���� �� ��� ���� �
� � StartCommand �� �� ��(RetryCount ��� ���)� ���� �
�� �, �� ��� ���� ��� �� ��� ���(�)� ���.
MAX(StartCommandTimeout, MonitorCommandPeriod, MonitorCommandTimeout) + 5
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 99
�:
1. System Automation for Multiplatforms� �� ���� ���� ���� +5
� ���� ����. ��� System Automation for Multiplatforms ��
� �� ���� ��� �� �� � 5��� 8� � �����.
2. �� StartCommand �� �� ��� OpState� ��� � ���� � �
�� ���� �����. OpState� �� �� ��� ��� �� ����
� � �� ��� ��� ���� ����, ��� OpState� �����
� �� � �� ��� StartCommand� �����.
���� System Automation for Multiplatforms� StartCommand� ����
�����. �� System Automation for Multiplatforms� �� ���� �� �
� � �� ��� ��� � � ����� � ���.
��� ��� ��� � �� StartCommandTimeout ��� ��� ����.
StartCommandTimeout �� StartCommand� � ���� �����.
StartCommand� StartCommandTimeout �� �� ���� �� ��, System
Automation for Multiplatforms� SIGKILL ��� StartCommand� kill�� �
� �� ��� ���� �����.
StartCommandTimeout �� �� ���� ����� ����� System
Automation for Multiplatforms� �� ��� ���� �� �� ���� �� �
����. �� ���� StartCommandTimeout� �� ��� ����� ��
��� kill���. � ��� System Automation for Multiplatforms� ����
�� ���� �� � �� �����. ���� ����, �� �� � ��
� ���� ����� ����� �� StartCommand�� ���� ���.
v �� � ��� � � �� ��� ������ ����� ����� �
�����. ��:
/usr/bin/application >/outputfile 2>&1 &
v ‘setsid()’ C-��� ���� � �� ������ ���� �� StartCommand
�� ����� ����� ������.
v �� ��� ���� ��� ������ ��� �� ���
RunCommandsSync �� �� 0�� �����. ��� �, System Automation
for Multiplatforms� ��� StartCommandTimeout ��� ���� StartCommand
� �� �� �� ����� ��� ��� ��� � ����.
�!: � ��� ���� ��, System Automation for Multiplatforms� �
StartCommand� �� � ���� �� StartCommand� ���� � �
�� ��� ���� ����. ��� ��� ��� �� �� ����� �
� �� ��, System Automation for Multiplatforms� RetryCount� �� �
� StartCommand� ������.
System Automation for Multiplatforms ��
100 ��� � ��� ���
MonitorCommand ��
System Automation for Multiplatforms� IBM.Application ��� MonitorCommand
� ���� ��� ��� OpState� �����. System Automation for
Multiplatforms� ��� �� �� �� ���� ���� �� � ��� ���
��� �����. ��� NodeNameList ��� �� ��� ��� �����
���� �� ��� � ��� ������.
�� �� �� MonitorCommandPeriod ��� �� ��� MonitorCommand
� �����. ��� �� �� �� ����� ��� � � � ��� ���
� �� � ��� � ��� � ������.
System Automation for Multiplatforms ��� 1.2��� ��� StartCommand �
� StopCommand� �� ���� MonitorCommand� �����(� ���
RunCommandsSync ��� 1(���)� ��� �� �� ��� �� ����
���). � � �� �� ��� �� �� �� ��� ��� �� �� ��
�, ��� StartCommand �� StopCommand� �� ��� ��� OpState� �
����. � MonitorCommand� ��� � MonitorCommandPeriod �� ��� �
� �����. �� �� MonitorCommand� MonitorCommandPeriod � ��� �
��� �� � ���.
System Automation for Multiplatforms ��� 2.2��� MonitorCommandPeriod
�� �� �� ��� �� MonitorCommandTimeout �� ��� �� � �
���. �� ��� MonitorCommandPeriod� ��� MonitorCommand ��� �
��� �� �� � � �� ��� ���� ��� ����� . � �
MonitorCommandTimeout �� MonitorCommandPeriod� � �� ��� � �
���, �� ���� MonitorCommand ����� ���� MonitorCommand�
�� ��� � ����. ��� MonitorCommand� ��� � ���� ���
� �� ����.
��� �� �� ��� ��� �� MonitorCommand� ���� �� �
�� ��� � � �� ���.
1. MonitorCommand� ��� ��� ���� �� ��� �����. ��� �
� ����(�� ��� NominalState� �����) ���� ��� ���� �
��� ��, System Automation for Multiplatforms� ��� MonitorCommand
� �� �� ���� � ��� �� ������ �� �� StopCommand
� �����.
�� �� �� ���� ��� �� ������ ��� �� �� ��, �
� �� ��� ���� �� �� System Automation for Multiplatforms
�(rgreq �)� ���� ���. ��� NominalState� ����� ����
�� ��� NominalState� ��� �� �� �� ���� ����� ���.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 101
2. MonitorCommandTimeout ��� ���� ��� ��� ���� �� ��
�� MonitorCommand� ���� �� ��, System Automation for
Multiplatforms� SIGKILL ��� MonitorCommand� kill�� �� ��
��� ���� ���� ��� OpState� � � ���� ����. � �
� �� �� �� �� � �� ��� �� ��� � � �����
����. ���� �� ��� �� ���, MonitorCommandTimeout �
� �� ���� �� �� ��� ���.
StopCommand ��
���� StopCommand� System Automation for Multiplatforms� �� ��
�� ����, �� System Automation for Multiplatforms� �� ���� ��
�� � ��� ��� � � ����� � ���. �� � ��� ��
StopCommand� ���� � ��� � ��� ���� StopCommandTimeout
��� ����. StopCommand� StopCommandTimeout �� �� ���� ��
��, StopCommand� System Automation for Multiplatforms�� SIGKILL �
� ���� kill���. ��� ��, � �� �� ��� ���� �����.
��� �� StopCommand� ��� �� ���� ��� �� �� ���
OpState� ������ ��� ��, System Automation for Multiplatforms�
� ��� �� �� �� �����. ��� ���� ��� ��(�) �
� ��� ���� ���.
MAX(StopCommandTimeout, MonitorCommandPeriod, MonitorCommandTimeout) + 5
System Automation for Multiplatforms� �� ���� ���� ���� +5� �
��� �� �� ������. System Automation for Multiplatforms �� �
� ����, � �� 5 - 8�� ���� �� ��� � ����.
��� �� �� �� ��� StopCommand� ��� �����, �� �
� �� �(SA_RESET)� 1� ����. � �� ��� StopCommand ��
� �� �� �� ��� ���� �� �� � ����. ��:
#/bin/sh# A sample stop/reset automation script for the lpd applicationif [ $SA_RESET == 1 ]; thenkillall -9 lpdexit $?
else/etc/init.d/lpd stopexit $?
fi
StopCommand� �� ��� ��� �� �� ����� � �� � ��
��. �� ��, �� ����.
System Automation for Multiplatforms ��
102 ��� � ��� ���
#/bin/sh# A sample stop/reset automation script for the lpd applicationif [ $SA_RESET == 1 ]; thenexit 0
else/etc/init.d/lpd stopexit $?
fi
�� StopCommand� ��� ��� ��� ���� �� ��, ��� OpState
� ��� ��� ���, �� ��� ���� �� �� �� ��� ����
� ���. System Automation for Multiplatforms� ���� ���� ��� �
�� �� ���� �����.
� �� IBM Tivoli System Automation for Multiplatforms ��� 2.2�� ��
� ���. �� ����� �� � ���� ��� ����.
v �� � ��: 2.2 ���� �� �� �� �����.
v �� ��: �� ���� �� �� �� ��� �� �� �� ����
�. � �� �� �� NodeNameList ��� ���� �� resetrsrc ��
���� ��, �� ��� �� �� �� �����. � ��� �� � �
� �� � �� �� ���� ��, � �� �� � �� �� �� �
�� ����� � ��� �� �� �� � �����. ���� �� �
�� �� ��� resetrsrc� ��� ��� NodeNameList ��� ���� �
� ����.
v �� �� �� �� �� �� ��: ��� ��� 93 ���� � 7 � �System
Automation for Multiplatforms� �� ��� ���� ��� �����.
System Automation for Multiplatforms� ���� ���� ��� �
�� OpState �� � �� ��
�� � �� �� �� �� �� �����.
� � ��� � �� ����.
�� 3. � �� �
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 103
v 2� ����
v ��� �����
– node1: ���� ��
– Node2: stand-by ��
v �� ��: RG1(��� ���)
– � ��: Res1
– � ��: Res2
– � : Res1 DependsOn. Res2
v �� node1�� ������.
�� 4� System Automation for Multiplatforms� �� ����� ��� ��
�� OpState �� �����.
��� OpState� �� � �� 7�� �� ����. ��� OpState� System
Automation for Multiplatforms�� MonitorCommand� ���� ����, ���
�� OpState� MonitorCommand� �� � �� System Automation for
Multiplatforms� �����. MonitorCommand� System Automation for
Multiplatforms� OpState � ��� � ����� �� �� � ����, ��
� �� � �� �� OpState � � �� ���� �� �� ������.
� � �� �� ���� ��� � � OpState �� System Automation for
Multiplatforms� �� �� � ����. �� ��, ��� � � �� Opstate�
�� 4. ��� ��� �� �� �� �
System Automation for Multiplatforms ��
104 ��� � ��� ���
� ��� MonitorCommand� ��� ��� ����. ��� System
Automation for Multiplatforms� � ��� OpState� �� �� � � ���
�.
�� �� �� �� ���� System Automation for Multiplatforms� Res1 �
Res2 ��� OpState� ��� ����� �� ����. � ���� �� OpState
� ��� ��� � ���� ��� �� ��� OpState �� ���� ���
������. ���� OpState �� �� �� �� 'unlikely'� �� ��
��.
Res1 ��� OpState �
node1�� Res1 � Res2� �� ��� ������. �� ���� System
Automation for Multiplatforms� Res1� �� MonitorCommand� �� �� ��
���� �� �����.
� 6. Res1 ��� OpState �� �� System Automation �
MonitorCommand
(OpState)
System Automation� � �
��
System Automation� � �
��
RC=0(� � ��) => �� , R C < > 0� �� ��
MonitorCommand ��
��
RC=1(���) => �� ��
RC=2(����) => Res1 �� ��
RC=3(���� ��) => Res2 �� Res2� ����� ��, node2�
� �� � � ���
������.
RC=4(��� ��) => ��: ��� � �� ��
RC=5(��� ���) => �� � ��, ��� �� ��
RC=6(���� ��
�)
=> ���� �� ��
Res2 ��� OpState �
node1�� Res1 � Res2� �� ��� ������. �� ���� System
Automation for Multiplatforms� Res2� �� MonitorCommand� �� �� ��
���� �� �����.
� 7. Res2 ��� OpState �� �� System Automation �
MonitorCommand
(OpState)
System Automation� � �
��
System Automation� � �
��
RC=0(� � ��) => �� , R C < > 0� �� ��
MonitorCommand ��
��
RC=1(���) => �� ��
RC=2(����) => Res1 �� �� �� Res1� ����� Res2 ��,
Res2� ���� Res1 ��
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 105
� 7. Res2 ��� OpState �� �� System Automation � ( �)
MonitorCommand
(OpState)
System Automation� � �
��
System Automation� � �
��
RC=3(���� ��) => Res1 �� �� �� node2�� �� � �
��� ������.
RC=4(��� ��) => ��: ��� � �� ��
RC=5(��� ���) => �� � ��, ��� �� ��
RC=6(���� ��
�)
=> ���� �� ��
System Automation� �� ��� OpState� ���� ��
IBM Tivoli System Automation for Multiplatforms Policy �� ��� ����
�. ��� ��� �� �� ��, �� ���� � ��� ����� ��
�� �� �� �� ��� ����� ����� � ���. � �� �� ��
� NominalState� ��� �� ������ ��� ��� �����. � ���
�� �� System Automation for Multiplatforms� � Policy� �� ���
�� �� �� ���� ��� �����.
�� ��� OpState(�� �� ��) �� �� ��� NominalState � ��
� � �� ��� �� �� ��� OpState �� �����. �� �� ��
��� NominalState� ����� � ��, � �� ��� ��� � ��
�� � � � � �� ��� OpState� ��� ���� ���� ����. �
��, �� ��� �� ��� �� ��� NominalState �� �� ��� ��, �
� ��� OpState� ����� ���, �� ��� � OpState �� �� ��
� ��� �� ��� ������ � �� � ����.
�: ��� ��� �� �� �� �� ��, ��� �� �� �� �
OpState� �� � ����. ��� ��� 202 ���� ��� �� � �� �
�� �� � ���� �����.
�� �� System Automation for Multiplatforms� �� ���� �� �� �
� Res1 � Res2� OpState� �� �� ��� OpState �� �� ���� ��
�����. � ��� ���� � �� ��� �� ��� �����
�� ������.
� 8. �� �� OpState ��
Res2� OpState Res1� OpState �� ��� OpState System Automation�
��
� � �� � � �� => � � �� ��
���� ���� => ���� ��
��� ��� ���� => ��� ��� Res2� ���� � �
� ��
System Automation for Multiplatforms ��
106 ��� � ��� ���
� 8. �� �� OpState �� ( �)
Res2� OpState Res1� OpState �� ��� OpState System Automation�
��
��� ���� => ��� ��� Res1 ��
��� ��� ��� => ��� ��� Res1� ���� � �
� ��
��� ��� => ��� ��
��� ���� ��� => ���� ��� Res1� ����� � �
� ��
��� ���� �� => ���� ��� Res2 ��
���� ��� ���� => ���� ��� Res2� ����� � �
� ��
���� �� ���� => ���� ��
System Automation� �� �� ���� ��� OpState �� � �
� ��
System Automation for Multiplatforms� ��� �� ��� DesiredState �
��� OpState �� �� ��� ������. ��� ��� OpState� DesiredState
� � � ��� �� ���� ���� . �� System Automation for
Multiplatforms� ��� OpState� �� �, �� �� �� ��� ��� �
MonitorCommand� �� ������ ��� � �� ����.
��� �� �� � ��� ���� StartCommand� �� ��� .
StartCommand� ��(0� �� �� )� ���� ��� ����� �����
� ��, System Automation for Multiplatforms� � � �� ��� ��
��� �����.
�� ���� ��� StartCommand �� StopCommand� ���� �� �� �
�� ��� ��� OpState� ��� �� System Automation for Multiplatforms
� �� ���� �� �� ����.
System Automation for Multiplatforms V2R2�� ���� ���� ���
MonitorCommand� �� �� ��� ����. �� ��� �� StartCommand
� ���� �� � ����. � �� ��� OpState� ��� ������
�� System Automation for Multiplatforms� �� ��� � ��� �� �
OpState� ����. �� � � �����.
v MonitorCommand� �� �� OpState� ����� ����(��� ���
���� ��).
v MonitorCommand� �� �� OpState� ���� ��� ����(� �� �
��� ��� � �� �� �� �� � ��� ��� � ��� System
Automation for Multiplatforms� ���).
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 107
�� ��� ��� StopCommand� ��� ����. ��� ��� OpState
� � �� �� ���� ����� ����. ��� ��� �� ���
�.
v MonitorCommand� ���� �� ���� ��� �����(��� ��� �
����� ���).
v MonitorCommand� ��� ��� �����(System Automation for
Multiplatforms�� ��� �� � ��� �� ��� ���� �� ���).
StartCommand
�� �� System Automation for Multiplatforms� StartCommand� �� ��
OpState �� ���� �� �� ����. MonitorCommand� OpState
�� �� � �� � ��� ��� ��� �� �� ��� �� ����.
1. StartCommand� �� �� ����(�� �� �� StartCommand).
2. StartCommand� ���� ��� ���(��� ��).
3. StartCommand� ��� �� ��� �� ���� ���.
StartCommand � � �:
� 9. StartCommand� �� �� � �� System Automation �
StartCommand MonitorCommand System Automation� ��
StartCommand� ��� �� �
��� �����.
RC=0(� � ��) OpState� ��� �����
����(��� ��).
RC=1(���) �� �� ��(��� ��)
RC=2(����) OpState� ��� �����
����(��� ��).
RC=3(���� ��) ��� � �� �� ���
�, �� �� ��� �� ��
��� � ����.
RC=4(��� ��) �� � ��
OpState� ��� �����
����(��� ��).
RC=5(��� ���) OpState� ��� �����
����(��� ��).
RC=6(���� ���) �� � ��
OpState� ��� �����
����(��� ��).
�:
1. MonitorCommand� ��� ����� ���, ��� ����� ���� �
�� ��� � ��� System Automation for Multiplatforms� StartCommand
� �� � �����.
System Automation for Multiplatforms ��
108 ��� � ��� ���
2. MonitorCommand� ��� ���� ��� ��� �� ��� ������.
�� �� �� OpState � ��� ����� ����, System Automation
OpState� ����� �� � � �����.
StartCommand �� �: � ���� StartCommand� ���� ��� �
� ���� �� ��� �� �� ����.
� 10. StartCommand� �� �� � System Automation �
StartCommand MonitorCommand System Automation� ��
RC=0(��) � �� ��� � <
RetryCount(samctrl)
RC=0(� � ��) OpState� � �� ��� ���
� � � � ���� ����.
RC=1(���) OpState� ����� ����.
�� � ��� �� ���
�����.
RC=2(����) OpState� ��� �����
����(��� ��).
��� ���� �� �� �
�����.
1. �� �� �����.
2. ��� ��� ��� ��
���.
3. ��� �� ����.
RC=3(���� ��) OpState� ���� ��� ��
��. �� � ��� �� �
�� �����.
RC=4(��� ��) �� � ��
OpState� ��� �����
����(��� ��).
RC=5(��� ���) OpState� ��� �����
����(��� ��).
RC=6(���� ���) �� � ��
OpState� ��� �����
����(��� ��).
RC=0(��) � �� ��� � =
RetryCount(samctrl) � ��� �
�� �
��� ���� ��� ���,
��� �� �� �� ����
�. � �� ��� � ��
�� ����, �� �� ���
�� �� ��� � ����.
StartCommand� ��� �� ���� �����: � ���� ��� OpState
� �� ��� StartCommand� ��� ����� ���� � � ����
�� ��� �� �� ����.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 109
� 11. StartCommand� ��� �� ��� �� ���� � � System Automation �
MonitorCommand StartCommand System Automation� ��
RC=0(� � ��) RC=1(0� ��) �� �� ��
����
StartCommand� 1� ���,
��� � �� �� �� �
����. MonitorCommand� �
� � �����.
RC=1(���) RC=1(0� ��) �� �� MonitorCommand� 1(���)�
���, StartCommand� ��
��� � ��. �� �� �
�� ����. ��� �����
�� ����.
System Automation for Multiplatforms ��
110 ��� � ��� ���
� 11. StartCommand� ��� �� ��� �� ���� � � System Automation � ( �)
MonitorCommand StartCommand System Automation� ��
RC=1(���) StartCommand ���� MonitorCommand� 1(���)�
���, StartCommand� ���
� StopCommand �� �� �
��� �� ����� ��
��.
��� System Automation �
�� � StartCommand� kill�
�, � �� StartCommand
������ ���� ����
� �� �� ���� ���
kill �� ����. ��� ��,
��� OpState� �� �����
� ����. MonitorCommand
� ��� ����� �� ���
� �� System Automation �
�� � ��� �� ����
�.
StartCommand� �� ���
��� � � �� ��� �
�� � � . �� �� , ���
OpState� ����� �� �
� ���� � � � ��
RetryCount� ��� �� ��
��.
��: ��� ��
StartCommand �� ��� ��
� ����. ��� ����
� ����� !�� kill ��
��� MonitorCommand� ��
�� ��� ��� �� ��
� ����. � �� � �
���� ��� � ��� �
����.
IBM.Application ���
StartCommand �� �� ��
�� ��� 235 ���� ���
�� ��� ���� ����
�.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 111
� 11. StartCommand� ��� �� ��� �� ���� � � System Automation � ( �)
MonitorCommand StartCommand System Automation� ��
RC=2(����) RC=1(0� ��) �� �� ��
����
StartCommand� RC=1� ���
�� ��� System Automation
for Multiplatforms� �� ���
�� ��� � ��.
�� �� ��� ��
killpg()� �� � �����
kill���(235 ���� ���
�� ��� ��� �).
RC=3(���� ��) RC=1(0� ��) �� �� ��
����
MonitorCommand� ��� 3(�
��� ��)� ��� �� ��
� �� � � �� ,
StartCommand� ��� ���
��� ��� �� ����.
RC=4(��� ��) RC=1(0� ��) �� �� ��
����
�� � �� ���,
StartCommand� RC=1� ���
�� ��� System Automation
for Multiplatforms� �� ���
��� �� �����.
RC=5(��� ���) RC=1(0� ��) �� �� ��
����
StartCommand� RC=1� ��
� �� System Automation
for Multiplatforms� �� ��
� ��� ��� ������
�� � �� ��� � �
�.
RC=6(���� ���) RC=1(0� ��) �� �� ��
����
�� � �� ���,
StartCommand� RC=1� ���
�� System Automation for
Multiplatforms� �� ��� �
�� ��� ������ ��
� �� ��� � ��.
�: MonitorCommand� ��� ����� ���, StartCommand� �� �
�����. � ���� �� �� ��� ����.
v StartCommand� ��� ��� ����� �����.
v MonitorCommand� ��� ����� �����.
StopCommand
� �� ���� System Automation for Multiplatforms� StopCommand� ��
�� OpState �� ���� �� �� ����. StopCommand� System
Automation �� �� � ��� ����. �, ��� � StopCommand�
�����. �����, ��� � StopCommandTimeout �
ResetCommandTimeout� � ��� �� ����.
System Automation for Multiplatforms ��
112 ��� � ��� ���
MonitorCommand� OpState �� �� � �� � �� ��� �� �� ��
� ��� ����.
1. StopCommand� �� �� ����(�� �� �� StopCommand).
2. StopCommand� ���� ��� ���(��� ��).
3. StopCommand� ��� �� ��� �� ���� ���.
StopCommand � � �:
� 12. System Automation � � StopCommand� �� �� ��
StopCommand MonitorCommand System Automation� ��
StopCommand� ��� �� �
��� �����.
RC=0(� � ��) OpState� ���� �����
����(���� ��).
RC=1(���) OpState� ���� �����
����(���� ��).
RC=2(����) �� ��� � ���� �
RC=3(���� ��) �� ��� � ���� �
RC=4(��� ��) ��� � ��
RC=5(��� ���) �� � ��
OpState� ���� �����
����(���� ��).
RC=6(���� ���) OpState� ���� �����
����(���� ��).
MonitorCommand� ��� ���� �� ���� ��� ���, ��� ���
�� ���� ��� � ��� � ��� System Automation for Multiplatforms�
StopCommand� �� � ����� �� ������.
��� OpState� ��� ��� ���� ��, System Automation for Multiplatforms
� ��� �� � �� ��� ���� ��� �����. �� �� �� OpState
� ���� ����� ����, System Automation for Multiplatforms�
OpState� ������ �� � � �����.
StopCommand �� �: � ���� System Automation for Multiplatforms
� � ��� �� ����.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 113
� 13. StopCommand� �� �� � System Automation �
StopCommand MonitorCommand System Automation� ��
RC=0(��)
�
( (���� ���� ����
��) ��
(��� �� ��� ���
�� ���� ����
��) )
RC=0(� � ��) OpState� ���� �����
��, ���� ��
RC=1(���) OpState� ���� �����
����(���� ��).
RC=2(����) OpState� ������ ���
�. StopCommand ��� ��
��� �����.
RC=3(���� ��) OpState� ���� ��� ��
��. StopCommand ��� ��
��� �����.
RC=4(��� ��) OpState� ��� ��� ��
��. StopCommand ��� �
� ��� �����(���
� ��).
RC=5(��� ���) �� � ��, OpState� ���
� ����� ����(��
�� ��).
RC=6(���� ���) OpState� ���� �����
����.
RC=0
(��)
�
���� ��� �
OpState� ���� �����
����(��� �� ���
��).
RC=0
(��)
�
�� ��� �
OpState� ��� ��� ���
�(��� � ��).
StopCommand� ��� �� ���� �����: �� �� StopCommand
� ��� �� ����� ���� � ���� ��� �� � ���.
StopCommand� �� �� �� ��� �� �� �� �� ��� ���
�� �� �����.
� 14. StopCommand� ��� �� ��� �� ��� � System Automation �
StopCommand MonitorCommand ��� ��
RC=1
(0� ��, �� �� �� ���
�) �
( (���� ���� ����
��)
��
(��� �� ��� ���
�� ���� ����
��) )
RC=0(� � ��) �� ��� �� �
RC=1(���) �� ��� �� �
RC=2(����) �� ��� � ���� �
RC=3(���� ��) �� ��� � ���� �
RC=4(��� ��) �� ��� �� �
RC=5(��� ���) �� ��� �� �
RC=6(���� ���) �� ��� �� �
System Automation for Multiplatforms ��
114 ��� � ��� ���
� 14. StopCommand� ��� �� ��� �� ��� � System Automation � ( �)
StopCommand MonitorCommand ��� ��
RC=1
(�� ��)
�
���� ��� �
OpState� ���� �����
����(��� �� ���
��).
RC=1
(�� ��)
�
�� ��� �
OpState� ��� ��� ���
�(��� � ��).
�:
1. ��� OpState� ����, ���� �� �� ��� ��� �� � � �
OpState� ���� ����� ����. OpState� ���� ��� �
� �� ���� �� ���� ��� ��� �� ��, System Automation
for Multiplatforms� ��� �� �� �� ����, �� StopCommand
� ��� ������. OpState� �� ��� �� ��� ����, ��
�� �� �� ��� ��� ��� �� ��, ��� �� ��� ���
� � � ���� ��� � ��� �� �� ��� �� ���� � .
StopCommand �� �� �� �� � 0� �� ��, �� �� ��
� �� ��� �� ‘Problem’� ���. � ���� ���� �� resetrsrc
� ���� ��� ���� ���. ��� � �� �� �� � 0�
�� ��, ��� �� ��� ‘Problem’ ��� ��� �� ����.
2. ��� �� ��, �� �� ��� ��� �� ��� ��� ���
�.
��� �� ���� ����� ��� MonitorCommand� �� ���
� ��� OpState� ���� � System Automation� � �� ��
�� ���� ��� � ��� ����� MonitorCommand� � ��� �
��� �� �� OpState� ���� �� System Automation for Multiplatforms
� �� �� �����.
� 15. MonitorCommand� � ��� ��� OpState �� ��� � System Automation
�
stand-by ��� MonitorCommand System Automation� ��
RC=0(� � ��) MonitorCommand� RC<>0� �� � � � �
�� �� ��� ��� �� ����.
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 115
� 15. MonitorCommand� � ��� ��� OpState �� ��� � System Automation
� ( �)
stand-by ��� MonitorCommand System Automation� ��
RC=1(���) 1. �� ��� � �����.
�� �� ��� ��� ��� �� ��
�����.
v dependsOn �� forcedDownBy � � �
� ���� �� ��
v �� �� ���
���� ��� ��� � �� ��� �
� � ����. �, � (�� �� ��)�
�� ���� �� ��� �����(93 ��
�� ��� � �: �� ���� �).
2. �� � � ���� �� �����.
RC=2(����) � ��, �� stand-by ��� ��� �
� OpState���.
RC=3(���� ��) � ��, ��� � �� �� �� ���
�� ���� ����.
RC=4(��� ��) �� � �� ���� ��(..��� ��� OpState
� ��)
RC=5(��� ���) ��� ��
RC=6(���� ���) �� � �� ���� ��(..��� ��� OpState
� ��)
���� �� �� �, �� stand-by �� ���� ��� � �� 2�
��� ��� ��� ����� ����� �� System Automation for
Multiplatforms� ��� � � ��� ����� �����. � �� �
��� �� ���� �� �� ��� ��� � ��� �����. �� ��, �
��� �� DependsOn � � �� �� ��� �����. ��� System
Automation for Multiplatforms �� �� �� ����� ��� ���� �
��� ���� �� �� ����.
�� ��� �� ��
117 ���� �� 5� System Automation�� ��� ���� ���� ��
� ���� �� �� �����.
System Automation for Multiplatforms ��
116 ��� � ��� ���
��� ���(�1�) �� ��� ��� ��� ������, � �� ��� ��
����, �� ��� ��� � ���� ��� �� ��� �� � �
���� ���.
�� ��� �� ��� ����� ��(�2�), ��� ��� ��� �����
����. �� ��� �� � ������(�3�).
�� � ���(�4�) �� ��� Policy� �� �� ���� ���� �
� ��� �� ���� �� �� ��� �����. �� � � ��� ��
��� �� ��� ���� ���(�5�), ��� �� �� ��� ��
� �� ��� ��� �� ��� ���� ����.
�� �� �� ���� �� � System Automation� � ���� �� �
� �����. �� � �� ��� ���� �� ��� ����(�6�) ��
Policy� �� �� ��� ����� �����. �� �� ��� �� ���
�� ��� ��� ����� ����(�7�).
�� ��� ��� �� �� ��� �� ��� ����� ����(�8�).
�� 5. �� ��� �� ��
System Automation for Multiplatforms ��
� 7 � System Automation for Multiplatforms� �� ��� ���� � 117
�� ��� �� ��� ������ ��(�9�), �� ��� ��� ��� �
����� ����(�10�). � �� System Automation� �� ��� �� �
��� �����. �� � ��� �� ��� ����(�11�) �� Policy� �
� �� ��� ����� �����. �� �� �� �� ��� ���� �
���� ����(�12�). �� ��� ���� �� �� ��� �� ��� �
����� ����(�13�).
� �� � ���(�14�) �� �� ���� � ��� �� ���� ��
��, �� ��� �� ��� � ����� ����(�1�).
System Automation for Multiplatforms ��
118 ��� � ��� ���
� 8 � Integrated Solutions Console ��
� ���� SA �� ��, Policy ���, � �� �� ��� ����� ��
� �� ��� � Integrated Solutions Console�� �� ��� ������ �
� ����.
Integrated Solutions Console�� ��� ��� ���� ���� ��
����� �� ��
� ���� Integrated Solutions Console�� System Automation for Multiplatforms
���� �� � �� ��� �� ��� ���(�� ��� ID: eezadmin)�
�����. �� ����� ��� ����, ��� ���� � ��� ID� SA
�� �� � �� System Automation for Multiplatforms �� ��� �� �
� �� � �� System Automation for Multiplatforms �� ��� ��� ��
�� ���. ��� ���� � ��� ID� �� ��� ��� ��� ��
� ��� �� � ����� ���.
�� �� ���� Integrated Solutions Console� �� �� ���� ���� �
� ��� �� ��� ���� � � ����(��� ��� 145 ���� ��
�� �� �� ��� �).
Integrated Solutions Console�� System Automation forMultiplatforms� �� �� � ��� �� � �� �
�� ��� ID � ��� �� SA �� �� � �� �����. ��� ��
���� ��� � ���� ����.
WebSphere �� � supressmonitor� Integrated Solutions Console� WebSphere
�� �� ���� ��� � ��� ��� �����. � �� ���� ��
��(�, WepSphere �� ���� ��� � �� �� �� ��) ��� ��
����� WebSphere �� ���� ���� ����.
�� �� ��� ID(�� �� ���) �
EEZAdministratorGroup eezadmin EEZAdministrator,suppressmonitor
EEZOperatorGroup EEZOperator,suppressmonitor
EEZConfiguratorGroup EEZConfigurator,suppressmonitor
EEZMonitorGroup EEZMonitorGroup,suppressmonitor
Integrated Solutions Console�� ��� �� � �� �� �� �� ��� �
�� Websphere Application Server ��� �����.
© Copyright IBM Corp. 2006, 2008 119
System Automation for Multiplatforms� �� �� �
� 16��� Integrated Solutions Console�� ����� �� ��� System
Automation for Multiplatforms ���� ���� ��� �� �� ����.
��� � SA �� �� � �� ���� ��� � � ��� � �
�� ��� �����. �� ���� ��� �� ���� �� ���� ���
��� ��� ID� �����.
EEZ* ��� �� ����� System Automation for Multiplatforms ����
�� ��� � �� ��� �����. �� �� �� ���� Websphere
Application Server Administrator ��� �� �� ���� ���� �� �
����.
� 16. System Automation for Multiplatforms� �� ��� �
� �� �� ��
EEZMonitor � ��� ��� �����. � �� �� ����
� � � ��� �� � ��� ��� policy� ���
� ������� ��� ��� ���� �� �� �
����(�: �� �� �� � ��).
����� ���� �� ���� EEZMonitor �����
�����.
v SA �� ��
v �� ��� �� ��
EEZMonitorGroup
EEZOperator EEZMonitor �� �� �� �� �� ��� � �
� �� ���� ��� �� �� �� � ����. �
� ���� ��� ��� ���(�: policy ��
� � ����)� ����� ���� ����.
����� ���� �� ���� EEZOperator �����
�����.
v SA �� ��
v �� ��� �� ��
EEZOperatorGroup
EEZConfigurator EEZMonitor �� �� �� �� �� ��� � �
� �� ���� ��� ��� ���(�: policy ���
� ����)� �� � ����.
� �� �� ���� ��� �� �� �� � ��
��. � � policy� �� ��� ���� �� ��
����.
����� ���� �� ���� EEZConfigurator ���
�� �����.
v SA �� ��
v �� ��� �� ��
v ��� policy ���
v �� ��� policy ����
EEZConfiguratorGroup
120 ��� � ��� ���
� 16. System Automation for Multiplatforms� �� ��� � ( �)
� �� �� ��
EEZAdministrator � ��� ��� ���� EEZOperator �
EEZConfigurator �� �����.
� �� �� ���� SA �� ���� �� ��� �
� ��� �� � ����.
����� ���� �� ���� EEZAdministrator ��
��� �����.
v SA �� ��
v ��� policy ���
v �� ��� policy ����
v �� ��� �� ��
v Tivoli Enterprise Portal ������ ��(launch-in-
context) ��
v �� Policy ��
v � Policy ��
v Policy � ��
EEZAdministratorGroup
Integrated Solutions Console� ���� ��
�� � � � ����� �����.
v Microsoft Internet Explorer V6.0 SP1
v Mozilla V1.7.8
v Firefox 1.5
� ������ Integrated Solutions Console� ���� �� ��� ���
�.
v JavaScript� �� � ������ �� ���� ���.
v Microsoft Internet Explorer�� �� ��� ����.
– �� � ���� �����.
�� � "��"�� ��� ����. � ��� �� ��, �� �
����� ActiveX ��� � ���� - ���� �� � ��� ActiveX
��� ��� � ���� ��� ���� �����. ��� ��, ��
� �� ��� ���� ���� ����.
– �� �� ����� ���� �� - �� ���� ��� ���� ��
���. ��� ��, �� ���� �����.
� 8 � Integrated Solutions Console �� 121
Integrated Solutions Console� ��
Integrated Solutions Console� ����� �� � � ������.
1. � ���� � � �� �� Integrated Solutions Console� ��� ��
����.
�� �� � ����� ���.
http://<hostname>:<port>/ibm/console
��� <hostname> Integrated Solutions Console� �� �� ���� �
���. <port>� Integrated Solutions Console� �� �����. �� ���
9060���.
2. ��� ����� � � � ������. ��� �� � ��� ����
�����.
3. ��� ID � ��� ���� ���� �����.
Integrated Solutions Console� �� ��� ������ �����.
���� � �� ��� �� �� �� �� �� ��� �� ���� �
�� ���� �� �� ���� ������. �� �� �� � ��� ��
�� ��� �� ��� ����, ��� ����� �� ����� ��
�.
��� ��� ID� � � ���� ��� ��, � ���� �����
�� ��� ���� ���� � ��� � ��� �������.
�� ���� ����� � ���� �� ��� � Integrated Solutions
Console� ���� ��, Microsoft Internet Explorer� �� � ���� �
� ���� �� � ��� HTTP ��� ����� � Integrated
Solutions Console� ����� ��� � ���� ���� �� ���
� � ���� �� �� ����. � HTTP ��� ���� �� �
��� ����� �� ��� ��� ��� �� �� �����.
�� Integrated Solutions Console ���� � > � �(�� Ctrl+N)� ��
�� �� Microsoft Internet Explorer ���� � � ��� ����
�, � �� � ���� ��� � �� � � ��� ���� ��
���.
122 ��� � ��� ���
Integrated Solutions Console ���
� ��� Integrated Solutions Console� ��� ����� ���� �� �
� �����. ��� ����� ��� �� ��� ��� Integrated Solutions
Console ��� ���� �����. � ��� �� �� ���� � ��
� �� ��� � ����.
�� �� Integrated Solutions Console �� �� �� � �� �����. �
�� ���� ����� ��� ��� ���� ������ �� ��
�� �� ��� �����.
�� ��
���� �� ��� ���� � ���. ���� ���� ��� ���
� � �� ������. � �� �� �� ��(nest)� � �
���. ���� ���� ��� � � �� ��� �� �����. �
��� ���� �� ��� ��� ��� �� �� ���� ����
�� ��� �����.
����� ��� � ��� �� � �� ��� ���� �� �� �
� ��� ��� ������. �� �� ���� �� � ����.
�� ���
�� ���� ���� � �����. ���� � �� �
�����. System Automation for Multiplatforms� ��� ���
� IBM Tivoli System Automation for Multiplatforms � ��
� �����.
� ���
�� ��� ��� ���� �����. � �� ��� �� �
�� � ��� ���� �� ��� �����. � ���� ��
�� ��� � ��� ���� �� � ������. � ��� �
�� �� ��� ��� �� ���� �����.
�� ����
�� �� � � �� ��� �� ���� �����(�: IBM
Tivoli System Automation for Multiplatforms).
� ��
���� ��� ���� ��� �� ��� �����. ���� ���
� � ��, Integrated Solutions Console �� ���� �� ��� ��
���. ��� �� Integrated Solutions Console� �� ��� ����
�� ���� ��� �����. ���� �� �� �� IBM Tivoli
System Automation for Multiplatforms� �� ���� � ����.
� 8 � Integrated Solutions Console �� 123
����� ��� System Automation for Multiplatforms ���
����� ���� �� � �� ���� System Automation for Multiplatforms
��� � � �� �� ��� �� �����. �� ��� ��� ��� ��
�� � �� ����� ���� IBM Tivoli System Automation for
Multiplatforms ��� ���� ��� � �� �� �� ��� ��� ����
�. �� �� �� �� ��� Tivoli System Automation ���� �� ��
���.
�� Tivoli System Automation� �� ���� ���. ���� � ��
Integrated Solutions Console� �� ����� IBM Tivoli System
Automation for Multiplatforms ��� �� �� ����.
SA � �
�� ���� SA �� ��� ���. ��� ��� �� � �����
� �� ���� ���� �� SA �� ��� ����, � ��� �
�� ����� ����� �� �����(�: ���� ���� ���
���� �� Policy ��� � ����).
�� �� ���
�� �� ���� �����.
��� Policy ���
Policy ���� ���� ��� ���� �� ��� Policy� �
��� �����. �� SA �� ���� ���� �� �� �
���.
�� ��� Policy ���
Policy ����� ���� ��� ���� �� �� �� ���
Policy� ����� �����. �� SA �� ���� ���� �
� �� ����.
�� �� �� ���� �����.
��� �� �� ��
� ���� ���� ��� � �� 1� ��� ���� �
� ��� �� ��� ������. ��� ���� �� ��� �
� ��� ���� ���� ��� � �� �� ���� ���
��.
Tivoli Enterprise Portal ����� ��(launch-in-context) ��
�� ���� � ��� �� SA �� �� � Tivoli Enterprise
Portal� � �� �� � ���� ���� Tivoli Enterprise
Portal� ������ ��(launch-in-context) ��� �����. �
����� ��(launch-in-context)� ��� � � �� ��� �
��� SA �� ���� Tivoli Enterprise Portal �� ��� ��
124 ��� � ��� ���
� ����. ������ ��(launch-in-context) ��� ��
IBM Tivoli System Automation for Multiplatforms � � �� �
�� � SA �� �� ��� ����� ����.
SA Policy ��
��� ��� ������ ���� Policy� �� �� � �� � ��
� ���. �� �� �� Policy� �� ���, �� Policy� ��
��, �� Policy� �� � ����. �� ��� � ��� � �
Integrated Solutions Console� �� ���� � � ���� ���.
� Policy �
�� Policy� Policy ���� �����. ��� � Policy� �
� � �� � ����. �� ��� ����� �� �� Policy
� ����, ���� Policy �� �� Policy� � ���, �
� � ��� �� Policy� � � ����. Policy �
�� � Policy� � � �� ��� ��� ��� �����.
Policy �� ��
Policy� �� �� � �� ���. ��� ��, �� ��� �
��� Policy � �� �� � ��� Policy� �� � ��
��.
Policy �� Policy ����
Policy �� �� Policy� �� � �� ���. �� ���
���� Policy �� ��� � � Policy� ����� ��
��� �� � ����.
� 8 � Integrated Solutions Console �� 125
SA � �� ��
� ���� SA �� ��� �� �����.
�: �� �� Solaris ���� �� ������. ��� � �� �� ��
� � �� �� Solaris ���� ���� � ��� � ����.
SA �� ��� ��
SA �� �� IBM ISC(Integrated Solutions Console)� ���� ���� ��
��� ��� ��������.
�� �� System Automation for Multiplatforms ���� IBM Tivoli System
Automation Application Manager ��� � � �� SA �� ��� �� ��
���.
IBM Tivoli System Automation Application Manager� �� �� � �
�� ��� ���� �� ��� ��� �� �� �� �� �� ���� �
�� �� ��� System Automation for Multiplatforms� �����. �� ���
�� IBM Tivoli System Automation for Multiplatforms� �� �� ����
������ �� � ��� � ���. System Automation Application Manager
�� 6. �� ��� �
126 ��� � ��� ���
� �� �� �, � -�- ��� � � 1� ��� �� ��
���. � � IBM Tivoli System Automation Application Manager ��� �
��� ����� ����.
IBM Tivoli System Automation for Multiplatforms ��� (��� ��� ��
) �� ���� ����� (��� ��� ��) -�- ��� �� ��
�� �� � ����. � � ��� �� � ����.
SA �� ��� ���� ��
�� ��� � � �� ���� ����.
�1� � ���
�� ����� �� ��� ��� ��� ���� � �� �� � ��
��� �� ��� ���� ��� �� �� ��� �� �� �
� ��� ��� �� ��� ������.
�2� �� ���
�� ����� ��� ���� �� � � � �� � ��� �
� ��� ��� ���� ������.
�� �
�� ���� �� ��� ���� �� ����. �� ��� �� ��
�� ��� �� �� ��� �� ��� ��� �����. �� �
�� �� ��� �� ���� ���� �����. �� ��� ���
� �� �� ���� � �� �� ���� ���� ���� �
�� 7. �� ��� � �
� 8 � Integrated Solutions Console �� 127
���. � �� �� �� ���� �� �� �� �� �� �
�� �����. ��� �� � ��� ��� � �� �� � �
���.
�� ���� �� ��� �� �� �� �� ��� �� ����
� ���� ���. �� ���� ���� �� ���� �� ��� �
���. �� �� �� ��� � �� ���� �� �����.
�3� �� ��
�� ��� ���� ���� � �� �� �� �� ���� � �
�� �� ��� ���� � �� �� �� ������. �� ��
� �� ��� ��� 136 ���� ��� ��� �� �� ���� ��
���.
�4� �� �
�� ��� ��� ���� ��� �� ��� ������.
�� � ��
�� � �� ��� ���� �� ��� ��� �� � ��
��. ��� ���� �� �� �� ��� �� ��� �� �
����. ��� ���� �� �� ��� ��� ��� �� �
����.
�� �
�� � �� ��� ��� �����. �� ��� ���� �
�� � �� � ��� �����. �� ���� ��� �
�� ����.
�� �� ��
��� ���� �� ���� �� �� ��� �� �
� �� �� �� � ��� �����. ��� ���
135 ���� ��� � ���� �����.
�� � �� ��
�� � � ��� �� �� ���� �� � ���
��. ��� ��� 132 ���� ��� � � ����
�����.
�� ��� �� ��� ��� 131 ���� ��� ��� �� �
� ���� �����.
�5� ���� ��
� �� ��� ��� ��� � ���� ��� �� �����. �
�� ��� �� �� ��� ����, ��� � � � � � ��
��� ����, �� ��� ���� ��� ���� � �����. �
�� ��� 129 ���� �� �� ��� �� �� ���� �����.
128 ��� � ��� ���
���� ��� �� �� ��
���� ���� � �� ��� ����.
v � �� �� ��� ��� � � � ��� ���� ��� �
� �����.
v �� �� ���� �� ��� �����.
v ��� �� �� ��� ���� ��� � � ��� ���� �� �
��� �� �����.
���� �� �: ���� ��� �� ���� ���� �� ��� ���
�� �� twistie� ����.
���� ���� �� : ���� �� � �� � �� �����.
��� �� �� � � �� �� � �� ��� ���� ��� ��� �
��.
v �� ����� � ����� ���� � �� ��� ��� �
����.
v �� ��� ���� � �� ���� � �� �� �� ��� �����.
� � �� � � �� ����� � �� �� �� �� � ���
�� ��� �� �����.
�:
1. ��� ����� ��� � �� � �� ���� �� �� � �� �
� ���� ���� ���.
2. �� �� � ��� � � �� �����.
���� ��� �� ��: ���� �� ��� ���� � �� ��� ��
���. ��� ���� � �� �� �� ���� ���� �� � ��
��. � �� ��� ��� ����� �� �� � �� �� �� ��� �
��� ������. �� � �� � �� ����� �� ��� �� �
�� � ����.
���� ��� ���� ��: � �� ���� ��� ��� � ��� ��
��� ���� �� �� � ����.
�� � �� ��� �� ���� �� ���� ���� �� ����.
� 17. � �� ��� �� ���� ���
��� ��
��� ���. ���� ���� ��� � ��� � � �� �� ����
���� �����.
� 8 � Integrated Solutions Console �� 129
� 17. � �� ��� �� ���� ��� ( �)
��� ��
��� ���� ��� �. �� ���� �� ���� ���� ����
�.
�� ���� �� � �� ��: �� �� ���� �� ��� �� ���
�� �����. ��� ��� ��� ��� �� ����.
��� �� ���� �� �� ��� ��� �� ���� ���� � ��
��� ��� ��� ��� �����. ���� ���� �� �� �
�� �� ���� �����. ���, �� � �� �� �� ��� ����
�(� –> �� ��) � �� ��� � ��� ����� �� � ����.
��� �� ���� ���� ��� ���� �� �� ��� � ��� ��
��� �����.
� 18. � �� ��� �� ��� �� ���
��� ���� ... � ����.
��� ��� ���. ���� ���� ��� �� ��� � �� ���� �
���� ���.
��� �� ��� ��� ��� �� �����. ��� ��� �� ��� �
�� ����.
�� �� ��� �� ���� ��� ��� �� �����. ���� ���
�� �� ��� ��� ����.
�: ��� � � �� �� ���� �� �� � System Automation for
Multiplatforms ���� �� ��� ID � ��� ���� ���� ����
� � ����. ��� �� � �� � ��� ID � ��� ����
� �������. �� ���� ��� ID � ��� ���� � ��� �
� ����.
�� �� ���� �� � �� ��: ��� �� ��� ���� �� ��
�� ��� ��� ��� � ��� ���� �� �����. �� �� �
� ��� ��� ���� �� ���� �� �� �� ��� � ���. �
� ��, ��� ���� ���� ��� �� ��� �� ��� �� ��.
� � �� �� �� �� ��� ��� ���� �� �����.
130 ��� � ��� ���
�� ��� �� �� ��
�� �� �� ��� ���� �����.
�� ���� �� ��� ����.
�� �: �� �� � �� ���� �� � ��� �� �� ��
�����.
�� � �: �� � �� ��� ���� �� ��� ��� �� � ��
��.
�� �� � �� ���� �� � �� ��� � �� �� �� �� ��
� �� ��� ������. ��� �� �� �� ��� �� ���
��� ����.
�� �� �� ��� ��� ��� �� � �� ���.
�� ��� ��: �� ���� �� ���� ���� � �� �� ��� �
����. �� ���� �� ��� ���, � ��� ��� ���� �
���. ���� � �� �� �� �� � ����.
�� ��
��� � �� �� ���� � �� �����.
�� 8. �� ��� ���
� 8 � Integrated Solutions Console �� 131
�� �� � � ��
�� ��� �� ���� �� �� ��� �� ��� �� � ��
��.
�� �� �� �� ���� ��� ��� �� ���� ��� ��
���. �� �� ���� ���� �� �� �� ��(��� �� �
���)� �����. �� �� ���� �� ��� ���� �� �
� ��� �� � ����.
�� ��� �� ��� , ��� �� �� ���, �� ���� ��
� �� ���� �� ��� ���� �� ��� ���� �� ��.
�� �� �� ���
�� �� �� ���� ��� �� � ����. ��� �� ��
��� �� ���� ����� ��, �� ��� �� ����� ��
��� ��� �����.
�� �� � ��: �� � � ��� �� �� ���� �� � ���
��. �� ���� � �� ���� � �� ��� ��� "FEPLEX1"� �
� ��� �� ��� ���� ����.
�� ��:
� ���� �� � �� ��� ��� �����. � �� �� � ��� �
� �����.
v ��� �� �� � �� ���� � ��, � ��� �� �� ��
��� �����.
v ��� �� ���� � ��, � ��� ���� �����.
��� ��� ���� ���� �� ��� �� ���� �����.
�� ���� ��� � � � ��� ���� �� ��� �����.
�� � ��� ��� �� ��(bread crumb trail)� �� ��. � ���� �
� ��� � ���� �� ��� �� �����, � ��� � �
� ����.
132 ��� � ��� ���
��� �� ��(bread crumb trail)� ��� � �� ���� �����.
v �� � � � � ��� � �� � ��� �� ��� ��� ���
��.
v �� ���� ��� �� �� �� ��� ���� �� ���� �� �
�� �����. �� �� ���� � ��� � �� �� ��� ��
����� �����.
v ��� �� ��(bread crumb trail)�� ��� ��, � �� ���� �
�� ��� ��� �� �� �� ��� �� ��� �� ����
��� �� ��� �����.
v ��� �� ��� 4 ��� �, �� ��� ��� ��� ���� �
�� ��(...)� ���.
�� ��� �� � �� ��� �� � �� �� �� ����, ���
��� �� ��� � � � �� �� ��� �� �� �����.
�� ���� �� � ��� �� ��� �� � � ��� ��� �
�����.
v ��� ���� � ��� �� ����, ��� ����� � ���
���� �����.
v ��� �� �� �� ��� ��, �� ��� �� �� �� ��� �
� ������.
� 8 � Integrated Solutions Console �� 133
v ��� ��� ��� �� ��� �� �� �� �����. ��� �
��� �� � �� �� ����, �� �� �� �� ����
�� �� �� �� �����.
�� �� � � �� ��� �����.
� 19. �� ��� �� ���
��� ��
��
�� ��
�� ��(� ������ �)
�� �� ��� �� �� �� �� � �� ��� ���� �� �� �� �
��� � ���.
��� ��
�� �� ��� ��� �� ��� �� �����. ���� ���� ��� �
� ��� � ��� ���� ����� ���.
��� �� ��� ��� �� ��� �� �����. ��� ��� ����.
�� �� ��� ��� �� ���� ��� ��� �� �����. ���
��� ��� ����.
�� �� ��:
�� ��� �� ��� �����. � ��� ���� ��� ��� �� ��
� � ����.
�� ��� �� � � ��� �����.
�� ��
�� ��� ��� �� �� ����. ��� � �� ��� ��� ������.
�� ��� �� ��� ����. ��� � �� ��� ��� ������.
�� ��� �� ��� ����. ��� � �� ��� ��� ������.
�� ��� �� ���� ��� ������. ��� � �� ��� ��� ���
���.
134 ��� � ��� ���
� �� ��: ��� ���� �� ���� �� �� ��� �� �� �
� �� �� � ��� �����. �� �� � ���� ��� �� ��
��� �����. � ���� �� �� �� ���� �����.
�� ��� �� ���� �� ��� ��� �� �� �� ��� �� ���
� ����� ��, �� �� ���� �� � �� ��� ��� � � �
���.
�� ��� ��:
�� � ���� �� ���� �� � �� ��� ����.
�� ��
���� �� �� ��� ��� � ���.
v ��� ��� ���� ���� �� ��� �� ���� ���
��.
v ��� �� �� �� ��� ��, �� ��� �� �� �� ��
� �� ������.
v ��� �� ��� �� �� �� ��� ���� �����.
v ��� �� ��� � �� � ����� �� ��� �����.
� 8 � Integrated Solutions Console �� 135
�: �� � ���� ��� � � �� ����� �� ��� �
����, �� �� �� � � ��� ���� �� �� �
��� �����.
�� � � ��� �� ���� ���� ��� � �� �
� ���� ��� ���(��� � ���� �).
� �� ��
�� ��� �� ��� �����. � ��� ���� ��� ��� �
� ��� � ����.
��� ���
��� ��� ���� ��, ��� �� � ��� �����. � ���
�� ��� ��� � ��� ���� ��� � � ���.
� �� ���:
�� ���� �� �� ��� �� � � ��� �� �����. � �
�� � � ��� ���� �� �� � ���� ���� � ��� �
� �����.
v ��� � �� ��: � �� ���� � �� ��� ��� �� ��
�� ��� �����.
v �� ��� � �: �� ���� �����. ��� �� ��(bread crumb trail)
�� ��� �� ����� �� ����� �� ��� �����.
v ��� ���� ��� � �: �� ���� ����, �� �� ��� ��
��� ����� ����� ��, � ��� �� �� ��� ���
���.
�� ��� �� �� ��
� ���� �� ��� ���� �� ��� �� �����.
�� ���� � �� �� �� �� ���� �� � �� �� �� ��
��� ��� ����. �� ��� ����� � ��, ��, � �� ���
���� �� �� �� � ��� �� ��� �� �����. ���� ��
�� � ���� ���� ��� � �� �� �� �� ���� �� � �
� �� �� � � �� �����.
���� �� ��� ���
� �� ��� ��� ��� v �
v Policy
v �� ��
136 ��� � ��� ���
���� �� ��� ���
� �� ��� � v �
v �� ��(�� ��� ���� ���� �� ��)
�� ��� �� �� �� �� v �
v � (��� � � �� ���� �� ��)
v �� ��
v �� ��(�� ��� ���� ���� �� ��)
�� ���: � ���� � �� �� �� �� ���� �� � �
�� �� �����. � ����� ���� ��� ��� �� � �� ��
�� �� ���� ��� � ��� �� �����.
��� � ���
���� � ���� ���� ���� ��, � �� �� � ����
��� ��� ��� �� ��� ���� ���� �� � � ����
��.
��� � ���
�� � ���� ���� �� �� ��� ��(�: �� �, �
�� � ��� �� �� �)� ������. �� ���� �� �
� ��� �� ��� �����. ����� �� ����� ���� �
� �� � �� ��� �����.
�� ��� � ���
�� � ��� �� ��� � ���� ������.
v �� �� ��� �� ��� ��(�: � ���)� ����� ��.
v ��� ��� ��� �� ��� ��� ����� ��.
v �� �� �� �� ����� ��.
v ��� � � � ��� ��.
v �� ��� �� �� �� ��� ����� ����� ��. �� �
��, � �� ���� ��� � �� ��� �����.
��� � ���
�� � ��� � ���� ������.
v ��� �� ��� ��(�: � ��� � ���)� ����� ��.
v ��� ��� ��� �� ��� ��� ����� ��.
v ��� �� ��� �� ��� ��.
v �� �� �� �� ����� ��.
v ��� ��� ����� ��� ����� ��.
� 8 � Integrated Solutions Console �� 137
Policy ���: Policy ���� � �� ���� ���� � � �� ��
���. Policy ���� ��� Policy �� ���� �� ��� Policy� ��,
��� � ���� � ����.
�� ��: � ���� �� ��� �� �����. � ���� ���� ��
�� ���� �� � ��� �����.
�� �� ���: �� ��� �� ��� �� ��� ���, �, �� � ��
��� �� �� ��� �� � ����.
�� ���: � ���� �� ���� �� �� ��� � �� � ��
� �� ��� � � �� ��� �� �����.
��� Policy� �� ��
��� Policy �
� ���� ���� Policy �� ��� Policy� ��� ��� � �� �� �
�� ��� ���� ���� ���� ������.
���� ���� �� �� �� ���� ���.
v �� EEZConfigurator ��� ��� ���.
v ��� ���� �� Policy � ����� �����.
v ����� ��� Policy� Policy � ����� ���� ����.
�� � � ������.
1. �� � � ��� ″��� Policy � ″ ���� ����.
v �� ����� ���� Tivoli System Automation for Multiplatforms >
�� �� ��� > ��� Policy ���� �����. ″��� Policy ��
�″ ����� � ��� ���� � �� ��� �����.
v SA �� ��� �, � �� ���� � ��� ���� � ��, ��
�� Policy ���� �, � Policy ���� �����.
2. Policy ��� � � ��� �� �� �� ���� ��� ��, ����
� � �� ��� �� �� �� �� �� ��� �� � �� ��� �
��.
Policy� �� ��� ��� �� Policy� � �� �� � ��� ���
� �� �� �� �� �� ��� �����. � �� ��� � ��, Policy
� ����� �� �� � ��� ���� ���. ��� ���� Policy�
������, ��� � � ��� ���� ���.
3. Policy ��� ��� �� �����. Policy� �� ���� ���� �
�� ��� � � � � ����� ������.
138 ��� � ��� ���
��-�-�� ��� ��� ��� � Policy ��� ��: -�- ��� �
��� ��� ���� Policy� ����� �� Policy� samadapter �� ��
� �� ��� ����� ������.
� Policy� samadapter �� ��� �� ��� ����� ���� ��� ��
����.
v XML Policy � � ���� <ResourceGroup name="samadapter-rg"
class="IBM.ResourceGroup"> �� �����.
– � Policy� � �� ���� ��, �� ���� � Policy� ��� �
����. ���� Policy ����� �����.
– � Policy� � �� ���� �� �� � �� ����� ����.
� Policy� ���� �� samadapter� �� ��� ���� ���� ��
��, �� �� ���� �� ���� �� ����� ���.
-�- ��� ���� �� �����, -�- ��� ��� �� �
� ��� �� ��� ������. � �� IBM Tivoli System Automation for
Multiplatforms � � �� ���� ″� ��� ��� ��″ ��� �
���.
� Policy� ��� �� ���� ���� ��� �� ��� ������.
1. sampolicy -s <file> �� ���� samadapter� �� �� ��� ����
�� Policy� ������.
2. samadapter� �� �� ��� ������ � Policy� ������.
3. �� ���� � Policy� �������.
��� Policy ���
� ���� ���� System Automation for Multiplatforms ��� ���� ��
��� Policy� �������.
���� ���� �� �� �� ���� ���.
v �� EEZConfigurator ��� ��� ���.
v ���� �� Policy � ����� ���� ����.
v ��� Policy� ���� Policy � ����� ���� ����.
���� ���� �� 138 ���� ���� Policy ���� � ����� �
��� ���.
�� � � ������.
1. �� � � ��� ″��� Policy � ″ ���� ����.
� 8 � Integrated Solutions Console �� 139
v �� ����� ���� Tivoli System Automation for Multiplatforms >
�� �� ��� > ��� Policy ���� �����. ″��� Policy ��
�″ ����� � ��� ���� � �� ��� �����.
v SA �� ��� � � �� ���� � ��� ���� � ��, ��
�� Policy ���� �, � Policy ���� �����.
2. Policy ���� ������ ��� Policy� � ����. Policy� ����
� ��� ��� ���.
3. Policy� ����� ���� �����. � �� �� Policy� �����
� ���� ��� �����.
SA �� ����� Policy ���� �-� ���, ��� ����� sampolicy
-r� ��� �� ���� ��� �� ����.
v ��� � �� � �� �� �� �� �� Policy �� �� ��
� � ��� ����.
v ��� � �� ���� �� ���� ����.
v Policy �� ��� �� �� � �� �����.
v �� �� ��� Policy� ��� � ��� Policy� ���� � �� �
����.
�� ��� Policy ����
� ���� ���� ��� ���� �� �� ��� Policy� ��������.
�� ��, Policy� �� � ��� �� � �� �� ���� ���� �
� � ���� � � ����.
���� ���� �� �� �� ���� ���.
v �� EEZConfigurator ��� ��� ���.
v ���� �� Policy � ����� ���� ����.
v ��� Policy� ���� Policy � ����� ���� ����.
�� � � ��� �� Policy� ���� � ����.
v SA �� ��� �, � �� ���� � ��� ���� � ��, ����
Policy ���� �, Policy ���� �����.
v �� ����� ���� Tivoli System Automation for Multiplatforms > �
� �� ��� > �� Policy ���� �����. ″�� Policy ����″ �
���� � ��� ���� � �� Policy ���� �����.
��: Policy� ������ ���� �� ����� ����. �� ��, ��
� � � ���� � �� �����. ���� � ����� �� ��,
140 ��� � ��� ���
���� � ����� ��� ��(�: ��� IP � ��� �� ��) ��
� �� �� ����. ��� ��� �� ���� ����.
�� �� ��� �� ��
�� ��� ��� � ���.
v �� �� �� �� �� �� ��
v ����� � �� � �� �� ��
��� �� ��
��� ��� ��� ��� ���� �����. ��� ��� �� �����
� ��� �� �� �� �� ���� � ��� �� � ����. ��
��� ��� ��� ��� �� ����. �� � � �� ��� ��� �
� �� �����. 202 ���� ��� �� � �� ��� �� � ���� �
� �����.
� ��� �� �� �� ����.
v ��� � ��� ��� ����� ��� ���� �� � ����.
v ���� � ��� ��� ���� ��� ���� �� � ����.
v �� ��� �� ��� ��� �� ���� �� �� �� � ����.
� ���� ��� �� ���� ���.
�: System Automation for Multiplatforms� �� � �� �� ��� ��
�� � ��� ����� ���� ����.
�� �� ��: �� � � ���� �� �� ������.
1. �� ���� ����� ��� � ����.
_________________________________________________________________
2. � ����� ��� ��� �����.
��� � �� �����.
_________________________________________________________________
3. ��� � �� �� �� ���� ��� ��� ��� �����
���� ��� �� ��� �� ������. � �� ″;″ �� ��
� ����.
_________________________________________________________________
4. �� ���� ��� �����.
_________________________________________________________________
� 8 � Integrated Solutions Console �� 141
��:
v �� ��� �� ���� �� ��� ��� �� ���� �����.
v �� � �� � � ��� �� �� ��� �� ���� �� ��� �
��� ����.
v �� �����. ��� ��� � ��� �����. ��� ��� ��
� ���.
�� �� ��: �� � � ���� �� �� ������.
1. �� ���� ����� ��� � ����.
_________________________________________________________________
2. � ����� ���� ��� �����. ��� ��� ��� ����� �
�� �� � ��� �� �� ���� ��� �� �����.
���� � �� �����.
_________________________________________________________________
3. �� �� ���� ��� ��� ��� ������ ���� ��� �
� ��� �� ������. � �� ″;″ �� �� � ����.
_________________________________________________________________
4. �� ���� ��� �����.
_________________________________________________________________
��:
v �� ��� �� ���� �� ��� ��� �� ���� �����.
v �� � �� � � ��� �� �� ��� �� ���� �� ��� �
��� ����.
v �� �����. ��� ��� � ��� �����. ��� ��� ��
� ���.
��� ��� �� �� ��: ���� ��� �� �� �� �� �� ��
� ��, ��� � ���� ��� � ���� �����. ��� �� �
��� ��� �� ��� �����.
� 20. �� ��� ��� � ���
��� �� ��� ��
(��)
�� �� ��� ���. �� ��� ��� ��� �� ��� �� �
���� ��� �����.
142 ��� � ��� ���
� 20. �� ��� ��� � ��� ( �)
��� �� ��� ��
(��)
�� �� ��� ���. �� ��� ��� ��� �� ��� �� �
��� ��� �����.
(��)
�� ��� ��� �� �� ���� ��� �� �����. ��� �
� ��� �������.
(��)
�� ��� ��� �� �� ���� ��� �� �����. ��� �
� ��� ������.
�� �� �� ��� ��� �� � �� ����.
v ��� � ��� �� ���� ���� �� ��� ���� ��� ID�
������.
v ��� � ���� �� � ���� �� ������.
�� ��: ��� �� �� �� � � � � ��� � ��� ��
���. ��� ���� �� � � ��� ��� �� �� � ����.
����� � �� � �� � �� ����� ���� ��� �����.
�� � � �� � � �� ��� �����. �� �� �� ����.
v � ��(�: �� ��� ���� �)
v � ����
v �� �� � ��
� �� ���, � �� � ���� �� �� �� ���� � �
�� � � �� ��� ��� �� � ����. System Automation for
Multiplatforms� �� ��� �� ��� �� �� � ��� �����
���� ����.
�� � �� ��� �� �:
�� � � ������.
1. �� ���� � ���� � ����� � ��� � ����.
_________________________________________________________________
2. � ����� �� ��� �����.
� ��� �����. �� ����� ���� �����. � �� ��
��� ����.
_________________________________________________________________
� 8 � Integrated Solutions Console �� 143
3. �� �� ����� ����, ���� ��� � �� � ��� ��
���.
� ���� �� �����.
_________________________________________________________________
�� �: ��� �� �� ��� �� �� � ����. ��� ����
� �� � � � �� � ����.
�� �� �� � �����.
v ����� � �� ��� � �� ��� �� � ����.
v �� ��� �� ��� ��� �� �� ���, �� �� ��� � �
��� � � ��� � ��� � � �� �� ��� �� ��� ���
� ����.
v �� ��� StartAfter �� StopAfter � ��� �� ��� �� ��
� �� �����.
�� � �:
�� � � ���� �� ������.
1. �� ���� ��� � ����.
_________________________________________________________________
2. � ����� �� �� �����.
�� � ��� ��� �� �� ���� ��� �� �����.
�� � �� ��� ���� �� �� �� ��� ��� ��� ��
����. �� ��� ��� �� �� ���.
v � ��� � � �� � � �� ��, ����� � �� ���
��� ��� �����.
v ��� � � �� � � �� ��, Policy� ���� �� ��� ��
� ��� ��� ���.
v � ��� � � �� � � �� ��, ����� �� � ���
� � ���� ���.
��� �� �� ��� ��� ���, �� �� � � �� � � ��
� �� �� ��� ��� ��� �� ��� ��� �� � ����.
_________________________________________________________________
144 ��� � ��� ���
��� �� �� ��
�� �� ���� ��� �� �� ��
���� ���� �� �� ���� �� � �� ��� �� ��� �� �
� ��� �����.
���� �� ��� ��� � ���� ����.
���� �� � ��� ID� ������. ��� ID� �� ��� ����
1� ��� ����� ��, �� �� ��� ��� ���� ��� �
�� ����� � �� �� ���� ��� ����� ���.
���� � � � �� �� ��, ���� �� ��� �� ��� �� ��
���� ���� ���� �� ��� �� � ��� ID� ��� ����.
� 8 � Integrated Solutions Console �� 145
��� �� �� � � ��
�� � � ���� �� �� ���� ���� �� ��� �� ��� ���
���.
1. ����� ���� Tivoli System Automation for Multiplatforms > ��
> ��� �� �� ��� �����.
_________________________________________________________________
2. �� ��� �� �� ����� �� ��� ����.
v ���� �� ��� �� ��� ���, �� �� ���� �� ��
���� ���� � �� �� �� 1� ��� ��� � ���
� ������.
v �� �� ����� �� ���� �� ��� �� ��� ���� ��
�� � �� ��� �����.
v �� �� ����� �� 1� ��� ���� �� ��� �� ���
����, �� ��� �����.
_________________________________________________________________
146 ��� � ��� ���
Policy ���� ���� ��� Policy � � ��
� ���� ��� Policy ���� �� ��� ����, ��� Policy� ����
�� �� �� � ����.
Policy ���� ���� ��
� ���� Policy ���� ��� ����� ���� �� ����. Policy
��� ��� �� ��� � � ���� ��� ���� �����. � �
�� �� �� ���� � ��� �� ��� � ����.
�� 9� ��� �� Policy ���� � � �� ���� ����.
�1� Policy ��
Policy � �� � � ��� System Automation Application
Manager � ��� Policy� ����� �� System Automation
for Multiplatforms 1� ��� Policy� ����� ����.
�� 9. Policy ���� � �
� 8 � Integrated Solutions Console �� 147
�2� �� � ���
�� �� �� ���� �� �� ���� ��� ������. ��
��, � �� ���� �� � �� � ��, �� � Policy� ��
��� �(pan) � ����.
�3� �� �
�� ��� ���� � �� ���� �� ��� ��� ��� �
����. �� ��� �� � �� � ����(�: "WAS" �� "WAS"
�� � ���� ��� ���).
�4� �� ��
�� �� ��� �� �� ���� ���� � ��� �� �� � �
� �� � ��� �� �� ��� �����. �� ��, ��� ��� �
� � ��� �� � �� �� �� ���� ��� �� � ��
��� �����. � ��� ��� �� ��� �� �� ���� �
� � ����.
�5� �� ��
� �� ���� � �� ���� �� ���� �� Policy� ���
������. �� Policy� � region� ��� ��� �����. ��
� �� ���� Policy� � ���� � � ����. 149 ���
� �� � ���� ���� �����.
�6� ���� ���
� �� ���� ���� �� � Policy� ������. Policy �
� � � �� ����, ��� ���� ����, �� �� � ���
�. 148 ���� �� �� ��� ���� ���� �����.
�7� �� �
�� �� ���� �� � Policy �� �� �� ������. �
��� �� �� �� ��� ��� ���� �����.
�8� �� �� ��
�� ��� �� ���� �� � Policy�� �� ���� ����
��. Policy� Policy ���� � �� �� ��� �� �� �
��� Policy� � � �� ��� ��� �����.
���� ��� ��� ��
� �� ���� �� � ��� Policy� ��� ��� �����. ���
Policy� � �� �����. �� �� �� ��� ���� �����(�
�� �� �� ���� �� ��� ��� ���). � ��� � � ���
��� ���� �����(��� �� �� ���� � � �� ��� ���).
148 ��� � ��� ���
�� �: ��� �� � ��� (� �� ���� � � �� ���� �
�)� ���� � �� ���� ��� �����. ���� ��� �� ���
���, ��� ��� � � ���� �� ��� �� ������. �� �
�, � �� ���� ��� ���, ���� �� � � ��� �� ����
��.
��: � �� ��� �� �� � ��� �� �� ���� �����.
�� ��, �� ��� � ��� �� ���� �� � �����. ��,
�� ��� ��� �� �� �� ����� � ��� � � �����.
�� ��, ��� �� � ��� ��� �� ��� � � ���� � �
� � ��� �� ��� ��� �� � �� ��� �����.
��/�(Zooming): � �� ���� ����� ���� �� ���� ��
�� �� ���� �����. Policy� � �� ���� ��� ���
��� ���� �� ��� � �����. ��, �� ��� ����
�� �� ����� ZOOM ��� � � �����. ��� ����, �
�� � ��� ��� �� ��� � � ��� ���� ��� ��� �
� ������.
���� ���� �� ��: ���� �� Policy �� � �� ���� �
����. �� ����� ���� �� ��� ���� ��� � � ��
��. �� �� ��� �� ���� � , �� ��, �� ��, �� ��
� � ��� ����� �� � ����. IBM.ServiceIP� � �� ��� �
�, �� �� ��� �� �� � �� ���� �����. �� ��
���� �����. �� -> ��� �� �� ��� � ��� �� � �
���. �� ���� �� ��� ���� �� ��� � �� �� ����
���� �� �� �� � �� ��� ���� �� �� �� ���� �
���. �� �� -> ��� �� �� � � �� ��� ���� ����
�.
�� �� ��� ��
� � Policy �� ��� ��� ��� ��� �����. � �� ���
�� Policy� � ��� ��� ��, � � � ��� ��� ��� �
� �����. � ��� �� ��� � ��� � �� ���� Policy� �
���� � � ����.
Policy ��
�� ������ Policy ���� ���� ��� Policy� ���� �� ��
� ��. � ���� ����, � � �� 11 ���� � 2 � �������
� 8 � Integrated Solutions Console �� 149
� ����, � � ��� ��� ��, System Automation for Multiplatforms
�� ���� ��� ���� �� �� ����. ����� �� � � �
����.
v � 1: Policy � � ��� �
v � 2: ����� �� apache1 ��
v � 3: IP �� �� apache1IP ��
v � 4: �� �� ��
v � 5: � ��� ��
v � 6: � ��
v � 7: Policy ��
� 1: Policy �� � ���
1. Integrated Solutions Console ���� Tivoli System Automation > SA Policy
�� > Policy �� ��� � ����.
� 2: ������ �� apache1 ��
20 ���� �� ��� RSCT �� ���� �� � �� "apache1"� �� �
���� ��� ���� �� �� ����. Policy ���� ���� �
��� ���� � � � ������.
1. � �� ����� ��� � � ��� ��� �� �� > �� �� >
IBM.Application:
150 ��� � ��� ���
� � ����.
�� �� ��� � �� ���� �����. �� ��� �� �� ���
��.
� 8 � Integrated Solutions Console �� 151
2. � �� ��� �� ��� �� �� � �("apache1")�� ��, �
�� ��� ��� �("node01", "node02" � "node03")� ������.
��� ��� ���� ��, ���� �� � ��� � ��� ��
� ���. ��� �� ���� �� �� � �� ���� �� �
� ��� �����. �� �� ��� ���� node03� �����.
152 ��� � ��� ���
3. ��� �� �� ��� �� �� ��� �� ����� ��� �� ��
��� �����.
� 8 � Integrated Solutions Console �� 153
� 3: IP �� �� apache1IP ��
20 ���� �� ��� RSCT �� ���� �� ���� ���� "apache1IP"
�� �� IP �� ��� ���� �� �� ����. Policy ���� ��
�� � ��� ���� � � � ������.
154 ��� � ��� ���
1. � �� ���� ��� � � ��� � �� �� �� > �� �� >
IBM.Service.IP� � ����.
� 8 � Integrated Solutions Console �� 155
2. � �� ��� �� ����� ��� �� �� ��� �����.
156 ��� � ��� ���
3. ��� �� �� ��� �� ����� ��� �� �� ��� �����.
� 4: �� �� ��
28 ���� �apache1 � apache1IP� �� �� �� ��� "apacherg"�� �
� �� ��� �� apache1 � apache1IP� ���� �� �� ����. Policy
���� ���� � ��� ���� � � � ������.
� 8 � Integrated Solutions Console �� 157
1. � �� ����� ��� � � ��� � �� �� �� > �� ��� �
����.
2. ��� apache1� ���� ��� ��� � � ��� � �� ���
�� � ����.
158 ��� � ��� ���
3. �� ��� ��� �� � �� ���� apache1� � � �� ��� �
��� �����.
�� apacherg� apache1� ���� ��� ��� � �� ����� � � �
���.
� 8 � Integrated Solutions Console �� 159
4. ��� apache1IP� ���� �� ��� ��� � � ��� � �� �
�� �� � ����. �� ��� ���� ��� � �� ����� �
���� ��� �� � ����.
�� apacherg� apache1 apache1IP � �� ���� ��� ��� � ��
����� � � ����.
160 ��� � ��� ���
� 5: � ��� ��
27 ���� ����� ���� �� ��� �� ��� apache1IP ��� ���
� � �� � �� ���� ���� ���� �� � ���� ���� �
� ��� �� ����. Policy ���� ���� � � ���� ����
� � � ������.
1. � �� ����� ��� � � ��� � �� �� �� > ���� �
����.
2. �� ��� ��� ��� ��� �� �� ��� �����.
� 8 � Integrated Solutions Console �� 161
� 6: �� ��
28 ���� �� �� �� � � ���� apache1 � apache1IP ��� � �,
apache1IP � netequ ��� ��� � � ���� �� ��� �� ���
�. Policy ���� ���� � � � � ���� � � � ������.
1. �� apache1 apache1IP ��� � � ����, � �� ����� apache1
�� ��� ��� � � ��� � �� �� �� ��� � ����.
162 ��� � ��� ���
2. �� ��� � �� � �� ���� apache1IP� � ����.
� 8 � Integrated Solutions Console �� 163
3. �� ��� �����. �� apache1� apache1IP� ���� � ��� ��
� � �� ����� � � ����.
4. �� ��� � � �� �� � �("apache1_dependson_ip1")��
��, �� � �� ���� � �(DependsOn)� � � ��, �� �
�� �����.
164 ��� � ��� ���
5. apache1IP� netequ ���� � � ����, � �� ����� apache1IP
�� ��� ��� � � ��� � �� �� �� ��� � ����.
�� apache1IP� netequ� ���� � ��� ��� � �� ����� �
� ����.
� 8 � Integrated Solutions Console �� 165
6. �� ��� � � �� �� � �("apache1IP_dependson_netequ")
�� ��, �� � �� ���� � �(DependsOn)� � � ��,
�� ��� �����.
� 7: Policy ��
�� � �� Policy �� Policy� �� � ����.
v �� � � Policy� ���� ��� ������.
1. � ���� �� �� ��� � ����.
� ��� �� ��� �����.
2. � ��� �� ���� ��� �����.
3. � ���� Policy � � � �� ��� � ��� �����.
4. ��� �� �� ���� �� �����.
v Policy �� Policy� ���� ��� ������.
1. � ���� Policy � ��� � ����.
2. ��� � �� ���� �� ���� � ����. �� ��� ���
� � � ����.
3. Policy � �� �� Policy� � �� ���� ��� �����.
166 ��� � ��� ���
� 9 � �� �� – �� ��
� ���� System Automation for Multiplatforms� �� � �� �� ��� �
��� ��� ���� �� �� ����.
��
����� � �� ��� �� ���� � ��, � ����(�� ���
��� ���)� � ��� ������� � � ����. ������� �
� ���� ���� System Automation for Multiplatforms� �� ������
� ���� � �� �� ������ � ����� ���� � �� �
����. �� ��, ������ �� ��� ���� �� �� ���� ��
���� ��� �� ���� �� ���� �� ��� ��� �� � ��
��.
� �� �� ��� �����. � �� �� ���� � ��� �
�� �� � �� �����. � ��� � ��� �� ��� �� �
� �� ����� ��� ���� �����. ��� � �� ��� �� System
Automation for Multiplatforms��� ������ � ��� ����� ���� �
����� ���. ���� System Automation for Multiplatforms� �� �
�� ���� ����� �� ���� ��� ��� �����.
�� 10. �� – �� ��
© Copyright IBM Corp. 2006, 2008 167
����� � ��� ������� ��� ��, �� �� ���(ConfigRM)
� �� ������� �� ��� ����� �����. ��� �����
�� ����� �� �� �� �� ��� �� � �����. �� �
�� ��� ������� �� �� ��� �����. � ������� ��
�� �� ����� ��, �� ������� �����.
� ��� �� �� ��
v �� ��
v �� �� ��
�� ��
�� �� ����� �� ���� � �� �����. ���� ��� �
�� ��� �� �� � ���. ����� ��� ��� �� �� � n /
2 + 1�� �� � �� �����. ��� n ����� �� � ����.
��� � ��� �� ��� �� ��� � ��, ��� �� � �� ��
�� ����.
v � � �� ��� ���� �� � ���� � � � �� ���� �
��� ���� ��� � �� �� rmrpnode �� ���� �� �
� � ����. �� � �� -f ��� ���� ��� �� ��� �� �
���.
v startrpdomain �� �� �� � n/2��, � �� �� �� �(-A) �
� �� �� �(-L) ���� ��� � ����.
�: �� ����� chrg –o online/offline group_name �� ���� �� ��
� �� � �� � ����.
��� ��� RSCT ��� �����(xv ���� ��� ��� �).
� �� ��
�� �� �� ��� �� �� ��� ��� �� ���� ���� � �
�� ��� ���� � �����. �� �� �� ��� � � � �� ��
��� ��� �� ���� �� �����. ������� �� �� �
�� �� �� ��, � ������� �� �� ��� �����.
�� �� ��� ��, System Automation for Multiplatforms� �� �� �
� ��� ��� ����� ��� � ����. ��� ��� ��, System
Automation for Multiplatforms� ��� �� �� �� � � ����.
�� ��
168 ��� � ��� ���
AIX, Solaris � Linux �� �� �� �� ���
��� �� AIX, Solaris �� Linux �������� � ��� �� �� �
�, ConfigRM ����� �� � �� ″CritRsrcProtMethod″ ��� ����
��� ���� �� �����. �� ��� � �� ����� �� �
� �� ��� ���� ���. 6��� �� ��� ����.
��
� �� � �� �� ��(���) 1
�� �� �� 2
� �� � ��� �� �� �� 3
��� �� 4
�� ��. �� � �� � 5
RSCT ���� �� � �� �� 6
��� �� ��� �� ��� ����� ���� �� � �� ��� �
��� ���. � ��� � ���� ��� �� �� ��� � �� �
��� �����. ��� �� ��� �� ���� ���� � � � ��
��� �� ������. �� �� ��� ��� �������� � ��� �
����� ����� � �� �� �� ���� � ��� ��
�� �� � ����. ��� ��� �� �� � ����� ���� ��
���� ��� ���� ���.
���� �� ��� � �� �� � ��� �� �� �����. ��
�� � �� ��� ��� �� � �� �� �� � � �� ���
�� �� � ����.
�� �� ��� �� � ����. ��� ��� �� ����� � �
� �� � � �� ��� ����.
Windows �� �� �� �� ���
� ��� ��� �� Windows �������� �� �� �� ��� ��
�� ��� ���� �� ���� ��(BSOD) Windows �� � �� ��
��� �����. ��� ��� 284 ���� ��� �� �� ��� �����.
�� ����� ��
����� � � �� �� ��� ������� ������ ��� ��, �
� �� ���� �� ���� ���� �� �� ��� �� �������
�����. ������� �� ���� ���� �� �� � �������
�� �� ��� �����.
�� ��
� 9 � �� �� – �� �� 169
�� � �� ��� � � ����.
� 21. �� ���� �
� ����
�� �� �� ��
��
��� AIX, Solaris, Linux,
Windows
� �� ���� ���� ����� ��� ����. ��
�� ���� ��� �� � � �� � ������� �
� �� ��� �� ���� . �� �� �� ���
″PendingQuorum″�� ��� ���, ����� ����� �
� �� ���� ���� ���� ���� �� ����
��� ��� ������� �� � � � ��� ����.
� �� � �� ������� ���
″ResolveOpQuorumTie″ �� ���� �����.
�� AIX, Solaris, Linux,
Windows
�� ��� ��� ��� ���� � � ��(pseudo) �
� ������. �� � ������� �� �� ���
�� ����.
SCSI Solaris, Linux on
System i, Linux on
System p � Linux
on System x
� �� ���� SCSI ���� ����� �� ��� �
��� ��� �����. �� ��� �� SCSI �� �
� �� �� �� �� �����.
ECKD Linux on System z � �� ��� � ECKD ���� ����� �� �
�� ���� ��� �����. ���� �� �� ����
ECKD �� �� �� �����.
DISK AIX � �� ��� � AIX ��� �� ���� SCSI �
� SCSI� � �� ���� �� � �� ��, SCSI ��
�� �� ��� ���� ��� ���� ��� �����.
�� ��� �� SCSI �� �� �� �� �� ��
�����. � � � �� ���� �� ��, �� ���
� ����� DeviceInfo �� �� ��� ��� ���.
SCSI � SCSI� � �� ���� �����. ��� ,
iSCSI � �� ���� � ��(Serial Storage Architecture
Connections)� �� �� �� ���� ����.
EXEC AIX, Solaris, Linux,
Windows
� � �� ��� �� �� ��� ��� ��� ��
�� � � �����. ���� �� ��� "samtb_net"�
� �� �� ���� EXEC �� ��� �� � � ��
���. "samtb_net" �� � � ���� �� EXEC �� �
��� ���� �� �� ��� �� 183 ���� ��
��� �� ����� �����.
��� �� ���� �� ����� �� ������� ������ ��, �
� ��� �� ��� ������� ��� �����. �� ��, 3� ��
���� �� �� �� ��� ������� ��� ��. ��� � �
� � ������� �� �� �� �� �� � ���� ����. �� �
��� ���� ��� ��� � ���. � ��� � � ��� ��
�� ��, �� � �� �� ��� � �� ����(169 ���� �AIX,
Solaris � Linux �� � �� �� ��� � 169 ���� �Windows �� �
�� �� ��� �).
�� ��
170 ��� � ��� ���
����� ��� �� �� ������ � ��� ���� � � �� ��
�� ���� ��, �� ���� � ��� ����� ���� ������
� �����. �� ���� �� ���� �� � ��� ���� �� �
� ��� �� ���, � �� �� �� �� �����.
��� � �� �� �� ��� ���� ��� �� ���(Solaris� SCSI,
Linux on System x, Power �� Linux on System z� ECKD �� AIX� DISK)
� ����. ��� �� ���� �� ���� ��� ��� ��� �� �
�����.
SLES 10 x/Linux ���: �� �� RSCT� i8xx_tco � i6300esb� � �
�� ��� ���� ��� �� Softdog ��� �
� ��� ��� ��� � � � ����. �
�� ��� �� ���� System Automation for
Multiplatforms� �� ��� ���� ����.
VMTIMEBOMB ��
VM �� Linux on System z��� ���� vmtimebomb �� z/VM� ���
� ����� ��� ��� ��� ����� ��� Linux �� � ���
��. �� �� ��� �� �� ��� �� ��� ����. � �� ���
� ���� � �, vmtimebomb �� �� VM vmwatchdog ��� �� ��
��� ������. � �� ����� Linux Softdog ��� �� �����.
��� �� �� ��� ��� ��� �� ��� ���� �� ���� �
� ��� ���� �� �����. ��� ������ ��, ����
���� (�� �� ���� ��) ‘ping’�� �� ��� �����. ��
��� �� �� ����� ����. ������ ���� �� ��� �
�� �� �� �� ��� ��� ����.
��� ��� ������ ������ ″� ���″�� ��� ��� ���
� �� �� �� �� �� ���� ���. Linux �� ��� ��, Softdog
� ��� �� � ��� �����. � �� ����� �� ��� ���
� ���� � �� ����. vmwatchdog� �� �� ��� z/VM �� ��
��� �� �����, �� ���� �� ���� �� ��� �� �� �
����. vmwatchdog� z/VM 5.1.0 ���� ��� ���� ���� 2.6 �
���� �����.
�� �� ��
ProtectionMode �� ��� ���� ��� ��� ��� ������. ��
� �� ��, �� RM(IBM.ConfigRM) �� �� ��� ��� � ���
� �����. �� �� � 0(��� ��) �� 1(�)� �� � ����. �
�� ��
� 9 � �� �� – �� �� 171
��� IBM.Application �� ��� �� �� ���, IBM.ServiceIP ��
�� ����. ��� �� ��� �� �� ����� �� �����.
RSCT � lsrsrc� ���� ProtectionMode �� �� � ����.
lsrsrc IBM.Application Name NodeNameList ProtectionMode
ProtectionMode� 1� ��� ��� �� ���� RSCT � chrsrc� �
�����.
chrsrc -s "Name=’apache1’" IBM.Application ProtectionMode=1
��� ��� ���� ���� ProtectionMode� 0�� �����.
chrsrc -s "Name=’apache1’" IBM.Application ProtectionMode=0
�� ��� IBM.Application� �� ��� � ��� �� �� ��� ���
���� ��� ������.
lsrsrc IBM.Application Name NodeNameList OpState ProtectionMode
� ���� �� ��� �����.
resource 1:Name = "apache1"NodeNameList = {"node1","node2"}OpState = 1ProtectionMode = 1
resource 2:Name = "apache1"NodeNameList = {"node1"}OpState = 2ProtectionMode = 1
resource 3:Name = "apache1"NodeNameList = {"node2"}OpState = 1ProtectionMode = 1
� �� apache1� node2�� �� ����.
� ��� ��� �� �� ��� ���� ��� ������.
lsrsrc IBM.PeerNode Name CritRsrcActive
�� �� ����.
Resource Persistent and Dynamic Attributes for IBM.PeerNoderesource 1:
Name = "node1"CritRsrcActive = 0
resource 2:Name = "node2"CritRsrcActive = 1
� ��� node2�� �� ����.
�� ��
172 ��� � ��� ���
�� �� ����
IBM.RecoveryRM ��� lssrc �� ���� �� �� ��� ������.
node02:~/build # lssrc -ls IBM.RecoveryRM
�� �� ����.
Daemon State:My Node Name : node02Master Node Name : node01 (node number = 1)Our CVN : 61035379498Total Node Count : 2Joined Member Count : 2Config Quorum Count : 2Startup Quorum Count : 1Operational Quorum State : HAS_QUORUMIn Config Quorum : TRUEIn Config State : TRUE
� ��� � � �� ����.
� �� � ����� �� � ����.
� ��� � ������ �� �� IBM.RecoveryRM �� ����. �� (�
�)����� �� �� � �� ����.
�� �� System Automation for Multiplatforms ��� ��� ��� �
� �� ���� �� IBM.RecoveryRM �� ����.
�� �� System Automation for Multiplatforms ��� �� ����� �
� �� ���� �� IBM.RecoveryRM �� ����.
�� �� �� ��
� ��� ������� ��� �� �� �� � �����
�� �� � ��� �� ���� ��� ��� (��)���� �
�� �����. �� �� �� ��� PeerDomain ���� �
�� OpQuorumState� �� �����. OpQuorumState� � �
� ����.
0 – HAS_QUORUM
System Automation for Multiplatforms� ��� �
� � ����.
1 – PENDING_QUORUM
�� ��� � �� ��� ����� ����
�. System Automation for Multiplatforms� ��
� ���� ����.
2 – NO_QUORUM
System Automation for Multiplatforms� ��� �
���� ���� ����.
�� ��
� 9 � �� �� – �� �� 173
In Config ��
System Automation for Multiplatforms ��� �� ��
�� �� IBM.RecoveryRM ��� ���� �� �� ��
��� �����. ���� ��� ″��″ IBM.RecoveryRM �� �
� ���� ��� �� �� � ��� �� TRUE� �����.
In Config ��
��� IBM.RecoveryRM ��� �� � �� ���� ���
� � ����� �����. ��� FALSE� �� System
Automation for Multiplatforms �� �����.
��� ���� OpQuorumState� � ����.
lsrsrc IBM.PeerDomain Name OpQuorumState
�� �� ����.
Resource Persistent and Dynamic Attributes for:IBM.PeerDomainresource 1:
Name = "myCluster"OpQuorumState = 0
�� ���� �� � ��
IBM.TieBreaker �� ���� ���� �� ���(�: ECKD �� SCSI)� �
� � ����. �� �� ��� Operator � Fail� ��� �� ����
�. ��� �� ���� �� �� � �� �� ���� ���� �� ��
��� ���� ���� ���� ��� � � �� ���. ��� ����
″Fail(��)″ � � �� ���� �� �� � �� ���� ���� �
�� �� �����. �� �� ��� � ‘Operator(���)’� ����.
�� ��� �� ��� � � � �� ��� ������.
lsrsrc -c IBM.TieBreaker
System x, System p �� System i ���� ���� Linux ���� ��
�� ����.
Resource Class Persistent Attributes for: IBM.TieBreakerresource 1:
AvailableTypes ={["SCSI",""],["EXEC",""],["Operator",""],["Fail",""]}
�� ��� �� � �� ��� ������.
lsrsrc IBM.TieBreaker
�� �� ����.
Resource Persistent Attributes for: IBM.TieBreakerresource 1:
Name = "FAIL"Type = "FAIL"
�� ��
174 ��� � ��� ���
DeviceInfo = ""ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 0PreReserveWaitTime = 0PostReserveWaitTime = 0NodeInfo = {}
resource 2:Name = "Operator"Type = "Operator"DeviceInfo = ""ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 0PreReserveWaitTime = 0PostReserveWaitTime = 0NodeInfo = {}
resource 3:Name = "myTieBreaker"Type = "SCSI"DeviceInfo = "ID=0 LUN=0 CHAN=0 HOST=2"ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 5PreReserveWaitTime = 0PostReserveWaitTime = 0NodeInfo = {}
resource 4:Name = "mytb"Type = "EXEC"DeviceInfo = "PATHNAME=/usr/sbin/rsct/bin/samtb_net
Address=192.168.177.2"ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 30PreReserveWaitTime = 0PostReserveWaitTime = 30NodeInfo = {}ActivePeerDomain = "21"
�� ��� IBM.TieBreaker�� �� �� ��� ��� �� � ��� � �
��� ������ ��� �� � ����. �� �� ���� ������
�� �� �� �� ���� � ����.
lsrsrc -c IBM.PeerNode OpQuorumTieBreaker
�� �� ����.
Resource Class Persistent Attributes for: IBM.PeerNoderesource 1:OpQuorumTieBreaker = "Operator"
�� �� ���� �� ��� ����.
�� ��
� 9 � �� �� – �� �� 175
chrsrc -c IBM.PeerNode OpQuorumTieBreaker="Operator"
�� ���� ″Operator″ � �� �� ��� �/���� ��� ����
��.
runact -c IBM.PeerDomain ResolveOpQuorumTie Ownership=1 (0 to deny)
�: �� �� ���, � ��� ���� ������� ��� ���� �
� �� �� ������� �� ��� �� ���� ���� ���.
�� ���� ��
�� ���� �� �� �� ���� �(�� �� �� �)� �� �
� ����� ����. �� ����� �� � �� ���� ���� �
���. �� ��� ���� �� ���� � �� �����.
��: �� ��� ��� �� � IBM.TieBreaker ��� ���� ���� �
��� ���� ��� ������ ��� �� ������.
�� � ��� ��� ECKD, SCSI �� DISK ����� �� ���� ��
�� �� �� ����. �� ���� ����� ����� �� ��
� ������. �� �� ��� �� ���� ���� �����(ECKD� ��).
�� 1: 2-�� ����� �� ECKD �� ���� ��
VM ��� �� ��� ���� �� � ��� ������.
v �� � ����� ���� ���.
v ���� ��� ���� �� � �� off� ��� ���.
v ECKD ���� � �� �����.
ECKD �� ��� � Linux on System z� �����. ECKD �� ��
� ����� ����� ��, ECKD ��� ��� ����� DeviceInfo ��
�� ��� ��� ���. � � � �� ���� ��/�� ���� �
���, ��� ���� �� ���� ����� ���. �� ���, � � �
�� ���� �� �� HeartbeatPeriod �� �� ��� �� �� ��
���. HeartbeatPeriod �� �� �� �� �� ����� ��� ����
�.
�� �� ��� ������(Linux � 2.4).
node01:~ # cat /proc/subchannelsDevice sch. Dev Type/Model CU in use PIM PAM POM CHPIDs---------------------------------------------------------------------50DE 0A6F 3390/0A 3990/E9 F0 A0 FF 7475E6E7 FFFFFFFFnode01:~ # cat /proc/dasd/devices50dc(ECKD) at ( 94: 0) is : active at blocksize: 4096, 601020 blocks, 2347 MB50dd(ECKD) at ( 94: 4) is : active at blocksize: 4096, 601020 blocks, 2347 MB50de(ECKD) at ( 94: 8) is : active at blocksize: 4096, 601020 blocks, 2347 MB50df(ECKD) at ( 94: 12) is : active at blocksize: 4096, 601020 blocks, 2347 MB
�� ��
176 ��� � ��� ���
Linux � 2.6� ��, cat /proc/subchannels � ��� lscss �� �����
�.
�� ���� ���� �� � � ������.
1. IBM.TieBreaker ����� �� ��� �� ����� ������.DeviceInfo
� ECKD ��� ��� �����. �� /proc/dasd/devices � �� ��
� � ����.
node01:~ # mkrsrc IBM.TieBreaker Name=myTieBreaker Type=ECKD DeviceInfo="ID=50de" HeartbeatPeriod=5
node01:~ # lsrsrc IBM.TieBreakerResource Persistent Attributes for: IBM.TieBreakerresource 1:
Name = "Operator"Type = "Operator"DeviceInfo = ""ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 0PreReserveWaitTime = 0PostReserveWaitTime = 0NodeInfo = {}
resource 2:Name = "Fail"Type = "Fail"DeviceInfo = ""ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 0PreReserveWaitTime = 0PostReserveWaitTime = 0NodeInfo = {}
resource 3:Name = "myTieBreaker"Type = "ECKD"DeviceInfo = "ID=50de"ReprobeData = ""ReleaseRetryPeriod = 0HeartbeatPeriod = 5PreReserveWaitTime = 0PostReserveWaitTime = 0NodeInfo = {}
2. IBM.PeerNode ���� OpQuorumTieBreaker ��� �� ��� �� ��
�� � ��� �����.
node01:~ # chrsrc -c IBM.PeerNode OpQuorumTieBreaker="myTieBreaker"
node01:~ # lsrsrc -c IBM.PeerNodeResource Class Persistent Attributes for: IBM.PeerNoderesource 1:
CommittedRSCTVersion = ""ActiveVersionChanging = 0OpQuorumOverride = 0CritRsrcProtMethod = 1OpQuorumTieBreaker = "myTieBreaker"
�� ��
� 9 � �� �� – �� �� 177
��: 2-� ������ � ��� ���� ��, �� �� �� ��
�� ��� �� � ����. � � �� �� ��� ����� � ��
��� �� ��� �� �� ����. ����� ��� �� ���� ��
�� �� ��, reboot -nf ��� halt -nf� ������.
�� ���� ���� �� �� ���� ��� � �� ��, ��� ��
�� �� ��� � ��� � �� �� � �� ���� ����� �
��. �� ��� ���� �� �� ��� � ����.
v � �� ��� ���� ��� ���(healthy) �� ��� � ��
��.
node01:~ # cat /proc/subchannelsDevice sch. Dev Type/Model CU in use PIM PAM POM CHPIDs--------------------------------------------------------------50DE 0A6F 3390/0A 3990/E9 F0 A0 FF 7475E6E7 FFFFFFFF
node01:~ # cat /proc/dasd/devices50de(ECKD) at ( 94: 8) is dasdc: active at blocksize: 4096,601020 blocks, 2347 MB
v � �� ���� �� ��� ���� �� �� � �� �� ���
� ����.
node01:~ # cat /proc/subchannelsDevice sch. Dev Type/Model CU in use PIM PAM POM CHPIDs--------------------------------------------------------------50DE 0A6F FFFF/00 F0 A0 FF 7475E6E7 FFFFFFFF
node01:~ # cat /proc/dasd/devices50de(ECKD) at ( 94: 8) is dasdc : boxed
�� ��� ��� ��� ���� /usr/sbin/rsct/bin/tb_break �� ���
���.
tb_break -t ECKD /dev/dasdc
�� ��� ���� ��� ��� �� ���� ���.
�: tb_brk �� ���� ���� �� �� � �� �� ������.
�� 2: 2-�� ����� �� SCSI �� ���� ��
SCSI �� ��� � Solaris� Linux on System x, pSeries � iSeries� �
����. SCSI �� ��� ����� ����� ��, DeviceInfo �� ��
��� ���� SCSI ���� ���� ���. ����� ��� ��� SCSI
��� �� � ���� NodeInfo �� �� ��� ���� � ���� �
� � ����. � � � �� ���� ��/�� ���� ����, ���
���� �� ���� ����� ���. �� ���, � � � �� ���
� �� �� HeartbeatPeriod �� �� ��� �� �� �����.
HeartbeatPeriod �� �� �� �� �� ����� ��� �����.
�� ��
178 ��� � ��� ���
Linux: Linux �� SCSI ���� HOST, CHAN, ID � LUN ��� �� 4
�� �� ��� �� � ����.
node1:~# dmesg | grep "Attached scsi disk"
��� � ���� � ���� ��� � ���.
�� ��, node1 � node2�� � ���� HOST=0 CHAN=0 ID=4 LUN=0�
��.
� �� �� ��� ����� �� � ����.
mkrsrc IBM.TieBreaker Name=myTieBreaker Type=SCSI DeviceInfo=" HOST=0 CHAN=0 ID=4 LUN=0"
(�� ���� � ����) �� �� � �� �� 4�� �� �� ��
�� ����. �� ���� NodeInfo �� ���� ���.
� ���� � 4�� �� �� ������.
# dmesg | grep "Attached scsi disk"Attached scsi disk sdf at scsi2, channel 2, id 4, lun 0
sdf ���� ���� HOST=2, CHAN=2, ID=4, LUN=0���.
�� ��, SCSI ���� node1 � node2�� �� �� ���� ��
�� SCSI ID� ��� ����.
node1: HOST=0 CHAN=0 ID=4 LUN=0node2: HOST=2 CHAN=2 ID=4 LUN=0
� �� �� �� �� ��� ����� �� � ����.
# mkrsrc IBM.TieBreaker Name=scsi Type=SCSI DeviceInfo="ID=4 LUN=0"NodeInfo=’{["node1", "HOST=0 CHAN=0"], ["node2", "HOST=2 CHAN=2"]}’
System Automation for Multiplatforms� �� �� � ��� DeviceInfo, �
�� NodeInfo� ���� ��� DeviceInfo � NodeInfo� �����. �� �
�, node1� �� �� �� �� ����.
"ID=4 LUN=0 HOST=0 CHAN=0"
� ��� �� �� ����.
�� �� �� ��� ���� ��� ��� �����. ��� � � �
� �� �����.
# mkrsrc IBM.TieBreaker Name=myTieBreaker Type=SCSI DeviceInfo="ID=4 LUN=0HOST=0,CHAN=0" NodeInfo=’{["node2", "HOST=2 CHAN=2"]}’
��� � ��� SCSI id� � ��� �� �� ���� ��� � �
����.
��: �� ���� ���� �� �� ���� ��� � �� ��, SCSI
�� ��� ���� ���� �� � �� �� ����� ���. ����
���� �� �� ������.
�� ��
� 9 � �� �� – �� �� 179
tb_break [–f] HOST CHAN ID LUN
�� ��,
/usr/sbin/rsct/bin/tb_break –f HOST=0 CHAN=0 ID=4 LUN=0
Solaris: Solaris �� SCSI ���� ��� ��� ��� �� � ��
��.
node1:~# formatSearching for disks...doneAVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 8894 alt 2 hd 255 sec 63>/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0
1. c5t60050768018200A88000000000000064d0 <DEFAULT cyl 96 alt 2 hd 64 sec 32>/scsi_vhci/disk@g60050768018200a88000000000000064
� �� �� �� �� ��� ����� �� � ����.
# mkrsrc IBM.TieBreaker Name=myTieBreaker Type=SCSIDeviceInfo="DEVICE=c5t60050768018200A88000000000000064d0" HeartbeatPeriod=5
��: �� ���� ���� �� �� ���� ��� � �� ��, SCSI
�� ��� ���� ���� �� � �� �� ����� ���. ����
���� �� �� ������.
tb_break -b -t SCSI "DEVICE=<device name>"
�� ��,
# /usr/sbin/rsct/bin/tb_break -b -t SCSI"DEVICE=c5t60050768018200A88000000000000064d0"
�� 3: 2-�� ����� �� AIX DISK �� ���� ��
DISK �� ��� � AIX� �����. DISK �� ��� ����� �
���� ��, AIX ��� �� ����� DeviceInfo �� �� ���
��� ���. AIX ��� � �� ���� �� �� �� ���� SCSI
�� SCSI� � �� ���� ���� ���.
��� , iSCSI � �� ���� �(Serial Storage Architecture)� �� ��
�� ���� DISK �� ���� ��� � ����. ��� IDE � ��
�� SCSI ����� ���� ���, DISK �� ���� � � ����. ��
��� DISK �� ���� � � ����. � � � �� ���� ��/��
���� ����, ��� ���� �� ���� ����� ���. �� ��
�, � � � �� ���� �� �� HeartbeatPeriod �� �� ��� ��
�� �����. HeartbeatPeriod �� �� �� �� �� ����� �
�� �����.
���� �� ��� �� ��� � �� ��� � �� ���� lspv
�� ������.
�� ��
180 ��� � ��� ���
lspv
�� � ��� �����.
hdisk0 000000371e5766b8 rootvg activehdisk1 000069683404ed54 None
���� SCSI �� SCSI� � ������ DISK �� ������ �� �
���� ���� lsdev �� ������. �� ��, �� ����.
lsdev -C -l hdisk1
�� � ��� �����.
hdisk1 Available 10-60-00-0,0 16 Bit SCSI Disk Drive
�� ��� ���� � ���� � ���� �� ���� �� ��� �
��� ���. lspv �� �� �� �� �� ID� ���� ���� � �
� ����� ������(lspv �� �� �� ���� �� �� ID� ��
��� � ��, hdisk1� �� ID� 000069683404ed54�). ��� AIX� ��
� �� �� ���� ���� ��, lspv �� �� � ���� ��
��� � ����. �� ���� � ���� �� ��, � ���� ��
� �� ��� �� ���� � � � ���� ���� ��� � �
����.
IBM.TieBreaker ��� ���� ���� � ��� ���� ��� ����
�� ����. ����� �� ���� � �� ���� ��, �� ���
���� � ����� ������ ���� �� ���� �� ��� �� �
���. lsdev �� �� ���� �� SCSI ��� �����. (lsdev ��
�� �� ���� SCSI ��� � �� ��� � ��, hdisk0� SCSI ���
10-60-00-0,0���.) � ��� � ��� ���� ��� �� �� �� �
���� ���� � ��� ���.
� ��� �� � mkrsrc �� �� � ����.
mkrsrc IBM.TieBreaker Name=myTieBreaker Type=DISK DeviceInfo="DEVICE=/dev/hdisk1" HeartbeatPeriod=5
��: �� ���� SCSI-2 ��� �� ����, �� ���� � ���
�� �� ��� ����� ����. �� SCSI-2 ��� ����� ����
�� RSCT� �� ��(/usr/sbin/rsct/bin/disk_reserve)� ���� ��
disk_reserve ����� �� �����.
�� � ��� �� ��� ���� ���� � �� � �� �� � �
��� �� ��� �� �� �� � ���� �� � �� ��� �� �
��� ��� �����.
��:
���:
�� ��
� 9 � �� �� – �� �� 181
/usr/sbin/rsct/bin/disk_reserve [-l | -u | -b] [-h] [-v] [-f] [-d sdisk_name]/usr/sbin/rsct/bin/disk_reserve [-l | -u | -b] [-h] [-v] [-f] [-g sg_device_name]
-h - � ��� ���� �����.
-v - � �
-f - �� � ��(-l �� -b ��� ��)
-d sdisk_name - �� ���(�: /dev/sdb)
-l - �(��)
-u - � ��(��)
-b - ��
-g sg_device_name (�: /dev/sg1)
�� ��, ��� ����.
/usr/sbin/rsct/bin/disk_reserve -l -f -d /dev/sde/usr/sbin/rsct/bin/disk_reserve -l -g /dev/sg3
�� ���� ���� �� �� ���� ��� � �� ��, SCSI ��
��� ���� ���� �� � �� �� ����� ���. ���� ��
�� �� �� ������.
/usr/sbin/rsct/bin/tb_break –f –t DISK "DEVICE=/dev/hdisk1"
lspath �� ������. �� ��, �� ����.
lspath -l hdisk2lspath: 0514-538 Cannot perform the requested function because the
specified device does not support multiple paths.
�� ��:
�� �� ���, � � SCSI-2 ��� ���� ��, ��� �� �
��� ���� �� ��� �����.
#lspath -l hdisk2Enabled hdisk2 fscsi0Failed hdisk2 fscsi0Failed hdisk2 fscsi0Failed hdisk2 fscsi0Failed hdisk2 fscsi0Enabled hdisk2 fscsi0Enabled hdisk2 fscsi0Enabled hdisk2 fscsi1Failed hdisk2 fscsi1Failed hdisk2 fscsi1
�� ��
182 ��� � ��� ���
Failed hdisk2 fscsi1Failed hdisk2 fscsi1Enabled hdisk2 fscsi1Enabled hdisk2 fscsi1
��� �� ������ ��� �� ���
��� �� ���� �� SCSI ���� �� SCSI-2 ��� �����. ��
� �� ���� �� ���� � ��� �� ���� ����� ���.
v ���� ��� �� ��� �� ���� ���(� �� �� ���).
v SCSI-2 ��� ���� �� � ��� ���.
v SCSI-2 ��� ���� ‘����’ ���� ���. �� �� �� ��
�� �����.
� �� ��� System p� VIO �� ���� � �� ��� �� � �
���. �� ����� ���� �� ��� �� ���� ����� �
�����.
1. 2-� ���� ���� ��� �� ��� ��� ������. �� ���
� ��� ��� �� �� �� �� ��� ���� �� ��� ����
����.
2. �� ��� ����� syslog� � � ������(�: Linux ����
tail -f /var/log/messages).
3. � � ���� ���� ��� ���� ����. �� ��, ���� ���
� ��� ����� ifconfig <if> down �� ������.
4. syslog ��� ��� ������. � � �� � � ��� ‘HAS_QUORUM’
� ���� ��, � �� ’PENDING_QUORUM’� ���� ���. �
� � ‘HAS_QUORUM’� ���� ��, ��� ��� ���� ���
� �� � ����. ���� �� � �� ��� �� � ����.
���� ��� �� ���� �� ��� ��� �����. ����� ��
� � �� ��� ���� �� �� � �������� � ��� �� ��
� ���� ���.
SAN(Storage Area Network) ���� ��� �� ���� ����� ���
��� �����.
���� �� ����
���� �� ���� � �� � ��� �� ��� � ��� �� �� �
�� � ��� �����. �� IP(���� ����)� ���� �� ��� �
���.
���� �� ���� ���� � �� ��� �� � ����. �� ��, �
� ����.
�� ��
� 9 � �� �� – �� �� 183
v ��� �� �� ���� �� ��� ����.
v ���� ��� ����� ���� � ���� � ���� ����� �
� ����.
��: � ��� �� �� � ���� ���� ��� ������ ���� �
���. � ���� ���� ��� �� �� ���� ���� �� �����
�� � �� �� �� ��� ��� ���� ��� ���.
���� �� ���� �� �� � � IP ���� �� ����� ����
� ���. �� �� � IP ���� �� � � ���� �� ��
�� ping ���� ��� �� �� � ����. �� �� ����� IP ��
� ���� �� �� �� ����� �� ����� ����. ���� � �
�� � ��� ���� �� � �� IP ��� � ����.
���� � ����� � ����
���� �� ��� ��� ���� �� IP ����� ���� ���� �
� �� ��� �� ���� ���. �� �� IP ����� ICMP � �
(ping)� �� � ��� ���. ���� �� �� IP ���� �� ICMP �
��� �� ��� �� �� ���� �� ���� ���� ����. �
� � �� ���� �� � ��(� ����)� �� � ��� �
������ �� IP ����� �� � ��� ����. �� � ��� IP�
�� �� �����. ������ � �� ������ �� � �� �
���� �� � ����. ��� � �� �� � �� IP �� ��
� ����(�: ��� ��). � �� �� � �� ��, ���� �� ��
�� �� � ����.
�� �� �� � � �� ���� �� ���� �� ����.
� 22. ���� �� � ��� �� �� ���� ��
���� �� � ���� ��� �� � ����
+ ��� �� ��
+ ��� ���� �����.
+ �� ��� �� ������. ��
�� ����(�) ��� �� ���
� ��� � ��� �����.
- �� IP ����� ���� � � �
� ���� ��, �� ������� �
�� ���� ����.
- �� ��� ���� � ��� �
� �� � �� �� �� �� �
����. � �� ������ �
�� ���� ��� � �� ����
����.
- �� ��� ��, � �� ���� �
��� ��� ����� �� � ��
�� �� ��� ��� �� � �
���.
�� ��
184 ��� � ��� ���
���� �� ���� ��
���� �� ���� RSCT exec �� ���� �����. exec �� �
��� �� ��� ��� RSCT ��� �����. - ���� �� ��� �
� � samtb_net� /usr/sbin/rsct/bin ����� ����. �� ���� �� �
� RSCT exec �� ��� �� �� � � ��� ���� ���.
Address=<IP address>
�� ��� ��� � ���� �� �� IP ����� ��. IPv4
��� ��� �� ���� ������(�: 192.168.1.1). DNS
� �� ���� ��� ��� ���� �� � �� ��� DNS
�� ���� ����. ��� ���� � � � ��� �
���. ��� �� ����, ��� ���� ����.
Log=<1/0> ���� �� ���� �� �� ��(syslog)� ��� � �
� 1� ������. ��� 1���. ���� � 1 0��
�.
Count=<number>
��� ���� �� ��� ��� ICMP � �. �� ��
��� �� �� �� ��� ����. ��� 2���. ��
� ��� 1�� 9 ����.
�� � ���� �� ���� �� �����.
# mkrsrc IBM.TieBreaker Type="EXEC" Name="mynetworktb"DeviceInfo=’PATHNAME=/usr/sbin/rsct/bin/samtb_net Address=192.168.1.1Log=1’ PostReserveWaitTime=30;
�� �� ���� �� ���� �������.
# chrsrc -c IBM.PeerNode OpQuorumTieBreaker="mynetworktb"
�� RSCT �� ���� ���� �� ��� ��� � � ����. �
� ��� ��� ���� rmrsrc �� ������.
���� �� ����� �� �� ��: RSCT �� ���� �� �
� ���� ��� �� ���� �� �� � �� � �� ���
� �� � ��� �� ���� � ���.
�� ���� �� ��(���� �� ���)�� �� ������ �� �
� ��� � � �� �� �� ������.
�� ��: �� ��� ���� �� �� � �� ����� �� �� �
� � �� ��� ���� ����. �� �� /var/ct/� � � ���� �
�� ��
� 9 � �� �� – �� �� 185
�� ����� �����. � � � ��, �� ���� �� �� �� �
� �����. ��� ���� �� �� ��� ���� ��� �� � �
���� �� ����� fork���.
�� IP ���� 192.168.1.1� �� �� ��� �� �� ��� �� ��
� � � ���� �� ���� �� ��� ���. � � ��� ��
��� �� ��� �����.
# cat /var/ct/samtb_net_blockreserve_192.168.1.1Mo Jul 4 08:38:40 CEST 2005
���� �� ����� �� RSCT �� ���� �� ��: � ���� RSCT
�� ��� ��� �� �� �� ��� �� ���, ���� �� ��
�� �� � ��� ���� �� �� ��� �����.
PostReserveWaitTime=30
�� ��� ��, ConfigRM �� ��� �� ��� ���
� �����. ���� �� ���� � �� �� ��� ��
�� ��� ��� ��� �� �� ��� ��� ���� ��
�, PostReserveWaitTime ��� ��(30�)�� ��� ��
�. �� �� �� �� �� �� ��(�� ��� ��� �
� ��� ��)� �� �� �� �� �� �����.
HeartbeatPeriod=30
��� ��� ��� ConfigRM� ��� �� ��� �� �
� �� ��� �����. ���� � �� �� �� ��
���� �� ��� �� �� �� ��� ����
HeartbeatPeriod� 0�� ��� �� �� ��� �� ����.
���� �� ���� ����� ��� �� �: ���� 2-� ����(n1
� � n2 �)� �� ��� ����. �� ������� ��� ��
�� � ��� ��� �����. ����� ���� ��� �� �� �� �
�� �� ��� � �����, �� ��(n2)� ��� � �����
(192.168.177.2)� �� � ����. ��� ��� �� ��� � � �
���� �� � ����.
�� ��
186 ��� � ��� ���
�� �� �� ����
������ �� ���� rmrpnode �� ���� �� ����� ��
� �� �� ������ ���. �� �� ��� ��� ��� �� ��
��, ��� ���� � ��� �� ���� ���� ��� � � ����.
�� ����� �� �� �� ��� ������ �� ��, �� ��
OpQuorumOverride� 1� ��� ���.
chrsrc –c IBM.PeerNode OpQuorumOverride=1
� ���� �� �� �� ��� �� HAS_QUORUM�� �� ��� ��
���� ����.
�� 11. 2-� ���� �� ��
�� ��
� 9 � �� �� – �� �� 187
188 ��� � ��� ���
� 10 � System Automation for Multiplatforms �� � ��
� ���� System Automation for Multiplatforms� � ��� ���� ��
� � ��� � �� ��� ���� �� ����. �� System Automation
for Multiplatforms� �� �� �� ��� ��� �� � � �����.
System Automation for Multiplatforms ��
��� ��� ���� System Automation for Multiplatforms� � ��� �
� ����. �� � ���� ��� ��� ��� �� � ����, ���
��� ����, ����� �� �� � ����.
�� � ��� ����.
v TimeOut
System Automation for Multiplatforms�� ��� �� �� ��� �� ��
� �(�)� �����. ��� ��� ���� RetryCount� ��� �
�� ��� �����.
v RetryCount
�� ��� ����� ����� ��� ���� ���� �����.
v Automation
System Automation for Multiplatforms� �� ���� �� �� �� �� �
���� ��� �����.
v ExcludedNodes
System Automation for Multiplatforms�� ��� ��� ��� �� ���
��. �� ��, ���� ��� �� � ����.
v ResourceRestartTimeOut
System Automation for Multiplatforms� ��� �� ��� ��� � �
�� �� ���� �� ���� ��(�)���.
v TraceLevel
� �� � ��� �� ���� � �����. �� 255� ��
��� �� ����, � 0 ��� ���� � ��� ���� ����.
��� ��� �� �� ��� Policy� � � ��� �� ����.
© Copyright IBM Corp. 2006, 2008 189
�� � ��� �� � lssamctrl �� ���� �� � ����. samctrl
�� ���� ��� �� � � ����. � �� �� �� �� � �
IBM Tivoli System Automation for Multiplatforms ��� �����.
TimeOut � RetryCount
TimeOut �� �� RetryCount �� �� �����.
TimeOut
�� ���� ��� �� � � System Automation for Multiplatforms
� ���� ��� �����.
RetryCount
�� ��� ���� �� System Automation for Multiplatforms� TimeOut
�� �� ���� �� �� �� ��� �����. ��� � �� �
� ��� ���� �� �� �� �� �� ��� �� �� �
����.
�� ��
� ���� System Automation for Multiplatforms� � �� �� �� �� �
�� ��� �� � �����. ���� �� �� ���� �� �� � ��
���.
1. ��� ��� �� �� ��� ��(��� �� ����)� ����. � �
� ��� System Automation for Multiplatforms� ��� ��� ���� �
� �� ����� ����.
2. ��� ��� �� �� �� �� ��� �����. � �� ���� ��
�� � �� ����.
v ��� �� ��� ��� ���� �� , System Automation for
Multiplatforms� ��� �� �� �� ��� � �����. �� �� �
� ��� ���, RetryCount �� �� System Automation for
Multiplatforms� �� �� �� ��� �����.
v ��� �� ���� � �� ��� ��� ��� ����. �� ���
�� ������ ��� �� ��� �� ��� � � �� ����.
– �� ��� ��� � �� �� �� ����� ����.
– �� ��� � ��� �� �� �� ���� � �� �� ���
� �� ���� �� ��� ��, System Automation for Multiplatforms
� ��� � �� �� �� �� �� ��� �����. �� ��
� ��� �� �� � �� �� �� �� ��� ��� � �
�� ��� �� ��� �� ��� ������.
3. ��� ���� ��� ��� ��(���)� ���� ����. � �� System
Automation for Multiplatforms� ��� �� �� ��� ���� � �
System Automation for Multiplatforms �� � ��
190 ��� � ��� ���
� ��� �� ��� ����� � � � �����. � ��� System
Automation for Multiplatforms� ��� �� � �� �� ��� ����
�. �� �� �� ��� ���, System Automation for Multiplatforms�
RetryCount� �� � �� � ���(TimeOut * RetryCount)� ��� �
�, � � �� ���� ��� �� �� ��� �����.
System Automation for Multiplatforms� �� �� �� � ��� �� ��
�� �� �� ��� ��� � ��� OpState� ���� ��� ����.
�� ��� �� �� � ��� ��� ��� ���� �� �� ��� �
��� �� ����. ���� ��� RMC � resetrsrc� ��� ��
�� ���.
� �� ���� �� ��� ��� ��� �� � �� ��� ���� �
����. �� �� ��, ���� �� �� ��� ��� � � �� �
�� ��� ���� System Automation for Multiplatforms� �� �� ��
�� �� � ���.
��� �� ����.
v TimeOut = 60
v RetryCount = 3
samctrl –t Timeout �� ���� TimeOut �� ��� samctrl –r Retry_count
�� ���� RetryCount �� ����.
IBM.Application ���� ��� ��� �� �����. IBM.Application ��
�� ��� ��� ��� � ���� � TimeOut �� ���� ����. �
�� ���� �� TimeOut ���� � StartCommandTimeout ��
MonitorCommandPeriod ��(IBM.Application ��� ���) �� �����.
�� ��
� ���� System Automation for Multiplatforms� � �� �� �� �� �
�� ��� �� � �����. ���� �� ��� �� � ��� ���� �
���.
1. ��� ��� ��� ��� ��(����)� ����. �� �� ���
�� ����.
2. �� ��� ��� �� ��� �����. � �� ���� �� ��
� �� ����.
v ��� �� ��� ��� ���� �� , System Automation for
Multiplatforms� ��� �� � �� �� ��� �����.
v ��� �� ���� � �� ��� ��� ��� ����. ��� ��
� ��� ���� �� �� ��� ����.
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 191
3. ��� �� �� ��� ��� ��(����)� ��� ����. � ��
System Automation for Multiplatforms� �� ��� �� �� ��� ��
�� � ��� ��� ��(����)� �� � � �����.
Automation
� ��� System Automation for Multiplatforms ��� ��� �� �� ��
� �����. ���� �� ���� ��, System Automation for Multiplatforms
� �� �� ��� �����. ��� ��� ���� �����.
��� AUTO ���, �� ���� ��(On)�� � ���.
���� ���� samctrl –M F� ����, ���� �� ����� ��
samctrl –M T� ������.
ExcludedNodes
System Automation for Multiplatforms� ��� � ��� � ���� � �
�� � �� �� �� �����. �� ��, 4�� � node05, node06,
node07 � node08�� �� � �� � �� A� ����. � �� RG_A
�� ��� ������. � ��� ��� ��� �� �� � ��� node05
�� �����. �� �� ��� node05� ��� ��, System Automation
for Multiplatforms� node05� ��� ���� � ��� �� � � ����
�� �����.
��: � ��� ���� �� ��� �� �� ���� � ��� �� �
� � �� ��, �� ��� ��� � ����.
���� �� �� ����. �� �� ���� �� �� �� � ���
� ���.
�� ��� �� �� � ��� ���� samctrl –u a� ����, �
���� �� ���� samctrl –u d� ����, ��� �� ���
samctrl –u r� ������.
ResourceRestartTimeout
ResourceRestartTimeout � System Automation for Multiplatforms� ��� �
� ��� ��� � ��� �� ���� � � ���� ��(�)� ���
��. � �� �� �� ���� ��� � ���� ���� �� � ��
�� �� �� �� � ����.
��� 5����.
samctrl –o �� ���� �� �� �� ��� �� �� � ����.
System Automation for Multiplatforms �� � ��
192 ��� � ��� ���
samctrl -l �� ���� � � �� � ����. � (TraceLevel)
���� � ��� �� �����. ��� 127���. �� 255� �� �
�� �� ����� ���. �� 0�� ��� �� �� ��� ���� �
��� ���� ����. ��� ��� �� �� ��� Policy� � � �
�� �� ����.
��
System Automation for Multiplatforms �� ��� �� ���� �� lssamctrl
�� �����.
lssamctrl
�� �� System Automation for Multiplatforms �� ��� �����.
System Automation for Multiplatforms �� �� ��:
SAMControl:TimeOut = 60RetryCount = 3Automation = AutoExcludedNodes = {}ResourceRestartTimeOut = 5ActiveVersion = [1.2.0.0,Tue 04 May 2004 12:30:48 PM EDT]Enable Publisher = DisabledTraceLevel = 127
�� � ��� node05 �� ���� �� �� �� ������.
samctrl -u a node05
RetryCount ���� �� 5� ��� �� �� �� ������.
samctrl –r 5
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 193
System Automation for Multiplatforms ��� �� ��� Policy ��
� ���� System Automation for Multiplatforms� ��� ��� ���� ��
� Policy �� �� �� �� �����.
��� Policy� System Automation for Multiplatforms� � � � �����.
��� Policy� ���� System Automation for Multiplatforms� ��� ��(
� � ��)� ���� �� �� � ����. Policy� �� ��, �� �� �
� � � ���� �� ��� �����. ���, Policy� ������ Policy
� ��� ���� � ��� � �� �� ���� � ������.
samPolicy �� ���� �� ��� Policy� ���� � ����. � �
�� �� � ��� � ��� ��� � ����.
1. Policy� ���� ��� � Policy� ����
2. Policy� �� ��
3. �� Policy� ����
samPolicy � �� ��, � , ���, IBM.Application, IBM.ServiceIP,
IBM.AgFileSystem, IBM.Test ��, �� ���(samctrl) � IBM.TieBreaker �
�� �����.
samPolicy �� ��� Policy ��
�� samPolicy �� ���� Policy� ���� �� �� ����. ��
� ��� IBM Tivoli System Automation for Multiplatforms ���� � �
� �� �� �����.
samPolicy �� �� �� ��:
Policy� ���, ���� �� ���� �� samPolicy �� ���� �� ��
��� �� � �� ����� �������. � � �� �� ���� �
�� �� �� ������ samPolicy �� -q ���� ������.
��: XML � myPolicy.xml� ���� �� Policy� ����� �� ��
���� ��� �� �� �� ������.
samPolicy -q -a myPolicy.xml
Policy ��
System Automation for Multiplatforms� XML � � ���� ��� Policy� �
����. IBM Tivoli System Automation for Multiplatforms ��� ‘Policy XML
�’ ���� XML Policy � �� �� �� ��� �����.
��: �� Policy� myPolicy.xml � � ���� �� �� ������.
samPolicy -s /usr/xml/myPolicy.xml
System Automation for Multiplatforms �� � ��
194 ��� � ��� ���
� �� �� ���, �� � ��
samPolicy �� ���� Policy� ���, �� �� � � ����.
��: XML � myPolicy.xml� ���� �� Policy� ����� �� �
� ������.
samPolicy -a /usr/xml/myPolicy.xml
�� Policy ��
samPolicy �� ���� �� �� Policy� ���� �� �� � ����.
�� ��� ���� �� �� �� ��� ����.
��: XML � update.xml� ���� �� �� �� �� Policy� ����
�� �� ������.
samPolicy -u update.xml
�� Policy ����
�� �� Policy� ������ �� �� ������.
samPolicy -d
Policy �� �
�� Policy ��(�: PolicyName, PolicyDescription, PolicyAuthor)� ����
samPolicy �� -i ��� ������.
��:
myPolicy.xml � �� �� Policy ��� ���� �� �� ������.
samPolicy -i /usr/xml/myPolicy.xml
��� Policy� XML ��
��� Policy� XML � � �� � ����. �� �� ��� �� � ��
��.
v System Automation for Multiplatforms ���� �� �� ��� Policy� XML
� � �� � ����.
v ��� Policy� �� � ����.
XML Policy � Integrated Solutions Console� ��� Policy ���� ���
� �� � �� � ����. ��� �� 147 ���� �Policy ���� ��
�� ��� Policy �� � ���� �����.
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 195
XML ��� System Automation for Multiplatforms ����
�� �� ��� Policy ��
� ����� ��� Policy� �� � ����� � System Automation for
Multiplatforms ���� ��� �� ���� � � ����. ����� �
� �� �� � � � ��� ��� �����.
1. System Automation for Multiplatforms� ����� ���� �� �� ��
��� ����.
2. 12 ���� �1� : ���� �� � ���� ��� �� �� ����� �
��� ������.
�� � � ������.
1. XML ��� Policy ��� �� IBM Tivoli System Automation for
Multiplatforms ��� "Policy XML �" �� ��� �� �� �� XML
�� XML � � ������.
2. XML � � Policy � ����� ������. � �� SA �� ���� �
�� Policy� ����� ��� �����.
3. �� � � ��� ���� �� � ��� �� ��� Policy� �����
�.
v ���� samPolicy -c �� ������. �� �� �����.
– ���� ���� � �� ��� Policy� ��� ��� � �� ��
�� ���� �����.
– �� �� ���� �� �� �� ��� �����. Policy� ����
� �� �� �� ��� ���� ���. ���� ���� ���
Policy� ��� � ��� ��� �� �� ��� ���� ��
� ��� ���� ���.
v SA �� ���� "��� Policy � " ���� ����. ����� ���
Policy� ��� ��� � �� �� �� �� ���� � �� ���
�� � ����. �� �� ��� Policy� ����� �� �� ���
� ���. ���� ���� ��� Policy� ��� � ��� ��� ��
�� ��� ���� �� � ��� ���� ���. ��� � 138
���� ���� Policy ���� �����.
4. �� � � ��� ���� �� � ��� �� ��� Policy� �����
�.
v ���� �� �� ������.
samPolicy -a <file_name>
��� <file_name> ��� ��� Policy� ���� �� XML � �
��� ����.
System Automation for Multiplatforms �� � ��
196 ��� � ��� ���
v SA �� ���� "��� Policy � " ���� � ��� Policy� �
� �� Policy ���� �����. �� samPolicy -r �� ���� �
����. ���� Policy� ����� �� � �� samPolicy -a �
� ���� � ����.
XML ��� ��� Policy ��
�� � � ������.
1. �� ��� Policy� XML � � ������. � ��� ���� ��
�� �� �� ������.
samPolicy -s <file_name>
��� <file_name> ��� Policy� ���� XML � � ��� ���
�. �� �� ��� Policy� XML Policy � � ���� ����� ��
�� ���� ��� �� ��� � �� � � � ���� ���. � �
�� � �� ��� ��� � �� �� �� �� Policy� ����� �
�� ���.
2. �� �� ��� Policy� ��� ���� XML � � ��� ���� �
� �� ��� ������.
3. XML Policy � � ��� Policy� �����. �� �� � �� � ��
�� �� �� ��, �� �� �, �� � �, � ��, �� �� �
� �� � ����.
4. �� � � ��� ���� �� � ��� �� ��� Policy� �����
�.
v ���� �� �� ������.
samPolicy -c <file_name>
��� <file_name> �� XML � � ��� ����. �� �� �
����.
– ���� ���� � �� ��� Policy� ��� ��� � �� ��
�� ���� �����.
– �� �� ���� �� �� ��� ��� �����. Policy� ���
�� �� �� �� ��� ���� ���. ���� ���� ���
Policy� ��� � ��� ��� �� �� ��� ���� ��
� ��� ���� ���.
v SA �� ���� "��� Policy � " ���� ����. ����� ���
Policy� ��� ��� � �� �� �� �� ���� � �� ���
�� � ����. �� �� ��� Policy� ����� �� �� ��
� ���. ���� ���� ��� Policy� ��� � ��� ��� ��
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 197
�� ��� ���� �� � ��� ���� ���. ��� � 138
���� ���� Policy ���� �����.
��� Policy� ��� ��� ��� �� �� ���� � Policy� ��
� � ����.
�� ���
� � � Policy ������ � ��� Policy� �� ��� Policy� �
� �����. ��� � Policy � � ����� �� �� �� ���
� ���� �� ��� �����. �� �� ��� Policy� ����
�� � ��� Policy� ����� � ����.
� ��� ��� Policy� ����� �� �� ������.
samPolicy -a <file_name>
��� <file_name> ��� ��� Policy� ���� XML � � �
�� ����.
� Policy� �� �� �� ��� � � � ���
� � � Policy ���� �� ��� �� Policy� �� ���� ���
� Policy�� ���� � �� ��� �� ����.
� ��� ��� Policy� ����� �� �� ������.
samPolicy -u <file_name>
��� <file_name> ��� ��� Policy� ���� XML � � �
�� ����.
� ��� ��� Policy� ���� ��� �����..
v XML Policy � � ���� �� � �� �� �� ��� Policy�
�����.
v �� �� ���� ���� �� XML Policy � � �� ����
����.
v �� ���� ��� ��� Policy� � �� ���� �� �� �
��� ����.
v �� �� ��� ��� � ��� Policy� ���� � �� ���
� ����.
� Policy ��� ���� � � � �� �� ���� ����
XML Policy � � ���� �� �� ��� Policy� �� � � �
����. ��� XML Policy � � ����� � � ���� �
��. �, ��� ��� ��� ��� ���.
System Automation for Multiplatforms �� � ��
198 ��� � ��� ���
� Policy� �� �� �� ��� ��� � ���
� � � Policy ���� �� ����, �� �� ��� ��� ���
��� Policy� ���� � �� �����.
� ��� ��� Policy� ����� �� �� ������.
samPolicy -r <file_name>
��� <file_name> ��� ��� Policy� ���� XML � � �
���. � � � Policy ���� SA �� ���� ��� Policy� �
�� ��� �����(139 ���� ���� Policy ���� �). � �
�� ��� Policy� ���� ��� �����..
v �� ���� ��� ��� Policy� � �� ���� �� �� �
��� ����.
v XML Policy � � ���� �� � �� �� �� ��� Policy�
�����.
v �� �� ���� ���� �� XML Policy � � �� ����
����.
v �� �� ��� ��� � ��� Policy� ���� � �� ���
��.
� � � Policy ��� ��� � �, �� �� ��� � ���
� �� ��� �� ���� XML Policy � � ���� �� �� �
�� Policy� �� � � � ����. ��� XML Policy � � ��
��� � � ���� ���. �, ��� ��� ��� ��� �
��.
Policy ���� ��
��� �� �� ���� � Policy� ����� � ���� � ����
Policy� ���� ����� ��, samPolicy �� ���� �� �� ��
��� �� � ����.
XML � ��� �� � ��� %%parname%%� � ���� �����. ��
� parname ���� ����. ���� XML Policy �� � � ″var″
�� ����� ���.
��� �� ��� ����.
name ��� �
value ��� �
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 199
��� ���� ��� �� � �� � � ��� � ��� � ���� �
��� �� � ����� �� ���. �� � ���� � ���� Policy
� ������� � ��� ���.
��, XML Policy �� � � �� XML � � ���� XML Policy
�� ��� � �� � ����.
include �� ���� � XML � � �� � ����. � � � ��
� � ��� ���� ��, ��� �� � ����.
�� XML � �� � � �(AutomationPolicyTemplate)� ����.
��� ���� Policy� ������ ���� samPolicy �� -t ��
�� ������.
��:
samPolicy -a -t top.xml
top.xml � � �� �� ����.
<AutomationPolicyTemplate productID="SAM" version="2.3.0"xmlns="http://.ibm.com/TSA/Policy.xsd"xmlns:xsi="http://.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://.ibm.com/TSA/Policy.xsd SAMPolicyTemplate.xsd ">
<PolicyInformation><PolicyName>template</PolicyName><AutomationDomainName>%%domain%%</AutomationDomainName><PolicyToken>1.0</PolicyToken><PolicyDescription>MyDescription</PolicyDescription><PolicyAuthor>admin</PolicyAuthor>
</PolicyInformation><var name="domain" value="lnx"/><var name="node1" value="lnxcm11x"/><include>internal.xml</include>
</AutomationPolicyTemplate>
internal.xml� �� �� ����.
<?xml version="1.0" encoding="UTF-8"?><AutomationPolicy productID="SAM" version="2.3"
xmlns="http://.ibm.com/TSA/Policy.xsd"xmlns:xsi="http://.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://.ibm.com/TSA/Policy.xsd SAMPolicy.xsd">
<ControlInformation><Timeout>60</Timeout><RetryCount>3</RetryCount><ResourceRestartTimeout>5</ResourceRestartTimeout>
</ControlInformation><Resource name="T1" class="IBM.Test" node="%%node1%%">
<ClassAttributesReference><IBM.TestAttributes name="IBM.Test.T1"/>
</ClassAttributesReference></Resource><IBM.TestAttributes name="IBM.Test.T1" >
<TimeToStart>0</TimeToStart>
System Automation for Multiplatforms �� � ��
200 ��� � ��� ���
<TimeToStop>0</TimeToStop><WriteToSyslog>0</WriteToSyslog>
</IBM.TestAttributes></AutomationPolicy>
�� �� Policy� ��� ���� �� IBM.Test ��� �����. ��
���� XML Policy� �� XML � � �� ���� � �����.
� � �� � � �� � � .complete.tmp� �� ��� �
� � �����.
samPolicy -a -t top.xml �� ���� �� �� � (top.xml �
internal.xml)�� ���� top.xml.complete.tmp � �� ����.
<?xml version="1.0" encoding="UTF-8"?><AutomationPolicy productID="SAM" version="2.3"
xmlns="http://.ibm.com/TSA/Policy.xsd"xmlns:xsi="http://.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://.ibm.com/TSA/Policy.xsd SAMPolicy.xsd">
<PolicyInformation><PolicyName>template</PolicyName><AutomationDomainName>lnx</AutomationDomainName><PolicyToken>1.0</PolicyToken><PolicyDescription>MyDescription</PolicyDescription><PolicyAuthor>admin</PolicyAuthor>
</PolicyInformation>
<ControlInformation><Timeout>60</Timeout><RetryCount>3</RetryCount><ResourceRestartTimeout>5</ResourceRestartTimeout>
</ControlInformation>
<Resource name="T1" class="IBM.Test" node="lnxcm11x"><ClassAttributesReference><IBM.TestAttributes name="IBM.Test.T1"/></ClassAttributesReference>
</Resource>
<IBM.TestAttributes name="IBM.Test.T1" ><TimeToStart>0</TimeToStart><TimeToStop>0</TimeToStop><WriteToSyslog>0</WriteToSyslog>
</IBM.TestAttributes>
</AutomationPolicy>
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 201
�� �� � �� ��� � � ��
�� � �� �� ���� �� �� �� �� �� �� ���� ��� ��
������ ��� � ���� . �� � �� � �� �� ���
NominalState �� �� ����. �� ��� ���� ���� ����.
SA �� ���� �� ���� �� � �� �� �� � ����.
���� �� �� ������.
v �� ��� �� �� ���� ��� ������.
rgreq –o <start|stop>
v �� �� ���� �� �� ���� ��� ������.
rgmbrreq –o <start|stop>
�� � �� ��� ��
�� �� �� �� ��� �� �� �� �� ��� �� ���� �� ��
� ��� �� ����.
v �� ��� �� ���� � ��� �� ����� ��� ���. ��
�� �� � ��� �� � �� ��� Policy� � � ���� �� ��
�� ��� ��� �� �� ����.
v �� �� ���� �� ���� � �� ���� ��� ���. ���
� � ��� �� �� �� ��� ��� �� �� ����.
�: �� ��� �� ���� �� ���� � �� ��� �� �� � �
� ���� ��� � � ����. �� ��� �� ���� �� ���
��� ��� ���� �� ��� ��� �� �����. � ��� �
� ��� �� ��� " ���" ��� ��� �� �� ��� "��"�
����.
��:
��� ��� ���� �� ��� �� ���� �� ���� �� ��
��� �� ��� �� ��� "��� ���"�� ���, ��� �
�� ��� �� �� ��� "��"� ����.
�� �� �� �� ��� �� � �� � ���� ��� �� �� �
���� � ����� �� � �� �� �� �� �� ������.
�� � �� ��� ��� �
���� � � �� ��� � �� ����� �����. �� ��
�� �� �� �� �� �� � ���� � ����� ����. –S �
System Automation for Multiplatforms �� � ��
202 ��� � ��� ���
�� ���� ��� ���� -p ��� ���� �� ���� � ���
�� rgreq � rgmbrreq � �� � ���� ��� � ����. �� ���
� � �� �� ��� ��� 208 ���� ��� ���� ��� ���
��.
�� � �� �� �
�� � �� � ���� ��� � ��� � �����. �� ���
� ���� � �� ���� ���. �� �� �� �� � � ���
�� �� ���� �� ���� �� ��� �� ������.
v �� ��� � ���� �� ���� ��� ������.
rgreq –o cancel
v �� �� ���� � ���� �� ���� ��� ������.
gmbrreq –o cancel
�� ��
lsrgreq �� ���� �� �� �� � ����.
�� ����
� �� ����� � �� � ��� ���� �� ��� �� �� ���
� � �� � ��� � ��� ���� �� ��� ��� �� lsrgreq
�� ���� �� �� ����. �� ���� ���� �� �� ���
� IBM Tivoli System Automation for Multiplatforms ��� �����.
"top-rg" ��� NominalState� ������� � OpState� ������.
lnxcm3x:# lsrg -g top-rg | grep StateDisplaying Resource Group information:For Resource Group "top-rg".
Resource Group 1:NominalState = OfflineOpState = OnlineTopGroupNominalState = Offline
lsrgreq �� �� ��� OpState� � ������ �� �� ��
��� �����.
lnxcm3x:# lsrgreq -L -g top-rgDisplaying Resource Group request information:All request informationFor Resource Group "top-rg".
Resource Group 1:ResourceGroup = top-rgPriority = HighAction = startSource = Automation
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 203
NodeList = {}ActiveStatus = ActiveToken = 8f5697eb5f84c0f044995b3d00040a5bUserID =MoveStatus = None
"top-rg" ��� ������ ��� �� ���� �� �� �����.
rgreq –o stop top-rg
lsrgreq �� �� ���� �� �� � ��� ��� �� ���� �
��� �����. �� �� �� ����(��)�� ��� � -�- �
���� ��� � ����� �� �� ���� �� � ��� ��� �
��� ���.
lnxcm3x:# lsrgreq -L -g top-rgDisplaying Resource Group request information:All request informationFor Resource Group "top-rg".
Resource Group 1:ResourceGroup = top-rgPriority = HighAction = startSource = AutomationNodeList = {}ActiveStatus = ActiveToken = 8f5697eb5f84c0f044995b3d00040a5bUserID =MoveStatus = None
Resource Group 2:ResourceGroup = top-rgPriority = lowAction = stopSource = OperatorNodeList = {}ActiveStatus = InActiveToken = 8f5697eb5f84c0f044995dad0007b338UserID =MoveStatus = None
lsrg �� �� ��� ��� ��� ��� �����.
lnxcm3x:# lsrg -g top-rg | grep StateDisplaying Resource Group information:For Resource Group "top-rg".
Resource Group 1:NominalState = OfflineOpState = OnlineTopGroupNominalState = Offline
��� ������ ��� �� ���� � ����� �� �� �����.
rgreq –p high –o stop top-rg
System Automation for Multiplatforms �� � ��
204 ��� � ��� ���
lsrgreq �� �� � �� ���� �� � ���� �� �����,
-�- ���� �� � �� ����� ���� �� �� ��� �� �
����.
lnxcm3x:# lsrgreq -L -g top-rgDisplaying Resource Group request information:All request informationFor Resource Group "top-rg".
Resource Group 1:ResourceGroup = top-rgPriority = HighAction = startSource = AutomationNodeList = {}ActiveStatus = InActiveToken = 8f5697eb5f84c0f044995b3d00040a5bUserID =MoveStatus = None
Resource Group 2:ResourceGroup = top-rgPriority = HighAction = stopSource = OperatorNodeList = {}ActiveStatus = ActiveToken = 8f5697eb5f84c0f044996004000368b1UserID =MoveStatus = None
�� �� ��� �� �����.
lnxcm3x:# lsrg -g top-rg | grep StateDisplaying Resource Group information:For Resource Group "top-rg".
Resource Group 1:NominalState = OfflineOpState = OfflineTopGroupNominalState = Offline
"top-rg" ��� �� ����� ��� ���� ��� �� �� ���� �
�, �� �� � ��� ����.
rgreq –o cancel top-rg
��� �� ��� -�- ���� �� �� ��� ��� �� ��
�� "top-rg" ��� ��� �� �����.
lnxcm3x: # lsrgreq -L -g top-rgDisplaying Resource Group request information:All request informationFor Resource Group "top-rg".
Resource Group 1:ResourceGroup = top-rg
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 205
Priority = HighAction = startSource = AutomationNodeList = {}ActiveStatus = ActiveToken = 8f5697eb5f84c0f044995b3d00040a5bUserID =MoveStatus = None
lnxcm3x:# lsrg -g top-rg | grep StateDisplaying Resource Group information:For Resource Group "top-rg".
Resource Group 1:Resource Group 1:
NominalState = OfflineOpState = OnlineTopGroupNominalState = Offline
��� ���� �� �� � �� �� � �� ��
� �� ���� �� �� � �� �� �� ���� �� ��� ����
����� ��� � ����. �� �� �� � ��� ���� ���� �
�� �� �����. � � � �� � ���� �����.
v �� ��� ��� �� �� ������.
rgreq -o lock
v �� �� �� ���� ��� �� �� ������.
rgmbrreq -o lock
� � ���� ��� � ��� � �����. � �� � ��
�� ���� ��� � ���� ���. ��� � �� � � �� �
�� �� ���� �� ��� �� ������.
v �� �� ��� � ���� � ���� � �� ���� �� �
� ������.
rgreq -o unlock
v �� �� �� ���� � ���� � ���� � �� ���� �
� �� ������.
rgmbrreq -o unlock
�� ��� ��
� �� ��� �� ��� �� � ����.
v �� �� � �� �� �� ����.
v �� ��� � �� �� �� �� �� ��� �� ���� � �� �
� �� ����.
System Automation for Multiplatforms �� � ��
206 ��� � ��� ���
v StartAfter, DependsOn �� DependsOnAny � � ��� � �� �� �
� �� �� ��� � �� �� ����.
v StopAfter � � ��� � �� �� �� �� �� ��� � �� ��
����.
��� ��� �
System Automation for Multiplatforms� �� ����� ��� �� �� �
��� � �� �� �� �����. �� ���� �� �� �� ��
�� � ���� � ����� ����. -S ��� ���� ��� ����
-p ��� ���� �� ���� � ����� rgreq � rgmbrreq �
�� � ���� ��� � ����. �� ���� � �� �� ��� ��
� 208 ���� ��� ���� ��� �����.
�� �� �� �� �� ���� � �� � ���� � ��� �� �
�� ��� � ����� � �� �� ���. lsrgreq �� ����
� ��� �� � ����.
�� ����
� �� ����� � �� � ��� �� ��� �� �� ��� � � �
� � ��� � ��� ���� �� ��� ��� �� lsrgreq ��
�� � �� �� �� ����. �� ���� ���� �� �� ���
� IBM Tivoli System Automation for Multiplatforms ��� �����.
�� �� ″top-rg″� NominalState� ������ � OpState� �������.
lnxcm3x:# lsrg -g top-rg | grep StateDisplaying Resource Group information:For Resource Group "top-rg".
Resource Group 1:NominalState = OnlineOpState = OfflineTopGroupNominalState = Online
lsrgreq �� �� � ��� �� ���� �� ��� ������ ��
���.
lnxcm3x:# lsrgreq -L -g top-rgDisplaying Resource Group request information:All request informationFor Resource Group "top-rg".
Resource Group 1:ResourceGroup = top-rgPriority = HighAction = lockSource = OperatorNodeList = {}
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 207
ActiveStatus = InactiveToken = 8f5697eb5f84c0f044995b3d00040a5bUserID =MoveStatus = None
″top-rg″ ��� ����� ��� �� ���� ��� � �����.
rgreq -o unlock top-rg
�� ″top-rg″� �� � �� �� ����.
lnxcm3x:# lsrgreq -L -g top-rgDisplaying Resource Group request information:All request informationNo requests were found.
��� �� ��
��� �� � � ���
�� �� ��� ��� ��� �� �� ���� �� ����
�(���) � �� ���� ��� � (�� ��)� �� �����. � 23�
� ���� ��� ����.
� 23. �� � �� �� �� � ����
��� � �� �� �� �� �� ��
�� ��� �� 1�
��� ��� SA
�� ��
�� �� �� �� Operator high
System Automation for
Multiplatforms � �
�����
�� �� �� �� Operator low
��� �:
low, high, force
�� ����(�: Tivoli
Workload Scheduler �
� cron ��)
�� �� �� �� ExtSched High
��� �:
low, high, force
-�- ��� � System Automation for
Multiplatforms �� ��
�� ��� ���
-�- ��� ��
�
Automation high
-�- ��� �
�� SA �� ��
System Automation for
Multiplatforms �� ��
�� ��� ���
-�- ��� ��
�
Automation high
System Automation for Multiplatforms �� � ��
208 ��� � ��� ���
� 23. �� � �� �� �� � ���� ( �)
��� � �� �� �� �� �� ��
-�- ��� ��
� �� �����
System Automation for
Multiplatforms �� ��
�� ��� ���
-�- ��� ��
�
Automation high
��� ��� �� ��
�� ��� �� ���� � �� ��� ����� ����.
v �� � �� ��� NominalState� �����.
v �� ���� � �� � ��, ���� �� ���� ���
�����.
v �� ���� � �� ��, � �� ���� ��� ���� �� ��
��� �����. �� 12� �� �� �� �� ���� ��� ��� ��
��� ����.
�� 12�� ��� �� � ����.
– '"Operator" ����� � "Automation" � "ExtSched" ����� �
� �����.
– "Automation" ����� � "ExtSched" ����� �� �����.
��� -p high ��� ���� �� �� ������ "Automation" ��
��� �� �� � � ����. '"Operator" ����� �� �� �
�� -p force ��� ���� ���.
�� 12. �� ���� ��
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 209
�� �� ��� ���
System Automation for Multiplatforms �� -�- ��� �� ���� �
�� � ���� �� ���� �� "Automation" ���� �� � �� ��
�����. ��� � NominalState�� � ����� ��� ����. ��
�� �� �� ����� �� �� ���� ���� � �� �� �
� ����.
��-�-�� ��� ��� ���
-�- ��� ��� �� �� ��� �� � 1� ��� ���
�� �� �� �� -�- ��� ���� �� �����. ��� �
���� � �� "High"� ��� � �� �� �� "Automation"�
����. -�- ��� ��� �� � �� -�- ��� ��� �
� ���� �� ��� �� ��� � �� ����.
rgreq ��� ���� �� �� ��
� ��� �� �� �� �� ��� ��� �� �� �� �� ��� �
���� �� �� � ����. �� �� �� � ��� ������
����. � ������ � �� ��� �� ��� � �� ��� �
��� � �� ���� � �� �� ����.
rgreq –o move �� ���� �� ��� �� �� �� � ����.
��� ��
��� ��� �� �� ��� �� ������. ��� �� �� ��
� ��� �� ���� ��� ��� �� ���� ��� � ����. � ��
��� �� �� �� �� � ����.
�� �� ��� MemberLocation ��� collocated� ��� �� ��,
� ��� rgreq �� ���� ����. � �� �� �� � �� ��
�� � ���� �����. �� ��� ���� � ��, rgreq �� –n
���� �� ��� � ��� ���� ���. �� �� � ���� �
����.
�� ��� ���� �� ��� �� �� �� � �� ����. ��
���� �� ��� �� �� �� �� �����. � �� �� �� �
� �� ���� � �� ���� � �� �� �����.
�� �� �� �� ��� ���� �� ���� �� ��, � ���� ��
���� �� �� �� ��� � �� ��� ����� �� �� �� ��
� �� �����. �� ���� ���� ���� � � ���� ��� ��
��� �� �� � ���� ���� ���.
System Automation for Multiplatforms �� � ��
210 ��� � ��� ���
�� ��� ��
��� 2.3��� ���� � �� System Automation for Multiplatforms� �
�� �� ���. �� ������ �� �� ��� �� ��� ��� ��
�. ��, �� ��� ��� ��� �� �� �� �� �� �� ���� �
��� �� ���� �� ���� ���� � � �� ��� �����.
��� ��� � �� �� �� �� �� ���� �� � � ��� ��
�� �� �� �� �����.
�� � ��� ���� �� �� �� ��� �� ���� �� ��
� �� ��, � ��� ���� � ��� ��� �� ��� � ���
������. �����, ��� �� ���� � � ��� ��� �� ���
�� ��� � ��� �� ��� ���� � ���� �� �����.
�� � �� �� ��� � ���� �����. �� �� �� ���
MoveStatus � �� ��� ��� ���� �� �����.
��� �� ��� ���� ����� ��� �� �� �� ���� �� �
� �� �� �� � ����. �� ��� �� �� �����.
rgreq -o movecancel
�� � ��
�� ��� ���� �� �� � �� ��� �� �� ��� ��
�� �� �� �� �� � �� �� ���� �� � ���, �� � ��
�� �� ��� ��� ���. �� �� � � ����.
v Collocation
v AntiCollocation
v DependsOn
v DependsOnAny
v StopAfter
v ForcedDownBy
�� Affinity � AntiAffinity � � �� �� ���� �� �� ����.
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 211
���(shadow) �� ��
��� �� �� � ��� ��� ����.
v � �� ��� OpState� ������ IBM.Application ���� �� ���
��.
v SelectFromPolicy �� �� NoControl� ��� �� ���� �����,
System Automation for Multiplatforms� ��� ��� �� OpState ��� �
� �� �� ��� �� ��� �����.
DependsOn � � StartAfter � StopAfter ��� � ������, � ��
� ��� �� �� � ��� �� �� � ��� DependsOn � � � �
���� ��� ��� ���� ���.
��� ��� ���� �� ��� DependsOn � � �� ��� �� ��
� ��� �����.
���� 1��, System Automation for Multiplatforms� �� �� � ��� �
� ���� ���� � ��� ����, System Automation for Multiplatforms
� �� �� � � �� ��� �� � ��� �� �� � ����.
��� ��� ��� ���� �� NoControl ���� ���� ��� ��� �
��� ���.
�� 13. ���� 1: ��� ��� �� DependsOn �
System Automation for Multiplatforms �� � ��
212 ��� � ��� ���
���� 2��, DependsOn � � ForceDown ���� �� �� � ���
���� �� �� ��� ������ ��� �� System Automation for
Multiplatforms� � ��� �����. ��� � ���� �� ���� �
�� �� ���� System Automation for Multiplatforms� �� � � � �
�� �� �� � ����.
��� �� ��
��� ��� ���� �� � � ������.
1. ��� ��� �� � ����� ������.
System Automation for Multiplatforms� MonitorCommand� �����, �
StartCommand � StopCommand� ���� ���. MonitorCommand� �
��� ��� OpState� ��� ���. �� � � ��� �� �� �
����.
v OpState �
‘lsrsrc –s ‘Name like “<res> “’IBM.Application OpState
v � ��� MonitorCommand ��
v � ��� OpState� � � ���� � � � ��� ���
MonitorCommand ��� ��
��:
�� 14. ��� ��� �� DependsOn �
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 213
�� � ����� �fixed_rs1� ��� ��� ��� �� �� �� ���
��.
#!/bin/ksh## shadow_sample.sh## init section#
Action=${1:-status}ResName=${2:-myresource}
UNKNOWN=0ONLINE=1OFFLINE=2FAILED_OFFLINE=3
export CT_MANAGEMENT_SCOPE=2 # necessary to execute SA MP commands
## main section#case ${Action} instart)
# is not executed .. so irrelevantRC=0;;
stop)# is not executed .. so irrelevantRC=0;;
status|*)RCval=$(lsrsrc -xt -s ’Name="’${ResName}’"’
IBM.Application OpState)RCx=${RCval:-2}case ${RCx} in[1]*) RC=${ONLINE}
;;*) RC=${OFFLINE}
;;esac#logger -i -t "$(basename $0)" "${ResName} monitored: ${RC}"
esac
exit ${RC}
2. � ��� �� �� � �� ���� ��� ��� ������.
# mkrsrc IBM.Application \Name="fixed_rs1_shadow" \ResourceType=0 \NodeNameList=”{‘node1’}” \UserName=”root” \StartCommand="/samplepath/shadow_sample.sh start fixed_rs1" \
System Automation for Multiplatforms �� � ��
214 ��� � ��� ���
StopCommand="/samplepath/shadow_sample.sh stop fixed_rs1" \MonitorCommand="/samplepath/shadow_sample.sh status fixed_rs1" \MonitorCommandPeriod=10 \RunCommandsSync=1
3. NoControl� SelectFromPolicy �� ��� ���� ������.
2� �� �� �� ��� ���� ���� ���� �� �� ���
���.
# mkequ <equ-name> -p A,NoControl \IBM.Application:<fixed-resource1>:<node-name1>,<fixed-resource2>:<node-name2>[,...]
��:
mkequ -p A,NoControl shadow_equ IBM.Application:fixed_rs1_shadow:node1,fixed_rs2_shadow:node2
��� Policy� ���� -p O,NoControl� ������.
4. � ���� 'shadow_equ' ���� �� DependsOn � � ������.
# mkrel –p DependsOn –S IBM.Application:float1 –G IBM.Equivalency:shadow_equ \float1-depon-shadow_equ
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 215
System Automation for Multiplatforms ����� �� �� ��
� ���� AIX, Solaris � Linux ���� System Automation for Multiplatforms
� �� ������ �� � � ��� ��� �� �� ����. Windows
��� System Automation for Multiplatforms� �� Administrator ��� ID
� �� �� �� � ����.
Linux, Solaris � AIX ����� ���� root ���� System Automation
for Multiplatforms�� �� �� ���� ���� System Automation for
Multiplatforms� ��� Policy� ��� � �� ��� �� �� �� ���
� �� ��� ��� ����.
System Automation for Multiplatforms� �� �� RSCT ��� RMC� �
� ��� ����, ACL(Acess Control List) � � ���� �� ��� ���
��. ����, RMC� �� �� ACL � � ���� ���� �� ���
� �� �� ����� ����� � �� ��� �����. �� ��� �
� ���� ���� RMC ������� ���� ����, � � ����
�� ��� �� �� ���(IBM.ResourceGroup,
IBM.ManagedRelationship, IBM.Equivalency, IBM.ManagedResource,
IBM.CHARMControl, IBM.Application � IBM.ServiceIP)� ��(��, �� ��
�� �)�� ���� �� ��� �� � �� � ��� � � ACL �� �
��� ���� ���.
RMC ACL � � �� �� ��� ��� IBM RSCT �� ����� ��
�� �����.
v �4��� “RMC ACL � � ���� ��� �� ��� ��� ��”("RMC
� �� ���� ���� �� �� � ����")
v �7��� “�� � �� �� ID �� ��”("���� �� ��� �� � �
�")
RSCT � RMC �� �� �� �� �� ��� � � �� �� ��� �
��� �� � ����. �� ��, ���� ��� �� ��� �� RMC �
� ���� �� ��� ���� ��� � ����. ��� � � �� �
�� ����, � �� RMC �� ���� ��� �� ��� �� ���. ��
� � � ���� ���� �� �� �� ��� �� �� ���� ����
� �� � ��� ���� System Automation for Multiplatforms ��� �
System Automation for Multiplatforms ���� �� �� ���� �� �
���. ��� � ����� ���� �� �� �� �� � ����.
v ���� �sa_admin�
v ���� �sa_operator�
System Automation for Multiplatforms �� � ��
216 ��� � ��� ���
�� ���� �� � � ������( � �� ���).
1. �� ��� System Automation for Multiplatforms� ���� �� �� �
� ��� ID� ������. �� ��� �� �� ������. �� �
Linux��� �� �� ������.
# /usr/sbin/useradd ernie# /usr/sbin/useradd bert
2. �� �� ��� ID� �� ��� ������. �� ��� �� ��
������. �� � Linux��� �� �� ������.
# /usr/sbin/groupadd sagroup
3. �� �� ��� ID� ��� ������. �� ��� �� �� ���
���. �� � Linux��� �� �� ������.
# /usr/sbin/usermod –G sagroup ernie# /usr/sbin/usermod –G sagroup bert
�: �� ��� System Automation for Multiplatforms� �� ���� �
� �� �� �� �� �����(�� ��� ��).
CT_MANAGEMENT_SCOPE=2
��� � �� �� � �� ���� � � ����.
4. /var/ct/IBM.RecoveryRM.log � � �� ���� �����.
� � System Automation for Multiplatforms ���� ����� � �
����. ��� ���� ��(IBM.RecoveryRM)� ���� �� � �
� � �����.
���� � � � �� ��� root ��� ��� ����.
-rw-r--r-- 1 root root 204 Oct 4 22:00 /var/ct/IBM.RecoveryRM.log
�� ��� �� �� ���� �� ���� �sagroup��� ��� ��
�. �� � Linux��� �� �� ������.
/bin/chgrp sagroup /var/ct/IBM.RecoveryRM.log
�� � ��� 664� ��� ���.
# /bin/chmod 664 /var/ct/IBM.RecoveryRM.log-rw-rw-r-- 1 root sagroup 204 Oct 4 22:00 /var/ct/IBM.RecoveryRM.log
�: System Automation for Multiplatforms� � � ��
/var/ct/IBM.RecoveryRM.log � � �� /usr/bin/touch �� ���
� � � �� � ����.
# /usr/bin/touch /var/ct/IBM.RecoveryRM.log
5. �� ��� /var/ct/cfg/ctsec_map.global � � ������.
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 217
��� ID �ernie� � �bert�� �� �� ��� ����� �� �� ��
RSCT �� �� ID �� � (/var/ct/cfg/ctsec_map.global)� ����
���.
unix:ernie@<cluster>=sa_operatorunix:ernie@<any_cluster>=sa_operatorunix:bert@<cluster>=sa_adminunix:bert@any_cluster>=sa_admin
� � �� �� ��� ID� System Automation for Multiplatforms �
�� �� �� ��� ID� ���� � �����. ����, �� ��� ID
�ernie�� �� ��� ID �sa_operator�� ����, �� ��� ID �bert��
�� ��� ID �sa_admin��� �����.
�� ��� � �� � � � ��� ��� ���� � �� ��� ��
� �(System Automation for Multiplatforms Operator �� System Automation
for Multiplatforms Administrator)� ���� System Automation for
Multiplatforms� �� �� �� ��� ID� � �� �� � ����.
�: /var/ct/cfg/ctsec_map.global � � �� �� ��, �� �
/usr/sbin/rsct/cfg/ctsec_map.global� /var/ct/cfg ����� ��
�� /var/ct/cfg/ctsec_map.global � � � ��� ������. ��
� �� � � �� /var/ct/cfg/ctsec_map.global � �� �� ��
� ���� ����. ���� �� �� �� �� /var/ct/cfg/
ctsec_map.global � � �� ���.
6. �� ��� /var/ct/cfg/ctrmc.acls � � ������. �� ��� ID
�sa_operator� � �sa_admin�� �� �� ��� ����� �� �� ��
RMC ACL � (/var/ct/cfg/ctrmc.acls)� ���� �� LOCALHOST� �
��� ��� �� ���� ���. �� � �� ����.
# The following stanza contains default ACL entries.# These entries are appended# to each ACL defined for a resource class and# are examined after any entries# explicitly defined for a resource class# by the stanzas in this file,# including the OTHER stanza.
DEFAULTroot@LOCALHOST * rw# LOCALHOST * r // comment this line out!none:root * rw // give root access to allnone:sa_admin * rw // append this row for saadminnone:sa_operator * rso // append this row for saoperator
7. � �� ����� ��� ����� �� ��� �� �� ����
�� ����� ���.
# /usr/bin/refresh -s ctrmc
System Automation for Multiplatforms �� � ��
218 ��� � ��� ���
8. samPolicy � *samadapter �� ���� �� �� �� � �� �
���.
a. �� � � �� ���:
# /bin/chgrp -R sagroup /opt/IBM/tsamp/sam/cfg# /bin/chmod g+ws /opt/IBM/tsamp/sam/cfg# /bin/chmod g+w /opt/IBM/tsamp/sam/cfg/*
b. �� � � �� ���:
# /bin/chgrp -R sagroup /var/ibm/tivoli/common/eez/logs# /bin/chmod g+ws /var/ibm/tivoli/common/eez/logs# /bin/chmod g+w /var/ibm/tivoli/common/eez/logs/*
c. /etc ����� �� � � �� ���.
/etc/opt/IBM/tsamp/sam/cfg ����� �� ��, �� �� ����
����� ������.
# /bin/mkdir -p /etc/opt/IBM/tsamp/sam/cfg
�� �� ���� ��� � �����.
# /bin/chgrp -R sagroup /etc/opt/IBM/tsamp/sam/cfg# /bin/chmod g+ws /etc/opt/IBM/tsamp/sam/cfg# /bin/chmod g+w /etc/opt/IBM/tsamp/sam/cfg/*
9. �sam.policies � ���� �� ��� �� � �:
��� ������ �� � �� Policy� � ��� �sam.policies��
���� ��, �� ���� ��� � ����.
http://catalog.lotus.com/wps/portal/topal
�sa_admin� �� �� ���� � � �� Policy� ���� ��
�sam.policies� ���� �� �� � �� /usr/sbin/rsct/sapolicies
����� �� � ���� ��� ���.
# chmod –R 2775 /usr/sbin/rsct/sapolicies# chgrp -R sagroup /usr/sbin/rsct/sapolicies
��: �� � � ���� ���, �� ��� �ernie� � �bert�� System
Automation for Multiplatforms� �� �� ���(�: ��� �� �� � ��
� ��)� �� � ��, �� ��� �bert�� System Automation for
Multiplatforms� �� ���(�: Policy �� � ��)� �� � ����.
��� �� �� ����
�� ���� �� � � � �� �� ����� ��� ����.
v �� ���� RMC �� ��� � � (�: IBM.RecoveryRMd ��� �)
� ��� � � ����.
�� RMC �� ��� �� RMC ���� ����� ����� ����
/var/ct/<cluster> ���� �� � � � � � �� �����. � �
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 219
� ���� ����(��� ID root)� /usr/bin/startsrc �� �� �� �
���� ���� � � ��� ID root� ����.
��� � � ���� /usr/sbin/rsct/bin/ctsnap �� ���� ��� � �
��� �� � ����.
� � ���� � �� ctsnap ��� ��� �� � � ����� �� �
��� � �� �� �sudo�� � ���� ���� ���.
v �� � Tivoli ��� ����� root ��� ��� �� � ��� ��
� � root ���� ������ ���� ��� �����.
– samPolicy �
– � ��� ���� ���� samadapter �
v ACL ����� ���� ��� ��� �� ���� �� �����. �� �
��� �� ���� ��� ����� ����� ���� �� � ���, �
�� ���� ��� ����� �� �� ����. �� ��, ������ �
��� ������ ��� ���� ��� ���� �� ����.
v �sa_operator� �� �� ��� � System Automation for Multiplatforms
�� ���� � �� �s� ��� �� ���� ��� �� �� �� ��
� ��� �� � ����. � �� ��� � �s� ��� �� ���� �
�� ��� ���� �� � ���, � ��� �� ���� ��� � �
� � ����.
�� �� �� System Automation for Multiplatforms ���� ���� ��
�� � �� ��� �����.
� 24. System Automation for Multiplatforms ��� ��� �� �� � �
��� �� � ��
�� � root �� ��� System Automation for
Multiplatforms � �
���
���� �� root/sa_admin �� ���/System
Automation for
Multiplatforms ���
���� � �� RMC
�� ��� ��, ��,
�� � ����
�� �� � System
Automation for
Multiplatforms Policy
��
root/sa_admin �� ���/System
Automation for
Multiplatforms ���
�� ��, ��, � �
��� Policy �
��� �� root/sa_admin/
sa_operator
�� ���/System
Automation for
Multiplatforms ���
� ���
��� � ���� �
��, �� �� � ��
�� �� � ����
System Automation for Multiplatforms �� � ��
220 ��� � ��� ���
� 24. System Automation for Multiplatforms ��� ��� �� �� � � ( �)
��� �� � ��
��� ��� �� �
� ��� ��� ��
root �� ��� �� �� � ���
�� � (��) � �
�� ���. (�� ��
�� ��� ����
�.)
�� � root �� ��� � �� � �� �
� ��, � � ��
��� � root/sa_admin �� ���/System
Automation for
Multiplatforms ���
-�- ��� ��
� ��, � � ��
System Automation for Multiplatforms �� ��
System Automation for Multiplatforms� ���� ��� �� ��� ��� ��
�� samdiag �� �� � ���, � ��� IBM Tivoli System Automation
for Multiplatforms ��� ��� ����. � � ���� ���� ��
� ��� ����� ���� � ���� �� �����.
�: System Automation for Multiplatforms� ��� 1� �� samdiag � �
�� ��� �� �� ���� ��� � ����. ��� ��� 2 ����
�� �� samdiag� ��� 1 � ��� 2 ��� � ���� �� ����
��� ��� ��� ��� 1 �� �� ��� ��� �����.
″apacherg″�� �� ��� �� ��� ���� �� �� ������.
samdiag -g apacherg
��:
Diagnosis::Resource: apacherg/ResGroup/IBM.ResourceGrouptype: CHARM Resource Group
Status -Observed: Offline - SoftDownDesired: Offline - Requested Offline(Nominal: Offline - Nominal State: Offline)
Automation: Idle - CharmBase trigger linkedStartable: Yes - Resource is startableBinding: Unbound - Binding status initializedCompound: Satisfactory - Satisfactory
Resource Based Quorum: None -Members and Memberships:
+---bind/HasMember ---> RA/Float/IBM.TestGroup Constraint: NoneBinding Constraints:Flags:None
Orders:Outstanding Order: None - Resource is Unavailable
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 221
Dependencies:Start: Satisfied
+---InCluster ---> ClusterStop: Satisfied
Binding exceptions:There are unbound members.
Static Relationships:+---InCluster ---> Cluster
Dynamic Relationships:+---bind/HasMember ---> RA/Float/IBM.Test"
�� ��� �� � �� �� �� �����.
v ObservedState� OpState � NominalState� � �� ���� ���. � �
� ���� �� ��� ��� �� ��� ������.
v DesiredState � NominalState� �� �� �� � �� �� ��� �� �
� ��� �� �����.
v AutomationState� ‘busy’��� ‘idle’ � ����. ‘Busy’� � �� ���
� ��� �� �� �� � � System Automation for Multiplatforms ��
(IBM.RecoveryRM)� �� ��� � ���. � ��� �� ���
AutomationState� ‘idle’� ����. ��� ��� �� ��, ��� ���
�� ��� ������.
v StartableState� ‘No’, � � (�: DependsOn � )� ��� ��� �
��� �����.
v BindingState� ‘Unbound’� Observedstate� ’Offline’�� ���. �� ��
��� ������ �����. � � ����� ��� �� � �
��� � �� �� � � ���� ���. �� BindingState� ‘Bound’
� ����. ���� �� �� ��� �� BindingState� ‘Bound’� ��
���.
v CompoundState� ‘Satisfactory’ ObservedState � DesiredState� ��� ��
���. CompoundState� ‘Inhibited’, ‘Denied’ �� ‘Broken’� ���� �
� � ‘Broken’ �� � ��� �����.
v �� �� ��(Resource Based Quorum)� ‘None’ ��, ��� �� � �
�� ��� �� �� ��� ���� �� �� �� �� ��� ��� �
�� � ���.
v ‘Bind/HasMember’� �� �� apacherg� � � ��� RA/Float/
IBM.Test �� � � ����. �� � �� � �� � �
‘Bind/HasMember’ � � �� ���� � ���. � �� ��� ����
� ��� �� � ���� �� ��� ��� ����.
v �� �� AutomationState� ����. AutomationState� ‘idle’� �� �
� ��� �� ��� �����.
v ��/�� ��� Policy� ��� ���� ��� � �����.
System Automation for Multiplatforms �� � ��
222 ��� � ��� ���
v �� ��� BindingState� �� ��� �� �����.
v � � � �� �� �� � �� ��� ����� ����� � ���.
v � � � �� � � �� �� � ���.
System Automation for Multiplatforms� TEC ��� ���� ��
� ���� TEC(Tivoli Enterprise Console) �� ������ ���� System
Automation for Multiplatforms� �� ����� ����� �� ��� ��
�� ����� �� � �� �� �� �����.
System Automation for Multiplatforms� �� �� ��� ��� ��� ��
�� ���� ��� ��� TEC �� ������ ���� �� �����
�� � ����.
����� ���� �� �� ����.
1. IBM Tivoli Enterprise Console� �� �. �� ��� TEC ��� ��
� �� ���� �� ���(224 ���� �TEC ��� �� ��� �).
2. System Automation for Multiplatforms �� ��� RSCT �� �� ��. �
��� �� ��� ���� �� ERRM(Event Resource Manager) ����
� ��� ���� ���. � ��� ���� �� �� ���� IBM
Reliable Scalable Cluster Technology for Linux, �� �, SA22–7983� �
����. �� � ��� � �� �����232 ���� ��� � �
� ���.
Tivoli Enterprise Console� ��
TEC(Tivoli Enterprise Console) �� ��� ���� ���� ��� ���
� � �� �� �� ��������. TEC Tivoli �����, Tivoli �
�� �����, � �����, ���� �� �� � � ������
��� ��� ���� ��� ����� � � ��� �� ��� ���
� �����.
��� ��
��� �� ���� ����� ��� �� ���, �� �� ���� ��
� �� ��� �����. System Automation for Multiplatforms� ��� �
��� ��� � � ��� ����.
BAROC(Basic Recorder of Objects in C)�� �� �� �� � � � �
�� ���� � �����. � ��� .baroc ��� � � �����.
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 223
TEC� �� �
System Automation for Multiplatforms� TEC �� ����� ‘Tivoli �� �
� ��(EIF)’� ���� TEC� ��� ���. ��� TEC �� �TME �
� ��� ����.
�� �� System Automation for Multiplatforms� ��� TEC� ���.
v �� �� ����� ��� �� ���.
v ��� �� �� ��� ���.
v � � �� �� ��� ���.
v �� �� �� ��� ���.
TEC ��� �� ��
����, �� �� ���� ���� �� �� � ���� ���� ��
� ���� �� ���� �� � � ���� TEC ���� �� ���� ��
���.
1. TEC ���� TEC baroc � (/usr/sbin/rsct/samples/tec/
SystemAutomation.baroc)� ��, � , � � �������. � ��� �
� �� �� ���� IBM Tivoli Enterprise Console Rule Builder’s Guide,
GA30–1241� �����.
2. /usr/sbin/rsct/samples/tec/samPublisher.conf � /usr/sbin/rsct/samples/tec/
TECPublisher.conf � � �� System Automation for Multiplatforms ���
� �� /etc/Tivoli/tec� ������.
3. � ���� ��� ��� �� � /etc/Tivoli/tec/samPublisher.conf � TEC
EIF � /etc/Tivoli/tec/TECPublisher.conf� ��� ������.
4. System Automation for Multiplatforms ���� ��� samctrl –e TEC �
� ���� ���� �� ���� ����. ���� ���� �� ��
����. samctrl –e P �� ���� ��� �� � � �� ���� �
�� � �� ���� ����.
��� �� ��
��� �� � /etc/Tivoli/tec/samPublisher.conf� �� �� ��� � � ��
�� ��� �����. �� ��� �� � � �� ����.
System Automation for Multiplatforms �� � ��
224 ��� � ��� ���
�� � �� �� ����.
v #�� ���� �� �� �� �����.
v ��� �: <keyword>=<value>
v ″Publisher″ ��� ��� 3�� ��� ″Publisher″, ″LibraryPath″ �
″ConfigPath″� �����.
v ″Publisher″ ��� ���� �� �� �����.
v ″LibraryPath″ ��� ��� ������ �� ��� �����.
v ″ConfigPath″ ��� TEC EIF �� � � �� ��� �����.
v "Publisher" �� �� ��� 1 - 8��� ���.
v "Publisher" �� � �� ��� �� � ����: '0' - '9', 'A' - 'Z', 'a' -
'z' � '_'
v ″Publisher″ �� � ″RMC″, ″P″, ″ALL″ � ″STOPALL″ �����.
v � 15� ���� � �� � � �� � ����.
TEC EIF �� �� /etc/Tivoli/tec/TECPublisher.conf
TEC EIF �� � �� TEC ��� ���� �� �� �� ���� ��
���. � � ��� �� � � ″ConfigPath″ ���� �� �
��� ���.
## Publisher configuration file# file name: /etc/Tivoli/tec/samPublisher.conf## File format:# <keyword>=<value>## Publisher - unique name of the publisher# name length: 1-8 characters# valid characters: ’0’-’9’, ’A’-’Z’, ’a’-’z’ and ’_’# LibraryPath - name of the publisher library# ConfigPath - full path to the TEC EIF configuration file## Multiple entries of the Publisher, LibraryPath and ConfigPath can be specified.# One triplet for each publisher target consumer.# Maximum supported publishers: 15
# Online Update section -----------------------------------------------------# End Online Update section -------------------------------------------------
Publisher=TECLibraryPath=libTECPublisher.soConfigPath=/etc/Tivoli/tec/TECPublisher.conf
# Publisher=TEC2# LibraryPath=libTECPublisher.so# ConfigPath=/etc/Tivoli/tec/TECPublisher2.conf
�� 15. ��� �� � � �� � � �
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 225
TEC ���� �� TEC EIF � � �� � �� TEC EIF �� � ���
��.
# TEC EIF configuration file## File format:# <keyword>=<value>## ServerLocation - name of the host where the TEC server is running# ServerPort - port number on which the TEC server is listening# to non-TME TEC events. TME TEC events are not supported# 5529 - default non-TME port for TEC servers on Windows# 0 - default non-TME port for TEC servers on AIX and Linux# ConnectionMode - distinguishes between connection_oriented OR connection_less# - (default is connection_oriented)# BufferEvents - specifies whether the event buffering cache file is enabled# (YES | MEMORY_ONLY | NO) (default is YES)# BufEvtPath - specifies the full path name of the cache file# (default: /etc/Tivoli/tec/cache)# NO_UTF8_CONVERSION - Specifies if UTF8 conversion is done again in EIF library# Must be YES, otherwise event is corrupted# (default is NO)# FilterMode - specifies whether events that match a Filter are sent to# the event server (FilterMode=IN) or are discarded# (FilterMode=OUT) (default is OUT)# Filter - Filter:Class=class_name;[attribute=value[;attribute=value]*]## For a description of all supported keywords and their values refer to manual:# “Tivoli Event Integration Facility - Reference", SC32-1241,# Chapter: “Appendix B. Keywords for Configuration Files“.
#Put the server name or IP address of the server on which the TEC is running into#the “ServerLocation” field.ServerLocation=tecserver.ibm.comServerPort=5529ConnectionMode=connection_lessBufferEvents=YESBufEvtPath=/etc/Tivoli/tec/TECPublisher.cacheNO_UTF8_CONVERSION=YES
# Default Filters# Filter all relationship add / delete eventsFilter:Class=SystemAutomation_Relationship_Configuration_Change# Filter all resource add / delete eventsFilter:Class=SystemAutomation_Resource_Configuration_Change# Filter resource status events with severity HARMLESSFilter:Class=SystemAutomation_Resource_Status_Change;severity=HARMLESS# Filter resource status events with severity WARNINGFilter:Class=SystemAutomation_Resource_Status_Change;severity=WARNING# Filter all request add / delete eventsFilter:Class=SystemAutomation_Request_Configuration_Change
�� 16. TEC �� � � �� � � �
System Automation for Multiplatforms �� � ��
226 ��� � ��� ���
TEC� ��� ���� ��� ��� �� �� # TEC EIF �� � � ���
�����. ����� �� ��� ���� �� ���� TEC�� ����. �
� ���� TEC�� ��� �� � �� #� ���� ���� ��� ��
����� ����.
��� ��
��� �� ���� �� ������. ���� ��� ��� �� �
� ������.
node1:/usr/sbin/rsct/samples/tec # lssamctrl
�� System Automation for Multiplatforms �� ��� �����.
SAMControl:TimeOut = 60RetryCount = 3Automation = AutoExcludedNodes = {}ResourceRestartTimeOut = 5ActiveVersion = [1.2.0.0,Fri Apr 16 16:05:50 2004]EnablePublisher = Disabled
TEC ���� ���� ��� ��� �� �� ������.
node1:/usr/sbin/rsct/samples/tec # samctrl –e TEC
TEC ���� �� ��� ��� ��� �� �� ������.
node1:/usr/sbin/rsct/samples/tec # samctrl –d TEC
��� �� � � �� �� ���� ���� ��� ��� �� �� �
�����.
node1:/usr/sbin/rsct/samples/tec # samctrl –e P
��� �� � � �� �� ���� �� ��� ��� ��� �� �
� ������.
node1:/usr/sbin/rsct/samples/tec # samctrl –d P
TEC �� ���� �� � �� ��� ��
TEC �� ���� �� IBM Tivoli System Automation for Multiplatforms
���� �� �� ��� �� �� �� � �� �� ����.
�: ���� �� �� �� � �� � �� ��(mkrg, mkrsrc)� ���
�� ��� ����� �� �� �� � �� ��� ���� �� �
� TEC �� ���� �� �� ��� � ����. � ���� ����
�� � � �� � � � ��� ��� ��� �� �� �� ���
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 227
����� �� �� ���� ���. � �� ��� � ��� �� �
�� ��� � ���� �� ��, �� ��� ���� � �� � �
���� ���.
���� �� �� �� � �� � ���� ���� �� ����� ��
��� � �� ���� ���. �� � � ���� ��� �����.
1. stoprpdomain �� ���� ����� ������.
2. �� �� �� � ���� � � ���� � �� �� �� � � �
�����.
SUSE Linux
� : /etc/sysconfig/language
��: RC_LANG="<NewLocale>"
(<NewLocale>� ���� �� �� ��)
ROOT_USES_LANG="yes"
RC_LC_� ���� �� ��� � ��
""�� ��� ���.
�: RC_LC_ALL= ""
��� ���� ��� /etc/SUSEconfig� ������.
yast2 sysconfig �� �� ��� ����
���� � �� ����.
RedHat Linux
� : /etc/sysconfig/i18n
��: LANG="<NewLocale>"
(<NewLocale>� ���� �� �� ��)
AIX
� : /etc/environment
��: LANG="<NewLocale>"
(<NewLocale>� ���� �� �� ��)
3. ��� ������.
4. ����� �� �� �� � � � ������.
5. startrpdomain �� ���� ����� ������.
System Automation for Multiplatforms �� � ��
228 ��� � ��� ���
System Automation for Multiplatforms �� �� RSCT �� �
� ��
� �� System Automation for Multiplatforms �� ��� RSCT �� ��
����� ���. � ��� � ��� � �� AutomationDetails� �� ��
��� IBM.ResourceGroup, IBM.Equivalency � IBM.ManagedResource� ���
��. � ��� � AutomationDetails�� �� ��� ���� ����.
v CompoundState – �� ���� ��� �� �� ��. ��� DesiredState� �
�� ��� �����. �� ��, ″��″� �� �� �� ��� � ��
� ��� ����� � ���.
v DesiredState – ���� ��� ��� ��. �� ��, ″���″ ��� �
��� ��� ���� ���� � ���.
v ObservedState – ��� ������ �� ��� �� ��. �� ��,
″���″ ��� �� ����� � ���.
v BindingState – ��� �� ��� �� ��� ���� ��. �� ��,
″��″ ��� �� �� ��� ��� ��� � ���.
v AutomationState – ��� �� ����� ���� ���� ��. �� ��,
″��″� System Automation for Multiplatforms� �� ��� �� �� ��
��� �� ��� � ���.
v ControlState – ��� ���� ��� � ���� ���� ��. �� ��,
″�� ��″ �� � ��� ���� �� ���� � ���.
v HealthState – ��� �� ��. � ��� �� ���� �� �����.
lsequ � lsrg �� ���� � ��� �����.
� �� � ��� �� �� ��� ��� �� ��� ���� RSCT� ���
��. TEC ���� ���� ��(224 ���� �TEC ��� �� ��� �), �
�� �� TEC ��� �����.
GDPS/PPRC Multiplatform Resiliency for zSeries ��
��� ����� ��� � ��� ��� �� �� �� � �� � �
��� ����. �� � � ���� ���� �� System Automation for
Multiplatforms��� GDPS/PPRC Multiplatform Resiliency on System z(xDR)�
�����.
GDPS(Geographically Dispersed Parallel Sysplex)� ���� z/OS ��� �� �
���� ��� �� ����� ��� � �� �� � ����. � � ��
�� � ������ �� � �� ��� ���� ��� ��� �����.
GDPS� �� ��� ��� IBM Redbooks � � GDPS ��� - �� � ��
��� �����(http://ibm.com/redbooks�� ���).
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 229
System Automation for Multiplatforms� ��� System z�� ���� Linux
��� GDPS/PPRC� �� � ����. �� z/OS, z/VM �� Linux on System
z� LPAR��� ���� Linux on System z� ���� zSeries�� ���� �
�� �� � �� �� � �� �����.
�:
1. xDR ��� ���� z/VM, Linux on System z, GDPS � System Automation
for Multiplatforms� �� ��� ��� ��� ���. �� ��� �� �
�� ��� �� ��� ��� GDPS ���� �����. System Automation
for Multiplatforms� Linux on System z �� xDR� �����.
2. xDR � �� ��� �� ���� � �� � 32�� ��� ���
���. xDR� �� ���� � ����� ���� ����. xDR� ��
�� GDPS ���� � �� System Automation for Multiplatforms� �
�� ���� ���.
3. xDR � GDPS��� ��� �����.
���� GDPS ��
xDR�� APAR PK30315� �� GDPS V3.3 ��� ����.
���� Linux �
xDR� ���� Linux ��� �� ����.
v Linux on z/VM� xDR�� SUSE SLES 9 SP2 �� RedHat� ����.
v LPAR�� ���� Linux� xDR�� SUSE SLES 10 SP1� ����. LPAR
��� ��� ���� GDPS 3.4� ����.
v xSeries � pSeries �� Linux� xDR�� SUSE� ����.
��� �� �
�� � ��� ��� System Automation for Multiplatforms� ����
�� ��� �����. � � ���� ��� ���� �� ��� ��, � �
�� ��� �����.
��� ��� �� �� ��� �� �� �� �� �����. System
Automation for Multiplatforms� ��� � �� ��� � �� � ���
� �� ���� ���. ��� �� ��� ��� ���� �� ���.
�� �� ��, mkrsrc �� ���� ��� ����� chrsrc �� ����
�� �� ���� rmrsrc �� ���� �� ��� �� � �� � �
���.
System Automation for Multiplatforms �� � ��
230 ��� � ��� ���
� �� ���� � �� ��� ���� ����� ���� �� �� ��
� IBM.ResourceGroup, IBM.ManagedResource, IBM.Equivalency �
IBM.ManagedRelationship�� � �� ConfigValidity� ���� ����.
ConfigValidity� ��� ���� � ��� ��� �� � �����.
lsrsrc –Ad �� ���� ConfigValidity �� ��� �� � �� � ��
������.
�� � � �����.
v �� ��� AllowedNode ��� � ��
�� ��� ���� � ��� ��� ��� � ����. � � ����
″AllowedNode″ ���� ���� �� �� ��� ���� �� ���. � �
�, �� ��� ″ConfigValidity″ � �� �� "�� � ��� �� �
�"� �����.
v ��(nest) �� ��� AllowedNode �� � ��
�� �� ���� �� �� �� �� �� � �� �� ���� �� �
� �� �� ��� ���. �� �� ��� �� � �� �� �
� �� �� ��� ���� �� ���. � ��, �� ��� ″ConfigValidity″
� �� �� ″�� �� �� ��� �� �� ��″� �����.
v ��� �� ��� ��
�� ����, � �� ��� AllowedNode� ��� ��� NodeNameList �
�� �� �� ��� ��� �� � ����. � �� ��� �� �
�� ���� �� ���. � ��, �� ��� ″ConfigValidity″ � �� �
� ″��� �� �� �� ��″� �����.
v ��� ���� ��� ��
DependsOn � ��, �� collocation� �� ��� NodeNameList � ��
��� NodeNameList�� �� �� �� �� ��� ���. � �� �
�� � � ���� �� ���. � ��, �� � � ″ConfigValidity″ �
�� �� ″��� �� �� �� �� ��″� �����.
v AntiCollocated ��� �� � �� - 1
�� ���� �� �� � ��� AntiCollocated � � �� � �� �
� �� ��� AllowedNode �� ��� �� �� ��, �� ��� ��
�� �� ��� . � �� , �� �� � AntiCollocation �� � �
″ConfigValidity″ � �� �� ″AntiCollocated � � �� � ��″�
�����.
v AntiCollocated ��� �� � �� - 2
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 231
� ��� �� �� � ���� � �� ��� ��� �� ��
�. ��� � � �� AntiCollocated � � ����. � ��,
AntiCollocated �� � � ″ConfigValidity″ � �� �� ″AntiCollocated
� � �� � ��″� �����.
v �� ��
��� � �� �� ���� �� ���� �� ��� � ���� ��
���. � ��, ��� �� ��� ″ConfigValidity″ � �� �� ″�
� �� ��� ���� ��″� �����.
�� � �
� ���� System Automation for Multiplatforms�� ���� �� � ��� �
� ��� �� � � �����.
�� ��
��� � ��� �� � �� �� ���� ����. ��, �� �� �
��� �� �� ��� � ������.
samctrl -u a <node_name>
�� �� ���� �� � ����.
�� � � ��� � ��� ��� � ��� ���. �� �� ����
�� ��� �� �� �� ���� ����.
samctrl -u d <node_name>
�� ��
�� ����(�: RSCT � stoprpnode��) �� �� ��� � �� �
���� ���� ���.
samctrl -u a <node_name>
�� �� ���� ��� �� ���� ��� ���� ���.
�� �� ���� �� ���� �� ��� ���� � ��� ��
�� �� ���� ���.
samctrl -u d <node_name>
�� � �� ��
RSCT� ��� � ��� ��� ��� ��� �� � ����. � ��
�� �� �� ���(ERRM)� �� �����. �� �� �� ����
System Automation for Multiplatforms �� � ��
232 ��� � ��� ���
�� �� ��(��� �)� ���� � �� ��, ��� ���� ��
RMC ��� �� ��� ��(���� �) � ��� �� � ��� ��
���.
��� �� ��, �� ��� OpState� �� � ��, ��� �� �� �
�� � ����. �� ���� ��� � ��� ���� � ����. �
�� �� �� �� �� � IBM Reliable Scalable Cluster Technology for
Linux, �� �, SA22–7893�� �� �� ����� �� �� �����.
System Automation for Multiplatforms �� � ��
� 10 � System Automation for Multiplatforms �� � �� 233
234 ��� � ��� ���
� 11 � System Automation for Multiplatforms �� ���
� ���� System Automation for Multiplatforms� �� ���� ���� ��
� ����� �� �� ����.
��� �� ��� ��
� ���� �� �� RM� ��� �� ����.
�� �� RM(IBM.GblResRM) �� ��� �� ���� �����.
1. IBM.Application:
� ���� ���� RMC ����� �� �� �� � (�: ���� �
����)� ������ �� � ����. � �� System Automation for
Multiplatforms� � �� ������� ��� �� �� � ����.
2. IBM.ServiceIP:
� ���� RMC ����� ��� �� ��� �� ���� ���� �
�� ��, �� � �� � �� IP ��� ���� � �����. � IP �
�� ��� ��� ��� �� �� �� ���� �� ����� �
����. System Automation for Multiplatforms� ��� ��� ���� �
��� � �� IP ��� ���� ���� � ��� � ����.
�� ���(� � ���� �� ���)� �� ��� ���� �� ����
�.
�� �� ���� � �� ���� ���� �� ���� �� ��� �� �
���. � �� ���� �� � � ��, � �� ���� �� �� ���
� �� ����.
IBM.Application �� ���� ��
IBM.Application �� ���� ���� RMC ����� �� � � � � �
�� ��� ��, ���� � �� � ����. ��� � �� System
Automation for Multiplatforms�� ��� �� �� � ����. ��� �� �
��� �� � ��� ����(�� �)� ���� ���.
1. ��� ����� ��� �� ����(�� �)
2. ��� ������ ��� �� ����(�� �)
3. �� �� ��� ��� ����(�� �)
© Copyright IBM Corp. 2006, 2008 235
� ���� ��� IBM.Application �� ���� �� �� � �� ���
� ����.
1. ��� �
2. ��� �� � �� �
3. ������ ��/��/������ � ���� ��� �
4. ������ �� �� ����� ��/���� � �� ��
5. ��� ��� �
6. � �� ��� � ��� ��
7. ���� ��� ��
8. �� �� � ��� ��
IBM.Application �� ���� �� ����� � � �� � �� ���
� ��� � �� �� ���� �����. ��� ��� ���� �� ��
���� ��� �� � ����. � � ��� �� IBM.Application �� �
��� � ����� ���� ���. � ����� � �� �� � ��
� ��� ����� �� ����� ���. ��, � ��� �� � �� �
� IBM.Application �� ���� � ����� ����. � ����� �� �
�� �� ����� ���. �� �� ����� � �� ���� �� �
����. �� 17 �� � �� �� �� ���� �� ����.
�� �� �� ��� ��� ��� �� ���� �� �� �����. �
��� �� �� �� ��� �� �����, � ����� ���� �
� ������� ���� � � ����. �� ��� �� ��� ��
���� ���� ����, ���� �� � � ����� ���
�� �� ���� ���� ����(�� ��, � �� ���� � ��
� �� ���� ��� �� � ��).
�� �� ��� NodeNameList�� ��� � ���� ���� ����
�.
�� 17. �� �� �� ��
�� �� RM
236 ��� � ��� ���
IBM.Application� ��� ��
� ���� IBM.Application �� ���� ��� ���� ��� �� ���
�.
RMC � mkrsrc� ���� � ���� ��� ���� �� �� ��� ��
� ���.
v Name
v StartCommand
v StopCommand
v MonitorCommand
v UserName
� ���� ���� �� ��� �� � ����.
v NodeNameList
v ResourceType
v StartCommandTimeout
v StopCommandTimeout
v MonitorCommandTimeout
v MonitorCommandPeriod
v RunCommandsSync
v ProtectionMode
� ���� ���� �� � � ��� ����.
v OpState
Name �� Name �� �� � ����� ��� �� ��� �� �
���. �� � �� �� � � � ��� �� � �� ��
��.
� ��� �� � � IBM.Application ��� �� � ����
� �� � �� ���.
��� � �� ��� ���.
NodeNameList ��
NodeNameList �� �� IBM.Application ��� �� ���
�� ���� �� � ���.
� ��� ��, �� �� RM � ��� � � �� �
� ��� ��(��) ��� ����� �����. � ��� ��
��� �� �� �� �� ���� �� �� ����
�. �� �� �� ����� � ���� �� ����� �
� �� � �� ��� �����. �� � �� �� � � ��
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 237
���� �� �� ���� �� ��� ���� ���� �
� � � ��� ��� ���� �����.
� ��� �� � ��� �� �� � ���, � �� ���
� ���� �� � ����.
�� ��� ��(�: ResourceType=0), � �� � � �� �
� �� � ����. �� ��� �� �� ���� � �
�, �� ��� �� ���� ���� � ��� � ID �
� ��� � ���� RMC� ���� �����.
�� ��� �� � �� � chrsrc �� ���� � � �
���. �� ��� �� � ��� ����� ��� ��� ��
����.
ResourceType ��
ResourceType �� �� � ��� ���� ���� ��
� ����. �� � 0 �� ��� ����, � 1 � ���
�����. IBM.Application ��� �� ��� � � ��� ��
�� � ��, ��� ����.
StartCommand ��
StartCommand �� �� � �� ���� �� ����� �
� �� �� �� � ��� ��� � � ��� �����.
�� ��� �� ��� �� ���� � �� ����� �
����. ��� ���� � �� �� ���� ��� �� �
���� ���� � �� �� ��� � ���.
� UserName ��� �� �� ��� ID� �����.
� �� ���� �� � ��� �� �����.
�� ���� �� ��� � � ����� ���
RunCommandsSync ��� �� �����(��� �� ��� �
). � � �� ��� �� �� ���� ���(�, ‘/’� �
��� �). � ��� ��� ��� � �(�, ���� �
� �)� ��� �� �� ���� ���.
� �� IBM.Application ��� �� �� � ����� ��
�.
IBM.Application ��� StartCommand� � ��� � ���
NLS ��� �� � ����.
� �� �� �� � ����.
0 �� ���� ��� ���.
!= 0 � �� �� ��� ������.
�� �� RM
238 ��� � ��� ���
245 ���� ��� ���� StartCommand, StopCommand �
MonitorCommand� �� � ���� ��� �����.
StopCommand ��
StopCommand �� �� � �� ���� �� ����� �
� �� �� �� � ��� ��� � � ��� �����.
�� ��� �� �� � �� ����� �����.
� ��� �� �� �� � StartCommand� ��� ��
��.
� �� IBM.Application ��� �� �� � ����� ��
�.
IBM.Application ��� StopCommand� � ��� � ���
NLS ��� �� � ����.
� �� �� �� � ����.
0 �� ���� ��� ���.
!= 0 � �� �� ��� ������.
245 ���� ��� ���� StartCommand, StopCommand �
MonitorCommand� �� � ���� ��� �����.
MonitorCommand ��
MonitorCommand �� �� � ��� �� �� ��(OpState
��)� �� �� ���� �� ���� ��� ��� � �
��� �����. �� �� � ��� � OpState� ����
�.
� � ��=0
���=1
����=2
���� ��=3
��� ��=4
��� ���=5
���� ���=6
�� ��� � ���� ��� MonitorCommand ������
���� ���.
OpState � ��� ���� �� �� IBM.GblResRM
MonitorCommandPeriod ��� � �� �����. � ���
�� �� � StartCommand ��� � � ���. �� �
�� ���� ��� � � ��� � ����� ���.
� � ��� �� ���(�� � � ��, �� 360� �
�) ���� ���.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 239
MonitorCommand� � �� ��(�, ‘/’�� ���� �)�� �
��. � ��� ��� ��� � �(�, ���� �� �)
� ��� �� �� ���� ���.
� �� IBM.Application ��� �� �� � ����� ��
�. MonitorCommand ��� �� �� �� ��� ��� 244 �
��� �IBM.Application �� �� � �� ��� � 245 ���
� ��� ���� S t a r t C o m m a n d , S t o p C o m m a n d �
MonitorCommand� �� � ���� ��� �����.
IBM.Application ��� MonitorCommand� � ��� � ��
� NLS ��� �� � ����.
MonitorCommandPeriod ��
MonitorCommandPeriod �� �� � MonitorCommand� ��
�� ���� ��(�)� �����. � �� �� ��� ��
�� �����. � �� �� � ��� �� 0�� �� ���.
� ��� ��� 5����.
�� ��� �� �� ��� �����, MonitorCommandTimeout
�� � MonitorCommandPeriod �� ��� � � ����.
MonitorCommandTimeout ��
MonitorCommandTimeout �� �� � ���� �� killpg()
� �� kill� � � � ���� �� �� � �� ��� �
����. �� ���� ��, ��� �� �� ��(OpState �
�)� Unknown=0�� ����.
� �� �� � ��� �� 0�� ��� ��� ���.
� 360��� ��� ���. � ��� ��� 5����.
StartCommandTimeout ��
StartCommandTimeout �� �� � �� killpg()� �� kill
� � � � �� �� �� � �� ��� �����. � �
� System Automation for Multiplatforms� ��� ��� ��
� ����� ���� ��� �����. �, System Automation
for Multiplatforms� �� ���� ��� �� ��� ���
� �� �����.
� �� �� � ��� �� 0�� ��� ��� ���. � �
� � 0 ���� ��� � ���. � ��
RunCommandsSync ��� 0�� ��� ���� ���� ��
��. � ��� ��� 5����.
StopCommandTimeout ��
StopCommandTimeout �� �� � �� �� killpg()� �
� kill� � � � �� �� �� � �� ��� �����.
�� �� RM
240 ��� � ��� ���
� �� �� � ��� �� 0�� ��� ��� ���. �� 0
� ���� ��� � ���. � ��� ��� 5����.
RunCommandsSync ��
RunCommandsSync �� ��� ���� ��/�� �� online()/
offline() ��� ���� ����� ��� �� � ����.
� �� �� �� � 1� ��� �� � �� ���� ��, �
� ����� ��� � � online()/offline() ��� �� �
�� ���� ����. �� stderr/stdout �� � ���� ��
���� �����. � �� �� 0�, IBM.GblResRM ��/�
� �� ″�� � ��″���. fork/exec� ���� ��� �
� ���� � ��� ���� � ��� �� ������ �
� ���� �����.
� ��� ��� 1���. � ��� 0�� ��� �� �� �
��� �� ��� ����.
StartCommand� ����� �� � �� � �� �� �
� �� ���� �� ������ �� �� ��� � ���
� ��, �� �� �� � ����. �� �� ��, �� �
��� StartCommand ���� ��� �� � �� kill��
�.
StartCommand� ���� ���� � ��� ��� �� �� �
� RunCommandsSync=1� ������. StartCommandTimeout �
�� � ��� �� �����. � �� � ��� ��
� �� ���� ���� ��� �� � ��� �� ��
� ��� � ����.
������ �� � � �� ���� ��
RunCommandsSync=0� ������(�: ������ �� � ).
����� �� � � �� ��(��� �)��� �� � �
� ���� � �� � ����� ���� ��, ���(I/O)
� ������ ��� �����. �� ���� ���(I/O) �
���� ����� ���� �� �� StartCommand ���� �
��� ����� kill���.
RunCommandsSync ��� �� ��/�� � ���� �� ��
�� ��� �����. ���� �� �� �� ��� � ��
�, �� ���� ��� ��� � � �� � � ���� ��
� ��� ��� �� � ����. �� �� � 'su'(��� �
�)� �����. �� ��� �����, 'su –'� ���� �
���� �� �� ��� (��� �)� �� � ����.
RunCommandsSync �� ��� � �� � �����.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 241
��
0 �� ��� ��� �����.
�� �� ���� �����.
1(���) �� �� ��� �����.
�� �� ���� �����.
2 �� ��� ��� �����.
�� ���� �� ��� � ��� ����� ����
��� ��� ��� ����.
3 �� �� ��� �����.
�� ���� �� ��� � ��� ����� ����
��� ��� ��� ����.
�� ��(AIX, Solaris �� Linux)� �� ���� �� ��
�� �� �� �� �����(� � � ���� ��
�).
SHELL=/bin/bashUSER=myuserPATH=:/usr/ucb:/bin:/usr/binLOGIN=myuserPWD=/home/myuserLANG=de_DE.UTF-8HOME=/home/myuserSHLVL=2LOGNAME=myuser
�� ��� �� ���� ��/�� � ���� �� ���
� � ��, ��/�� �� ���� � ��� �� ��
���� � �� ��� ��� (�� � ��)� ���� �
(RunCommandsSync=2|3)� �� ��� ��� � ����.
UserName ��
UserName �� �� MonitorCommand, StartCommand �
StopCommand� ���� ���� ��� �� �����. �
�� ���� �� � ��� �� �����. ��� ���
��� ��� ��� �� ��� ���� �� � �� �� �
�� �����.
IBM.Application ��� �� �� � � ��� ���� ���.
��� � �� ��� ���.
ProtectionMode ��
ProtectionMode �� ��� ���� ��� ��� ��� �
� � ����. ��� �� ��, IBM.ConfigRM �� �
� ��� ��� � ���� �����. � ��� �� ��� �
� 167 ���� � 9 � ��� �� – �� ���� ����
�.
��� � 0(��� ��) �� 1(�) � ���, ��� �
�� �� RM
242 ��� � ��� ���
�� �����. ��� �� ��� �� ��, � ��� �
� ���� ��� ����� �� �����.
OpState �� � � �� ��� � MonitorCommand� �� ���� ��
�� � ���� ��� �� �� ��� �����. RMC �
� �� � ������ �� � ��� �� ��� � �
� ����.
� � ��=0
���=1
����=2
���� ��=3
��� ��=4
��� ���=5
���� ���=6
� �� �� �� � �� �� ���� � �� �����. �
� ��� � ��� ��� ��� ��� ����.
HealthCommand
�� ��� �� ���
HealthCommandPeriod
�� ��� �� ���
HealthCommandTimeout
�� ��� �� ���
InstanceName
�� ��� �� ���
InstanceLocation
�� ��� �� ���
IBM.Application� ��� �
� ���� IBM.Application �� ���� ���� �� � �� �� ��
����.
refreshOpState ��
MonitorCommandPeriod ��� ��� ���� �� ���
IBM.Application ��� OpState� � ���� ����� ���
��. ��� ��� ��� �� � �� ��, ��� ����
���� ����� �� ����� ��� � ����. � ��
�� ����� ��� OpState �� �����.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 243
�� ��, node02�� �� �� ‘WebServer’ ��� OpState� �
���� ��� ��� �� �� ������.
runact -s "Name=’WebServer’ && NodeNameList={’node02’}" IBM.Application refreshOpState
SendEIFevent
�� ��� �� ���
IBM.Application �� �� � ��� ��
IBM.Application �� �� � ��� ��� ���.
1. �� �� ���� ���� �� System Automation for Multiplatforms ��
� �� ������. ��� �� �� ����� ���� � ��� ��
��� ���� ���. �� ���� �� � ����� ���� ��
���� ����(�: Policy� ���� NFS ��� ���� ���� ���
�� NFS ���). IBM.Application OpState� “� � ��”�� ���� ��,
�� ��� ���� GblResRM �� ���� ��� ���� �� �
�� � ��� ������.
2. GblResRM �� ���� ��� �� ���� ���� �� �� �� �
� �� kill���. ��� �� � �� � “� � ��” OpState�
���� IBM.Application ��� ���, ��� �� ���� � � �
�� ��� �� ���� ���� �� ����. CPU ��� �� �
��� ��� ���� ����. ���� �� ���� �� � OpState�
�� � ����. �� ���� �� kill� �� ���� �� ��
� ������. �� �� � �� kill�� ��, �� ���� ��� �
� ���� �����.
3. ���� ��� �� ���� �� ������ �� ���� ���. �
��� �� �� �� ����� ���� ��� ��� ��, � ����
� � �� ���� ���. ���� ��� ���� � �� � �����
���� ������ ��, �� ��� ��� �� �� ����.
4. �� �� ���(�: ��� ��� �� � � ����)� ������ �
�, � ���� ������ �� �� ���� �� �� �� init ��
����� ���� ��� ������.
5. ����� ��� ��� ��� ������ ���� �� � ��� �
�� �� � �� �� ��� ���� �� ��, ������ ��� �
���� ��� �� ���� � ������ �� �� ��� ��� �
� ����. ���� �� ������ �� ����� �� �� �� �
�� �� ���� ���� ��, ��� ��� � ����/������ kill
� ����. ���� ������ �� ���� �� ����(�� ��
��) �� ������ �� ����� � �� ����� ���.
�� �� RM
244 ��� � ��� ���
6. IBM.Application ���� ��� ��� ����� ��(�: rmrsrc� ��) �
� �����. Force=1� ��� ��� �� �� � ����. �� ��,
WebServer�� �� ��� ����� �� ��� ������.
rmrsrc -s "Name==’WebServer’ && ResourceType==1" IBM.Application Force=1
7. � � �� �� ��� �� 1024���. � � � ���� ���
���� ��� �� StartCommand, StopCommand �� MonitorCommand�
�� ���� ��� �� �� ��� � � � � ����.
� � ���, ��� �� *� ����� � ��� �� ��� ���
���.
# ulimit -S -n <new-limit-for-number-of-open-files>
�� � � � � �� �� �����(�: WebSphere Application Server)
� �����.
�� ���� StartCommand, StopCommand �
MonitorCommand� �� ��� ���� ��
�� ���� �� �� StartCommand, StopCommand � MonitorCommand�
�� �� � �����.
StartCommand:
1. StartCommand� ��� �� � ��, � 0� ���� ��� ��� �
�� �� ���� �� � � �� ���� ��� ���.
2. StartCommand� ��� �� � �� 0� �� � �� ���� ���.
��� ���� ��� �� ���� �� �� �� ��� ���� ���
��� ��� �����. � �� ���� ��� ���� ���. ��� ��
� �� � �� �� resetrsrc ��� ���� �� �� �� ��� �
�����. StartCommand� ��� � ���� StopCommand� ���� �
����� ��� �� � ����� �� ������.
3. StartCommand� ���� ���� � 0� ����� ���
MonitorCommand� (��� �� ��� ��� ��) � ��� �� � �
�� ��� ���� �� ��, ���� ��� �� ����� ���. ��
�� � � RetryCount ��� ���� ��(IBM Tivoli System Automation for
Multiplatforms ���� lssamctrl �� �� � �), �� � 3���.
��� �� � ��� �� �� ��� ����� ��� �� ��,
StopCommand� ���� ��� ���� ��� ����.
4. ��� StartCommand� StartCommandTimeout ��� �� �� �� ���
� ��� ��, �� ���� StartCommand� kill�� ��� 2 ��� �
�� � �� �(failing start command)�� �����.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 245
5. ��� ��� � �� StartCommand� ����� � �� ��� �� ��
�� �� ��(�� ��, NFS ���� ����), �� ����� 245 ���
� 2 ��� � �� � StartCommand� �����.
StopCommand:
1. StopCommand� ��� �� � ��, � 0� ���� ��� ��� �
�� �� ���� �� � � �� ����� ��� ���.
2. IBM Tivoli System Automation for Multiplatforms�� ��� StopCommand
� ���� ���� ����. StopCommand� 0 ��� �� ���� �
����� �� � ��� �� � ���, � ��� ��� �� ����
�� ����.
� �� � OpState �� ������ ��� � ��, IBM Tivoli System
Automation for Multiplatforms ��� �� �� �� ����, ��
StopCommand ��� �����. �� �� StopCommand� �� ��
SA_RESET �� �� ���� StopCommand ���� ��� �� � �
���. � �� �� ��� � �� 1� ����. StopCommand� �
� ����� �� �� �� � ����.
#/bin/sh# A sample stop/reset automation script for the lpd applicationif [ $SA_RESET == 1 ]; thenkillall -9 lpdexit $?
else/etc/init.d/lpd stopexit $?
fi
StopCommand� �� ���� ��� �� ����� � �� � �
���. ��:
#/bin/sh# A sample stop/reset automation script for the lpd applicationif [ $SA_RESET == 1 ]; thenexit 0
else/etc/init.d/lpd stopexit $?
fi
� �� �� IBM Tivoli System Automation for Multiplatforms ��� 2.2
�� ��� ���. ��� �� �� �� Policy ����� ��� ��
����. ��� SA_RESET �� �� ���� �� �� ��� � �
� � ����. �� StopCommand �� ��� �� �� ��� ���
��� ��� � ���� ��, ��� OpState� ��� ��� ����.
�� �� RM
246 ��� � ��� ���
� �� ���� �� ��� ���� ���. ��� ���� OpState� ��
���� �� IBM Tivoli System Automation for Multiplatforms� � �
�� �� �����.
3. ��� StopCommand� StopCommandTimeout ��� ���� �� ��, �
� ���� � �� kill�� ��� 246 ���� 2 ��� � �� �
StopCommand� �����.
4. StopCommand �� �� �� �� � 0� �� �� ��� ��� �
�� ‘Problem(���)’�� ����. � �� � ��� �� resetrsrc� �
��� ����� ��� � ����. ��� �� resetrsrc� ���� ��
� StopCommand� ������, StopCommand� �� ���� ���� �
��(�, �� 0� ���� �). ��� ��� StopCommand� �� �
��� ��� ��� ���� ���� 0� �� �� � ����� ���
� �� ����. �� �� ����� StopCommand� �� � 0�� �
���� ���� ��� 'Problem' �� � ���� ��� �� ���.
5. ��� ��� � �� �� �� ����� � �� ��� �� ���� �
� ��(�� ��, NFS ���� ����), �� ����� 246 ���� 2 �
�� � �� � StopCommand� �����.
MonitorCommand:
1. MonitorCommand� ��� �� �� ��� �� � �� � RMC �
� �� �� � ��� ���� ���(243 ��� �). � �� 0 RMC �
� �� �� ���� �� �� �� ��� �� �� �� � � ��� ��
�� ���� ��� � � ���. � � �� ���� �� ��� ��
���. � � �� �� �� ��� �� �� ����� ���, �� �
��� �� ���� �� �� ���� ��� � � ����.
2. ��� ���� �� MonitorCommandTimeout ��� ���� �� ��, �
� ���� MonitorCommand� kill�� RMC �� �� ��� � � ���
� ����. �� ��� �� ���� ��� �����.
MonitorCommand� � � �� ��� �� �� ��� �� � � � ��
� �� ���� ���� ����.
3. ��� ��� � �� ���� �� ����� � �� ��� �� ���
� �� ��(�� ��, NFS ���� ����), �� �� ��� � � ��
�� ���, �� ��� �� ���� ��� �����.
4. �� � ��� �� � �� NFS� �� ��� MonitorCommand
� � RMC �� �� ��� � �� � ���, �� ���� ���
��� ������.
5. ��� StartCommand �� �� ��� OpState� MonitorCommand� �� �
� �� OpState� � �� �� ��� ����� ��� ��� ���
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 247
�� ����� ��� ����. ��� MonitorCommand� ��� �� �
��� ��� ���� ��, ��� ������ ���� ��� � �� ��
��.
6. ��� StopCommand �� �� ��� OpState� MonitorCommand� �� �
� �� OpState� � �� �� ���� ����� ��� ��� ��
� �� ����� ��� ����. ��� MonitorCommand� ����, �
��� �� �� ��� ��� ���� ��, ��� ������� �� ��
� �� ��� � �� ����.
��� �� ���� IBM.Application ��� StartCommand,
StopCommand � MonitorCommand� �� ���� ���� �
�
UNIX/Linux �� � �� ����� �� �� ����(src)� �� � ��
(spawn)�� init �������. �� ���� �� � ��, �� �� ���
�� System Automation for Multiplatforms �� ���� �� ��� ���.
�� �� ���� �� ����� ���� IBM.Application ��� ��/�� �
���� �� �����. �� �� ���� �� �� �� � �� �
��� ��� �����. �� � ��� �� ���.
{fork;if childswitch to specified user ID;run the users default shell and execute the command e.g.bash -c /usr/bin/mycommand;
endif}
� ��(�: ��� �� �� � mycommand)� �� ����� �����
�� ��� �� � �� � ����� ��� �� � � ����.
�� ��� ����� �� ����.
1. IBM.Application ��� � ��� �����.
StartCommand="/usr/bin/mycommand"RunCommandsSync=0
� ��� �� �� ���� � ����� ��(fork)� �� � ����
�� �� ���� � ����� �� �� � ������ ����.
Init-+-atd
|
|-srcmstr
| |
| |-IBM.GblResRMd---IBM.GblResRMd---13*[Ibm.GblResRMd]
�� �� RM
248 ��� � ��� ���
�� �� ���� �� � ����� ���� ���, ����� �
� ���� ��� � ����.
� ����� �� ��� ���� �� ����� �� init ����� �
� ���. ����� �� init� ����� �� � �����.
2. IBM.Application �� � ��� �����.
StartCommand="/usr/bin/mycommand"RunCommandsSync=1
��� �� �� ���� �� ��(forked) ������ ���� ����.
� ������ � �� �� ���� �� ���� � �����.
v �� �� �� � ���� ��, stderr� ���� ���� ��/�
� �� �� �� ��� � � �� ��� �����.
v �� StartCommandTimeout ��� �� �� �� ���� �� ��,
�� �� ���� SIGKILL� ��(forked) ����(��� �� �)� �
��. SIGKILL ��� �� �� ����� ����, �� �� �� ��
����� �����.
3. IBM.Application �� � ��� ����� ��� �� �� ��� ��
���.
StartCommand="/usr/bin/mycommand &"RunCommandsSync=1
� ��� ��� �� � � �� � ������ � �� �� ��
����� �� � � ���� ����. �� StartCommandTimeout ���
�� �� mycommand�� ���, ��� � � ��� �� ���
��� �����. ��� mycommand� StartCommandTimeout ��� ��
���� �� ���� ��, �� �� ���� SIGKILL� ��� �� �
�� ��� � SIGKILL� �� ���� ����� �����.
� �� ���� ��� ��, � �� ����� �� � ������ ��
� ��� �� ���� ���. �� �� ����.
StartCommand="/usr/bin/mycommand > /dev/null 2>&1 &"RunCommandsSync=1
��� � ����� ����(forked) � ����� � ������� ��
� ��� ��� �� �� � ����. �(mycommand) ��� � �� �
����� �� �� ����, � � ���� �� init ����� �
� ���.
��: lpd � � ���� IBM.Application ���� ��
�� ��� System Automation for Multiplatforms� �� ���� SUSe �� Linux
���� lpd ��� ���� ���� �� �����.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 249
1. ��� �� �� �� lpd� ������. � ��� � ��� ��
� � ���� ����� ��, � �� �� � ���� ���.
2. IBM.Application� �� � �� ��� Ip �� �� �� �� init ��
��� ������.
StartCommand: /etc/init.d/lp startStopCommand: /etc/init.d/lp stop
3. ���� ��� ���� ��� Ipd ����� ���� �� � ����
� ������.
File: /root/lpmon#!/bin/bash
OPSTATE_ONLINE=1OPSTATE_OFFLINE=2
ps -ax | grep -v "grep" | grep "/usr/sbin/lpd" > /dev/nullif [ $? == 0 ]thenexit $OPSTATE_ONLINE
elseexit $OPSTATE_OFFLINE
fi
��, System Automation for Multiplatforms� �� �� pidmon �� �
� � ����. � � ���� ���� ���� �� � ��
� �����. � �� � � �� RMC OpState� �����. � �
� �� ��� � IBM Tivoli System Automation for Multiplatforms �
�� �����.
MonitorCommand: /root/lpmonorMonitorCommand: /usr/sbin/rsct/bin/pidmon ’/usr/sbin/lpd’
4. � ��� ��, �� �� � ���� ��/�� � ���� �� ��
� � ��� ������. lpd� ��� �������� �� ��-/��-
� MonitorCommandTimout �(��� 5��)� �� � ����. init ��
��� �� lpd� ���� IBM.Application� ��� ��� �� ���
���.
�� mkrsrc �� ���� IBM.Application ��� �� � ����.
# mkrsrc IBM.Application \Name = "line_printer_daemon" \ResourceType = 1 \StartCommand = "/etc/init.d/lpd start" \StopCommand = "/etc/init.d/lpd stop" \MonitorCommand = "/usr/sbin/rsct/bin/pidmon ’/usr/sbin/lpd’ " \MonitorCommandPeriod = 15 \MonitorCommandTimeout = 5 \StartCommandTimeout = 5 \StopCommandTimeout = 5 \UserName = "root" \
�� �� RM
250 ��� � ��� ���
RunCommandsSync = 1 \ProtectionMode = 0 \NodeNameList = "{’node01’,’node02’}"
� �� �� � �� ��, � ″node01″ � ″node02″ ��� ���� ��
��� ��� � �� ″line_printer_daemon″� �� �� �� � ��, ″node01″
� � ″node02″ �� �� ″line_printer_daemon″ �� �� �� ����
�. �� ��� �� �� �� ���� ��, �� �� RM ��� � �
�� � �� StartCommand ��� �� �� ����(�� �)� � ��
�� �����.
IBM.Application ��� �� �� �� ��
IBM.Equivalency � DependsOn � � ���� IBM.Application� ���� ��,
���� ����� ��� � �� � ��� IBM.Application� �� �� ��
�� �����.
� � ���� ���� ����� Ax ������ � �� B �����
� � ������ �� ��� � ��� �����(55 ���� � 5 � ���
� ��� � 61 ���� � 6 � ��� � ��� � �). ����� �� ��
� DependsOn � � �� �� �� �� � ����(� ��� A1 � A2�
lnxcm1�� �� � ��), ���� B ��� �� �� � ��� �� �
�� �����.
�� ��, B ��� �� ����� � ��� ���� � ������ �
� ���� ����� ����� � �� ���� ���� �� ��
� ��� � ����.
� ��� �� �� ���� �� �� ���� ��� �� � ���� ��
�� �� ����.
�� 18. IBM.Application ��� �� �� �� ��
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 251
��
SA_SUPPORTING_RESOURCE_RH �� ��� �� ��(� : "0x601d 0xffff
0xcac15160 0xbad91087 0x0f933128 0x58888f98")
SA_SUPPORTING_RESOURCE_NAME �� ��� �(�: "A1")
�� B ��� �� ����� �� �� �� �� �� � �� �� ��
�� � ���.
# start command for resource B with logic for# supporting resource...if [ $SA_SUPPORTING_RESOURCE_NAME = "A1" ]then# start resource B and connect it to supporting# resource A1...
fi
if [ $SA_SUPPORTING_RESOURCE_NAME = "A2" ]# start resource B and connect it to supporting# resource A2...
thenfi
IBM.ServiceIP �� ���� ��
IBM.ServiceIP �� ���� �� ��� �� ���� � �� ��, �� � �
� � �� IP ��� ���� � �����. � ���� � �� ��� IP
��� �����. � IP ��� ��� ��� ��� �� �� �� ����
�� ����� �����. �� �� ����� ��� ��� ���� �
��� � �� IP ��� ���� ���� � ��� � ����.
��� IP ��� ���� � ��� ���� ����� ��� � �� ��
� ��� ��� �� ��� ���� �� �����. �� �� � �� ��
� ��� ��� � ���� � �� �����.
IBM.ServiceIP �� ���� �� �� ���� �����.
1. ��� �
2. ��� �� � �� �
3. �� � �� IP ��
4. IP ��� �����
���� ������ ����� �� � ��� ServiceIP ��� �� �� �
��� ���� �� ������� �����.
�� �� RM
252 ��� � ��� ���
IBM.ServiceIP� �� ����� �� � �� ��� IBM.ServiceIP� ���
�� �� ��� ���. ServiceIP� ���� ���� ���� ���� ��
� � ����/���� ����� ��� ������.
�� ���� � ��� ���� ����. �� ���� ������ ���
� �� ServiceIP� ���� ��, � �� ���� �� �� � ����
� �����. � ����� ���� �� ��� ���� �� �� ��� �
�� �����.
IBM.ServiceIP� ��
IBM.Service IP ����� ��� � ��� ����.
1. IBM.ServiceIP� �� ���� ������ �� � ����.
IBM.ServiceIP� �� �� ���� ��, �� ���� �� ���� �
����� � ��� ���. ���� ������ �� � �� ��, ���
IP� � ������� ���� �����. � ������ �� �� ��
�� ���� ������� ���.
�� ���� ������ ���� �� �� ���� IBM.ServiceIP ��
� IPAddress ��� �� �� ���� ������ IP ��� �����.
��� ����(���)� � ��, �� ���� � ���� ������
�� ��� �����. ��� ���� �� ��, ��� �� �����.
���� � �� �� ������ ��, ���� ���� ������ �
� ��� �� � ����. ���� ������ ���� �� �� �� �
��� ServiceIP� ���� ������ �� � ����. �� ��, ��
�� ���� ���� �� � �� UNIX/Linux� ���� ������ �
�� ��� ���� �� ��� ���. ��� ���� �� ���
� �� � �� ���� ������ ���� �� �� ��� ����.
RSCT �� �� ���� ���� �� ��� � ���� ����� �
�� ����� ��, �� ��� ��� IBM.ServiceIP� �� �� ��
������.
��
IBM.ServiceIP� �� �� �����.
IPAddress=192.168.1.5NetMask="255.255.255.0"NodeNameList="{’node01’,’node02’}"
�� ���� ������ ������ �� �����.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 253
1. IPAddress=192.168.1.1Netmask=255.255.255.0NodeNameList="{’node01’}"
2. IPAddress=9.152.172.91Netmask=255.255.255.0NodeNameList="{’node02’}"
3. IPAddress=192.168.2.1Netmask=255.255.255.0NodeNameList="{’node03’}"
1� ������ ��� IP� �� � ����. �� �� ������ ��
� IP� ��(���)� ��� ����. �� �� ���� ������ �
�� node01� �� � �� IBM.ServiceIP� ���� ��� �����.
2. IBM.ServiceIP� �� IP ��� �� � �� �� ��� ����.
� �� IBM.ServiceIP ��� IPAddress � NetMask ��� �� �����
����. ��� IP� ���� ���� �����(�� �� 55 ���� �
5 � ���� ��� �)� DependsOn � (72 ���� �DependsOn � � �
)� ��� ���. System Automation for Multiplatforms� �� �� �
�� IP ��� ����� ����� �� ���� ������ �����
�� ���� ������ � �� IBM.ServiceIP� �� ���� �����.
�� ��� ���� ��������.
� ���� ���� ��� IP ��� ���� ���� ���� ������
�� �� ��� ���� � ����. RSCT �� ��� �� �����
��� ��, ���� �� �� �� ��� �� ���� ServiceIP� ���
��. ���� � ��� ���� ������ �� ��, ���� � ��
�� � �� ServiceIP� �����.
��:
IBM.ServiceIP� �� �� �����.
IPAddress=9.152.192.1NetMask="255.255.255.0"NodeNameList="{’node01’,’node02’,’node03’}"
�� ���� ������ ������ �� �����.
1. IPAddress=192.168.1.1Netmask=255.255.255.0NodeNameList="{’node01’}"
2. IPAddress=192.168.1.2Netmask=255.255.255.0NodeNameList="{’node02’}"
3. IPAddress=192.168.1.3Netmask=255.255.255.0NodeNameList="{’node03’}"
�� �� RM
254 ��� � ��� ���
� �� ���� ����� � ���� ����.
�� �� �� �� ����:
��� IP� ����� �� System Automation for Multiplatforms� �����
���� ������ � ���. � ����� � � � �� ���� ��
� �� ���� ���� ������ ����� ��� IP� node01, node02 �
node03 �� �� � ����.
IBM.ServiceIP� ��� ��
� ���� IBM.Application �� ���� ��� ���� ��� �� ���
�.
RMC � mkrsrc� ���� � ���� ��� ���� �� �� ��� ��
� ���.
v Name
v IPAddress
� ���� ���� �� ��� �� � ����.
v NodeNameList
v ResourceType
v NetMask
v ProtectionMode
� ���� ���� �� � � ��� ����.
v OpState
Name �� Name �� �� � ��� IP ��(�: mail-server-ip)� �� �
�� �� ����. �� � �� �� � � ��� �� �
� �� ����.
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 255
� �� � � IBM.ServiceIP ��� �� � ����� �� �
�� ���.
��� � �� ��� ���.
NodeNameList ��
NodeNameList �� �� IBM.ServiceIP ��� �� ��� �
� ���� �� � ���.
��� �� ��, �� �� RM � ��� � � ��
�� ��� ��(��) ��� ����� �����. �� �� �
��� �� ���� �� �� �� ���� �� �� �
����. �� �� �� ����� � ���� �� ���
�� � � �� � �� ��� �����. � ��� �� � �
� �� ��� ���� �� ���� ���� �� ���
� �����, �� � �� �� � � ��� �����.
� ��� �� � ��� �� ���, � �� ���� ��
�� �� � ����.
�� ��� ��(�: ResourceType=0), � �� � � �� �
� �� � ����. �� ��� �� �� ���� � �
�, �� ��� �� ���� �� � ��� � id �� �
�� � ���� RMC� ���� �����.
�� ��� �� � �� � chrsrc �� ���� � � �
���. �� ��� �� � ��� ����� �� ��� ���
��.
ResourceType ��
ResourceType �� ��� ���� ��� ���� ���� �
� � ����. �� � 0 �� ��� ����, � 1 � �
�� �����. IBM.ServiceIP ��� �� ��� � � ��� �
��� � ��, ��� ����.
IPAddress ��
IPAddress �� ��� �� ��� ����� ��� ���� �
����� ���� ��� IP ��� �����. IBM.ServiceIP �
�� �� ��� � � ��� ����. IP ��� ‘��� 10�
�’ ��� �� (�: 9.152.80.251)� ����� ���.
NetMask ��
NetMask �� ��� ���� IP �� ��� �� IP ���
��� ������ �����. �� �� (�: 255.255.255.0)�
����� ���.
ProtectionMode ��
ProtectionMode �� ��� ���� ��� ��� ��� �
�� �� RM
256 ��� � ��� ���
� � ����. ��� �� ��, IBM.ConfigRM �� �
� ��� ��� � ���� �����. � ��� �� ��� �
� 167 ���� � 9 � ��� �� – �� ���� ����
�.
��� � 0(��� ��) �� 1(�)� �� � ���, ���
�(Critical)���.
OpState �� � � �� ��� � �� ���� �� ���� ��� ��
�� ��� �����. � ��� �� �� � Online(�: 1)
� Offline(�: 2)��, �� IP ��� �� ����� �� ���
� ��� � ���.
IBM.ServiceIP �� � �� �
�� ���� � ���� ������� IP ��� �� � �� �� ��
��� �����.
1. OSA ���� ���� ��� Linux on System z�� �� IP ��� �
� IP �� � � �����.
2. ServiceIP� � ���� ����� IP ���� �����.
3. �� ��� ��(MAC ��)� ServiceIP� �� �� IP ����
ARP(Address Resolution Protocol: �� � ����) �� ��� ��� �
�� �� ��� ��/��� ARP ��� ����� ��������.
4. ServiceIP� �� ���� ������� �� �� ���� �� �� �
� �� ���� ����.
�� ��� ������.
v IP �� �� ���� �� �� ���� � ��� �� �� ���
�(ServiceIP ����� ���� ����� � ��).
v IBM.ServiceIP� �� ����� �� �� �� ����/�� ��� ��
�� ����.
�� 1: IP ��� IBM.ServiceIP ���� ��
�� IP� 9.152.172.11�� ������ 255.255.255.0�� node05 � node06 �
�� ���� ���� IP ��� ���� �� RMC �� ������.
mkrsrc IBM.ServiceIPName="WebServerIP"NodeNameList="{’node05’,’node06’}"IPAddress=9.152.172.11NetMask=255.255.255.0
�� �� RM
� 11 � System Automation for Multiplatforms �� ��� 257
�� 2: IBM.ServiceIP ���� IP �� �� � ���� ������
IBM.Equivalency ��
�� 1����, �� IP� 9.152.172.11�� ������ 255.255.255.0�� node05
� node06 ��� ���� ���� IP ��� �����.
mkrsrc IBM.ServiceIPName="WebServerIP"NodeNameList="{’node05’,’node06’}"IPAddress=9.152.172.11NetMask=255.255.255.0
node05 � node06 ��� �� � ��� ���� ������ ����.
node05 �� node06 �� eth1 ���� ���� ���� ��� ���
������.
mkequ MyInterfaces IBM.NetworkInterface:eth1:node05,eth1:node06
�� ServiceIP� ��� �� � ����.
mkrel -p dependson -S IBM.ServiceIP:WebServerIP -G IBM.Equivalency:MyInterfacesWebIp_depon_MyInterfaces
�� �� RM
258 ��� � ��� ���
��� �� ��� ��
� ���� �� �� ���� ��� �� ����.
IBM �� �� ���(IBM.TestRM)� �� ��� ���� � ��� �� �
� ��� ��� ��� �����. �� ���� �� ��� ���� ��
���� IBM.Test �� ���� �����. IBM.TestRM �� ��� ����
����.
IBM ��� �� ���� ��
IBM.Test �� ���� ���� RMC ����� �� � � � �� � �
��� ��, ���� � �� � ����. � �� �� ��� ��� �� �
� ��� ��, ���� � ���� ��� ���. ��� � �� System
Automation for Multiplatforms� �� ������ ��� � ����. IBM.Test
���� ��� �� ��� ��� �� �� ��� ����� �����
� ����. IBM.Test ���� �� ���� � �� ��� ���� �� �
�� ��� �� � ��� ���� ����� ��� ���� ����
�. ��� �� 236 ���� �� 17� �����.
IBM.Test �� ���� �� ��� ��� ������ �� �� �� ��
��� �����.
IBM.Test� ��� ��
� ���� IBM.Test �� ���� ���� �� ��� �� ����.
RMC � mkrsrc� ���� � ���� ��� ���� �� �� ��� ��
� ���.
v Name
� ���� ���� �� ��� �� � ����.
v NodeNameList
v ResourceType
v ForceOpState
v TimeToStart
v TimeToStop
v WriteToSyslog
v MoveTime
v MoveFail
� ���� ���� �� � � ��� ����.
�� �� ���
� 11 � System Automation for Multiplatforms �� ��� 259
v OpState
v MoveState
v OpQuorumState
Name �� Name �� �� �� ��� �� ��� �� ����.
�� � �� �� � � ��� �� � � �� ����.
� ��� �� � IBM.Test ��� �� ��� � ����� �
� � �� ���.
NodeNameList ��
NodeNameList �� �� IBM.Test ��� �� ��� ��
���� �� � ���.
��� �� ��, TestRM � ��� � � �� �� �
�� ��(��) ��� ����� �����. �� �� � ��
� �� ���� �� �� �� ���� �� �� ���
��. �� �� �� ����� � ���� �� �����
� � �� � �� ��� �����. �� � �� �� � � �
� ���� �� �� ���� �� ��� ���� ����
�� � � ��� ��� ���� �����.
� ��� �� � ��� �� �� � ���, � �� �� �
� ����� �� � ��� ���� ���� �� � �
���.
ResourceType ��
ResourceType �� ��� ���� ��� ���� ���� �
� � ����. �� � 0 �� ��� ����, � 1 � �
�� �����. IBM.Test ��� �� ��� � � ��� ���
� � ��, ��� �����.
ForceOpState ��
� ��� ���� RMC chrsrc �� �� �� ��� OpState
�� �� � ����. �� � �� ��� ��� ���
��� � ��� � ����. ��� �� � � �� �� �
�� �����. �� �� ��� � ��� ���� ��� ��
��. ��� �� ��� �� ��� OpState� �����,
ForceOpState � �� ���� ���� ���. � ��� �
�� ����.
� � ��=0
���=1
����=2
���� ��=3
�� �� ���
260 ��� � ��� ���
��� ��=4
��� ���=5
���� ���=6
TimeToStart �� ��� �� �� ��� � TimeToStart �� ���
OpState� ��� ����� ����� ��� � ��� ��
(�)� �����. ���� 0���� �� � ���� ���.
TimeToStop �� ��� �� �� ��� � TimeToStop �� ���
OpState� ���� ����� ������ ��� � ��� �
�(�)� �����. ���� 0���� �� � ����� ��
�.
WriteToSyslog
IBM.Test ���� �� syslog ��� ���, ���� �
ForceOpState ��� �� � ����. WriteToSyslog ��� �
��� syslog ��� �� �� ��. � ��� �� � �
� ����.
0 syslog� � ��(���)
1 syslog� �
OpState �� � � �� ��� � ��� �� �� ��� �����.
IBM.Test �� OpState� RMC ��/�� � �� ����
ForceOpState �� �� �� ����(��� �����)�
�� �����. RMC �� �� � ������ �� �
��� �� ��� � �� ����.
� � ��=0
���=1
����=2
���� ��=3
��� ��=4
��� ���=5
���� ���=6
MoveTime ���� ���� �� ���
MoveFail ���� ���� �� ���
MoveState ���� ���� �� ���
OpQuorumState
���� ���� �� ���
�� �� ���
� 11 � System Automation for Multiplatforms �� ��� 261
��: ��� �� �� � �� OpState �
��� ��� IBM.Test ��� ���� �� RMC �� ������.
mkrsrsc IBM.Test \Name="mytest" \NodeNameList="{’node01’,’node02’}" \ResourceType=1 \TimeToStart=5 \TimeToStop=2 \WriteToSyslog=1
�� �� �� node02� ���� � OpState� ���� ��� ����.
��� System Automation for Multiplatforms� �� ����, ��� ����
� ��� � ��� �����.
chrsrc -s "Name=’myTest’ && NodeNameList={’node02’}" IBM.Test ForceOpState=3
�� �� ���
262 ��� � ��� ���
� 12 � RSCT ��� �� ��� �� ���
IBM Tivoli System Automation for Multiplatforms RSCT� �� ���� �
� ���(StorageRM) ��� ����, IBM.AgFileSystem ���� � �� �
�� ��� � ��� ���. � ��� ����� �� IBM Tivoli System
Automation for Multiplatforms� �� �� ��� ��� �(�: � ���
���� ���� ���� � , ���� ���� ���� �� �� ��
� ���� ��� ����� ��� ����� ��)� �� �����.
v �� ��� �� ��� ����� ���� ����� ��� ����.
v ���� ���� IBM.AgFileSystem ��� ����� �� �� �� ��
��� ��� ����. ���� ���� �� � ��� ����� �
�� �� IBM.AgFileSystem ��� ������. �� ���� � ��� �
��� ����� �� ���� �� � � ����.
– 269 ���� ���� �� IBM.AgFileSystem �� ���
– 269 ���� �LVM ���� ��� �� IBM.AgFileSystem �� ����
���� �� ���� �� �� ��� RSCT �� ����� 6� "���� ��
��� �� � ��"� �� �� �����.
v IBM.AgFileSystem ��� ����� � �� ��
v ���� �� ��� �� � �����
���� ��� ����
System Automation for Multiplatforms on Solaris� �� �� ���� ��
�� �����.
v ��� �� IBM.AgFileSystem ��� �����. ��� ��� � �����
� ��� �� ��� � ��� �� � ����.
v �� Solaris � �� � (�: UFS, ZFS)� �����.
v IBM.VolumeGroup, IBM.Partition, IBM.Disk � IBM.LogicalVolume ����
���� ��� ���� ����.
v IBM.AgFileSystem ��� �� �� ���� ����.
v Solaris� ���� � �� ��� �� ��� 268 ���� ����� �
��� �� ���� �����.
Windows� ���� ��� ��� �� ��� 286 ���� �Windows���
System Automation for Multiplatforms� �� ���� ����� �����.
© Copyright IBM Corp. 2006, 2008 263
�� ���� AIX � Linux�� IBM.AgFileSystem ��� ����� �� ��
��� �� ��� �� ��� �� �� �����.
IBM TotalStorage DS4000 ���� � � � �� � ���� �
��� �� ��� ��
AIX
SPIO � MPIO ���� ����� �� ��� �����.
v �� IBM.AgFileSystem �� ��� � ����.
IBM.AgFileSystem �� jfs �� jfs2 � � ��� ����, ���� ���
� ��(IBM.LogicalVolume, IBM.VolumeGroup, IBM.Disk ���� ����
��)� �����.
v ��� �� IBM.AgFileSystem �� ��� � ����(�: ���� �
��).
v RDAC(Redundant Disk Array Controller) ���� ���� SPIO � MPIO
���� ���� ���� SCSI-2 ��� �����.
����:
v ��� ��
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
Linux on POWER � Linux on System x
RDAC(Redundant Disk Array Controller) ��� ���� ��� �� � �
� I/O(SPIO) ���� ��� � �� �� ���� I/O(MPIO) ���� ��
�� ��� �����.
v �� IBM.AgFileSystem �� ��� � ����.
IBM.AgFileSystem �� ext2, ext3 �� reiserfs � � ��� ����, ��
�� ���� ��(IBM.LogicalVolume, IBM.Partition,
IBM.VolumeGroup, IBM.Disk ���� ���� ��)� �����.
v ��� �� IBM.AgFileSystem �� ��� � ����(�: ���� �
��).
v SCSI-2 ��� RDAC ����� �� ���� �����.
v Linux RAID(/dev/md ���)� �����.
����:
v LVM� ���� �� md ���� �� � �� ���� ��� ��
� �� IBM.AgFileSystem �� �� ��� ��� � ����.
264 ��� � ��� ���
v pvcreate �� ���� md ���� �� ��� �� �� md ���
��� IBM.Disk ����� �����.
v �RDAC ��� �� md ��� ���� SCSI-2 ��� ���� ����.
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
v EVMS� ���� ���, ���� EVMS� �� ����� ���� �� �
� ��/�� ��� �����.
v SLES 10 � RHEL 5� ���� IBM.Disk, IBM.VolumeGroup,
IBM.LogicalVolume, IBM.AgFileSystem � IBM.Partition ���� ����
�� ��� �����. �� � md ���� �� ����� ���� �
� � ��� ��� � ����.
Linux on System z
pvcreate �� ���� md ���� �� ��� �� �� md ����
IBM.Disk ���� �����.
����:
v ��� �� IBM.AgFileSystems �� �� �� md ���� ����
IBM.AgFileSystem ��� ��� � ����. �� ���� �� �� ��
���� ����. �� ��� ��� ��� ���� �� ��� ��� �
����.
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
v SCSI ��� ���� ����.
�� IBM TotalStorage ��� ��� ���� � � � �� � �
��� ���� �� ��
AIX
SPIO � MPIO ���� ����� �� ��� �����.
v �� IBM.AgFileSystem �� ��� � ����.
IBM.AgFileSystem �� jfs �� jfs2 � � ��� ����, ���� ���
� ��(IBM.LogicalVolume, IBM.VolumeGroup, IBM.Disk ���� ����
��)� �����.
v ��� �� IBM.AgFileSystem �� ��� � ����(�: ���� �
��).
� 12 � RSCT ���� �� ��� �� ��� 265
v RDAC(Redundant Disk Array Controller) ���� ���� SPIO � MPIO
���� ���� ���� SCSI-2 ��� �����.
����:
v �� ��
v ��� ��
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
Linux on POWER � Linux on System x
� �� I/O(SPIO) ���� ����� �� ��� ����, IBM TotalStorage
Disk ��� �� �� ���� I/O (MPIO) ����� �� ��� ����
�.
v �� IBM.AgFileSystem �� ��� � ����.
IBM.AgFileSystem �� ext2, ext3 �� reiserfs � � ��� ����, ��
�� ���� ��(IBM.LogicalVolume, IBM.VolumeGroup, IBM.Disk ���
� ���� ��)� �����.
v ��� �� IBM.AgFileSystem �� ��� � ����(�: ���� �
��).
v Linux RAID(/dev/md ���)� �����.
����:
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ��� md ���� �
� ��� ����� ���� ���� ��� � ����.
v SCSI-2 �� RDAC ����� �����.
v LVM� ���� �� md ���� �� � �� ���� ��� ��
� �� IBM.AgFileSystem �� �� ��� ��� � ����.
v pvcreate �� ���� md ���� �� ��� �� �� md ���
��� IBM.Disk ����� �����.
v EVMS� ���� ���, ���� EVMS� �� ����� ���� �� �
� ��/�� ��� �����.
Linux on System z
pvcreate �� ���� md ���� �� ��� �� �� md ����
IBM.Disk ���� �����.
����:
266 ��� � ��� ���
v ��� �� IBM.AgFileSystems �� �� �� md ���� ����
IBM.AgFileSystem ��� ��� � ����. �� ���� �� �� ��
���� ����. �� ��� ��� ��� ���� �� ��� ��� �
����.
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
v SCSI ��� ���� ����.
�-DS4000 � � ���� ���� �� ��
AIX
� �� ���� ����� �� ��� �����.
v �� IBM.AgFileSystem �� ��� � ����.
IBM.AgFileSystem �� jfs �� jfs2 � � ��� ����, ���� ���
� ��(IBM.LogicalVolume, IBM.VolumeGroup, IBM.Disk ���� ����
��)� �����.
v ��� �� IBM.AgFileSystem �� ��� � ����(�: ���� �
��).
v SCSI-2 ��� �����.
����:
v �� ��
v ��� ��
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
Linux on POWER � Linux on System x
�� ��� �����.
v �� IBM.AgFileSystem �� ��� � ����.
IBM.AgFileSystem �� ext2, ext3 �� reiserfs � � ��� ����, ��
�� ���� ��(IBM.LogicalVolume, IBM.Partition,
IBM.VolumeGroup, IBM.Disk ���� ���� ��)� �����.
v ��� �� IBM.AgFileSystem �� ��� � ����(�: ���� �
��).
����:
� 12 � RSCT ���� �� ��� �� ��� 267
v SCSI ��� �� ��� �����. SCSI ��� �� ���� ���� �
�� �� ��� ������.
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
Linux on System z
pvcreate �� ���� md ���� �� ��� �� �� md ����
IBM.Disk ���� �����.
����:
v ��� �� IBM.AgFileSystems �� �� �� md ���� ����
IBM.AgFileSystem ��� ��� � ����. �� ���� �� �� ��
���� ����. �� ��� ��� ��� ���� �� ��� ��� �
����.
v ��� �� IBM.AgFileSystem �� � ��� ���� ���� ��
��� �� ��� � � ��� �� �� �� ���� ��� � �
���.
v SCSI ��� ���� ����.
���� �� ���� �� ��
�� Linux on POWER, Linux on System x, Linux on System z, Solaris �
AIX� ����.
���� � �� ���� ����. �� � � ��� ����� �
�� �� IBM.AgFileSystem ��� ������.
���� ��� �� ���� � ��� �� � ��� ��� �� ��
�� IBM.AgFileSystem ���� ���� � ��� ��� � �� ��
�� ���� � ��� �� ������.
� ���� ��� � ���� ���� ����.
IBM Tivoli System Automation for Multiplatforms� ���� ���� NFS �
�� �� � ���, ��� �� � �� �� ��� ��� ����
IBM.AgFileSystem ���� ���� ������. NFS �� ��� �� ���
��� ��� � �� ���� � ��� IBM.Application ���� ���
� ������. ��� �� ��� ���� � ��� �� �� �� �
��� �� � ���� ��� ��� �� IBM.AgFileSystem ����
���� ����. ��� �� � ��� ����� ���� � ��� �
�� OpState 3(���� ��)�� ����.
268 ��� � ��� ���
��� �� IBM.AgFileSystem �� �
���� ���� �� � ��(�: NFS ���)� ����� mkrsrc� �
��� � IBM.AgFileSystem ��� ������.
��:
mkrsrc IBM.AgFileSystem Name=<name> DeviceName=<device-name>Vfs=<file-system-type> MountPoint=<mount-point>NodeNameList={<list-of-node-names>}
LVM ���� ��� ��� IBM.AgFileSystem �� ���
�� ��� ���� ���� ���� �� � ��� ����� IBM Tivoli
System Automation for Multiplatforms ��� ���� � ��, �� �� �
�� �� �� ���� ���� ���. �� � �� ��� ���.
1. IBM.Application ���� ��� ���� �� ��� ������. �� ��
� ���, ���� � �� ��� �� �� ���� IBM.Application �
�� StartCommand, StopCommand � MonitorCommand ��� �� ����
� ������.
2. IBM.AgFileSystem ���� ��� ���� � ��� ������.
3. � �� ��� ���� �� ��� ���� ����� ��� ���
DependsOn � � ������.
IBM.AgFileSystem� ��� ��
� ���� IBM.AgFileSystem �� ���� ���� �� ��� �� ��
��. � ���� ��� RMC � mkrsrc� ���� �� ��, �� � �
� ��� ��� ���.
v Name
v Vfs
v DeviceName
v MountPoint
� ���� ���� �� ��� �� � ����.
v NodeNameList
v ResourceType
v ProtectionMode
v PreOnlineMethod
v Force
� 12 � RSCT ���� �� ��� �� ��� 269
� ���� ���� �� � � ��� ����.
v OpState
�� ���
Name ��
Name �� �� � ��� ���(�: mail-server-data)� �� ���
�� ����. �� � �� �� � � � ��� �� � �� ��
��. � �� � � IBM.AgFileSystem ��� �� � ����� �
� ���� ���. ��� � �� ��� ���.
Vfs ��
��� ���� � ��� � � ���� � Vfs �� ��� ��
���.
DeviceName ��
�� � ��(�: /dev/fslv03)� �� �� � DeviceName ��
��� �����.
MountPoint ��
�� ��� ���� ���� � MountPoint �� ��� �����.
NodeNameList ��
NodeNameList �� �� IBM.AgFileSystem ��� �� ��� �
� ���� �� � ���. ��� �� ��, ���� �� RM
� ��� � � �� �� ��� ��(��) ��� ����� ���
��. � ��� �� ��� �� �� �� �� ���� �� �
� �����. �� �� �� ����� � ���� �� ����
� � � �� � �� ��� �����. � ��� �� � �� ��
��� ���� �� ���� ���� �� ���� �����, ��
� �� �� � � ��� �����. � ��� �� � ��� ��
�� � ���, � �� ��� �� ����� �� � ��� �� �
� ���� �� � ����. �� ��� ��(�: ResourceType=0),
�� � � �� �� �� � ����. �� ��� �� ����
� ��, �� �� �� ����� � ��� � ID �� ��
� ���� RMC� �� �� �����. �� ��� �� � ��
� chrsrc �� ���� � � ����. �� ��� �� � ��
� ����� ��� ��� ������.
ResourceType ��
��� ���� ���� ���� � ResourceType �� ��� ��
���. �� � 0 �� ��� ���� 1 � ��� �����. �
IBM.AgFileSystem ��� �� � ��� ���� � ��, ��� �
����.
270 ��� � ��� ���
ProtectionMode ��
ProtectionMode �� ��� ���� ��� ��� ��� �����.
��� �� ��, IBM.ConfigRM ��� �� �� �� ���� �
����. (� ��� �� ��� �� 167 ���� � 9 � ��� ��
– �� ���� �����.) � �� �� � 0(��� ��) �� 1(�
)� ���� ��� ��� �����.
PreOnlineMethod ��
� � ���� ���� �� ���� � ��� �� � ���
� � fsck �� ����� � � ��, ��� �� fsck �� ���
�� ��� �����. ��� �� RSCT �� ���, 6� ���� �
� ��� �� � ��� �����.
Force ��
� � DeviceName �� �� ���� IBM.AgFileSystem ��� � �
� ���� Force=1� ������. �� � ��� ���� �� �
��� �� �� �����. ���� ���� �� ����� �� �
��� � ����(NFS� ��) Force ��� ��� ����.
OpState ��
� � �� ��� � �� ���� �� ���� ��� �� �� �
�� �����. � ��� �� �� � ���(� 1) � ����(� 2)
��, �� ��� ���� ������ �� ��� � ���.
� 12 � RSCT ���� �� ��� �� ��� 271
272 ��� � ��� ���
� 13 � Windows �� System Automation forMultiplatforms: ��� � ��
� ���� Windows �� System Automation for Multiplatforms� �� ���
�� � ��� �����. � ��� �� AIX, Solaris � Linux �� ��
System Automation for Multiplatforms� ���� �� ��� ���, �� ��
� �� ��� ���� �� �� �����.
Windows ��� �� System Automation for Multiplatforms ��
�� ��� �� � ��, Windows �� �� System Automation for
Multiplatforms� �� � �� UNIX Administrator ��� ����.
SA for Multiplatforms� ��
� ���� �� ���� Tivoli SA MP Base � �����. � �
�� ��� �����.
v Documentation
� � � ��� �� ��� ��� ������ �����. PDF � � �
��� "PDF �"� ���� �� ���� ���. Documentation �
��� � �� �� ������ �� ������.
v �� ��� ��� - cfgsamadapter
System Automation for Multiplatforms ��� ���� ���� ��� �� �
���� ������.
v IBM Tivoli System Automation – �
�� Windows�� RSCT � System Automation for Multiplatforms� �� �
��� �� ���� �� � ��������.
v ��� �� � – lssam
���� ��� ��� ���, � ����� ���� �� �� �� �
� � � ��� � �� � ����. lssam -top ��� SA MP ��
�����.
v SA MP ��
�� � System Automation for Multiplatforms ��� �� ��� ����
��� � � �� �����.
© Copyright IBM Corp. 2006, 2008 273
v SA for Multiplatforms �� ��
��� � ���� �����.
IBM Tivoli System Automation Shell� �� ��
�� RSCT � System Automation for Multiplatforms �� � ���� �
� > �� ���� > SA for Multiplatforms � �� IBM Tivoli System
Automation –� ���� ���� ���. RSCT �� System Automation for
Multiplatforms � �� Windows � ���� �� �� � ��, Windows
�� �� ���� �� �� ����.
� IBM Tivoli System Automation Shell Windows ��� "UNIX �� �
����� ����" �� ��� Korn Shell ����� ���� ���. �
�� /etc/profile.lcl �� <user_home>/.kshrc � � ��� (�� ��, �
�� �� ���� ���) ��� ��� �� � ����.
���� ��� ���� �� ��� � ���� ��� ��� ��� � �
���. ���� �� ��� �� RSCT �� System Automation for
Multiplatforms �� �� � ����.
����� �� �� �� � �� ��� �� � ����.
v �� Windows ��� ����� IBM Tivoli System Automation Shell� �
���.
v “�� �� �”� ���� PC�� ��� �, IBM Tivoli System Automation
Shell� ����.
v SUA telnet �� rsh �� ����� ��� ��(IBM Tivoli System Automation
for Multiplatforms � � �� ���� � �) telnet �� rsh� ����
��� ���� �� �� ��� � ����. � ���� Windows Server
2003� � System Automation for Multiplatforms�� �����.
�� ���� �� �� ��������
�� � ���� �� ���� ���� ��(���) �� ��(�����)
�����. � �� �� �� ���� ����. �� �� ��� �� ��
� ����, � ���� �� ��� ��� �� � �� ��� ��� ���
�. �� RSCT �� �� ���� ��� ��� ��� � ����. �� �
��� � ���� �� �� � �� ���(Resource Managers)�� ����
�. Windows��� System Automation for Multiplatforms� �� ���
IBM.Application� ���� �� �� � � �� � ��� � ����.
v SUA �����(2�)
v SUA � ����
274 ��� � ��� ���
v Windows �����(EXE)
v Windows �� �
v Visual Basic ����
v Windows ���
v �� � �� ��
IBM.Application
�� SUA ������ � � ���� ���: SUA ���� � � ����
(.sh � .ksh) ��� ����� ��� � 2� ����� �� �� �
���� ���� IBM.Application �� ���� ���� ��� � ����. �
�� AIX, Solaris � Linux ���� � ��� �� � ���, ����
�� ��� ����.
Windows ������ ���(2 ): SUA ������ runwin32 � Win32
���� �� � �� �� � ��� ���. /usr/contrib/win32/bin �
�����, ���� Windows �� ����(�: Windows Server 2003�
%SystemRoot%\system32 �� Windows Server 2008� %SystemRoot%\
System32)� ��� �� � Windows ���� � cmd.exe �� �� �
� �� �� �� � ���� ���� �����.
� � ���� �� SUA �� �� /usr/contrib/win32/bin�� ����� �
� �� �� �� �� Win32 ���� �� ��� ���� �� ����
�� �� � �� ���� �����.
Win32 �� ����� � � ��� Windows ���� �� �� ��
��, ��� SUA ���� �� � � ����. IBM.Application �
� ���� �� Windows �����(.exe)� �� � ����. � ���
�� �� �� � ����� Windows �� � � ���� �� � ��, �
� �� �� � ���� � �� � ����.
Win32 GUI �����(�: ���)� ��� � ��� ��� ��� ����
�� ����� ���� ����.
Windows � �� ���: IBM.Application �� ���� Windows �� �
(.bat)� ���� ��, �� � ����� Windows ������ �� � �
���. � Windows �� � ���� cmd.exe� �� ���� ��� ��/
�� � ���� ��� � �� � � �� � ����. � ��� �� �
��� �� ��� ���� �� �� � Tivoli System Automation for
Multiplatforms� ���� ���. �� � �� ���� �� <RC> �� �
� 13 � Windows �� System Automation for Multiplatforms: ��� � �� � 275
�� ��� ���. �� �� /b ��� �� � ERRORLEVEL ��
�� ���� � ��� ����� ���, UNIX �� ������ ���
�� � ����� ���� ����.
��:
StartCommand "cmd.exe /C XYZStart.bat"StopCommand = "cmd.exe /C XYZStop.bat"MonitorCommand = "cmd.exe /C XYZMonitor.bat"
Visual Basic ���� ���: Windows ��� � ���� ���� Visual
Basic ����(VBScripts)� ���� �����. Windows � �, cscript �
���� ���� Interix� �� Kornshell�� � ����� �� � ����.
�� Windows �� ��� � ����� �� ��� �� �� �� ��
������ �� ��� �� �������.
sExitCode = InputBox ( "Enter Exit Code (0 - 255)", "Script", "0")If Not IsNumeric(sExitCode) Then sExitCode = 0WScript.Quit(sExitCode Mod 255)
cscript� � ����� ��� � %ERRORLEVEL% �� � �� Kornshell�
$? �� �� ���� ���� ��� �� � ���� � ����.
��:
StartCommand "cscript XYZStart.vbs"StopCommand = "cscript XYZStop.vbs"MonitorCommand = "cscript XYZMonitor.vbs"
��� ��� ��� �����.
http://.microsoft.com/technet/interopmigration/unix/sfu/runwin32.mspx
Windows ��� ���: Windows �� ��� � ����� ���� �
���, Windows ��� ����� �����. ��� �� � ����� ��
�� �� � ������ ����, �� �� ��� �� � � ���
��� �� ������ �����. Windows ��� ����� �� � ���
, � ������ �� ��/�� �� � �� ��� Windows ��� ��
�� �� ���� ��� ���� ���.
� ���� Tivoli System Automation for Multiplatforms�� �� � ��� �
� �� samservice ����� �����. � ����� �� � ���� �
� � ����.
v �� ��� ���� Windows ��� ���� ������.
– �� �� ��� �� �� ��
– ���� �� �� �� �� �
276 ��� � ��� ���
v Windows ��� ���� �� � Tivoli System Automation for
Multiplatforms� �� �� � ��
v Windows ��� ����� �� ��
samservice ����� IBM.Application ���� ��� ���� �� �� � �
���. �� ��� �� ��/�� � ���� �� �� � ����� ���
� �� �����. samservice ����� Windows� System Automation for
Multiplatforms �� ���� �����.
�: samservice� ���� Windows ���� ��� �� �� Windows ���
� Windows ��� ����� ���� ���� ��� ���.
��:
StartCommand "samservice –start XYZ"StopCommand = "samservice –stop XYZ"MonitorCommand = "samservice –monitor XYZ"
Windows �� ���: Microsoft Windows �� � � ��(�: ��
���)� ���� � ��� �� ���� �����. � �� ��� �
� ����� ��� ��� ��� � ����� ����� Windows ��� �
�� ���� �� � ����.
�� ���� �� �� �� �� ���� ���� �����. � ����
� ����� ��� ���� �� � �� ��� ��� � ��� ����
� �� � ����. Windows ��� �� ��� ��� �����(�� ��
��� ��� ������ ���) � �� �� “diskpart.exe”� ��� ��,
��� � ��� ���� � �� � ����. diskpart.exe� ��� � �
�, ���, ��� � �� �� �� ��� � �� ��� �� �����.
diskpart.exe� ���� �� �� ��� �� �� �� �� ���� �� �
� ��� � �� ���.
��:
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 0 Spanned NTFS Spanned 202 MB HealthyVolume 1 D BRMSCD2FRE_ CDFS CD-ROM 122 MB HealthyVolume 2 C NTFS Partition 4087 MB Healthy SystemVolume 3 E SUA NTFS Partition 8189 MB Healthy
DISKPART> select volume 0
Volume 0 is the selected volume.
DISKPART> detail volume
� 13 � Windows �� System Automation for Multiplatforms: ��� � �� � 277
Disk ### Status Size Free Dyn Gpt-------- ---------- ------- ------- --- ---
* Disk 2 Online 101 MB 394 KB *Disk 3 Online 101 MB 378 KB *
Readonly : NoHidden : NoNo Default Drive Letter: YesShadow Copy : No
�� “assign”� diskpart.exe � ��� ����� � ��� � ����.
��� �� ����� ��� � ����� ������.
DISKPART> assign mount=C:\test
DiskPart successfully assigned the drive letter or mount point.
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 0 Spanned NTFS Spanned 202 MB HealthyC:\test\
Volume 1 D BRMSCD2FRE_ CDFS CD-ROM 122 MB HealthyVolume 2 C NTFS Partition 4087 MB Healthy SystemVolume 3 E SUA NTFS Partition 8189 MB Healthy
�� “remove”� diskpart.exe � ��� ��� ���� � ��� � ���
�.
DISKPART> remove mount=C:\test
DiskPart successfully removed the drive letter or mount point.DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 0 Spanned NTFS Spanned 202 MB HealthyVolume 1 D BRMSCD2FRE_ CDFS CD-ROM 122 MB HealthyVolume 2 C NTFS Partition 4087 MB Healthy SystemVolume 3 E SUA NTFS Partition 8189 MB Healthy
Windows �� �� ���: Windows �� “�� ��” ���� �� �
�� � �� ��� �� �� ����� �����. �� ���(�: ��) �
� Windows (�: �� ���� ��)� ��� � ����. � �� ��
UNC(Universal Naming Convention)� ���� �����.
�� �� �� ��: \\computername\resourcename
Windows �� �� UNC �� ������ UNC �� ��� ��
� ���� �� ��� ��� � ����. “net.exe use” � �� ���
��� ��� ���� � ��� � ����.
��: “net.exe use X: \\server\res”� “server” ��� �� �� “res”� ���
� “X”� �����.
278 ��� � ��� ���
NFS �� ���: UNIX �� ������ ����� � Windows ��
NFS �� ��� �����. NFS ��� “mount” �� ���� ���
� �� “umount” �� ���� ��� �� � ����.
IBM.ServiceIP
Windows�� ��� IP �� �� � ��� �� ��� AIX, Solaris � Linux
� �� � ����� �� �����. � � ��� �� ���� ���
��� “�” ��� �� � ����. Windows�� � ���� ��� ��
ID� �� ���� ������ ���� � �����. ��� ���� ���
�� � �� ID “eth0” �� “en0” �� �� ����� � �����.
> lsrsrc IBM.NetworkInterfaceResource Persistent Attributes for IBM.NetworkInterfaceresource 1:
Name = "F8A5F7C5-68C9-4F39-8779-4AFA80385145"DeviceName = ""IPAddress = "9.152.23.169"SubnetMask = "255.255.252.0"Subnet = "9.152.20.0"CommGroup = "CG1"HeartbeatActive = 1Aliases = {}DeviceSubType = 0LogicalID = 0NetworkID = 0NetworkID64 = 0PortID = 0HardwareAddress = ""DevicePathName = "Local Area Connection"ActivePeerDomain = "Domain1"NodeNameList = {"SAXBOPT10C"}
IBM.NetworkInterface ���� “DevicePathName” � Windows “����
��” ���� �� � �� ����� �� �����. � � IBM.ServiceIP
�� ��� ���� �� ���� ������ ���� � ��� ���.
IP �� ����: System Automation for Multiplatforms�� ���� ��
�� �� Windows Server 2003 � Windows Server 2008 IP ��� ���
� ������ ���� � ��� �����. �� �� IP ��� �� IP ���
����� �� �� �� �� ��� ���� ������ ���� ����
�. �, IBM.ServiceIP ��� ���� �� IP ��� �� ���� �� IP
�����. Windows Server 2003 � Windows Server 2008� ��, �� IP ��
� ���� �� � �� IP ��� ��� �� ����. �, IBM.ServiceIP �
�� ���� �� IP ��� Windows �� ���� ���� ������ �
� �� IP ��� ����� � ���.
Windows Server 2003 � Windows Server 2008�� IP ��� ���� ����
�� ����� � �� ��� �� �� �� �����. System Automation
� 13 � Windows �� System Automation for Multiplatforms: ��� � �� � 279
for Multiplatforms� ���� ������ �� �� IP ��� ��� ��
� ��, � ���� ������ �� �� IP ��� �� � �� IP ���
�����. �� IP ��� System Automation for Multiplatforms�� ���� �
����� �� IBM.NetworkInterface ��� ���� � �����. Windows �
� �� �� ″�″ IP ��� � �� IP ��� �����
IBM.NetworkInterface ��� ���� ������ ���� � �� ″�″ IP �
�� �����. ″�″ � ″��� �″ IP ��� ���� 4�� ��� ��
���� �� IP ��� ����.
�: IP �� 192.168.0.11 192.168.0.100� �� ���� ������ ���� �
���. �� � � �� � �� IP ��� � �� �� �� IP ��� � �
� ��� �� ��� IP �� 192.168.0.11� 192.168.0.100�� ����. ���
��� IP �� 192.168.0.11� ���� ������ � IP ��, � �� IP �
����. IP �� 192.168.0.11� ���� ������ �� IBM.NetworkInterface
��� �����.
�� ″�″ IP ���� ″�″ ���� ������ � IP ��� ����� �
� ″�″ IP ��� ��� ���� ������ �� IP ��� ����. �
, IBM.ServiceIP ��� ���� ��� IP ��� �� ″�″ IP ���� �
��, � IP ��� ��� �� IP ��� ���. � IP ��� ���� �����
� �� IP ��� � � ��� System Automation for Multiplatforms� ��
���� �� IBM.NetworkInterface �� ����. ��� �� IP ��� �
� IP ��� ���� �� ��, IBM.NetworkInterface� � �� ���� ��
��� �� �� �� ��� ���� �� ���� ����.
�: IP �� 192.168.0.11 192.168.0.100� �� ���� ������ ���� �
���. IP �� 192.168.0.11� ���� ������ � IP ��, � �� IP �
����. IBM.ServiceIP ��� ����� ���� � IP �� 10.0.0.1� ���
� ������ �����. IP �� 10.0.0.1 ��� � IP ���� �� IP �
�� ���. System Automation for Multiplatforms� � �� ���� �� �
� ���� ������ IBM.NetworkInterface ��� �����.
��: Windows Server 2003 � Windows Server 2008��� IP ��� ����
� ����� �� ���� ������ �� IP ��� ������ ″�″ IP �
�� ��� ����. ��� � IBM.ServiceIP ��� ��� �����. ��
� ���� ���� ������ ″�″ IP ��� �� �� �� System
Automation for Multiplatforms ��� ��� ��� ��� �� � ����.
�� IP ��: Windows Server 2003 � Windows Server 2008 �� IP ���
�����. � IP ��� ���(�� �� IP ��� ���) � � ���� �
����� �� ���� ��(�, ���)�� IP ��� � �� ��� ���
280 ��� � ��� ���
� ��� �����. � IP ��� ���� ��� �� ��� �� �����
��. ��� IP ��� �� � Windows ��� �� �� IP ��� ����
�.
IBM.ServiceIP ��� ���� IP ��� ���� ������ �� � Windows
��� �� �� IP �� ��� �����. IP ��� ���� ��� �
IBM.ServiceIP �� � ��� IP ��� �� ��� �����. System
Automation for Multiplatforms� IBM.ServiceIP ��� ��� ��� ����
�.
��: IBM.ServiceIP ��� ���� ���� ������ �� IP ��� �
��� ������ ���� �� ���� ���� �� ���� ������. �
�� � ��, System Automation for Multiplatforms� IBM.ServiceIP ��� �
�, �� � ���� � ����.
IBM.ServiceIP ��� ���� �� IP ��� ��� ��, � IP ��� ����
���� ���. � �� Windows netsh.exe ��� �����. �� � �
������.
1. �� > �� ���� > �� ���� > �� ����� � ����.
2. netsh.exe interface ipv4 show ipaddresses �� ������.
3. �� IP ��� �� ����� �� ������.
4. netsh.exe interface ipv4 delete address name="<Interface name>"
address="<Duplicate IP address>" �� ������.
5. netsh.exe interface ipv4 show ipaddresses �� ������.
6. �� IP ��� ��� �� ������.
� ����
SRC(System Resource Controller) � � �
SRC(System Resource Controller: �� �� ����)� ��� ���� ���
����, ��� RSCT � Tivoli System Automation for Multiplatforms� ���
�� �� �� �� ����� �����. �� �� � � �� ����� ��
����� ���.
AIX� �� �� System Resource Controller� �� ���� ���� �
� � ��� ���� �� �� � � �� � ��� �����. SRC� ��
� ��� ��� ����� � ���. �� �� ������ ����
���� ����� ���� ���� �����.
SRC� �� � �� � ��� �����.
� 13 � Windows �� System Automation for Multiplatforms: ��� � �� � 281
srcmstr
System Resource Controller� �����.
startsrc
���� �� ���� ��� �����.
stopsrc
���� �� ���� ��� �����.
refresh
����� � �����.
traceon/traceoff
���� �� ��� ��.
lssrc ����� ��� �����.
Windows �� System Resource Controller� �� �� � Windows ���� �
� ���� �����. �� � “System Resource Controller” ��� Windows
��� ���� �� � ����.
RSCT � System Automation for Multiplatforms� �� �� ���� /etc/r2.d
� ���� �� init.d �� ����� ���� �����.
�� 19. ���� � ���� Windows �� �� ��
282 ��� � ��� ���
SRC � RMC �� ��
�� ����� RSCT/RMC� �� ���� ���� �� �� ����.
� ����� Tivoli System Automation for Multiplatforms(�: stoprpnode,
stoprpdomain)� �� ��� �� �� �� ��� ���� ���� ���� �
��.
�� ���� ���� �� � � ������.
1. stopsrc –a� ���� �� ���, � � ��(hats and hags) ����� �
������.
2. lssrc –a� ���� �� ����� ��� �� ������.
3. � ��, lssrc –a �� ��� ��� ���� �� ��� ����� �
� kill -9 �� ������.
4. Windows ��� ����� System Resource Controller� ������.
5. srcmstr ����� �� ps -e -o pid,cmdnam -X unix | grep srcmstr �
� ���� �� �� ��, � �� System Resource Controller ����
� kill -9 �� ������.
6. Windows ��� ����� System Resource Controller� �� ������.
7. rmcctrl -s �� ���� RMC ����� ������.
�� ��� ���� DMS(Dead-Man-Switch)���� ����, � �� � � ��� ����� �� ���� �� ��
��. �� � ��� ��� �� ���� �� ��/� �����, � �
�� ��� � �� � ��� �� ���� ��, ���� �� � ��
� �� �� ���� �� � �� �� ��� � ����.
ConfigRM� �� ��� � ����� ���� ��� ���, ConfigRM,
HATS � HAGS� � ����� ��� �� ��� ��� ���� �
���. � �� RSCT �� �� � ��� ���� � �� � �� �
��� DMS(Dead-Man-Switch)� �����. ���� � (process starvation) �
� � ��(dead locks)� �� � � ����. DMS� �� �� �� ���
� �� ���. ���� ��� � ��� � ���� ��� �� ��
��� � ��� �� ��� ������.
Linux ���� � �� “reboot” �� “halt” �� �� � “Softdog” ���
���� �����. Solaris � AIX��� ��� ��� haDMS� � ���
�����. Windows��� ��� ��� ibmhadms.sys� �����. ��
�� � ��� �� � ����.
v � � �� �� ��
� 13 � Windows �� System Automation for Multiplatforms: ��� � �� � 283
v ���� ����� � �� �� ��(Dead-Man-Switch)
��� ���� �� � �� ���� Windows ��� �� ��
�� � ��� BSOD(“Blue Screen of Death”)� �����. � ���
UNIX � Linux ��� �� “halt” ��� �����.
�� �� �� �
��� �� �������� � ��� �� �� ��, ConfigRM ���
���� �� �� �����. AIX, Solaris � Linux�� � ���
“CritRsctProtMethod” ��� �� ��� � �� 6��� �� � �� ���
����. Windows��� System Automation for Multiplatforms��� � ��
� ibmhadms.sys ��� ���� �� � ����.
��� BSOD�� ����� �� � �� � �� ��� �� �� �
“�� � ��” �� �� ��� �� � ����. �� Windows ��� �� >
“��” � > “�� � ��” � > ���� �� � ����. ��� ��
��� � ���� ���� ���� ���.
Windows��� System Automation for Multiplatforms� ��, �� �� ��
�� ����.
� 25. �� �� �� �� ��
��
Windows��� System
Automation for
Multiplatforms
� �� � �� �� ��
(���)
1 BSOD �� � �� �� �
�� “�� ��”� �����.
�� �� �� 2
� �� � ��� �� ��
��
3 ���� �� – �� � 1 � 2
� � ��� �����.
��� �� 4
�� ��. �� � �� � 5 ���
RSCT ���� �� � ��
��
6 ���
Windows �� �� �� ��� BSOD� ��� � ���� �� �����.
284 ��� � ��� ���
Windows��� System Automation for Multiplatforms�� �� ���
����
SAMSERVICE ����
� ����� Windows ���� � ��, �� � ����� �� �� � �
���. �� Windows ��� ��� ����� ����, �� ��� ���,
RSCT �� ��� � � ��� �����. samservice� � �� �� �� �
� �� Windows ��� ���� �� �� �� �� �� �����. ��
�� samservice ����� �� �� �� � �� ��, Windows ��� ��
��� ���� �� �� �� �� ���� � �� �������.
�� 20. �� ��� BSOD �� � �� ����� �
� 13 � Windows �� System Automation for Multiplatforms: ��� � �� � 285
Windows��� System Automation for Multiplatforms� �� ����
����
���� �� ���� AIX, Solaris � Linux��� �� � ��� Windows�
�� �� � ����. �� IBM.Application ��� �� �� ����� ��
�� ��(���)� ���� � ������ �����.
286 ��� � ��� ���
� A. ���� ���� ��
���� ���� �� �� �� �� ��� ���� ���.
v �� ��� �� ��� � ���� ���� ��� � �� ��� ��� �
��� ���� �� �(RSCT)� ��� ���� ���� ���� ��
v ���� ��� ������ IT ���� ���� IP ��(ServiceIP��� �)
� ���� ���� ���� IT ���� ��
� � �� ������ ���� � �� �����, �� ��� ���
��� �� �� �� ����. �� ��� ��� �� ����.
���� ���� �� �� � ���
� � ���� ����� ���� ���� � ��� �� �� ��� ��, �
��� ����� �� ��� � ��� � � �� � �� ��� �����.
���� �� �� ���� ��� ��� ��
���� �� �� ���� ��� �� ��� � ���� ������
����� ��� � ����. �� � ���� ����� �� �����
� � ���� ��� �� � ���, ″��″ ������ ���� �� �
��� � �� �� ����. �� Linux ���� �����.
�� 21. ���� ���� � � ���
© Copyright IBM Corp. 2006, 2008 287
�� � �� ���� ���� �� ��� ��� �����. �� ��
� � ���� � �� � ���� � ���. � ����� lnxcm1 �
� eth1 ���� �����. eth1 �� ��� � �� �����, �� �
� � ���� �����(eth0)� ��� � ����� ���� �� � ��
��.
� ���� ���� �� �� ����� ���� � ��� ��� ���
� �� �� � �� ��� ���. � � ����� �� �� ��� ��
(� ��)� ��"��, ��� � �� ��� ��� �� �� � �
�� ���� � �� �� ����.
���� ���� �� �� ���� ��
���� ���� �� ���� �� �� ��� ������.
1. �� ��� ���� ����� ��� ? � �� �� � ������
� � ������ ServiceIP� ���� �� ��� ? ��, �� ��
�� �� �� ������ �� � �� ���� �� ��� ?
2. �� IP ���� �� � ��� �� �� ���� �� �� ����
�� ?
3. ���� � ����� ���� �� ��� ���� ��� �� ��
� ���� ���� ��/�� � ��� ?
4. ��� ���� ���� ��� ���� ?
5. ���� ��� �� �� �� ���� ?
6. �� ��� ���� �� ����� ���� ?
7. �� ��� ��� ��� ?
�� ��� �� �� �� � �� � � � ��� � �� ���� �
��� ��� ��� � � ����.
�� �� � 2-�� ������ ���� ���� �� �
� � �� 2-� ����� �� �� ��, ���� ����� ��� ��
�� �� �� ��� ����. ���� ������ ���� ����� �
���� ������ ����� ���. 2-� ���� � � ��� � ���
��� ���� ��, � �� ������ � ���� ��� �� ���
��� ������ �����.
�� � ��� ���� ���� ��� ���� ����� ����� ���
� ������ ���� ���. �� �!(Best Practice)� ������ �� �
� ���� �� ������ ���� ����.
� ��� �� � � ������.
���� ��
288 ��� � ��� ���
/var/ct/cfg/netmon.cf
� � � � �� �� � �� �� ���� ����� IP ��� ����
���. IP ��� ��� 10�� ��� ���� ���.
�� netmon.cf � � �����.
#This is default gateway for all interfaces in the subnet 192.168.1.0192.168.1.1
# This is default gateway for all interfaces in the subnet 192.168.2.0gw.de.ibm.com
zVM �� Linux on zSeries�� � � �� ����
�� � netmon.cf � �� ���, zVM ���� Linux on zSeries �� IBM
Tivoli System Automation for Multiplatforms� �� � ��� �� �� ��
� �� ������ ��� �����. RSCT �� �� ��� � ���
� ����� ���� �� ��� � ��� ����� ping� �����. �
��� � � ����� ping� ��� ���� ����� ���� ���
�� ���� ��� ���� ����(�� �� ��� � ����� ping�
����� ��� �� ��� � ��). � �� netmon.cf � � �� � �
� ��� ��� �� ���� ��� ����. �� ��, ���� ��
� ��� � ���� ����� ���� �� �����. �� ���� �
���� ping� �� ���� ���� ���� ��� zVM ���� �� �
� �� ��� ��� ��� ���. �� zVM� ���� � ���� ��
��(� IP ���� � �����)�� �� �� �� �� ��� � ���
�� ping �� �� ��� �����. � �, �� ��� �� ��� ��
VM ��� �� �� zVM� ��� � � ping� �����. � zVM
��� �� �� ��� ��� �� �� � ping �� z/VM ��� ���
���� � ����.
��� ����� ��� �� �� �� ��� �� �����.
v ����� �� �� ��� ������.
# lscomg
v �� �� ��� �� ������ ����.
# chcomg -x b <communication group> ...
��:
chcomg -x b CG1
v �� lscomg �� ���� ������ ���� � ����.
���� ��
�� A. ���� ���� � 289
2-�� ����, � ��� �� ��� ���� �
�� ���� �� �����.
�� �� ���� IP
���� � lnxcm1 eth0 9.152.172.1/24
���� � lnxcm2 eth0 9.152.172.2/24
��� gw eth0 9.152.172.254/24
ServiceIP – – 9.152.172.3/24
� ��� ���� �� � ���� IT ���� ����� � � �� ��
9.152.172.0 ����� �����.
���� ServiceIP� lnxcm1 ����� eth0 �� lnxcm2 ����� eth0 � �
�� �� � ����. � ������ ���, ���� ServiceIP� �� �
� �����. ��� ���� ServiceIP� �� �� ���� ������ ��
�� �� Policy� �����.
� ��� � ���� ������ ��� 167 ���� � 9 � ��� �� –
�� ���� � �� ����� �� ���� �� ���� �����. 291
���� �� 23�� �� � �� ��� ���� ��, �� ���� ���
� � �� � �� �� �����. ��� lnxcm1 �� ��, ����
lnxcm1�� ServiceIP� �� ��� ���� ������ �! �� ����.
�� 22. 2�� �, 1�� �����
���� ��
290 ��� � ��� ���
� ���� ���� 9.152.172.0 �� �� ��� �����.
1. ���� IT ���� �� ���� ��
2. �� ���� ��� ���
� System Automation for Multiplatforms Policy:
lnxcm1# mkequ NetInt IBM.NetworkInterface:eth0:lnxcm1,eth0:lnxcm2lnxcm1# mkrsrc IBM.ServiceIP Name="SIP"IPAddress="9.152.172.3"NetMask="255.255.255.0"NodeNameList="{’lnxcm1’,’lnxcm2’}"lnxcm1# mkrg rglnxcm1# addrgmbr -g rg IBM.ServiceIP:SIPlnxcm1# mkrel -p dependson -S IBM.ServiceIP:SIP -G IBM.Equivalency:NetInt
�� ��
�� �� �����. � �� ����� �� ����� ����.
�� ���� ���� ���. ServiceIP� � ��� �����.
�� 23. 2�� �, 1�� ����� – ����� ��
���� ��
�� A. ���� ���� � 291
2-�� ����, � ��� 2�� ���� ���� �
� ��� ���� �� � � IP ���� � �� ���� ������ 2
� �� �� � ��� �� � � ���. � IP ��� � �� ���
��� �����. � � ���� ������ 2�� �� � � ���� �� 2
�� ���� ����. � �� ��� ��� ������ ���� ��, �� �
� � �� � ������ ��� � ���� ��� �����.
��� ��� 2�� ����, �� � ServiceIP ��
�� ���� �� ����.
�� �� ���� IP
���� � lnxcm1 eth0
eth1
9.152.172.1/24
192.168.1.1/24
���� � lnxcm2 eth0
eth1
9.152.172.2/24
192.168.1.2/24
��� gw eth0 9.152.172.254/24
ServiceIP - – 9.152.172.3/24
���� ����� 2�� ���� 192.168.1.0 � 9.152.172.0� ����. ���
���� ������ ��� �� ����� ���� ����.
v ���� 9.152.172.0 ���� IT ���� ����� �����.
v ���� 192.168.1.0 ���� �� ��� ���� ������.
�� 24. 2�� �, 2�� �����, 2�� ��� �� ����
���� ��
292 ��� � ��� ���
ServiceIP� ����� ������ ���� �� ��� lnxcm1� ����� eth0
� ��� ���� ServiceIP� � � lnxcm2� ����� eth0�� ���
��. ����� ��� ���� ���� � � �� eth0�� eth1�
ServiceIP� ���� � ������.
� System Automation for Multiplatforms Policy� 291 ���� ���� ��
� ����.
�� ��
��� � ServiceIP� � ��� �����.
���� ��� ��
� �� ����� �� 3�� �� ����, ���� ����� �
ServiceIP ��
����� � � � � � �� ����� �� ServiceIP� ���� ���
� � ���� �� ����. �� � ������ �� �� �� ��
���, ServiceIP� �� �� ����� ����. �� ����(eth0 �� eth1
� ��)� � � �� ��� �����. �� ������ � � �� ��
��� ������. � �� � ������ �� �� ����� ��� �� �
����.
�� ���� �� ����.
�� �� ���� IP
���� � lnxcm1 eth0
eth1
192.168.1.1/24
192.168.2.1/24
���� � lnxcm2 eth0
eth1
192.168.1.2/24
192.168.2.2/24
��� gw eth0 9.152.172.254/24
ServiceIP - – 9.152.172.3/24
���� ��
�� A. ���� ���� � 293
v ���� 9.152.172.0 ���� IT ���� ����� �����.
v ���� 192.168.1.0 � �� ���� �� �� ����� �����.
v ���� 192.168.2.0 �� ���� �� �� ����� �����.
� System Automation for Multiplatforms Policy:
lnxcm1# mkequ NetIntIBM.NetworkInterface:eth0:lnxcm1,eth1:lnxcm1,eth0:lnxcm2,eth1:lnxcm2lnxcm1# mkrsrc IBM.ServiceIP Name="SIP" IPAddress="9.152.172.3"NetMask="255.255.255.0" NodeNameList="{’lnxcm1’,’lnxcm2’}"lnxcm1# mkrg rglnxcm1# addrgmbr -g rg IBM.ServiceIP:SIPlnxcm1# mkrel -p dependson -S IBM.ServiceIP:SIP -G IBM.Equivalency:NetInt
�� ��
�� �����. 1�� �� ����� 3�� �� ����� ��
��.
���� ��� ���� ����. 1�� �� ��� 3� ����� ���� ���
�.
ServiceIP� ������ � �� �� � �
���.
��� ��� 2�� ����, � �� � VIPA
� �� �� ��� � � ���� ��� �� ����. ���� ServiceIP
� ���� �� � �� �� ����� �����. �� ���� � � �
����� � �� ServiceIP� ���� ��� ��� �����.
�� 25. 2�� �, 2�� �����, 1�� �� ����
���� ��
294 ��� � ��� ���
�� ���� �� ����.
�� �� ���� IP
���� � lnxcm1 eth0
eth1
9.152.170.1/24
9.152.171.1/24
���� � lnxcm2 eth0
eth1
9.152.170.2/24
9.152.171.2/24
��� gw eth0
eth1
9.152.170.254/24
9.152.171.254/24
ServiceIP - – 9.152.172.3/24
�� ��
�� ���� ���� �� ���� ����. �� �����.
��� ���(IP ��)� �� �� �� �
� ��
� ��� ����.
����� �� ServiceIP� �� �� ���
�.
�� ���� �� ���� �� ���, ��
���� � ��� ���� ���.
�����
�� �� �� ���� ������ ��� �� ���� ���� � ���
�(bonded) ����. �� ��� �� �� ��� ���� � ��� ���
� ���. ���� ����� ��� ���� � �� �� ��� ���
��. ����(HA) ��� ����, ���� ����� �� �� ���� �
� ����� �� �� ���� ����� ����.
�� 26. ��� �� 2�� ����, � �� � VIPA
���� ��
�� A. ���� ���� � 295
�� ���� �� ����.
�� �� ���� IP
���� � lnxcm1 eth0
eth1
9.152.172.1/24
9.152.172.1/24
���� � lnxcm2 eth0
eth1
9.152.172.2/24
9.152.172.2/24
��� gw eth0 9.152.172.254/24
ServiceIP - - 9.152.172.3/24
�� ��
�� �����. �� ��� ����� ��� ���� ���.
���� ��� ���� ����. ���� ����� ���� ����� �� �
�(�: MII �� ����)� ���� �� �
���.
� �� ��� �� ServiceIP� �� �
� ����.
ServiceIP9.152.172.3
gw
eth09.152.172.254
eth09.152.172.2
eth19.152.172.2
eth19.152.172.1
bond09.152.172.1
bond09.152.172.2
eth09.152.172.1
lxcm1 lxcm2
9.152.172.0
�� 27. 1�� �� ���� ���� � �� ���� �����
���� ��
296 ��� � ��� ���
� B. ��� ��
� ��� ���� IBM Tivoli System Automation for Multiplatforms �� ��
�� � �� ���� ������.
�� System Automation for Multiplatforms �� � ��� ��
� ��� �� ��� ���� ����.
v 298 ���� ���� �� ��
� ��� System Automation� �� ��� ����.
v 299 ���� ���� �� ��� ���� ��
� ��� ���� ��� �� � �� ��� �� ��� �� � �� �
� ������.
v 309 ���� ��� ��
� ��� � �� ����� ���� System Automation� ���� ��
� ���� ���� �� �� ������. �� ��� �� ����.
– 309 ���� �OpState� ���� ��� ���
– 310 ���� �OpState� ���� ��� �� ���
– 312 ���� �StartCommand ����
– 313 ���� �StopCommand ����
– 313 ���� �MonitorCommand �� ��
v 314 ���� ���� ��
� ��� � ��� ����� ���� ��� �� ���� ����
�� System Automation �� ���� ��� ������. �� ����
�� ����.
– 314 ���� ���� ���� ���
– 316 ���� ��� ��� ���� ���
– 316 ���� ���� ���� ���
– 317 ���� ��� ��� ���� ���
– 317 ���� ��� �� � �� �� ��� ���� ���
– 318 ���� ��� ����� ��� � �� �� ��� ���� ���
– 320 ���� ������ � � ���
© Copyright IBM Corp. 2006, 2008 297
��� �� ��
� ��� System Automation� �� ��� ����. ��� ��� 93 ��
�� � 7 � �System Automation for Multiplatforms� �� ��� ���� �
�� �����.
��� ���
��� ���� �� �� ��� ���� ����.
��: �� ��� ��� �� ��� ��� �� ��� �� �����
���� � ��� � ��� ���� �� �� �� ���� ���
�� �� ���. � ���� � �� � �, ���� �� ��
� BindingState� �����.
��� BindingState� �� ����.
��� ��
��� ��� �� �������. System Automation� �� �� �
� ��� ���� �����.
����
��� �� ��� ���, � �� � ��� �� ����
�� ��� �� �� ��� �� � System Automation� �� ��
� �����.
�� System Automation� �� ��� �� �����. � ��� �� � �
� �� ���, �� �� � ��� System Automation� �� ���
� ����.
� ��� �� ��� ���� ��� ��� ��, ���� �� ��� ���
��� �����. �� � ��� ���� ��� � �� ��� ���
(Sacrified)�� � �� � ���. �� �� ���� ����.
����: 2-� ������ �RG1� �� �� � R1� ��� ���� �RG2�
�� �� �R2� ��� �����. �R1� �R2�� �����. �� � �
����. � �� �R1�� �����. � �� �� �� �� ��� ���
�� �� �����.
v �RG1� � �RG2�� ����� � ��, �R1� �� ���� ����.
v �RG1�� ����� �� 21(�RG2�� ����� 0)� ��, �R2�� ����
�R2� � �R1�� � ��� �����.
�� : �� � �� ��� ��� �� ������ �� �� � ���
�� � �� ��� ��� �� ���. �� � � �� � ���
Policy� �� �� �� � �� ��� ����� �����.
��� ��
298 ��� � ��� ���
��� �� �� ��
System Automation � ��� � �� ��� �� ��� �������. �
� �� �� �� ����.
DesiredState
System Automation� ��� �� ���� ��� DesiredState�� ��,
�� ����� � � � � ���� � ��� ��� �����.
DesiredState� ��� �� �������.
��� �� ���� � � � NominalState�� ����� ����
��� DesiredState� ��� ���� �� ��� NominalState �� �
� �� ����(� ����� �� ��� ��� 202 ���� ��
� �� � �� ��� �� � ��� �).
ObservedState
ObservedState� ��� �� �����. ��� �� ����� �� ��
MonitorCommand� ���� IBM.Application ���� ��� �� ��
���, �� �� � ��� ����� �����.
System Automation� ��� �� ��� ObservedState �� � DesiredState�
���� ���� ����.
��� �� ��� ���� ��
���� �� ��� � � ��� ��
� ��� System Automation� ���� � RSCT� ��� � � ���
� ���� �� ���� � � ����. � � � � ���� ��� �
� ���� �� � ��� �����. �� ��� ��� �� �� � � �
�����. �� � � �� ��� �� � � ���� � � � ��� � �
�, � � ��� ��� � ����.
��� � � ���� ���� ��� ���� IBM ��� ���� �� ��
� �� �� �� ��� ��� ���� ��� ���� ��� �� ��� ��
�� �� �� � ���� ���� �� ����. �� � ��� �� �
����.
��� � � ���� ���� ctsnap �� ������.
/usr/sbin/rsct/bin/ctsnap
� /tmp ����� �� � � �����.
: ���� ���� ��� ��� ���� ��, �� � ��� ���� ��
�� ��� RecoveryRM �� ��� ���. RecoveryRM �� �
� ���� �� � � ������.
��� ��
�� B. ��� �� 299
1. RecoveryRM ��� ��� �� �� �� ������. � ��� ��
�� �� �� ������.
lssrc –ls IBM.RecoveryRM | grep Master
2. RecoveryRM �� �� � � ������. � ��� ���� ���
��� �� �� ������.
rpttr /var/ct/<domain-name>/log/mc/IBM.RecoveryRM/trace > <output-file-name>
��� ��� �� ��� ��
System Automation� �� ���� RSCT� �� ���� ���� ��� �
� � ��� �� ��� � �����.
v Linux: ���� �� ��� �����(/var/log/messages).
v AIX: �� �� ���� ���� ���� ����. ���� �� ���
�����.
��� ���� ���� /etc/syslog.conf � � �� �� ����� �
��� �� ����. �� ���� ��� ��, refresh –s syslogd �
� ���� syslogd� ����� ���. �� � � ��� /etc/syslog.conf
� ���� ����.
v Solaris: ���� �� ��� �����(/var/adm/messages).
v Windows: ���� /var/adm/log/messages� �����. �� �
/usr/sbin/rsct/bin/fcslogrpt� ���� �� � ����.
�� ��� �� ���� �� ��� �����.
v ����� ��. ��:
Mar 10 13:04:15 node1 RecoveryRM[5482]: (Recorded using libct_ffdc.a cv2):::Error ID: 824....zgK22/WNI/8cU0B....................:::ReferenceID: :::Template ID: 0:::Details File: :::Location:RSCT,IBM.RecoveryRMd.C,1.21.1.2,135 :::RECOVERYRM_INFO_0_STIBM.RecoveryRM daemon has started.
v ����� ��. ��:
Mar 10 13:04:28 node1 RecoveryRM[5482]: (Recorded using libct_ffdc.a cv2):::Error ID: 822....AhK22/osT18cU0B....................:::ReferenceID: :::Template ID: 0:::Details File: :::Location:RSCT,RecoveryRMDaemon.C,1.14,177 :::RECOVERYRM_2621_402_ERIBM.RecoveryRM daemon stopped by SRC command or exiting due to an errorcondition . Error id 0
v ����� ��. ��:
Mar 10 13:04:14 node1 srcmstr: src_error=-9035, errno=0,module=’srchevn.c’@line:’251’, 0513-035 The IBM.RecoveryRM Subsystem endedabnormally. SRC will try and restart it.
v ������� �� ��� �� ���. ��:
��� ��
300 ��� � ��� ���
Mar 9 16:13:07 node1 ConfigRM[31411]: (Recorded using libct_ffdc.a cv2):::Error ID: :::Reference ID: :::Template ID: 0:::DetailsFile: :::Location:RSCT,PeerDomain.C,1.99.11.1,15510 :::CONFIGRM_HASQUORUM_ST Theoperational quorum state of the active peer domain has changed toHAS_QUORUM. In this state, cluster resources may be recovered andcontrolled as needed by management applications.
v IBM.ServiceIP ��� �� � ��. ��:
Mar 8 09:41:08 node1 GblResRM[1886]: (Recorded using libct_ffdc.a cv 2):::ErrorID: :::Reference ID: :::Template ID: 0:::Details File: :::Location:RSCT,ServiceIP.C,1.2.5,1360 :::GBLRESRM_IPONLINE IBM.ServiceIPassigned address on device. IBM.ServiceIP 10.67.78.89 eth1:1
Mar 8 09:42:44 node1 GblResRM[1886]: (Recorded using libct_ffdc.a cv 2):::ErrorID: :::Reference ID: :::Template ID: 0:::Details File: :::Location:RSCT,ServiceIP.C,1.2.5,1434 :::GBLRESRM_IPOFFLINEIBM.ServiceIP removed address. IBM.ServiceIP 10.67.78.89
v IBM.Application ���� ��� �� StartCommand, StopCommand ��
MonitorCommand� ���� � � �����. ��:
Mar 13 10:25:55 node1 GblResRM[24275]: (Recorded using libct_ffdc.a cv2):::Error ID: :::Reference ID: :::Template ID: 0:::Details File: :::Location:RSCT,Application.C,1.2.1,2434 :::GBLRESRM_MONITOR_TIMEOUTIBM.Application monitor command timed out. Resource name resource1
: ���� ���� ��� ��� IBM.Application ��� StartCommand �
StopCommand� ��� ���� �� ����.
System Automation� �� �� � Policy� �� ���� ����� �
��� ��� �� StartCommand � StopCommand� ��� �� ���
� �����. �� � �� ��� NFS ��� �� �� � Policy�
StartCommand� ��� � �� ��� ���� ���� �����.
Mar 13 10:34:31 node1 /usr/sbin/rsct/sapolicies/nfsserver/nfsserverctrl-server:[27230]: NFS server started
�� ��� �� ��� ��
IBM.RecoveryRM �� �� �� ��
IBM.RecoveryRM ��� �� �, �� �� �� ��, �� Policy
� �� �� �� � �� �� ��� � ���� �� ��� ��
�����. ��� �� IBM.RecoveryRM� ��� ��� �� �� �
�� rpttr �� ������.
rpttr /var/ct/<domain_name>/log/mc/IBM.RecoveryRM/trace_summary
��:
�� ��� �� 4�� ��� �� �� ��� ���� 4�� �
�����.
v ���� "A" �� ��� �� �� �� �����.
v �� � ��� �� "RA"� �� �� �� ��� ���.
��� ��
�� B. ��� �� 301
v "A" �� ��� �� �� �� �����.
v �� � ��� �� "RA"� �� �� �� ��� ���.
12:16:20.168613 T(1096711088) _RCD Online request injected: A/ResGroup/IBM.ResourceGroup12:16:20.181285 T(1096711088) _RCD Online Request against RA on node saxb0212:16:35.722675 T(1096711088) _RCD Offline request injected: A/ResGroup/IBM.ResourceGroup12:16:35.727970 T(1096711088) _RCD Offline Request against RA on node saxb02
GblResRM �� �� ��
�� ��� GblResRM �� ��� �� �� �, �� � �� �
� �� ��, ServiceIP ��� �� �� �� ��, ��� �� OpState
�� ���� �� ��� �������. � �� ��� �� �
�� ��� rpttr �� ������.
rpttr /var/ct/<domain_name>/log/mc/IBM.GblResRM/trace_summary
��:
�� ��� ��("appfloata") � IBM.ServiceIP ��("ip")� ��� � �
� ��� ���� � �����.
12:51:08.864796 T(4152898784) _GBD Taking application resource offline: Name=appfloataHandle=0x6028 0xffff 0xff2f99d1 0x13fbb275 0x1046ca5c 0x98691b60
12:51:10.877355 T(4152603872) _GBD Stop command for application resource "appfloata"(handle 0x6028 0xffff 0xff2f99d1 0x13fbb275 0x1046ca5c 0x98691b60)succeeded with exit code 0
12:51:12.888128 T(4150719712) _GBD Monitor detect OpState change for resource Name=appfloataOldOpState=6 NewOpState=2Handle=0x6028 0xffff 0xff2f99d1 0x13fbb275 0x1046ca5c 0x98691b60
12:51:12.961970 T(4152898784) _GBD Resource "ip"(handle 0x6029 0xffff 0xff2f99d1 0x13fbb275 0x1046ca62 0x544260f8):IP address 10.47.77.97 has been successfully taken offlineon network interface "eth0:0"
12:51:12.962272 T(4152898784) _GBD Monitor reports: No network device flagged UPwith IP address 10.47.77.97.Taking resource "ip" (handle 0x6029 0xffff 0xff2f99d10x13fbb275 0x1046ca62 0x544260f8) offline.
�� ��� ��
/var/ct/IBM.RecoveryRM.log � IBM Tivoli System Automation � �
��� ���� � �����. ��� ��� �� �� System Automation �
� �� ��� �����.
��:
User root invoked "chrg -o Online samadapter-rg on Thu Mar 1 16:51:53 CET 2007User root invoked "chrg -o Offline samadapter-rg on Thu Mar 1 17:00:14 CET 2007User root invoked "chrg -o Online samadapter-rg on Thu Mar 1 17:00:20 CET 2007
�� ��� �� ��
�� ��� �� ��� ���� ���� � ���� � �� �� � ��
��� �� ��� ��� ���� � �� � �� ������. �� �
� �� ���� � �� � ���� ���� ���.
�� �� ��� ��� IBM Tivoli System Automation for Multiplatforms �
�� �����.
�� � �� � �� ��� �� ��� ���� � ��� � ����.
��� ��
302 ��� � ��� ���
1. lsrg –Ab –V –g <resource-group-name>
lsrg –Ab � ��� Policy� ���� �� �� ��� �� ��� �
�����. DesiredState, ObservedState � BindingState� ���� �� �
� ��� ����� ���� ��� -V ��� ������. ��� � �
�� ConfigValidity �� �� �� ���� ����� ������
(ConfigValidity ��� �� ��� ��� 230 ���� ���� � � � �
).
� ��� ����� �� ��� �� ���� ��� �����.
node1:~ # lsrg -Ab -V -g rg1Starting to list resource group information.
Displaying Resource Group information:All AttributesFor Resource Group "rg1".
Resource Group 1:Name = rg1MemberLocation = CollocatedPriority = 0AllowedNode = ALLNominalState = OfflineExcludedList = {}Subscription = {}Owner =Description =Instruction =ActivePeerDomain = domain1OpState = OfflineTopGroup = rg1MoveStatus = [None]ConfigValidity =AutomationDetails[CompoundState] = Satisfactory
[DesiredState] = Offline[ObservedState] = Offline[BindingState] = Unbound
[AutomationState] = Internal[StartableState] = Yes
[HealthState] = Not Applicable
� ��� ���� �� ��� �� ���� ��� �����.
node1:~ # lsrg -Ab -V -g rg1Starting to list resource group information.
Displaying Resource Group information:All AttributesFor Resource Group "rg1".
Resource Group 1:Name = rg1MemberLocation = CollocatedPriority = 0AllowedNode = ALL
��� ��
�� B. ��� �� 303
NominalState = OnlineExcludedList = {}Subscription = {}Owner =Description =Instruction =ActivePeerDomain = domain1OpState = OnlineTopGroup = rg1MoveStatus = [None]ConfigValidity =AutomationDetails[CompoundState] = Satisfactory
[DesiredState] = Online[ObservedState] = Online[BindingState] = Bound
[AutomationState] = Internal[StartableState] = Yes
[HealthState] = Not Applicable
2. lsrg –m
� �� �� ��� �� �� ��� �����.
��:
node1:~ # lsrg –m
Displaying Member Resource information:Class:Resource:Node[ManagedResource] Mandatory MemberOf OpState WinSource LocationIBM.ServiceIP:ip1 True rg1 Online Nominal node1IBM.Application:app1 True rg1 Online Nominal node1IBM.Application:app2 True rg2 Offline
3. lssamctrl
lssamctrl � �� ��� ���, �� � �� �� �� �
RetryCount(��� � ���� ���� �� � StartCommand� �� � �
�� ��� ���)� �����.
��:
node1:~ # lssamctrlDisplaying SAM Control information:
SAMControl:TimeOut = 60RetryCount = 3Automation = AutoExcludedNodes = {}ResourceRestartTimeOut = 5ActiveVersion = [2.2.0.1,Thu Jun 14 08:00:09 2007]EnablePublisher = DisabledTraceLevel = 31ActivePolicy = []
4. lsrgreq -L {-m}
��� ��
304 ��� � ��� ���
lsrgreq –L � �� ��� �� �� �� �� � ���. � �
rgreq �� ���� ���� �� �����, �� ���� ��
� ��� ���� �� ���� �����. ��� ��, �� ���
‘Automation’���.
��:
node1:~ # lsrgreq –L
Displaying Resource Group request information:All request informationResourceGroup Priority Action Source NodeList Active UserID MoveStatusrg1 low Start Operator {} Active None
�� -m �� �� ���� ��, �� �� ���� �� �� �� ��
���.
��:
node1:~ # lsrgreq -L –m
Displaying Member Resource request information:All request information
Member Resource 1:Class:Resource:Node[ManagedResource] = IBM.Application:app1Priority = lowAction = StartSource = OperatorActiveStatus = ActiveUserID =
5. lssam
lssam � � ��� �� ��� �� �� ��� �� � ��� ��
���. �� �� ��, �� �� �� ��� �� �� �� �� �
� ��� �����.
��:
� ���� lssam � 'rg1' �� ��� �� ��� ������ � ��
� ���� 'app1' ��� ����� ��� ���� � ��� ���.
node1:~ # lssamOnline IBM.ResourceGroup:rg1 Nominal=Online
|- Online IBM.ServiceIP:ip1|- Online IBM.ServiceIP:ip1:node1’- Offline IBM.ServiceIP:ip1:node2 Node=Excluded
’- Offline IBM.Application:app1 Request=Offline|- Offline IBM.Application:app1:node1’- Offline IBM.Application:app1:node2 Node=Excluded
Offline IBM.ResourceGroup:rg2 Nominal=Offline’- Offline IBM.Application:app2
’- Offline IBM.Application:app2:node2 Node=Excluded
��� ��
�� B. ��� �� 305
�� 'rg1' �� ��� �� ��� ������(Nominal=Online) 'app1'� �
���� ��� �����.
v 'node2' �� �� � ��(Node=Excluded)� ����. �� ��� 'app1'
� ���� �� �� ��� �������.
v 'app1'� �� ���� �� ��� ���(Request=Offline). �� �� �
�� 'node1' ���� �������.
�� �� ��� ��� ��� ����� �� ������.
6. lsequ –Ab
lsequ –Ab � ��� Policy� ���� �� "���" � � ��� �
���� � �����. ��� ��� IBM.ServiceIP � � ��� ��
� � �� ���� ������ ���� � �����.
�� ��� � ��� ConfigValidity �� �� �� ���� �����
������(ConfigValidity ��� �� ��� ��� 230 ���� ���� �
� � �).
��:
node1:~ # lsequ –AbDisplaying Equivalency information:All Attributes
Equivalency 1:Name = eq1MemberClass = IBM.NetworkInterfaceResource:Node[Membership] = {eth0:node1,eth0:node2}SelectString = ""SelectFromPolicy = ANYMinimumNecessary = 1Subscription[Consumer,...] = {[EEZ,All,None]}ActivePeerDomain = domain1Resource:Node[ValidSelectResources] = {eth0:node1,eth0:node2}Resource:Node[InvalidResources] = {}ConfigValidity =AutomationDetails[CompoundState] = Undefined
� � SelectString� ���� ��, Resource:Node[ValidSelectResources] �
� ��� ���� ���. � ��, ��� ��� OpState� ���� ��
�.
# lsrsrc IBM.<MemberClass-attribute-value> Name NodeNameList OpState
7. lsrel –Ab
lsrel –Ab � ��� Policy� ���� �� � � � ���� � ��
���.
��:
��� ��
306 ��� � ��� ���
node1:~ # lsrel –AbDisplaying Managed Relationship Information:All Attributes
Managed Relationship 1:Class:Resource:Node[Source] = IBM.Application:app1Class:Resource:Node[Target] = {IBM.Application:app2}Relationship = StartAfterConditional = NoConditionName = app1_StartAfter_app2ActivePeerDomain = domain1ConfigValidity =
��� � ��� � � ���� ����(�� ��, � � Source �
Target� � ����� �), ConfigValidity �� �� �� ���� ���
�� ������(ConfigValidity ��� �� ��� ��� 230 ���� ��
�� � � � �).
8. lsrsrc -A d -c IBM.CHARMControl
� � CHARMControl ���� �� ��(��� � ��� ���)� �
����. � �� ��� � �� �(�� 1�)� �����. �� �� �
� � � � ��� ���� ���� ��� ���� � �� ����. �
���� ��� � �� �� 0�� ��� ���� �� �� �����.
RecoveryRM� ����� �� ���� ���(System Automation for
Multiplatforms 2.3 ��� ����� ��) �� ��� ���� ��� ��
� ����. �� ��, ���� �� ��� � � �� ���� ��
���. � � � � ����� ��� stopsrc � startsrc ��� ��
��� RecoveryRM� �� �� ����� ���� �� � ����.
9. samdiag(��)
samdiag � �� ��� �� ��� �� ��� ���� � �����.
�� � � ��� ���� ��� �� �� �� ����� � ��
� ����. � � ��� �� �� ����� � ��� ���� �
�� � ���� � ����.
��:
node1:~ # samdiag -g rg1
Displaying information for the following:Resource Group "rg1":
Diagnosis::Resource: rg1/ResGroup/IBM.ResourceGrouptype: CHARM Resource GroupStatus -
Observed: Online - AvailableDesired: Online - Requested Online(Nominal: Online - Nominal State: Online)
Automation: Idle - CharmBase trigger linkedStartable: Yes - Resource is startable
��� ��
�� B. ��� �� 307
Binding: Bound - BoundCompound: Satisfactory - Satisfactory
Resource Based Quorum: Not Supported - CharmBase trigger linkedMembers and Memberships:
+---HasMember ---> app1/Fixed/IBM.Application/node1+---HasMember ---> ip1/Fixed/IBM.ServiceIP/node1+---bind/HasMember ---> app1/Float/IBM.Application+---bind/HasMember ---> ip1/Float/IBM.ServiceIP
Group Constraint: CollocatedBinding Constraints:Flags:None
Orders:Outstanding Order: None - Resource is Available
Dependencies:Start: Satisfied+---InCluster ---> Cluster
Stop: SatisfiedBinding exceptions:None
Static Relationships:+---InCluster ---> Cluster
Dynamic Relationships:+---bind/HasMember ---> app1/Float/IBM.Application+---bind/HasMember ---> ip1/Float/IBM.ServiceIP"
�� ��� �� ����� ��� �� �� �� ���� ���.
samdiag IBM.<resource-class-name>:<resource-name>:<node-name>
�� ��, ‘node1’ �� ‘app1’ ��� ��:
node1:~ # samdiag IBM.Application:app1:node1Displaying information for the following:Resource "IBM.Application:app1:node1":
Diagnosis::Resource: app1/Fixed/IBM.Application/node1type: Fixed ResourceStatus -
Reported: Online - OnlineObserved: Online - OnlineDesired: Online - Requested Online(Nominal: Offline - Defaulted: offline)
Automation: Idle - Idle - Online completedStartable: Yes - Resource is startableBinding: Bound - BoundCompound: Satisfactory - Satisfactory
Resource Based Quorum: Not Supported - CharmBase trigger linkedGroups and Aggregates:
<---HasMember ---- rg1/ResGroup/IBM.ResourceGroup<---bind/HasMember ---- rg1/ResGroup/IBM.ResourceGroup
Binding Constraints:Flags:None
Orders:Outstanding Order: None - Idle - Online completed
Dependencies:Start: Satisfied+---RunsOn ---> node1/Node/IBM.PeerNode
Stop: Satisfied<---HasMember ---- rg1/ResGroup/IBM.ResourceGroup
��� ��
308 ��� � ��� ���
Static Relationships:+---RunsOn ---> node1/Node/IBM.PeerNode
Dynamic Relationships:<---bind/HasMember ---- rg1/ResGroup/IBM.ResourceGroup"
�� ��
� ��� � �� ����� ���� System Automation� ���� ���
���� ��� ���� �� ������.
� ���� �� �� ����� �� ����.
v �OpState� ���� ��� ���
v 310 ���� �OpState� ���� ��� �� ���
v 311 ���� �OpState� ��� ��� ���
v 312 ���� �StartCommand ����
v 313 ���� �StopCommand ����
v 313 ���� �MonitorCommand �� ��
OpState� ���� ��� ��
� ��� ��� � �� �� �� ����.
���� ��� ���� �
���� �� ���� �� ��, �� ���� �� ��� OpState
� ���� �����. � ��, ��� ��� �� �� ��� ��
��.
��� MonitorCommand� �� �� 3(== ���� ��)� ���
� ��� ���� ���� �� MonitorCommand� ���� ����
�� �� � �����. �� � � ������.
1. ��� ���� MonitorCommand �� �� ������.
# lsrsrc –s ‘Name=”<resource_name>” ‘ IBM.Application Name MonitorCommand
2. MonitorCommand� ������.
3. ��� ���� MonitorCommand� �� � ������.
# echo $?
�� � 3(���� ��)� ��, MonitorCommand� � �� ����
��� ���� ���� ������. � ���� �� ��� ���
OpState� ����� ��� ���.
��� ����� �� ��� ���� System Automation� ��� ‘���� �
�’ � ���
MonitorCommand� 2(����)� ����� ��� OpState� ‘���� �
�’� ��, �� � ��� �� StartCommand ��� ��� �����(0
��� ��
�� B. ��� �� 309
�� ���� ��) System Automation� RetryCount ��� �� �
� �� �� ��� ��� ���� ���� ����(�� lssamctrl �
� �� � �).
���� ��� ��� ������.
1. �� ���� � ��� �� StartCommand� ���� ���� �
��� ������.
2. � ���� �� ��, ��� ���� ������ �� � �
� � � ������. �� ���� ��� ������.
3. �� �� ������.
�� �� � �� �� ����� ���� �����.
12:16:35.727970 T(1096711088) _RCD RMCRejected online request against RA on node saxb02
12:16:35.727970 T(1096711088) _RCDFailed Offline Request against RA on node saxb02
�� �� �� �� ���� � � ���� ��� �� �
���.
12:16:35.727970 T(1096711088) _RCDMaximum timer cancelled for RA on node saxb02
12:16:35.727970 T(1096711088) _RCDFailed Offline Request against RA on node saxb02
4. ����� �� �� ���� ‘���� ��’ ���� ��� ��
����.
# resetrsrc –s ‘Name=”<resource_name>” && NodeNameList={“node_name”}’ \IBM.Application
��� OpState� ����� ��, ��� �� ��� ���� System
Automation� �� �� �����.
OpState� ���� ��� �� ��
�� ��� ��� ���� �� �� ��� OpState� ‘���� ��’� ��, �
� �� ��� ��� �� � �� �� ��� BindingState� ��� �� �
���. �� �� ���� �� ������.
# lsrg –Ab –V –g <resource_group_name>
BindingState� ��� �� ��� ������.
v �� ����� �� ��� �� �� �� ������.
9:22:46.520729 T(229390) _RCD Online request injected:A/ResGroup/IBM.ResourceGroup
09:22:46.522817 T(229390) _RCD RIBME-Hist for <NULL>:BINDER: Bind A/ResGroup/IBM.ResourceGroup
09:22:46.532464 T(229390) _RCD RIBME-Hist for <NULL>:BINDER: Resource RA/Fixed/IBM.Test/saxb02 hsa no usable options
��� ��
310 ��� � ��� ���
09:22:46.532467 T(229390) _RCD RIBME-Hist for <NULL>:BINDER: Resource RB/Fixed/IBM.Test/saxb03 hsa no usable options
Resource RB/Fixed/IBM.Test/saxb02 hsa no usable optionsResource RA/Fixed/IBM.Test/saxb03 hsa no usable option
� ��� Collocated�� ��� �� ��� ���� ���� �� ��
���� �� � �� �� �� ��� �����. �� ’�� � �� �
�� ��’ �����.
v � ��� OpState� ‘���� ��’� ��� ��� ������.
v ExcludedList ��(lssamctrl)� �� �� ��� ������.
v �� ��� �� �� � � ��� �� ������.
v ��� Policy� ���� � ‘���’ ��� ���� ��� ������.
# lsequ –Ab
– Resource:Node[ValidSelectResources] � MemberClass ��� ������.
‘� ’ ��� � �� ��� ���.
– ����� ��� ‘OpState’� ������.
# lsrsrc <resource_class> Name NodeNameList OpState
��� <resource_class>� �� MemberClass� �����.
OpState� 1� �� �����, OpState� 2� �� ����� ��
����.
OpState� ��� ��� ��
��� OpState� ��� ��� �� ��� ��� ��� ����.
v �� ��� MonitorCommand� �� 4(== ��� ��)� �����. �
� MonitorCommand� ���� ���� �� ��� ���� �� �
����.
1. ��� ���� � ��� �� MonitorCommand �� �� ������.
lsrsrc –s ‘Name=”<resource_name>” ‘ IBM.Application Name MonitorCommand
2. MonitorCommand� ������.
3. ��� ���� MonitorCommand� �� � ������.
echo $?
�� � 4(��� ��)� ��, MonitorCommand ��� � �� ���
� ��� ������. � ���� �� ��� ��� OpState� ���
���� ���.
v ��� ��� ��(MonitorCommand� 1(���) �� 6(���� ���)� �
���� ��� OpState� ‘��� ��’� ��)� OpState� �� �� � ��
� ��� System Automation for Multiplatforms� �� ���� System
��� ��
�� B. ��� �� 311
Automation for Multiplatforms� � ��� ��� ��� ��� ���� �
�� � � ����. �� � ��� �� StopCommand� �� � ���
�� �� ��� ��� ������ ��� � ��� ��� ����.
� ��� System Automation for Multiplatforms� �� ��� � ��� ��
�� ���� ���. ��� ���� � ��� ��� � ���� � ��
� ���� ���. MonitorCommand� ���� ��� OpState� �����
��� ��� System Automation for Multiplatforms��� � ��� �� �
� � ��� �� ���� �� �� ����.
��� ��� ���� ���
StartCommand ����: ��� �� StartCommand� � ��� ��
StartCommandTimeout ��� �� �� �� ���� �� �� ��� �
��� �����. � ���� ��� ��� ��� ��� ����.
v StartCommandTimeout ��� �� �� �� ����.
�� �� ���� �� � � ������.
1. ��� ���� � ��� �� � ��� �� �� ������.
# lsrsrc –s ‘Name=”<resource_name>” ‘ IBM.Application Name \StartCommandTimeout
2. ��� ���� � ��� �� StartCommand� ���� � � ���
������.
��: � �� ���� �� �� ���� �� �� ���� �� ��
� �� ���� ����� ����.
�� ���� � �� �� ��� � �� ��� � � ��
��.
3. ��� �� �� �� �� ���� � �� �� ������.
4. �� �� StartCommandTimeout �� �����.
# chrsrc -s ’Name=="<resource_name>"’ \IBM.Application StartCommandTimeout=<new_value_in_seconds>
� � ��� �� � ����.
v StartCommand� �� ���� �� �� � ��� ���� �� ��� �
����.
– � �� StartCommand� �� ��� ����.
��: � �� ���� � �� ���� �� �� ���� ���� �
���� ����.
��� ��
312 ��� � ��� ���
– ����� ��(��)�� � ��� ��� set –x� StartCommand ��
��� �� ���� ���� �� ���� ��� � ����.
– ��� ��� �� ��� �� ���� ������. �� System
Automation� ��� ��� ����.
StopCommand ����: ��� �� StopCommand� � ��� ��
StopCommandTimeout ��� �� �� �� ���� �� �� �� ���
���� �����. � ���� ��� ��� ��� ��� ����.
v StopCommandTimeout ��� �� �� �� ����.
� ��� ���� ���� ��� ������.
1. � ��� �� � ��� �� �� ������.
# lsrsrc –s ‘Name=”<resource_name>” ‘ IBM.Application Name \StopCommandTimeout
2. � ��� �� StopCommand� ���� � � ��� ������.
��: � �� ���� � �� ���� �� �� ���� �� ��
� �� ���� ����� ����.
�� ���� � �� �� ��� � �� ���� � � �
���.
3. ��� �� �� �� �� ���� � �� �� ������.
4. �� �� SopCommandTimeout �� �����.
# chrsrc –c ‘Name=”<resource_name>” ‘ IBM.Application \StopCommandTimeout=<new_value_in_seconds>
� � ��� �� � ����.
v StopCommand� �� ���� �� �� � ��� ���� �� ��� �
����.
– � �� StopCommand� �� ��� ����.
��: � �� ���� � �� ���� �� �� ���� ���� �
���� ����.
– ����� ��(��)�� � ��� ��� set –x� StopCommand ��
��� �� ���� ���� �� ���� ��� � ����.
– ��� ��� �� ��� �� ���� ������. �� System
Automation� ��� ��� ����.
MonitorCommand �� ��: ��� �� MonitorCommand� � ��� ��
MonitorCommand ��� �� �� �� ���� �� �� �� ��� ��
�� �����. � ���� ��� ��� ��� ��� ����.
v MonitorCommandTimeout ��� �� �� �� ����.
��� ��
�� B. ��� �� 313
� ��� ���� ���� ��� ������.
1. � ��� �� MonitorCommand ��� �� ��� ������.
# lsrsrc –s ‘Name=”<resource_name>” ‘ IBM.Application Name \MonitorCommand MonitorCommandTimout MonitorCommandPeriod
2. ���� � MonitorCommand� ���� � ��� �� MonitorCommand
� ���� � � ��� ������.
�� ���� � �� �� ��� � �� ��� � � ��
��.
3. ��� �� �� �� �� ���� � �� �� ������.
4. �� �� MonitorCommandTimeout �� �����.
# chrsrc –c ‘Name=”<resource_name>” ‘ IBM.Application \MonitorCommandTimeout=<new_value_in_seconds>
� � ��� �� � ��� MonitorCommandTimeout �� �
MonitorCommandPeriod �� ��� ��� ��� ���.
v MonitorCommand ��� �� �� ���� ��� �� � ��� ���
� �� �� ��� �����.
– � �� MonitorCommand� �� ��� ����.
– ����� ��(��)�� � ��� ��� set –x� MonitorCommand �
���� �� ���� ���� �� ���� ��� � ����.
– MonitorCommand� �� ���� �� �� � ��� ���� �� �
�� �����.
��� ��
� �� ���� �� ���� ��� ���� �� ������.
v ���� ���� ���
v 316 ���� ��� ��� ���� ���
v 316 ���� ���� ���� ���
v 317 ���� ��� ��� ���� ���
v 317 ���� ��� �� � �� �� ��� ���� ���
v 318 ���� ��� ����� ��� � �� �� ��� ���� ���
��� ���� �
��� ���� �� �� �� � � ������.
1. �� ��, � ����� �� � ���� ��(ps –ef)�� � ��
� �� StartCommand� ��� �� ���� ������. StartCommand
� �! ���� � ��, 2� � ���� ������ ����� ��
�� ��� ������.
��� ��
314 ��� � ��� ���
2. �� �� ��� ������.
# lssrc –ls IBM.RecoveryRM | grep Quorum
�� �� �� == HAS_QUORUM� �� 3� � ���, ��� �� �
�� ���� ���� � �� ������.
# lsrpnode
�� �� ��� �� ����� �� �� �� ��� ������ ��
�� ���� �� ���� ���.
v �� �� �� ���� ��, �� �� ������.
v �� �� ��� ���� ��, �� �� ���� ��� �����
�.
# lsrsrc –c IBM.PeerNode OpQuorumTieBreaker
� ��� �� Operator� ��, �� ���� ���� ��� ���.
a. �� ���� ���� ���� ��� �� �� ���� � ��
�� ������(�� �� �� ���� ��).
# runact –c IBM.PeerDomain ResolveOpQuorumTie Ownership=0
b. �� ���� ���� ���� �� �� ���� � ���� �
�����.
# runact –c IBM.PeerDomain ResolveOpQuorumTie Ownership=1
���� ���� ��� �� �� � �� ��� �� ���� ��
���� ���� ����. � ��� �� ���� ���� ����
�.
�� ��, �� �� ���� �� �� ������.
# lsrsrc –s ‘Name=”<name-of-active-tie-breaker>”’ IBM.TieBreaker
���� ��� �� ���� ��� �� ��� �� IP ��� �
��� �� ���� �� ���� ������. � �� �� ���
�� ���� �� � ����. �, �� � ��� ������ ��
�.
3. �� �� �� �� ��� �� �� ������.
# lsrgreq –L# lsrgreq –L –m# lssam
�� �� �� ��� �� �� �� �� ��, �� ��� ������
�� ��� ����. ���� ��� �� ������.
��� ��
�� B. ��� �� 315
4. ����� �� �� �� ��� �� ��� ������. �� System
Automation� ��� ���� ���� ���. �� System Automation� �
� ��� ��� ���� �� �� �� � ��� ��� ����
��. �� �� ������.
# lssamctrl
��� �� �� Manual� ��, ����� �� ����. �� ��� �
��� Auto� � � ����.
# samctrl –M F
�� �� �� ��� �� ��, ��� ���� � �� ���� �
� � ����.
# samctrl –u d <node_name>
5. �� �� �� � �� ���� ��� DesiredState, ObservedState �
BindingState� ������.
# samdiag IBM.<resource-class>:<resource-name>[:<node-name>]
��� �� BindingState� �� ��� Sacrificed� ��, �� �� �
� ��� �� �� � � ����� � ��� ��� �� � ��� ���
��. ��� � ��� ��� Policy� �� �� �� � �����.
�� ��� ���� �
�� �� �� ���� ���� ����. ��� ��� ���� �� ��,
�� � � ������.
1. � � ���� �� � �� �� ���� �� ��� ������.
2. � ��� 314 ���� ���� ���� ��� �� � �� ��� ��
�� �� ��� ������. �� ��� �� �� ���� �� ��� �
� ���� ���� �� � � ������. �� ��� BindingState� �
��� �� � � ��� ������.
# lsrg –Ab –V –g <resource-group-name># samdiag –g <resource-group-name>
��� ���� �
��� ���� �� �� �� � � ������.
1. StopCommand� �� � ��� ���� �� �� System Automation for
Multiplatforms� ��� �� �� �� �����. � �� StopCommand
� ��� ������. �� ��� OpState ����� ���� �� ��,
��� OpState� �� ��� ��� ����. ���� ���� 311 ��
�� �OpState� ��� ��� ����� �� �� �����.
��� ��
316 ��� � ��� ���
2. ��� �� StopCommand� ���� � ��, �� � � ��� ����
�� �� �� �� ��� �� �� ������.
# lsrgreq –L# lsrgreq –L –m# lssam
�� �� �� ��� �� �� �� �� ��, �� �� � ��� �
�����.
3. ����� �� �� ��� �� ��� ������.
# lssamctrl
Automation �� �� Manual� ��, ����� �� ��� System
Automation �� ��� ���� ����. � �� ��� ���� Auto
� � � ����.
# samctrl –M F
4. � ��� ��� ����, �� ������� � � ��� ������. �
�� � � ������.
v StartAfter(StartAfter � � �� ��� ����� ��)
v DependsOn � DependsOnAny( � � �� ��� ����� ��
StartAfter � � ���� ���)
5. � ��� ��� ����, �� ������� � � ��� ������(��
��� ����� ��� �� �� �� ��� ����� ���).
�� ��� ���� �
�� �� �� ���� ���� ����. ��� ��� ���� �� ��,
�� � � ������.
1. � � ���� �� � �� �� ���� �� ��� ������.
2. � ��� 316 ���� ���� ���� ��� �� � �� ��� ��
�� �� ��� ������. �� ��� �� �� ���� �� ��� �
� ���� ���� �� � � ������.
��� ��� � �� �� ��� ���� �
�� �� � �� �� ��� ���� �� ��, �� � � ������.
1. ����� �� �� ��� �� ��� ����, ��� ���� ���
�� � �� �� �� ���� ������.
# lssamctrl
Automation �� �� Manual� ��, ����� �� ��� System
Automation �� ��� ���� ����. � �� ��� ���� Auto
� � � ����.
��� ��
�� B. ��� �� 317
# samctrl –M F
���� � ��� ���� ��� ���� � ��� �� � ��
������.
# lsrpnode
�� � ��� �� � �� ��� �� �� �� ��, �� ��
���� ���� �� ������.
# samctrl –u d <node_name>
2. � ��� OpState� ‘���� ��’� ��� ��� ������. �� ��,
314 ���� ���� ���� ��� ��� �� �� �����.
3. � ��� OpState� ‘��� ��’� ��� ��� ������. �� ��,
311 ���� �OpState� ��� ��� ����� �� �� �����.
4. ��� �� �� ��� BindingState� ������.
v �� ��� 'Sacrificed(���)'� ��, System Automation �� ���
�� � ����.
� ��� ��� �� ���� ����, ��� ���� � ���
OpState� ����� ������.
# lsequ –Ab
ValidSelectResources ��� ������.
��� ����� ������.
# lsrsrc IBM.<equivalency_class> Name NodeNameList OpState
v BindingState� 'Bound(��)'� �� System Automation� ��� ���
� ����. 314 ���� ���� ���� ��� ��� �� �� ��
���.
5. �� �� �� ��� � �� � � ��� ������.
��� ���� ��� � �� �� ��� ���� �
���� ��� ���� �� � � ������.
1. �� �� ��� ������.
# lssrc –ls IBM.RecoveryRM | grep Quorum
�� �� �� == HAS_QUORUM� �� 2� � ���, ��� �� �
�� ���� ���� � �� ������.
# lsrpnode
�� �� ��� �� ����� �� �� �� ��� ������ ��
�� ���� �� ���� ���.
��� ��
318 ��� � ��� ���
v �� �� �� ���� ��, �� �� ������.
v �� �� ��� ���� ��, �� �� ���� ��� �����
�.
# lsrsrc –c IBM.PeerNode OpQuorumTieBreaker
� ��� �� Operator� ��, �� ���� ���� ��� ���.
a. �� ���� ���� ���� ��� �� �� ���� � ��
�� ������(�� �� �� ���� ��).
# runact –c IBM.PeerDomain ResolveOpQuorumTie Ownership=0
b. �� ���� ���� ���� �� �� ���� � ���� �
�����.
# runact –c IBM.PeerDomain ResolveOpQuorumTie Ownership=1
���� ���� ��� �� �� � �� ��� �� ���� ��
���� ���� ����. � ��� �� ���� ���� ����
�.
�� ��, �� �� ���� �� �� ������.
# lsrsrc –s ‘Name=”<name-of-active-tie-breaker>”’ IBM.TieBreaker
���� ��� �� ���� ��� �� ��� �� IP ��� �
��� �� ���� �� ���� ������. � �� �� ���
�� ���� �� � ����. �� ���� �� ��� ��� �
� � ���.
2. ����� �� �� �� ��� �� ��� ������. �� System
Automation� ��� �� � ��� ���. �� System Automation� ��
��� ��� ���� �� �� �� � ��� ��� �����
�. �� �� ������.
# lssamctrl
��� �� �� Manual� ��, ����� �� ����. �� ��� �
��� Auto� � � ����.
# samctrl –M F
�� � ��� �� �� �� �� �� ���� ���� �� ��
� ����.
# samctrl –u d <node_name>
3. �� �� ��� ���� ��� � ��� � ��� ���� ���� ��
�� � ��� �� �� �����.
��� ��
�� B. ��� �� 319
�� �� � ���� � ���� ���� �
� ���� IBM Tivoli System Automation� ���� �� �� �� ���
��� �� � �����. ��� ��� ��� ��� ��(���)� ����
��� IBM Tivoli System Automation� ��� �� �� �� ���� �
���� ��, �� � � ������.
1. stoprpdomain �� ���� ����� ������.
2. startrpdomain �� ���� ����� �� ������.
�� ���
���� �� ��� ���� ��� �� �� IBM ��� ���� �� ���
���(IBM.RecoveryRM) ���� ���� ���. �� �� �� ���� �
� � ����.
1. �� �� ���� RecoveryRM ��� ��� �� �� �� �����
�.
lssrc –ls IBM.RecoveryRM | grep Master
2. ���� ���� ��� PID� ���� ��� ���� kill����.
lssrc –ls IBM.RecoveryRM | grep PIDkill -9 <PID>
� �, ���� �� � �� ��� ���� ��� �� � �� ���
��� � �����. src ���� �� kill ��� ���� �� ����
�.
����� �� � �
���� �� �� ���� ��� �� �� ��� 12 ���� �1� : ��
�� �� � ���� �����. �� ��, �� �
CT_MANAGEMENT_SCOPE� ��� ��� �� ��� ��� ����
����.
�� �� � �� ��� �� ���� �� � �
AIX �� ���� �� �� �� ���� ��� � �� ��(�, �� �
�), �� �� �� ��� �� ���� ���� ��� �����. �� �� �
�� AIX�� �� ���� ���� IBM Tivoli System Automation for
Multiplatforms � � �� ���� �����.
��� ��
�� ��� ��� �� ��� �� ��� IBM Tivoli System Automation for
Multiplatforms ��� �� PMR� ���� ���. ���� �� � �� ��
� ������.
��� ��
320 ��� � ��� ���
v ��� �� �� ��� ��� � � ���(299 ���� ����� �� ��
� � � ��� ��� �)
v ���� ���� � ���� ��� Policy� �� ��� �. �� ��� �
��� �� sampolicy -s �� �� � ����.
v ��� ���� �� �� ���� �� ��� �
� ��� � ����
��� ��� ��� ��-�� ��� �� ��� ���� �
�� �� �� �� �� �-�� �� �� � � �� ��� �
��� ���� �� �� ����. � �� �-�� ��� ��� ��
� �� �� PERL ��� �� ���� ���� �����.
System Automation for Multiplatforms � �� ��� ��
� ��� �� ��� ���� ����.
v ���� ���� � �� ��� ���� ���
v 326 ���� ��� ��� �� �� ��� �� �� ���
v 327 ���� �� �� � �� ��� �� ���� ��� � �� �
�� ����
v 327 ���� ���� ���� �� � ���
v 327 ���� �Policy ���� �� �� � ���
��� ���� ���� ��� ���� �
1� ��� ���� �� ��� � �� ���� � � �� �� �� �
� ������.
1. ���� �� ��� ������. � ��� ���� �� �� ����
��.
samadapter status
���� �� �� ��, �� ����� � ���� �� ��.
samadapter is running on sapb13
���� ��� ��, �� ����� � ���� �� ��.
Automated ResourceGroup ’samadapter-rg’ runs on sapb13
���� ���� �� �� ����(���� �� sapb13�) 4� �
�����.
_________________________________________________________________
��� ��
�� B. ��� �� 321
2. ���� �� �� �� ��, ���� ����� ���� �� �� ��
������.
lsrpdomain
�� ����� � ���� �� ��.
Name OpState RSCTActiveVersion MixedVersions TSPort GSPortdomain1 Online 2.5.5.1 No 12347 12348
OpState� ���� �� �� ���� ������.
_________________________________________________________________
3. ���� ���� ��, �� ��� ���� ������.
samadapter start
�� ���� ��� �� �� �� �� ������.
samadapter status
_________________________________________________________________
4. ���� �� �� ��, ���� �� � �� ��� ����� �� ��
�� �� ������.
_________________________________________________________________
5. ���� ��� ���� ��, ���� ���� �� ��� �� �� �
��� ��� �� ��� ����.
�� � � ������.
a. System Automation for Multiplatforms� ��� �� �� ��� ���
���. � ��� ���� ���� ��� �� �� ������.
cfgsamadapter
_________________________________________________________________
b. �� �� ��� �� ��� ��� �����.
_________________________________________________________________
c. �� ��� ��� ���� � �� �� �� �� �� �� �
�����.
v ��� �� �� IP ��
v �� �� �
�� �� ��� ���� ���� ���� �� �� �� ����
���� �� ���� �� �����.
_________________________________________________________________
��� ��
322 ��� � ��� ���
d. ���� ���� ��� ���� � �� �� �� �� �� ��
������.
v ��� �� �� IP ��
v ��� �� �
�� ���� �� �� �� ���� �� ��� ���� ����
���� �� ���� �� �����.
_________________________________________________________________
6. ���� � ��� �� ��� �� � ��� ������. �� ��
� ping <�� �� host>���.
���� �� �� ��� ���� ��� �� ���� �� ��, � �
��� �(��� ���: ��� �� �� IP ��)� �� ��� ����
���(���� ���� ��� ���: ��� �� �� IP �� � ���
�� �) �� ��� ����� ���� ����� ������.
_________________________________________________________________
7. ���� �� ��� ��� SSL� ���� � ��� �����. ���
� SSL ��� ���� cfgsamadapter �� ���� ��� �� ��
��� ������. �� �� ��� �� ����� SSL ��� � �
� ����. SSL �� � � � �� ��, �� ��� �� ��� �
�� SSL� ����� ���� ���.
<isc_runtime_root>/AppServer/profiles/default/Tivoli/EEZ �����
� ./cfgdirect.sh� ���� �� ������. eez-ssl-truststore, eez-ssl-keystore,
eez-ssl-keystore-password � eez-ssl-keystore-alias �� �� ��� �� �
� ��� �� ���� �� �� �� � ����. (��� �� �
� ��� �� ��� ��� IBM Tivoli System Automation for Multiplatforms
� � �� ���� �����.)
����� � �� ��� ��� ���� �� �� samadapter stop
�� ���� ���� ���� � �� ����. � ���� �� �
� ���� ���� ID� ������.
ps ax | grep sam.adapter
��� �� �� ���� samdapter ����� ������.
kill <process-ID>
_________________________________________________________________
8. �� ��� ���� ����� netstat� ���� ��� �� �� ��
�� ���� ��� ���� ��� ������.
��� ��
�� B. ��� �� 323
�� �� ��� Windows ���� 2002� ��� ��, netstat� ��
����� � ���� �����.
C:\>netstatActive Connections
Proto Local Address Foreign Address State...TCP E2EHOST:2002 sapb13.boeblingen.de.ibm.com:45688 ESTABLISHED...
netstat� ��� �� �� �� �� ��� �� ��� ��� ���
� �� ��, /etc/hosts � (Windows��� � � � C:\WINDOWS\
system32\drivers\etc\hosts� ���)� � �� ��(127.0.0.1)� �
� ��� � ��� ��� � ����. �� ��� �� ����� �
�� ��� ���.
�� ��, /etc/hosts� �� �� �� � ����.
127.0.0.1 localhost.localdomain localhost
_________________________________________________________________
9. ���� � �� �� ���� ��� � ��� ������. �� ��
� ping <��� �� �� IP ��>���.
�� ��� ���� ���� ���� � �� ���� �� ��, ���
� �� ��� ���� ���(���� ���� ��� ���: ��� ��
�� IP �� � �� �� �)� �(��� ���: ��� �� �� IP �
�) �� ��� ����� ���� ����� ������.
_________________________________________________________________
10. ���� �� �� ��� netstat� ���� �� �� �� �� �
� ���� ���� ��� ������.
�� ��, � �� ��� 2001� ��, netstat� AIX, Solaris � Linux
����� �� � ���� �����.
sapb13:~ # netstat -atn |grep 2001tcp 0 0 9.152.20.113:2001 :::* LISTEN
_________________________________________________________________
11. �� �� �� ��� ��� �� ��(�� � �) EEZ Publisher�
�� ��� ������. EEZ Publisher� System Automation for
Multiplatforms� ��� ��� �� ���� ���.
Publisher� �� ��� ���� �� � � ������.
a. ��� ���� � � ���� �� �� ������.
- issue lssamctrl
��� ��
324 ��� � ��� ���
Publisher� �� ��� ��, �� ����� � ��� �����.
safli03:~ # lssamctrl | grep PublisherEnablePublisher = EEZ
b. System Automation for Multiplatforms� ��� ��� �� �� �
�����(18 ���� ��� �� ��� ������ �� ���� �
�).
ps ax
�� ����� � ��� ����� ���.
safli04:~ # ps ax | grep Publisher25756 ? S 0:00 TECPublisher
/etc/opt/IBM/tsamp/sam/cfg/EEZPublisher.conf EEZ25757 ? S 0:00 TECPublisher
/etc/opt/IBM/tsamp/sam/cfg/EEZPublisher.conf EEZ25758 ? S 0:00 TECPublisher
/etc/opt/IBM/tsamp/sam/cfg/EEZPublisher.conf EEZ25759 ? S 0:00 TECPublisher
/etc/opt/IBM/tsamp/sam/cfg/EEZPublisher.conf EEZ
c. ���� �� �� IBM Tivoli System Automation for Multiplatforms �
�� �� �� ������.
netstat
�� ����� � ��� ����� ���.
Safli03:~ # netstat -atn | grep 5539tcp 0 0 :::5539 :::* LISTENtcp 0 0 9.152.21.82:5539 9.152.20.92:32793 ESTABLISHED
Publisher� �� �� ���� �� 5539� �� ��� �� � �� ��
�� � � ������.
a. /etc/Tivoli/tec/samPublisher.conf � � �� ��� ����� �
�����.
#--SAMP-EEZ:Publisher=EEZLibraryPath=libTECPublisher.soConfigPath=/etc/opt/IBM/tsamp/sam/cfg/EEZPublisher.conf
b. /etc/opt/IBM/tsamp/sam/cfg/EEZPublisher.conf � � �� ��� �
���� ������.
ServerLocation=adapter_ip_addressServerPort=5539
� �� adapter_ip_address� �� � ��� �� �� ��� �
�� ��� �� � ��� ���.
_________________________________________________________________
��� ��
�� B. ��� �� 325
12. ���� �� ��� ��� ���� �� �� IBM ��� ���� �� �
�� ������.
a. ���� � ��� � � � �� ��� ������. � �
Tivoli �� ����� /eez/logs �������� �� � ����. Tivoli
�� ����� ��� ��� �� �� ������.
cat /etc/ibm/tivoli/common/cfg/log.properties
� �� ��� �� Tivoli Common Directory� ��� �����.
Tivoli_common_dir=/var/ibm/tivoli/common
�� � � � �� ������ �� � ��� � ���.
/var/ibm/tivoli/common/eez/logs
b. tar� ���� ����� �� � � � ����� IBM ��� ��
��� ������.
_________________________________________________________________
�� ��� � �� ��� ��� �� ��
�� ���� �� ��� ���� � Integrated Solutions Console ��� �
�� �� �� ��� ��� ���� �����. �� ��� �� ��� ��
��, Integrated Solutions Console ��� ��� ��� ������.
��� �� ��� ���� �� ��� ���� �� ��� ����.
v AIX��� SMIT �� �� ��� �� ��� �� � ����. �� �
� ��� �� —> �� � �� ��/��� ���� �� ��� ����
�.
v SuSE Linux��� yast2 �� yast �� �� ��� �� � ����. ��
�� ��� -> �� � ��(SLES-9) �� ��� —> �� ��(SLES-8)�
������.
v Red Hat Linux �� � �� �� redhat-config-time �� system-config-time�
�� � ����.
v Windows��� ���� �� � �� ���� �� ��� � � ���
�.
�� ��� �� �� ��� �� ���� �� ����.
:
AIX, Solaris, Linux: �� � ��� ��� ����� �� ��� �
� ��� �� �� �� ��� �� TZ �� �� ��� ����
�� � ����.
��� ��
326 ��� � ��� ���
��:
v � ���� ���� ��� �� �� ������.
export TZ="Europe/Berlin"
v ���� � �� �� ���� ��� �� �� ������.
export TZ="US/Eastern"
�� �� � �� ��� �� ���� ��� � �� ��� ���
�� ��� ���� �� �� � �� � ��� � �� ��� ���
��. � ��� ��� � ��� ���� ��� �����.
��� ��� �� �� ��
client.encoding.override=UTF-8 JVM ��� ���� UCS � �� �� �
���� ��� �� � ����. � �� ���� ����� ��� ��
�� �� �� �� �� � ����. �� ���� �� � �� ���
�� �� � ��� ���� ���. ���� ����� ���� �� � �
� � �� �� � �� �� ��� ���� �� �� ��� �� � �
���.
�� ��, SA �� ��� ���� � � �� � �� �� 1� ��� �
��� �� ��� �� ����� �� �� ��� � ��, ��� ��
� � �� � � � �� ��� �� ����� ��� ���� ����.
UCS � �� �� ����� ��� ���� �� � � ������.
1. �� ���� �� > ����� ��� ��� UCS � �� �����
��� � ����.
2. �� �� � ���� Java � ���� �� > ���� �� > JVM(Java
Virtual Machine)� �����.
3. � JVM ��� �� -Dclient.encoding.override=UTF-8� ���� ��
� �����. � ��� ��� autoRequestEncoding ��� ��� ��� �
��� �� �� ��� UCS � �� �����.
4. ���� ���� ��� �����.
5. ����� ��� �� ������.
Policy ���� �� �� �� ��
Policy ���� �� ��� ��� �� ���� ���� �� ��� ���
Policy� �����. � �� �� �� ���� ���� ����� �� � �
�����. ��:
��� ��
�� B. ��� �� 327
Windows: C:\Documents and Settings\Administrator\Local settings\Temp
(�� � %TEMP%� �� ��).
AIX, Linux, z/OS: /tmp
�� �� � � � � �� ���� �����.
.eezautosave_<Timestamp>_<ISC_user_ID>_<ISC_session_ID>_<internal ID>.xml
Policy ���� �� ���� ����� �� � ��� ���� ���� �
�, �� �� � ��� ���� ��� �� � ����.
1. � �� �� � � �� ���� � ����(�: ftp ��).
2. Policy ���� � � Policy �� � ����. ��� �� Policy�
�����.
�:
1. Unix ����� “.”� ���� �� � � �����. �� �� ls –a �
� ������.
2. WebSphere Application Server� ��� �� �� � � � �����.
��� ��
328 ��� � ��� ���
� C. IBM Support Assistant ��
IBM Support Assistant� �� ������ � � �� �� ��� ��
��������. IBM Support Assistant� ��, �� � � � ��� ����
��� ����, ��� �� (PMR) �� �� �� ���� ����� �
� �� � �� ETR(Electronic Tracking Record)� �� � �� ���
���� � ��� ���.
�� ���� IBM ��� �� �� ��� ��� ��� ������ ��
� ����. Tivoli System Automation for Multiplatforms� �� �� ��
� �� ��� �����.
v �� ��
v � ��
v ��� �� ��� �� ��
IBM Support Assistant � Tivoli System Automation forMultiplatforms �� ��
IBM Support Assistant V3.0� ��� �� � � ������.
v IBM Support Assistant � ���� ������.
www.ibm.com/software/support/isa/
v �� � ���� �������. IBM ��� ID � ��(�: MySupport
�� developerWorks® ��� ID)� ���� ����� ��� �� �����
�. IBM ��� ID� �� �� ��, �� �� ����� ���� � ID�
�� �� ����.
v � ���� �� ����� �� ������.
v � ���� �� � � ��� �� ���� ����� �� IBM Support
Assistant� �����.
Tivoli System Automation for Multiplatforms� ���� ��� �� �
� ������.
1. IBM Support Assistant ������ ������. IBM Support Assistant�
���� �� �� � ����� ���� � ��������.
2. IBM Support Assistant ��� ��� �� �����.
3. � �� � �� �� �����. ��� �� ����� � ���.
© Copyright IBM Corp. 2006, 2008 329
4. Tivoli > Tivoli Tivoli System Automation for Multiplatforms� � ���
�.
5. ���� ��� � �� ��� �����. ���� �� � �� ����
� �����.
6. IBM Support Assistant� �� ������.
330 ��� � ��� ���
� D. ����
� ��� ��� ���� �� � ������ �� ����.
IBM � ���� � �� �� ��, ��� �� ��� ���� �� ��
����. �� �� � �� �� � ���� �� ��� �� IBM ���
������. � ��� IBM ��, ���� �� ���� ���� �� � IBM
��, ���� �� ����� �� � ��� �� � ��� ����. IBM�
� ��� ���� �� �, ����� ��� ��, ���� �� ���� �
� �� �� ����. ��� �IBM ��, ���� �� ���� ��� ��
�� � � ���� �����.
IBM � ��� � � �� �� ��� �� ��� ���� ��� �� ��
�� � � ����. � �� ����� �� ��� �� ���� � ����
� ����. ����� �� ���� ���� ������.
135-700
����� ��� ��� 467-12, ��������
�� ��.�.� ����
�����
����: 080-023-8080
(i) ���� �� ���� �� ����(� ���� ��) �� �� �� �
(ii) �� ��� �� ��� ��� � ����� �� ��� ��� �� �
��� ���� �� ��� ������.
135-700
����� ��� ��� 467-12, ��������
�� ��.�.� ����
�����
��� ��� � �(�� ��, ��� �� �)��� ��� � ����.
� ��� �� ����� �� ���� � � ����� �� �� ��� ��
����� �� ��� IBM� IBM �� �, IBM ���� ���� �(IPLA)
�� �� ��� �� �� ��� ����.
2��(DBCS) ��� �� ���� ��� �� IBM ������ �����
�� ��� � ����� ��.
© Copyright IBM Corp. 2006, 2008 331
IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106, Japan
�� �� �� ���� ���� �� ����� ��� ����. IBM
��� �� ���, ��� � �� ��� ��� �� �� � � ����
(�, �� ��� ��) ���� ���� ��� ��� � �� � �� ″�
����″ �����. � ����� �� ���� �� �� �� � �
���� ���� ����, � ��� ��� �� �� ����.
� ���� ���� ���� ���� ���� ��� �� � ����. � �
�� ���� ���, � �� ��� �����. IBM � ���
�� �� �/�� ����� �� �� �� ��� �� �/�� � � ��
��.
� ���� ��� �IBM� � ���� �� ��� �� ���, �� ���
�� �� � ���� !���� �� � ����. � � ���� ��� �
IBM �� ��� �� ���� � � ��� ���� �� �� ��� ��
� ���� ���.
� ��� ������ ���� ��, �� �� ��� ��� ���� �� �
� ����.
��
v IBM, IBM ��, ibm.com, AIX, DB2, developerWorks, HACMP, NetView, Tivoli,
Tivoli Enterprise, Tivoli Enterprise Console, WebSphere � z/OS� � ��
�� ���� ���� International Business Machines Corporation� ����
�. IBM Redbooks � IBM Redbooks ��� IBM� �� �����.
v Adobe, Acrobat, Portable Document Format(PDF) � PostScript� � �� �
� ���� ���� Adobe Systems Incorporated� ���� �� �����.
v Microsoft, Windows, � Windows ��� � �� �� ���� ����
Microsoft Corporation� �����.
v Java � �� Java �� ��� � �� �� ���� ���� Sun
Microsystems, Inc.� �����.
v Linux� � �� �� ���� ���� Linus Torvalds� �������.
v Red Hat � �� Red Hat �� ��� � �� �� ���� ���� Red
Hat, Inc.� �� �� �������.
v UNIX� � �� �� ���� ���� The Open Group� �������.
332 ��� � ��� ���
v �� ��, �� � ��� � � ��� �� �� ���� � ����.
�� D. ���� 333
334 ��� � ��� ���
��
����� ��
GblResRM 302
RecoveryRM ��� �� 301
��� xiv
��� �� � 224
�����, ���
netmon.cf 288
���� ���� 287
���� ���� � 287
�� ��
�� 34
�
� 91
�� � 80
�� 90
�� 92
Affinity 87
AntiAffinity 88
AntiCollocated 85
Collocated 82
DependsOn 72
DependsOnAny 78
ForcedDownBy 79
IsStartable 89
StartAfter 64
StopAfter 70
� ���
� 138
�� �
�� �� 62
� 61
�� ��
� 4, 32
�� �� 236
�� �� 5, 168
��� �� ��
�� �� 53
��� ��� �� ���
�� �� 50
�� �� ���
Integrated Solutions Console 145
���(shadow) ��
�� 212
����
� 91
��� 59
�� �� 51
���� �����
�� �� 288
���� �� ��� 185
�
� �� 232
� �� 232
������ ���� 16
������ �� 17
� �� ��
�� �� ��� 50
� ��, �� 50
������
� 59
� 60
�� � 57
� 5, 55
� �� �� 57
�� 59
�� 60
��� �� 59
� �� 32
�� 4
AutomationDetails 40
ConfigValidity 231
MoveStatus 47, 211
OpQuorumState 173
OpState 35, 40, 237, 255
TopGroup 40
������
Integrated Solutions Console 122
� ����
��� 192
ExcludedNodes 192
ResourceRestartTimeout 192
TimeOut � RetryCount 190
�
addrgmbr 50
addrpnode 15
chequ 60
chrg 52
chrgmbr 53
lsequ 59
lsrel 91
lsrg 51
lsrpnode 17
mkequ 59
mkrel 90
mkrg 50
mkrpdomain 12
preprpnode 12
rmequ 60
rmrel 92
rmrg 53
rmrgmbr 53
rmrpdomain 17
rmrpnode 17
samctrl 232
samdiag 221
startrpdomain 12, 17
startrpnode 15
stoprpdomain 16
stoprpnode 16, 17
��� ��
�� �� 301
�� �� �� 302
� 302
�� �� 300
© Copyright IBM Corp. 2006, 2008 335
��� �� ( �)
�� �� 299
ConfigValidity 303, 306, 307
ctsnap � 299
����
�� 93
�� �� 298
�
��� 60
�� �� 52
�� �� ���� �� 53
� ��
�� 34
�� �� ���(IBM.RecoveryRM) 18
������ �� ��
�� 145
��� ��
IBM Tivoli System Automation for
Multiplatforms� �� 120
�� 332
��
�� � � �� 62
���� �� 57
� 4, 32
�� ��� �� 40
�� ��, � 3, 32
��� �� 33
�� 3, 32
IBM.Application� �� 237
IBM.ServiceIP� �� 255
IBM.Test� �� 259
NodeNameList 33
SelectFromPolicy 33
�� �� ���� 248
��
�� 141
�� � 141
�� �� ��� 174
������ �
IBM Tivoli System Automation for
Multiplatforms� �� 120
�
��� 141
�� �� �� 211
�� �� � �� �� � �� 202
�� 142
�� 144
� ��
�� 143
� ����
�� 143
��� �� ��� 174
� ����
�� 121
�� ���� 122
�� 121
�� �� 121
��� 121
JavaScript 121
�� � 80
�
IfNotOffline 81
IFNotOnline 81
IFOffline 81
IFOnline 81
�� � � � 81
�� � 87
� �� �� xiii
� �� �� � xiii
� �� �� �� xiii
� �� �� xiii
�� �� xvi
�� �� �� ���(ERRRM) 232
����� �� 295
� ���
� 137
������
��� 192
���� ��� �� �� 97
��� ���
� 298
��� ��� ( �)
�� � 298
� 298
��� Policy �� 194
���� ��� �� �� 97
��
� 230
�� �� 4, 36
� 3, 31
� �� �� 33
�� �� � 3, 32
�� ���� �� � 4, 31
� 167, 171
�� �
ConfigValidity 230
�� ���
�� �� RM 235
�� ��� IBM.Application 235
�� ��� IBM.ServiceIP 252
�� �� ��� 259
IBM.Test �� ��� 259
�� ��
��� �� �� 50
� (� �� ��� ��) 51
� �� �� 50
�� 43
� 37
�� � 52
�� 52
� �� �� 40
����� � 97
�� 210
�� 50
�� 53
�� 52
�� �� ���
�� � 53
�� �� �� 52
�� �� �� 50
�� �� �� 52
�� ��� �� �� � 46
�� �� ��
Windows �� 169
�� ��
� 299
�� �� 116
�� ��
� 131
336 ��� � ��� ���
�� �� 34
�� �� 221
�� ���
�� 4, 31
IBM.Application 235
IBM.ServiceIP 252
IBM.Test 259
IBM.TieBreaker 174
��� � �� 33
��� NodeNameList �� 33
��� OpState �� 35
��� ResourceType �� 34
�� �� �� 6, 168
��
� 90
��� 59
�� �� 28, 50
�� ��
� 126
��� 127
�� �� �� 141
�� �� 141
�� �� 131
�� �� 136
� �� �� 129
�� ��
� 136
��
� 28
��� Policy 25
���� 12
RSCT �� 20
��
� 92
��� 60
�� �� 53
�� ���� ��� �� 53
� �� 167
��
�� 142
�� � 142
�� �� 32
� � 52
�� 57
� 237, 255
�� 3
�� 49
AllowedNode 41
�� �� ( �)
Condition 63
ExcludedList 45
ForceOpState 260
IPAddress 256
MemberClass 57
MemberLocation 42
MemberOf 49
MonitorCommand 239
MonitorCommandPeriod 240
MonitorCommandTimeout 240
Name 63, 260
NetMask 256
Nme 43
NodeNameList 33, 237, 256, 260
NominalState 43
OpQuorumOverride 187
Priority 44
ProtectionMode 171, 242, 256
Relationship 63
ResourceType 34, 238, 256, 260
RunCommandsSync 241
SelectFromPolicy 57
SelectString 57
Source 63
StartCommand 238
StartCommandTimeout 240
StopCommand 239
StopCommandTimeout 240
Target 63
TimeToStart 261
TimeToStop 261
UserName 242
WriteToSyslog 261
�� �� 236
����� �� ���
� 138
����
�� �� 5, 168
�� �� 168
�� �� �� 6, 168
�� ���� 173
�� ( �)
�� ��� 169
�� �� ���� 173
����
� �� 15
������ ���� 16
�� � �� 12
�� 17
� ��� ��� 6, 174, 185
� 169
�� �� ��� 259
� �� ��
� 129
��� ��� 129
�� �� 130
��� �� �� 130
Aaddrgmbr � 50
addrpnode � 15
AllowedNode �� �� �� 41
AntiAffinity � 88
AntiCollocated � 85
AutomationDetails �� 46
Bbaroc � 224
Cchequ � 60
chrg � 52
chrgmbr � 53
collocated � 82
Condition �� 63
ConfigValidity
� �� 231
��� �� 303, 306, 307
�� � 230
�� 337
DDependsOn
� �� 72
�� �� 72
�� ��� 72
�� �� 74
DependsOnAny � �� 78
DependsOn� �� �� �� �� 72
DependsOn� �� �� 72
DependsOn� �� �� 74
EExcludedList �� 45
ExcludedNodes ��� 192
FForcedDownBy � 79
GGblResRM
�� �� 302
GDPS/PPRS
Multiplatform Resiliency 229
IIBM.Application 237
IBM.Equivalency
�� ��� 141
IBM.RecoveryRM 18
IBM.ServiceIP 288
�� 255
�� 252
IBM.TestRM 259
IFNotOffline � 81
IFNotOnline � 81
IFOffline � 81
IFOnline � 81
Integrated Solutions Console
�� �� ��� 145
��� 122
ISO 9000 xv
IsStartable � 89
Llsequ � 59
lsrel � 91
lsrg � 51
lsrpnode � 17
MManagedResource ���� �� �� 49
MemberClass ��� �� 57
MemberLocation �� �� �� 42
MemberOf �� 49
Membership ��� �� 57
mkequ � 59
mkrel � 90
mkrg � 50
mkrpdomain � 12
MoveStatus, � �� 47, 211
NName �� 63
Name �� �� �� 43
netmon.cf
�� 288
NominalState �� �� �� 43
OOpState �� �� �� 46
PPolicy
� Policy 1
��� Policy �� 194
Policy �� ��� 1
Policy �� 194
Policy �� 194
Policy �� � �� 194
Policy ���
� 138
Policy ���
��� 147
preprpnode � 12
Priority �� �� �� 44
ProtectionMode �� 171
RRecoveryRM ��� ��
�� �� 301
Relationship �� 63
ResourceRestartTimeout ��� 192
rmequ � 60
rmrel � 92
rmrg � 53
rmrgmbr � 53
rmrpdomain � 17
rmrpnode � 17
Ssamctrl � 232
samdiag � 221
SelectFromPolicy ��� �� 57
SelectFromPolicy �� 33
SelectString ��� �� 57
Source �� 63
StartAfter � 64
StartAfter/IfPossible � 67
startrpdomain � 12, 17
startrpnode � 15
StopAfter � 70
StopCommand
���� ��� 102
SA_RESET 102
StopCommandTimeout 102
stoprpdomain � 16
stoprpnode � 16, 17
System Automation for Multiplatforms
���� ���� � 287
���� 11
System Automation for Multiplatforms ��
�� �� 229
TTarget �� 63
TEC EIF �� � 225
TEC ��� �� 224
TEC(Tivoli Enterprise Console) 223
TEC(Tivoli Enterprise Console) �� ��
��� 223
TimeOut � RetryCount ��� 190
Tivoli �� �� ��(EIF) 224
338 ��� � ��� ���
TopGroup �� �� �� 46
VVMTIMEBOMB 171
XxDR
� 229
���� Linux ��� 230
��� ���(EIF)Tivoli �� �� �� 224
�� 339
340 ��� � ��� ���
���
���� ��: 5724-M00
Printed in Denmark by IBM Danmark A/S
SA30-3680-00