tivoli management framework 4 -...

532
Tivoli Management Framework 4.1 SA30-1681-00

Upload: others

Post on 04-Mar-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Tivoli Management Framework

���

�� 4.1

SA30-1681-00

���

Tivoli Management Framework

���

�� 4.1

SA30-1681-00

���

Tivoli Management Framework ���

��� ��

© Copyright IBM Corporation 1998, 2002. All rights reserved. Tivoli Systems ����� ���� ��, IBM �����

���� �� �� IBM �� ���� IBM ���� ��� �� Tivoli ��� ��� ���� ���� ��� � ���

�. IBM Corporation� �� �� �� �� � ���� �� ��� ��, ��, ��, ��, ��, ��� � � �� �� �

��� ���� ��, ��, ����� �� ���� �� � ���, ��� ��� ��� � ����. IBM Corporation

� � ���� IBM Corporation ��� �� ��� ��� �� ����� �� �� ���� ����� ���

�� �� �� ��� �� ��� ��� ��� � �� ��� �����. IBM Corporation� �� �� � ��� ��

�� �� ��� ��� ���� ����. � ��� �� ���� �� ��� ��� ��� �� �� “�����” ��

���. �� �� ��� � �� ���� ���� �� ��� ���� � �� �� ��� ��� ���� ����.

��

IBM, Tivoli, Tivoli �, AIX, AS/400, DB2, OS/2, Tivoli Enterprise � TME� �� �� �� ���� ���� IBM

Corporation �� Tivoli Systems Inc.� � �� ������.

Lotus � Lotus Notes� �� �� �� ���� ���� IBM Corporation � Lotus Development Corporation� ����

��.

Microsoft, Windows, Windows NT � Windows �� �� �� �� ���� ���� Microsoft Corporation� ���

�.

UNIX� �� �� �� ���� ���� Open Group� ������.

�� ��, �� � ��� � � ��� � �� ������.

����

� ����� Tivoli Systems �� IBM� ��, ���� �� ���� ���� � Tivoli Systems �� IBM� ���

�� � ���� �� ��� � ��� ����� ����. ��� ��, ���� �� ���� ���� �

Tivoli Systems �� IBM� ��, ���� �� ���� ��� � ��� ��� ����. Tivoli Systems �� IBM�

��� �� ��� �� �� ���� �� � �� ��� ����, ��� �� ��, ���� �� ���� �� �

�� � ����. Tivoli Systems �� IBM� ����� ��� ��� ��� �� ��� ��� ��� �� �� �

��� �� � ���. Tivoli Systems �� IBM � ��� � ��� ��� ������� � � � ��� �

�� �� �� � ����. � � ���� � � � � �� ���� ���� ����. ����� �� ���

� 135-270, ����� �� �� 467-12, ������, �� ��.�. ���� ����, ���:

080-023-8080�� ������.

© Copyright International Business Machines Corporation 2002. All rights reserved.

��

�� . . . . . . . . . . . . . . . . . vii

� �� ��� . . . . . . . . . . . . . vii

�� �� � � . . . . . . . . . . . . viii

� �� �� . . . . . . . . . . . . . viii

� �� ��� � . . . . . . . . . . . viii

��� �� �� . . . . . . . . . . . . ix

�� �� . . . . . . . . . . . . . . . ix

��� �� ��� �� . . . . . . . . . . x

� �� �� . . . . . . . . . . . . . x

� 1 � �� . . . . . . . . . . . . . . 1

Tivoli �� � . . . . . . . . . . . . . 1

�� �� . . . . . . . . . . . . . . . 2

�� �� . . . . . . . . . . . . . . 3

��� �. . . . . . . . . . . . . . 3

�� �� . . . . . . . . . . . . . 4

Tivoli ���� . . . . . . . . . . . . . 4

�� �� . . . . . . . . . . . . . . . 5

��� �� . . . . . . . . . . . . . . 6

�� �� �� . . . . . . . . . . . . 6

����� � ����� �� . . . . . . . 6

httpd �� . . . . . . . . . . . . . . 7

� �� . . . . . . . . . . . . . . 8

region� �� . . . . . . . . . . . . . 8

Kerberos �� . . . . . . . . . . . . . 8

�� � ���� �� . . . . . . . . . 9

�� �� �� . . . . . . . . . . . . 9

����� �� �� . . . . . . . . . . 10

�� �� . . . . . . . . . . . . . . 10

policy �� . . . . . . . . . . . . . 10

�� �� . . . . . . . . . . . . . . 11

RIM(RDBMS Interface Module) �� . . . . 11

RCS(Revision Control System) �� . . . . 11

���� �� . . . . . . . . . . . . 12

��� ���� �� . . . . . . . . . 12

�� �� . . . . . . . . . . . . . . 12

idlarg . . . . . . . . . . . . . . . . 14

idlattr . . . . . . . . . . . . . . . . 16

idlcall . . . . . . . . . . . . . . . . 18

idlexception . . . . . . . . . . . . . . 20

idlinput . . . . . . . . . . . . . . . 22

idlresult . . . . . . . . . . . . . . . 23

kadmin. . . . . . . . . . . . . . . . 25

kadmind . . . . . . . . . . . . . . . 27

kdb_destroy . . . . . . . . . . . . . . 29

kdb_edit . . . . . . . . . . . . . . . 30

kdb_init . . . . . . . . . . . . . . . 32

kdb_util . . . . . . . . . . . . . . . 34

kdestroy . . . . . . . . . . . . . . . 36

kerberos . . . . . . . . . . . . . . . 38

kinit. . . . . . . . . . . . . . . . . 41

klist . . . . . . . . . . . . . . . . . 43

kpasswd . . . . . . . . . . . . . . . 45

ksrvtgt . . . . . . . . . . . . . . . . 47

kstash . . . . . . . . . . . . . . . . 49

lcfd . . . . . . . . . . . . . . . . . 51

lcfd.sh . . . . . . . . . . . . . . . . 61

logls . . . . . . . . . . . . . . . . 62

objcall . . . . . . . . . . . . . . . . 64

odadmin . . . . . . . . . . . . . . . 67

odbls . . . . . . . . . . . . . . . . 82

odstat . . . . . . . . . . . . . . . . 84

oinstall . . . . . . . . . . . . . . . . 89

oserv . . . . . . . . . . . . . . . . 91

tivoli . . . . . . . . . . . . . . . . 96

tmcmd . . . . . . . . . . . . . . . . 98

tmstat . . . . . . . . . . . . . . . . 99

vdisp . . . . . . . . . . . . . . . . 102

w4inslcf.pl . . . . . . . . . . . . . . 104

waddicon . . . . . . . . . . . . . . 107

waddpath . . . . . . . . . . . . . . 109

waddrealm . . . . . . . . . . . . . . 110

wadminep . . . . . . . . . . . . . . 111

wauthadmin. . . . . . . . . . . . . . 113

wbkupdb. . . . . . . . . . . . . . . 115

wbindmsg . . . . . . . . . . . . . . 119

wbroadcast . . . . . . . . . . . . . . 121

wcatcher . . . . . . . . . . . . . . . 122

wcd . . . . . . . . . . . . . . . . 124

wchdep . . . . . . . . . . . . . . . 125

wchkdb . . . . . . . . . . . . . . . 127

wchknode . . . . . . . . . . . . . . 129

wchkpol . . . . . . . . . . . . . . . 131

wci . . . . . . . . . . . . . . . . 133

© Copyright IBM Corp. 2002 iii

wclient . . . . . . . . . . . . . . . 141

wclrblk . . . . . . . . . . . . . . . 147

wclrline . . . . . . . . . . . . . . . 149

wco . . . . . . . . . . . . . . . . 151

wconnect . . . . . . . . . . . . . . 157

wcpcdrom . . . . . . . . . . . . . . 161

wcpyfile . . . . . . . . . . . . . . . 163

wcrtadmin . . . . . . . . . . . . . . 164

wcrtgate . . . . . . . . . . . . . . . 166

wcrtjob . . . . . . . . . . . . . . . 168

wcrtpol . . . . . . . . . . . . . . . 171

wcrtpr . . . . . . . . . . . . . . . 172

wcrtprf . . . . . . . . . . . . . . . 174

wcrtprfmgr . . . . . . . . . . . . . . 176

wcrtqlib . . . . . . . . . . . . . . . 177

wcrtquery . . . . . . . . . . . . . . 178

wcrtrim . . . . . . . . . . . . . . . 180

wcrttask . . . . . . . . . . . . . . . 184

wcrttlib . . . . . . . . . . . . . . . 186

wdate . . . . . . . . . . . . . . . . 187

wdel . . . . . . . . . . . . . . . . 188

wdelep . . . . . . . . . . . . . . . 190

wdelgate . . . . . . . . . . . . . . . 191

wdeljob . . . . . . . . . . . . . . . 192

wdelpol . . . . . . . . . . . . . . . 193

wdelpr . . . . . . . . . . . . . . . 194

wdelrealm . . . . . . . . . . . . . . 195

wdelsched . . . . . . . . . . . . . . 196

wdeltask . . . . . . . . . . . . . . . 197

wdepot . . . . . . . . . . . . . . . 198

wdepset . . . . . . . . . . . . . . . 202

wdisconn . . . . . . . . . . . . . . 206

wdiskspace . . . . . . . . . . . . . . 208

wdistrib . . . . . . . . . . . . . . . 209

wdisttask . . . . . . . . . . . . . . 211

wdskspc . . . . . . . . . . . . . . . 213

wdtmsg . . . . . . . . . . . . . . . 215

weditini . . . . . . . . . . . . . . . 216

wedsched . . . . . . . . . . . . . . 218

wenblsched . . . . . . . . . . . . . . 222

wep . . . . . . . . . . . . . . . . 223

wepmgr . . . . . . . . . . . . . . . 233

wepupgd. . . . . . . . . . . . . . . 237

wexpnotif . . . . . . . . . . . . . . 239

wgateway . . . . . . . . . . . . . . 240

wgetadmin . . . . . . . . . . . . . . 247

wgetallinst . . . . . . . . . . . . . . 249

wgetdfpol . . . . . . . . . . . . . . 250

wgeteppol . . . . . . . . . . . . . . 251

wgetjob . . . . . . . . . . . . . . . 253

wgetkey . . . . . . . . . . . . . . . 254

wgetpolm . . . . . . . . . . . . . . 255

wgetpr . . . . . . . . . . . . . . . 258

wgetprf . . . . . . . . . . . . . . . 259

wgetquery . . . . . . . . . . . . . . 261

wgetrim . . . . . . . . . . . . . . . 262

wgetsched . . . . . . . . . . . . . . 264

wgetsub . . . . . . . . . . . . . . . 266

wgettask . . . . . . . . . . . . . . . 267

wgetval . . . . . . . . . . . . . . . 269

whostid . . . . . . . . . . . . . . . 270

whttpd . . . . . . . . . . . . . . . 271

wiconv . . . . . . . . . . . . . . . 273

wident . . . . . . . . . . . . . . . 274

widmap . . . . . . . . . . . . . . . 275

wifconfig . . . . . . . . . . . . . . 278

winsblk . . . . . . . . . . . . . . . 280

winsline . . . . . . . . . . . . . . . 282

winstall . . . . . . . . . . . . . . . 284

winstdir . . . . . . . . . . . . . . . 287

winstendpt . . . . . . . . . . . . . . 288

winstlcf . . . . . . . . . . . . . . . 289

winterp . . . . . . . . . . . . . . . 295

wlcftap . . . . . . . . . . . . . . . 296

wln . . . . . . . . . . . . . . . . 298

wlocalhost . . . . . . . . . . . . . . 300

wlocktmr . . . . . . . . . . . . . . 301

wlocpath. . . . . . . . . . . . . . . 302

wlookup . . . . . . . . . . . . . . . 304

wls . . . . . . . . . . . . . . . . 306

wlsconn . . . . . . . . . . . . . . . 307

wlsendpts . . . . . . . . . . . . . . 309

wlsinst . . . . . . . . . . . . . . . 310

wlsnotif . . . . . . . . . . . . . . . 312

wlspol . . . . . . . . . . . . . . . 314

wlspolm . . . . . . . . . . . . . . . 315

wlsrealms . . . . . . . . . . . . . . 317

wlssub . . . . . . . . . . . . . . . 318

wlstlib . . . . . . . . . . . . . . . 319

wmailhost . . . . . . . . . . . . . . 320

wmannode . . . . . . . . . . . . . . 321

wmcast . . . . . . . . . . . . . . . 322

iv Tivoli Management Framework: ���

wmdist . . . . . . . . . . . . . . . 326

wmdistgui . . . . . . . . . . . . . . 337

wmemsize . . . . . . . . . . . . . . 338

wmerge . . . . . . . . . . . . . . . 339

wmrgaef . . . . . . . . . . . . . . . 340

wmrgini . . . . . . . . . . . . . . . 342

wmv . . . . . . . . . . . . . . . . 343

wmvrim . . . . . . . . . . . . . . . 345

wpatch . . . . . . . . . . . . . . . 347

wping. . . . . . . . . . . . . . . . 349

wpopulate . . . . . . . . . . . . . . 350

wputeppol . . . . . . . . . . . . . . 351

wputpolm . . . . . . . . . . . . . . 352

wpwd. . . . . . . . . . . . . . . . 355

wrcs . . . . . . . . . . . . . . . . 356

wrcsdiff . . . . . . . . . . . . . . . 361

wrcsmerge . . . . . . . . . . . . . . 363

wrefresh . . . . . . . . . . . . . . . 365

wregister. . . . . . . . . . . . . . . 366

wrestart . . . . . . . . . . . . . . . 368

wrimtest . . . . . . . . . . . . . . . 369

wrimtrace . . . . . . . . . . . . . . 371

wrlog . . . . . . . . . . . . . . . . 373

wrm . . . . . . . . . . . . . . . . 376

wrmnode . . . . . . . . . . . . . . 377

wrplblk . . . . . . . . . . . . . . . 379

wrplline . . . . . . . . . . . . . . . 381

wrpt . . . . . . . . . . . . . . . . 382

wrunas . . . . . . . . . . . . . . . 390

wruninvquery . . . . . . . . . . . . . 391

wrunjob . . . . . . . . . . . . . . . 394

wrunquery . . . . . . . . . . . . . . 396

wruntask. . . . . . . . . . . . . . . 398

wschedjob . . . . . . . . . . . . . . 402

wserver . . . . . . . . . . . . . . . 406

wsetadmin . . . . . . . . . . . . . . 413

wsetdfpol . . . . . . . . . . . . . . 415

wseterr . . . . . . . . . . . . . . . 416

wsetjob . . . . . . . . . . . . . . . 417

wsetlang . . . . . . . . . . . . . . . 419

wsetpkey . . . . . . . . . . . . . . 421

wsetpm . . . . . . . . . . . . . . . 422

wsetpr . . . . . . . . . . . . . . . 423

wsetquery . . . . . . . . . . . . . . 425

wsetrim . . . . . . . . . . . . . . . 427

wsetrimpw . . . . . . . . . . . . . . 429

wsettap . . . . . . . . . . . . . . . 430

wsettask . . . . . . . . . . . . . . . 432

wsetval . . . . . . . . . . . . . . . 434

wsndnotif . . . . . . . . . . . . . . 436

wstarthttpd . . . . . . . . . . . . . . 438

wstartsched . . . . . . . . . . . . . . 439

wstophttpd . . . . . . . . . . . . . . 440

wsub . . . . . . . . . . . . . . . . 441

wsupport. . . . . . . . . . . . . . . 443

wtailnotif . . . . . . . . . . . . . . 446

wtaskabort . . . . . . . . . . . . . . 448

wtimezone . . . . . . . . . . . . . . 450

wtemp . . . . . . . . . . . . . . . 451

wtll . . . . . . . . . . . . . . . . 452

wtmrname . . . . . . . . . . . . . . 455

wtrace . . . . . . . . . . . . . . . 456

wuname . . . . . . . . . . . . . . . 460

wuninst . . . . . . . . . . . . . . . 461

wunstmn. . . . . . . . . . . . . . . 464

wunsub . . . . . . . . . . . . . . . 466

wupdate . . . . . . . . . . . . . . . 468

wvalidate . . . . . . . . . . . . . . 470

wxterm . . . . . . . . . . . . . . . 471

� 2 � Tivoli �� policy . . . . . . . . 473

����� policy . . . . . . . . . . . . 473

���� ��� policy . . . . . . . . . . 474

�� policy ��� . . . . . . . . . . 474

��� �� policy ��� . . . . . . . . 474

��� ���� policy . . . . . . . . . 475

�� policy ��� . . . . . . . . . . 475

��� �� policy ��� . . . . . . . . 475

����� policy . . . . . . . . . . 476

���� ��� � ��� ���� policy 477

����� policy ��� . . . . . . . . . 478

allow_install_Policy . . . . . . . . . . . 479

after_install_policy . . . . . . . . . . . 483

login_policy . . . . . . . . . . . . . 486

select_gateway_policy . . . . . . . . . . 489

���� ��� policy ��� . . . . . . . 493

pm_def_profile_managers . . . . . . . . . 494

pm_def_profile_types . . . . . . . . . . 495

pm_def_subscribers . . . . . . . . . . . 496

pm_val_remove_subscribers . . . . . . . . 498

pm_val_remove_subscription . . . . . . . . 499

pm_val_subscribers . . . . . . . . . . . 500

pm_val_subscription . . . . . . . . . . . 501

�� v

��� ���� policy ��� . . . . . . . 502

tl_def_dist_mode . . . . . . . . . . . . 503

tl_def_man_nodes . . . . . . . . . . . 504

tl_def_prof_mgrs . . . . . . . . . . . . 505

tl_def_set_gid . . . . . . . . . . . . . 506

tl_def_set_uid . . . . . . . . . . . . . 507

tl_val_man_nodes. . . . . . . . . . . . 508

tl_val_prof_mgrs . . . . . . . . . . . . 509

tl_val_set_gid . . . . . . . . . . . . . 510

tl_val_set_uid . . . . . . . . . . . . . 511

�� . . . . . . . . . . . . . . . . 513

vi Tivoli Management Framework: ���

��

Tivoli® Management Framework� Tivoli �� �� �� �� ������.

Tivoli Management Framework Tivoli Enterprise ������ �� ����

�� �� ��, ��� ���� ���, ��� ��� ��� � � ��� ��

� ���� �� �� �� ����� ��� � ����.

Tivoli Management Framework� Tivoli Management Framework� �� Tivoli

Enterprise ������� ���� ��� �� ��� � �� �����. Tivoli

Management Framework� ���� ����� �� ���� �����, ����

����� ����.

v DHCP(Dynamic Host Configuration Protocol)� ���� � �� ���

IP ��� ��� � ��� �� DHCP ���

v ���� ��� � ���� �� Tivoli ����� ��� � ��� �� �

�� ����

v Tivoli ��� ������ ��� ��� �� ��� � Tivoli ��� �

�� �� � ��� �� ����

v �� Tivoli Enterprise �������� ������ �� ��� ��� ��

����� ����� �� RIM(RDBMS Interface Module)

v ��� �������� �� �� � ��� � ��� �� �� ��

Tivoli Management Framework� �� Tivoli ������ Tivoli Management

Framework� ���� ���� ��� � ����.

� ��� Tivoli Management Framework ��� �� ��� ��� �����.

� ��� ��� Tivoli ���� ���� �� �� ��� � �����. � �

�� �� Tivoli �� policy �� �� ����.

�� ������ ����� ��� �� ��� � ����� � � ����. �

�� ��� �� ����� �� Tivoli Management Framework ��� ��

� � ����.

� �� ���

� ���� Tivoli �� ���� � ��� ���� ��� ���� ���

� ���. ��� Tivoli ���� ���� �� �� ���� �� �����. �

�� ���� �� ��� �� ��� �� ���.

v UNIX® �� Microsoft® Windows® �� ��

© Copyright IBM Corp. 2002 vii

v ����

v Motif �� Windows ��

�� ��� � �

Tivoli��� ��� � �� �� �����.

v Tivoli Management Framework �� �� ���

Tivoli �� ��� ���� �� ����. �� Tivoli Management

Framework ���� ����.

v Tivoli Enterprise � ���

Tivoli Software Installation Service � Tivoli Management Framework� ��

�� �� ��� � ���� ���� ���� Tivoli Management

Region(Tivoli region)�� Tivoli Enterprise™ ������ � � �����

� �� ����. Tivoli Enterprise ������� Tivoli Management Region

�� (Tivoli ��), �� ��, �����, ����� � RIM(RDBMS Interface

Module) ��� �����. � ���� � ��� � ���� �� �

�� �����.

v Tivoli Management Framework ��� ���

Tivoli Management Framework ���� ���� �� �� � ��� ���

�. Tivoli ��� � ����� ���� ���� �� ���� �����.

v Tivoli Management Framework Maintenance and Troubleshooting Guide

Tivoli �� ������ �� �� � ��� � �� ��� ��� ��

����.

� �� ��

Tivoli Management Framework ���� �� ��� ����.

v � 1 , “��”

Tivoli Management Framework ��� �� ��� ��� �����.

v � 2 , “Tivoli �� policy”

Tivoli Management Framework ���� �� �� � ��� �� policy�

����.

� �� ��� ��

� ���� �� �� ��� �� �� �� � �����. � � ��

� ����.

viii Tivoli Management Framework: ���

�� ��, ��, �� �, �� �� ��, URL, � � �� �� �, ��

�� �� �� ��� �� �� �� ��� �� ��� ����.

����

�� � �� �, ���� � ��, � � � ����� �

���.

������

�� ��, � � ��� ���� ������ �� ����.

� ���� �� �� ��� ��� �� � UNIX � ����.

v Windows ��� ���� ���� �� ��� $variable %variable%� �

�, ��� ���� � ��(/)� ���(\)� �����.

v Windows�� bash ��� ���� UNIX � ������.

��� �� ���

�� ����� �� �� CD� PDF ���� ���� ����.

IBM� �� ��� ��� �� ���� ��� �� �� �� ��� Tivoli

Information Center� �����. ��� Tivoli Customer Support � �����

Tivoli Information Center� ��� ��� ��� � ����.

http://www.tivoli.com/support/documents

Tivoli Information Center�� �� ����� �� ��� ���� PDF ��

HTML ���� �� ����. �� �� ��� �� ��� �����.

�: Letter �� �� ��� ��� PDF ��� ���� ��, Adobe Acrobat �

� �� ��(� → ��� �� �� ���)�� ���� ��� ���

���� Letter �� ��� �� ��� �� �� ��� ����� ��

��.

�� ��

��� � ����� ����� Tivoli �� ��� � ����.

http://www.elink.ibmlink.ibm.com

� ���� Publications� ��� �� � �����.

�� ��� � ���� ��� �� ����.

v �� �: [email protected]

v �� ��.�. ����: 080-023-8080, 02-3781-7114

�� ix

��� �� ��� ��

��� Tivoli ��� ��� �� ���� �� ���� ���, ���� �

���� � �����. ��� ��� �� ���� ����� ��� ��� �

���� ������.

v �� �: [email protected]

v � ��� �� �� ��: http://www.tivoli.com/support/survey/

�� �� ��

Tivoli ��� ��� �� ��, Tivoli Customer Support� ��� � ����. �

� � ����� Tivoli Customer Support Handbook ������.

http://www.tivoli.com/support/handbook

� �� ���� ���� �� Tivoli Customer Support�� �� �� � ��

� � ��� �����.

v �� � ���

v ��� ��� � �� � ��

v �� ���� �� � �� ��

x Tivoli Management Framework: ���

� 1 � ��

Tivoli �� ���� Tivoli ��� ���� � UNIX ����� ��� �

� � � ����. �� � �� � ���� � �� ��� ���

� ���� �� ��� �����.

Tivoli� � �� ��� �� Tivoli ��� ���� � w� �����. �

� �� ���� ��� ���� ��� ���� w+�+��� ���� ��

���. �� ��, ���� ����� wcrttask �� ������. �� ��

�� ��� wdeljob �� ������.

��� ��� �������� ����� Tivoli �� ������ �� ��

�� � �� � �����. �� ��, ��� ����.

v � � ��� �� ��� ��� ��� ����� ��� � ���

�.

v � ��� �� � �� �� ������.

v �� �� ��� � ����.

Tivoli �� ��

Tivoli Management Framework�� setup_env.sh � setup_env.csh ��� �

��, � �� ���� ��� �� �� �� ��� � � � ����.�

� ��� Tivoli Management Region(Tivoli region)� � �� �� ����

�� �� �����.

Tivoli �� ��� ���� �� �� ������.

1. Tivoli ����� �� Tivoli Management Region ��(Tivoli ��)� ���

����.

2. �� � ��� ������.

UNIX �� �� ��� ��, �� � ��� ������.

v Bourne �� ��� �� �� �� � ����.

. /etc/Tivoli/setup_env.sh

v C �� ��� �� �� �� � ����.

source /etc/Tivoli/setup_env.csh

Windows �� �� ��� ��, �� � ��� ������.

v bash �� �� �� � ����.

© Copyright IBM Corp. 2002 1

%SystemRoot%/system32/drivers/etc/Tivoli/setup_env.sh

v �� ������ �� �� � ����.

%SystemRoot%\system32\drivers\etc\Tivoli\setup_env.sh

v ��� Tivoli �� ����� Windows ��� ����� �� ��

������.

a. ��� ��� �� Tivoli ��� �� ����(MS-DOS) �

����.

b. �� ����.

c. ��� ����.

d. �� ��� ���� � ��� �� �� � ����.

%SystemRoot%\system32\cmd.exe /kc:\%SystemRoot%\system32\drivers\etc\Tivoli\setup_env.cmd

�� Tivoli ���� �� ��� ��� � ���.

�� ��

� �� �� �� �� �� ��� ���� �� �� �����.

[ ] ��� �� �����. ���� ��� � �� �����.

... ���� �� ��� � �� �� � ��� � �� �����.

| �� ���� ��� �����. �� ��� ���� ���� �� �

�� � ����. �� � ��� � � �� � ��� �� ��

��.

{ } �� � ��� ��� �� �� ��� � �� �� ��� �����. �

�� ���� �� ���� ����([ ]).

\ ���� �� ��� �� �����. � � �����.

�� ��, ��� ����.

logls [-Dofls] [-k dir] [-m maxdlen] log_name...

log_name logls ��� ��� �� �����. log_name �� �� �� ��(...)

� �� �� �� �� � ��� � �� �����. �� �� �� ��

�� � ��� ���� �����.

��� ��� wchkdb �����.

wchkdb [-o outfile] [-u] [-x] {-f infile | -i | object...}

2 Tivoli Management Framework: ���

� ���� -f infile, -i � object �� �� ��� � ����. ���({})� �

�� �� � ��� ��� �����. object �� ���� ���� ��,

����� � ��� �� � �� ID� ��� � ����.

� ��� �� � ��� �� ���� � �� �� ���� �� ��

� ��� Options ��� ��� �� �����.

���� ��

��� ����� ���� ���� ��� �, ��� ���� � ����

� � �� �� ��� ���� ��, ����� ��� � ����

�. ����� ��� � � policy region� ��� � �� �������

�� ���� ��� ��� ��� ��� ���.

��� �� ��� � �� � �� �� � ��� ����.

v ��� �

v �� ��

��� ����� ���� Tivoli ���� � ��� �� � �����.

��� � �� ���� � � ����. �� � � ��� �� ����

���� �� ��� � ������.

��� ��

� ����� ��� �� � �� ��� ����. ��� � �� �

���� ��� � � ����� ��� ����. � �� � � �

��, �� ��� �����. �� ��, lp01��� ���� �� lp01� ��

� �����. �� wls � wmv ��� ���� ���� ��� �� � ��

�����.

wls @PolicyRegion:Serverswmv @ManagedNode:ayers-rock @PolicyRegion:Servers

��� � �� ���� �� ���� �� @type:name���. ��� type

�� ��� name �� �� ����� ��� �� �������.

� ����� �� ��� � ��� ��� Tivoli region ��� �� �

�� ��� ����. ��� �� � � ��� ��� region ���

�� �����. ��� � �� ��� �� ��� ���� ��, �� ��

�� ����� ��� ���� ����.

��� �� ���� �� ��� �� � � ��� � ����, ��� �

� �� �� region � ���� �� ��� ������.

wls @ManagedNode:moria#moria-Region

� 1 �� 3

���� ��

�� ��� �� ���� �� �� � � ������ ���� � ��

��. �� ��� ��(/) ��� ���� �����. �� ��� �� �� ��

�� ��(.) �� ��(..)� ��� ��� ��� ��� � ����. ��

wls � wmv ��� ���� ���� �� �� �� � �� �����.

wls /Regions/Serverswmv ../Servers/ayers-rock /Regions/Servers

�� �� � �� ��� �� �� �� distinguished/parent/[type:]name

��, ���� distinguished� �� ��, parent� �� �� �� ����,

type �� ��� ���� � ��� name �� �� ����� �� �

������. �� ��� ��� �� � �� �� ��� � �� �

���� ����� type ��� �� �����.

�� ��, policy region Engineering� Servers�� ���� ��� Servers�

� policy subregion� �� ������. �� �� � ���� ����

���� ���� �, �� ��� � ����.

wls /Regions/Engineering/ProfileManager:Servers

�� ��� ���� �� ���� ��, ��� ��� ��� region �� ��

���. ��� �� ��� ����, ��� � �� ��� �� �� ���

���� �� ������ ���. � ���� �� /Administrators/Name

��, ��� Name ���� Tivoli Management Framework ����.

��� wcd �� ��� ��, Tivoli Management Framework�� �� ���

��� ��� ���� ��� �����. ��� � ���� ��� ���

� ���, �� �� Tivoli region� ���� ��� �� ��� ��� �

� � ����. �� ��, ���� region A�� John(��� � johnc)��

� ���� region B� John(��� � jsmith)��� � �� ���� ��

������. ���� ��� ��� ��� �, Tivoli Management Framework�

/Administrators/John �� �����. �� �� ��� jsmith� ��

�� �� ���. Tivoli Management Framework� ���� ���� ��

�� ��� � �� ���, �� ���� ��� ��� ���� ����.

� ��� ���� ��� wcd �� ��� � ����.

Tivoli ���

Tivoli ��� �� ���� ���� ���, ���� �� ��� Tivoli ��

������ �� �� �� ���� ��� ��� ���� � ����. �� �

�, �� ���� ��� ���� ���� Tivoli User Administration � �

���. Tivoli User Administration ��� ��� ��� ��� ��� �

4 Tivoli Management Framework: ���

� ��� �� �� ���. �� ���� �� ��� ����, Tivoli

User Administration�� ��� ��� ���� ��� �� ���. ���

���, Tivoli ������� ���� � ��� �� �� ���.

� ��� ��� �, Tivoli� ���� ��� �����. ���� ���

����� ���� �� ��� �� �����. ���� ��� ��� ���

�, �� ��� ��� � ��� ����.

Tivoli ���� ���� ���� � ��� ���� ��� ���� ���

� ����. �� �� � ��� ���� ��� � ����.

v ���� ����� ��� ����.

v ���� ���� � ��� ���� ����.

v ���� ��� � ����� ��������.

v ���� �� ��� ��������.

��� � ���� ������ ��� ���� �����. ��� � �

���� ����, Tivoli� ���� � ������� ��� �� � ��

�����. ����� ��� ��� ����� �� � ����.

������ �� ����, �� ���� �� ��� � ��� �

����. �� ���� ��� �� ���� ��� �� ��� �����

��� � ����. �� ��, ������ �� ��� ���� � �� ��

� ����� ���� ���� � ����. ��� 99���� ���

�� ������ ����, �� ���� �� ������ ����� ���

� ����. ��� 5���� ��� � ���� ����, �� ���� ���

�� ��� ��� ��� ����� � ����.

Tivoli ��� ����� � ���� � ���� �� �����. Tivoli

����� ���� ���� ��� � ������ �����. ��� �

� �� ���� ���� ��� � ���, �� �� ����� �� ��

��� ������� �� Tivoli ���� ��� �����.

��� ��

�� ���� Tivoli Management Framework �� ����� �����. �

��� �� � � ��� �� ��� � �� ����.

� 1 �� 5

��� ��

�� ��

wauthadmin Tivoli region�� Tivoli ���� �� �� ��, �� �� ��

��.

wcrtadmin ��� Tivoli ���� �����.

wgetadmin Tivoli ���� �� ��� �����.

widmap ��� ��� �� ��� �����.

wsetadmin Tivoli ���� �� ��� �����.

wsetlang Tivoli �� �� �� �� ��� ��� �� �� ��� ���

��.

�� �� ��

�� ��

wcrtprf ��� ���� ����� �� ���� �����.

wcrtprfmgr ���� ���� �����.

wdistrib �� ��� ���� �� �����.

wgetprf �� ��� ���� �� �� �����.

wgetsub ���� ���� �� �����.

wlssub ���, NIS ��� �� ���� ���� ���� ���� ���

� �����.

wpopulate ��� ����� ���� ���.

wsetpm ���� �� ��� ���� ���� ���� �� �� ��

�� ���� ���.

wsub Tivoli �� ���� ���� �����.

wuninst ��� ��� �� Tivoli region�� Tivoli ������ � �

����.

wunsub ���� ���� �� ���� Tivoli �� �����.

wvalidate ����� ��� �� policy ���� ����� ��� ���

��.

����� � ����� ��

�� ��

lcfd ������� ����� �(lcfd) ����� Windows NT, Windows

2000 �� Windows XP �� ���� ����� � ���� ��

���.

lcfd.sh UNIX ������� ����� �(lcfd) ����� �����.

w4inslcf.pl OS/400®

���� ������ ����.

waddpath �� �� ��� ���� ��� �� �� ���� �� �����

(Windows� �).

wadminep ����� ������ � ����� �����.

6 Tivoli Management Framework: ���

�� ��

wclrblk ���� � �� �����.

wclrline ���� � � �����.

wcpyfile .NCF �� ����� �� ��� � �� ���(NetWare� �).

wcrtgate ����� ������ �����.

wdelep ������ �����.

wdelgate ����� ������ �����.

wdskspc �� ��� �� ��� � �����(DOS, Windows � NetWare�

�).

weditini .INI ��� �� ��, �� � � �����.

wep ����� ��� ��� ����� ��� � ��� �����.

wepmgr ����� ���� �� �� �� �����.

wepupgd � �� ������ ������ �������.

�: wadminep ������ �����.

wgateway ����� ������ �� �� ����� �� �� �����.

wgetkey ���� ��� �� � �� �����(Windows� �).

wgetval ���� �� �����(Windows� �).

winsblk ��� � �� �����.

winsline � � ��� �����.

winstlcf UNIX, Windows NT, Windows XP � Windows 2000 ������� �

����� ����.

wlsendpts ���� ���� ��� � ������ �����.

wmrgini ��� .INI ���� �� � ��� ��� ��� �����.

wrestart ��� �� �� � ��� �� �� �����(Windows� �).

wrplblk �� �� � �� �����.

wrplline �� �� � � �����.

wseterr �� ����� �� �� ���� �� ��� ����.

wsetval ���� � ����(Windows� �).

httpd ��

�� ��

waddrealm HTTP 1.0 �� ��� HTTP �� �����.

wdelrealm ��� HTTP 1.0 �� ��� �����. ��� ��� ���� �� HTTP

� �� �� ���.

whttpd Tivoli HTTP ���� � ��� HTTP � ����(third-party) HTTP

��� �����.

wlsrealms ��� ��� HTTP 1.0 �� ��� �����.

wstarthttpd Tivoli HTTP � �����.

wstophttpd Tivoli HTTP � �����.

� 1 �� 7

�� ��

�� ��

oinstall Tivoli �� ��� ���� Windows ��� ���� �, �

� �� �����.

wclient Tivoli ������ ����.

wcpcdrom � ���� CD�� ��� ���� �����.

winstall Tivoli �� ����.

winstlcf UNIX, Windows NT, Windows XP �� Windows 2000 ����

��� ������ ����.

wmailhost Windows �� ���� Tivoli Management Framework� ����

�� ��� �����.

wpatch Tivoli ��� ����.

wserver Tivoli Management Region ��� ����.

wsettap Tivoli �� ��� �� ����(Windows� �).

region� ��

�� ��

wconnect � Tivoli region �����.

wdisconn � Tivoli region �� �����.

wlookup ��� �� ��� �����.

wlsconn ��� ��� �� �� Tivoli region �� �� ��� �����.

wregister � ����� �� �����.

wtmrname � Tivoli region� � ���� �����.

wupdate � � ����� �� �������.

Kerberos ��

�� ��

kadmin Kerberos ������ ��� ���� � ��

kadmind Kerberos ������ ��� ���� �

kdb_destroy Kerberos �� �� ������� �����.

kdb_edit Kerberos �� �� ������ � ��

kdb_init Kerberos �� �� ������� ������.

kdb_util Kerberos �� �� ������ � ��

kdestroy Kerberos �� �����.

kerberos Kerberos �� ���� �����.

kinit Kerberos ��� � ��

klist �� �� �� Kerberos �� �����.

kpasswd ���� �� Kerberos ��� �����.

ksrvtgt ��� � ���� Kerberos �� �� �� ��� ����.

8 Tivoli Management Framework: ���

�� ��

kstash Kerberos �� �� ������ ��� � �����.

�� �� ���� ��

�� ��

idlarg idlinput ��� ��� �� ���� �� �� �����.

idlattr �� � �� ����.

idlcall ����� IDL(Interface Definition Language) �� ���� �

��� �����.

idlexception ���� �� ��� �����.

idlinput ���� �� � �� �� �� �� ���.

idlresult �� �� � �� �� ���� ��(�� ��)� �����

�.

logls ���� �� ��� �� ��� �� �����.

objcall �� �� �� �����.

odadmin �� ���� �����.

odbls �� ������� �� �����.

odstat �� � �� �� ��� ��� �����.

oserv �� ���� ��� ���� �� �����.

tmcmd �� �� ����� ��� ����� ���.

tmstat �� ���� � �� ��� ����.

wlocalhost Windows ����� � ��� � ����(Windows NT,

Windows XP � Windows 2000� �).

wlocktmr �� Tivoli region ���� �� �����.

wmailhost Windows NT, Windows XP � Windows 2000 ����� Tivoli

Management Framework� ���� �� ��� �����.

�� �� ��

�� ��

wclient �� ��� �����.

wdate �� ��� �� �� �� �����.

wdiskspace ��� �� ��� ��� ���(�� ���)�� ��� � �� �

�� ����� �� �����.

whostid ��� �� ��� ��� ID� �����.

wifconfig �� ���� IP ����� ����� �����.

winstdir ��� �� ��� � ��� ��� �����.

winterp ��� �� ��� ����� �� �����.

wmannode �� ��� �� �����.

wmemsize �� ��� �� �� ��� ��� ����.

wtimezone ��� ���� ��� � �����.

� 1 �� 9

�� ��

wuname �� �� ��� �����.

wunstmn �� ���� Tivoli Management Framework �� �����.

wxterm UNIX �� ���� X �� �� �����.

����� �� ��

�� ��

lcfd �������� wake-on-LAN �� �� ��� � �� ��� �

���� �(lcfd)� �����.

wadminep ����� � ���� �� wake-on-LAN �� �� ����

� wake-up �� ��� �� ������ �� �� �� ���

��.

wdepot MDist 2 repeater ��� �����.

wep Tivoli Mobile Computing ��� �� �� MDist 2 �� �� �

��� Windows ����� �� �� ����� ��� �� ��

��� ��� �� ��� �����.

wmdist MDist 2 repeater� ��� ��� �����.

wmdistgui � ��� ���� �� ���� MDist 2 ���� Distribution Status

Console �����.

wrpt �� ��� repeater(MDist � MDist 2�)� ��� MDist repeater

� ���� MDist ��� �����.

�� ��

�� ��

wbroadcast � Tivoli ���� ���� �� �����.

wexpnotif �� ���� ��� ������.

wlsnotif ���� ���� ��� �����.

wsndnotif � � ��� ��� ��� �� ��� �����.

wtailnotif �� ��� ���� ��� ��� ��� � �� ����.

policy ��

�� ��

wchkpol policy ���� policy region ��� �����.

wcrtpol ���� � ��� policy ��� �����.

wcrtpr policy region �����.

wdelpol �� policy ��� �����.

wdelpr policy region �����.

wgetdfpol �� policy ��� �����.

wgeteppol ����� policy �� �� �� � ��� �����.

wgetpolm �� �� ��� �� policy ���� ��� �� �� �����.

10 Tivoli Management Framework: ���

�� ��

wgetpr policy region� �� �����.

wlspol Tivoli ��� � �� ��� policy �� � ��� �� ��

� �����.

wlspolm Tivoli ��� �� policy ���� �����.

wputeppol ��� ����� policy �� �� �����.

wputpolm policy ���� �� �����.

wsetdfpol ���� �� �� policy� ����.

wsetpr ��� policy� policy region� ��� policy ��� �� ��

�� �� �� ���� ��� policy region� �� �� ��

����� �����.

�� ��

�� ��

wcrtqlib �� ����� �����.

wcrtquery ��� �����.

wgetquery ��� �� ��� �����.

wruninvquery �� �� ��� �� ������� ��� �� ��� ���� �

� ��� �� ID �� �����.

wrunquery ��� ��� ��� � � �� ��� �����.

wsetquery ��� �� ���.

RIM(RDBMS Interface Module) ��

�� ��

wcrtrim RIM ��� �����.

wgetrim RIM ��� �� ��� �����.

wmvrim �� �� ��� RIM ��� ����.

wrimtest RIM ��� ��� � ��� �����.

wrimtrace RIM ��� �� �� �� �� �� �� ���� ���

�.

wsetrim RIM ��� �� ������ ��� �����.

wsetrimpw RIM �� ������� �� RIM ��� ����.

RCS(Revision Control System) ��

�� ��

wci RCS �� �� ����.

wco RCS �� �� �����.

wident �� �����.

wrcs RCS �� � �����.

� 1 �� 11

�� ��

wrcsdiff RCS �� � ���.

wrcsmerge RCS �� �����.

wrlog RCS ��� �� �� �� �� ���� �����.

���� ��

�� ��

wdelsched ������ �� �����.

wedsched �� ����� �� �� ���.

wenblsched ��� ��� ����� ���� ��� ����.

wgetsched �� ���� ��� �� ��� �� ��� �����.

wschedjob ��� ����� �� �� ��� ����.

wstartsched Tivoli ����� �����.

��� ����� ��

�� ��

wcrtjob ��� ����� �� �����.

wcrttask ��� ����� ���� �����.

wcrttlib ��� ����� �����.

wdeljob ��� ������ �� �����.

wdeltask ��� ������ ���� �����.

wdisttask ��� ����� �� ��� ���� ��� �����.

wgetjob ��� �� �����.

wgettask ���� �� �����.

wlstlib ��� ����� �� �����.

wrunjob ��� ����� �� �� �����.

wruntask ��� ����� �� ���� �����.

wsetjob ��� �� ����.

wsettask ���� �� ����.

wtaskabort ��� ���� �� ����� ���� �����.

wtll ��� ���� ��� �� � �����.

�� ��

�� ��

tivoli Tivoli ��� ��� ����� �����.

vdisp � �� ��� ��� �����.

waddicon Windows ���� ��� ��� ��� �����(Windows 95,

Windows NT, Windows XP � Windows 2000� �).

12 Tivoli Management Framework: ���

�� ��

wbindmsg � ��� ������ ��� ��� ��� � ��� ���

���.

wbkupdb Tivoli ������� ��� �����.

wcatcher Tivoli Management Framework �� ������� � ����� �

��� �� Tivoli Management Framework �� Tivoli �����

�� �� ��� �� �� ��� ����.

wcd �� �� �� �����.

wchdep ��� �� �� � ������.

wchkdb Tivoli ������� ��� �����.

wchknode Tivoli ������ ���� �� ��� �� �� ��� ���

�����.

wdel Tivoli �������� ��� �����.

wdtmsg Tivoli ���� ��� � �� ���� ����.

wdepset ���� ��� �� �����.

wgetallinst �� ��� � ����� ����.

wiconv ��� �� �� �� ��� ��� � �� ���� �� �� ��

� �����.

winstendpt ����� �� ��� �� � ����.

wlcftap Windows ������ Tivoli �� �� �� ����.

wln ��� ��� �����.

wlocpath � ���� ���� �� ��� �����.

wls ��� ��� ��� �����.

wlsinst Tivoli Management Region� �� ��� ��� �����.

wmerge � �� ��� �� �� �����.

wmrgaef ���� �� Tivoli Management Framework �� Tivoli ����

��� ��� �� �� ��� �����.

wmv �� �� ��� ����.

wping ����� �� ��� �� �����.

wpwd �� �� �� �����.

wrefresh Tivoli �� � �� �����.

wrm ���� ��� �����.

wrmnode Tivoli ���� �� ��� �����.

wrunas ��� ��� �� �����.

wsetpkey ��� ���� ����.

wsupport ������ ��� ��� � �� � �� ��� �����.

wtemp Tivoli ��� �� �� ���� ���� � ����.

wtrace �� ���� ��� �����.

� 1 �� 13

idlarg

idlinput ��� ��� �� ���� �� �� �����.

��

idlarg element_offset [option_list]

��

idlarg �� idlinput ��� ��� �� ���� �� �� �����. ���

��� ��� � � � �� ��� �� ����. ��� ��, � �� �

� �� 0(��) �����. ��� ����, � �� 0(��)� � ��� �

����.

��

element_offset

�� ���� �� �� �� �� ��� �����. � � �

� ��� 1�, � � �� ��� 2�, � ���� ���. element_offset

��� ���.

option_list

cleartext ���� �� �� �����. option_list� ���� ���� �

��, idlarg� EOF� ��� ��� � � �� ������.

��

�� ����� in � inout �� �����.

interface test {exception ex { long code; string reason; }; struct s { long l; char c; };s op(in s a, inout s b, out s c) raises (ex);attribute long attr;

};

#!/bin/sh# shell implementation of test::op# Get the input/inout optionsinargs=`idlinput`# $inargs may look like: "{1 ’z’} {2 ’w’}".# Now separate the in and inout options.arg_a=`idlarg 1 $inargs`arg_b=`idlarg 2 $inargs`# We can get to the fields of arg_a as followsarg_a_l=`idlarg 1 $arg_a`arg_a_c=`idlarg 2 $arg_a`# This will set arg_a_l to 1 and arg_a_c to# ’z’ respectively.

14 Tivoli Management Framework: ���

�� ��

idlattr, idlcall, idlexception, idlinput, idlresult

idlarg

� 1 �� 15

idlattr

�� � �� ����.

��

idlattr -t [-a | -g | -s | -v] target_object attr_name type_name [value]

��

idlattr �� ��(��) � �� ����. -t �� �� ��� �

�� �� ��� ����, � �� �����. -s � -g �� �� � �

� � �� �����. -s �� -g ��� � ���� �� ��, ���

� �����. attr_name �� �� ��� ���� � � � �����.

� � �� ���� � �� ��� ���� � �� � ���

�. type_name �� �� ��� ��� � �� �����. � ��� ��

�� ��, value �� �� �� cleartext ����. � ��� ���� �

� �� cleartext � ����.

��

-t �� ��� �� �� �� ��� �����. � �� �����.

-a �� ��� � �����.

-g � �� �����.

-s � �� �����. � �� ������.

-v �� �� �����. �� ��� ��� ���� ����� � �

� �����. ��� ��� cleartext ���� � � � ����

���.

target_object

��� �� �� ��� �����. �� ��� ��� ���� �

� ���.

attr_name

�� ��� ���� � � � �����. � � � �� �

� �� �� �� ��� ���� � � ����.

type_name

�� ��� ��� � �� �����.

value �� �� cleartext � �����. � �� � ��(-s)� ���

�����.

16 Tivoli Management Framework: ���

��

�� ����� �� �� ��� �����.

interface test {exception ex { long code; string reason; }; struct s { long l; char c; };s op(in s a, inout s b, out s c) raises (ex);attribute long attr;

};

��� � ���� ���� ��� �� ������.

implementation class imp_test honors test {struct t { long l; };

attribute s attr1; // refers to test::sattribute t attr2;attribute unsigned long attr3; // define methods here

};

2001.1.15� imp_test ����� �� �� �� ����� ������. �

�� �� ��� �� ����� ��� � ����.

idlattr -t -g 2001.1.15 attr1 test::s// may print {1 ’z’}idlattr -t -s 2001.1.15 attr2 imp_test::t ’{20}’idlattr -t 2001.1.15 attr3 ulong 10

�� ��

idlcall

idlattr

� 1 �� 17

idlcall

����� IDL(Interface Definition Language) �� ���� ���� ���

��.

��

idlcall [-T trans_type] [-v] target_object operationId [options]

��

idlcall �� ����� IDL �� �����. trans_type �� ���� �

�� � ����, �����, �� ��� ���� �� ���� �� ���

� ����. target_object �� �� �� ��� cleartext ��� �� �

����. operationId �� �� � �����. �� � � �� ���

��� �� �� �� �(CORBA[Common Object Request Broker Architecture]

RepositoryId) �� �� �(IDL �����)�� ��� � ����. options

� �� �� �� �����. � �� IDL �� �� �� ����

�. � �� �� �� � ��� � ��� cleartext ���� � � � �

����. idlcall ��� ��� ��� ���� ��� � � � �����. �

�� �� ��� ��� ���� ���� ��� ���� �� � �

�, � �� EOF� ��� ��� � � �� � ������.

��

-T trans_type

���� �� �����. � �� �� � �����.

none ���� ��

revoke

�� ��� ����

sub �����

top ��� � ����

-v �� �� �����. �� ��� ��� ���� ����� � �

� �����. ��� ��� cleartext ���� � � � ����

���.

target_object

�� ��� �� ��� cleartext ��� �� �����.

operationId

�� � �����. � ��� � �� ��� ��� �� �� ��

�(CORBA RepositoryId) �� �� �(IDL �����)� � ���

18 Tivoli Management Framework: ���

�. � � ��� �� �� � �� ��� � ������, �� ��

� � ��� � ����. IDL �� ��, �� � � ��

� ��� � �� _get_ �� _set_ �� � � ������.

options

� �� �� �� �����. � �� �� ��� ���� �

��� ���� �� � ��, idlcall �� EOF� ��� ��� �

� �� � ������.

��

�� ��� ��� ��(�� �� �� � � �� ��� ��� � ��� �),

idlcall �� 0(��)� � ��� �����. ��� ��� � �� 0(��)�

� �����. �� ��� ���� cleartext � �� � ����.

��

interface test {exception ex { long code; string reason; }; struct s { long l; char c; };s op(in s a, inout s b, out s c) raises (ex);attribute long attr;

};

2001.1.15� ���� ���� ���� ��� �� �� ��� cleartext

��� �� ������. � �� ��� �� ��� � ����.

idlcall -T top 2001.1.15 test::op "{1’z’}" "{2 ’w’}"idlcall -T top 2001.1.15 op <<!EOF{1 ’z’} {2 ’w’}!EOFidlcall 2001.1.15 _get_attridlcall -T top 2001.1.15 _set_attr 20

�� ��

idlattr

idlcall

� 1 �� 19

idlexception

���� �� ��� �����.

��

idlexception [{exception_type scoped_exception_name {exception_data}}]

��

idlexception �� ��� ���� � �����. �� �� ��� ���� �

� �� 0(��)� � �� ��� �� ���. �� �� 0(��) ����

�� �����.

�: TEIDL(Tivoli Extended Interface Definition Language) �� ������ �

�� ���� � idlexception ���� ����. ��� ��� � ���

��, Tivoli ��� �� ����� ����� ��� ���� ���. ��

���� �� ����� ��� ���� ����. ��� ���� EIDL

��� �����.

��

exception_type

�� �� �����. � ��� USER_EXCEPTION ��

SYSTEM_EXCEPTION� � � ����.

scoped_exception_name

��� IDL �� � �����.

exception_data

�� �� ��� cleartext �� �����. ��� �� �� ��, ��

�� ��� ��� ���� �� ����. idlexception� ��� �� �

� ���� � � �� cleartext ��� ����.

��

interface test {exception ex { long code; string reason; }; struct s { long l; char c; };s op(in s a, inout s b, out s c) raises (ex);attribute long attr;

};

#!/bin/sh# shell implementation of test::op# In doing some work, say we failed, and now# want to raise the test::ex exception.excep=`idlexception ’{USER_EXCEPTION test::ex {"failed" 99}}’`

20 Tivoli Management Framework: ���

# the exception must be written to stdout.echo $excep# must exit with a nonzero status

exit 1

SYSTEM ��� �����, �� � ����.

# Raise a standard exception (also let idlexception read# from stdin)excp=`idlexception <<!EOF{SYSTEM_EXCEPTION StExcep::BAD_PARAM {999 NO }}!EOF`echo $excp

exit 1

�� ��

idlattr, idlcall, idlinput, idlresult

idlexception

� 1 �� 21

idlinput

���� �� � �� �� �� �� ���.

��

idlinput

��

idlinput �� ���� �� � �� �� �� ��(cleartext ����)

���. �� IDL(Interface Definition Language) ��� �� �� �� �

���.

�: Tivoli EIDL(Extended Interface Definition Language) ��� ��� ��

idlinput ���� ����. �� ���� �� �� �� � � �� �

���. ��� ���� EIDL ��� �����.

��

�� ����� EIDL � �� ��� �����.

interface test {exception ex { long code; string reason; }; struct s { long l; char c; };s op(in s a, inout s b, out s c) raises (ex);attribute long attr;

};

#!/bin/sh# shell implementation of test::op# Get the input/inout optionsinargs=`idlinput`# $inargs may look like: "{1 ’z’} {2 ’w’}",# the first and the second pair of curly braces# contain the in option (a) and the inout option# (b) respectively. The method can now access each# individual option or their fields using idlarg.# rest of the method goes here.

�� ��

idlattr, idlcall, idlexception, idlresult

22 Tivoli Management Framework: ���

idlresult

�� �� � �� �� ���� ��(�� ��)� ������.

��

idlresult [options]

��

idlresult �� �� �� � �� �� ���� � ��� ������. ��

� � �� cleartext ���� ��, IDL(Interface Definition Language) �

�� ���� � �� �� � ��� ���� ���. ��� �� ��

� ��� ����. ���� �� idlresult� ��� ���� ��� � ���

�. ��� ��� idlresult� EOF� �� ��� � � �� �� �����

�.

�: Tivoli EIDL(Extended Interface Definition Language) ��� ��� ��

idlresult� ���� ����. �� ���� � � � �� � ��

� ����, ���� ��� ����. ��� ���� EIDL ���

�����.

��

�� ����� EIDL � �� �� ������.

interface test {exception ex { long code; string reason; }; struct s { long l; char c; };s op(in s a, inout s b, out s c) raises (ex);attribute long attr;

};

#!/bin/sh# shell implementation of test::op# do some work# return some hard coded values.b="{1 ’a’}"c="{2 ’b’}"retval="{3 ’c’}"# the order of options is inout(b), out(c) and# the return result. We could have also said:## all=`idlresult <<!EOF# $b# $c# $retval# !EOF# `#all=`idlresult $b $c $retval`# The results must be written to stdout.

� 1 �� 23

echo $all# A 0 exit code means a successful return from# a EIDL shell method.exit 0

�� ��

idlattr, idlcall, idlexception, idlinput

idlresult

24 Tivoli Management Framework: ���

kadmin

Kerberos ������ ��� ���� � ��

��

kadmin

��

� � ��� Kerberos ��� ������� �� ��� �� ����� ��

���. Kerberos ���� kadmin ���� ��� ��� ���� ��� �

������ ����, �� ������ ��� �� ��� �����. �� ��,

���� kadmin ���� ���� Kerberos ��� ��� � ����. Kerberos

���� “admin” ����� �� ���� ���� �� Kerberos �� ��

�� �� � ��� �����.

kadmin � ��� ����� � kadmind ����� �����, � ����

Kerberos ��� ������� ����� ���� �����. kadmind� �

�� �� ��� ������� �����.

kadmin �� � ��, ���� ���� ���� ��� ��� ��

��� ���� ����. �� �� kadmin ���� ��(��� ��) �

��� �� ��. ��� ������� ���� �� ����� admin ��

� ����.

��� ������� �� ��� ���� ����� add_new_key(�� ank)

�� ������. � ���� ��� ��, ���� �� ����. admin

��� � ��� �� � �, ����� ��� ��� � ��� �����

� ����.

��� ������� � � ����� �� ��� ���� �����

add_new_instance(ani) �� ������. � ���� � �� ��, ���� �

� ���� ����� ����. admin ��� � ��� �� � �, �

���� ��� ��� � ��� ����� � ����.

����� kerberos ��� ����� change_password (cpw) �� �����

�. � ���� ��� ��, ���� �� ����. admin ��� � ���

�� � �, ����� ��� ��� � ��� ����� � ����.

� � �� � � � �� � � � �� � � kerberos � � � �����

change_instance_key(cik) �� ������. � ���� � �� ��, � ��

�� �� ���� ����� ����. admin ��� � ��� �� �

�, ����� ��� ��� � ��� ����� � ����.

� 1 �� 25

admin ���� ��� ����� change_admin_password(cap) �� ����

��. � ���� ��� ��� ��� ����. � �� ��� admin ���

� ��� ����� �� �, ��� admin ��� � ��� ����� �

����.

��� ��� �� ��� list_requests(lr) �� ������.

kadmin� �� �� ��� ���� ���� help �� ������. �� �

� � � ��, help� �� ��� ���� ����. help command_name �

�� �� kadmin ��� �� ��� ��� � � ����.

���� ���� quit� � ����.

��

kadmin �� � � ����� �� ���� ��, �� �� ��� � �

���.

���

Jeffrey I. Schiller, MIT(Massachusetts Institute of Technology) Project Athena

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kerberos, A Subsystem Utilities Package for UNIX by Ken Raeburn

kadmin

26 Tivoli Management Framework: ���

kadmind

Kerberos ������ ��� ���� �

��

kadmind [-n] [-h] [-f file_name] [-d db_name] [-a acl_dir]

��

kadmind� Kerberos �� �� � �� ��� �� ���� ������ ���

��.

�� ��, ������� ��� ��� � � � ��� �������. -n

��� ����, ��� � ��� � ���� �� ����. -f file_name

��� ����, � ��� ��� �� �� ��� ���� � �����.

-d db_name ��� ����, � ��� ��� �� ������ ��� ��

���.

-a acl_dir ��� ����, acl_dir� ��� �� �� �� ��(ACL) ���

� ���� �����.

-h ��� ����, kadmind� ��� �� ��� �� � ��� � ��

���.

������ ���� � ��� �, kadmind� �� �� ��(ACL) �

��� ������ �� ��� ��� ��� ���� �����. �� � ��

� �� �� ��� �����.

Addition

(.add ACL ��). ����� � ��� ���, ������� ��� ��

�� ��� � ����.

Retrieval

(.get ACL ��). ����� � ��� ���, ������ �� ���

� ����.

�: ����� �� � � ��� � �� ���� ����.

Modification

(.mod ACL ��). ����� � ��� ���, �������� �� �

�� � ����.

������ �� ��� ��� ��� ��� �����.

� 1 �� 27

��

/kerberos/admin_server.syslog

�� �� ��

/kerberos

�� �� �� �� ���

admin_acl.{add,get,mod}

�� �� �� ��( ��� �)

/kerberos/principal.pag, /kerberos/principal.dir

������� ��� �� �� DBM ��

/.k ��� � ��

���

Douglas A. Church, MIT Project Athena John T. Kohl, Project Athena/Digital

Equipment Corporation

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kerberos, kpasswd, kadmin, acl_check

kadmind

28 Tivoli Management Framework: ���

kdb_destroy

Kerberos �� �� ������� �����.

��

kdb_destroy

��

kdb_destroy� Kerberos �� �� ������� �����.

������� ��� �� ����� ����� �������. ‘y’ �� ‘Y’�

���� �� ��� �����. �� �� ��� �����.

��

“������� /kerberos/principal�� ��� � ����.”

������� ����� ��� ������. (��� �� �� �� �

� ��� ���.)

“������� ���� ����.”

���� ��� �����.

��

/kerberos/principal.pag, /kerberos/principal.dir

������� ��� �� DBM ��

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kdb_init

� 1 �� 29

kdb_edit

Kerberos �� �� ������ � ��

��

kdb_edit [-n]

��

kdb_edit� KDC(Kerberos Key Distribution Center) ������� �� ���

� ����� ���� � �����.

����, kdb_edit� ��� ��� ����� ������� �� ��

� ����� �����. -n ��� ����, ��� � ��� � ��

�� �� ����.

��� � ��� �, kdb_edit� ���� ��� �����. ���� � ���

�� ����� �������. ��� ���� ��� ���� �� ��� � �

���. ��� ����� ��� �, ���� ��, ���, �� �� �� � �

�� � ����. �� ���, �� �� ��� � � ��� �� �

�, Enter � �� ���� �����. �� ��� ����. �� RANDOM

���� ���, � ��� � �� ���� ����� ����� � ��

� DES � ����� � � ����.

����� �� ����� ���� �� ��� �����.

��

“verify_master_key: ��� �� ��� ��, ������� ��� ��.”

� � ��� ���� ���� ����.

��

/kerberos/principal.pag, /kerberos/principal.dir

������� ��� �� DBM ��

/.k ��� � ��

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

30 Tivoli Management Framework: ���

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

kdb_edit

� 1 �� 31

kdb_init

Kerberos �� �� ������� ������.

��

kdb_init [realm]

��

kdb_init� �� ���� ����� Kerberos �� �� ������� �

�����.

� ��� realm ��� � � �� , kdb_init� �� � ��� � � �

�.(/usr/include/krb.h� ��� ����� ���.) ��� ��� ��� � �

�� ��� �������. ��� ��� ������� �� � ���

� ����� � �����.

��

“/kerberos/principal: �� ����.”

�� ������� �� ���� ������� ����� ��� � �

��.

��

/kerberos/principal.pag, /kerberos/principal.dir

������� ��� �� DBM ��

/usr/include/krb.h

�� ��� ���� �� ������.

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

32 Tivoli Management Framework: ���

�� ��

kdb_destroy

kdb_init

� 1 �� 33

kdb_util

Kerberos �� �� ������ � ��

��

kdb_util operation file_name

��

kdb_util ���� KDC(Kerberos Key Distribution Center) ������ ���

� �������� � �� �� ��� � ����.

operation �� � ��� ���.

convert_old_db

��� ��� ����� ��, KDC ������� file_name ���

��� �� �����. �� ������� �� ��(��� � �

��� � ����) ���� ���� �� ���, ��� ����

��� ��� ��(��� � ���� �� ����) ���� ���

���.

dump KDC ������� file_name ��� ��� �� �����.

load KDC ������� file_name ��� ��� ���� � ��� �

�� ������. �� ������� ���� ��.

new_master_key

�� � ��� ��� ��� ����� ��, KDC �������

file_name ��� ��� �� �����. ��� �� �� � ���

��� � ������.

slave_dump

dump ��� �� ������ ��� ����, � KDC �����

�� ���� ��� ��� ��� �� ������ ���� ����

��� ��� �����.

��

“verify_master_key: ��� �� ��� ��, ������� ��� ��.”

� � ��� ���� ���� ����.

��

/kerberos/principal.pag, /kerberos/principal.dir

������� ��� �� DBM ��

34 Tivoli Management Framework: ���

file_name.ok

slave_dump� � ��� ���� ��

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

kdb_util

� 1 �� 35

kdestroy

Kerberos �� �����.

��

kdestroy [-f] [-q]

��

kdestroy � ��� � ��� �� ��� 0(��) ���� ���� �� ��

Kerberos �� �� �� �����. �� ��� ���, kdestroy� �� ��

��� ���� ����.

�� ��� �, kdestroy� �� ����� �����. � ��� ��� ��

�� ��� ���� ���� ����. kdestroy� �� �� ��� � ��

�, � ��� ��� ��� � ����� ����.

��

-f �� ���� ��� ����.

-q ��� ���� ���� kdestroy ��� ��� �� ����.

��

��� �� KRBTKFILE �� ��, ��� ��� /tmp/tkt[uid].

��

���� �� �� ��� �� ��� �����. ��� �� ��� �� ���

� �� �� �� ���� � �����. ��� �� ��, � �� ���

�� � ��� ��� ���� ���.

���

Steve Miller, MIT Project Athena/Digital Equipment Corporation. Clifford Neuman,

MIT Project Athena, Bill Sommerfeld, MIT Project Athena

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

36 Tivoli Management Framework: ���

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kerberos, kinit, klist

kdestroy

� 1 �� 37

kerberos

Kerberos �� ��� ��

��

Kerberos� ���� ���� �� ���� �����. Kerberos� ��� �, �

� ���� ��� ���� � .rhosts �� ��� � �� rlogin, rcp �

rsh � ���� � ��� ��� � ����. ���� ��� �� ���

Kerberos ��� ����� �� � ��� �� �� ����.

Tivoli Management Framework� Kerberos� ���� �� �� ���� Tivoli

��� ��� � ����.

Kerberos� ���� ��, Kerberos ������� ���� ��� �� ��

���. kinit �� ������. � �� ���� Kerberos ���� ����

�� ���. kinit� ��� �� ��� � ��� �������. ��� �

� ��� � ����. ��� �� ���� � ���, ���� Kerberos ���

���� �����.

��� � � � kinit� �� ���� ���� ��, ��� ����� �

�����.

Kerberos ���� ���� �� � � �� ����.��� ����� ������.

Kerberos � � ���� �� ����.

v ���� �--�� ��� �� ��� �.

v ����--���� ���� �� ���. ��� root �� admin� �� ��

� �� ����� �� �� ���� ����. ���� ��, ����� ��

�� ���� �� ����. �� ��, rlogin ���� ABC ���� ���

� ���, XYZ ���� ���� rlogin ���� ����.

v ��--����� �� �� ���� Kerberos ���� �����. �� ��,

MIT�� ��� �� ����� �� �� Kerberos ��� Athena�� �

� �� � ��� kerberos� ����.

Kerberos � � �, ���� � ��� ����(� � ��) ���

�, “@” �� �� ��(� ��� � ��)� ���. �� ��� kerberos �

� �����: billb, jis.admin, [email protected][email protected].

���� �� kinit �� � Kerberos� ��� �, Kerberos� ����� �

� Kerberos �� �����. (Kerberos �� �� ���� ���� ���

38 Tivoli Management Framework: ���

������.) Kerberos� rlogin � rcp � ���� � ����� � �

� �����. �� ���� ���� �����, ���� �� ���� �

�� �� ����.

��� �� �����. �� ���� ��� � �� �� �� � � ��

�����. �� �� �� ��� ��� � policy� �� � �� �� ��

� ��� � ����. ���� ��� ��� ��� �� ���� ���,

Kerberos� ����� ��� �� � ���. �� ������ kinit �

� ������.

kinit �� ���� ��� �� � ��, ��� �� ���� �� kdestroy

�� ���� �� �� ���. kdestroy �� .logout ��� ��, �

���� � ���� �� ��� �����. ��� �� kinit � kdestroy

�� ������. Kerberos� rlogin, rsh � rcp ���� ���� �����.

��

Kerberos� �� ���� ����. �, ���� rlogin ���� �� ���

� �����, � ���� ���� ��� ��� ���� � ����� Kerberos

���� ��� � ����. ��� �� �� ���� �� ���, ���

� �� rlogin� ����� � ���� ��� ��� ���� ����� ��

�� ���.

���

Steve Miller, MIT Project Athena/Digital Equipment Corporation, Clifford Neuman,

MIT Project Athena

�� ���� ���� � �� �� �� � ���.

v Jeff Schiller� �� �� � ��� ���� kadmin �� ������.

�� ������ �� ���� dbm �� ������.

v Mark Colan ��� � ���� ��� ���, rlogin, rsh � rcp�

Kerberos �� ������. � rlogin, rsh � rcp �� Tivoli Systems Inc.

�� ���� �������.

v John Ostlund� passwd � userreg� Kerberos �� ������.

v Stan Zanarotti� Kerberos� ��� ��(LCS)�� �����, � �� ���

� � ��� ����.

Jim Aspnes, Bob Baldwin, John Barba, Richard Basch, Jim Bloom, Bill Bryant,

Rob French, Dan Geer, David Jedlinsky, John Kohl, John Kubiatowicz, Bob McKie,

Brian Murphy, Ken Raeburn, Chris Reed, Jon Rochlis, Mike Shanzer, Bill

Sommerfeld, Jennifer Steiner, Ted Ts’o � Win Treese� ��� � ���� �

�� ��� ��� �� �� �������. Tivoli ������ ��� � �

kerberos

� 1 �� 39

�� Tivoli Systems� � ��� � �� �� ������. kerberos, kdb_edit,

kdb_init � kdb_destroy ��� ��� ���.

����

Copyright © 1985, 1986, 1989 Massachusetts Institute of Technology

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kdestroy, kinit, klist, kpasswd

kerberos

40 Tivoli Management Framework: ���

kinit

Kerberos ��� � ��

��

kinit [-irvl]

��

kinit �� Kerberos �� � �� �� ���� ������ �����. ���

Kerberos ���� Kerberos ��� ��� � ����. Kerberos ����� �

�� �� �� kerberos �� ������.

�� �� kinit� ���� ��, ��� �� Kerberos ��� � ��� ���

�� kinit� � Kerberos ��� ���� ��� ��� ����� ���.

Kerberos� ��� ��� ����, kinit� �� �� ��� KRBTKFILE �

� ��� ��� �� ��� ���. � ��� ���� �� � ��, ��

tmp ���� tktuid ��� ����, UID� ��� �� �� �����.

��� �� ���� �� �� kdestroy �� ���� �� �� �� ��

����. kdestroy �� .logout ��� ��, ����� � �� ��� �

����.

��

-i Kerberos ����� � �� � ������� �����.

-l kinit� �� � �� � �� �������. � 5� - 1275���

���.

-v �� �� �����. kinit� ��� �� ��� �� ��� ��� �

� �� ��� ���� �� ���� �����.

���

Steve Miller, MIT Project Athena/Digital Equipment Corporation, Clifford Neuman,

MIT Project Athena

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

� 1 �� 41

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kerberos, klist

kinit

42 Tivoli Management Framework: ���

klist

�� �� �� Kerberos �� �����.

��

klist [-s -t] [-file file_name] [-srvtab]

��

klist� �� �� �� �� ���� ����� ��(�� ��� ��� ��

�) ���, ���� �� �� �� � Kerberos ��� ���� � �

���� �� �� � �� ��� �� �����. ����� ��, ���� �

��� ‘.’ �� name.instance@realm ���� ���, ��� �� ‘@’

� �����.

��

-file file_name

file_name �� ��� �����. ��� � KRBTKFILE �� ��

� ��� ���, � �� ��� �����. � �� ��� ��� �

� ��, /tmp/tkt[uid] ��� ����, ��� uid� ���� �� ���

ID���.

-s �� � �� ��, �� �� � �� ����� ��� ���� ���

�����.

-srvtab

��� ��� ��� ����� �����. � �� �� ��

�� ����.

-t klist� �� ��� ���� � �� �� ��� ����� �����.

��� ���� �� 0� �� ���, ���� ��� �� 1� �� �

����. -t� ��� �� � � ���� ����.

��

/etc/krb.conf

� ��� �� �� �� ��

/tmp/tkt[uid]

�� �� ��([uid]� ���� �� UID���).

/etc/srvtab

�� ��� ��

� 1 �� 43

��

�� ��� ��� � �, �� ��� �� ���� ����.

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kerberos, kinit, kdestroy

klist

44 Tivoli Management Framework: ���

kpasswd

���� �� Kerberos ��� �����.

��

kpasswd [-h] [-n name] [-i instance] [-r realm] [-u user_name[.instance@realm]]

��

kpasswd �� Kerberos ����� ��� ���� � �����.

� ��� �� Kerberos ��� � ��� �������(��� ���� ��

���� � ��), Kerberos ��� Kerberos ���� �����. �� ��� �

���, ��� ��� � ��� � �������. �� �� ��� �� ��

��� ���� ���� �����.

��

-h �� �� ��� �����.

-i instance

instance� ������� ����� ����� �����.

-n name

name� kpasswd� ���� ��� ���� ���� ��� ����

� �����.(�� ��� ���� ���� �� ���� ����, ��

� � ���� UNIX ��� ID�� �����.)

-r realm

realm� � ����� ��� ����� �����.

-u user_name[.instance@realm]

��� kerberos ���� �����.

��

kpasswd� -n, -i �� -r ��� ���� ��� �� ��� �� �, ����

�� ��� ���� ����. ��� -u ��� ���� � ��� �� ��

����.

��� ����� ����� ���� ���, �� ��� � � ��� ����

���� ����.

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� 1 �� 45

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

�� ��

kerberos, kinit, passwd

kpasswd

46 Tivoli Management Framework: ���

ksrvtgt

��� � ���� Kerberos �� �� �� �� ����.

��

ksrvtgt name instance [[realm] srvtab]

��

ksrvtgt� ���� name.instance@realm(�� realm� ���� ���� �� �

� name.instance@localrealm)� � 5� � �� �� �� ���, srvtab(�

� ���� srvtab� ���� �� �� /etc/srvtab)�� ���� ��� � �

��� �� �� ��, �� � �� �� ����.

� �� �� �� � � �� �� �� ���� ���� �� ���.

��

“� kerberos ��(kfailure)”� �� ��� ��� ��� � ���, � ���

� ���� ��� ��� �� � � ��� ���.

��

/etc/krb.conf

� ��� �� �� �� ��

/tmp/tkt[uid]

�� �� ��

/etc/srvtab

�� ��� ��

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

� 1 �� 47

�� ��

kdestroy, kerberos, kinit

ksrvtgt

48 Tivoli Management Framework: ���

kstash

Kerberos �� �� ������ ��� � �����.

��

kstash

��

kstash� Kerberos KDC(Key Distribution Center) ������ ��� � ��

� � ��� ����.

� ��� � � ��� ��� �� ��� ���� � � � ��� �

������.

��

“verify_master_key: ��� �� ��� ��, ������� ��� ��.”

� � ��� ���� ���� ����.

“kstash: ��� � �� � � ��”

��� � � �� �� ��� ������.(��� �� �� �� �

� �����.)

“kstash: ��� � ���� �� I/O ��”

write(2) ��� �� kstash� � ��� �� ���� �� ���

������.

��

/kerberos/principal.pag, /kerberos/principal.dir

������� ��� �� DBM ��

/.k ��� � ��

����

Copyright © 1989 by the Massachusetts Institute of Technology.

� ������ ���� ���� ��� �� ��� �� � � ����. �

��� �� � � � ���� ���� �� ���� ��� �����.

��� ���� ���, � ����� � �� �� ��� ��� ���� ��,

��, �� � ��� � �� ��� ��� �����. , � ��� �� ��

� �� � �� ��� �� ��� � � ��� �� �� ��, ��

� �� �� ��� � ������ ��� �� �� ���� M.I.T.� �

� 1 �� 49

��� � ����. M.I.T.� ��� ����� � ������ ���� ��

�� �� ����. � ������ ��� ��� �� ��� ���� “���

��” �����.

kstash

50 Tivoli Management Framework: ���

lcfd

��� ��, �� � � �� ��� ��� �� ��� ����� ���(lcfd)

� �����.

��

lcfd [-b lib_dir] [-C dir_name] [-d level] [-D option=value] [-e] [-g

address[+port][:address[+port]...]] [-H] [-i] [-l file_name] [-n ep_label] [-p

ep_gw_port] [-P ep_port] [-r svc_name] [-s] [-S [svc_name:]dependency |

dependency_group[,dependency | dependency_group,...]] [-w 0 | 1] [-x protocol]

��

lcfd �� ��� ��, �� � � �� ��� ��� �� ��� �����

���� �����. ������ �� ����� ���� ��� �� ����.

UNIX ������ lcfd.sh �� ���� ������ �� � ��� � ���

�. -i �� ���� Windows �� �� ���� ����� ���� �� �

����. -r �� �� ���� Windows ��� ����� �����. � ��

� �� ��� �� ��� lcfd -s -D?� � ����. IPX(Internetwork Packet

Exchange)� ���� ������ ���� �� Netware Windows �� ��

����� �����.

-S �� winstlcf -L� �� ���� � � ����� ���� � ��� �

� ��� � ����. ��� -S �� -L ��� �� ���� �� svc_name

��� ���, �� �� ���� �� ���� ��� � �� �����.

-S �� ������ �� �� ��� ��� �� ���� � ��� �

� ����.

-S �� -i ��� �� ���� ��� ����� ��� � � ��� ��

��� � ����. ��� �� � ��� �� � ��� �� � �

����� ���� �����. �� -i �� ��� � ���� ���� ��

���� ��� svc_name �����.

-S �� ��� �� ������ �� �� ���� � ��� �� ��

��. -S �� ��� �� ��� � �� ��� svc_name �� �� �� �

��(″ ″) �� ����� ����� � �� �� ���.

��

-b lib_dir

������� �� �� ����� ���� �� ���� ��� �

����. � �� Netware� ���� ����.

� 1 �� 51

-C dir_name

�� �� ���� ������ � �����. � ����� ��

� ��� �� �� �� ��� ���� ����.

-d level

lcfd.log ��� ���� �� �� ���� � �����. ���

1���. ��� �� ��� ����.

0 ���� ���� ��

1 �� ��(���)

2 �� � ��� �

3 ��� �� � ��� ��

4 ���

�: � 1� ������. � 4 ��� �� � �� ���� ���

��. � 2 �� 3 �� � � ����.

-D option=value

�� � �� ��� �� ���� ���� �� ������ ���

����. �� ��� ������ last.cfg ��� ����. �� ��

� ��� ��� �� ���� �� �� ����.

? � ��� ��� �� ����.

address_notif_interval=seconds

DHCP(Dynamic Host Configuration Protocol) ��� ��, �� �

���� ��� �� ����� ���� �� ��� �� IP

��� ������ � ��. � �� ����� � �� �

��� � IP ��� ��� � �� ������ �� ���.

� ��� �� 300����. � ��� ��� 0���, ��

��� �� ������ ��� �� �����.

bcast_disable=1 | 0

1� ��� �� ��� �� ���� ���. � �� 1�

��� ��, lcs.login_interfaces �� ���� ��� ����

�� �� ���. ����� ���� IPX ���� ��,

� �� ��� RIP(Routing Information Protocol) ���

���� 5 �� ��� ��� �� �� � ����. ���

0���.

cache_limit=max_size

��� �� �� ��� �����. � �� ��� ��� ��

� �� ���� �� �� ��� � � ��� ��� ��

�� �����.

lcfd

52 Tivoli Management Framework: ���

cache_loc=cache

������� ��� ����� ��� � � ����� �

����. � �� �� �� �� �� ��� � ��� ��

��� ���� �� ��� � ����.

config_path=last.cfg

last.cfg �� ��� �� �� ��� �����. � ��

�� �� � ����.

debug_flags=debug_level

���� �� �� ���� �� ��� �� � ��� ���.

� �� �� �� � ����.

gateway_port=port_number

������ ����� �� ���� ��� �����. ��

� 9494���. � �� lcfd -p �� ���� �� � ��

��.

http_disable=value

������� ��� � �� � ���� �� ��� �

�����.

0 ����� ��� ���� ���� ������ ��

�� � ����.

1 ��� ���� ���� �� ���� � � ��� �

�� ���� ���� ������ ���� �� ���

�.

2 ��� ���� ���� ������ ��� ���� �

����.

3 � ���� ������ ��� ������ ��(���

ID � ��) �� ���.

httpd_pw=password

����� �� ��� �� �� �� ���� ��� ����

�. ��� ����� ���� � ����. � ��� ����

� wep �� ������.

interp=interp_type

������ ����� �� �����. � �� �� ��

� ����.

lcfd_alternate_port=port_number

����� ���� �� �� �� ��(lcfd -P� ���)� ���

lcfd

� 1 �� 53

�� ���� �� � �� �� ����� �� ���� �

� ��� �����. ��� 9496���.

lcfd_port=port_number

����� ���� ����� �� ���� ��� �����.

��� 9495���. � �� lcfd -P� ���� �� �� �

���.

lcs.gateway_address=IP_address | IPX_address

������ ����� ���� � ��� ������ �����.

������ ��� ����� ����, lcs.login_interfaces ��

���� ������ ���� � �� �� ��� �����

� ������. IPX� ���� NetWare � Windows �����

� ��, 5 �� �� �� ������ ������ IPX ��(�

�� �� ��)� �� ���.

lcs.login_interfaces=address [+port] [:address [+port]]...

������ ��� �� �� �� ��� ������ IP ��

�� ��� �(IPX �� �� �� �) � �� �� ����

�. � �� ������ �� ��� �� ������ ���

��� � � ��� ������ ��� ��� �� �� ���

��� ����� � ���� . ����� ������

NAT(Network Address Translation) ���� � ���� IP �

� �� ��� � ������. �� �� ��� ��� ��

���. �� -g �� ���� �� ��� ������ �

�� �� ����.

�: � �� ������ ����� ��� ������ ����

� ����. ����� ���� ����� �� � �� �

����. ������ ����� ������ �����,

lcs.gateway_address �� ���� ������ ������.

lcs.machine_name=ep_label

wlookup �� wep� ��� �� ����� �� �����.

�� -n �� ���� ����� �� ��� �� ����.

lcs.machine_unique_id=ID_number

������ � ID� �����. ID_number� Tivoli �� ��

� �� ��� $LCF_DATDIR/lcf.id ���� ���� �

��� ����.

local_ip_address=IP_address

�� IP ��� �� ������ ��, ��� IP_address��� �

lcfd

54 Tivoli Management Framework: ���

� ����. local_ip_address ��� ���� ��, �����

� 0.0.0.0� � ��� ��� ����� �� � ����

��� ����.

local_ip_interface=IP_address

���� ����� �� �� ��� ��, ����� ���� �

�� ������ �� IP_address� ������ � �����.

� �� last.cfg ���� local_ip_interface ��� ����

��� �� ����.

logfile=full_path

�� ���� ��� ��� �� �� ��� �����. �� �

� �� lcfd.log���. � �� �� �� � ����.

�: Tivoli� -l �� ���� �� �� � ����� ��

��.

login_interval=seconds

�� ��� �� ��� ��(� �) �����. ���

1800�(30�)���.

login_mode=mobile | non-mobile

Windows ������ ��� ���� Tivoli Mobile Computing

��� �� �� MDist 2 ��� ��� ��� � �� ��

�. �������� �� �� �� ���� ��� non_mobile

�� ������.

�: � �� � Tivoli ���� �� wep ep_labelset login_mode

-s variable �� �� ���.

�� wep ep_label set login_mode -m mobile �� ����

�� �� ��� � ����.

log_queue_size=max_size

�� �� ���� �� �� ��(��� �)� �����. LogQ

���� �� �� �����. ��� ����, �� �� ��� �

����. ��� ��� 1024 - 102400���.

log_size=max_size

�� ��� �� ��(��� �)� �����. ��� ���

10240 - 10240000���.

log_threshold=debug_level

�� �� � �����. � �� -d �� ���� ��

�� ����.

lcfd

� 1 �� 55

protocol=TCPIP | IPX

����� ���� ����� �� ���� ��� ���

��. ���� ��� ��� ����.

TCPIP

TCP/IP(Transmission Control Protocol/Internet Protocol)�

�����. � �� ������. TCP/IP� ��� � ��

��.

IPX IPX(Internetwork Packet Exchange)� �����.

TCP/IP IPX ��� � ����� �� protocol=TCPIP,

IPX� ������. -x �� ���� � �� �� �� ��

��. � ������ � TCP/IP ��� � � ��� ���

���.

recvDataNumAttempts=count

�� �� �� �� ���� ���� �� �� ����

��� �����. ��� 10���.

recvDataQMaxNum=connections

�� �� �� �� ��� �� �� �����. ���� ����

�� �� �� ��� ���� �� �����. � ��� ���

�� �� �� ��� �� ��� � �� �� ��� ����

�. ��� 50���.

recvDataTimeout=seconds

�� �� ���� �� ��� ��� ���� ���� ���

� ��(�) �����. �� �� �� �� �� �� �� �

� �����. ��� 2���.

run_dir=dir_name

����� �� ��� ���� �����. � �� ��

�� � ����.

run_timeout=seconds

� �� ��� ������. udp_interval �� ���� ��

�� ��� � �� ����� ���� �� �� ��(� �)

�����.

start_delay

����� ������ �� ��� ���� ��� �����

���� �� ������. � � ��� start_delay� �

��� ���, ����� ���� � ��� ���� �� ��

�� � � ����.

lcfd

56 Tivoli Management Framework: ���

start_timeout=seconds

����� � �� ����� ���� �� �� ��(� �)

�����. ��� 120���.

udp_attempts=number

������ ������ ��� ��� �����. ��� 6��

�.

udp_interval=seconds

��� �� ��� ��(� �) �����. ��� 300�(5�)

���.

-e � � ��� lcf.id ��� ����� �����. �� ������

� ��� ���� �� � � ��� �����. �� �� ID� ��

��� �� ����� ����� �� � ������ � Tivoli

Enterprise ������ ��� � ����. � �� ���� ��� �

�� ���� � ������ �� �� ID� �����(�� �).

-g address[+port] [:address [+port]]...

������ TCP/IP� ���� ��, � �� ������ ��� ��

��� �� ��� ������ IP �� �� ��� � � ����

� �� �� �����. ������ IPX/SPX(Internetwork Packet

Exchange/Sequenced Packet Exchange)� ���� ��, � �� ���

��� ��� �� ��� �� ��� ������ IPX �� �� ��

� � �� �� �����. �� �� �� 9495���. � �� �

����� �� ��� �� ������ ������ � � ��� ��

���� ��� ��� �� �� ������ ����� � ����.

�:

v ����� ������ NAT(Network Address Translation) �

��� � ���� IP �� �� ��� � ������. ��

�� ��� ��� �� ���.

v NetWare � Windows ������ ��, 5 �� �� �� ���

��� ������ IPX ��(�� �� ��)� �� ���.

-H OS/2� ��� ���� �� �� OS/2 ����� ����� ���

� ��� � �� ���. � �� ���� ��� ����� ���� �

��� ���� ��� ���� lcfd.exe� �����. � �� PSPM2,

pstat �� config.sys ��� �� KILLFEATUREENABLE=YES �

�� �� ����� ����� ��� ����.

-i ����� ������ ��� ������ Windows ���� ����.

� �� Windows 98 ��� Window ������ �����.

lcfd

� 1 �� 57

-l file_name

�� � �� ���� ���� �� �� � �����. �� �� �

lcfd.log���.

-n ep_label

wlookup �� wep� ��� �� ����� �� �����. TCP/IP

� �� Netware, Windows � OS/2 ����� �� ����� ���

��� � �����. IPX� ���� NetWare ������ ����

� �� � �����. IPX� ���� Windows ������ ���

��� ��� � �����.

-p ep_gw_port

������ ����� �� ���� �� �� �����.

-P ep_port

������ ����� �� ���� �� �� ����.

-r svc_name

��� ����� ���� �����. � �� Windows ������ �

����.

-s ������ �� �������� ���� � ���� ��� ����

� �� ��� �����. Windows 98� ��, � �� �� �� �

� ���� � ���� �����. OS/2 � NetWare� ��, � ��

�����.

-S [svc_name:]dependency | dependency_group

����� ���� �� � ��� ��� �� �����. ��

� �� ����� �� �� ������.

svc_name

����� ���� �

dependency

����� ���� �� ���� �

dependency_group

����� ���� �� ��� ��� �

� �� winstlcf -L ��� �� ��� � ����.

-w 0 | 1

1� ��� ������ �� wake-on-LAN �� �� ���� ���.

wake-on-LAN� � �� ���� � ������ �� ��� ���

� ��, ������ wake-up �� ���� � �� ��� ����

lcfd

58 Tivoli Management Framework: ���

�� ����. ����� wake-on-LAN �� �����(0).

wake-on-LAN� �� ��� ��� Tivoli Management Framework ��

� ���� ������.

-x TCPIP | IPX

������ ���� ��� �����. ���� ��� ��� �

���.

TCPIP

TCP/IP(Transmission Control Protocol/Internet Protocol)� ����

�. � �� ������. -x �� ���� ��� ������

TCP/IP� �����.

IPX IPX(Internetwork Packet Exchange)� �����.

TCP/IP IPX ��� � ����� �� -x=TCPIP,IPX� ���

���. -protocol �� ���� � �� �� �� ����. � ��

���� � TCP/IP ��� � � ��� ������.

��

Tivoli �� �� ��� � ����.

��

1. �� ����� last.cfg ��� ��� �� ��� ���� � �����

� �����.

lcfd

2. �� ����� ������ � ���� ���� ��� �� � 3

�� ���, ������ � ���� lcfd.log ��� ���� ���.

lcfd -i -d 3

3. �� ����� � Windows ������ �� �����. ������ �

� 27246�� ��(��� � zeus) �� �� ������ ������.

-p �� ����� ������ � �� 27246 ��� �����.

lcfd -p 27246 -g zeus+9494

4. �� ��� � ������ ����� ��� �� SPX/IPX� ���

� ��� � �����. �� ��� IPX ��� �� ������ ���

� ��� ���� ��� � �����.

lcfd -x IPX -g 4132AF12.000000000001+41204 -i

5. �� �� Windows NT ����� ���� � ������ ��� � 3

��� � log_threshold �� ����� �����. � ���� ��

�� ��� � ��� ��� ������.

net start lcfd /d3

lcfd

� 1 �� 59

�� ��

lcfd.sh

lcfd

60 Tivoli Management Framework: ���

lcfd.sh

UNIX ������� ����� �(lcfd) ����� �����.

��

lcfd.sh {start | stop} [lcfd_ options]

��

lcfd.sh �� lcfd ��� �� �����. lcfd.sh�� UNIX ������� �

� �� � �� ����� �� ��� �� ����. lcfd.sh� lcfd ���

�� �� �� LCF_DATDIR� �����. � �� ��� � lcfd� �

����. lcfd ��� ��� � lcfd �� ������.

lcfd.sh �� LCF_DATDIR� UNIX ���� �� �����.

��

start ����� �(lcfd) �����.

stop ����� �(lcfd) �����.

lcfd_options

lcfd ��� �� ��� � lcfd �� ������.

��

Tivoli ��� � ����.

��

�� ����� UNIX ������� �� ���� � ���� �����

� �����.

lcfd.sh stop

�� ��

lcfd

� 1 �� 61

logls

���� �� ��� �� ��� �� �����.

��

logls [-Dofls] [-k dir] [-m maxdlen] log_name...

��

logls �� ��� ���� �� ��� �� ��� �� �����. � ��

�� ���� ���� ���� �� � �����. ��� ��� ��� �

� � ����� � �� ����� �� � ����.

oserv �� ���� �� �� odb.log���. � �� ������ ���

� ����.

oserv �� �� �� ��, � ����� ������� ���� �� �

����. �� ��� �� �� �� ��� ����� ��� ���� �

� ����.

odadmin db_sync� ���� �� �� ��� � ����.

��

-D ���� �� ��� �����.

-f “��” �� ��� �����.

-k dir � �� �� � �� � ���� �����.

-l �� ��� �����.

-m maxdlen

��� �� ��� ��� �����. � �� -D ��� �� ��

���.maxdlen �� ���� ���, �� ��� 64������.

-o “�� ��”� �� ��� �����.

-s �� ��� �����. “��” �� “�� ��”� �� ��� ��

�� ����.

log_name...

��� �� �� � �����. �� �� �� �� ��� � ��

��.

��

����� �� ��� �� �� ��� �� ���.

62 Tivoli Management Framework: ���

��

�� ����� ��� ���� �� ��� �� ��� �� �����.

logls -k /var/spool/Tivoli/myhost.db odb.log

��� ��� � � ����.

Database update records:old page 0 8248insert "0.0.0"insert <0.0.0\x00.attr._bootcount\x00>{0:0,0:0,1:0} replace <0.0.0\x00.attr._ids\x00>Database transaction state transitions:prepare transaction {0:0,0:0,1:0}complete transaction {0:0,0:0,1:0}abort transaction {202020:1,202020:1,1:75}Database event and undo callbacks registered:{2020201,202020:1,1:61} undo [1:0:286748945] 2000.1.3 undo_callback{2020201,202020:1,1:61} Event-prepare 2000.1.3prepare_callback{2020201,202020:1,1:61}Event-complete 2000.1.3 commit_callback{2020201,202020:1,1:61}Event-abort 2000.1.3 abort_callback

�� ��

tmcmd, tmstat

logls

� 1 �� 63

objcall

�� �� �� �����.

��

objcall [-a] [-b] [-c group:role:...] [-e] [-F file_descriptor] [-k len] [-n] [-p port]

[-s] [-T trans_type] oid method [arg...]

��

objcall �� ��� ��� 0 �� � ��� ���� ��� ���� ���

�� ����. ���� � � � � ��� objcall ��� � � �

� ��� �����. � �� ���� �� ��� �����. � �� �

IDL(Interface Definition Language) ���� ��� �����.

��

-a �� �� ����� �����.

-b objcall �� ��� � � �� � � �����. � �� �

��� ���, ���� � � � ���.

-c group:role:...

�� �� ��� ��� ��� ��� �����. ���� ��� �

� ��� ��� � ����. � �� ���� ���, ���� ����

� ��� �����.

-e objcall �� ���� ���� �� �����. � �� ���� �

��, ���� �� � ��� �����.

-F file_descriptor

�� ��� ��� �� �� � �� �����.

-k len �� �� � � �� len ��� ��� ��� �� ����. -k �

�� ���� ��� �� � ���� ����.

-n ���� ��� ���� ��� ��� ��� ���� �, objcall �

� ����� �����.

-p port

� �� ��� �� �� �����.

-s ����(��) � � � ��� IOM(Inter-Object Messaging) � �

����. � �� ���� ���� ��� � � �� ���� ��

�� �� ���.

-T trans_type

���� �� �����. � �� �� � �����.

64 Tivoli Management Framework: ���

none ���� ��

revoke

�� ��� ����

sub �����

top ��� � ����

arg... ���� �� �� ��� ��� �����. � �� ���� ���, �

��� ��� ��� � ����.

method

��� ���� �����.

OID ���� ��� ��� �� ID� �����.

�: -b -k ��� � ���� ��� (-k len)� �� ����.

��

objcall �� ��� ���� � �� �� ���, objcall ��� �� ���

� ��� ����� ��� �� ��� �� ���.

��

1. �� ����� �� �� Tivoli �� management region ��� ��� �

get_oserv ���� �����.

objcall 0.0.0 get_oserv 2248904349.1.2

2. � Tivoli region � ��� � �� OID�� � � ��� ��

10�� ��� � ��. �� 1�� ��� �� Tivoli region �� ��

� 2248904349� �����. ��� ��� � 10�� ��� � �� ��

$TMR ��� ��� � ����(Tivoli �� ��� �).

�� ���� � �� OID� �� �� 1��, �� ��� OID� � � �

�� ���� ��� ����� �����(2).��� � � �� ���

Tivoli ����, �� �� �� 1 OID� � � �� �� ���

�� �� ��� ��� �����. � �� 2� oserv ���� ��� �

� �����.

�� ��� $TMR.1.2� ���� ��� � �� list� ���

boot_method ���� �����. � objcall oserv ��� Tivoli ��

region ��(�� ��� 1)� �� � ��� ���� � ���� ���

�� ����.

objcall $TMR.1.2 boot_method list

��� ��� ��� � ���.

objcall

� 1 �� 65

SchedulerEndpointManagerHTTPdActiveDesktopList

3. �� ��(objcall) �� �� � 2248904349� �� region�� Tivoli �

� (OID� 1 ��)� oserv ����(OID� 2 ��)� � query ���� �

����. query ���� ��� ��� install_dir��, � �� ������ �

�� �� � � ���� �����. �� ���, Tivoli ��� UNIX

�� ���� �����.

objcall 2248904349.1.2 query install_dir/usr/local/Tivoli/bin

� region� �� 10�� ��� ���� � $TMR ��� ���� � �

� ��� ��� �� � �� ��(OID� 5)� �� ��� ����� �

� �� � ����. � ��, ��� �� ��� Windows NT �� ���

�� �� �����.

objcall $TMR.5.2 query install_dirC:\tivoli\bin

�� ��

idlcall

objcall

66 Tivoli Management Framework: ���

odadmin

�� ���� �����.

��

odadmin [option [suboption]]

��

odadmin �� � oserv ��� �� � � �� ��� ��� �����

�����. ���� �� ��� ��� �� ��� �����.

v ����� � � ��

v �� ������ ��

v �� ��� �� � �� �

v �� ���� �� �� ��

v �� ��� ���

v �� Tivoli region �� ��

v ��� � � �� �

v ���� �� �

v ��� �� ��� �� �� �

v �� ��� �� � � ��

v Kerberos �� �� �� �� �� ��

v �� � ������ ��� �� �� ��

odadmin �� ���� Tivoli �� rgion� �� � �� ���� �� �

�� ������� ���� � ������. odadmin ��� ��� �

� � ��� �� � ���� ���(odadmin ��� � Tivoli ��� ��

Tivoli �� ��)� � � ����. odadmin ���� ���� �� ��� �

��� � ���� odadmin �� ���� �� �� ����� ������.

��

allow_client_install TRUE | FALSE

� region� �� �� ���� ���� � �� ���

� ���� ����. � �� ����� super �� senior ���

�� ���.

� 1 �� 67

allow_dynamic_ipaddr TRUE | FALSE

� Tivoli region ��� � IP(Internet Protocol) �� �� ��(DHCP:

Dynamic Host Configuration Protocol) �� �� �� �� ����

���. ��� FALSE���.

db_sync [od... | clients | all]

��� �� �� ������ ��� �����. ��� �� �

�����(od), � ����� �� ������(clients) �� � �

� ������(all)� ���� ��� � ����. super �� senior

��� ����.

environ

�� �� ���� �� ��� �� �� ����. ��� �

� ���� ��� � ��� ���� �� ��� �� �����. �

� �� ��� � �� ��� � �� ��� �� ��� ����

����. super �� senior ��� ����.

�� ��� environ ��� �� ��� � ����.

get [od... | clients | all]

�� ��� �� �� ���(od...), � ����� ��

���(clients) �� � �� ���(all)� �� ��� �

� ���.

set [od... | clients | all]

�� ��� �� �� ���(od...), � ����� ��

���(clients) �� � �� ���(all)� �� ��� �

� ����. � � �� ��� �� ����.

get_allow_NAT

NAT(Network Address Translation) �� �� �� �� �� ���

� �� set_allow_NAT ��� � ����.

get_platform_license

�� �� ��� � ���. � �� ����� super �� senior

��� �� ���.

get_port_range

IOM(Inter-Object Messaging) �� �� � �� �� � Tivoli ��

� �� �� �� � ���. �� ��� ���� set_port_range

�� ������.

get_rpc_max_threads

���� ���� � �� ���� �� ��� �� �� �����.

set_rpc_max_threads �� ���� � ��� ��� � ����.

odadmin

68 Tivoli Management Framework: ���

help [suboption]

�� �� ���� ��, odadmin ��� � ��� � �� ��� ��

��� � ��� �����. �� ���� ��� ��� �� ��

� �����. ��� ��� �� ���� �� ��, ��� � ��

� ��� ����. � ���� �� ��� � ����.

odinfo [od... | clients | all]

�� �� �� ���(od...), � ����� �� ���

(clients) �� � �� ���(all)� �� ��� �����. ��

���� � odadmin �� ��� ���� odinfo� �� �����.

�� ��� �, clients �� all �� ���� ���, odinfo �

�� � �� ���� �� ��� �����. � �� ����

� super, senior, admin �� user ��� �� ���.

odinfo �� ��� � �� ��� ��� �����.

��� ��

IBM ��� ��� ����.

region ��� � ���� � �� Tivoli Management Region �

� ����.

�� ��

Tivoli region � �� �� �� ��� �� ����. �� �

�� � 1 Tivoli ��� �����. Tivoli �� ��� ��

� �� ����.

����� �

�� ����� �� ����.

������ ����

� Tivoli �� ������ ��� ����.

�� ����

�� ���� � ��� �� � ��� ��� ���

�.

�� �� �� ��� ��

������ ����� �� ���� ��� � ���� ��� �

� ����.

�� �� Kerberos

Tivoli region ��� kerberos ��� ��� ��� ��� �

���.

odadmin

� 1 �� 69

�� �� ����� ���

Windows� Tivoli ��� ���� �� ��� �� ���

� �� ���.

��� ��� � ��� ���

� ���� �� ��� � �� ��� ����. �� ��,

� ���� FALSE� ���� ���� ��(NIC)� �� �

�� ��, oserv� NIC�� ��� � IP ���� ��� ��

94� ���. (TCP/IP� oserv� ��� � IP ��� � �� 94

�� ����� ���.) TRUE� �� � ��� oserv� � IP

��� ��� �� 94� ���� ����.

IOM ��� �� �� ��� �� �� �

IOM(Inter-ORB Messaging)� ��� IP ��� ���� IOM

� ����� �� �� ��� ����. IP ��� ����

� ��� ��� � ���� ����.

� �� BDT ��

� �� BDT(Bulk Data Transfer)� � ��� �� ����

(TRUE) �� �� ����(FALSE)� ����.

oserv �� � �

�� ���� �� �� ��� ����.

�� ��

Tivoli ���� �� ��� �� ��� �����.

� �� BDT ��� �� ��

BDT ���� � ��� ���� ��� ����.

��� ��

�� ��� ���� �� � ����. �� �� ���

SSL(Secure Sockets Layer) ��� FORCE_SSL �� �� �

� �� ��� ���� �� ���� SSL ���� ��� �

����. SSL �� ��� �� SSL �� �� �� �� �

SSL ����� �����. FORCE_SSL �� ��� SSL

���� ����� �����.

SSL �� ����

SSL ���� ��� �� ���� �� ���� ��(�� �

�) ����. �� default� 05040A030609� �� Tivoli �

� ���� �� ����.

ALLOW_NAT

NAT(Network Address Translation) ��� �� ����(TRUE)

�� �� ����(FALSE)� ����.

odadmin

70 Tivoli Management Framework: ���

�: UNIX �� ���� odadmin �� Tivoli ��� �� �� ��

�� ��� ����. Windows �� ����� ��� ��� �

���(DLL)� ��� ���� ��� �� 2� ���� �

���.

Tivoli ��� �� �� ��� �����.

�� �� �� ��

oserv ping � �� ��� ����. �� �� � ��� ��

��� ��� Tivoli Management Framework Maintenance and

Troubleshooting Guide� ������.

�� �� �� �

��� �� ��� ��� � ����� �����(TRUE) ��

����� � ���(FALSE)� ����.

� x� ���� �� �

�� ��� ���� �� ����.

�� ��� � IP ����

�� ���� DHCP(Dynamic Host Configuration Protocol) ��

� �� ����� ����.

��� ���� x� ��� ���

�� oserv ���� �� ORB� ��� ��� ����.

odlist [suboption]

� � ���� �� ��� ����� ���. � �� ����

� super �� senior ��� �� ���. odlist ��� �� ��

� � � ���� �� ��� � �� �� �� �� ��� ����

�� � ��� ������. ��� �� �� � ����� ��� �

��� �� ��� ��� �� ��� ��(wping ��) odadmin odlist

�� �� ������. ��� �� odlist �� ����, �� ��

� � �� ���� �� �� ��� � ���� �����.

Disp �� ��� �

�� xyz

� �� ���� ����. � � ���(x)� c� ��, �� �

� ���� ���� ��� �� ���� ���� ��

����.

� � ���� ?� ��, �� � ��� �� ��� ����

�� ����� �� ��� � � �� ����. ��� �

odadmin

� 1 �� 71

� ���� �����.(��� �� Tivoli Management

Framework Maintenance and Troubleshooting Guide� �����

�.)

� � ���� -� ��, �� �� ���� � ��� �

����.

� � ���(y)� �� t���. t ���� �� ����

trusted� ����.

� � ���(z)� �� -���. - ���� ���� �� �

��� �� ����.

Hostname(s)

�� ���� �� ������ �� � ��� �

IPaddr

�� ���� �� ������ IP ��

Port �� ���� �� �� ��

region �� ���� �� �� ���� �

�� ��� odlist ��� �� ��� � ����.

list_od

region� ��� �����.

add_ip_alias od IP_address | host_name

�� ���� �� IP �� �� �����. ��� IP �

� �� ��� �� �� �� �� ��� IP ��

� �� � ���� �� �����. � ��� Tivoli �

��� �� ���.

delete_ip_alias od IP_address

�� ���� �� IP �� �� �����. � ���

Tivoli ���� �� ���.

add_hostname_alias od IP_address host_name

��� � �� �� ��� ��� IP ��� ����

�. � ��� Tivoli ���� �� ���.

delete_hostname_alias od IP_address host_name

�� ��� ��� IP ��� �� ��� � �� ��

���. � ��� Tivoli ���� �� ���.

change_ip od IP_address [TRUE | FALSE]

�� ��� ��� 1� IP ��� �����. ��� IP �

odadmin

72 Tivoli Management Framework: ���

� �� ��� �� �� �� �� ��� IP ��

� �� � ���� �� �����. � ��� Tivoli �

��� �� ���.

rm_od od

�� ���� ��� �����. ��� �� ����

���� �� ���� ���. ���� ��� ��� ��

�� ID ��� ����. ��� ����� ��� �

� ��� �� ����. � ��� Tivoli ���� �� �

��.

rm_od �� ����� �� ��� ��� � � ��� �

� ����� ��� ���� ���� ���. ������ ��

�� �� ���� wrmnode ��� �� �����.

set_kerberos_instance 1 kerberos_name

Tivoli Management Region ��� ���� Kerberos ���� �

��� � �����. �� ��� �� �� 1���.

objects od

�� ���� ��� ��� �� ID �� ���

�.

reexec [od... | clients | all]

� �� ���� ������. ��� �� ���(od), �

����� �� ���(clients) �� � �� ���(all)� �

�� � ����. Tivoli �� �� ���� �� ����� �

�� � ����. super �� senior ��� ����.

region [suboption]

�� Tivoli region �� �����. � �� ����� super �� senior

��� �� ���. �� ��� odadmin region� � ��� �

����. � ��� Tivoli ��� �� region� ���� ��� �

�� �� � ��� ��� � �� ����� ��� ���� �

� ���.

add_alias region IP_address [host_name...]

�� Tivoli ��� �� ��� � �� IP �� �����.

add_group_map region remote_group local_group

region ��� �� �� �� �����.

add_group_id_map region remote_name local_name

�� region� ��� �� ��� � region� �� ����

�� �����.

odadmin

� 1 �� 73

add_region region host port [crypt]

�� region �����. � � �� ��� ����. � ��

�� ���(tty)�� ���� ��� �������.

add_role_map region remote_group remote_role localrole

�� �� �� �� �� �����.

add_user_id_map region remote_name local_name

�� region� ��� ��� ��� � region� ��� ��

�� �� �����.

change_region region host port [crypt]

�� region� �� �� ��� �����. � � �� ��� �

���. � �� �� ���(tty)�� ���� ��� ����

���.

�: region ��� ���� ���, region ��� �����. region

��� ���� region ���� � odlist.dat ��� ����

�.

delete_alias region IP_address [name...]

�� Tivoli ��� �� ��� � �� IP �� �����.

delete_group_map region remote_group

region ��� �� �� �� �����.

delete_group_id_map region remote_name

���-�� � �� �����.

delete_region region

�� region� �� ����.

delete_role_map region remote_group remote_role

�� �� �� �� �� �����.

delete_user_id_map region remote_name

��� � �� �����.

list_group_id_map region

�� region� ��� �� ��� � region� �� ����

�� ����.

list_map region

region ��� �� �� � �� �� �����.

list_region [region]

��� region �����. region �� ���� ��� �

region� ��� region �����.

odadmin

74 Tivoli Management Framework: ���

list_user_id_map region

�� region� ��� ��� ��� � region� ��� ��

�� �� ����.

set_install_pw

�� ��� ��� �� � ��� ����. � � �� ��

�� � ��� ��� ����. � �� �� ���(tty)��

���� �� �� ��� ��� �������.

�: � ��� ���� region ��� ���� ����.

set_region_crypt_level crypt

� region� ���� � �� Tivoli ��� ���� ��� �

����. crypt �� none, simple �� DES � �����.

set_region_pw

� region� ���� � �� Tivoli ��� ��� ��� ��

��. � � �� �� �� � ��� ��� ����. � ��

�� ���(tty)�� ���� �� �� ��� ��� ���

����.

�: region ��� ���� � ��� ���� ����.

set_allow_rconnect {TRUE | FALSE | version_2} [od... | clients | all]

Tivoli ��� �� �� ��� ��� � ����. TRUE � version_2

� �� �� ����. TRUE� version_2� �� � ���� �

�� � �����. ��� version_2� � �����.

set_allow_NAT {TRUE | FALSE}

NAT(Network Address Translation) �� �� ���� ���. ����

����� ����� ��� ������ �� �� ���. ��

� FALSE���. NAT ��� �� ��� ��� Tivoli Management

Framework �� �� ���� ������.

set_bdt_port {port_value} [od... | clients | all]

BDT(Bulk Data Transfer) ���� ���� ��� ����. ���

1023�� � ���. ���� �� ���(od), � ����� �

� ���(clients) �� � �� ���(all)� ���� ���

�� � ����. � �� ����� super �� senior ��� ��

���.

�: � �� odadmin single_port_bdt ��� TRUE� �� ����

��� � ����. single_port_bdt� FALSE(���)� �� ���

� � BDT ��� ���� � �� �� �� ���� ���� �

���.

odadmin

� 1 �� 75

set_crypt_level {crypt}

� region �� �� ��� ��� �� ��� � ����.

����� ��� � ���� �� ��� �� ���.

1. odadmin shutdown clients� � ����.

2. odadmin set_crypt_level crypt� � ����. ��� crypt� ���

� ���� none, simple �� DES� � ����.

3. odadmin start clients� � ����.

set_crypt_level �� ����� super �� senior ��� �� ���.

set_force_bind TRUE | FALSE {od... | clients | all}

Tivoli �� ��� � IP ��� ������ ���. � �� �� �

� ���� �� � ���� �� IP ��� �� ��� �� �

� �� ��� �����.

set_install_pw

�� ����� �� �� � ��� ����. � � �� �� �

� � ��� ��� ����. � �� �� ���(tty)�� ����

�� �� ��� ��� �������. � �� ����� super �

� senior ��� �� ���.

set_iom_by_name TRUE | FALSE {od... | clients | all}

IOM � �� ��� � ��� Tivoli ��� IP �� �� ��� �

� ��� � �� ��� ��� � �� ���. � �� �� ���

�� IP ��� ��� �� ��� � ������.

set_keep_alive {on | off | poll | nopoll | time...}

� ��� ���� ���� �� �� ����. ��� off��, 180

��� ���� �� � �� ���� �����. “180��� �� ��”

�� �� �� odadmin �� � �� ���� � �����. �

�� ����� super �� senior ��� �� ���. ��� �

�� ����.

on | off

�� ��� �� ��� ��� ����(on) �� � ���

� �� ��(off) ��� �����.

poll | nopoll

���� ���(poll) �� ����� ��� � ��(nopoll) �

�� �����. �� ���� ���� ��� ������.

time �� �� �� �� � �� �����. ���� ���� �

���� ���� ����.

odadmin odinfo 1 ���� ��� keep_alive �� � � ����.

odadmin

76 Tivoli Management Framework: ���

set_network_security {none | SSL | FORCE_SSL}

[od... | clients | all] �� ��� ���� �� � ����. ���

�� ���(od), � ����� �� ���(clients) �� �

�� ���(all)� �� ���� �� � �� � ����. �

� ��� ����.

none �� ��� SSL(Secure Sockets Layer) ��� FORCE_SSL �

� �� �� �� ��� ���� �� ���� SSL ���

� ��� �����. �� ����.

SSL �� ��� �� SSL �� �� �� �� � SSL �����

�����. SSL none ��� �� ��� �� ���� ��

��.

FORCE_SSL

�� ��� SSL ���� ����� �����. �� ���

SSL� � �� ��� ����.

�: ���� ����� �� ��� �� ������. SSL� �� ��

� ��� Tivoli Management Framework �� �� ���� ����

��.

set_ORB_pw od

Tivoli ��� �� ��� ��� ������ �� ��� �

�� ��� ��� ����. � � �� ��� ����. � ��

�� ���(tty)�� ���� ��� �������. super �� senior �

�� �� ���. Tivoli �� ��� �� ���� �� �� �

� �� ���.

����� Tivoli ��� ������ ����, Tivoli ������ Tivoli

�� ���� � ���� ��� Tivoli ��� � ����. � ��

� ��� ���� �� ���� ����� � ���� ����. �

�� � ���� �� ����� ����� �� ��� ������

� ��� ��, ���� ��� ��� �� �� �� �� ���

� ����.

������ �� Tivoli ��� ����� �� ������.

1. �� ������ ������.

2. Tivoli ���� odadmin set_ORB_pw od� ������.

3. Tivoli ������ ����� ����� ������ ����

odb.adj ��� host_name-od-odb.adj �� ������. �� �� �

��� ���� � �� ������. odb.adj �� �� ���

��/��, �� �� � �� ���� �� �� ��� ���

�����.

odadmin

� 1 �� 77

4. �� ���� �� ������.

set_platform_license license_key

�� �� ��� � ����� �����. � �� ����� super

�� senior ��� �� ���.

set_port_range [range]

IOM �� �� �� �� � Tivoli Management Framework ��

��� �� ��� �����. � �� ��� ��� ��� ���

�� �� ��� ����� �����. oserv ����� �� ���

� ��� �� � ����. �� ��� 1023�� � ���. ��

�� � ���� �� �� ������.

odadmin set_port_range ""

set_rpc_max_threads num_threads

���� �� � �� ���� �� �� �� �� � �� �

� �� �� ����. ��� 250���.

set_ssl_ciphers cipher... [od... | clients | all ]

���� �� �� ��� �� ���� ����. ��� �

� ���(od), � ����� �� ���(clients) �� � �

� ���(all)� �� �� ���� �� � ����. cipher �

� ��� ����.

default

05040A030609� �� Tivoli �� �����. SSL ��� ��

�� ��� ����� �� � ����.

cipher �� ���� �� �� � �� �����(�: 0A09). ��

� �� �� ���� �� ��� � ���� ��� SSL ��

�� ���. �� ����� SSL �� ���. �� ���

�� SSL �� ��� ��� �� �� �� ���� � Tivoli

Management Framework �� �� ���� ������.

�: ���� ����� �� ��� �� ������.

set_tmgr_retries

���� ���� �� ���� � �����. ���� ���� ���

�� ���� ����� ��� �� � �� ����� �� �

� ���� ������.

�: � � Tivoli region ���� �����. � region� � ��

�� � � ���. � � �� � ���� �� ��� �

�����.

odadmin

78 Tivoli Management Framework: ���

shutdown [od... | clients | all]

� �� ���� �����. ��� �� ���(od), � �

���� �� ���(clients) �� � �� ���(all)� ��

� � ����. � �� ����� super �� senior ��� �� �

��. �� ����� Tivoli ��� ��� � ����. � �� NetWare

������ ��� � ����. NetWare ������ oservend �� �

��� �� ���.

single_port_bdt {TRUE | FALSE} {od... | clients | all}

IOM(Inter-Object Messaging) � �� �� ��� �� �� �� ���

� �� BDT(Bulk Data Transfer)� �� �� �� �� ���� �

��. TRUE� ���� �� ��� ��� ��� �����. ���

FALSE���. �� ���(od), � ����� �� ���

(clients) �� � �� ���(all)� �� ���� �� �� ��

�� ���� � � ����. � �� ����� super �� senior �

�� �� ���.

�:

v BDT ���� �� ���� � � odadmin reexec �� ���

� ���� �������.

v single_port_bdt� �� ���� � ��, odadmin set_bdt_port �

� ���� �� ��(9401)� �� ��� ��� � ����.

start [od... | clients | all]

� �� ���� �����. ��� �� ���(od), � �

���� �� ���(clients) �� � �� ���(all)� ��

� � ����. � �� ����� super �� senior ��� �� �

��. � �� NetWare ������ ��� � ����. NetWare ��

���� oservrun �� ���� ���� ���.

trace {objcalls | services | errors | off [od... | clients | all]}

�� �� �� �� �����. �� ��, ��� �� ��� ��

��� �����, �� �� � � ����. �� ��, ��� �

��� ����� ��, �� odadmin trace errors �� ���� ��

�� � ���. �� �� �� �� ��� ���� �� ��

� ������. ��� �� �� �� ��� �� ��� ��� ��

� ���.

��� �� ���(od), � ����� �� ���(clients) �

� � �� ���(all)� �� �� ����� ��� � ����.

�� �����, clients �� all �� ���� ���, � ��

����� �� ��� ����� �����. �� ��� ������

odadmin

� 1 �� 79

��� �� odtrace.log ��� � ���. wtrace �� ���� �� �

�� � � ����. odadmin trace� ����� super �� senior ��

� �� ���.

Tivoli� ����� �� �� �� ���� �� ��� ����.

� �� �� � ���� ���� ���� ��� �� �� ��

�. �� ��� �� �� � �� �� � ��� �� ����

��.

use_kerberos {TRUE | FALSE [od... | clients | all]}

Kerberos �� �� �� �� �� ���� ���. ��� ��

���(od), � ����� �� ���(clients) �� � ��

���(all)� �� Kerberos �� �� �� �� �� ���� � �

����. �� �����, clients �� all �� ���� ���, � �

� ���� �� Kerberos ��� �� �� �� �� ���� �

��. � �� ����� super �� senior ��� �� ���.

��

1. �� ����� Tivoli ��� ��� ����.

odadmin odinfo 1

��� ��� � � ����.

Tivoli Management Framework (mb) #1 Fri Feb 16 17:19:20 2001(c) Copyright IBM Corp. 1990, 2001. All Rights Reserved.

Region = 1000142803Dispatcher = 1Interpreter type = w32-ix86Database directory = C:\Tivoli\mbarber2.dbInstall directory = C:\Tivoli\binInter-dispatcher encryption level = simpleKerberos in use = FALSERemote client login allowed = TRUEForce socket bind to a single address = FALSEPerform local hostname lookup for IOM connections = FALSEUse Single Port BDT = TRUEPort range = (not restricted)Single Port BDT service port number = default (9401)Network Security = SSLSSL Ciphers = defaultALLOW_NAT = FALSEState flags in use = TRUEState checking in use = TRUEState checking every 180 secondsDynamic IP addressing allowed = FALSETransaction manager will retry messages 4 times.

2. �� ����� shutdown ��� �� ��� ���.

odadmin help shutdown

odadmin

80 Tivoli Management Framework: ���

��� ��� � � ����.

shutdown [od... |clients|all]Stop object dispatcher(s)

3. �� ����� � ���� �� ������ �� �����.

odadmin db_sync all

4. �� ����� � �� ��� �� �� 60000-60100 ����� ���

��.

odadmin set_port_range 60000-60100

5. �� ����� Tivoli ���� ���(�� ��)� �� ��� �����.

odadmin odlist

��� ��� � � ����.

Region Disp Flags Port IPaddr Hostname(s)1248901349 1 ct- 94 10.69.9.42 la.tivoli.com,la

2 ct- 94 10.69.9.73 ten.tivoli.com

�� ��

odbls, odstat, oserv, wconnect, wdisconn, wlsconn, wrmnode, wtrace, wupdate

odadmin

� 1 �� 81

odbls

�� ������� �� �����.

��

odbls [-a] [-I] [-i] [-l] [-m] [-O] [-s] [-k directory] [-M meth_name] [oid]

��

odbls �� �� ������� �� �����.

��

-a �� ������� � ����.

-I �� ������ �� �� ����.

-i �� ������� �� ��� ����. � �� ����� Tivoli

Management Region ��� ������� �� ���.

-k directory

��� �� ������� ���� ���� �����. � �� �

��� ���, �� ���� ������� �����.

-l �� ��� �� �� ��� ����.

-m ��� ��� �� � �� �����. � �� ����� Tivoli

Management Region ��� ������� �� ���.

-M ��� ��� ��� meth_name� �� �� �����. � �� �

���� Tivoli Management Region ��� ������� �� ��

�.

-O �� ������� �����. � �� ������.

-s ��� �� ���� ��� ������� ������� ���.

� ��� odbls ��� �� ���� ���� �� ���� �

��� �����. � �� ���� ���, �� ������ ��

��� ��� ��� ���� ����.

OID ��� ��� �� �����.

��

odbls �� ����� ������� �� �� ��� �� ���. �� -s �

� ����� super ��� �� ���.

82 Tivoli Management Framework: ���

��

�� ����� �� ������� � ��� �����. � � ��

��.

odbls -k /var/spool/tivoli/myhost.db

<bootstrap>200003.0.0200003.1.0200003.1.1200003.1.10200003.1.100200003.1.101200003.1.102200003.1.103200003.1.104

...

�� ��

odadmin

odbls

� 1 �� 83

odstat

�� � �� �� ��� ��� �����.

��

odstat [?] [-a] [-c] [-d] [-h] [-l] [-s] [-v] [-o baseoid] [-p port_no]

(UNIX� �) odstat [?] [-acdhlsv] -k dbdir [pid]

��

odstat �� ��� �� ���� �� �� � �� �� ��� ���

�����. � �� �� �� ������ �� �� ��� � ����.

odstat ��� � � �� ���� ���� �� ��� ����� �

���. ��� ��, �� �� ���� ��� � ����.

odstat ��� � � �� �� ���� ��� ��� ��� � ���.

-k �� ������ ���� ����, �� ���� ���� ���

� �� ��� �����. pid �� ��� ��� �� ���� �����.

odstat ��� � � �� �� ��� ��� �� � �����, � �

���� � ������. � � �� � ������ ��� �� � ���,

�� ���� ��� �� ��� �����, ���� ��� �� ��� �

���� ���� � �� ��� � ����.

odstat �� � �� ��� �����.

tid �� ID� �����. �� �� ���� � �� ��� ���

��, ��� �� �� ��� �� � �� ��� ���� ���

� �� ���.

type �� �� �����. �� �� ���� ��� ����.

O �� �� ��(�� �� ��)� �����. ����

��� �� �� ��� �� �� ����.

M ��� ��(���� ��)� �����. �� �� ��

����� �����, ��� � � ���� ����.

O+ �� �� � ��� ��� �� ����. �� ���

� ���� � �� �����.

��� �� ���� ��� ����.

a �� �� ��

b ��� �� ��

84 Tivoli Management Framework: ���

d � ���

h ��� ���

o ��� ���

q ��� ���

ptid ���� �� ��� ��� �� ��� �� ID �� �� �

� ID� �����. � ��� ���� �� �� ���� ���

���. ��(-) �� ��� �� ��� �� ��� ����. �� �

�� �� �� �� ��� �� �� �� ID���.

State �� �� �� �� ��� �����.

ali ��� Tivoli �� ������� �� �� �� ����.

coord ���� ���� � ������ �� ���.

done �� ��� ��� ���.

err �� ��� ��� ��� ���.

init ��� ���� ���.

mwait ��� ��� ��� ��� ����� �� ��.

rwait ��� ���� �� �� �� ��� � ��� �� �

�.

��� ��� ��� ��� ����.

done ���� ��� ���.

gmeth ��� �� ����� ��� ��� � ����.

hdwt ��� � ��� ����(�� ���� �� �)� ��

� �� ��� � ��� ��� ����.

init ��� ���� ���.

run ���� �� ����.

serv ��� �� ��� �� ��� ����.

twait ���� ���� ��� �� �� �� ��� �� ��.

StdO ���� � � � ��� ��� �� �����.

StdE ���� � ��� ��� ��� �� �����. ���� ���

� ��� ���� ����.

Start ��� ��� �� �����. ���� ���� odstat �� ���

�� � ��� ��� �� ��� �� �� �� ��� �����.

��� 1�� ��� ��� �� � � �� ��� � ����(wtrace

� ��).

odstat

� 1 �� 85

Err ��� �� ��� �����. � ��� ���� ��� ���� ��

��. �� �� ��� ����.

e=n ���� �� ��� n �����. �� �� 0 - 21 ��� �

� ��� ���� ����. ������ �� ��� 22�� ��

���.

s=n ���� �� n�� � ������.

S=n ���� �� n�� � ��� �� �� �������. �

�� �� ����� �� ����� ������.

XXX ���� �� ���� ��� �����.

�� ��(e=)� Tivoli ���� �� �� ���, Tivoli Management

Framework �� �������� � � ����. � ���� � ���

���� �� �� �� �� ��� �� ���. ��� ��� ���

� ��� �� ��� �� ��� � � ����. ���� UNIX ��

���� ��� �� �� � ��� � ���� �� ��� �� ��

��. OS/2 �� ����� help n � ����. ��� n �� ���

� ����(�: help 5). Windows �� ����� net helpmsg n ��

� ����(�: net helpmsg 5).

Method

��� ��� ���� �����. � � � ���� ��� ����

� �� ��� �� ID���. � ���� ��� ��� � ��

�� ���� �� �� ��� ��� ��(#), ��� � � � �� �

�� ��� �� � �� ��� �� �� � ����. �� �� ��

� ��� ��� �� ��� ����.

�� odstat � � ��� ���� �����.

1242184237.1.516#TMF_SysAdmin::InstanceManager# _get_interfaces

odstat �� � � �� ��� �� ��� �� ��� ��� Tivoli Management

Framework Maintenance and Troubleshooting Guide� ������.

��

? odstat ��� �� ��� ����.

-a � ��� �����. ����� ��� ��� �����.

-c �� �� �� ��� �����.

-d �� ��� � ����� �����.

-h �� ����(��� ��)� �����.

odstat

86 Tivoli Management Framework: ���

-k dbdir

��� ���� �� ������� ��� �� ����� ��� �

����. -k dbdir �� ���� ��, �� ���� ����

ID(pid)� �� ���. ��� � ��, odstat �� ���� �

��� ID� �� ��� ���� �����.

�: � �� UNIX��� �����.

-l � �� �����.

-o baseoid

�� ����� �� ��� ��� �����.

-p port_no

�� �� ����.

-s � �� �����.

-v �� �� �����. ��� �� ��� ��� ��� �� ��

� �, � �� �� ��, ��� ��� ���� ID � � ��

�� ��� ��� ���� �����.

pid ���� ���� ID� �����. � �� ��� ��, -k ��� �

� ���.

�� ���� �� ��, odstat ��� ��� odstat -c -h -l -o 0.0.0���.

��

� �� ����� super, senior, admin �� user ��� �� ���. -k �

� ����� ��� �� ��� ���.

��

1. �� ����� ��� �� odstat� � ����. � � �� � �

�� ���� ����.

odstat

� �� �� �� ���� ����.

n_active = 5 n_free = 195tid type ptid State StdO StdE Start Err Method83 O+bhdoq run 0 0 Sat16:00 200003.1.163#TMF_Scheduler::scheduler# start

odstat � ��� ��� � ���� ID 83 ���, �, �, ���

��� �� ��� “���” �����. ��� �� ��� ���, ��

16:00� ��� ���. �� ID�

200003.1.163#TMF_Scheduler::scheduler#(� ���� ��)�� ���

� start���.

odstat

� 1 �� 87

(... output deleted for brevity ...)---- history ----855 O+ 1-854 done 11 0 Sun16:16 0.0.0 get_name_registry856 O+hdoq 1-854 done 106 0 Sun16:16 200003.1.26 lookup857 O+hd 1-854 done 6 0 Sun16:16 200003.1.128

#TMF_UI::ActiveDesktopList# add_entry

���� � �� ��� ���� �� �����. ��� 855, 856 � 857

�� ��� ����, � oserv� ��� 854� � ��� ���.(� �

���� ��� 1 �����.) ��� 855� 11���� � � ��

�, 856 106���, 857 6���� ������.

(... more output deleted ...)* 918 O+hdoq 1-917 done 488 0 Sun16:27 e=12 200003.1.26 lookup

��� 918� ��� ������. � � �� �� �� ��� ��� �

� �����. e=12� ��� ���� �����. wtrace �� ��� �

� ��� ��� ���� � ��� � ����.

950 O 1-949 done 0 0 Sun16:28 <batch-mgr>\add_backref_optimized951 O+hdq 1-949 done 117 0 Sun16:28 200003.1.378

#TMF_Install::ProductInfo# add_backref_optimized

��� �� 950 �� �� �� ������. �� �� �� ��

�� �� ���� �� �� �� ��� �� �� �����. 951 �

950� ���� �� ��� �� � �����.

* 1029 O+ 1-1026 done 0 0 Sun17:06 UNAUTHORIZED 200003.0.0get_principal_roles Root_PI-sluggo

��� 1029� ��� �� �� �� ��� �� �� ��� ��� ���

���� ����. � ��, odstat� ��� �� �� ��� �� ���

�����. ��� ���� ��� ���, wtrace� �� ��� �� �� �

�� ���� ����.

2. �� ����� �� ��� ��� ����� �����. ��, � ���

� wlookup �� ���� �� � �� ��� �� � � �

� ��� ���� odstat� ������.

wlookup -r ManagedNode -a

pokey 200003.2.7#TMF_ManagedNode::Managed_Node#sluggo 200003.1.285#TMF_ManagedNode::Managed_Node#

odstat -o 200003.2.7#TMF_ManagedNode::Managed_Node#

�� ��

odadmin, tmstat, wtrace

odstat

88 Tivoli Management Framework: ���

oinstall

Windows ��� ���� Tivoli �� ��� ���� � �, �� �

� �����.

��

oinstall -install path

oinstall -query

oinstall -remove

oinstall -update {[+auto | -auto] [+depend | -depend service] [+interactive |

-interactive] [path]}

��

oinstall �� ��� ���� Tivoli �� ��� �� oserv ���� �

�� � �����. � �� oserv ���� ����� Windows ��� ����

� oserv ���� ��� �� �����. Tivoli Management Framework� Windows

�� ��� �� � oinstall� � ���� � ��� �����.

��

-install

oserv ���� Windows ��� ���� ����. � ���� ����

� � � �� �� ��� ����.

-query

�� oserv ��� ��� �� � � �� ���. � �� oserv

� ��� �����.

-remove

oserv ���� Windows ��� ����� �����.

-update

�� �� � �� �� ���� oserv� �����.

+auto | -auto

��� �� ��� � � �� �� �� �� �� �� �

��� ���. ����� � �� �� ���� ����.

+depend | -depend service

��� ���� ��� ��� Windows �� ���� oserv ��

������. ���� TCPIP, TRIP � �����. ��� �

��� � ��� oserv� ����� ��, ��� oserv� �

� 1 �� 89

��� �� ���� ���� ���. ��� ���� ���� �

� oserv� � ���� �� ���� ����� ����. �

�� ��� ���� oserv� �����. � �� ���� oserv

��� ��� ��� � ����. �� �� � ���� �� �

� ��, ���� ����� ���� ����� �� �� �

��. ��� � ���� oserv ��� ��� �� ����� �

����.

+interactive | -interactive

oserv ��� Tivoli ��� ��� ��� �� �� �� �

� �� ���� ���. Tivoli ADE(Application Development

Environment) �� �� �� ��� ���, ��� �� ��

���� �� ����.

path � NTFS(New Technology File System)� oserv.exe ��� �

� ��� �����. libuthreads.dll ��� � ����� �

� �����.

�: oinstall -update �� ��� � ���� ��� �� ��, ���� �

���� ���� ����� �� �� ���.

��

���� �� ��

��

1. �� ����� ��� ���� oserv ���� ����. oserv.exe ���

libuthreads.dll �� c:\Tivoli� �����.

oinstall -install c:\Tivoli\oserv.exe

2. �� ����� ��� ���� oserv ���� �����. oserv.exe ���

libuthreads.dll ��� ��� c:\Tivoli\bin�� ��� � �� �� ��

�� ���� ���.

oinstall -update +auto c:\Tivoli\bin\oserv.exe

3. �� ����� TCP/IP� ��� ��� Windows �� ����� oserv ��

������.

oinstall -update +depend TCPIP

4. �� ����� oserv ��� �� �����.

oinstall -update -depend

5. �� ����� ���� �� ��� ��� �� ��� � �� ��

�.

oinstall -query

oinstall

90 Tivoli Management Framework: ���

oserv

�� ���� ��� ���� �� �����.

��

oserv -k dbdir [-a TRUE | FALSE] [-b install_dir] [-B libpath] [-c crypt] [-C

crypt] [-d] [-E {default | cipher...}] [-K kerb_serv_inst] [-l log_file] [-m swapsize]

[-n {none | SSL | FORCE_SSL}] [-N ali [-r region]] [-N {by_addr | by_name}]

[-p local_port] [-R irkey] [-S] [-s install_key] [-t max_trace_size] [-v] [-z TRUE

| FALSE]

oserv -k dbdir [-b install_dir] [-B libpath] [-d] [-E {default | cipher...}] [-h

TMEhost] [-l log_file] [-m swapsize] [-n {none | SSL | FORCE_SSL}] [-p

local_port] [-S][-t max_trace_size] [-v] [-z TRUE | FALSE]

oserv -b install_dir -k dbdir [-f TRUE | FALSE] -i -r region [-a TRUE |

FALSE] [-B libpath] [-c crypt] [-C crypt] [-d] [-E {default | cipher...}] [-K

kerb_serv_inst] [-l log_file] [-m swapsize] [-n {none | SSL | FORCE_SSL}] [-N

{by_addr | by_name | ali}] [-p local_port] [-R irkey] [-S] [-s install_key] [-t

max_trace_size] [-v] [-z TRUE | FALSE]

oserv -k dbdir [-f TRUE | FALSE] -i -h TMEhost -b install_dir [-B libpath]

[-d] [-E {default | cipher...}] [-l log_file] [-m swapsize] [-n {none | SSL |

FORCE_SSL}] [-p local_port] [-S][-s install_key] [-t max_trace_size] [-v] [-z

TRUE | FALSE]

Windows ���� ����

net start oserv /-option...

oserv �� ��� ������ ��� � ����. ����� oserv �� ��

net start� ���.

� �� ��� UNIX�� ���� ��� ��(-) ��� �� ��(/-)�

���. �� �� � �� �� �� � ��� ��� �� ���

(�: net start oserv /-Nbyaddr).

-k �� � ����. ���� � ��, ������ ���� ��� ��

���� ����.

��

oserv �� Tivoli �� ���� �����. Tivoli �� ���� �

� �� ����. � ���� Tivoli� �� � ����� Tivoli �� �

� 1 �� 91

������ �����, ��� ��� � ��� �� �� �����,

� ���� �� ��� ������ ���� ���� �� �� ����

�.

oserv ��� � � �� Tivoli �� rgion ��� �� ���� �� �

��� � �����.

oserv ��� � � �� Tivoli ������� �� ���� �� ��

�� � �����.

oserv ��� � � �� Tivoli �� rgion ��� �� ���� ����

� � �����.

oserv ��� � � �� Tivoli ������� �� ���� �����

� �����.

oserv ��� � � � � � �� � ���� ��� �� �����.

�� ���� �� �� ������� ���� �� ���� �

� ��� � �� ���� ��� � ����. �� ���� �� ���

�, ����� -k ��� �� ���� �� ��� �� �����. odadmin

�� ���� �� ���� ���� � �� ���� �� �

�� � ����.

��

-a TRUE | FALSE

����� �� ���� ���� ����. ����� �� �

(TRUE) �� ��(FALSE)� � ����. � �� Tivoli Management

Region ��� ��� �����.

-b install_dir

��� ��� � ���� �� � �����. � �� -i ��

� ��� �� �����. $BINDIR/.. � %BINDIR%\.. ��� �� �

��� �� ��� � � �� �����. ��� � �� �

� � ���� �� �(...)� ����. �� $BINDIR/..(UNIX) �

%BINDIR%\..(Windows)� ��� � ������.

-B libpath

�� ���� �� ��� �����. -i �� ��� � �� ��

�� � ��, ���� �� ��� ���� ���� ����. �

$LIBDIR(UNIX) �� %LIBDIR%(Windows)� ��� � ���

���.

oserv

92 Tivoli Management Framework: ���

-c crypt

region� ��� � �����. crypt �� des, simple �� none�

� ����.

-C crypt

region� ��� � �����. crypt �� des, simple �� none�

� ����.

-d �� ���� �� ���� ���� ����. � �� ��

���� ���� ���� � �����. � � /dev/null� ��

�� ����.

-E {default | cipher...}

�� ��� �� ���� �� �� �� � �� ����(�:

0A09). � �� ���� �� �� �� �� �� ���� ����.

�� �� � ��� �� ��� �� � ���. �� ��� ��

� ���� ��� �� ���, �� �� ��� 05040A030609� Tivoli

�� ���� �� ���� �����. �� ���� � ��� �

�� Tivoli Management Framework ��� ���� ������.

-f TRUE | FALSE

�� ���� � Tivoli ����� ��� �� � ��� ���

���. �� ���� �� IP(Internet Protocol) ��� �� ���� �

�� � � �� ������. � ����� ��� ��� � �

��� � IP ��� ����� ���.

-h TMEhost

� Tivoli �� Tivoli Management Region �� � �����. � �

� Tivoli ������� �� ���� ��� � �����.

-i �� ���� ������. � �� � �� ����� ��

���� ��� � �����. � �� ���� �� �� -i �� ��

�� ����� ����.

-I �� ����� �� ���� inetd� � ��� �� �

����. � �� inetd �� ���� ����, ���� ������ �

���.

-k dbdir

� � ��� ��� �� �� �� � � � � � � . �

$DBDIR(UNIX) �� %DBDIR%(Windows)� ��� � ����

��.

-K kerb_serv_inst

Kerberos ��� ���� � ����. � �� Tivoli Management

Region ��� ��� ��� � ����.

oserv

� 1 �� 93

-l log_file

���� ���� � ��� �� �����. � ��� ���� � �

�, ���� oservlog ��� �����.

-m swapsize

mmap� � ��� �� ��� ��� �����.

-n {none | SSL | FORCE_SSL}

Tivoli Management Region ���� �� �� �� ��� �� ����

�� � ����. �� �� � ��� �� ��� �� � �

��. �� ��� ����.

�� �� ��� SSL(Secure Sockets Layer) ��� FORCE_SSL �

� �� �� �� ��� ���� �� ���� SSL ���

� ��� �����. �� ����.

SSL �� ��� �� SSL �� �� �� �� � SSL �����

�����. SSL none ��� �� ��� �� ���� ��

��.

FORCE_SSL

�� ��� SSL ���� ����� �����. �� ���

SSL� � �� ��� ����.

-N {by_addr | by_name | ali}

gethostbyaddr (by_addr), gethostbyname (by_name) ����� Tivoli

Management Region ��� odlist �� � ���� �� ��� ��

��(ali) odlist ��� �� IP ��� �� ����. �� � �� �

����� � ��� �� � �� � ali �� ���� Tivoli

Management Region ��� � ����� ��� ����.

-p local_port

�� ���� ���� � ��� �� �� �����. �� �� 1024

���� ���. � �� /etc/services ��� �� �� �� ���

��. � ��� ���� � ��, ��� /etc/services ��� �� ��

���.

-P ali_port

Tivoli Management Region �� ���� � ��� �� �� ���

��. �� �� 1024 ���� ���. � �� -i ��� ���

Tivoli �� ��� � �� ���� �� �� ���� ���

�. � �� Tivoli ������ ��� �����.

�: � �� �� � ��� ����� ���� �� ���. �� ��

�� ���� � ���.

oserv

94 Tivoli Management Framework: ���

-r region

region �� ����. � �� -i �� �� -N ali ���� ��� �

����.

-R irkey

region� ��� � �����. irkey ��� ���� ���, � � �

� region� ��� � ����. -s ��� ��� ���� -R �� �

�� � ����.

-s install_key

� � �����. install_key ��� ���� ���, � � ��

� � ����. -R ��� ��� ���� -s �� ��� � ����.

-S oserv ��� � syslogd� ��� ����.

-t max_trace_size

wtrace ��� ���� � ��� odtrace.log ��� �� ��� ��

��.

-v oserv� ������ ���� � UNIX ���� fork() �� vfork()

� ����� ���. � ���� ��� Windows ����� ��� �

���.

-z TRUE | FALSE

Kerberos �� �� ��(TRUE) �� �� ����(FALSE) ���.

��

root

��

1. �� ����� � �� ��� ���� oserv� �����.

oserv -k /var/spool/Tivoli/myhost.db

2. �� ��� ��� � ���� ��� ��� �����. ����� �

�� ���� ��� �� �����.

oserv -b /mnt/local/Tivoli/bin -B \/mnt/local/Tivoli/lib:/usr/lib \-k /var/spool/Tivoli/myhost.db

�� ��

odadmin, odstat, idlcall, objcall, 89 ���� �oinstall�, wsettap, wtrace

oserv

� 1 �� 95

tivoli

Tivoli ��� ��� � �� ��� �����.

��

tivoli [-debug] [-display display] [-help] [-host host_name] [-port port_number]

[-preview file.d var_name var_value...] [-user user_name] [X_options]

��

tivoli �� ��� ��� �� � �� �� ��� �� � ��� �����. �

�, Tivoli ���� Tivoli ��� ��� � ����. � �� dsl� ���

�� ��� ��� � ����.

-display �� ��� ���� �� ��� ����� X � ���� �

����. � �� ����, tivoli �� DISPLAY �� ��� ��� � �

���� ���. X window ��� �� ��� ��� Tivoli Enterprise � ��

� ������.

X_options ��� � X �� ���� �� ������. �� ��,

-background blue� � �� �� ��� �� ��� ����� ����.

-preview ���� ���� ��, tivoli �� ���� ��� �����.

-display � X_options �� Windows ������ ���� ����.

Tivoli ADE(Application Development Environment) ���� ��, -preview ��

� ���� UI(User Interface) ��� file.d� �� �� �� ��� ����� �

����. �� ��� �� �� ��� �� �� ��, � �� �� ��� ��

�� �� �� �� � �� ���. �� ��, �� ��� �� var1 �

var2� � �� �� �� ��� ���, �� �� ���� ���� ���.

tivoli -preview file.d var1 value-of-var-1 var2 value-of-var-2

�� ��� ���� ���� �� �� � �� ���. �� ��, �

�� ����.

tivoli -preview file.d var1 "’value of var 1’"

��

-debug

ADE ���� �� �� ��� ���� �� �� ��� ����.

-display display

display� ��� ���� ��� ��� ���� �����.

96 Tivoli Management Framework: ���

-help ��� ���� �����.

-host host_name

Tivoli ���� �� �� Tivoli Management Region ��� ���

� �� ��� �����.

-port port_number

�� ���� ���� �� �� �����.

-preview file.d var_name var_value

UI ��� file.d� ���� �� ����� �����. � �� Tivoli

ADE ���� � �� ��� ��� ��� �� ���� � ��� �

����. ��� ��� ����.

file.d ADE ���� .d ��� � �����.

var_name DSL(Dialog Specification Language) �� � ����

�.

var_value var_value ��� � �����.

-user user_name

�� ��� �� ��� � �����.

X_options

� ��� �� X �� �����.

��

user, admin, senior, super

tivoli

� 1 �� 97

tmcmd

�� �� ����� ��� ����� ���.

��

tmcmd [-p port] state trans_id...

��

tmcmd �� ���� ��� ����� ���. � �� � ���� ���

�� ���� ��� ���� command ���� ��� ��� ����. command

�� abort, commit, prepare, complete, prepared �� completed � ���

� � ����.

tmcmd �� �� oserv ��� �� � ��� ��� ���� ���� ��

���� ��� � �����. � ����� ����� ��� ��� ���

� �� ��� ��� � �� ����� �� � ����. � �� ���

���� ��� oserv � ����� ������� ���� � ���� �

�� � ���� �� ���� � �� ��� �� ����.

��

-p port

� �� �� �����.

state ����� ��� ��� �����. � �� abort, commit, prepare,

complete, prepared �� completed � ��� � ����.

trans_id

��� ���� �� ����� ID� �����. � ��� ���� ID

� ��� � ����.

��

senior, super

��

���� ����� �� ��� � �� �� ��� ����, oserv ��

���� ������� ��� � ����.

�� ��

odstat, tmstat

98 Tivoli Management Framework: ���

tmstat

�� ���� � �� ��� ����.

��

tmstat [-k dbdir] [-p port] [-r region] [-va] [baseobjid...]

��

� �� �� �� �� ���� � ��� �� ��� ����. � �� �

���� ���� ��� ������ ���� ���� �� �� ���, �

���� ���� � ��� ��� � �� ���.

����� � � � ���� ID�� ���� � � �� � � � � � .

{transA}{transB}� {transA}� �� ������ �� � ����.

��

-k dbdir

������ ���� �����.

-p port

� �� �� �����.

-r region

�� region �����. region �� �� Tivoli ��� �� ��

ID� �����.

-v �� �� �����. ����� ��� �����.

-a � region �� -r region� ��� region� �� ��� � �� ID

� ����.

baseobjid...

��� �� ���� �����. �� �� baseobjid ��� ��� �

����.

��

user, admin, senior, super

��

1. �� ����� ��� �� tmstat� � ����. � � �� � �

��� � ����.

tmstat Transactions for 0.0.0Trid Type State Resources Polling Coord Parent MTid

----------------------------------------------------------

� 1 �� 99

{202020:1,202020:1,2:3}Top-T running Yes No running running 40

{202020:1,202020:1,2:3},{202020:1,202020:1,2:4}Sub-T commit Yes Yes running running 44

{202020:1,202020:1,2:3},{202020:1,202020:1,2:5}Sub-T commit Yes Yes running running 45

{202020:1,202020:1,2:3},{202020:1,202020:1,2:6}Sub-T commit Yes Yes running running 46

{202020:1,202020:1,2:3},{202020:1,202020:1,2:7}Sub-T commit Yes Yes running running 47

----------------------------------------------------------Cannot truncate log file:

Undo information pendingRedo information pendingTransaction event callback information pending

tmstat� � � �� ���� ���� ����. �, �� ���� ��

�� ���, � ���� ���� ��, transactionlog ��� ��� � ��

��� ��� ��, �� � ��� �� �� ���� ���� ���

� ���� ����.

�� ����� ��� � �� �� � � �� ��� �����. ���

� � ����� ���� ID, ���� ��, ���� ��, ����� �

� �� ��, ����� �� �� � ���� ����� ��, �� ���

�� �� �� � ���� �� �� ��� ��� �����. MTid �

� ���� ���� ID� odstat� ��� �� ID ���� � ���

�.

� ���� ���� � � �� � ��� �������.

� � �� ���� �� ��� ��� � �� �� ��� ����. �

��� �� �� ��, odadmin db_sync �� �� �� �� ��� �

�����.

� ��� �� �� ���� ���� � � �� �� ���� ���

����.

2. �� ����� �� �� ��� � tmstat �� �����. �� ��,

Tivoli Management Region ���� �� � �� �� “ ��� 2”� ��

�� � ���� ��� �� � ����.

a. ���� �� ��� OID� ����� �� �� � ����.

wlookup -ar ManagedNode

��� ��� � � ����.

bushido 1248901349.1.348#TMF_ManagedNode::Managed_Node#tengu 1248901349.2.7 #TMF_ManagedNode::Managed_Node#

tmstat

100 Tivoli Management Framework: ���

b. �� ��� ��� OID� ���� tmstat �� ����� �� �� �

����(��� 1248901349.2.7 �� ID).

tmstat 1248901349.2.7

�� ��� �� $TMR ��� ���� �� Tivoli region ID �� �

�� � ����.

tmstat $TMR.2.7

�� ��

odstat, tmcmd

tmstat

� 1 �� 101

vdisp

� �� ��� ��� �����.

��

vdisp [-v] [-h] [-i] [-q | -t time]

��

vdisp �� �� ��� ��� ��� � �� ��� ��� ��� �

���� �� �� ���� �����.

�: � �� ��� �� ���� ��� ��� ������.

��

-h Tivoli region� � �� ��� �� ��� � �� ��� ����.

-i �� ��� ���� �� �� ��� �����. � ��� ��

�� ���� � ��� �� ��� ��� ��� ��� �����.

-q �� �� ���� ����. � �� -t �� �������.

-t time

�� ���� ���� �� ��(�). ��� 30����. � �� -q �

�� ��� �� �����.

-v �� ��� ��� � �� ��� � ping � �� ���� �

����.

��

?

��

1. �� ����� �� ��� ��� � �� ��� ping� ��� �

�� ��� �� ���� ��� ��� �� �� ���� ��

��.

vdisp -vhiq

��� ��� � � ����.

ping:1234567890.1.0 alive1234567890.2.0 alive

ORB ServConn Host Type1 UP paper.tivoli.com solaris22 UP vellum.tivoli.com solaris2

102 Tivoli Management Framework: ���

2. �� ����� �� ��� ��� � �� ��� ping� ���� �

�� ��� 5� �� ���� �����.

vdisp -vit5

��� ��� � � ����.

ping:1234567890.1.0 alive1234567890.2.0 aliveRunning performance test for 5 seconds

ORB Ncalls Secs/Call Calls/Min1234567890.1.0 2020 0.05 1218.061234567890.2.0 2013 0.05 1214.07

vdisp

� 1 �� 103

w4inslcf.pl

OS/400 ���� ������ ����.

��

w4inslcf.pl [-a] [-F] [-g gw_label[+port]] [-I] [-l ep_port] [-L config_options] [-N

code] [-P] [-s dir_name] [-v] [-T ip_address] [-Y] {endpoint... | -f file_name}

��

w4inslcf �� �� ��� OS/400 ���� OS/400 ����� � �� �

� ����� �����. ���� ��� � ����� ��� �� ��

�� �� ���� �� �� ������ �� � ����. ���� �� �

�� ��� �� �� �� ���.

� �� ���� ���, FTP� ���� �� ������ ��� �� �,

RSTLICPGM ���� OS/400� 1TMELCF �� �����. ��� ��,

������ OS/400 �� STRTMEEPT� ���� �����.

��

-a ������ �� �� �����. ����� �� �� ������

��� �� ������ ������ ������ �� ��.

-f file_name

������ �� ��� ��� �� �� �� �����. � ���

� �� ��� ��� �� �� �, ��� ��� ID ��� ���

��. � ��� �� � �� �� ��� �� ���.

host [userID [password]]

-F �� �� ������� ���.

-g gw_label[+port]

IP �� �� ��� � ��� ����� ������ ���� ��

���� �� �� �����.

-I ������ ���� ���� ��� ����.

-l ep_port

������ �� �� �� �����. �� �� �� 9495���.

-L config_options

������ ���� �� �� �� �����. �� �� ����

� �� � � �����. ��� �� ��� ��� lcfd �� �

�����.

104 Tivoli Management Framework: ���

-N code

OS/400 ��� ��� �� ��� �����. ��� ��� ����.

2980(���, ��� �) 2989(��, ��), 2924(�� ����), 2938(�

� ���), 2928(���), 2929(���), 2932(�����), 2962(���),

2986(���) � 2931(���). �� ��� ����� ��� � � �

����. ��� 2924 2938���.

-P ����� ��� ������� �����. � �� � ���� ��

�� $HOME/.netrc ��� �� �� �����.

-s dir_name

����� � ���� �� �� ���� �����. � ���� �

�� ��, Tivoli Management Region ��, ����� �� ���� �

��� � ����.

-T ip_address

� �� �� ���� �� ��� IP ��� �����. � �� �

� �� �� ��� �� ���� ���� ��(NIC)� ��� ���

� � ���� ���� ��� ���� ���� ���� ���

�.

-v ��� ���� � � � �����. �� ���� ��� � ���

�����.

-Y �� �� �� ����� �����. ��� �� ��� ���.

endpoint...

������ �� OS/400 ���� ��� IP ��� �����.

��

������ ���� �� �� ��� �� ��� Tivoli �� �� ��

� ����. OS/400 ����� RSTOBJ � RSTLICPGM ��� *SAVSYS

�� �� ��� ��� �� ���.

���

w4inslcf.pl �� � ��� �����.

0 ���� ��� �����.

-1 ��� �� ��� �����.

�: ��� �� �� ��� �� os4LcfH.err� ���� ��� ��� -f

os4LcfH.err ��� ���� ��� � ����.

w4inslcf.pl

� 1 �� 105

��

1. �� ����� OS/400 ��� as41.tivoli.com� as42.tivoli.com� OS/400 �

����� ��, �� 9494� ���� ����� smithers.tivoli.com� �

����. � ���� /cdrom/1tmelcf ���� ����.

w4inslcf.pl -v -g smithers.tivoli.com+9494 as41.tivoli.comas42.tivoli.com -s /cdrom/1tmelcf

2. �� ����� OS/400 ���� 42.tivoli.com�� OS/400 ������ �

� �� 9494� ���� ����� smithers.tivoli.com� ��� �� �

�� ��� �� ����.

w4inslcf.pl -v -g smithers.tivoli.com+9494 -N ’2928 2929’as42.tivoli.com

3. ��� ����� � �� ��� ���� IP ��� 146.84.36.37� ����

���� ��� ���� OS/400 ��� cheese.dev.tivoli.com� �����

� ��� �� OS/400 ������ IP �� 146.84.36.42 � �� � 8752

� ���� ������ ���� �� � � � ������ IP � �

146.84.39.126 � �� 18752� ���� ����� ����� ���. ��

��� �� queso���.

w4inslcf.pl -T 146.84.36.37 -g 146.84.36.42+8752 -l 18752-L ’local_ip_interface=146.84.39.126 lcs.machine_name=queso’cheese.dev.tivoli.com

w4inslcf.pl

106 Tivoli Management Framework: ���

waddicon

Windows ���� ��� ��� ��� �����.

��

waddicon -g group_name [-a] [-c ″command_line″] [-i icon_file] [-m ″message″]

[-r] [-t icon_title]

��

waddicon �� � ��� Windows ���� ��� ��� �����. ���

��� ���� ��� �����. waddicon� Windows 2000 ��� �����

� ��� ���� ��, ��� ���� �� �� ���� �����. waddicon

� Windows NT, Windows XP �� Windows 2000 �� ������ ����

��, ��� ���� �� ��� ���� �����.

��

-a � �� ����� ��� � �� ���. �� ��, ���� ���

�� � ���� ���� �� ���� ���� �����. �� �

�� ���� ���� ���� � �����. � �� ���� ��, �

� ��� �� �� ���. � �� Windows NT, Windows XP

� Windows 2000 ������ �����.

-c ″command_line″

���� � ���� ��� �����.

-g group_name

���� ���� ���� �� � �����.

-i icon_file

��� ���� �� �����. � �� ���� � ��, ���

� ���� -c ���� ���� �� �� �����.

-m ″message″

-a ��� �� � �� ��� � ��� ��� ��, ����

WADDICON.ERR ��� ����� �����. � �� Windows NT,

Windows XP � Windows 2000 ������ �����.

-r ��� ��� �����. ��� ���� ���, �� ���� ��� �

�� �����.

-t icon_title

���� ����� ��� �� ��(�) �����.

� 1 �� 107

���

waddicon �� � ��� �����.

0 ���� ��� ��� �����.

non-zero

waddicon� ��� ���� ��� �����.

��

1. �� �� ����� �� ���� ������� ��� Word Processor�

Applications�� ���� ��� ��� �����.

waddicon -g "Applications" -c \WP\WPROCESS.EXE -t "Word Processor"

2. Word Processor ��� Applications ���� ����� �� �� �

����.

waddicon -g "Applications" -c \WP\WPROCESS.EXE -t "Word Processor" -r

3. Applications �� ����� �� �� � ����.

waddicon -g "Applications" -r

4. ��� ���� ���� �����(Windows �����) �� ��� ��

�� ���� � �� ���� ������. ��� ���� -m �� ��

��� ���� WADDICON.ERR ��� �����.

c:\tivoli\tmeagent\win32\cli\waddicon -c "C:\FILES\MY_PROG.EXE" \-t "My Program" -m "Call #1 of waddicon" -a

waddicon

108 Tivoli Management Framework: ���

waddpath

�� �� ��� ���� ��� �� �� ���� �� �����. � �

� ������� ���� ���(Windows NT � Windows 2000� �).

��

waddpath path_value

��

waddpath �� HKEY_LOCAL_MACHINE ���� ��� �� Windows

\SYSTEM\CurrentControlSet\Control\SessionManager\ Environment ���

�� �����. �� ���� �� ������� � ������� �� �

� ��� �� ���.

� ��� ����� ��� �� �� ��� ��� ��� ���� ���� �

����.

��

path_value

�� �� ��� �� ���� ��� ��� �� �� �����.

��

admin

��

\APPS\MISC\EXEC ��� ��� ���� ��� ����� �� �� �

����.

waddpath \APPS\MISC\EXEC

� 1 �� 109

waddrealm

HTTP 1.0 �� ��� HTTP �� �����.

��

waddrealm -d RealmDir -p AuthProg -n RealmName

��

waddrealm �� �� ��� HTTP �� �� �� ��� �����.

waddrealm �� ����� � � ������� ��� �����.

��

-d RealmDir

�� ���� �����. HTTP(������ �� ���) �� ��

�� CGI(�� ����� ����) �� ���� ����� � �

��� ������.

-p AuthProg

�� ���� � �����.

-n RealmName

�� � �����. RealmName��� � � ��� � ����.

��

senior, super

��

�� ����� /cgi-bin/MyDir ��� ��� � �� ���� MyProg� ��

���.

waddrealm -d /cgi-bin/MyDir -p \/cgi-bin/MyDir/MyProg -n MyRealmName

�� ��

wdelrealm, wlsrealms, wstarthttpd, wstophttpd

110 Tivoli Management Framework: ���

wadminep

������ �� �� �����.

��

wadminep [-h] ep_name {upgrade | staged_upgrade [upgrade_path]}

wadminep [-h] ep_name wake_up

��

wadminep �� �� ���� ����� ��� � ����� �� ��

� � � . wadminep� ���� �� ��� � � ��� � � ��� ���

wake-on-LAN �� �� ����� wake-up �� ������. wake-on-LAN

�� ����� lcfd - �� ������. ����� wake-on-LAN ����

�� �� ���� ����.

�: upgrade � staged_upgrade �� ��� ������. wepupgd �� �

�����.

��

-h wadminep�� ��� � �� � �� ���� ��� ��� �

����.

staged_upgrade

��� �� �� ����� � ����� �� ����� ������

�������. � �� Windows 98 �������� �����. �

��� �� �� ��� ���� �� upgrade ���� �����.

upgrade

��� ������ �� ����� ������ �������.

wake_up

����� � wake-up �� ��� ������ �� �����.

ep_name

��� ���� ����� � �����.

upgrade_path

���� ��� ��� �����. ���� ���� ��� ��� �

����� $BINDIR/../lcf_bundle.40(�� � ��)�� ���� ��

� �����.

� 1 �� 111

��

������� ��� ���� ��� �� super ��� ����. � �� �

�� policy region� ������ � policy region� �� ���� ���

����.

��

�� ����� ����� pine �� ���� ����� ������ ���

����. ���� ��� ��� ������ /data/lcf_bundle� ����.

wadminep pine upgrade /data/lcf_bundle

�� ��

lcfd, wepupgd, winstlcf

wadminep

112 Tivoli Management Framework: ���

wauthadmin

Tivoli Management Region�� Tivoli ���� �� �� ��, �� �� �

���.

��

wauthadmin {-a administrator | -r administrator | -l [-v]}

��

wauthadmin �� Tivoli ��� �� ��� � �� �� �����.

v Tivoli Management Region �� � �� ��� � ����.

v �� ���� �� ���� �� �� ����� ����� ���.

Tivoli Management Region �� �, ����� �� ����� �� Tivoli �

� �����. � �� ���� �� ��� �� ���� � �� ��

�����. UNIX ���� Tivoli �� ��� �� UNIX �� �� �

���. Windows NT��� � �� ��� �� ����. wauthadmin ��

�� ���� ��� Tivoli ���� �� ���� ���� � �� ���.

Tivoli Management Region �� �� �� ���� �� � ����.

wauthadmin �� �� root ��� ���� root �� ����� ���. ��

�� � Tivoli Management Region� � ��� � � ��� �� ���� �

� ���.

-l �� ��� wauthadmin �� � Tivoli Management Region�� �� �

� ���� Tivoli ���� �� ����.

��

-a administrator

�� �� ��� ����� �����.

-l Tivoli Management Region�� �� �� �� ���� �� ���

�.

-r administrator

��� ������ �� �� �����.

-v -l ��� �� �� �� ��� � � �� ��� �����.

��

�� ����� �� �� �� �� ��� � ���, �� �� �� ����

�� �� � ����.

� 1 �� 113

��

1. �� ����� � Tivoli Management Region� �� kimiko@ohio�� �

� �� �����.

wauthadmin -a kimiko@ohio

2. �� ����� � Tivoli Management Region� �� �� ��� �� �

�� ����.

wauthadmin -lv

�� ��

wgetadmin, wsetadmin

wauthadmin

114 Tivoli Management Framework: ���

wbkupdb

Tivoli ������� ��� �����.

��

wbkupdb -e [node_name...]

wbkupdb -e -l [object node_name...]

wbkupdb [-d device] [-f] [-h node_name] [node_name...]

wbkupdb -l [-d device] [-f] [-h node_name] [object node_name...]

wbkupdb -d device -r [-R] [node_name...]

wbkupdb -d device -r -l [-R] [object node_name...]

wbkupdb -s

��

wbkupdb �� Tivoli ������� ��� �����. �� �� � ��

wbkupdb ��� �� ���� ��� � ����. �� �� ���� ��

� wbkupdb ��� Tivoli region� � �� ��� ��� �����.

�: Tivoli region� � � �� � �� �� ��� � �� ��,

wlocktmr �� ���� ��� region ���� �� � �� wbkupdb

�� ��� � ����. Tivoli region ���� �� �� � �� �

�� ��� Tivoli Management Framework Maintenance and Troubleshooting

Guide� ������.

-e ��� ���� � �� �� ���� �� ��� �����. wbkupdb �

� � �� ��� �� �� ���� �� ��� �����. � ��� �

�����, �� ���� �� �� �� � ���.

� ��� � � � � � ��(��� �� � �) ������� ��

� � ��� ���� ��� �� �� ���� ����. �� ��� �

� ��� �� ��� ��, -f �� ���� �� �� �� ��� ��

�.

-r ��� ���� � �� Tivoli ������� �����. �� �� Tivoli �

������ ��� �� ���� ���� � �����. ��� Tivoli ��

�� �� ��� Tivoli Management Framework� � ���� ��� ���.

�� ��� Tivoli ��� � ����� �� ���, -R �� ��� Tivoli

� 1 �� 115

�� � ������� � ��� � ����. � ������� ����

��, ��� node_name �� ��� ���� � ��� ����� -R ��

�� ���.

��� �� ���� �� �� � ��(�� ������� �����

���� ��� � � ��)�� ������� ��� ��� �� ���

��� ���� ��� ��� � � ����.

wbkupdb �� �� ������ � ��� �� ��� � ����. ���

�� ���� �� � ��� �� �� �� ��� �� ��� ���� ���

�. �� ��� ��� ��� ���� ��� ��� � ����. files_versions

���� ���� ����. ��� ��� �� �� ���, �� ��

files_versions.restore ����� �� �� � ����.

�� ����� UNIX � Windows �� �� Tivoli ��� �� ���� �

�� ��� ������� ��� �����.

v UNIX �� ��� �� ��� �� ��� ����.

– odb.bdb.restore

– odb.adj.restore

– odb.log.restore

– file_versions.restore( ���)

v UNIX Tivoli ��� �� ��� �� ��� ����.

– odb.bdb.restore

– odb.log.restore

– imdb.bdb.restore

– notice.bdb.restore

– notice.log.restore

– odlist.dat.restore

– epmgr.bdb.restore( ���)

– file_versions.restore( ���)

v Windows �� ��� �� ��� �� ��� ����.

– odb.bdb

– odb.adj

– odb.log

– file_versions( ���)

v Windows Tivoli ��� �� ��� �� ��� ����.

– odb.bdb

wbkupdb

116 Tivoli Management Framework: ���

– odb.log

– imdb.bdb

– notice.log

– odlist.dat

– epmgr.db( ���)

– file_versions( ���)

��

-d device

�� �� �� �� �� �� �� ��� �� �� ��

���. � ��� �� �� � ���� ��, %t ��� ���� �

� �� �� ��� �� �� �� ��� � ����. � ���

Mondd-hhmm ��� ��/������ �����. �� ��,

-d /usr/backups/TMR1%t.bk� ��� ��, �� ��

TMR1Dec21-0955.bk� ���. �� 24�� �� ����.

-e �� ��� �����.

-f �� � �� �� �� ��� �����.

-h node_name

tar �� ���� ��� �����. ��� Tivoli �����.

-l ���� ��� �� �� �� �����. � �� Tivoli ��

��� ���� �� ���.

-r ��� ��� �� ������� �����.

-R ������ �� ��� � �� ���� �� ���� ����.

�� *.restore� �� ��� ������ ���� ����. ��� �

�� ��� odadminreexec �� �� �� � ��� ���� �

��� ������� ��� �� ����� ���� �������.

-s ��� � �� ��� �� �� ��� ���� �� �����.

node_name

��� ��� �����. �� �� ��� ��� � ����.

object �� �� ���� �����.

��

�� ����� Tivoli region�� backup ��� ��, �� �� ����

� Tivoli region�� restore ��� ����. �� �� ����� �� ��

wbkupdb

� 1 �� 117

��� ����. �� ���� ������ �� �� ��� ������.

“rescue” �� �� �� ��, ��� ������� �� ���� � ��

��� ���.

��

1. �� ����� wbkupdb ��� ��� Tivoli region� �� � �� ��

� �� Tivoli ������� �����. �� �� ��� �� ��

/usr/backups/TMR1.bk� �����.

wbkupdb -d /usr/backups/TMR1.bk

2. �� �� � �� �� sherman� ������� �����. � ���� �

� ��� �� �� �� �� ���� ���� �����. ��� ��

backups��� � ��� ��� Tivoli ������ ���� �����.

� ���� wbkupdb ��� ��� � ���� ��� �����.

wbkupdb sherman

3. �� �� � �� �� sherman �����. �� ��� ���� � ��

�� �� �� /usr/backups/TMR1.bk���.

wbkupdb -r -d /usr/backups/TMR1.bk sherman

�� ��

wchkdb, wclient, winstall, wpatch, wserver

wbkupdb

118 Tivoli Management Framework: ���

wbindmsg

� ��� ������ �� ��� ��� � ��� ������.

��

wbindmsg catalog_name message_number default_string [options...]

��

wbindmsg �� catalog_name�� ���� ��� ������ message_number

� ��� ���� �����.

��� ���� �� �� ��� �� ��� ��� ������ ��� � ��

��, default_string� �����. wbindmsg� �� ��� ��� ����� ��

2�� ��� ���� ����.

wbindmsg �� LANG � NLSPATH �� ��� ���� �� �� ��� �

�� ��� ����� ����. �� ��, LANG=fr_FR� NLSPATH=� ��

� ����.

/tivoli/msg_cat/%L/%N.cat;\

/tivoli/msg_cat/%1%N.cat;\

/tivoli/msg_cat/C/%N.cat

wbindmsg� �� �� � ���� ��� ����� ����.

/tivoli/msg_cat/fr_FR/catalog_name.cat

/tivoli/msg_cat/fr/catalog_name.cat

/tivoli/msg_cat/C/catalog_name.cat

���� ��� ���� �, �� ���� � � � �����.

��

catalog_name

��� ���� �� � �����.

message_number

��� ����� �� ��� �� �����.

default_string

��� ������ ���� ��� � �� ��� ��� ��� ���

��.

[options...]

���� �� �� ��� ��� ���� � �� �����.

� 1 �� 119

��

�� ����� my_catalog.cat ��� ������ � � ���� �����.

�� ��� ���� �� ��� ���, ���� � �� �� jross polyglot

� ����.

wbindmsg my_catalog 2 \"User %1\$s does not have an account on %2\$s" jross polyglot

� �� �� � ��� �����.

User jross does not have an account on polyglot.

wbindmsg

120 Tivoli Management Framework: ���

wbroadcast

� Tivoli ���� ���� �� �����.

��

wbroadcast [optional_text]

��

wbroadcast �� � � �� ���� � � ���� Tivoli ��� ��

� ���� �� �����. optional_text ��� ��� ��, � � � �

� ���� Tivoli ��� � ���� �� �����.

��

optional_text

�� ��� ���� �����.

��

admin, senior, super

��

�� ����� ���� ��� �� �����.

wbroadcast << EOFRestoring Tivoli in 5 minutes. Please exit your desktops.EOF

� 1 �� 121

wcatcher

Tivoli Management Framework �� Tivoli ������ ������ �� �

�� �� �� ��� ����.

��

wcatcher {-a | -r resource...} [-d parent_dir] [-s sub_dir] [-v]

��

wcatcher �� Tivoli Management Framework� ������� � ���� �

����� �� Tivoli Management Framework �� Tivoli ������� ��

��� �� �� ��� ����. ��� �� �� ��� ���� ��� ��

�� �� ���� ����.

�� ��, Tivoli User Administration ��� ���� ������� � ��

���� ��� �� �� ��� �����. ����� �, wmrgaef ��

���� ��� �� �� ��� ��� ��� �� ������.

wcatcher �� � ��� �� �� �� �� ���� �� �� ��� -d �

��� ��� ��� ��� ����. wcatcher �� custom.sav�� ��

�� ��� �(-s �� ���� �� � ���� �� ��), ��� � ��

�� ���� ��� �� �� ��� ����. � �� ��� ��� �� �

�� �� custom.sav ��� � ���� ��� �� ��� ��� ��

����. �� ��� ����� ���� ��� ����, �� ���� �

� �� ���� �� ��� ����.

��

-a ��� �� �� ��� �� ��� �� � �����.

-d parent_dir

��� ��� �� �� �� �� ���� �� ��� ��� ��

�� �� ��� �����. ��� ���� ���, wcatcher� �� �

� ���� ��� �� �� �� ��� �����.

-r resource

�� �� �� �����. �� �� �� �� ���� ��� � �

��, � -r �� ���.

-s sub_dir

���� � �����. �� ��� � custom.sav���.

-v �� � �����.

122 Tivoli Management Framework: ���

��

super

��

�� ����� � ��� �� �� ��� ���, �� �� /tmp/aef�

���, ���� � my.dir� �����.

wcatcher -d /tmp/aef -s my.dir

�� ��

wmrgaef

wcatcher

� 1 �� 123

wcd

�� �� �� �����.

��

wcd [label]

��

wcd �� �� �� �� ���, ��� �� ��� ��� �� �

�� �����. � ��� �� ���� � �� ���� ID ��� ��� �

� �� �� �� ����.

��

label ��� �� �� �����. ��� ��� �� �� ��

policy region�� ���. � �� �� �� ��(/ ���� ���)

�� �� �� ��(�� �� ��� ����)� � ����. � ��

���� �� �� �� ���� �����. � ����

�� /Administrators/name��, ��� name ���� Tivoli ���

� ����.

��

user, admin, senior, super

��

1. �� ����� �� �� �� policy region ceridwen-region�� ���

��.

wcd /Regions/ceridwen-region

2. �� ����� �� �� �� �� ������ ���� ����

�.

wcd $DBDIR

�� ��

wls, wpwd

124 Tivoli Management Framework: ���

wchdep

��� �� �� � ������.

��

wchdep @Classes:class_name dependency_set method_name ...

wchdep -g @Classes:class_name method_name

��

wchdep �� �� ��� �� �� � ������. wchdep �� �

��� �� ��� ���� ��� ��� ���� �� wdepset -c �� ��

�� �� ��� �� ���.

��� �� ��� � ��� ���� � ��� ��� �� ��� �

� ��� wdepset -e �� ���� ��� �� ��� ��� �� ����.

wchdep -g �� �� ��� �� ID(OID)� �����. OID� wdepset

��� �� ��� � ���� �� ��� �� � �� ����.

wchdep �� �� �� ������ afterscript� ������� .ist ���

����.

��

-g �� �� OID� �����.

@Classes:class_name

�� ��� ��� �

dependency_set

wdepset ��� ��� ��. @DependencyMgr:label ��� ����

OID� �� ��� ��� � ����.

method_name

�� ���� ���� ���� �

��

user

��

�� ����� �� �� hello_dependency� �� ��� �� Hello �

� ��� hello_method ������.

wchdep @Classes:Hello hello_dependency hello_method

� 1 �� 125

�� ��

wdepset

wchdep

126 Tivoli Management Framework: ���

wchkdb

Tivoli ������� ��� �����.

��

wchkdb [-o outfile] [-t] [-u] [-x] {-f infile | -i | object...}

��

wchkdb �� Tivoli ������� ��� ��� �����. � �� ��

� ���� �� �� ����. Tivoli �� �� �� ��� ���.

-u ��� ��� wchkdb� ������� ��� ��� � � � ���

� -o ��� ���� ����� � ��� ����. � �� ��� �

�� ���� � -u � -f ��� wchkdb� ��� � ����.

-u �� � ������ ��� �� ���� ���. -f infile �� ���

wchkdb �� � ��� � ���� � ����. infile� � ��� �

����. -i �� � � �� �� �� ����. ����� �� �

� ��� �� ����. � ���� �� ��� ���� ���, ����

��� �� � ��� �����.

-x �� Tivoli �� rgion ��� ��� ��� � �� ���. � ��� ���

�� region �� �� ���� �� � �����.

��� � Tivoli ����� Tivoli Management Region ���� �� ��

� ���� Tivoli ����� ����� ��� � ����. Tivoli Management

Region ���� �� �� � �� ��� ��� Tivoli Management

Framework Maintenance and Troubleshooting Guide� ������.

��

-f infile

�� wchkdb �� �� ��� ��� � �� �, ��� ��� �

�� �����. �� �� �� ��� ���� ��� ����

�.

-i � � �� �� �� ����. �� �� ID � �� �

�� ���� �� ���� �����.

-o outfile

�� � � ��� �� ��� �� �� �����.

-t Tivoli �� �������� �� �� ��� ��� �����.

� 1 �� 127

-u Tivoli �� �������� ��� ��� ���� ������� ��

���.

-x region �� ���� �� ��� ��� �����.

object...

��� ��� �� � �� �� ID� �����.

��

senior �� super

���

wchkdb� �� � ��� �����.

0 wchkdb� ����� ���� �����.

0� ��

�� �� �� oserv� ��� � �� ��� wchkdb� ���� ���

�����.

��

1. �� ����� Tivoli ������� ���, �� �� Tivoli �����

�� �����. �� ��� region �� ���� �����.

wchkdb -u -x

2. �� ����� �� Tivoli Management Region� �� ��� �����.

Tivoli ������� �� �� ����. ��� ��� � � � ��

��� � �� /tmp/check.out� �����.

wchkdb -o /tmp/check.out

3. �� ����� wchkdb� �� �� ��(/tmp/check.out)� �, �� ��

Tivoli ������� �����.

wchkdb -u -f /tmp/check.out

wchkdb

128 Tivoli Management Framework: ���

wchknode

Tivoli ������ ���� �� ��� �� �� ��� ��� �����.

��

wchknode [-c] [ -n] [ -s] [ -u] [ -v] [ -x] [dispatcher_num]

��

wchknode �� Tivoli �� rgion �� ������� dispatcher_num� ���

��� �����. wchknode� Tivoli � ����(-n), Tivoli ��(-c )

�� �� ��(-s) �����. -n, -c �� -s ��� ��� ���� �� ��,

wchknode� � ��� � �����. -u ��� ��� ��, wchknode�

dispatcher_num� �� � ��� �����. � ��� ���, wchknode�

� ��� � ��� ��� �����. dispatcher_num� ���� � ��,

wchknode� �� Tivoli Management Region �����.

wchknode �� Tivoli Management Region ���� �����. ����� �

�� � Tivoli Management Region��� �����. ��� region� �� �

�� ����� -x �� ������.

�� wchkdb� ��� ��� � ��, �� �� �� ���� �������

��� � wchknode� ���� ��� �� �� ��� ������.

�: �� � �� � ��� �� ��� ��� wchknode �� ������.

� ��� �� ��� � � �� ���� � �� ��� Tivoli ��

������ �����. �� � �� �� ��� �� ��� �� ��

�� � ���� ����. �� ���� � � �� ���� � �

�� oserv� �� � �� ��� Tivoli �������� �����.

��

-c Tivoli ��� �� dispatcher_num� �� ��� �����.

-n Tivoli � ����� �� dispatcher_num� �� ��� �����.

-s �� ��� dispatcher_num� �� ��� �����.

-u �� � ��� ��� �������. � ��� ���� � ��,

wchknode� � ��� ��� �����.

-v � ���� ��� �����.

-x region �� ���� dispatcher_num� �� ��� �����.

� 1 �� 129

dispatcher_num

wchknode� �� �� �� ��� ��� �� �����. ���

��� �� ����� odadmin odlist �� ������.

��

Tivoli Management Region�� senior �� super

��

1. �� ����� Tivoli � ����, Tivoli �� � �� ��� �� ��

�� yellow( ��� 7)� �� � ��� ��� �����. wchknode�

� Tivoli Management Region � ��� � region �����.

wchknode -u -x 7

2. �� ����� �� �� thor( ��� 5)� ���� Tivoli � ����

� �����. ��� ���� � ��� �����.

wchknode -n 5

�� ��

wchkdb, wrmnode

wchknode

130 Tivoli Management Framework: ���

wchkpol

policy ���� policy region ��� �����.

��

wchkpol [-a] [-c collection] [-f file] [-l label] [-r resource]... region

��

wchkpol �� policy region ��� �� �� ��� region� � �� ���

policy� ����� �����. policy �� ���� ��� � ���� ��

� ���� � � �� �����. -f �� � �� ��� �����. -c

�� ��� �� wchkpol� �� ���� �� ���� �� ��� ��

����.

��

-a policy region� � ��� �����.

-c collection

policy ��� ��� ���� �� � �� �����.

-f file policy ��� ��� ��� �� ���� �� �� �����.

-l label

label� ���� �� �����.

-r resource

��� �� ��� �� � policy region ��� �����.

region ��� �� �� policy region �����.

��

admin, senior, super

��

1. �� ����� policy region ceridwen-region� � ���� �� policy�

�����.

wchkpol -a /Regions/ceridwen-region

2. �� ����� policy region ceridwen-region� �� � �� ��� ��

policy� ��� policy �� ���� �� �� ��� ���� failures�

� �� �����.

wchkpol -c failures -r ManagedNode ceridwen-region

� 1 �� 131

�� ��

wcrtpol, wcrtpr, wdelpr, wgetdfpol, wgetpolm, wlspol, wlspolm, wputpolm

wchkpol

132 Tivoli Management Framework: ���

wci

RCS(Revision Control System) �� �� ����.

��

wci [options] file...

��

wci� ��� �� RCS ��� ����. RCS ��� ���� � �� �

� RCS ��� �� ��. �� � ��� �� ���� �� ��� ���

��. wci� � �� ��� �� ���� RCS ��� ����. �� ���

��� ��, wci� ���� RCS �� RCS � ����� �, ��� ��

��� ����� ����. ��� ��� 138 ��� ��� � ��� ��

����.

wci� ���� ���, �� ��� � �� ���� ���� �� �� ��

�� ��� ���� ���� ���� �� ��� �� ���. ��� ��

�� ��� ����� � ��� � �� ���� �� ���. ��� �

��, ��� ��� ��� � ����. � �� ��� ��� ���� �

� ���� �� ������ �� ����(wrcs ��). �� ��� ��

�� ���� wrcs ���� ��� � ����.

-f ��� ���� � ��, wci� �� ��� �� ��� �� �� ����

�. ��� ���, ��� �� ���� �� wci� �� ���� �����. �

��� ��, �� wci� �� ��� � �� �����. wci -l �� �

�� wci -u� �� �����. �� �� �� wco -l �� wco -u� �� �

�� ��� �� ��� �� �� �����. �� �, � -n � -s ���

�� ��� �����.

�� ��� ��� � wci� �� ���� �������. �� ���� ��

�� �� � �� ��� ��(.)� ���� ��� ���� ����

�. �� ��� �� ���, wci� �� �� ���� �� ��� ��� ���

��. � � � ��� � ��, wci� ����� �� � ��� �

�� �� ���� �����. -m� ������.

RCS ��� �� ��, wci� � �� ��� �� ��� �� �� ��(�

� �� 1.1)�� ����. �� �� ���� ������. �� ��� �

�, wci� � ���� ����(-t ��).

�� ��� rev �� -f, -I, -k, -l, -M, -q, -r �� -u �� � ��� ���

� ����. rev� ��, �� �� �� ��� ��� ���. rev� $� ��,

wci� �� ��� �� ��� �� �� �����.

� 1 �� 133

rev� �� �� ��, rev� ��� � ��� �� ��� � � ���

��� ��� ��� �� ���.

rev� �� �� ��� ��� ���� ��� ��� � ��� �����.

� �� � ��� � �� �� ���� ����. rev� ���� �� ��

� ���� ��, � ��� rev.1�� �� ���� �� ���� �����.

rev� ����, wci� ��� �� �� ���� ��� ���� ����. ��

�� ��� � ��� ��� ��� ��� � ��� �����. ��� ��

�� � �� �� ���� ����. ���� �� � �� �� ����

� ��� � � �� �� ���� ��� ��� � ���� �����.

�� �� �� � � �� 1���.

rev� ��� ���� ��� ��� �� ��� ��� strict� ��� �

� ��, ��� �� ��� �����(����� ���, wrcs� -b �� ��).

�� ��� ���� ���� �� �� ��� �� ��� ��� �� ���

�.

wci� ��� RCS �� �� ���� �� � �� �� �����. RCS �

�� ���� ��, wci� ��� �� � �� �� �����. wci� �� RCS

��� �� �� ����.

��

-l [rev]

�� ��� � �� wco -l ���� ���� -r�� ���

�. ��� �� �� �� �� �� ��� ����. � �� ��

� �� � �� ��� ���� �� � �����.

-r [rev]

�� �� ��, ���� �� ��, �� �� �����. � �

� ������.

-r �� wci�� ��� ��� � ��. �� RCS ���� -r ��

�� �����, wci��� �� �� �� ��� �����. ��

� -u� ������.

-u [rev]

�� ��� ��� �� ��� ���� -l�� ����. � ����

�� � �� �� �� �� � � ����.

-l, -r � -u �� �� ��� � ��� ��� ����� �����. �� ��,

-r� -u� ���� ��� wci -u -r wci -r� ����.

wci

134 Tivoli Management Framework: ���

-d ″[date]″

�� � �� � ���� date� �����. date� wco�� �� �� �

��� �����. � �� �� ��� � �� � �� �� � ���

� �� ��� �� �� -k� �����. date� ��� ���� �� �

�� ����� ��� �� �����.

-f [rev]

�� ����. ��� ��� �� ��� ��� � ���� ��

��.

-k [rev]

�� �, �� ��, �� � ���� ���� � �� ���� ��

� ���(wco ��), � � �� ���� �� �� ��� ��

���. �� ���� ��� � �� �� � ��� ���� �� ���

���� �����. � �� ����� �� � �����. �� ���

� �� �� ��� ����� -k ���� �� ��� ��� �, �

�, ��� � ��� �� ���. ��� �� �� �� �� ���

� -d, -m, -s, -w � �� �� ���� � �� ���� ��� �

����.

-I [rev]

��� �. � � � ��� � ���� ����� ������ �

�� ����.

-m msg

��� msg� �� �� � ��� �� �� ���� �����.

-M [rev]

��� �� ��� �� �� ��� ��� ��� ����. �� ��,

wci -d -M -u f� �� ��� � �� ��� � ��� f� �� �

� ���� ����. � �� ���� ������. make �� �

����.

-n name

�� � name �� �� �� �� �����. wci� name� �� �

� �� ��� ��� �� ���� �����.

-N name

name� �� �� ���� ���� -n� ����.

-q [rev]

��� �. � � ���� ����. -f� ���� ��� �� ��

� ��� � �� ��� ����.

-s state

�� � �� ��� ID state� ����. �� ��� Exp���.

wci

� 1 �� 135

-t file file ��� � ���� RCS ��� ���, �� ���� �����.

file ��(-)� ���� � � ����.

-t string

string� � ���� RCS ��� ���, �� ���� �����.

-t �� � �� ��� �� �� � ��� � ����. ���

��� ����� �����.

���� �� �� � -t� ���� ���, wci� � � �� ����

��� � � �� � �� ��(.)� �� �� �� � ����

�. �� ��� ��� ���� ���� �������. -I� ������.

��� RCS ���� ��� ��� �, string� �� -t� �����.

-V n RCS �� n �������. ��� �� wco� ������.

-w login

�� ��� ��� ��� login ������. �� ���� � ��

�� ���� ��� ��� � �� ���� �� �� -k� �����.

-x suffixes

RCS ��� �� ���� �����. ��� �� ���� ���� ��

� �� �� �����. �� ���� RCS/file �� path/RCS/file �

�� �� �� �����. -x �� ��(/)� ���� ��� ��

��� � ����. �� ��, -x,v/a� ,v �� ���� � ���� �

����. ���� � � �� ��� ��, RCS �� � � ��� �

���� ���� � � ���� � ��� �����. RCS ��� �

���� ���� RCS �� ��� � �� ��, ��� RCS �� �

���� � ���� �����. suffixes� ��� �� �� ��

�, ����� �� �� �� ��� UNIX ��� � ����

�� ,v/�� �� ���� ���� ��(�: � �� ���)���.

UNIX�� SETUID ��

RCS ���� ��� ���� ���� ���� ���� �� � ��� ��

� ��� �� setuid �� ��� � ����.

v ���� RCS setuid �� ����� ������. ����� ��� � �

�� ��� ������. �� ���� root� ���� RCS� �� ���

�� ��� ���� �� ��� � ���� setuid() ��� ��� Posix

1003.1a Draft 5� �� �� ���� � � ����. ��� � ��,

� � � setuid() � � � � �� �� setuid(Posix 1003.1-1990�

{_POSIX_SAVED_IDS} �)� ���� ���. �� �� ���� root�

���� �����. RCS� setuid�� ��� ����, �� ����.

wci

136 Tivoli Management Framework: ���

v ��� A� ���� ��� ��� � RCS ��� �� ��� ����. A

�� ��� RCS ���� wrcs �� ��� � ����. A� root �� ��

�� �� ������ ����. �� ���� ��� ��� �� ���� �

� ���.

v ���� ��� ��� ���� �� � B� ������.

v A� ��� �� � � ��� D�� �� ���� A� setuid� � wci

� wco� �� ����� B� �����.

mkdir Bcp D/wc[io] Bchmod go-w,u+s B/wc[io]

v � ���� ��� ��� ��� �� B� �� ���� ����.

PATH=B:$PATH; export PATH # ordinary shellset path=(B $path) # C shell

v A� RCS ��� R ��� �� A� �� �� ��� �� ����

� ��� �� ����.

mkdir Rchmod go-w R

v �� ���� RCS �� ��� ��� ���� �� G� �, ��� ��

A� RCS ���� ����� ����.

chgrp G Rchmod g-w,o-rwx R

v A� �� RCS ��(�� ��) R� ����� �, A� � �� �� �

�� ������.

v RCS ��� �� �� �� �� ���� � � �� ���� ���

��. �� �� �� �� ��� RCS �� � � �� � �����

�� � ��� �����. �� � ��� ����� A� ���� wrcs -aa

� ����� ����(wrcs ��). ��, wrcs -e -a A� A� �� ���

�����.

v �� � ��� ����� -a �� ���� ���� �� ��� �� A�

wrcs -i� ��� RCS �� � ������ ����.

v wci � wco�� setuid �� ����.

v �� setuid �� ���� RCS �� ���� ����.

��

� ��� � wci� RCS ��, �� �� �� �� �� � �� �� ��

�� �����. � ��� ���� ���� �� ��� 0���.

��

�� ��� �� �� ��� �� ���� �� �� �� ��� ��� �

����(139 ��� ��� ��� �� TMRDIR ��). ���� �� RCS �

wci

� 1 �� 137

�� �� �� ���� �����. ���� ��� ���, ���� � �

��� � ��� �����. ��� � ��� �� �� �� � ��� � � �

� ���� ���� ����. ���� ��� ��, ���� � ��(_)� �

���, �� �� �� _� ���� ����.

wci� RCS �� �� �� ���� ����. ����� wci� ���� ���

� ��� �� �����, RCS ���� �� �� �� �� �� �� �

� �� ���� ��� ����. ���� wci� ���� �� ���� �� �

� �� �� ��� ����. ��� RCS ���� ����� � � �����

RCS ��� �� ��� �����.

�� ���� RCS �� ��� �� ���� ��� ��� � �� �

��. ����� �� ���� RCS � �� �� � �� ��� �� ��

���� ��� ��� � �� ���. ��� �� ��� ���� �� ��

� �� ��� ���� �� ���� ���� �� ������ � ���

� �� ���� �����. wci wco ��� setuid �� �� �� ���

�� ���� �� ��� ����. �� �� �� � ��, �� ����

� RCS ��� ���� ��� �� ����� RCS ���� ��� �

�� ��, � �� �� �� �����.

���� �� ��� ���� �� �� ��� RCS ��� �� ���

��� � ����. ���� �� �� �� �� �� ����� RCS ��

���� RCS �� ��� � ����. �� ��, ���� �� ��� �

� ��� ��� ����� ��� RCS ���� � � ��� � � ��

� � � ����. �� �� �� ��� ���� ��� �����, � �

� ���� ��� RCS �� ��� ��� ��� ��� �� �� ���

��. ���� �� ������ RCS �� ��� ��� � �� RCS ���

, ��� ��� �� �� �� ��� RCS �� ��� �� �� �� ��

� ��� �����.

�� �� ��

�� � �� ���� RCS ��� �� �� � ��� � ����(�� �� �

�).

v RCS �� � �� ��� � �����. RCS �� � path1/workfileX �

�� �� �� � path2/workfile ����, ��� path1/ � path2/� �

��(��� � ���� ��) workfile �� ��� X� RCS �����

�. X� ��� ��, path1/� RCS/� ��� /RCS/� �� ���.

v RCS ��� �����. �� �� �� ����� ����, � RCS �

� ��� path1/ ��� X� ���� ��� ��.

wci

138 Tivoli Management Framework: ���

v �� ��� �����. wci� RCS ��� X� ��� �����

path2/RCS/workfileXa ��(�� �� � � �, X� ��� � ��) �

� path2/workfileX ��� RCS �� ����.

RCS ��� �� 1� 2�� �� �� ���� ��, wci� �� ./RCS ����

� RCS �� � � �� ����� ����.

wci� RCS �� ��� ��� ��� ��� ����, RCS ��� �� ��

��� �� �� � ��� ��� ���� ��� ����. �� ��, d �

���� RCS �� �� ����� d/RCS�� � �� ���� d/RCS�

���� ��� ��� d�� RCS �� ����� ��� ���� ����.

�� ��

RCSINIT

���� ���� �� ��� ��� ��. ���� �� �� �� �

�!��. RCSINIT �� ��� RCS ��� �� �� �� ����. �

�� RCSINIT ���� -q, -V � -x� ����.

TMPDIR

�� ��� �. ��� � ��, �� �� TMP � TEMP� ��

���, ���� ��� �� �����. �� �� ��� � ���

� ���� ��� ���� �����, ������ /tmp� �����.

��

1. ,v� RCS ���� �� ���� RCS �� io.c,v� �� � ��� RCS

� �� �� ������. ��� ��� � �� io.c� ���� io.ca� �

� RCS/io.c,v� �� ����.

wci io.c; wci RCS/io.c,v; wci io.c,v;wci io.c RCS/io.c,v; wci io.c io.c,v;wci RCS/io.c,v io.c; wci io.c,v io.c;

2. �� ���� RCS ���� �� ���� RCS �� io.c� �� � �

�� RCS� �� �� ������. ��� � �� � �� �� ���

�.

wci io.c; wci RCS/io.c;wci io.c RCS/io.c;wci RCS/io.c io.c;

���

��: Walter F. Tichy. �� �: 5.9; ��� ��: 1991/11/07. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991 by Paul Eggert

wci

� 1 �� 139

�� ��

wco, wident, wrcs, wrcsdiff, wrcsmerge, wrlog; Walter F. Tichy, RCS--A System

for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654.

wci

140 Tivoli Management Framework: ���

wclient

�� ��� ����.

��

wclient -c source_dir [-d] [-f file_name] [-I] [-p policy_region] [-P] [-t | -T traa]

[-U user_acct] [-y] [install_variables] [managed_node...]

��

wclient �� �� ���� ��� � �� ��� ����.

��

-c source_dir

� ���� �� ��� �����.

-d install_variables� ��� ���� ����. ����� �� � ��

��� �� � �� ��� �����. � �� �� � � �

����.

-f file_name

�� �� ��� �� �� ��� �� �����. � ���� ���

� �� host,user,password ���� �� ����. user � password� �

�����. ���� � ��, ��� root �� Administrator���. �

�� ��� � �� ����. � �� ��� �� ���� �����.

v ���� ��, � ���� �� ��� �� ����.

v �� ��� ��, � ���� �� �� �(,) ��� ID �(,)

� ��� �� ����.

�: ��� ����� ����. � ��� ���� ���� �� �

�� � � ����.

v ����� ��� ��� ��, � ���� �� �� �(,)� ��

����.

�� �� ��� �����.

elm,oak,chris,&rewsliveoak,

-I wclient� �� �� �� ����� ��� ���. � �� ����

��� �� ����� ����.

-p policy_region

�� ��� �� policy region � �����.

� 1 �� 141

-P wclient� ��� �� �� ��� ������ ���. � ��� ��� �

��� ��, wclient� � �� �� ��� ��� �����.

-t -U ���� ��� ��� ��� Tivoli �� �� ���� �����

�����.

-T traa

Tivoli �� �� ��� ��� �� � �����. � �� ���

� ��� �������.

-U user_acct

� �� ��� ��� �� �� ��� ��� ��� �����. � �

� ���� ��� �������.

-y �� �� �� ����� �����. ����� wclient� �� ��

�� � � �� ��� ��� ��� �� �� ����.

wclient� � �� ���� �� � �� ��� ��� �� ���

��.

install_variables

�� ���� ��=� � ����. � ��� ����� ���

� ����� �� � ����. � ��� �� ��� ����� ��

��� �����.

�: �� ��� ��� �� ���� � �� � � ����. �

�� ����� �����.

�� �� � ��� �� ��� �� ���� �����. ����

�� �� ��� �� �� ��, wclient� � �� �� ��� �

���. ��� ����� ! ��� � �� � ���� �� ���

� � � ����.

�� � ��� ��� � �����.

BIN=binaries

���� �� �� � ��(/usr/local/Tivoli/bin)� �����.

LIB=libraries

����� �� �� � ��(/usr/local/Tivoli/lib)� �����.

DB=client_database

�� ������� �� �� � ��(/var/spool/Tivoli)� �

����.

MAN=manpage

��� ��� �� �� � ��(/usr/local/Tivoli/man)� ��

���.

wclient

142 Tivoli Management Framework: ���

APPD=X11_defaults

X11 ������ ��� �� �� � ��(/usr/lib/X11/app-

defaults)� �����.

CAT=message_catalog

��� ����� �� �� � ��(/usr/local/Tivoli/msg_cat)�

�����.

�� �� ��� � �����.

@AutoStart@=0 | 1

��� �� � Tivoli �� ��(1)� ��� �����. ���

�� � ���� ����(0).

@SetPort@=0 | 1

Tivoli �� �� �� �� ��� �� �� ���� � (0)

��� ����. �� �� �� ���� ��� ��� ��

�� ���(�: Linux � UNIX ���� �� /etc/inetd.conf

� /etc/services). ����� � ��� �����(1).

@CreatePaths@=0 | 1

��� ���� ���� � ��� ���� ��� ���

�����. ����� ���� �����(1). install_variables�

��� ���� ��� ��� �����.

@ClientAddNoTrans@=yes | no

�� ��� ���� ���� ��� ��� �����. ���

� �� �� ��� ���� � ��� � �� � ��� �

� ��� � ����. ��� ���� ������� ��� �

��� � wchkdb� �� ���.

@ForceBind@=yes | no

�� ��� ��� IP(Internet Protocol) ��� �� �����

�� ����. � �� �� ���� �� � ����

�� �� IP ��� �� ��� �� �� �� ��� ����

�.

managed_node

�� ��� �� ��� �����. -f �� ���� ��, � ��� �

�� ��� ��� �� ��� ���� ����.

��

install_client �� super

wclient

� 1 �� 143

��

Linux � UNIX ��

/tmp/tivoli.cinstall

� �� Tivoli Management Region ��� ��� � �� �� � �

� � �� �� ��� �� ��� �����.

/tmp/install2.cfg.error /tmp/install2.cfg.output

� �� �� �� ������� ��� � �� ��� �����.

���� ���� � �� �����.

/tmp/client.cfg.error /tmp/client.cfg.output

� �� �� �� ������� �� � �� ��� �����. �

��� ���� � �� �����.

/etc/Tivoli/setup_env.sh

� ���� ��� Bourne �� ��� �� ����. � � Bourne

�� �� �� �� ��� � ����.

/etc/Tivoli/setup_env.csh

� ���� ��� C �� ��� �� ����. � � C �� �

� �� �� ��� � ����.

�: Tivoli Management Framework� UNIX �� ��� �� � /tmp/.tivoli

���� �����. � ����� �� ��� ����� �� �

�� �� ����. Tivoli �� �� ����� ��� ���� ��� �

���� � �� � ��� ���� ����. �� ����� ����

�� �� ��� ��(cron �� Tivoli ��)� � ���� � �� �

��� ��� ���.

�� ���� ����� �� ��� �� � �� ��� �

���. Tivoli Management Framework � ���, �� �� ����

�� �� ��� �����.

1. ���� ������. � ����� ��� �� �� � �� ��� �

� ���. ��� �� �� ��� � ��� ��� ���� �

��� �� �� ��� � ��� ����.

2. �� ���� �� ��� �����.

a. �� �� � ����.

odadmin environ get > envfile

b. envfile ��� �� � ��� �����.

TIVOLI_COMM_DIR=new_directory_name

c. �� �� � ����.

wclient

144 Tivoli Management Framework: ���

odadmin environ set < envfile

3. /etc/Tivoli ���� �� Tivoli �� set_env.csh, setup_env.sh �

oserv.rc �� �� TIVOLI_COMM_DIR ��� �����.

4. HP-UX � Solaris ���� ��, �� ���� ���� ��� ��

� ������.

TIVOLI_COMM_DIR=new_directory_name

�� ���� ���� �� ���� ���� �� �� ��� �

� �� ��� � ������. �� ���� � �� ���� ��

�� ��� �� ����.

v HP-UX �� ��� ��: /sbin/init.d/Tivoli

v Solaris �� ��� ��: /etc/rc3.d/S99Tivoli

5. �� �� � �� �� ���� ������.

odadmin shutdown all

6. �� �� � �� �� ���� �� ������.

odadmin reexec all

Windows ��

%TMPDIR%\tivoli.cinstall

� �� Tivoli ��� ��� � �� �� � �� � �� �� �

�� ��� �����.

%TMPDIR%\install2.cfg.error %TMPDIR%\install2.cfg.output

� �� �� �� ������� ��� � �� ��� �����.

���� ���� � �� �����.

%TMPDIR%\client.cfg.error %TMPDIR%\client.cfg.output

� �� �� �� ������� �� � �� ��� �����. �

��� ���� � �� �����.

��

1. �� ����� �� ��� �� policy region bedrock� �� �� dan �

barney� ����. � �� ��� �� � �� �� ��� �����

�������. � ���� �� �� ��� /cdrom���. ����� �

� ������ ���� �� �� ��� ���� �� � �������

/var/spool/database� ����.

wclient -dIP -c /cdrom -p bedrock DB=/var/spool/database dan barney

2. �� ����� policy region austin� �� �� cook � everest� ���

�.

wclient -d -c /cdrom -p austin cook everest

wclient

� 1 �� 145

�� ��

wchkdb, winstall, wserver

wclient

146 Tivoli Management Framework: ���

wclrblk

���� � �� �����. � �� ������� ���� ���.

��

wclrblk [-r] -s ″start_string″ -e ″end_string″ [-o output_file] file_name

��

wclrblk �� ���� � �� �����. � �� ��� ��� ��� �

��� ���� � ��(winsblk �� wrplblk� ���� ��� ��� �)

���� �� ���. ���� �� � ��� �� ��� �� � ��

���.

��

-e ″end_string″

���� � ��� � ���� ��� ��� ��� �����. �

�� �� � �� ���.

-o output_file

��� �� ��� ��� � �����. � �� ���� ���

� � � � � �����. ��� �� �� �� ��� ���� �

� ����.

-r � �� ��� ���� � �����.

-s ″start_string″

���� � ��� �� ���� ��� ��� ��� �����.

��� �� � �� ���.

file_name

�� �� �� �� �����.

���

wclrblk �� � ��� �����.

0 wclrblk� ��� � �� ����� ���� �����.

0� ��

wclrblk� ��� � �� ����� ���� ��� �����.

��

���� � � [keyboard]� ���� type=4� ��� � �� SYSTEM.INI

���� ����� �� �� � ����.

� 1 �� 147

wclrblk -r -s "[keyboard]" -e "type=4" \-o C:\TEMP\OUTPUT.FIL C:\WINDOWS\SYSTEM.INI

� -o ��� ��� �� OUTPUT.FIL ��� �����.

�� ��

winsblk, wrplblk

wclrblk

148 Tivoli Management Framework: ���

wclrline

���� � � �����. � �� ������� ���� ���.

��

wclrline [-f] -s ″search_string″ [-o output_file] file_name

��

wclrline �� �� ����� ��� �� ��� ���� � � �����.

����� � ��� � � � � �����.

��

-f �� ���� �� ���� �����. � �� ���� ��� �� �

�� ���� � �� �����.

-o output_file

��� �� ��� ��� � �����. � �� ���� ���

� � � � � �����.

-s ″search_string″

���� ��� ��� �����. �� ���� �� ���� ����

� �� �����. ��� �� � �� ���.

file_name

��� � �� � �����.

���

wclrline �� � ��� �����.

0 wclrline� ��� � ����� ���� ����.

0� ��

wclrline� ��� � ����� ���� ��� �����.

��

1. [boot]� ���� ��� � � �� SYSTEM.INI ���� ����� �

� �� � ����.

wclrline -f -s "[boot]" -o C:\TEMP\OUTPUT.FIL \C:\WINDOWS\SYSTEM.INI

2. MYAPP.INI ���� device= �� � � ����� �� �� � �

���.

wclrline -s "device=" -o C:\TEMP\OUTPUT.FIL C:\WINDOWS\MYAPP.INI

� 1 �� 149

� �� ��� � � OUTPUT.FIL ��� �����.

�� ��

winsline, wrplline

wclrline

150 Tivoli Management Framework: ���

wco

RCS(Revision Control System) �� �� �����.

��

wco [options] file

��

wco� � RCS ���� �� ��� � �� ��� ����.

RCS ��� ���� ��� RCS �� ����, � �� �� ��� �� �

� �����. � wci�� �� �� � ����.

RCS ��� �� �� �� �� �� ��� �� ��� � ����. ��

��� ����� ��� � ����. ��� ��(��� �)�� � �� ��

� �� � �� ����. � ��� �� ��� � �� ��� ��

����� �" ���. �� ��� ��� �� �� ���� � �� �

�, �� ���� �� �� �� �����.(wrcs� ���� �� �� �

����). ���� ��� ���� ����� ���� �� ��� ��� �

��, �� ��� �� �� ��� ���� RCS ��� �� ��� ��

���. ��� � ����� �� �� �� �� ���� ��� ���,

��� � �� � ����.

�� �� �� �� �, �� � �� � ��, ��� �� �� ���� ��

���. �� ��� ���� ���� ��, wco� �� ��� �� ��

�����. �� ��� ��� ���� � ��, wco� �� ��(����� �

��, wrcs� -b �� ��)�� �� �� �����. �� �� �� �� -f,

-I, -l, -M, -p, -q, -r �� -u �� � ��� ��� � ����. �� -d(��), -s

(��) � -w(���)� ��� ��� ��� ���� �����, � ��� -f, ...,

-u �� �� �� � ��� �����.

�� �� RCS ��� ���� wco �� ��� 0� �� �� �����. wco

� �� �� ��� �����.

�� �� �� � �� �� RCS ���� �����. �� -kv� ����

��� ��� � �� ��� ��� ���� ��� �� ��(wrcs �

�) ���� �� ��� � ��.

�� �� � �� ��� ��� �� �� �� ��, wco� ��� ��

�� �� ��� ���� �� �� ����. �� �� ��� �� ��� �

�� -f� ���, �� ��� �� � �� �� �����.

� 1 �� 151

��

-d date

�� � ��/��� date ��� � �� ��� ��� �� �� ��

���. �� �� �� ���� �����. ��� LT� �� ��

�����. �� �� ��� �� ����. �� ��, �� ���

UTC(Coordinated Universal Time)�� 8�� ��� �� ��� � �

��� 1990� 1! 11� �� 8�� ��, �� ��� � ����.

8:00 pm lt4:00 AM, Jan. 12, 1990 (default is UTC)1990/01/12 04:00:00 RCS date formatThu Jan 11 20:00:00 1990 LT output of ctime(3) + LTThu Jan 11 20:00:00 PST 1990 output of dateFri Jan 12 04:00:00 GMT 1990Thu, 11 Jan 1990 20:00:00 -0800Fri-JST, 1990, 1pm Jan 1212-January-1990, 04:00-WET

��� �� �� ��� ����� ����. �� ���� UTC���.

�� ��� �, !, �, �, � � �� �(�� )� �����. � �

� � ��� ��� �� ���. ��� �� � � ��� � �

��� ��� �� ��� ��� ��, ���� �� �� �����.

��� �� ��� ��, �� � ��� �����. �� ��, �� 20,

10:30 UTC ���� �� �, !� 20� 10:30:00 UTC� ���

����. ��/�� ��� ���� �� � � �� ���.

-j joinlist

joinlist�� ��� ��� ��� �� �����. � ��

wrcsmerge ��� �� �� ��� ��� ��� � ���

��.

-M [rev]

��� �� ��� �� �� ��� �� ��� ����. �

�� ���� ������. make �� � ����.

-s state

��� state� �� ��� ���� �� �� �����.

-w [login]

��� � login�� ���� �� �� ��� ���� �� �

� �����. �� login� ���� ���� ���� ����

�.

joinlist� rev2:rev3 �� �� �� ��� ����, rev2 rev3� ��

�� ��� � �� ����. ���� ��, rev1 -f, ..., -w ��� �

wco

152 Tivoli Management Framework: ���

���� �� �����. �� � �� ��, rev1 �� �� ��

� �� �����. (��� � ��� � �� ��� � � ���.)

� �� ��, wco� rev2� ��� rev1� rev3 �� ����. �� rev2

� rev1� ���� �� ��� rev3� ��� ����� ����. �� rev1

� rev3� rev2� �� ���� �� � ��� �� �� �� �����.

� ���� rev1<rev2<rev3� ��, �� rev3� � ��� rev1�� rev2

�� ��� ����� �� ��� �� �����. rev2�� rev1�� �

�� rev2�� rev3�� ���� � ���� ��, wco� � �� merge

�� �� � �� ����.

�� �� ��, rev2� ��� � ����. ��� �� �����. ��

� ��� ���� �� � ��� �� ���� �����. -l � -u �

� rev1 ���� �� ����.

-f [rev]

�� �� �����. -q ��� �� �����. “�� �”� ���

���.

-I [rev]

��� �. � � � ��� � ���� ����� ������ �

�� ����.

-k k �� ���� �� �� ��� � �����. “�� ��”� �

�����. �� ��, Revision ��� �� $Revision: 5.7 $ ��� �

�� $Revision$ �����. � �� �� �� �� �� � �� �

�, �� ��� �� ��� ��� � �����.

-k o �� ��� �� �� ��� �� �� �� ��� �����. �� �

�, Revision ��� �� ��� �� �� � ���� ���� �

���� $Revision: 5.7 $ �� ��� $Revision: 1.1 $� �����. �

� �� ��� �� ��� � ���� �� �� ��� �� �

�� �� ��� �����.

-k kv Revision ��� � $Revision: 5.7 $ � �� �� ����

�� ��� �����. �� ��� �� Header, Id � Locker �

� ��� �� �����. , ��� �� �� wci -l � wco-l� � �

�� ���� ����. � �� ������.

-k kvl ��� ��� �� �" �� �� �� ��� �� �� ���� �

���� -k kv �����.

-k v �� ���� �� �� �� �����. �� ��, Revision ���

� �� $Revision: 5.7 $ �� ��� 5.7 �����. �� �����

$Revision:$� � �� ����� ���� ��� ���� ����

wco

� 1 �� 153

�� ���� � ��� ���. ��� � �� �� ���� � �

� �� ��� ��� � ����. ���� � �� ��� ��

���. ��� � ��� ����, � �� -l� ��� ��� � �

�� ��� ��� �� ��� ����. �� ��� ��� -k v

�� �� �� ������.

-l [rev]

���� ��� ��� ���� �� ���� -r� ����.

-p [rev]

��� �� �� ��� ��� � � � �� �����. � ��

wco� ���� ��� � �����.

-q [rev]

��� �. � ���� ����.

-r [rev]

�� rev ��� ��� � �� �� �����. rev� ��� �

��� ��� ��, � ��� �� �� �����. rev� ����,

�� ��� �� ��(wrcs� -b �� ��)� �����. rev� $� ��,

wco� �� ��� �� ��� �� �� �����. ��� � ��,

�� ��� ��� �� �� �� �� ��� ��� �����. ��

�� �� ��� wci � wrcs ��� -n ���� �����.

-u [rev]

��� �� ���� �� �� �� �� ���� � ���� -r

� ����. rev� ����, -u� ��� �� �� ���� �� �� �

����.

-V n RCS �� n �������. ��� n 3, 4 �� 5� � ����. �

� ��� ��� RCS� ��� �� �� ��� RCS �� �� �

��� � ����. ���� �� RCS �� ��� ��� ���, �

��� RCS ���� wrlog� ����� ����. � � �� � �� �

�� branch:� ���� �� ��� �� 3���. ��� ��� � ��

���� �� 4���. � �� �� 5���. �� 3 ������ �

� ��� RCS �� �� ��� ����� ���. �� 4 �� � ��

�� ������ �� ��� RCS �� �� 13�� �� ���

���� ����. �� 4 �� � �� �� ������ � ��

�� �� yyyy/mm/dd �� yy/mm/ dd� �� �� ���� $Log$�

���� �� ��� ��� � ����.

-x suffixes

RCS ��� �� ���� � suffixes� �����. ��� �� wci

� ������.

wco

154 Tivoli Management Framework: ���

�� ��

���� ���� $keyword$ � $keyword:...$ ��� ��� $keyword:value$ �

�� ���� ����, ��� keyword value� ��� ��� ����. ���

�� ���� ��� ����� ��� ��� � ����. ���, ����

$keyword$ ��� ��� � ���. �� ��� �, wco� � ���

$keyword:value$ ��� ���� �����. �� ��� ���� �� �� ��

� �� �� ��� ��, � ��� �� �� �� �� �����. ��� ��

� �� �� � ��� �����. ��� � ��� -k ��� ��� � �

���.

�� � �� � ��� ����.

$Author$

�� �� �� ���� ��� �

$Date$

��� �� �� �� ��(UTC)

$Header$

RCS ��� �� �� �, �� �, ��(UTC), ���, �� � ��(�

� ��)� ���� � ��

$Id$ RCS �� �� ��� ��� � ���� $Header$ ����.

$Locker$

�� �� ���� ��� �(��� � �� ��)

$Log$ �� � �� ��� �� ����, RCS �� �, �� �, ��� � �

�(UTC)� ���� ��� �� ����. �� �� ���� ���� �

���. �� ��� �� ���� $Log:...$ ��� �����. �� ��

��� �� �� ��� ��� � �����.

$RCSfile$

��� �� RCS �� �

$Revision$

��� ��� �� �

$Source$

RCS ��� �� �� �

$State$

wrcs �� wci� -s ���� ��� ��� ��

��

RCS � �� ���� ��� ���� ����.

wco

� 1 �� 155

��� � ���� ��� �� ��� ���� ��� �� ��� �

���. nroff troff�� � �� ��� �� \&� ���� �����.

��

RCS �� �, �� �� � � ��� �� �� � � � �����. �

��� ���� ���� �� ��� 0���.

��

wco� wci� ���� �� �� ��� �����, �� �� � � �

� ����.

�� ��

RCSINIT

���� ���� �� �� �� �� ��. ��� �� wci� ����

��.

��

��� �� -d �� 1970 ��� ��� ��� ����.

���

��: Walter F. Tichy. �� �: 5.7; ��� ��: 1991/08/19. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991 by Paul Eggert

�� ��

wci, wident, wrcs, wrcsdiff, wrcsmerge, wrlog; Walter F. Tichy, RCS--A System

for Version Control, “Software--Practice & Experience 15, 7 (July 1985), 637-654.

wco

156 Tivoli Management Framework: ���

wconnect

� �� Tivoli region �����.

��

wconnect [-u] [-P port] [-m mode] [-r encrypt_level] -s server region_num

wconnect [-n][-u] [-P port] [-c encrypt_level] [-l login] [-m Two-way | Managing

| Managed] [-r encrypt_level] server

��

wconnect �� � region� �� Tivoli �� ��� �� � ���. ���

��� wconnect� � � �� �� �� �����. �� ����� ��

�� Tivoli �� ���� � �� �� ���. � � �� �� ��

�����. � �� � Tivoli ����� �����. ���� ��� � �� �

�� ��, �� ��� ��� Tivoli ��� �� ��� ���.

Tivoli region ��� �� ��� ��� ��� � ����. ��� ��� ��

�� �� ��� ��� �� ���, �� ��� ���� ��� ���. ���

� ��� ���� ���� �� �� ���� ��� � �� ��� � ��

��. ��� ���� ��� ���� ���� ��� �� ��� � ����.

��� ��� ��, �� ��� ���� �� ��� � �� ��� � ���

�.

��

-c encrypt_level

� Tivoli region�� ��� �� region� ��� � �����. �

�� ��� � Simple, none �� DES���. ��� �� none�

���� � ��� ����. �� simple �� DES� ��, ��

�� �� � �������. ��� � �� � �� ��� � �

� ����. ��� � Tivoli �� � �� ��� ��� ��

�� ���. �� ��� � Simple���.

-l login

�� �� ����� �� ��� � �����. � ��� �� ��

� ���� � ��� ����� ��, ���� super �� ��

Tivoli ���� �� Tivoli region� ����� ���. -l ��� �

��� ��, �� ��� �������. ����� ���(trusted host)

��� ���� ��� � �� � ���. ��, Enter � ��� �

����.

� 1 �� 157

-m mode

Tivoli region ��� � � �� �� �����. ��� �� �� �

�� ����.

Two-way

Tivoli region�� ��� �� � ���. ��� ���� Tivoli

�� �� � region� ��� �� �� �� � ��. � �� �

�����.

Managing

���� ���� � Tivoli �� ��� �� � ���. �

Tivoli ��� �� Tivoli region� �� ��� � ���, �

� Tivoli ��� � region� �� ��� � ����.

Managed

���� ���� � Tivoli �� ��� �� � ���. �

�� �� ����� �����. �� ���� � ��� ��

�� ��� � � ����.

-n Tivoli Management Framework� ��� ������ ��� �����. �

���� ��� �� ��� � ��� � ��� � ���� �

�� ��� � ����.

�: Windows ��� ����� ��� �� �� �� ����, �

�� Windows ����� Tivoli ��� ��� � ��� � ���

�.

-P port

� �� ��� �� �� ��, Tivoli �� ���� � ���

�� �� �����.

�: � �� �� � ��� ����� ���� �� ���. �� ��

�� ���� � ���.

-r encrypt_level

�� Tivoli region�� ���� ��� � �����. ��� ���

� Simple, none �� DES���. ��� �� none� ���� �

��� ����. �� simple �� DES� ��, �� �� �� �

�������. ��� � �� � �� ��� � �� ����.

��� � Tivoli �� � �� ��� ��� �� �� ���. �

� ��� � simple���.

-s �� �� ����� ���� �� � ���. � ��, � Tivoli ���

� wconnect -s� ���� ���.

-u ��� ��� Tivoli region�� �� ����� ��� ��� �� region

wconnect

158 Tivoli Management Framework: ���

� �� �����. �� �� ��� �������, wlsconn -u ��

���� ���(���� ��) � �� ��� � ����.

region_num

�� Tivoli region� region �� �����.

server �� region� Tivoli �� � �����.

��

super

��

1. �� ����� �� ��� �� �����. �� Tivoli ��� ���

� �����. � �� ���� ���� �� �� elbert�� ��� sally�

� ��. ��� ������ �� ��� �� �� �� ����.

wconnect -u -c simple -l sally -m Two-way -r simple\ elbert

2. �� ����� �� ��� �� �����. � ��� ���� ����

��� �� �� cook ���� �����. � ��� ���� ���

�� �� ��� ���� ��� ���. �� ��� � ���� �����.

wconnect -u -c none -m Managing -r simple cook

3. �� ����� �� ��� �� �����. �� �� pinatubo� ��

�� �����(���). �� ��� region �� 4004418954���. ��� �

�� � �� �� �� ��� ����.

wconnect -u -s pinatubo 4004418954

�� ���� ��� �� ����� wconnect� �� ���. �� �

� pinatubo�� ���� ���. �� �� ��� �����, � ��

��� ��� �� -r ���� �����. �� ��� �� �� �����.

wconnect -u -r simple -s everest 4004598145

4. �� ����� �� ��� �� �����. �� �� meiron ��

�� �����(���). �� ��� region �� 0003432265���. � �

�� ���� �����. ��� ��� � �� ��� �� �� ���

�.

wconnect -u -m Managed -s meiron 0003432265

�� ���� ��� �� ����� wconnect� �� ���. �� �

� meiron�� ���� ���. meiron� ���� �����.

wconnect -u -m Managing -s space 4004598145

�: �� �� ����� ���� ��� �� �� wconnect� ���� �

� ���� ���� �� ��� ���� ��� ����, wlsconn -u

�� ���� ���� ����� �� �� � �� ���.

wconnect

� 1 �� 159

�� ��

wdisconn, wlsconn, wupdate

wconnect

160 Tivoli Management Framework: ���

wcpcdrom

� ���� CD�� ��� ���� �����.

��

wcpcdrom [-i start_index] [-a] [-c] [-n] cdrom_list new_cdrom_dir [interp_list]

��

wcpcdrom �� Tivoli � ���� Tivoli CD�� ��� ����

new_cdrom_dir� �����. � �� ���� CD �� ��� ���� �

��, �� �� CD ���� ��� ���� ����� ��� ����� �

� �� ��� CD�� ��� ���� ��� � ����. �� ��, Tivoli

Management Framework � Tivoli ������� HP-UX 10.01 ��� ��

� ���� ���� ��, � �� ���� ���� � Tivoli ����

��� �� HP-UX 10.01 ��� ����� ���� ��� ���� �

�� � ����. �� �� � ����� � ������ �� � ���

�.

����� wcpcdrom CD ���� �� �� ��� �����. �� �� CD

�� ���� ���� ��, �� ��� ���� �� �� ���� -c ��

�� ���.

�� �� CD�� ���� ��� �, -i start_index ��� �� ���. � �

� new_cdrom_dir� �� ��� �� ��� � wcpcdrom� �� ��

�� ����. �� ��, ��� Tivoli CD� ���� ���� �����

�. � ����� file1.pkt�� file95.pkt��� �� ����. � � CD� �

�� �, �� �� ���� ��� -i start_index �� �� ���. ��

��, wcpcdrom -i 96 ��� � ����. ��� � � CD� � ���

file96.pkt�� ���� ���� �� �" ��.

new_cdrom_dir� ��� ���� ���, �� �� ���� �� ���� ��

�� ��� � ����.

cd new_cdrom_dir tar -cvhf tape_device

��� ����� ���� install_dir ���� ��� CD�� ��� �

� ���� wpreinst �� ������. � ��� Tivoli Enterprise � �

��� ������.

��

-a CD� � �� � ���� �����.

-c CD� �� �� ��� ���� �� CD ���� �����.

� 1 �� 161

-i start_index

wcpcdrom� new_cdrom_dir� ��� ��� � �� ��� �� �

����. start_index� 1 - 9999 ��� ��� ��� � ����.

-n wcpcdrom� ��� � ���� �� ����. � ��� ���� �

�� ���� ����.

cdrom_list

CD� �� ��� �����. �� �� ��� �� �� ���.

interp_list

CD�� ��� ����� �� �����. �� �� ����� ��

���� �� ���. interp_list� ���� ���, � ����� �

�� �����. ��� ����� ��� �� �� Tivoli Management

Framework ��� ��� ������.

new_cdrom_dir

�� ��� ���� ���� �����.

��

� �� ���� �� ��� ��� ��� ����.

��

1. �� ����� CD cdrom1� �� /tmp/tiv_install ���� �����.

wcpcdrom -c /mycdrom/cdrom1 /tmp/tiv_install

2. �� ����� CD cdrom2�� /tmp/tme_install ���� solaris2 ���

�� ��� �����. �� ��� �� 96���� ��� �" ��.

wcpcdrom -c -i 96 /mycdrom/cdrom2 /tmp/tme_install solaris2

3. �� ����� /mycdrom/tmp_cdrom�� HP-UX 10.01 Tivoli Management

Framework �� �� ��� /urcdrom/apps_cdrom�� Tivoli �����

� �� �� �����. � �� �� /home/new_dir ���� ���

��. �� ��� �� 1���� ��� �" ��.

wcpcdrom -c -i 1 /mycdrom/tmp_cdrom, /urcdrom/apps_cdrom \/home/new_dir hpux

�� ��

wcrtimage

wcpcdrom

162 Tivoli Management Framework: ���

wcpyfile

NetWare �� ����(.NCF)� �� ��� � �� ���. � �� ����

��� ���� ���.

��

wcpyfile -s src_path -d dest_path

��

wcpyfile �� .NCF �� ���� ���� � ��� ���. � �� �

���, ��� ���� ����� �� .NCF �� ������ NetWare �

�� �� ���� ���� ��� � ����.

��

-d dest_path

�� ��� �� ��� �����.

-s src_path

�� ��� �� ��� �����.

��

.NCF �� ������ �� �� ����� � �� SYS:\TEMP\FILE.NLM

�� SYS:\SYSTEM\FILE.NLM ��� ������.

wcpyfile -s SYS:\TEMP\FILE.NLM -d SYS:\SYSTEM\FILE.NLM

� 1 �� 163

wcrtadmin

��� Tivoli ���� �����.

��

wcrtadmin -l login... [-n noticegroup]... [-r group,role1:role2...] [-u user_id [-g

group_id]]... name

��

wcrtadmin �� ��� Tivoli ���� �����.

��

-g group_id

��� ���� �� ���� ID� ����.

-l login

��� ���� �� Tivoli ��� ����. �� �� � ��� ��

� � � � ����.

v user_name

v user_name@ManagedNode

v NTdomain\user_name

v NTdomain\user_name@ManagedNode

v kerberos_name:realm

user_name �� NTdomain\user_name� ��� ��, ���� Tivoli ��

rgion� � ����� ���� � ����. user_name@ManagedNode

�� NTdomain\user_name@ManagedNode� ��� ��, ���� ���

������ ���� � ����.

-n noticegroup

��� ���� �� �� �� �� ����. � ��� �� �� �

�� � ����.

-r group,role1:role2

��� ��� ��� ��� �� �����. � �� @group,

role1:role2� ���� � ���(�: @Administrator,admin:user �

� @DefaultRegion,super). ��� � ������� �� �����

�� �� ��� ���� � � ���. � � ��� ��

���. �� ��, @PolicyRegion:MyRegion,super:senior� MyRegion

policy region�� super � senior �� �����. Tivoli Management

Region �� ����� ��� “global” ������(�: -r global,user).

164 Tivoli Management Framework: ���

-u user_id

��� ���� �� ���� ��� ID� ����. user_id� �� �

� � ��� � � � ����.

v user_name

v user_name@ManagedNode

v NTdomain\user_name

v NTdomain\user_name@ManagedNode

v kerberos_name:realm

�: ��� ManagedNode �� odadmin odlist � � ��� � � �

�� �����.

name ��� ���� ��. � �� � �� �� ��� ���� ��

����. ��� ��� ���, ��(_), ��(-), ��(.) � ��� �

����.

��

senior

��

1. �� ����� ohio ����� Tivoli ��� kimiko, Tivoli- Authorization

�� ��� ���, Testing policy region�� admin �� �� �� � �

� Kimiko� �� ���� �����.

wcrtadmin -l kimiko@ohio -n Tivoli-Authorization \-r @PolicyRegion:Testing,admin Kimiko

2. �� ����� ���� callahan@sthelens callahan@dogma ��� ��

�� �����, � ���� Tivoli Management Region�� user ��,

DefaultRegion��� super, admin � user ��, � ����� super

senior ��, MyRegion policy region��� super, senior, admin, user �

backup �� ����. callahan Tivoli Authorization ��� ����� �

����. ���� ���� ��� ID callahan� ���� �� ID staff� �

����. ���� �� Steve Callahan���.

wcrtadmin -l callahan@sthelens -l callahan@dogma \-n "Tivoli Authorization" \-r global,user -r @DefaultRegion,super:admin:user \-r /Administrators,super:senior \-r @PolicyRegion:MyRegion,super:senior:admin:user:backup \-u callahan -g staff "Steve Callahan"

�� ��

wgetadmin, wsetadmin

wcrtadmin

� 1 �� 165

wcrtgate

����� ������ �����.

��

wcrtgate {[-h managed_node] [-i IPX_socket_num] [-n gateway_name] [-p

TCPIP_port] [-P protocols_list] [-t default_session_timeout]}

��

wcrtgate �� ��� �� ��� ��� ����� ������ �����. �

� �� � ��� ��� �� ���.

������ ��� �, httpd ���� ����� ��� �����. ����

� ����� ��� ����� wgateway �� ���� �� �� � ��

� ���, ������ �� ���� �� http � �����.

��

-h managed_node

������ ��� �� �� � �����. �� ���� � �

�, ������ �� ��� �� ���� �����.

-i IPX_socket_num

SPX(Sequenced Packet Exchange) ��� � ������ ���� ��

� � � � � � . ������ � � I P X _ s o c k e t _ n u m - 1 � ���

IPX(Internetwork Packet Exchange) �� �����.

-n gateway_name

����� � �����. � �� ���� �� ��, ����� �

managed_node-gateway���.

-p TCPIP_port

������ ��� ����� ��� TCP/IP(Transmission Control

Protocol/Internet Protocol) �� �� �����. ��� �� 9494��

�.

�: ��� �� ��� ������ ���� � �� �� �� ��

�� ����.

-P protocols_list

��� ������ �� ���� ��� �����. �� �� ���

�� ���� ���(�: protocol1,protocol2).

166 Tivoli Management Framework: ���

-t default_session_timeout

������� ������� �� ���� � ��� �� ���� �

� ����. ��� �� ������ ������ �� ���� �

�� �����.

��

senior

��

1. �� ����� �� �� pearl� ����� ������ �����. � ��

������ pearl-gateway� �� ��� �� �� 9494�� �����.

wcrtgate -h pearl

2. �� ����� �� �� diamond� gems�� ����� ������ ��

���.

wcrtgate -h diamond -n gems

3. �� ����� �� 8432�� ���� �� �� vernon� subnet30-gateway

�� ����� ������ �����.

wcrtgate -h vernon -n subnet30-gateway -p 8432

4. �� ����� �� �� vernon� TCP/IP IPX ��� � ���� �

���� ������ �����. � ������ �� 9999��� TCP/IP �

���� ��� �� 6000��� IPX ����� �����.

wcrtgate -h vernon -P TCPIP,IPX -p 9999 -i 6000 -n gems

�� ��

wdelgate

wcrtgate

� 1 �� 167

wcrtjob

��� ����� �� �����.

��

wcrtjob -j job_name -l library_name -t task_name -M mode [-s interval -n number]

-m timeout -o output_format [-D | -d node_name -f file_name] [-h node_name]

[-p prof_manager_name]

��

wcrtjob �� ��� ���� ���� �� �����. �� ����� �

�� � �� Tivoli �� �� �����.

��

-d node_name

�� � �� ��� �� ��� �����.

-D �� � ��� ����.

-f file_name

�� � � �� �� � �����. � � �� � �� �

��. �� ��� �� � ���� �� ��� �� �� ��� �

��� � � � ��� �����.

-h node_name

�� ��� �� ��� �����.

-j job_name

���� ��� � �����. �� � ��� ���� ���. �

�� ��� ���, ��(_), ���(-), ��(.) �� ��� � ����.

-l library_name

��� ��� ���� ���� ��� ����� �����.

-m timeout

��� ����� ����� ��� ����� ���� ��(� �)

�����. � �� �� ��� �� �� ����. staged �� �

� �� ��, ����� �� ���� �� ���.

-M mode

��� ���� �� �����. ��� �� ��� ����.

parallel

��� � �� �� ���� �� �� �����.

serial �� ���� �� � � ��� �����.

168 Tivoli Management Framework: ���

staged ��� ���� �� �� ���� �� �����.

-n number

staged �� � ��� �� �� �� �����. staged �� ���

���� � ��� �� � �� ���.

-o output_format

�� � � �� �����. �� � �� � �� ��� ��� ��

�� �����. ��� �� � �� 0 - 17��� 8� ��� ����

�. �� ��� � � ���� �����. �� ��, �� ��

� ��� ����� -o 12� � ����. � � ��� ����.

01 � ��� �� � ��� �����.

02 �� ��� �����.

04 � � �����.

10 � ��� �����.

-p prof_manager_name

��� ���� ���� ���� �����.

-s interval

���� �� ��� � ���� ���� �� �� ���� ����

� ��� � �� �����. staged �� ��� ���� � ���

�� � �� ���.

-t task_name

��� ��� ��� �

��

admin, senior, super

��

1. �� ����� date_job��� �� �����. �� ��� date_task�

�����, � ���� ��� ���� my_tasks� ����. ��

marketing ���� ���� ���� �� ���� � � �����. ��

������ �� 120� � � �� ���� �����. ��� � � ��

� ����.

wcrtjob -j date_job -t date_task -l my_tasks \-M parallel -m 120 -p marketing -o 017 -D

2. �� ����� date_job2�� �� �����. �� ��� date_task� �

����, � ���� ��� ���� my_tasks� ����. �� �� �

wcrtjob

� 1 �� 169

� bald�� � � �����. �� ������ �� 120� � ����

�. �� � �� �� bald� /tmp/date_job2.output��� ��� ��

��.

wcrtjob -j date_job2 -t date_task -l my_tasks \-M parallel -m 120 -h bald -o 017 -d bald \-f /tmp/date_job2.output

�� ��

wcrttask, wdeljob, wruntask

wcrtjob

170 Tivoli Management Framework: ���

wcrtpol

���� � ��� policy ��� �����.

��

wcrtpol [-d | -v] class name [parent]

��

wcrtpol �� ���� �� policy ��� �� �� �� ��� policy� �

�� �����. ��� policy ��� �� ��� policy ���� ��

� � �� �� �� � �����. wgetpolm � wputpolm �� ���

� ��� policy ��� ��� ������.

��

-d policy �� ��� �����. -v ��� ��� � ��� �����

�.

-v policy ��� �� ��� �����.

class ��� policy ��� ���

name ��� policy ��� �. policy �� ��� ���, ��(_), �

�(-), ��(.) � ��� �����.

parent ��� policy ��� �� ��� � � ���� �� ��� policy

��� ��. �� �� ��� ���� �� �� policy �

����.

��

senior, super

��

� ����� ProfileManager� �� policy ��� �� ��� �����. �

� � Restricted��, BasicProfileManager policy ���� ����

�.

wcrtpol -v ProfileManager Restricted BasicProfileManager

�� ��

wchkpol, wcrtpr, wdelpol, wdelpr, wgetdfpol, wgetpolm, wls, wlspolm, wputpolm

� 1 �� 171

wcrtpr

policy region �����.

��

wcrtpr [-a admin...] [-s region] [-m resource...] name

��

wcrtpr �� policy region �����. � ���� policy region ����,

policy ��� �� � �� ��� � �� ���� ���. wsetpr ��

���� policy ��� �� �� ���� ����.

��

-a admin...

��� policy region ��� ���� ���� �����. -a admin

�� ���� �� ���� ���� region ��� � ����.

-m resource...

��� policy region� �� �� ��� ��� �� �����. -m �

� ���� �� �� �� � ��� � ����. -m ��� ���

� ��, policy �� �� ��� ����.

-s region

��� policy region region� subregion�� �����. ��� policy

region ���� �� region� ���� �����. -s �� ����,

wcrtpr region ��� � region�� �����.

name ��� policy region �. policy region ��� ���, ��(_), ��(-),

��(.) � ��� �����.

��

senior; senior � -m ��� ���� �� policy

��

1. �� ����� ��� � policy region ��� ��� �� ���� �

��� �����.

wcrtpr -a Root_ceridwen-region new-region

2. �� ����� �� region ��� subregion ��� ManagedNode ��

�� �� ���� ����.

wcrtpr -s /Regions/test-region -m ManagedNode node-region

172 Tivoli Management Framework: ���

�� ��

wchkpol, wcrtpol, wdelpol, wdelpr, wgetdfpol, wgetpolm, wlspolm, wputpolm

wcrtpr

� 1 �� 173

wcrtprf

��� ���� ����� �� ���� �����.

��

wcrtprf [-c source] profile_manager type profile_name

��

wcrtprf �� type ���� ��� ��� �� ���� �����. ����

profile_manager� ��� ���� ���� profile_name� ��� � ����

�����.

source� ����, wcrtprf �� �� ��� �� ���� �����. source

� ���� ���, ��� ����� ���� ������.

��

-c source

��� ���� ��� �� ���� � �����. source ��� �

�� �� ��� ����.

v @prof_name

v @profile_type:prof_name

v /Regions/PolicyRegionName/prof_manager_ name/prof_name

profile_manager

���� ��� ���� ��� � �����. profile_manager ��

� ��� �� ��� ����.

v @prof_manager_name

v @ProfileManager:prof_manager_name

v /Regions/PolicyRegionName/prof_manager_ name

profile_name

��� ����� � �����. ���� ��� ���, ��(_), �

�(-), ��(.) � ��� �����.

type ��� ����� �� �����. �� UserProfile, GroupProfile,

HostNamespace, NisDomain, SentryProfile, SoftwarePackage ��

FilePackage� � ����.

��

senior �� super

174 Tivoli Management Framework: ���

��

1. �� ����� DiskSpace�� Tivoli Distributed Monitoring ���� ��

���. ���� Development ���� ����� �����.

wcrtprf @ProfileManager:Development SentryProfile DiskSpace

2. �� ����� DiskSpace ���� Marketing ���� ���� ����

�.

wcrtprf -c @SentryProfile:DiskSpace \@ProfileManager:Marketing SentryProfile OurDiskSpace

�� ��

wcrtprfmgr, wdistrib, wgetprf, wgetsub, wlspol, wpopulate, wsub, wunsub,

wvalidate

wcrtprf

� 1 �� 175

wcrtprfmgr

���� ���� �����.

��

wcrtprfmgr pol_region name

��

wcrtprfmgr �� name ��� ��� � ���� ���� ���� ���

��. ���� ���� pol_region ��� ��� policy region �� �����.

�: ���� ���� ��� �� �� ���� ��� ����� wsetpm ��

������.

��

name ��� ���� ���� � �����. ���� ��� ��� ��

�, ��(_), ��(-), ��(.) � ��� �����.

pol_region

���� ���� ��� policy region �����.

v @pol_region

v @PolicyRegion:pol_region

v /Regions/pol_region

��

senior �� super

��

�� ����� Dallas policy region �� Development ���� ���� ���

��.

wcrtprfmgr @Dallas Development

�� ��

wcrtprf, wdistrib, wgetprf, wgetsub, wlssub, wpopulate, wsetpm, wsub, wunsub,

wvalidate

176 Tivoli Management Framework: ���

wcrtqlib

�� ����� �����.

��

wcrtqlib policy_region query_lib

��

wcrtqlib �� ��� policy region �� ��� �� ����� �����.

��

policy_region

�� ����� ��� policy region � �����.

query_lib

��� �� ���� � �����.

��

senior �� super

��

�� ����� amon-sul-Region policy region �� �� NewQueries�� �

� ����� �����.

wcrtqlib amon-sul-Region NewQueries

�� ��

wcrtquery, wdel, wgetquery, wruninvquery, wrunquery, wsetquery

� 1 �� 177

wcrtquery

��� �����.

��

wcrtquery [-d desc] [-r repository] [-v view] [-c column]... [-i | -s | -w

where_clause] [-x] query_lib query_name

��

wcrtquery �� �� ���� �� ��� ��� �����. ��, ��, �,

��� � � SQL ��(�� where) �� �� � ��� � ����. ���

�� where� � � �� ��� � ��� � ����.

�� ����� ���� policy region� policy ���� �� ��, � �

�� �� ��� �����.

wgetquery � wsetquery �� ����� Tivoli ����� � � �

� � ����.

��

-c column

��� ��� � �����. � ��� � ����� �� �� -c

� ������. � �� � ��� � � ��� �����.

-d desc

��� �� � �����.

-i � � �� ����� � where� ����.

-r repository

��� ��� �� ��� � �����.

-s � � �� ���� where� ����. �� �� ��� �� �

��.

[AND|OR] [NOT] Column_Name {=|!=|<|<=|>|>=|LIKE|IN} Column_Value

-v view

��� ��� ��� �� � � �����.

-w where_clause

���� where� �����.

-x �� ��� �� �� ���� ��� �����.

query_lib

��� ��� �� ���� � �����.

178 Tivoli Management Framework: ���

query_name

��� �� � �����.

��

admin, senior �� super

��

1. �� ����� DOS-machines-machines�� ��� NewQueries�� �� �

���� �����. � ��� � � �� � ���� where� ���

� DOS� ���� ��� �� ��� ����. ��� MACHINE_TYPE �

�� inventory ��� ��� DOS� �� BOOTED_OS_NAME�

� ����� �� PROCESSOR_TYPE � OPERATING_SYSTEM ��

��� �����.

wcrtquery -d "Find all DOS machines" -r inventory -v \MACHINE_TYPE -c PROCESSOR_TYPE -c OPERATING_SYSTEM -s \NewQueries \DOS-machines <<EOF

(BOOTED_OS_NAME = ’DOS’)EOF

2. �� ����� �� ��� �����, ��� HARDWARE_SYSTEM_ID

� � ��� � ���� ��� where� �����.

wcrtquery -d "Find all DOS machines" -r inventory -v \MACHINE_TYPE -c PROCESSOR_TYPE -c HARDWARE_SYSTEM_ID \-w "(BOOTED_OS_NAME = ’DOS’) ORDER BY HARDWARE_SYSTEM_ID" \NewQueries DOS-machines

�� ��

wcrtqlib, wdel, wgetquery, wruninvquery, wrunquery, wsetquery

wcrtquery

� 1 �� 179

wcrtrim

RIM(RDBMS Interface Module) �� �����.

��

wcrtrim [-i] -v vendor { -o host_oid | -h host_name } -d database -u user -H

db_home -s server_id [-I instance_home] [-t instance_name][-a application_label]

[-m max_connections] rim_name

��

wcrtrim �� �� �� ��� ��� RIM ��� �����. -h �� -o

�� ���� ��, wcrtrim �� � � RIM ��� ��� Tivoli

Management Region� �� �� ��� ������. �� ��� ��� �

� ID� ���� � ��, RIM ��� Tivoli Management Region ���

�����. instance_home �� DB2 �������� ����. RIM ��

� ��� ��� �� �� ����� ��� � ����. ����� �� �

��, RIM ��� ��� ��� ��� �� ���.

��

-a application_label

RIM ��� �� ������ �� �����.

�: � ��� RIM� � ���� ����. ��������� ����

�.

-d database

RIM ��� ��� ������� � �(������ ID) ���

��.

DB2 DB2 ������ �� �� � DB2 ������ �

Oracle

Oracle ���� �. � � �� �� ��� �� SID ���

��. ORACLE_SID ��� �� ����.

Sybase

������� ��� ������ �

Microsoft SQL

������� ��� ������ �

Informix

.odbc.ini ��� ��� ��� ��� �

180 Tivoli Management Framework: ���

-h host_name

RIM ��� ��� �� ��� ��� � �����. �� ���

� Tivoli region� �� ���. � ���� -o �� ���� ���

RIM ��� ���� ����.

-H db_home

RIM ����� RDBMS �� �� ������ ��� ���� ��

��� �����.

DB2 DB2 ������ �� ���. DB2DIR ��� �� �� ��

��.

Oracle

���. ORACLE_HOME �� ����.

Sybase

����� ��� �� �� ���. SYBASE �� ����.

Microsoft SQL

Microsoft SQL Server� ��� ���.

Informix

Informix CLI ������ ��� ���. INFORMIXDIR �

�� �� �� ����.

-i � � �� ������ ��� ����. � �� ���� ��, ��

� �� ��� � ����. � �� ���� � ��, 8�� ��� �

�� �������.

-I instance_home(DB2 ��)

INSTHOME ��� � �����. � � ������ ����� ��

� � ������.

-m max_connections

RIM �� RDBMS ��� ��� �� �� �� �����. ��

�� �� ������� ���� �� � �� � ����.

��� 1�� 200 �������. ��� 16 �����.

�: � ��� RIM� � ���� ����. ��������� ����

�.

-o host_oid

RIM ��� ��� �� ��� ��� ID� �����. �� ��� �

Tivoli region� �� ���. � ���� -h �� ���� ���

RIM ��� ���� ����.

wcrtrim

� 1 �� 181

-s server_id

������� �� �� ID� �����. � ��� RIM ���� RDBMS

� ��� � ��� ���.

DB2 RIM��� � �� tcpip� �� �����. DB2COMM ���

� tcpip� �����.

Oracle

tnsnames.ora ��� �� Oracle � � � � �� � .

TWO_TASK ��� �� �� ����.

Sybase

Sybase ��� �. DSQUERY ��� �� �� ����.

Microsoft SQL

Microsoft SQL Server� ���� ��� �.

Informix

Informix ��� �. INFORMIXSERVER ��� �� �� ��

��.

-t instance_name(DB2 ��)

DB2INSTANCE �� ��� � �����. � � ��� ������

����� ����.

-u user

RIM ��� ������� ���� � ��� ������ ����

� �����.

DB2 UNIX �� ��� ��, DB2 ���� ���. DB2 ���� ��

� � � ��� � � ���. Windows �� ��� �

�, ������ �� �� �� ��� � �� DB2 ���.

Oracle

������ ��� �� ���� RDBMS ���.

Sybase

������ ��� �� ���� RDBMS ���.

Microsoft SQL

������ ��� �� ���� RDBMS ���.

Informix

informix� ���.

-v vendor

����� RDBMS� ����� �����. ��� �� ��� ���

�.

v DB2

wcrtrim

182 Tivoli Management Framework: ���

v Oracle

v Sybase

v MS_SQL

v Informix

rim_name

RIM �� �� �����.

��

Tivoli Management Region�� senior �� super

��

1. �� ����� RIM ��� ����� �����.

wcrtrim -v Oracle -h amon-sul -d amar -u tivoli \-H /tivoli/drm/2/amishra/ORACLE -s invdb.world inventory

2. �� ����� �� RIM ��� ����� ��� ���� ����.

wcrtrim -i -v Oracle -h amon-sul -d amar -u tivoli \-H /tivoli/drm/2/amishra/ORACLE -s invdb.world inventory \< ./passwd

3. ��� ����� invdh2 RIM ��� ��� ������ � invdh

� �� �� RDDBMS �� �� 10�� ����.

wcrtrim -v Oracle -h amon-sul -d amar -u tivoli \-H /tivoli/drm/2/amishra/ORACLE -s invdb.world \-a invdh -m 10 invdh2

�� ��

wdel, wgetrim, wsetrim, wsetrimpw

wcrtrim

� 1 �� 183

wcrttask

��� ����� ���� �����.

��

wcrttask -t task_name -l lib_name [-g group_name] [-u user_name] -r role [-c

comments] {-i interp_type node_name file_name}...

wcrttask [-F file_name] -t task_name -l lib_name [-u user_name] [-g group_name]

-r role

��

wcrttask �� ��� ��� ����� ���� �����. ���� ��� �

� �� ����� ���� ������. ���� ��� ��� �� ��� �

� ���.

-t -l ��� ���� ��, ���� ��� ��� ����� ����� �

���� ����. ���� ��� �� ����� -i interp_type mannode_name

file �� ��� �� ���. � �� ��� ���� ��� � ��� �

� �, �� ��� � ����.

��

-c comments

��� � �� ���� ��� � �� �����.

-F file_name

�� ���� �� ��� ���� �� �����. ��� ��

wgettask �� ���� ���� tar ���� ���. � �� ���

� ��� ��� ��� �� �� ��� ���� ��� ���� ��

���. � �� � Tivoli ���� �� ���� ���� ��� � �

����.

-g group_name

���� ��� ��� � �����.

-i ��� ���� �� ���� ���� � �� ��� �����. -i �

�� �� �� � �� ���.

interp_type

���� ��� ��� ����� �� �����.

node_name

��� ��� �� �� ���� �� ��� �����.

184 Tivoli Management Framework: ���

file_name

��� ���� ��� �� �� � �����.

-l lib_name

���� ��� ��� ����� �����.

-r role

���� ���� � �� �� �� �� �����. ��� ���

��� �� �� ��� � ����(�: admin:senior:super).

-t task_name

��� ��� � �����. �� � ��� ���� ���. ��

� ��� ���, ��(_), ���(-), ��(.) �� ��� � ����.

-u user_name

���� ���� ���� � �����. �(*)� ���� user_name

�� ��� ID(UID)� ��� ��, �� �� � �����(�

: -u ’*’).

��

admin, senior, super

��

1. �� ����� date_task�� ���� ��� ���� my_tasks� ���

��. � ���� ����� ����� super, senior �� user ��� ��

���. ���� Solaris ���� �����. � ���� �� �� ��

�� �� bald� /bin/date� ����. ��� �����.

wcrttask -t date_task -l my_tasks \-r super:senior:user -i solaris2 bald /bin/date \-c "This task runs the /bin/date command"

2. �� ����� find_cores�� ���� ��� ���� my_tasks� ���

��. � ����� super ��� ����. ���� �� ���� ���

��. ���� �� �� �� �� bald� /tmp/find_cores.sh� ����. �

��� root� �����.

wcrttask -t find_cores -l my_tasks -r super \-i default bald /tmp/find_cores.sh \-c "This task finds core files and runs as root" -u root

�� ��

wcrtjob, wdeltask, wgettask, wtll

wcrttask

� 1 �� 185

wcrttlib

��� ����� �����.

��

wcrttlib library_name pr_name

��

wcrttlib �� ��� policy region �� ��� ����� �����.

��

library_name

���� ��� ����� � �����. �� � ��� ����

���. ��� ��� ���, ��(_), ���(-), ��(.) �� ��� �

����.

pr_name

��� ����� ��� policy region� � �����.

��

admin, senior, super

��

�� ����� my_tasks�� ��� ����� policy region bald-region� �

����.

wcrttlib my_tasks bald-region

�� ��

wcrtjob, wcrttask

186 Tivoli Management Framework: ���

wdate

�� ��� �� �� �� �����.

��

wdate host_name

��

wdate �� host_name�� ���� �� ��� �� �� ��(GMT: ���

� ��) �����. ��� ��� � ���� �����.

��

host_name

��� ��� ���� � �����.

��

user, admin, senior, super

��

�� ����� �� �� bald� �� �� �� ����.

wdate baldMon Nov 21 16:27:09 GMT 1998

�� ��

wdiskspace, whostid, wifconfig, winstdir, winterp, wmannode, wmemsize, wping,

wtimezone, wuname, wxterm

� 1 �� 187

wdel

Tivoli �������� ��� �����.

��

wdel [-I] label...

��

wdel �� �� ��� ��� �����. wdel �� Tivoli �� ��

����� �� � ��� �� ���. ��� �� ��� ���� �� �

�� ���� ���. Tivoli� ����� ���� ��� � �� �� ��

���.

wdelep

Tivoli �������� ������ �����.

wdeljob

��� ������ �� �����.

wdelpol

�� policy ��� �����.

wdelpr

policy region �����.

wdelrealm

HTTP ��� �����.

wdelsched

������ �� �����.

wdeltask

��� ������ ���� �����.

wrmnode

Tivoli �������� �� ��� �����.

��

-I ��� � � �� ��� ��� � ����� ���. � ��

�� ��� ��� ��� �� �����. -I �� ���� �� �

�� ��� ���� �� ��� �� ���� ����. � �

�� ���, �� ��� ��� ���� �� �� �� ��� �

��� ��� � ��� �����.

label... ��� ��� �� �����. label �� �� �� �� �

188 Tivoli Management Framework: ���

�� � � ��� � ����. �� ��� �� ��(“/” ����

��), �� ��(�� �� ��� ���) �� � �(�� ��

���� ���)� � ����.

��

admin, senior, super

��

�� ����� �� ��� ���� pm2 ���� ���� sevenup-region policy

region�� �����.

wdel /Administrators/vwilburn/sevenup-region/pm2

�� ��

wdelep, wdelgate, wdeljob, wdelpol, wdelpr, wdelrealm, wdelsched, wdeltask,

wrm, wrmnode

wdel

� 1 �� 189

wdelep

������ �����.

��

wdelep [-d] [-f] ep_name ...

��

wdelep �� ep_name�� ���� ������ Tivoli �������� ���

��. -d �� ���� ����� �� ��� ������� ���� lcfd �

� �����.

region� ��� ����� ��� region ��� ��� ������ ��� � �

���. ��� ��� �� �� rgion���� ������ ����� wunsub

�� ���� �� �� region� � ���� ������ ������ ��

�� ���. � ���� ����� ������ �� ��� �� �

region�� wdelep �� ���� ������ ������.

�: ������ ���� ���� ���� ����� wlssub �� �����

�.

��

-d ����� ����� lcf.dat �� ��� ����� ���(Windows

�� ����� lcfd.exe� UNIX �� ����� lcfd�)� �����.

-f �� ���� ������ ��� � �����.

ep_name...

��� ����� � �����. �� ������ ��� ��� �

� ���� ������.

��

������ policy region�� senior �� super

��

�� ����� ����� ruby� �����.

wdelep ruby

�� ��

wep, wlssub, wunsub

190 Tivoli Management Framework: ���

wdelgate

����� ������ �����.

��

wdelgate gateway_name

��

wdelgate �� gateway_name�� ��� ����� ������ �����.

������ ��� �� wchknode �� ���� ��� ������ �� �

�� ������.

��

gateway_name

��� ����� � �����.

��

senior

��

�� ����� ����� gems� �����.

wdelgate gems

�� ��

wcrtgate

� 1 �� 191

wdeljob

��� ������ �� �����.

��

wdeljob job_name lib_name

��

wdeljob �� ��� ������ �� �����.

��

job_name

��� �� � �����.

lib_name

��� �� ��� ���� � �����.

��

admin, super, senior

��

�� ����� �� date_job ��� ���� my_tasks�� �����.

wdeljob date_job my_tasks

�� ��

wcrtjob, wdeltask

192 Tivoli Management Framework: ���

wdelpol

�� policy ��� �����.

��

wdelpol [-d | -v] class name

��

wdelpol �� ��� ��� ��� � ��� policy �� �� �� policy

��� �� ��� �����.

��

-d ��� policy �� ��� �����. -v� ���� � ���� �

��� ������.

-v ��� policy ��� �� ��� �����.

class policy ��� ��� �� ��� ��� �� �����.

name ��� policy ��� � �����.

��

senior �� super

��

�� ����� ProfileManager� � ��� policy ��� �� ��� �

����.

wdelpol -v ProfileManager Restricted

�� ��

wchkpol, wcrtpr, wdelpr, wgetdfpol, wgetpolm, wlspol, wlspolm, wputpolm

� 1 �� 193

wdelpr

policy region �����.

��

wdelpr region

��

wdelpr �� region ��� ��� policy region �����.

��

region ��� policy region �����. policy region ���� ���.

��

��� policy region�� senior ��

��

�� ����� �� DefaultRegion policy region �����.

v wdelpr /Regions/DefaultRegion

v wdelpr @PolicyRegion:DefaultRegion

v wdelpr @DefaultRegion

�� ��

wcrtpr

194 Tivoli Management Framework: ���

wdelrealm

��� HTTP 1.0 �� ��� �����. ��� ��� ���� �� HTTP �

�� �� ���.

��

wdelrealm -d RealmDir

��

wdelrealm �� ��� �� ��� HTTP �� � ���� HTTP �� �

��� �����. ��� ��� ���� �� HTTP � �� �� ���.

��

-d RealmDir

CGI(�� ����� ����) �� ���� ���� �� ����

�����.

��

senior, super

��

�� ����� �� �� /cgi-bin/MyDir HTTP �� �� �� ���� �

����.

wdelrealm -d /cgi-bin/MyDir

�� ��

wcrtpr, wlsrealms, wstarthttpd, wstophttpd

� 1 �� 195

wdelsched

������ �� �����.

��

wdelsched [-b ‘mm/dd/yyyy hh:mm’] [-a ‘mm/dd/yyyy hh:mm’]

wdelsched [-s id [-s id]...]

��

wdelsched �� �� ������ �����. ��� ���� ��� � �

�� ��� �����. -a � -b �� �� �� ��� ���� �� ����

� �����. -s �� ���� ID �� �� �����.

��

-a ‘mm/dd/yyyy hh:mm’

� �� ��� ����� ���� �� �� �����.

-b ‘mm/dd/yyyy hh:mm’

� �� ��� ����� �� �����.

-s id... �� ID� �����.

��

super, senior, admin

��

1. �� ����� 1998� 5! 6� �� 1:00 �� � 1998� 5! 8� �� 1:00

��� ����� ���� �� � �� �����.

wdelsched -b ’05/06/1998 01:00’ -a ’05/08/1998 13:00’

2. �� ����� �� ID 876� 934� �����.

wdelsched -s 876 -s 934

�� ��

wedsched, wenblsched, wgetsched, wschedjob, wstartsched

196 Tivoli Management Framework: ���

wdeltask

��� ������ ���� �����.

��

wdeltask task_name lib_name

��

wdeltask �� ���� ��� ������ �����.

��

lib_name

���� �� ��� ���� � �����.

task_name

��� ��� � �����.

��

admin, senior, super

��

�� ����� ��� date_task� ��� ���� my_tasks�� �����.

wdeltask date_task my_tasks

�� ��

wcrttask, wdeljob

� 1 �� 197

wdepot

MDist 2 ��� ���(�� �� �����) ��� MDist 2 repeater ��

� �����.

��

wdepot repeater_name add ″id^version″ [src_host:]path_name

wdepot repeater_name delete ″id^version″ ″filter″

wdepot repeater_name describe

wdepot repeater_name image ″id^version″ [src_host:]path_name image_dir

wdepot repeater_name list [″filter″] [-l]

wdepot repeater_name purge

��

wdepot �� MDist 2 repeater ��� �����. � �� ��� ����

��, �� �� ��, �� �� �� �, �� ��� ��, ��� �� �

� � �� �� �� �� �����.

��

add ″id^version″ [src_host:]path_name

��� ����� �� ��� �� �����. �� ��� ����.

″id^version″

�� ����� ID �� �����. ��� ��� !(^) ��

� ID �� ������. ��� � �����.

"Tivoli^3.7.1"

path_name

�� ��� �� �� �� � �����. Windows �� �

��� �� �� ��� ��(�: C:\)� ��� src_host ��

�� ���.

src_host

�� ��� �� ��� � �����. ���� ���, � �

��� �� ����.

delete ″id^version″ ″filter″

repeater ��� �� ��� � �� ��(��� ���) �����.

″id^version″ �� ����� ID � �� �����. ���� ��,

198 Tivoli Management Framework: ���

wdepot delete �� ����� �� �������. filter �� �

(*) � ���� ��� �����.

describe

��, ��, �� ���, �� ���, � ��� � �� �� ��

� ��� �� � ����. � �� wmdist �� ���� �

�� � ����.

image ″id^version″ [src_host:]path_name image_dir

�� ��� CD�� � � ��� �� ���� �����. �� ��

� ����.

″id^version″

�� ����� ID �� �����. ��� ��� !(^) ��

� ID �� ������. ��� � �����.

"Tivoli^3.7.1"

src_host

�� ��� �� ��� � �����. ���� ���, � �

��� �� ����.

path_name

�� ��� �� �� �� � �����. Windows �� �

��� �� �� ��� ��(�: C:\)� ��� src_host ��

�� ���.

image_dir

���� ��� ��� ���� �� ��� �����.

list [″filter″] [-l]

��� � �� �����. � �� ���� ����� ����

�� ��� � ��� � �� � �� ����� ���� �����

�. �� �� �� �� ��� �� ����� ���� �� ���

� ���� � �� �� ��� �� ����. �� ��� ���

�.

″filter″

��� �� �����. ��� ���� � ��, wdepot list �

� ��� � �� �����. filter �� �(*) �

���� ��� �����.

-l ��� ��� � ��� �� � ��� �����. ��� ��

�, list ��� ��� ��(ID, ��, ��, ��� ��� � �� �

� ��)� �����.

purge �� �� ��� ��� ��� � �� �����. ��� ���

wdepot

� 1 �� 199

� �� ����� �� �������. repeater� �� �� �� ��

��� ����� wmdist �� ������.

repeater_name

repeater� ��, �� ID �� �� ��� �����.

��

add, delete � image purge ���� admin �� �� ��� ����. describe

� list ���� � Tivoli �� �� ��� ����.

��

1. �� ����� repeater banshee� ��� ID Tivoli �� 3.7.1 �� �

� �����. �� ���� seesaw� �� � /data���.

wdepot banshee add "Tivoli^3.7.1" seesaw:/data

2. �� ����� repeater banshee� ��� �� � �� �����.

wdepot banshee list

3. �� ����� ��� banshee repeater� ��� ver1� program_a_install �

� ��� �� ��� ��� �����.

wdepot banshee list "program_a_install^ver1" -l

4. �� ����� repeater banshee� ���� �� T� ���� � �� �

�� �� �����.

wdepot banshee list "T*"

5. �� ����� repeater banshee� ��� �� ��� ��� �����.

wdepot banshee list -l

��� ��� � � ����.

Entry #1:Id: program_a_installVersion: ver1Bytes received: 6755840(100%)Location: /net/futura/programs/proram_a.tar.gzCreation time: 2000/04/04 14:11:31Last modification time: 2000/04/04 14:11:31Receive time: 2000/04/04 14:11:31Last access time: 2000/04/04 14:11:31Update time: 2000/04/04 14:11:31Access count: 0Modification count: 1Reference count: 1Storage status: PermanentEntry #2:Id: program_a_dataVersion: ver1Bytes received: 13511680(100%)Location: /data/program_a_data.tar.gz

wdepot

200 Tivoli Management Framework: ���

Creation time: 2000/04/18 14:08:46Last modification time: 2000/04/18 14:08:46Receive time: 2000/04/18 14:08:46Last access time: 2000/04/18 14:08:46Update time: 2000/04/18 14:08:46Access count: 0Modification count: 1Reference count: 0Storage status: Permanentroot@reality>

-l �� ���� ��� ID, ��, ��, ��� ��� � �� �� ���

��� ������.

6. �� ����� repeater banshee� ���� �� T� ���� �� ��

���.

wdepot banshee delete "T*"

7. �� ����� repeater banshee� ��� �� ����.

wdepot banshee describe

��� ��� � � ����.

Depot Location = /usr/local/Tivoli/rpt_dir/depot/Depot Size = 512000 (KB)Temporary Storage = 0 (KB)Permanent Storage = 0 (KB)Total Storage = 0 (KB)Free Space = 512000 (KB)

8. �� ����� antivirus ��� ���� banshee repeater� ��� � �

��� �� ��� seesaw� C:/data ���� �����.

wdepot banshee image "Tivoli^3.7.1" seesaw:C:/temp/antivirus C:/data

�� ��

wmdist

wdepot

� 1 �� 201

wdepset

���� ��� �� �����.

��

wdepset -c dependency_label [-C class] {-a depset nested_dependency_set} | -a

tag path [+p prefix_path [+a]] [+x] ...

wdepset -e dependency_set {-r tag path} | {-r depset nested_dependency_set} |

{-a depset nested_dependency_set} | -a tag path [+p prefix_path [+a]] [+x]}...

wdepset -d dependency_set

wdepset -v dependency_set

wdepset -r dependency_set

��

wdepset �� ���� ��� �� �����. �� �� � ��, �

�, , �� �� �� � ����.

wdepset -c �� ���� �� ��� �� wchdep �� ���� ��

��� ��� �� ������.

�� ��� ��� ��� ��� �� ���� ��(�: bin, lib ��

$INTERP)� ������.

wdepset �� �� �� ������ afterscript� ������� .ist ���

����.

��

-a �� �� �� �����.

+a �� � ���� �� ��� prefix_path� ����� �����.

�: � �� +p ��� �� ����� �����.

-c �� � �����.

-C DependencyMgr ��� � �� ��� ��� �

-d �� � �����.

-e �� � ���.

+p ����� �� �� �� ������� � �� ��� � �� �

����.

202 Tivoli Management Framework: ���

-r �� ��� �� � �� �� �����.

-v �� � ���.

+x ��� �� � �� ���� ���� �� ������ �� �

��� ���� � �����.

dependency_label

��� �� ��� ��� ��. ��� @DependencyMgr: ��

�� ����.

dependency_set

�� �� �. @DependencyMgr:label ��� ���� ��

ID(OID)� ��� � ����.

nested_dependency_set

��� �� �� �. @DependencyMgr:label ��� ���� �

� ID(OID)� ��� � ����.

path ��� ��� ����. � �� �����. �� ��(/)� ����

�. ������� �� ��� ���� ��� �����. �����

�� �� ��� ���� �� prefix_path� �����. ��� �

�(/)� ���� ��� ������� ���(\)� �����.

prefix_path

$LCF_CACHEDIR �� �� ������ �� �� ���� ��

� ������ ���� �����. �� out-of-cache dependencies

� �����. prefix_path� �� �� �� ��� � � ����. �� �

�� ��, $LCF_DATDIR� ��� ����.

��� ��(/)� ���� ��� ������� ���(\)� ���

��.

+a ��� ���� ��� $BINDIR/../lcf_bundle.40� ��� �����

��� prefix_path� ���� ����� ��� �����.

prefix_path� � ���� �� ��� �� � out-of-cache�

���� �� �� � � ��� �� ����.

tag �� ��� � �� �� �����.

bin ������ $BINDIR/../lcf_bundle.40/bin/$INTERP ���� �

� 2� ������ �� �����. ��� �� ��� ��

���� ����� ��� �� ��� �� ����. �� bin

�� ��� ��� wdepset ��� ��� ���� ����. �

�� �� � ��� �����.

depset �� �� �� ����. � �� � ��� � �

���.

wdepset

� 1 �� 203

lib ������ $BINDIR/../lcf_bundle.40/lib/$INTERP ���� �

� �� ����� �� �����. ��� �� �� ��

���� ��� ������ ����� ��� �� ��� �

� ����. �� lib� ��� ��� wdepset ��� ��

� ���� ����.

� ��� �� ���� ���� ��, wdepset ��� �

��� �� ���. ����� ������ ����� �

��� ��� �����.

������� �� ����� ���� �� ����� ���

�� ���� �� ����� ���� � ��� ����. lib

��� �� �����. �� ����� ���� ����� ��

� �� ����� ������ ���� � ����. ���

��� ����� �� �� �� �� �����.

$INTERP

� �� � ����� ���� �� ������ ��� �

������. �� $INTERP� ��� ��� wdepset ��� �

� ��� ������.

generic

����� ��� ����, �� �� � ������ ����

���. �� ��� �����. ���� ��� �� ��� ��

���.

��

admin, senior, super

��

1. �� ����� �� �� hello_dependency� ��� hello_library�� �

���� �����. �� �� ������ $BINDIR/../lcf_bundle.40/

lib/$INTERP/hello_library$SL�� ������ $LCF_CACHEDIR/lib/

$INTERP/hello_library$SL� �������.

wdepset -c hello_dependency -a lib hello_library

2. �� ����� �� �� my_label_dependency� ��� sys:tivoli�

out-of-cache ��� �����.

wdepset -c my_label_dependency -a nw4 sentry/nw4/sentry.nlm +p sys:/tivoli

�� nw4 ����� ��� �� ��� sys:tivolisentryinterp� ����.

wdepset

204 Tivoli Management Framework: ���

�� ��

wchdep

wdepset

� 1 �� 205

wdisconn

� Tivoli Management Region� �� ����.

��

wdisconn [-s] region_name

wdisconn [-s] -r region

��

wdisconn �� � Tivoli Management Region� �� ����. �� ��

�� region� �� �� ����� ��� �� �� ��� ��� ���.

wdisconn Tivoli Management Region ��� �� ���. ��� �

��� ��� ������ ��� ����� �� Tivoli Management

Region� �� � � wchkdb -ux� ������.

��

-r region

�� Tivoli Management Region� �� �����. � �� region �

��� � �� �� ����.

-s �� ��� ��� ��� �����. �� Tivoli Management Region

��� ���� ����. ��� ��� ��� �� � �� ��� ��

��� ��� �� �� � �� region �� ��� �� � ��

��� � ����. � �� �� �� �� �� � �� �� ��

����. �� �� ��� ��� ���� Tivoli Management Region

�� ��� � ����.

region_name

�� Tivoli Management Region� � �����. region� � �

�� �� � ��� �� policy region� �� ����.

��

super

��

1. �� ����� � Tivoli Management Region�� region � 4000447345

� �� ����.

wdisconn -r 4000447345

2. �� ����� � region�� Tivoli Management Region writers-region�

�� ����. writers-region region� ��� �� ��.

206 Tivoli Management Framework: ���

wdisconn -s writers-region

�� ��

wchkdb, wconnect, wlsconn, wupdate

wdisconn

� 1 �� 207

wdiskspace

��� �� ��� �� ���(�� ���)�� ��� � �� ����� ��

�����.

��

wdiskspace host_name directory

��

wdiskspace �� ��� �� ��� �� ���(�� ���)� �� �� �

� ��� �����.

��

directory

�� �� �� ��� ���� �����. ���� �� ��� �

��� ���.

host_name

�� �� �� ��� �� ��� �����.

��

user, admin, senior, super

��

�� ����� �� �� bald� /tmp�� �� ��� �� �� �����.

wdiskspace bald /tmp11747

�� ��

wdate, whostid, wifconfig, winterp, wmannode, wmemsize, wping, wtimezone,

wuname, wxterm

208 Tivoli Management Framework: ���

wdistrib

�� ��� ���� �� �����.

��

wdistrib [-l maintain | over_all | over_opts | over_all_no_merge] [-m] [-r] name

[subscriber...]

��

wdistrib �� �� ��� ���� �� ���� ���� ����� ���

��. �� Tivoli �������� ��� ������ � �� �� ����

�. name �� ��� ���� �� � ����� ��� ���� ���� �

����. ��� ���� subscriber� �����. ���� ���� ���, wdistrib

� ���� �����.

-m ��� ���� ���� � �� ����� �����. -m� ���� �

��, ���� �� �� ������ �����.

-l �� �� � �����. -l� ���� ���, ��� maintain���.

��

-l maintain | over_all | over_opts | over_all_no_merge

�� � �����. maintain �� � ���� �����.

over_all �� � ���� �����. over_opts �� �� ��

� ��� �����. over_all_no_merge �� ��� ����� �

����.

-m �� ��� �����.

-r ���� ����(��) ��� ��� ���� �� �� ��� ����

�� �� �� 1 ����.

name ��� ����� � �� � ����� ���� ���� ���� �

. name ��� ��� �� ��� ����.

v @ProfileType:prof_name

v /Regions/PolicyRegionName/prof_manager_name/prof_name

subscriber...

���� �� ��� Tivoli ��� � �����. subscriber ���

��� �� ��� ����.

v @ManagedNode:node_name

v /Regions/PolicyRegionName/prof_manager_name

� 1 �� 209

��

admin, senior, super

��

1. �� ����� Development ���� ���� ��� ���� � ���

� ���� � ����� �����. � ����� �� � � ����

� �����.

wdistrib /Regions/Development

2. �� ����� Admin ��� ���� ��� pinatubo, rushmore ��

�� ��� Marketing� �����. ���� Marketing ������ ��

�� ����. � � ����� � ��� ������.

wdistrib -l over_all @UserProfile:Admin pinatubo \rushmore @ProfileManager:Marketing

3. �� ����� Admin ��� ���� �� ���� ��� Sales� ���

��. ���� Sales� ��� ���� ���� ������� �����.

wdistrib -m @UserProfile:Admin @ProfileManager:Sales

�� ��

wcrtprf, wcrtprfmgr, wgetprf, wgetsub, wlssub, wpopulate, wsub, wunsub,

wvalidate

wdistrib

210 Tivoli Management Framework: ���

wdisttask

��� ����� �� ��� ��� ��� �����.

��

wdisttask -q library_name

wdisttask -s library_name mode

wdisttask -d library_name task_name

��

wdisttask �� ��� ����� �� �� ���� ��� � ���, �

� ��� ���� � ���� ����� � � ����.

��� ���� � region� Tivoli �� rgion ��� �� ���(ALI �) �

region� � �� ��� �����(LOCAL �) �� ��� � region�

� �� ��� ��� � ����(GLOBAL �). ��� ���� � ��

���� ����� Tivoli �� ������� �� ���� GLOBAL ��

�� �� ���. �� ��� �� ��� ���� ����� �����

�� ��.

��

-d ��� ��� ��� �� ����� ���.

-q ��� ����� �� �� �����.

-s ��� ����� �� �� ����.

library_name

��� ����� �����.

mode ��� ����� ���� � ��� �� �����. �� �� �

��� � ����.

ALI ��� ���� � region� �� Tivoli Management Region

���� ���� �����.

GLOBAL

��� ���� �� ��� � region� � �� ��� �

����. �� �� ��� ���� � ��� region� �� �

�� ���� ��� �����.

� 1 �� 211

LOCAL

��� ���� �� � region� � �� ��� ����

�.

task_name

��� ��� ���� �����.

��

1. �� ����� abc�� ��� ����� �� �� �����.

wdisttask -q abcGLOBAL

2. �� ����� abc�� ��� ����� �� �� ���� ��� ��

�� � Tivoli Management Region� �� ���� �����.

wdisttask -s abc LOCAL

3. �� ����� abc ��� ����� �� rm_core_files�� ���� �

� ���� �� �����.

wdisttask -d abc rm_core_files

�� ��

wcrttask, wgettask

wdisttask

212 Tivoli Management Framework: ���

wdskspc

�� ��� �� ��� ��� �����. � �� ������� ����

���(Windows � NetWare).

��

wdskspc [-q] [-f output_file] [-s required_size] volume_label

��

wdskspc �� ��� ��� �� ��� �� ��� ��� �����. -s �

� ���� ��, �� �� �� ��� �� ���� ��� �� ���

0�� �� ��� � ��� 0� � ��� ����. -s �� ���� �

�� wdskspc �� �� ��� � �� �� ����.

wdskspc �� Windows 95 ���� �� 2GB�� ��� ����.

wdskspc �� �� ��� �� �� ���� �� ���� � ����.

��

-f output_file

� ��� ��� ��� � ��� ������.

-q -s ��� ��� �� ��� ��� ���� ��� �� �� �� ��

� �� ���� �����.

-s required_size

�� �� ��� ��� �����. required_size �� �� ����

�� � ����.

k KB

m MB

g GB

� ����� �� ��� � �� ��� ��� ����.

volume_label

��� �� �� ��� � �� �� ��� �� ��� �� ��

� ��� �����.

���

wdskspc� -s ��� �� ��� � �� � ��� �����.

0 wdskspc� ��� �� �� ��� �� ����� ���� �

����.

� 1 �� 213

0� ��

�� �� �� ��� � �� �����.

��

1. C ����� 10MB� �� �� ��� � ��� ����� �� ��

� ����.

wdskspc -s 10m C:\

2. C ����� �� ��� �� �� �� ����� �� �� � �

���.

wdskspc C:\

3. NetWare ���� SYS ��� 20MB� �� ��� �� ��� ��� ��

��� �� �� � ����.

wdskspc -s 20m SYS:

wdskspc

214 Tivoli Management Framework: ���

wdtmsg

Tivoli ���� ��� � �� ���� ����.

��

wdtmsg {-g | -s ″message″}

��

wdtmsg �� ���� Tivoli ��� ���� ��� ���� ��� � �

�� ���. ���� �� ��� ��� ���� � ���� �� �� �

��.

��

-g Tivoli ���� ��� � �� ���� �����.

-s ″ message″

Tivoli ���� ��� � �� ���� ����.

��

senior �� super

��

1. �� ����� ��� ���� ″You are entering a secured zone″��

����.:

wdtmsg -s "You are entering a secured zone"

2. �� ����� ��� ��� ���� �����.

wdtmsg -s ""

3. ����� ��� ��� ���� �����.

wdtmsg -g

� 1 �� 215

weditini

.INI ��� �� ��, �� � � �����. � �� ������� ����

���.

��

weditini [-r] -g section_name [-n variable_name] [-v value] file_name

��

weditini �� .INI ��� �� ���. � �� ���� ��� ���

�� � ���, �� �� �� �����, ��� ��� ��� � ��

��.

��

-g section_name

��� .INI ��� �� � �����. ���� �� ��� ��� �

��� ��� ���� ��� �����.

-n variable_name

��, �� �� ��� �� � �����.

-r ��� �� �� ��� �����.

-v value

-n ���� ��� ��� � ����� ��� � �����.

file_name

� ��� �� ��� �����.

���

weditini �� � ��� �����.

0 weditini� ����� .INI �� �� �����.

0� ��

weditini� .INI �� ����� �� ��� �����.

��

1. C:\WINDOWS\SYSTEM.INI ��� UserSettings ��� DefaultDirectory �

�� ��� � � C:\WORK� ���� �� �� � ����.

weditini -g UserSettings -n DefaultDirectory -v C:\WORK \ -C:\WINDOWS\SYSTEM.INI

2. C:\WINDOWS\SYSTEM.INI ���� �� UserSettings� ����� �� �

� � ����.

216 Tivoli Management Framework: ���

weditini -r -g UserSettings C:\WINDOWS\SYSTEM.INI

�� ��

wmrgini

weditini

� 1 �� 217

wedsched

�� ����� �� �� ���.

��

wedsched [-c ‘time_period’ | OFF] [ -C {daytime | nighttime | weekday |

weekend} {from to | OFF}][-D] [-d desktop... | OFF] [-f file | OFF] [-h host]

[-g group | OFF] [-m email | OFF] [-l label] [-o] [-R ‘time_period’ | ‘iterations’

| OFF] [-r ‘time_period’ | ‘iterations’ | OFF] [-t ‘mm/dd/yyyy hh:mm’] id

��

wedsched �� ���� �� ����� �� �� � � ��� ���. �

��� � ��� ID� � �� ���. � ID� wgetsched �� ���

� � � ����.

��

-c ��� ��� ��� �����. ��� �� ��� ����.

‘time_period’

��� ���� �� �� ���� �� �� ���� ���

�����. ��� � � �(��� �)� �� ���. ��

�� �, �� �� ���. �� �� ’3hour’� ����, ���

�� ���� � �� �� ���� �� �� ���� 3��

�� ��� �����.

OFF �� �� ���. �� ���� ����.

-C ��� ���� �� �� �� �����. from �� �� �� ��

�� ��� � � ����. to �� �� �� �� �� ��� � � �

���. �� 24�� ���� � �� ���(�: �� 9�� �� 9:00

��, �� 2�� �� 14:00��). �� �� �� 0� �� 6�

����� � ���. ��� �� ��� ����.

daytime from to | OFF

��� � ��� ����� �����. OFF �� ���� �

��� �����.

nighttime from to | OFF

��� ��� ����� �����. OFF �� ���� � ��

� �����.

weekday from to | OFF

��� ���� ����� �����. OFF �� ���� � �

�� �����.

218 Tivoli Management Framework: ���

weekend from to | OFF

��� ���� ����� �����. OFF �� ���� � �

�� �����.

-d ��� �� ��� ��� ��� � �� �� ��� ���� ���

��� �����. ��� �� ��� ����.

desktop...

��� �� ��� ��� � �� �� ��� �� ��� �

����. �� �� ��� ��� � ����.

OFF ��� �� ��� ��� � �� �� ��� ��� ��� �

����.

-D �� �� �������. �� ����� �� ��� �� ��� �

�� ���� ����.

-f ��� �� ��� ��� � �� ��� ��� ����� �����. �

�� �� ��� ����.

file ��� �� ��� ��� � �� ��� ���� �� ����

�. ��� ���� -h �� ���� ��� ���� ���� �

� ���.

OFF �� ��� ��� ���� ��� �����.

-g ��� �� ��� ��� � �� ��� Tivoli �� ���� ���� �

����. ��� �� ��� ����.

group ��� �� ��� ��� � �� ��� �� �� �� ���

��. �� �� �� �� ��� � ����.

OFF �� ��� �� ���� ���� ��� �����.

-h host

�� �� ��� ���� ���� �����. -f ��� �� �� �

��.

-l label

��� ����� �� � �����.

-m ��� �� ��� ��� � �� ��� �� � ��� ���� ���

��. ��� �� ��� ����.

email ��� �� ��� ��� � �� ��� �� �� � ��� �

����. �� �� �� � ��� ��� � ����.

OFF �� ��� �� � ��� ���� ��� �����.

-o -t ��� ��� ��� ��� �����. � ���� �����.

wedsched

� 1 �� 219

-r �� ��� �����. iterations ��� ���� ��, �� ��� ��

�� �����. �� �� � ��� �� ���.

‘time_period’

��� ��� �� ������ �����. ��� � � �(��

� �)� �� ���. �� �� �, ��, , �, � �� �

���. �� ��, ’3hour’� ���� 3���� ��� �����.

‘iterations’

��� ���� ��� �����. ��� ��, �� � � ��

� �� ���. �� �� �, ��, , �, � �� ����.

�� ��, ’3hour 6’ ���� ��� 6 ��� ��� 3���

� �����.

OFF �� �� ���. �� ���� ����.

-R ��� ��� �����. iterations ��� ���� ��, �� ��� �

��� ������. �� �� � ��� �� ���.

‘iterations’

��� ����� ��� �����. ���� ��, �� � � �

�� �� ���. �� �� �, �� �� ���. �� �

�, ’3hour’� ���� ��� 6 ���� ��� 3���� ��

����.

‘time_period’

��� ��� �� ������� �����. ��� � � �(�

�� �)� �� ���. �� �� �, �� �� ���. �

� ��, ’3hour’� ���� ��� ����� ��� ��� 3�

��� ������.

OFF ��� �� ���. �� ����� ���� � �� ���

�� ����.

-t ‘mm/dd/yyyy hh:mm’

��� �� ����� ���� �� �� �����. �� �� �

�� �� � � � ����. �� �� ��� � � �� ����.

�� �� ��� � �� ��� �� ��� ��� ��� �����. �

� �� ��� � �� �� ��� ��� �� ��� �����. ��

24�� ���� � �� ���(�: �� 9�� �� 9:00��, �� 2

�� �� 14:00��).

id �� ID� �����.

��

super, senior, admin

wedsched

220 Tivoli Management Framework: ���

��

1. �� ����� �� 782� �� �� 1998� 11! 30� �� 6:00�� ��

���. (wgetsched �� ���� �� ID� �����.)

wedsched -t ’18:00 11/30/1998’ 782

2. �� ����� �� 35� ���. ��� �� �� � �� � �

� � ������ ����. �� ��� ��� ����� ��� Tivoli

� �� ���� �� ��.

wedsched -c OFF -R ’1 day’ -f OFF \-g ’Tivoli Diagnostics’ 35

3. �� ����� �� 728 �� !��� ���� ����� ���.

wedsched -r ’1 day’ -C ’weekday 1 5’ 728

4. �� ����� �� 28� �� ��(��� ��)�� ��(!��� �

���)� �����.

wedsched -C ’weekend OFF’ -C ’weekdays 1 5’ 28

�� ��

wdelsched, wenblsched, wgetsched, wschedjob, wstartsched

wedsched

� 1 �� 221

wenblsched

��� ��� ����� ���� ���� ��� ����.

��

wenblsched [-b ‘mm/dd/yyyy hh:mm’] [-a ’mm/dd/yyyy hh:mm’] [-d]

wenblsched [-s id [-s id]...] [-d]

��

wenblsched �� ���� ��� ��� ����� ���� ���� ���

�� � ��� ����. ��� �� ���� ��� ���� ����. �

� ��� ���� ��� � ��� �� �� �� �� ���� ����.

-a � -b �� �� �� ��� ���� �� ���� � �����. -s ��

���� ID �� �� �����. -d �� ��� ��� ���� ���

��� � �����.

��

-a ‘mm/dd/yyyy hh:mm’

� �� ��� ����� ���� �� �� �����.

-b ‘mm/dd/yyyy hh:mm’

� �� ��� ����� ���� �� �� �����.

-d ��� �� ����� �����.

-s id... �� ID� �����. � ��� ID� ��� � ����.

��

admin, senior, super

��

1. �� ����� 1998� 5! 6� �� 1:00 �� � 1998� 5! 8� �� 1:00

��� ����� ���� �� � �� �� ���� ���.

wenblsched -b ’05/06/1998 01:00’ -a ’05/08/1998 13:00’

2. �� ����� �� ID 529 734� �� �������.

wenblsched -s 529 -s 734 -d

�� ��

wdelsched, wedsched, wgetsched, wschedjob, wstartsched

222 Tivoli Management Framework: ���

wep

����� ��� ��� ����� ��� �� ��� �����.

��

wep

wep ep_label

wep ep_label get {suboptions}

wep help [option]

wep ls [-d delimiter][-g gw_label][-i suboptions]

wep ep_label migrate [-f] gw_label

wep migrate_to_pref {-a | -d|-n} [-f] [-g gw_label]

wep ep_label set {suboptions}

wep set gateway {-e ep_label | -g gw_label}

wep set interfaces {-e ep_label | -g gw_label} gw_label+port [:gw_label+port]...

wep ep_label set_config suboption

wep ep_label set_crypt_mode {DES|NONE}

wep ep_label set_label [-s] new_label

wep ep_label status

wep sync_gateways

wep ep_label upgrade {disable|enable}

�� ��

wep boot_method add tag prototype_object method_name ep_oid...

wep boot_method list tag ep_oid...

wep boot_method remove tag ep_oid...

wep boot_method test tag ep_oid...

wep del ep_oid gw_label...

� 1 �� 223

wep view ep_oid gw_label...

�: � �� 229 ��� �� ���� ��� ����.

��

wep �� ����� ���� ������ ����� ��� ��� �����

��� �� ��� �����. � �� ���� Tivoli Management Region(Tivoli

region) � ��� ������ ������ ��� ����� ��� ���

��� ������ � ������� �� ������ �������� Tivoli

region�� �� ����� ���� ��� � ����.

The wep ep_label get �� ��� ������ �� ��� wep ls -g

gw_label �� ��� ����� ������ �� ��� �� wep ls ��

�� ������ � ������ �� ��� ���.

�: ������ OID(�� ID)� ��� �� 231 ��� ������ �� �

� ��(+)� ������.

��

get {suboption,...}

����� ep_label� �� ����� ���� �� ��� �����. �

��� �� ���� �� ��� ��� � ����.

�: � � �� � ��� ��� �� ���. �� ��, last_l

last_login_time� ��� ��� � ��� last� ��� � ����.

��� ��� ����.

address

���� ��� ���.

all ��� ������ �� � � ���.

gateway

��� ������ ���.

httpd HTTP ��� ���. HTTP ��� � ���� ���� ��

��� ��� ���� � �����.

id ��� ������ �� �� �� �� ID� ���.

interp ��� ������� �� �� �� ��� ����� ��

���.

label ����� �� ���.

wep

224 Tivoli Management Framework: ���

last_login_time

������ �� ��� �� ���.

last_method_time

������ �� �� ��� �� �� ���.

last_migration_time

������ ������ �� �� ���.

login_mode

Windows �� ��� ��, Mobile Computing �� ���� �

�� ���� � ������ �� ���� ��� ����. �

����� �� �� � ��� ������ �� ���� �

��. ������ ��� ��� � ��� �� ���� �

��. � �� ���� ����� �� ��� � ��� ��

� ����.

�: ����� �� ����� ���� ������ �� ��

� � �� ��� wep ep_label set login_mode �� ��

����.

netload

�� netload �� ����.

object ��� ������ �� ID� ����.

policy ������ �� policy region ����. ������ policy

region� ���� � ��, � ��� ��� OBJECT_NIL� �

��.

preferred_gateway

������ �� �� ������ �����. ������ ��

�� ������ �� ��, � ��� ��� OBJECT_NIL���.

protocol

������ ���� ���� ��� ����.

upgrade_mode

����� ������ ��� � ��� �� ���� ���

�.

version

������ �� �� ����.

help [option]

wep ��� ��� �� ����. wep �� ��� ��(�: wep help

get), ��� ��� �� ���� �����.

wep

� 1 �� 225

ls [-d delimiter][-g gw_label][-i suboption,...]

����� � ��� ������ �� ��� �����. �� ��� �

���.

-d delimiter

-i ���� ���� ��� � ��� ����� �����. �

� ����� ����.

�: HTTP �� ���� ���� ���, �� ����� �

��� �� ����� ��� � ����.

-g gw_label

gw_label � ������ ��� ������ �� ��� ��

��.

-i {suboption,...}

����� � ��� ������ �� ����� ���� �� �

�� �����. wep get ��� � ��� ��� ����

��. � ��� �� ���� �� ��� ��� � ��

��. ��� � � �� ��� 224� wep get �� ���

���.

�: � � �� � ��� ��� �� ���. �� ��,

last_l last_login_time� ��� ��� � ��� last� ��

� � ����.

migrate [-f] gw_label

��� ������� gw_label� ��� ������ ������ ���

�����. ����� �� � ����. ������ �� � ��

��� ����� � ��� ������ � �����. -f �� �

��� ������ � ������ �� ����� ������ �

����.

migrate_to_pref {-a | -d|-n} [-f] [-g gw_label]

������ �� ��� �� ������ �� ������ �����

���. ��� ����� wep migrate ��� �����. �����

��� � ����. ����� ��� ����� ���� �����.

-a � ������ �� ������ ��������.

-d �� ������ �� ���� � ����� �� �� �

�������� ����.

-f �� ������ � ��� ���� ����� � ���

��.

wep

226 Tivoli Management Framework: ���

-g gw_label

����� gw_label� ��� ������ �����.

-n � ��� ������ �� ������ ��������.

set {suboptions...}

����� ep_label� �� �� ��� ����.

�: � � �� � ��� ��� �� ���. �� ��, last_l

last_login_time� ��� ��� � ��� last� ��� � ����.

��� ��� ����.

address ep_address

������ IP ��� �����.

httpd [user:password]

��� ������ �� HTTP ��� ����. HTTP ��� �

���� ���� ����� ��� ���� � �����.

sync_gateways �� ���� ��� ��� � �����, ��

��� � ����� ��� �� ���� �� ���.

login_mode -m {mobile|desktop} -s {variable|constant}

Mobile Computing ��� �� Windows ������ ����

ep_label� ��� ������ � �� ����. -m mobile

�� ���� ������ ��� ������. � �� ��

�� ��� ������ ���� �� � MDist 2 ��� �

�� ��� � ����. �������� �� �� �� �

��� ��� -m desktop �� ������.

�: login_mode � � ���� ����� �����

sync_gateways �� ������.

���� ����� ��� � �� ���� ����� -s �

� ������. ������ ��� �� ��� � �� ��

� -s variable �� ������. -s constant �� ���� �

�, ��� � ����� �����. Mobile Computing ��� �

� ��� Tivoli Management Framework ��� ���� ���

���.

preferred_gateway {gw_label|nil}

�� ����� ��� ��� ������ ����. nil ��

�� �� ������ �����.

upgrade_mode {enable|disable}

������ ���� ����� ����.

wep

� 1 �� 227

set_config suboption

������ ��� ��� � �� Tivoli region� �� �� ����

� ����� �� �� � ����. � wep set_config ���� �

�� �� � ��� ��� � ����.

allow_proxy_upcalls={true|false}

����� ��� ����� ��� � ��� ������� �

�� �� ��� ������ �����. true� ��� ����

� ������ �� ��� ���� �����. ������

��� �� �� ��� � ���� �� ������ ��� �

� ������ �� �� � ���. false� ��� ��

��� ��� ������ �� � �� �����. � ��

last.cfg ���� allow_proxy_upcalls� � �����. ���

false���.

depot_dir=path

��� ������� �� �� ��� ��� ��� ���

���� �����. � �� last.cfg ���� depot_dir� �

�����. �� ���� $LCF_DATDIR/depot���. �� �

�� ����, �� ���� $LCF_DATDIR� ��� ���

�.

log_threshold=integer

��� ������ �� �� ��� ��� ���� � ��

���. � �� last.cfg ���� log_threshold� � ����

�. ��� ���� ��� 1≥integer≤4��, ��� 1 � �

�� ���� ��� 4� � � �� ���� ����

�. �� �� ��� 1���.

set_crypt_mode {NONE|DES}

������ ����� ��� � 56�� DES ���� ������ �

����. DES� �� �, �� ������. NONE�� �� �,

�� ����� ����.

�: set_crypt_mode � � ���� ����� �����

sync_gateways �� ������.

set gateway {-e ep_label|-g gw_label}

�� ��� ������ ������ � ��. ep_label� ��� ����

�� ����� -e �� ������. gw_label� ���� ������

��� � ������ ����� -g �� ������.

wep

228 Tivoli Management Framework: ���

set interfaces {-e ep_label | -g gw_label} gw_hostname+port gw_IP_address+port

[:gw_hostname+port|:gw_IP_address+port]...

������ ���� � �� �� ��� ������ �� ��� �

���. � ���� ��� ������ ���� ���� ������ �

� ����� ��� ���. ep_label� ��� ������ � � ��

����� -e �� ������. gw_label� ��� ������ ��

� � ������ � � �� ����� -g �� ������. �

��� ����� ��� ��� � ����. �� �� ��� ��� �

� ���.

set_label [-s] new_label

������ �� ��(ep_label) new_label� ��� ��� ��� �

����. ������ ��� ������ ��� ��� �����

-s �� ������. � �� ������ ����.

status ��� ������ ��� �����. ������ ��� “��” �� �

�� ��� � �� �� “������ ��� � ����.” � ��� �

����. � �� ������ ����.

sync_gateways

Tivoli region �� ����� ���, ����� � ������ � �

� ����� ���� �����. ����� �� policy region� �

� HTTP ��� ����� ��� � ����� �� ���� ���

�� � ��� ����� ��� ��, ��� ����� � �� ��

���. � �� � � �� ����� ���� ���� ����

�� ���� �����.

�: ������ policy region �� ����� wmv �� ������.

upgrade {disable | enable}

������ ���� ����� �����.

ep_label

�� wep ���� ���� ������ �����. ��� �� wep

ep_label ������ �� � ��� ��� ���� ����.

�� ��

wep ��� �� ��� ��� ���� � ��, �� wep �� � ��� �

��� ���� �� � ���� ������.

del ep_oid gw_label

epmgr.bdb ���� ������ �����. � ������ � �� �

� .bdb ��� �� ���, ������ ��� ������ �� �

��. wep ls �� ���� gw_label � � ����. wep del ��

wep

� 1 �� 229

������ �� � ��� ��� ����� ����. ������

�� � ��� ����� 190 ���� �wdelep� �� ������.

view ep_oid gw_label

����� ��� $DBDIR/epmgr.bdb ���� �� .bdb ��� �

�� ����� ��� ����. wep ep_label ���� ��, wep view

�� ����� ���� �� �� ���� ����. wep ls ��

���� gw_label � � ����.

�� �� ������� ����� ������ ���(ADE[Application

Development Environment]� ��)� � ��� �� ���� ���� � ��

���. ������ ��� � �� ������ ���� ���� � �

� ���� ����� � �� ������. � ���� ������ ����

�� ���� ��� �����.

boot_method add tag prototype_object method_name ep_oid...

������ ��� �� ���� �����. ���,

tag ���� ��� � �����.

prototype_object

���� ���� �� OID� �����.

method_name

��� � �����.

ep_oid...

���� ��� �� ����� � ��� OID� �����. OID

� ���� ������.

boot_method list tag ep_oid

������ ��� �� ���� ��� � � �� �� �� �

����.

boot_method remove tag ep_oid...

������� ��� �� ���� �����.

boot_method test tag ep_oid

������� ��� �� ���� �����.

��

v wep ep_label, wep ep_label get, wep ep_label status �� wep ls �� �

��� ����� ��� � � user �� admin

v wep set gateway -e �� ���� ������ �� ������ �� �,

senior �� super

v wep help �� ����� user, admin, senior �� super

wep

230 Tivoli Management Framework: ���

v wep ep_label set httpd �� ���� HTTP ��� �� � ������

policy region�� senior �� super

v wep ep_label get httpd �� ���� HTTP ��� � � ������ policy

region� admin

v wep migrate, wep set interfaces, wep set gateway -g �� wep sync_gateways

�� ���� ������ �������� � ������ ������

���� ����� ���� ����� Tivoli region�� senior �� super

��

1. �� ����� jadams-gateway� ��� ������ �����.

wep ls -g jadams-gateway

1122334455.1.512 jadams-gateway1122334455.10.500+ cookU1122334455.11.500+ cookA1122334455.12.500+ jadams1122334455.13.500+ jadamsM1122334455.15.500+ jadamsG

2. �� ����� ����� cookG� �� ����� ��� ��� � ��

� �����.

wep cookG

object 1196743040.13.517+#TMF_Endpoint::Endpoint#label ep7612

version 41000id 001454ED4C00gateway 1196743040.1.578pref_gateway OBJECT_NIL

netload OBJECT_NILinterp aix4-r1

login_mode desktop, constantprotocol TCPIPaddress garlic.dev.tivoli.com+7612+146.84.42.86

policy OBJECT_NILhttpd tivoli:@+`t<XIr

alias OBJECT_NILcrypt_mode NONE

upgrade_mode enablelast_login_time 2000/11/17-11:11:08last_migration_time 2000/11/17-11:11:06last_method_time 2000/11/17-11:11:09

3. �� ����� ����� cookG� ���� ��� �����.

wep cookG get lab,address

cookG,146.84.26.26+9494

4. �� ����� ����� cookG� � ���� ��� HTTP ��� ��

���.

wep

� 1 �� 231

wep cookG get httpd

tivoli:WBHtK’y3

� ��� ��� ��� ����.

tivoli ��� � �����.

: �� �����.

wBHtK’y3

��� �����.

5. �� ����� �� �� ����� 1802218143.13.500� test18 ��

���� ��� � �����.

wep boot_method list test18 1802218143.13.500+

Boot Method(s) for Endpoint 1802218143.13.500+TagPrototype ObjectMethod Nametest181802218143.13.500admin

6. �� ����� ����� msistrunk��� �� ��� �� ���.

wep msistrunk get login_mode

desktop, constant

7. �� ��� msistrunk ������� �� ������ ����.

wep msistrunk set preferred_gateway nil

�� ��

wdelep, wmdist, wmv

wep

232 Tivoli Management Framework: ���

wepmgr

����� ���� �� �� �� �����.

��

wepmgr [fsck | get | help | ping | restart | set attribute...| start | stop | test_label

ep_label | update]

��

wepmgr �� ����� ���� �� �� �� �����. � �� ��

�� ����� ���� ��, �� � �� ��� � ����. �� � ��

Tivoli �� ������� ����� ��� � ��� �����

��� �����.

��

fsck ����� ���� ����� ������ Tivoli � ���� ���

�� ��� ���� �� ���.

get ����� ��� �� �� �� �����.

help [attribute]

wepmgr ��� �� ��� ���� ��� �� �� ��� ���

�.

ping ����� ���� ��� ��� �����.

restart

����� ���� �� �����.

set attribute...

Tivoli �� ������� ����� ��� �� � ���

�. ��� �� �� ����� get �� ������. � �� �

���� update �� ������. �� ��� ����.

automigrate {off | on | nonmobile}

������ �� ��� � ������ �� ������ ��

��� ��� ����. � �� ��� off��, �� �

����� �� ������ ������� �� �����. �

����� �������� automigrate� on �� nonmobile�

�����. ������ �� ���� � ������ ��

������ �� � ������ ������ �������

�.

� 1 �� 233

�: �� ������ �� nonmobile� �� �� ��� �

������ �����. � ������� ���� �

� ������ ��, wep ep_label set preferred_gateway �

� ���� �� ������ �����.

chk_cntl_chars

1� ��� �� ����� ���� �� ��� ��� ��

��. ���� � ����� ��� allow_install_policy ��

��� ��� ���. � �� �� �� ��� ��� � �

���. ��� 0���. ����� ����� ���� �� �

�� ���� ����. ��� ��� allow_install_Policy� ���

���.

epmgr_flags

1� ��� ����� ��� �� �����. ����

�� Tivoli Management Region� ����� � �� wep ls �

� � � ��� �� ��������. ������ ���

��� ��, ���� �� �� �� ������ ���� � �

�� � ����. ������ �� ��� �� � �� � ��

���� �� ��� ��� �� ���� � ����� �

��� � �� �����. ��� 0���.

invalid_chars ‘regular_expr’

�� ��� �� ����� ���� ��� �� ��� ��

���. ��� � �����. ���� � ����� ���

allow_install_policy �� ��� ��� ���. � �� �� �

� ��� ��� � ����.

labelspace ‘regular_expr’

����� �� � �� ��� ����� �� �� �

�� � �� ��� ���� � �����. regular_expr �

��� ����� ��� � ��� �� ��� ��� � �

���(�: ’^[A-Za-z0-9$^_]*$’). ��� ��� ��� ���

� ��, � ������ Tivoli Management Region� ���

� ����. ��� ��� allow_install_Policy� ������.

�: allow_install_policy �� ��� ���� � �����

�� ������. � �� �� �� ��� ��� � �

���.

login_interval [value]

� �� ����� � ����� ����� ���� � ��

�� ����� ���� ���� �� �(�) �����. � �

wepmgr

234 Tivoli Management Framework: ���

� �� ������� �� �� ���� ���� ��

��. ��� 270����. � � ����� ������ ��

�� ���.

�� ���� � login_interval�� �� ���� ����. ��

��, ������ �� ��� � �� � ���� ��� ��

� ���� ����. ����� ���� �� ��� ���

Tivoli Management Framework �� �� ���� ������. �

��� ��� �� login_interval 0�� �����.

max_after

�� ��� � �� after_install_policy �� �� �� ���

��. ��� 10���.

max_iom_records

� ����� ���� �� � �� � ��� ����� �

� �� �����. wepmgr fsck ��� � � �����. ��

� 500���.

max_install

�� ��� � �� allow_install_policy �� �� �� ���

��. ��� 10���.

max_sgp

�� ��� � �� select_gateway_policy �� �� �� ��

���. ��� 10���.

start ����� ���� �����.

stop ����� ���� �����.

test_label ep_label

��� �� �� �� ��� ���� ������.

update

Tivoli �� ������� �� ����� ��� ��� ���

�� �� �� ����� ���� � �� �����.

��

senior, super

��

1. �� ����� ����� ���� �� �� ���� ���� � ��

��� ���� ping���.

wepmgr pingep_mgr is running.

wepmgr

� 1 �� 235

2. �� ����� wepmgr get� ��� ����.

wepmgr getlogging_level = 4max_install = 10max_sgp = 10max_after = 10login_interval = 0stanza_interval = 720max_iom_records = 500epmgr_flags = 0max_epmgr_rpc_threads = 250automigrate = offmigrate_max = 0chk_cntl_chars = 0labelspace = ’’invalid_chars = ’’

3. �� ����� Tivoli �� ������� ����� ��� ��� �

� ����� ��� login_interval � 0�� ����. ����� ��

���� ��� � 270� ���� ����. ����� �� ��� � �

� �� � �� ����(lcfd udp_interval=seconds) ����� � �����

���� ����� ��� ��� ����� ��� ����� ��� �

�� ���. �� �� � �� �� �� ����� ���� ����

� ����� ���� �����. ������ � � ����� � ��

����� �� ������ �� �� ���.

wepmgr set login_interval 0wepmgr update

�� ��

wep

wepmgr

236 Tivoli Management Framework: ���

wepupgd

������ �������.

��

wepupgd [-f] [-h] [-l] [-L config_options] [-p upgrade_path] [-r] [-v] [-w wait_time]

{ -a | -g gw_name | -i file | ep_name ...}

��

wepupgd �� �� ���� ����� ��� � ����� �� ���

��.

�: � �� wadminep upgrade �� �����.

��

-a Tivoli ���� � ������ �������.

-f ������ �� �� �� � �����.

-g gw_name

��� ����� ��� � ������ �������.

-h ��� ��� �� ����.

-i file ��� �� � �� ������ �� �����. ���� � �

����� ��� �� �� ���.

-l ������� ���� ��� �����.

-L config_options

�� �� ������ ���� lcfd ��� �����. ��� �� �

�� ��� lcfd �� ������. �� �� �� ����� ���

�� �� ��� �� ��, ���� �� (″)� �� ���.

-p upgrade_path

��� ������ ��� ����� ������� ���� �����.

���� ���� ���, ��� ������ $BINDIR/../lcf_bundle.40

�� ���� ��� �����.

-r ���� �� Windows 95 �� Windows 98 ������ ������.

-v �� �� ��� �����.

-w ���� ��� ������ �� ���� ��� ������ ����

��(�) �����. ��� 150����.

� 1 �� 237

ep_name...

����� ����� � �����.

��

������� ��� ���� ��� �� admin ��� ����.

��

1. �� ����� ����� packer� �������. ���� ��� �

�� ������ $BINDIR/../lcf_bundle� ����.

wepupgd packer

2. �� ��� ����� packer � hoth� �������. ���� ��

� ��� ������ $BINDIR/../lcf_bundle� ����.

wepupgd packer hoth

3. �� ��� oden�� ������ �� �� �� � �����. ����

� ���� ��� ������ data/bin/TMF37/lcf_bundle� ����.

wepupgd -f -p /data/bin/TMF37/lcf_bundle oden

4. �� ����� Tivoli ���� � ������ �������.

wepupgd -a

5. �� ����� ����� steeler� ��� � ������ �������.

���� ��� � ������ $BINDIR/../lcf_bundle� ����.

wepupgd -g steeler

�� ��

lcfd, winstlcf

wepupgd

238 Tivoli Management Framework: ���

wexpnotif

�� ���� ��� ������.

��

wexpnotif [-a age] ngroup

��

wexpnotif �� �� ���� ��� ������. �� ���� ����� �

�� �� ��� ����. � �� ���� ���� �� �� �� ��� ��

��� � � ����. -a ��� ���� ��� �� ���� ��� ���� �

����. -a �� ���� ���, � �� ��� �� ��� � ��� ��

������.

��

-a age

age�� ��� ��� ����� �����. age� �� �� �����.

� �� ���� ���, ��� �� �� �� � ��� �� ���

��.

ngroup

��� ��� �� �� �����.

��

Tivoli Management Region�� ��� senior ��� �� ���.

��

�� ����� � Tivoli Administration ��� 3�� �� ����� ���

��.

wexpnotif -a 3 "Tivoli Administration"

�� ��

wlsnotif, wsndnotif, wtailnotif

� 1 �� 239

wgateway

������ �� �� �����, ������ �� �� �� �����, ��

��� HTTP ��� �� ��� �����, �� �� �����.

��

wgateway

wgateway gateway_name {add_gatewayproxy managednode_name |

get_gatewayproxies | remove_gatewayproxy managednode_name |

reset_gatewayproxies}

wgateway gateway_name [add_protocol protocol] [rm_protocol protocol]

[set_ipx_port port] [set_protocols protocol_list] [set_tcp_port port]

wgateway gateway_name {dbcheck | epact_dbcheck}

wgateway gateway_name describe

wgateway gateway_name epupgrade_by_gateway [TRUE | FALSE]

wgateway gateway_name {get_method_trace_time | set_method_trace_time

seconds}

wgateway gateway_name httpd [enable | disable]

wgateway gateway_name log_dir directory

wgateway gateway_name log_size size_in_bytes

wgateway gateway_name logstatus

wgateway gateway_name logstatus_interval seconds

wgateway gateway_name {restart | start | stop}

wgateway gateway_name set_crypt_mode[DES|NONE]

wgateway gateway_name set_debug_level level

wgateway gateway_name set_httpd_passwd user_name:password

wgateway gateway_name set_max_concurrent_jobs count

wgateway gateway_name set_rpc_maxthreads count

wgateway gateway_name set_session_timeout seconds

240 Tivoli Management Framework: ���

��

wgateway �� ������ �� �� �����, ������ �� �� �

� �����, ����� HTTP ��� �� ��� �����, �� �� �

����.

�� ���� ��� wgateway �� � Tivoli management region� ��

� ������ �� ID, �� � ��� �����. ������ ���

�� � ��� � � ����.

v d -- ������ � ��� ���� ����.

v D -- �� ��� ������. �� ���� � �����. ���

� ���� � ��� � ����.

v u -- ������ � � �� ����.

������ ��, �� �� �� ��(�� � ��)��� ���� start, stop �

restart �� ������.

�: NetWare ������ ��, start � stop �� ��� � ����. start �

�� ��, oservrun �� ������. stop ��� ��, oservend ��

������. �� � �� � NetWare ���� �� ���.

�� ������ � �� ����� describe �� ������. �� ��

� ��� �� �� ��, wgateway �� �� ���� ��� �� ���

��� � ����. �� ��� �� ��� ����.

v set_debug_level �� ���� �� ��� ��� ��� ��� �.

v set_session_timeout �� ���� �� �� �� �� � � �� �

� ��� ������ ���� ��.

v set_max_concurrent_jobs �� ���� ������ ��� � �� ��

� �� �.

v set_rpc_maxthreads �� ���� ������ ��� � �� �� �� �.

v add_protocol, rm_protocol � set_protocols �� ���� ���� �� �

��.

v set_ipx_port � set_tcp_port �� ���� �� ���� ���� �� �

�.

����� ��� ��� ��, get_method_trace_time � set_method_trace_time

�� ���� ���� �� �� �� � ����� �� �� �����

�. ��� ��� ����� logstatus �� ������. �� �� ��� ��

����� logstatus_interval �� ������.

wgateway

� 1 �� 241

����� HTTP ��� �� ��� �� � httpd �� ���� ���

�� �� �� �� ���� � � ����. ����� HTTP ��� �� ��

� �� � ���� ���� ����� �� �������. ��� �� ��

� ��� ��� ��� ����� � ��� ��� � ����. ��� �

� ��� �� �� �� ���� ����� ��� �� ��� ����.

��� �� ��� set_httpd_passwd �� ���� � ���� � ���

� ���. admin �� �� ��� �� � ���� ��� �� ��� �

�� � ����.

�: ��� �� ��� ��� �� � � ����. ��� ��� ��� ��

� ��� ����� ���� ����. Tivoli ��� ��� �� ��� �

���� ���� ����.

NetWare ������ ��, ��� ��� ����� ���� ����. ���

�� ���� ����� policy �� �� �����. � �� ��� ����

� ���� � � ����. ��� wgateway �� ���� ����� ����

��� � ����.

v add_gatewayproxy -- ����� ��� ��� �� ��� �����.

v get_gatewayproxies -- �� NetWare ������ �� ����� ���� �

����.

v remove_gatewayproxy -- ����� ��� ���� �� ��� �����.

v reset_gatewayproxies -- ����� ��� ���� � �� �����.

NetWare ����� � IPX/SPX ��� ���� �� ������ ��, ��

���� ��� �� IPX/SPX �� ��� � ����. IPX/SPX �� ���

�� add_protocol IPX ��� set_protocols IPX �� ���� ������ �

� ��� �����. � �� IPX/SPX ��� ��� ��� rm_protocol

IPX �� ������. � TCP/IP �� IPX/SPX �� ��� ���� ���

� set_tcp_port� ���� TCP/IP �� ��� ���� set_ipx_port �� �

��� IPX � SPX �� ��� �����.

� ������ ������ �� ������ ��� �� �� �� ���

Tivoli management region ��� �� � ���� ��� ��� � ����.

�� ��� ��� ��� �� ����� dbcheck �� ������. ��

��� � ������(epact.bdb)� ��� ����� epact_dbcheck ��

������.

wgateway

242 Tivoli Management Framework: ���

��

add_gatewayproxy

NetWare ������ ����. ����� ��� ��� �� ��� �

���� �����.

add_protocol [TCPIP | IPX]

��� ������ �� ���� ��� �����. ���� ���

TCP/IP(���) IPX���.

dbcheck

������ ��� �� Tivoli management region ��� ��� �

�����.

describe

��� ������ �� �����.

epact_dbcheck

����� � ������(epact.bdb)� ��� �����.

epupgrade_by_gateway [TRUE | FALSE]

���� ��� ���� �� � ������ ��� ������ ��

�����. ������ �� � ��� �� ��� ����� ��

�� ����. NetWare ������ ��� � ������ ���

FALSE���. NetWare ������ ��, � � NetWare ������

� TRUE� ����. NetWare ������ �� ��� �� ���

���� �� login_policy �� �� ��� � ����.

httpd [enable | disable]

����� HTTP ��� �� �� � �� ���� ���. � ����

admin ��� ����. ��� �� �����.

get_gatewayproxies

NetWare ������ ����. � ��� ������ ��� �� �

� �� ����.

get_method_trace_time

����� ���� ��� �� �� ��(�) ����.

log_dir

gatelog � � gatelog.timestamp �� ��� �� � ���� ��

�� �����.

log_size size_in_bytes

gatelog ��� �� ��(���)� �����. �� ��� ���� gatelog

wgateway

� 1 �� 243

�� gatelog.timestamp ��� ���� ��� gatelog ��� ����

�. �� �� ��� 10485760���(10MB)�� �� �� ��� 1048576

���(1MB)���.

logstatus

�� ��� �����.

logstatus_interval seconds

�� �� ��� �� � �� ����. 0�� ��� �� ��

�����. ��� 3600(1��)���.

remove_gatewayproxy

NetWare ������ ����. ����� ��� ���� �� ���

����� �����.

reset_gatewayproxies

NetWare ������ ����. ����� ��� �� ����.

restart

��� ������ ��� �� �����.

rm_protocol IPX

��� ������� IPX ���� �� �����. TCP/IP ���

��� � ����.

set_crypt_mode[DES|NONE]

gateway_name�� ��� ������ ����� ��� � 56�� DES

���� ������ �����.

v DES� ����� ����� ��� ��� ������ �����.

v NONE ������ � ������ ��� �� � ���� �

����� �� ������ �����.

set_debug_level level

������ � ��� ��� ��� � ����. � ��� �

���.

0 ��. � � �� � � ����.

1 �� � �

2 �� ��

3 �� �� ��

5 �� ��, ������ �� � ����� ��� ��

6 �� �� ��, �� �� � repeater ��

7 �� �� ���� ��

8 �� ����� � ��

wgateway

244 Tivoli Management Framework: ���

�: � 4� ����.

set_httpd_passwd user_name:password

������ �� ��� �� � ����� HTTP ��� ���� �

�� ��� �� ��� ����. � ���� admin ��� ��

��.

set_ipx_port port

IPX ��� � ������ ���� ��� �����.

�: IPX ��� ���� SPX ��� �����. SPX ��� �� ���

IPX �� ��� 1 � ����. �� IPX �� �� 9494�, �

� SPX ��� 9493���.

set_max_concurrent_jobs count

�� ���� ��� �� �� �����. ��� 200���.

set_method_trace_time seconds

����� ���� ��� �� �� ��(�) �����. 0�� ���,

����� ��� �� �� �����. ��� 3600(1��)���.

set_protocols protocol_list

��� ������ �� ���� ��� ����. TCP/IP� ���

���.

set_rpc_maxthreads count

��� �� �� �����. ��� 250���.

set_session_timeout seconds

������ �� �� �� � �������� �� ���� ��

� �� �����. ��� 300�(5�)���.

set_tcp_port port

TCP/IP ��� � ������ ���� ��� �����. �� ��

�� 9494���.

start ��� ������ �����. Netware� ��, oservrun �� ����

NetWare ���� �� ���� �����.

stop ��� ������ �����. Netware� ��, oservend �� ����

NetWare ���� �� ���� �����.

gateway_name

����� � �����.

��

admin �� senior

wgateway

� 1 �� 245

��

1. �� ����� ������ IPX TCP/IP ��� ��� � wgateway �

� ��� ����.

NEED NEW EXAMPLE

wgateway lux describe

Object : 1139479731.2.77#TMF_Gateway::Gateway#Protocols : TCPIP,IPXHostname : "lux"TCPIP Port : 9999IPX Port : 7787Timeout : 300

2. �� ����� ������ TCP/IP ��� ��� � wgateway �� �

�� ����.

NEED NEW EXAMPLE

wgateway agodino-gateway describe

Object : 1139479731.1.644#TMF_Gateway::Gateway#Protocols : TCPIPHostname : "agodino"TCPIP Port : 6666Timeout : 300

3. �� ����� �� �� lradner ���� NetWare ����� lux� ��

��� ��� ��� �����.

wgateway lux add_gatewayproxy lradner

4. �� ����� NetWare ����� lux� ����� ��� �� ���

�.

wgateway lux get_gatewayproxies

�� ��

wcrtgate, wdelgate, wrpt

wgateway

246 Tivoli Management Framework: ���

wgetadmin

Tivoli ���� �� ��� �����.

��

wgetadmin [-n | -o | -p | -u [-i interp]] [name]

��

wgetadmin �� Tivoli ���� �� ��� � � � �����. � ��

���� �, ���, �� � �� �� �����. ���� �� ���� �

����. name� ���� ���, wgetadmin �� ���� ��� �����.

�: wgetadmin �� ��� � �� ��� ��� �� � ��� �

���. ����� � �� �� ���.

��

-i interp

interp� ���� ������ ���� ���� ��� ��� �� �

� � ����.

-n ���� �� ����.

-o ���� �� ID� ����.

-p �� �� ��� � �� � ����. ��� �� ��� ��

� Tivoli Management Region � �����. ����� region ��

� �����.

-u ���� ��� ��� �� �� � ����.

name �� ��� Tivoli ���� � �����.

��

�� ���� �� ��� ����� ��� user ��� �� ���. ��� �

��, �� ���� �� ��� ��� � ����.

��

1. �� ����� �� ���� ���� �� ��� ����.

wgetadmin

2. �� ����� ��� ���� �� ��� ����.

wgetadmin callahan@sthelensAdministrator Steve Callahanlogins: callahan@sthelensroles: global user

� 1 �� 247

DefaultRegion super, admin, userAdministrators super, seniorMyRegion super, senior, admin, user, backupSteve Callahan admin, user, rconnectsecurity_group_any_admin user

notice groups: Tivoli Authorization

�� ��

wcrtadmin, widmap, wsetadmin

wgetadmin

248 Tivoli Management Framework: ���

wgetallinst

�� ��� � ����� ����.

��

wgetallinst [-l] resource_type

��

wgetallinst �� �� ��� � ����� ����. -l ��� ��� ��,

� �� ‘label oid’ ���� �� �� ����.

wgetallinst� wlookup ��� � ���. ��� wlookup� ���� � �

���� ��� �� ��� ���� ���. wgetallinst� �� �� ��� �

��� �� �� ���� ��� �� �� � ���� � �� �� �

����. �� ��, wgetallinst� ProfileEndpoint �� ��� � �����

����, ���� ProfileManager, ManagedNode � NisDomain �� ���

����� �����.

��

-l ‘label oid’ ���� ����� �����.

resource_type

�� ����� �� �� �����.

��

�� ����� ProfileEndpoint �� ��� � ����� ����.

wgetallinst -l ProfileEndpoint

�� ��

wlookup

� 1 �� 249

wgetdfpol

�� policy ��� �����.

��

wgetdfpol [-d | -v] class

��

wgetdfpol �� ��� ��� ��� � �� policy �� �� �� policy

��� �� ��� �� �����. ��� policy region� �� ����

����, � �� �� policy ��� �� �� �� policy �� ��

� � ���. � ��� �� ��� ��� �������. policy �� �

�� policy region� ��� �� ��� ��� ��� � ��� ����

�. policy ��� �� ��� policy region� �� �� �� ��� ��

� � �� �� �����.

��

-d ��� �� policy �� ��� �� �����. -v� ���� �

���� � ��� ������.

-v ��� �� policy ��� �� ��� �� �����.

class �� policy ��� ��� ��� �� ��� �� �����.

��

senior �� super

��

�� ����� ProfileManager ���� �� �� policy �� �� �

�����.

wgetdfpol -d ProfileManager

�� ��

wchkpol, wcrtpol, wcrtpr, wdelpol, wdelpr, wgetpolm, wlspol, wlspolm,

wputpolm

250 Tivoli Management Framework: ���

wgeteppol

����� policy �� �� ��� ��� �����.

��

wgeteppol pol_name

��

wgeteppol �� ��� ����� policy �� �� �� �����. ���

�� ��� � �� �� ��� � ����. ����� policy �� ��

allow_install_policy, after_install_policy, login_policy � select_gateway_policy

���. ��� ��� ����� policy� ������.

�� ����� policy �� �� ���� ����, wgeteppol� �

“EXAMPLE”� ���� �� � � ���. �� �� wputeppol �� ��

�� ��� � �� �� ������.

��

pol_name

��� policy �� � � �����.

��

senior

��

�� ����� after_install_policy �� �� ��� �� � �����.

wgeteppol after_install_policy#!/bin/sh## The following are the command line options passed to# this script from the Endpoint Manager.## $1 - The label of the endpoint machine# $2 - The object reference of the endpoint machine# $3 - The architecture type of the endpoint machine# $4 - The object reference of the gateway that the# endpoint logged into# $5 - The ip address of the endpoint logging in.# $6 - Region# $7 - Dispatcher# $8 - Version# $9 - The inventory id of the endpoint logging in.#The following command line option will be passed to this script#from the Endpoint Manager, when complied with the MULTIPROTO flag#turned on# $10 - The protocol of the endpoint logging in.

� 1 �� 251

#TCPIP -> TCP/IP#IPX -> IPX/SPX#Note that the environment variable LCF_LOGIN_STATUSis also set by #the endpoint manager. A value of 2 indicates the endpoint#is isolated. That is, it was unable to contact its#assigned gateway. Isolated endpoints are automatically#migrated to another gateway unless the#select_gateway_policy terminates with a nonzero exit#status.##Also note that during the execution of#allow_install and select_gateway policy scripts,#the endpoint does not yet formally exist. For this#reason, the endpoint object reference will have a#value of OBJECT_NIL, and the object dispatcher number#will be 0. The endpoint label will have the value#suggested by the endpoint (or the user value lcfd -n),#but is not guaranteed to become the final endpoint#label. It will become the final endpoint label if#this value is not already taken by another endpoint.exit 0#

�� ��

wputeppol

wgeteppol

252 Tivoli Management Framework: ���

wgetjob

��� �� �����.

��

wgetjob task_name library_name

��

wgetjob �� ��� �� �����. � ��� � � � �� ����

�.

��

library_name

��� �� ���� ��� ����� � �����.

task_name

��� ��� � �����.

��

user, admin, senior, super

��

�� ����� Clean Queue ��� �� �����.

wgetjob "Clean Queue" queue_libJob Name : Clean Queue

Task Name : Clean QueueExecution Mode : parallelTimeout : 60Output Format : task header

return codetask standard outputtask standard error

Managed Nodes : yogi

Profile Managers :

�� ��

wcrtjob, wdeljob

� 1 �� 253

wgetkey

���� �� �� ��� �� �����. � �� ������� ��

�� ���.(Windows� �).

��

wgetkey registry_key_path [registry_hive]

��

wgetkey �� ��� ���� ���� ��� �� ��� �� �

����. � ��� � � � (��� ��)�� �����.

��

registry_hive

� �� ��� ���� ��� �����. ��� ��� ��

� ����.

v HKEY_LOCAL_MACHINE

v HKEY_CLASSES_ROOT

v HKEY_CURRENT_USER

v HKEY_USERS

� �� ���� � ��, � �� HKEY_LOCAL_MACHINE

���� ���� �� �����.

registry_key_path

� �� ��� ���� � �����.

��

admin

��

1. SOFTWARE �� ��� HKEY_LOCAL_MACHINE ���� ��

�� �� ����� �� �� � ����. � ��� � � �

����.

wgetkey SOFTWARE

2. USERS �� ��� HKEY_CURRENT_USER ���� ���� �

����� �� �� � ����.

wgetkey USERS HKEY_CURRENT_USER

254 Tivoli Management Framework: ���

wgetpolm

�� �� ��� �� policy ���� ��� ��� �����.

��

wgetpolm [-d | -v] class name policy

wgetpolm [-d | -v] profile policy

��

wgetpolm �� policy ���� ��� ��� � � � �����. � ��

� �� � ��� �����. policy ���� �� �(�� �� ����)

� ����, � ���� �� �(�� ����)� �� �����. policy ��

�� ����� ����, � ��� �����. � �� ���� �� ��

� ������ ����� ����� ����.

�: �� ����� policy ���� �� � �� �� ����� ��� �

��� �����.

-d ��(���) �� policy ���� ��� -v� ��� �� policy ����

�����. class � name �� �� �� �� ��� policy �� � �

��� ��, policy �� wlspolm ��� �� ���� policy ���� ���

�� � �����.

��� � � �� ������ policy� ���� � �����. � ��, profile

��� ���� ���, policy� policy� ��� �� � wlspolm ��

�� ���� ��� �� �����. policy� ����� ����, � �� �

� �����. policy� �� �(�� �� ����)� ����, �� �(�

� ����)� �� � � �� ��� �� �� �� � ��� ���

��(wputpolm �� ��). policy� ���� ��� ���� ����, ��� �

� ���� � ��� ��� � � ��� ��� ���� ����.

��

-d ��� policy �� ���� �����. -v ��� ���� ��� � ��

� ������.

-v ��� policy ��� �� ���� �����.

class policy� ���� �� �� �� �����.

name policy �� � �����.

policy policy� ��� � �����.

� 1 �� 255

profile policy� ��� ���� �����.

��

��� senior ��� �� ���.

��

����� � ��, ��� ��� ����.

� �� ProfileManager� �� BasicProfileManager policy ��� �� �

�� pm_val_subscribers ���� �� �� � �� �����.

wgetpolm -v "ProfileManager" "BasicProfileManager" "pm_val_subscribers"

��� ��� � � ����.

TRUE$$

���� ���� ��, �� ����� Engineering��� ��� ����� �

� �� ��� ID(UID) policy� �� � �� �����.

wgetpolm -d @UserProfile:user_profile_2 uidscript ARGUMENTS: $real_name $login_name

��� ��� � � ����.

#!/bin/sh## Component Name: user_get_uid## $Date: 1996/08/01 15:40:31 $## $Source: /tivoli/development/src/2.0/apps/user_group/

user/uto_def_policies/ug_uid.src,v $## $Revision: 1.4 $## Description: Given a new user’s real name, output a# default numeric User ID (UID) for the new user## Implementation: The allocate_id method of the# User ID Data Base Object (UID_DBO) is used to# get (and allocate) the next available User ID# greater than 100. Note that the real name# argument is unused in this version.## (C) COPYRIGHT TIVOLI Systems, Inc. 1991, 1992# Unpublished Work# All Rights Reserved# Licensed Material - Property of TIVOLI Systems, Inc.#MY_NAME=user_get_uid## Initialize exit codes

wgetpolm

256 Tivoli Management Framework: ���

#E_OK=0 # Successful completionE_USAGE=1 # Illegal option, argument, or parameterE_ERROR=2 # Error in execution## Set PATH to known safe value#PATH=/usr/bin:/usr/ucb:$PATHexport PATH

exitval=$E_OK## Check usage#if [ $# -ne 2 ]; then

echo "usage: $MY_NAME \"real_name\" login_name"exit $E_USAGE

elseREAL_NAME=$1 # (Unused)LOGIN_NAME=$2 # (Unused)

fi

## Get the uid instance object ID’s#

UID_DBO="UID"

## Get the next available UID > $MIN_UID (100) from the database.# If there is an error in the cli command wallocid, then output# the UID of the "nobody" user (65534).#

MIN_UID=100NOBODY_UID=65534

NEW_UID=`wallocid -l $MIN_UID -u $NOBODY_UID $UID_DBO`return=$?

if [ $return -ne $E_OK ]; thenecho $NOBODY_UID

exitval=$E_ERRORelse

echo $NEW_UIDfi

## Always exit successfully#exit $exitval$

�� ��

wchkpol, wcrtpol, wcrtpr, wdelpol, wdelpr, wgetdfpol, wlspolm, wputpolm

wgetpolm

� 1 �� 257

wgetpr

policy region� �� �����.

��

wgetpr region

��

wgetrp �� policy region� �� �����.

��

region �� policy region �����.

��

admin, senior, super

��

�� ����� DefaultRegion policy region� � �� �� �����.

wgetpr @PolicyRegion:DefaultRegionTaskLibraryManagedNodeProfileManager

�� ��

wsetpr

258 Tivoli Management Framework: ���

wgetprf

�� ��� ���� �� �� �����.

��

wgetprf [-l maintain | over_all] [-m] [-r] name

��

wgetprf �� �� ���� ��� �� �����(��� �� NIS(Network

Information Services) ���)� ���� ���� ����� �� ��� ����

�� �� �����. � �� Tivoli ������� ��� ������ �

� �� �����. name �� �� �� ������ �����. �� ��

�� ��� ��� � ����.

-m ��� ����, �� ��� ���� ������ �����. -m� ���

� ���, � �� ��� �����.

-l �� �� � �����. ���� ���, ��� maintain���.

��

-l maintain | over_all

�� � �����. maintain �� � ���� �����.

over_all �� � ���� �����.

-m �� ��� �����.

-r ���� ����(��) ��� ��� ���� �� �� ��� ����

�� �� ��� 1� ����.

name �� �� ������ ����� �� ���� �� �����. ��

� �� ��� ����.

v @node_name

v @ManagedNode:node_name

v /Regions/PolicyRegionName/node_name

��

admin, senior, super

��

1. �� ����� � � ���� ����� ���� �� Users� ���

��.

wgetprf -l over_all @UserProfile:Users@rushmore

� 1 �� 259

2. �� ����� � � ���� ����� �� �� rushmore ��

� ���� �� ��� �����.

wgetprf -m @ManagedNode:rushmore

�� ��

wcrtpr, wcrtprfmgr, wdistrib, wgetsub, wlssub, wpopulate, wsub, wunsub

wgetprf

260 Tivoli Management Framework: ���

wgetquery

��� �� ��� �����.

��

wgetquery [-f] query_name

��

wgetquery �� Tivoli ��� �� ��� �����. � ���� �, �, �

�, �, � �� � where�� �����.

��

-f ��� ��� �� � ��� �����. -f ��� ���� � ��,

wgetquery �� where�� �����.

query_name

�� � �����.

��

query_view, user, admin, senior �� super

��

�� ����� DOS � ��� �� � ��� �����.

wgetquery -f DOS-machines

� ��� ����.

Name: DOS-machinesDescription: Query for DOS PCsRepository: inventoryView: MACHINE_TYPEColumns:

PROCESSOR_TYPEOPERATING_SYSTEM

Where Clause:--------------------(BOOTED_OS_NAME = ’DOS’)

�� ��

wcrtqlib, wcrtquery, wruninvquery, wsetquery

� 1 �� 261

wgetrim

RIM(RDBMS Interface Module)� �� ��� �����.

��

wgetrim rim_name

��

wgetrim �� ��� RIM ��� �� �� ��� �����. � �� �

����� ��(-a ��)� �� ��(-m ��) ��� � �� ��� ���

��. � ��� ���� ��� idlcall �� ������.

��

rim_name

RIM �� �� �����. � �� Tivoli � ����

��(@RIM:name� �) �� RIM �� � ��� � ����. ��

RIM ��� � � �� ��� rim_name �� @� �� ���.

��

Tivoli Management Region�� senior �� super

��

1. �� ����� inventory RIM ��� �� ��� �����. Instance

Home ��� DB2 �������� �����.

wgetrim @inventory

� ��� ����.

RIM Host: amon-sulRDBMS User: tivoliRDBMS Vendor: DB2Database ID: amarDatabase Home: opt/ibmDB2/V.2.1Server ID: tcpipInstance Home: /data/DB2

2. RIM ��� �� ������ ��� �� �� ����� �� ��

������.

a. �� ID(OID)� ��� RIM ��� ��� ��� �� � �

���.

wlookup -ar RIM

Tivoli ��� � RIM ��� �����.

262 Tivoli Management Framework: ���

b. ������ �� ���� �� �� � ����.

idlcall OID _get_application_type

��� OID� RIM ��� �� ID���.

c. �� �� �� ���� �� �� � ����.

idlcall OID _get_max_conn

��� OID� RIM ��� �� ID���.

�� ��

wcrtrim, wsetrim, wsetrimpw

wgetrim

� 1 �� 263

wgetsched

�� ����� �� ��� �� ��� �����.

��

wgetsched [-b ‘mm/dd/yyyy hh:mm’] [-a ‘mm/dd/yyyy hh:mm’] [-v]

wgetsched [-s id [-s id]...] [-v]

��

wgetsched �� �� ����� ���� ��� �� ��� �����. ���

��� ��� � ��� ��� ����.

��

-a ‘mm/dd/yyyy hh:mm’

� �� ��� ����� ���� �� �����.

-b ‘mm/dd/yyyy hh:mm’

� �� ��� ����� ���� �� �����.

-s id... �� ID� �����. � ��� �� ID� ��� � ����.

-v � �� �����.

��

user

��

�� � �� � � � ��� �� � � � � ���. � � � ���

� ��� �� � ��� �����. � � �� ��� ��� ������.

�� ��

Job ID Label Admin Date & Time Enbld Repeat Retry Cncl------ ----- ----- ------------------ -----------------------000008 JOB #14 root@cook Fri May 6 01:00:00 1994 YES YES NO YES000002 JOB #2 root@cook Sun Jan 1 01:12:00 1995 YES NO NO NO000010 JOB #9 root@cook Wed Mar 1 06:55:00 1995 YES NO YES NO

� ��

ID : 2Name : BackupLabel : BackupDescription :Administrator : root@vernonOriginal Time : Tue Mar 05 16:00:00 1996Next Time : Tue Mar 05 16:00:00 1996

264 Tivoli Management Framework: ���

Enabled : YesRepeat Type : InfiniteRepeat Increment : 1Repeat Unit : DayRepeat Times : 0Retry Type : NoneRetry Increment : 0Retry Unit : MinuteRetry Times : 0Cancel Job : YesCancel Increment : 10Cancel Unit : MinuteEmail :Notice : Tivoli SchedulerDesktop :Host Name :File Name :Daytime Rest. : NoDaytime From : 6Daytime To : 18Nighttime Rest. : NoNighttime From : 17Nighttime To : 8Weekday Rest. : NoWeekday From : 1Weekday To : 5Weekend Rest. : YesWeekend From : 6Weekend To : 0

�� � ����� -a � -b ��� �� wgetsched �� ���� �� ���

��.

1. �� ����� 1998� 5! 6� �� 1:00 �� � 1998� 5! 8� �� 1:00

��� ����� � �� �����.

wgetsched -b ’05/06/1998 01:00’ -a ’05/08/1998 13:00’

2. �� ����� 1998� 8! 10� �� �� � 1998� 8! 12� �� 6:00 �

�� ����� ���� �� � �� �����.

wgetsched -a ’08/10/1998 00:00’ -b ’08/12/1998 18:00’

�� ��

wdelsched, wedsched, wenblsched, wschedjob

wgetsched

� 1 �� 265

wgetsub

���� ��� ���� �����.

��

wgetsub [-l] [-o] name

��

wgetsub �� name� ��� ���� ���� ���� Tivoli �� ����

�.

��

-l � �� �����.

-o � ���� ��� ���� �� ID� �����.

name ���� ���� ���� ��� � �����. name ��� ���

�� ��� ����.

v @prof_manager_name

v @ProfileManager:prof_manager_name

v /Regions/PolicyRegionName/prof_manager_ name

��

user, admin, senior, super

��

�� ����� Development ���� ���� � ���� �����.

wgetsub @Development

�� ��

wcrtprf, wcrtprfmgr, wdistrib, wgetprf, wlssub, wpopulate, wsub, wunsub,

wvalidate

266 Tivoli Management Framework: ���

wgettask

���� �� �����.

��

wgettask [-F file_name] task_name library_name

��

wgettask �� ���� �� �����. � ��� � � � �� ��

���.

��

-F file_name

��� ��� ���� �� �����. � �� ��� ��� ��

� �� ��� ���� .tar �� � ��� �����. � �� �

Tivoli ���� �� ���� ���� ��� � �����.

library_name

��� ���� ���� ��� ���� � �����.

task_name

��� ��� � �����.

��

user, senior, super

��

�� ����� queue_lib ��� ���� �� Clean Queue ���� ��

� ��� �����.

wgettask "Clean Queue" queue_libTask Name : Clean Queue

User ID : *Group ID :Task ACL : admin:senior:super:userSupported Platforms :solaris2 <install>/solaris2/TAS/TASK_LIBRARY/bin/200000/tasknpzmqdTask Documentation :

Task Name : Clean QueueTask Created : Wed Sep 14 20:20:16 1998Task Created By : root@yogiComments:-------------------------------------------

� 1 �� 267

�� ��

wcrttask, wdeltask

wgettask

268 Tivoli Management Framework: ���

wgetval

���� �� �����(Windows� �).

��

wgetval [-h registry_hive] -k {key | @file_name} -n value_name

��

wgetval �� ������ �� �����. � ��� � � � ��

�����.

��

-h registry_hive

� �� ��� ���� ��� �����. ��� ��� ��

��.

v HKEY_LOCAL_MACHINE

v HKEY_CURRENT_USER

v HKEY_CLASSES_ROOT

v HKEY_USERS

v HKEY_CURRENT_CONFIG

v HKEY_DYN_DATA

-k key | @file_name

� �� ��� �� �� � �����.

-n value_name

�� � �����.

��

admin

��

Novell ����� �� �� ����� �� �� � ����.

wgetval -h HKEY_LOCAL_MACHINE -k SOFTWARE\NOVELL -n CurrentVersion

�� ��

wsetval

� 1 �� 269

whostid

��� �� ��� ��� ID� �����.

��

whostid host_name

��

whostid �� host_name ��� ��� �� ��� ��� ID� �����.

��

host_name

ID� ��� ���� � �����.

��

user, admin, senior, super

��

�� ����� �� �� bald� ��� ID� �����.

whostid bald8031ee30

�� ��

wdate, wdiskspace, wifconfig, winstdir, winterp, wmannode, wmemsize, wping,

wtimezone, wuname, wxterm

270 Tivoli Management Framework: ���

whttpd

Tivoli HTTP ���(����)� � �� �� �� ���� ����� HTTP

� ����(third-party) � ��� �����.

��

whttpd -f url

whttpd -g

whttpd -r node_name [-f url]

whttpd -u node_name [-f url]

��

whttpd �� ����� � ����� �� ��� ����� HTTP �

����(third-party) � ��� ��� � ��� ���. ���� ���� �� �

�� �� ��� ���� ����. ����� � ���� � �� �

��� ���� ���� �� ��� � �� ����.

�: ����� � ���� ����� �� ����� ��� ��� HTTP ��

�� �� � ����.

��

-f url ��� URL(Universal Resource Location)� HTTP � �����. url

� �� ��� ����.

protocol://web_server_address:port/TivoliFRW/webapp

� ��� ��� ��� ����.

protocol

��� HTTP ���� �����.

web_server_address

����(third-party) � ��� ����� ��� WWW ��� �

�� IP ��

�� ���� � ��� �� ��� ��� HTTP ��

� �� ����� admin ��� �� ���.

-g ����(third-party) � ��� URL �����. ���� �� ���

�� ��� ��� �� �� ���� �� � ��, � �� ″��

URL� ��� �����″� �� ���� �����.

� 1 �� 271

� �� ����� user ��� �� ���.

-r node_name

����� �� ��� spider �� �����. node_name� Tivoli �

�� ��, �� Tivoli region� � �� ���� ����� � ��

���. � �� ����� super ��� �� ���.

-u node_name

����� �� ��� spider �� �����. node_name� Tivoli �

�� ��, �� Tivoli region� � �� ���� ����� �� ��

���. � �� ����� super ��� �� ���.

�: spider ��� ��� ������.

��

1. �� ����� �� �� ccorley�� ����� �� ����� spider ��

�����.

whttpd -u ccorley

2. �� ����� ������ lorozco� ����(third-party) � ��� HTTP

� �����.

whttpd -f http://w3.lorozco.tivoli.com/TivoliFRW/webapp

�� ��

wstarthttpd, wstophttpd

whttpd

272 Tivoli Management Framework: ���

wiconv

��� �� �� �� ��� ��� � �� ���� �� �� ��� �����.

��

wiconv [-f codeset] [-t codeset < input | codeset > output]

wiconv [-f codeset] [-t codeset] [-i input] [-o output]

��

wiconv �� ��� �� �� �� ��� ��� � �� ���� �� �� �

�� ��� � � ��� � � � �����. � �� ���� �� TISDIR

�� ��� � ���.

��

-f codeset

� �� ��� �����.

-i input

� � ���� ��� � ��� � �����.

-o output

� � ���� ��� � ��� � �����.

-t codeset

� �� ��� �����.

> output

� � � ��� �����.

< input

� � �� � ���� ����.

��

� ���� ���� � �� Tivoli �� rgion �� �� �� ����.

��

�� ����� source.txt ���� ���� ��� � ���� SJIS ����

UTF8 ���� ��� � � ��� utf8.html ��� � ���.

wiconv -f SJIS -t UTF8 -i source.txt -o utf8.html

� 1 �� 273

wident

�� �����.

��

wident [-q] [file...]

��

wident� � ��� ���� , �� �� �� ���� � � ��

$keyword:...$ ��� � �� �����.

� �� ����� RCS(Revision Control System) �� wco� � ��� �

���� ��� ��� �� ����. �� -q� ��� ��� � �� ���

� �� ���� ��� ���.

wident� �� �� � ��� �� ��� ���� �����. �� ��, f.c

� C �����

char rcsid[] = "$Id: f.c,v \*(iD $";

� �� � f.c� f.o� ����� ��,

wident f.c f.o

�� � ���.

f.c:$Id: f.c,v \*(iD $

f.o:$Id: f.c,v \*(iD $

���

��: Walter F. Tichy. �� �: 5.0; ��� ��: 1980/08/22. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990 by Paul Eggert

�� ��

wci, wco, wrcs, wrcsdiff, wrcsmerge, wrlog Walter F. Tichy, RCS--A System

for Version Control, Software--Practice & Experience15, 7 (July 1985), 637-654.

274 Tivoli Management Framework: ���

widmap

��� ��� �� ��� �����.

��

widmap add_entry map_name interp entry_val

widmap add_map map_name

widmap list_entries map_name

widmap list_maps

widmap resolve_entry map_name interp

widmap rm_entry map_name interp

widmap rm_map map_name

��

widmap �� ���� �� �� ���� ��� ��� �� ��� ��

��� � ����. ��� � Tivoli Management Framework� � ��� �

�� � ��� �� ��� ��� ��� ��� ���� � �� ���. ��

��, ��� � chris� Solaris ���� ��� � chriss Windows ���

� ��� � chris_sanders� ��� � ����.

�� ����� � �� ��� �� �����. ��� root_user� �� �

�� ��� chris� �� ���.

root_user default rootroot_user w32-ix86 Administratorchris solaris2 chrisschris w32-ix86 chris_sanders

� � $map_name�� Tivoli �� ��� � � � ����. �� ��, $chris

� Create Administrator �� ��� Login Name �� Group Name ��� �

� � ����. $chris� ���� ���� ��� ��� ��� ��� ��

��.

widmap �� �� � �� �� �� ��, ��, �� � �����.

��

add_entry

map_name� �� �����.

� 1 �� 275

add_map

map_name� �� � �����.

list_entries

map_name� �� �� �� �����.

list_maps

�� � �����.

resolve_entry

��� interp� entry_val �����.

rm_entry

interp� map_name�� �����.

rm_map

map_name �����.

entry_val

map_name� ���� ��� � �����.

interp entry_val� ��� ��� �� ����� �� �� �� ��� ���

��. interp� default� ����, default entry_val �� interp ���

�� �� ���� ���� ���.

map_name

��� ��� �� �����.

��

widmap�� � �� � user ��� ���, � ��, �� ����

��� super ��� ����.

��

1. �� ����� � �� �����.

widmap list_maps

2. �� ����� $chris �� �� �� �����.

widmap add_entry chris default chris

� ��� ����, $chris � ��� � ���.

chris solaris2 chrisschris w32-ix86 chris_sanderschris default chris

3. �� ����� $chris ��� solaris2 �� �����.

widmap rm_entry chris solaris2

widmap

276 Tivoli Management Framework: ���

4. �� ����� $chris �� ���� ��� � �� ����� ���� �

����.

widmap resolve_entry chris default

� ��� ��� chris���.

�: �� ��� HP-UX �� ��� � ��� ���� ��� ����.

HP-UX� �� ��� ���� ���� �����.

widmap

� 1 �� 277

wifconfig

�� ���� IP(Internet Protocol) ����� ����� �����.

��

wifconfig -h node_name wifconfig -h node_name -a device IP_address name

notify_server wifconfig -h node_name -r device [IP_address name] wifconfig -h

node_name -s device IP_address name notify_server

��

wifconfig �� ���� Tivoli ���� �� ���� IP ����� ����

� ��� � ����.

��

-a (UNIX� �) IP ����� �� ��� �����. ����� ��

�, IP �� � ���� �� ���. ��� IP ����� �

Tivoli �� rgion ��� �� ���� � ���.

-h node_name

IP ����� ����� ����� �� ��� �����.

-r (UNIX� �) IP ����� �� ���� �����. ��� �

�� ���. ����� IP �� ���� � ��� �� ��

��.

-s (UNIX� �) �� IP ����� �� �����. ��� ��

��� ���� ��(IP ��, ���� � � Tivoli Management

Region ��� ����� ����� ��)� �� ���. -s ���

� ��� � ��� � ����.

device ����� � ��� ���� �����.

IP_address

����� IP ��� �����.

name ���� � �����.

notify_server

� region� Tivoli Management Region ��� IP ����� ����

�� ����� ����� ��� �����. � � TRUE �� FALSE

� ���.

��

��� �: user, admin, senior, super. ��� �: admin, senior, super.

278 Tivoli Management Framework: ���

��

1. �� ����� �� �� bald� IP ��� �����.

wifconfig -h baldDevice Address Name Used by dispatcherlo0 127.0.0.1 localhost unused

2. �� ����� �� �� bald� �� IP ����� �����. ����

lel� IP ��� 146.84.49.3�� ���� � bald2���. Tivoli

Management Region ��� � ����� �����.

wifconfig -h bald -a lel 146.84.49.3 bald2 TRUE

3. �� ����� �� �� bald�� IP ���� bald2� �����.

wifconfig -h bald -r lel 146.84.49.3 bald2

�� ��

netstat, odadmin

wifconfig

� 1 �� 279

winsblk

��� � �� �����. � �� ������� ���� ���.

��

winsblk -s ″search_string″ {-a ″insertion_string″ | @file_name} | {-b

″insertion_string″ | @file_name} [-o output_file] file_name

��

winsblk �� ��� � �� �����. � �� ���� � ����

��� � �� ��� � ���, wrplblk �� wclrblk �� ���� ��

�� �� �� ��� � ����.

��

-a ″insertion_string″ | @file_name

�� ��� ���� � ��� � �� �����. � �� -b �

�� �� ��� � ����.

insertion_string ����, ��� ��� �� � �� ���.

@file_name ����, � �� ��� ��� � �� �����.

-b ″insertion_string″ | @file_name

�� ��� ���� � �� � �� �����. � �� -a ��

� �� ��� � ����.

insertion_string ����, ��� ��� �� � �� ���.

@file_name ����, � �� ��� ��� � �� �����.

-o output_file

� output_file� ��� ��� ������. � �� ���� ���,

� � � � � �����.

-s ″search_string″

�� ��� �����. �� ���� �� ��� ��, � �� �

� ��� ���� � �(-b �� ��) �� �(-a �� ��)� ����

�. � �� ���� ���, � ��� ��� �����.

file_name

�� ��� �� �����.

���

winsblk� �� � ��� �����.

0 winsblk� ��� � �� ����� ���� �����.

280 Tivoli Management Framework: ���

0� ��

winsblk� ��� � �� ����� ���� ��� �����.

��

BLKSTMTS.FIL �� �� � SYSTEM.INI ��� � device= ��� �

� ���, � OUTPUT.FIL ��� �� ������ �� �� � �

���.

winsblk -s "device=" -a @C:\TEMP\BLKSTMTS.FIL \-o C:\TEMP\OUTPUT.FIL C:\WINDOWS\SYSTEM.INI

�� ��

wclrblk, 282 ���� �winsline�, wrplblk

winsblk

� 1 �� 281

winsline

� � ��� �����. � �� ������� ���� ���.

��

winsline [-f] -s ″search_string″ {-a ″insertion_string″ | -b ″insertion_string″} [-o

output_file] file_name

��

winsline �� ��� ��� � �����. �� ��� ���� � ���

�� � ��� � ����.

��

-a ″insertion_string″

��� ��� ��� ��� ��� �� � �� ��� ���� � �

� �����. � �� -b ��� �� ��� � ����. ��� ��

� �� ���.

-b ″insertion_string″

��� ��� ��� ��� ��� �� � �� ��� ���� � �

� �����. � �� -a ��� �� ��� � ����. ��� ��

� �� ���.

-f �� ���� �� ���� �����. � �� ���� ���, ���

���� � �� ��� �����.

-o output_file

� � output_file ��� ����� �����. � �� ���� ���,

� � � � � �����.

-s ″search_string″

�� ��� �����. �� ���� �� ��� ��, �� ��� �

� ��� ���� � �(-b �� ��) �� �(-a �� ��)� ����

�. ��� �� � �� ���.

file_name

� ��� �� � �����.

���

winsline �� � � ��� �����.

0 winsline� ��� � ����� ���� �����.

282 Tivoli Management Framework: ���

0� ��

winsline� ��� � ����� ���� ��� �����.

��

1. lp01 SYSTEM.INI ��� � �� device= ��� �� ��� �

OUTPUT.FIL ��� �� ������ �� �� � ����.

winsline -f -s "device=" -a "lp01" -o C:\TEMP\OUTPUT.FIL \C:\WINDOWS\SYSTEM.INI

2. SYSTEM.INI ��� � type= ��� �� dev01 ����� �� ��

� ����.

winsline -s "type=" -b "dev01" -o C:\TEMP\OUTPUT.FIL C:\WINDOWS\SYSTEM.INI

� ��� � � � �� �� OUTPUT.FIL� �� ������.

�� ��

wclrline, 280 ���� �winsblk�, wrplline

winsline

� 1 �� 283

winstall

Tivoli �� ����.

��

winstall [-c source_dir] [-s server] [-i product] [-y] [install_variables] [-n |

managed_node...]

��

winstall �� Tivoli ���� ��� � ����� Tivoli �� ����. �

�� �� ��� �� � � ��� ��� �����.

��

-c source_dir

� ���� �� �� ���� �� �� ��� �����.

-i product

��� ��� �� �� �� �����. �� �� .IND ��� �

���.

-n �� ��� ��� � � �� ��� �� ����. � ��

managed_node� ��� �� �����.

-s server

� ��� ��� �� ��� �����. ���� � �� ��� Tivoli

�����.

-y �� ��� � �� ����.

install_variables

�� �� ��=� � �����. ��� �� 285 ��� ��

���� ������.

�: �� ��� ��� �� ���� � �� � � ����. �

�� ����� �����.

managed_node

� Tivoli �� �� �� ��� �����. �� �� �� ��� ��

� � ����. �� ��� ���� � ��, �� � Tivoli region�

� �� ��� ����.

284 Tivoli Management Framework: ���

�� ��

���� �� ��� � ��� �� � �����. Tivoli ��� � ��

� �� ��, � ��� �� ��� � � ��� �� �� �� � � �

���. �� � ��� �� ��� �� � ��� ����� � ��� ��

����.

� ��� ���� Tivoli ��� �� ���� ��� � ����. Tivoli

Management Framework� �� � � ���� ������. �� Tivoli ��

Tivoli Management Framework �� ���� �����. ���� �

� ��� �� ���, � �� �� ��� ����. ��� ��(!)� ��

� ���� �� ��� � �� � ���� ������ � � ����. �

� ��, ���� �� ���� ��� ���� �� �� ��� � ��

�� BIN=!� � ���. � �� �� � � ��� �����.

�� � ��� ��� �����.

BIN=binaries_dir

�� ���� �� �� � ��(/usr/local/Tivoli/bin)� ����

�.

LIB=libraries_dir

�� ����� �� �� � ��(/usr/local/Tivoli/lib)� ���

��.

DB=client_database

�� ����� ������� �� �� � ��(/var/spool/Tivoli)�

�����.

MAN=manpage

�� man page� �� �� � ��(/usr/local/Tivoli/man)� ���

��.

CAT=message_catalog

�� ��� ����� �� �� � ��(/usr/local/Tivoli/msg_cat)

� �����.

�� �� ��� �����.

@CreatePaths@=0 | 1

��� ���� �� ���� �� �� � ���� ��� ��(1)

� �(0)� �����. ����� ���� ���� ����. ���

���� ��� �� ���� �����.

��

Tivoli region�� install_product �� senior� ����.

winstall

� 1 �� 285

��

1. �� ����� Tivoli region�� � �� ��� Tivoli User Administration

����. ��� � ���� �� ��� /cdrom�, �� �� �� ADMIN

���.

winstall -c /cdrom -i ADMIN

2. �� ����� �� �� dan � barney� Tivoli Software Distribution

����. ��� � ���� �� ��� /dev0/cdrom�, �� �� ��

COURIER���.

winstall -c /dev0/cdrom -i COURIER dan barney

3. �� ����� �� �� petra� 2� ����� �� �� ������

Tivoli User Administration �� ����. ��� � ���� �� ��

� /cdrom� �� �� �� ADMIN���.

winstall -c /cdrom -i ADMIN BIN=! petra

�� ��

wclient, wpatch, wserver

winstall

286 Tivoli Management Framework: ���

winstdir

��� �� ��� � ��� ��� �����.

��

winstdir host_name

��

winstdir �� host_name ��� ���� �� ��� � ��� ��� ��

���.

��

host_name

� ���� ��� ���� � �����.

��

user, admin, super, senior

��

�� ����� �� �� bald� �� � ���� �����.

winstdir bald /data/shadow/solaris2/as/bin

�� ��

wdate, wdiskspace, whostid, wifconfig, winterp, wmannode, wmemsize, wping,

wtimezone, wuname, wxterm

� 1 �� 287

winstendpt

����� �� ��� �� � ����.

��

winstendpt ep_behavior [ep_res_type]

��

winstendpt �� � ����� �� ��� ����. ���� ��� ��

����� ����� � ����, � �� �� �� � ����� �

� ��� ��� ��� � ����.

� �� ����� ���� �� ������� ��� �� ��� �����.

��

ep_behavior

��� ����� � �� ��� ���� ���� �����.

ep_res_type

��� �� �� ����� �� �� �����. endpoint_res_type

� ���� �� ��, �� �� �� ���� �����.

��

super, senior

��

�� ����� ManagedNode �� ��� �� �� aef� ����� �

����.

aef_CO=`wlookup -r Classes aef`managednode_CO=`wlookup -r Classes ManagedNode`winstendpt $aef_CO $managednode_CO

288 Tivoli Management Framework: ���

winstlcf

AS/400, OS/2 � Windows 98 ��� � �� ��� ������ ����.

��

winstlcf [-a] [-C locale_name][-D] [-d dir_name] [-e] [-f file_name] [-g

machine[+port] [:machine[+port]] [-i] [-L config_options] [-l ep_port] [-N endpoint]

[-n ep_label] [-P] [-R] [-r policy_region] [-S share_name] [-s dir_name] [-T

account] [-v] [-x TCPIP | IPX] [-Y] host [user_acct passwd]...

��

winstlcf �� �� ��� ������� ����� ���(lcfd)� �� ��

���. � �� ���� OS/400, OS/2 � Windows 98 ��� � �� ��

� ������ �� � ����. OS/400� �� w4inslcf.pl ���� Tivoli

Software Installation Service� ���, OS/2 � Windows 98� �� ���

InstallShield ������ Tivoli Software Installation Service� ������.

�:

v Linux ������� ��, exec� � ���� �� ���. Linux

������ ���� -e �� �� ���.

v UNIX ������� ��, �� ���� ��� C � � � ���

�.

v Windows ������� ��, ���� �� � � ������

InstallShield ���� ���� � ���. �� ������ ��,

winstlcf -N ���� � ������ ���� �� ���. � ���

� � ��� �� ����� �� � Windows ������ ��� �

�����.

����� ����� ���� � �� �����. ����� �� � ��

��� �� �� �� ���� �� ���� -f �� ���� �� ���

���� ������ �� � ����.

� ���� winstlcf� � �� ���� ��, � ���� ���� � ���

lcfd ����� �� ���. � ��� lcfd ����� ��� �� ���. ��

����� ������.

winstlcf �� ���� � ��� ����, � ��� ��� � �� ��

���� ���. ��� ����� �� �� ������.

1. ����� �� ��� ������.

2. ��� ��� �� ��� ��� ���� �� �� ��� �����.

� 1 �� 289

3. -P �� ������.

��

-a ������ ����� ���� �����. � ��� ���, winstlcf

� �� ������ ��� �� ������ ������ ������

�� ��.

-C locale_name

Linux � UNIX ���� ���� �� ������ �� �� ��� �

����. -C ��� ���� � ��, ��� lcfd ���� �����.

-d dir_name

����� ������ �� �� ���� �����. �� ���

UNIX� �� /opt/Tivoli/lcf� Windows� �� c:\Tivoli\lcf���. Linux

�� UNIX ���� Windows ������ �� �, �� �� �� �

�� ��� �����.

-D Windows ���� ���� lcfep ����� ��� �� �����.

-e Linux � UNIX ���� ���� exec �� ���� ����� ��

���.

-f file_name

������ � �� ��� ��� �� �� ��� � ����

�. ���� �� ��� ��� �� �� �� ���. � ��� ��

�, ��� ID, ��, policy region � ������ ��� � ����

��� ��� � ����. �� �� �����.

host_name user_ID password policy_region ep_label

� ��� ��� ��� ����.

host_name

������ ��� ��� ��� �

user_ID

�� �� �� ��� ���� ��� ID

password

user_ID ��� ��

policy_region

���. ������ ��� policy region� �

�: ep_label ��� ������ policy region�� ��� �

��� policy_region ���(″″)� �� ���.

winstlcf

290 Tivoli Management Framework: ���

ep_label

���. ������ ��

�� ��, �� ���� � �� � ����.

red root mstr_Keyorange chris d1n0mite "" orange-epyellow root mstr_Key NYC_PR yellow-ep

-g machine[+port][:machine[+port]]...

IP(Internet Protocol) ��� ��� � ���, ����� �����

� ���� ������ �� �� �����. �� ����� ��

�(:)�� �� ���. �� �� ���� 9494� ��� �� ��

�� ���. -g ��� ���� ������ � ������ ��

�����.

�: NAT(Network Address Translation) ���� ������ IP ��� �

��� ��� ��� �� ���. NAT ����� ����

� IP ��� �� ��� �����.

-i � �� Linux �� UNIX� �� � �� �� ���. �����

Windows ������ �� � � ��� �����.

-l ep_port

������ �� �� �� �����. �� �� �� 9495���.

-L config_options

�� �� ������ ���� lcfd ��� �����. ��� �� �

�� ��� lcfd �� ������. �� ��, lcfd -D ��(�� 5)�

� ��� �� ��� � ����. �� �� �� ����� ���

�� �� ��� �� ��, ���� �� (″)� �� ���.

-n ep_label

���� ���� ����� �� �����.

�: -n �� ���� ��, ����� ��� ��� �����. ��

��� �� �� ���� � ��, �� ������ ��� �

���. ����� �� �� ���� ��(�: -l �� ��) ��

��� ��� ��� �� �����.

v Windows�� �� host-port �����.

v Linux � UNIX�� ���� �� 1�� � �� ��

host-instance �����. instance � $LCFROOT/dat/instance�

��� ���� � �����.

-N endpoint

�� Windows ������ ���� �� � �� ���� �� Windows

winstlcf

� 1 �� 291

������ �����. � �� ���� ��, winstlcf� �� ���

��� � Windows ������ �����. Tivoli Remote Execution

Service� �� �� ����.

-P winstlcf� � ��� ��� ������� ���. � �� �� ���

� �� ��� �� ���� �����. � ��� �� ��� ���

-P �� ���� �� ��, winstlcf� � ��� ��� �� ���

�������.

-r policy_region

������ �� policy region �����.

-R � � ����� ������ � Windows ������ �� ����

���. � �� Tivoli �� �� TivoliAP.dll� ��� �����

� ��� ���� � ��� Tivoli �� ��� ��� ���� �

���.

-s dir_name

����� � ���� �� �� �� ���� �����.

-S share_name

��� �� �(C$) �����.

-T account

Windows ������ �� Tivoli �� �� �� �����.

-v ��� � �� �� ���� �����.

-x [TCPIP|IPX]

IPX ������ ����. ������ ���� ��� �����.

���� ��� ��� ����.

TCPIP

TCP/IP� �����. � �� ������. -x �� ���� �

�� ������ TCP/IP� �����.

IPX IPX(Internetwork Packet Exchange)� �����.

TCP/IP IPX ��� � ����� �� -x=TCPIP,IPX� ���

���. � ������ � TCP/IP ��� � � ����.

-Y �� �� �� ����� �����. ����� � �� �� ���

� � � �� ��� ���� ��� �� �� ����. winstlcf

� � �� ���� �� ��� � �� ��� ��� ���

��.

host [user_acct passwd]

winstlcf

292 Tivoli Management Framework: ���

������ �� ��� � �����. ��� �� ���� ��,

��� ��� ��� �����. ��� �� ����� ����. � �

� �� � ��� �� ��� �� � ��� ��� � ����. �

� ��, ��� �� � � � ����.

winstlcf ’vernon DOMAIN-NT\chris d1n0mite’

Windows ���� � ���� �� user_acct �(��� �) �

��� ��, �� ���� �� ��� �� ��� � �� ��

�. ��� ��� �� ��� �� � � ����.

��

Tivoli �� �� ��� � ����.

��

1. �� ����� vernon��� UNIX ������� ����� ������

�� ��� French� �� � ����� �(lcfd) �����. winstlcf

� �� �� ��� vernon� �� ��� �������. � ���� �

� ���� �����. ������ �� ���� �����.

winstlcf -C fr vernon

2. �� ����� ����� ������ olympus�� Windows �������

�� ����� ���� �����. winstlcf� ��� �� ���

olympus� ��� ��� �������. � ���� fuji(��� Windows �

��� �� �����)�� Windows ����� � ��. ������

olympus� �� ���� ����. ������ �� ���� �����.

winstlcf -N fuji olympus

3. �� ��� Windows �������� �� ��� ��� ���� ���

��� ����. � ����, ������ bonnell �������� ���

steve� �� ��� D� ����. ��� ���� ���� ���(D:\ =

D$)� � ��, -d� D:\tivoli\lcf ���� ��� -S� ��� steve� �

����.

winstlcf -N pctmp107 -d D:\tivoli\lcf -S steve bonnell

4. �� ��� ������ myoung� ����� ������ ����. ���

��� IP �� 123.45.1.12� � �� ��� �����.

winstlcf -g 123.45.1.12 myoung

5. �� ��� ������ ������ bbunny� �� �� ��� lcfd �

�� ���� ����� ��� ����� ���. ����, -g cedar+1616

������ �� ��� � ��� ����� ��� �����.

-Dlcs.machine_name=bbunny-ep � �� � ������ �����.

winstlcf

� 1 �� 293

winstlcf -L "-g cedar+1616 \-Dlcs.machine_name=bbunny-ep" bbunny

6. �� ����� �� cedar � mahogany� ������ ����. � �

���� �� �� ��� �������, ��� �� �� ������

� ����.

winstlcf -P -Y cedar mahogany

7. �� ����� endpt.txt ���� �� �� ������ ����. � �

���� �� �� � �� ������ ����. ������ /usr/lcf�

����.

winstlcf -f endpt.txt -Y -d /usr/lcf

8. �� ����� IPX� ���� NetWare ����� lux� ��� ����

� vernon ���� ���� Windows ����� antonella� ��� ���

agodino� ����.

winstlcf -x IPX -N vernon -g LUX+7787 -n antonella agodino

�� ��

lcfd.sh, wdelep

winstlcf

294 Tivoli Management Framework: ���

winterp

��� �� ��� ����� �� �����.

��

winterp host_name

��

winterp �� host_name ��� ���� �� ��� �� ����� �� �

����.

��

host_name

����� �� ��� ��� � �����.

��

user, admin, senior, super

��

�� ����� �� �� bald� �� ����� �� �����.

winterp baldsolaris2

�� ��

wdate, wdiskspace, whostid, wifconfig, wmannode, wmemsize, wping, wtimezone,

wuname, wxterm

� 1 �� 295

wlcftap

Windows ������ Tivoli �� �� �� ����.

��

wlcftap [-a | -d][-B] [-P][-r [domain_name\user_name | user_name]] [-k]

��

wlcftap �� � ������� Tivoli �� �� TivoliAP.dll� �� �

���. � �� ���� Tivoli Management Framework� ��� ����� �

� �� ���� ��� � ����. Windows �� ���� setuid ���� �

�� � ����. �, ��� ��� ���� ������ ���� ��� � �

���. �� �� ��� ��� �� ��� ��� Tivoli Management Framework

�� �� ���� ������.

Tivoli �� �� �� ��� �� �����. Tivoli� � �� ���� �

� �� ���� �����.

wlcftap �� �� �� ���� �� �� �� TivoliAP.dll��� �� ���

�����.

����� Tivoli �� rgion ��� �� �� ���� Tivoli �� ��� �

� ���� �� ��� �� �� ����� �����.

��

-a Tivoli �� �� �� � �� � �� ��(LSA)�� TivoliAP.dll

�����. ��� �� � �� ���� ���. TivoliAP.dll ��

��� �� ��� � LSA� � �����.

-B �� ��� ���� � �� ��� ���� ���� ��� ����

�����. �� ��� ���� ���� ���� ����� -P �� �

�����.

-d Tivoli �� �� �� � ��� LSA� TivoliAP.dll �� ���

��. TivoliAP.dll �� ��� �� ��� � LSA� � ����. (�

�� Tivoli Management Framework� � ���� �� ��� � ��

��.)

-k wlcftap� user_name� �� ��� � � �� ��� �����. -k�

���� ���, wlcftap� ����� ��� �������.

296 Tivoli Management Framework: ���

-P �� ��� ���� ���� ��� ���� �����. �� ����.

�� ��� ��� �� �� ��� ���� ���� ���� ����

� -B �� ������.

-r [domain_name\user_name | user_name]

Tivoli �� �� �� user_name�� ����. Tivoli� � ��� �

� ���� �� �� ���� �����. user_name �� ��� �

��(/) �� ���(\)� ���� �� � ����. ���� ��

� ���� Tivoli �� ��� ���� ��� � ������ � �

��� ����� ����� ���. ���� ���� � ��,

Windows� � ����� ���� ����� ��� ���� ����

�. wlcftap -r ″″ Tivoli� �� �� ���� ��� � �� ���.

����� �� ����� ����� �� ���� �� �����

�.

��

��� ��� ���. �� �� wlcftap� ����� Tivoli admin ��� ��

��. � �� ���� � ����� ��� Windows NT ��� ��

��.

��

�� ����� Tivoli �� �� �� userTME�� ��� ���� ���

�. wlcftap� pswd.file �� ���� userTME� �� ��� ����.

wlcftap -r userTME -k < pswd.txt

wlcftap

� 1 �� 297

wln

��� ��� �����.

��

wln [-I] label... collection

��

wln �� ��� �� �� ��� ��� ��� �����. label �

collection �� � �� �� �� �� ��� � ����.

� �� ���� ������ ���� ��, wep sync_gateways �� ���

� Tivoli �� rgion� ����� ���, ����� � ������ �� ��

��� ���� ������.

��

-I ��� � � �� ��� ��� � ����� ���. � ��

�� ��� ��� ��� �� �����. -I �� �� ��� �

� �� ��� ��� ����, �� ��� �� ��� � �

���. � ��� ���, �� ��� �� �� ��� ���� ��

�� �� ��� � ��� ��� �� � ��� �����. �

�� � ��� ��� � ��� ���� ���.

collection

��� ���� ��� ��. � �� �� �� ��(‘/’ ��

�� ��), �� �� ��(�� �� ��� ���) �� �� �

(�� �� ���� ����) � ��� � � ����. ��� ��

� ��� ��� ���� ���.

label... ��� ��. � �� �� �� ��(‘/’ ���� ��), ��

�� ��(�� �� ��� ���) �� �� �(�� �� ���

� ����) � ��� � � ����.

��

admin, senior, super

��

�� ����� wcrtadmin �� ���� ��� ���� ��� � wln �

��� Tivoli Management Region �� ���� ��� �� �� ���

�� �� ��� ���� ��� �� �����.

298 Tivoli Management Framework: ���

wcrtadmin -a jack -r global,backup:admin:user \-r @ceridwen-region,admin:senior:user \-r @Administrators,admin:user -r @Scheduler,admin:user \-n "Tivoli Administration" -n "Tivoli Authorization" \-n "Tivoli Diagnostics" -n "Tivoli Scheduler" -u jack -g staff \"Jack Frost"wln /Administrators/Root_ceridwen-region/ceridwen-region \/Administrators/"Jack Frost"wln /Administrators/Root_ceridwen-region/Scheduler \/Administrators/"Jack Frost"

�� ��

wep, wmv

wln

� 1 �� 299

wlocalhost

Windows ����� � ��� � ����.

��

wlocalhost [host_name]

��

wlocalhost �� Windows ����� � ��� � ����. host_name

���� ���, wlocalhost� �� ����� �� ��� � ����

�.

��

host_name

� ��� � �����.

��

� ��� ���

300 Tivoli Management Framework: ���

wlocktmr

�� Tivoli region ���� �� �����.

��

wlocktmr -p

wlocktmr -e cmdstring

��

wlocktmr �� �� Tivoli region ���� �� �����. � ��� �

�� ���� � � ���� ��� � ����. � �� ���� � ��

Tivoli ����� �� ���� ������.

� �� ���� wlocktmr ��� � ����. � � �� region ���

�� ���� �� ��� ���. ��� ��� -p �� ������. -p

�� region ���� �� ��� ����� ��� ��� �������.

�� ��� ���� � � �� ��� � ����.

wlocktmr ���� � � �� � ���� �� ����� �� �� �

� � �� ���� ���. ��� ��� -e �� ������. -e ��

Tivoli region ���� �� ��� ��� ���� �� ���� �� �

� �� �����.

�� �� ����� vi ��(�� ��� ��� �)� ������. ��� �

� ���� ����� chmod� ������. �� �� -e ��� �� ��� �

���� wlocktmr �� ������.

��

-e cmdstring

Tivoli region ���� �� ��� cmdstring� ���� �� ��

� �� ���� �� �����. cmdstring �� �� �� � ���

� � ����.

-p Tivoli region ���� �� ��� kill� ��� ����� ����

���.

��

super

� 1 �� 301

wlocpath

� ���� ���� �� ��� �����.

��

wlocpath path [-d default_path] [-l language] [-o output]

��

� �� � ���� ���� ��� � � � � ��� �����. ��

� ���� ���, �� ��� ���� ����.

�: � tis_get_loc_path ��� �� CLI(command line interface) �����.

wlocpath �� LANG �� ��� ���� �� �� ��� ��� ��� �

���� ����. �� ��,

LANG=fr_FR

NLSPATH=/tivoli/msg_cat/%L/%N.cat;\/tivoli/msg_cat/%L%N.cat;\/tivoli/msg_cat/C/%N.cat

wlocpath �� ��� ����� �� � �� �� � �����.

/tivoli/msg_cat/fr_FR/catalog_name.cat/tivoli/msg_cat/fr/catalog_name.cat/tivoli/msg_cat/C/catalog_name.cat

���� ��� ���� �, � �� ���� � � � �����.

��

-d default_path

�� ��� �����. ��� path ���� ��� ��� �� � ���

� ��, � ��� �����.

-l language

�� � �����. � �� ���� ��� �� LANG �� ���

�����.

-o output

� � � ���� ��� � ��� � �����.

path �� ��� � ���. � ���� “%L”� �� ���, �� ���

�����.

302 Tivoli Management Framework: ���

��

� ����� ���� � �� Tivoli �� rgion �� �� �� ����.

��

�� ����� query.txt �� ./msg_cat/%L ���� ����.

wlocpath./msg_cat/%L/query.txt -d/tmp -l fr

��� � ��� �� LANG �� �����. � ��� ��� -d ��� /tmp �

�� ����. ��� ��� ��� -l ��� /fr ��� ����.

wlocpath

� 1 �� 303

wlookup

Tivoli � ������ �� ����� �����.

��

wlookup [-l] -R

wlookup -a [-L | -o] -r resource_type

wlookup -r resource_type resource_name

wlookup -r resource_type -n instance_name {resource_name | -a}

��

wlookup �� Tivoli � ������ ��� �� ��� �����. �

�� ���� �� ��, �� �� �� distinguished���. -L�� -o� �

���� ���, ��� ��� �� ID ��� � � �����. -l � -R

� ���� ��, ��� �� ��� �� ����� �����.

��

-a � ����� ��� �� ��� � ����� �����.

-l �� ��� ��� ��� �����.

-L �� ��� �� ��� ��� �� �����.

-n instance_name

��� ���� ���� ��� �� ����.

-o �� �� ��� ��� �� ���� �����.

-r resource_type

��� �� �� �����. ��� ��, �� �� �� �����.

-R ��� � �� ��� �� ����.

resource_name

��� ���� � �����.

��

user, admin, senior, super

��

1. �� ����� Tivoli � ������ ��� � �� ����.

wlookup -a

304 Tivoli Management Framework: ���

2. �� ����� ��� �� �� �� � ����.

wlookup -R

3. �� ����� policy region �� ��� ����� � ����.

wlookup -r PolicyRegion -a

4. �� ����� �� ��(TaskLibrary)� �� ����(MyTask)� �� �

� ��� ����.

wlookup -r TaskLibrary MyTask

5. �� ����� �� �� vail� TaskExecute �� ����.

wlookup -r ManagedNode -n vail TaskExecute

�� ��

wregister

wlookup

� 1 �� 305

wls

��� ��� ��� �����.

��

wls [-dlo] [path]

��

wls �� ��� ��� ��� �����.

��

-d �� ���� �� ��� � �� ��� �� ��� �����.

-l �� ��� � ���� �� �����.

-o � ���� �� ���� �����.

path ���� ��� �� ��� �� ��� �����. path ��� �

�� �� ��� ����.

v @ProfileManager:prof_manager_name

v /Regions/PolicyRegionName/prof_manager_ name

�� �� �� �� �����.

-l � -o ��� ���� ��, � �� ���� ��� �����.

��

��� ���� ���� ��� user ��� �� ���.

��

1. �� ����� �� �� ��� ��� �����.

wls

2. �� ����� �� ID � ��� ��� �� �����. �

�� ����� ����� Tivoli ��������� ���� �� ���

(�� �� ��)� ��� � �����.

wls -l /Administrators

3. �� ����� ��� Jorge� ���� �� ��� �����.

wls @Administrator:jorge

�� ��

wcd, wpwd

306 Tivoli Management Framework: ���

wlsconn

�� Tivoli �� rgion �� �� � ��� �� ��� ���, �� ����

� ��� � �� ���� �� �� � �����.

��

wlsconn [region_name]

wlsconn -u region

��

wlsconn �� region �, ��, �� � � ��� ����� �� �� �

��� �� Tivoli Management Region �� ��� �����. -u ��� ���

� ��, wlsconn � region� ��� �� region ��� �� �� � ��

���. ��� ���� �� ��, wlsconn� � region� �� �� �� �

�����.

��� region ���� �� �� �, wlookup -l -R ��� � � wlsconn

��� � � �� ��� �� ���� � �����.

-u �� ����, �� ����� ��� � �� �� wlsconn� �� �� �

�����. �� ��� ���� � �� ���� ��, � �� ���� �

�� ��� �� ���� ��, � �� -u ��� �� ���� �� ���

� ���.

��

-u region

Tivoli Management Region �, �� �� � � �� �� region�

��� ��� �� region� �� ��� �����.

region_name

�� Tivoli Management Region� � �����.

��

-u ��� ���� �� super, ��� ��� user.

��

1. �� ����� � Tivoli Management Region��� � �� �� ��

���.

� 1 �� 307

wlsconnMODE NAME SERVER REGION<--> morie-Region morie 3333333333---> amon-sul-Region amon-sul 5555555555<--- ceridwen-Region ceridwen 2222222222

2. �� ����� � region� morie_region��� region�� ��� �� �

� ��� �����.

wlsconn morie-RegionName: morie-RegionServer:morieRegion:3333333333Mode:two_wayPort:94

Resource Name Last Exchange--------------- ---------------TMF_Notice Fri Jan 09 11:33:10 1998Administrator Fri Jan 02 13:13:15 1998PolicyRegion Tue Jan 13 10:00:38 1998TaskLibrary Tue Nov 04 10:02:34 1997Job Wed Dec 31 19:00:00 1969QueryLibrary Wed Dec 31 19:00:00 1969Query Wed Dec 31 10:00:00 1969ProfileManager Wed Nov 05 17:49:38 1997ManagedNode Tue Jul 07 19:24:34 1998Repeater Thu Sep 04 10:04:32 1997CheckDB Thu Sep 04 20:04:23 1997RemoveNode Thu Sep 04 20:04:23 1997HTTPRealm Tue Nov 04 20:03:22 1997HTTPRealmMakerGroup Thu Sep 04 20:07:22 1997HTTPRealmMaker Thu Sep 04 20:07:23 1997DependencyMgr Thu Sep 04 20:07:23 1997Gateway Wed Dec 31 19:00:00 1969Endpoint Wed Dec 31 19:00:00 1969

3. �� ����� � region� morie_region��� region�� �� ���

����.

wlsconn -u morie-Region

�� ��

wconnect, wdisconn, wlookup, wupdate

wlsconn

308 Tivoli Management Framework: ���

wlsendpts

���� ���� ��� � ������ �����.

��

wlsendpts [-l] profile_manager

��

wlsendpts �� �� �� ���� ��� ���� ���� ��� � ���

��� �����. ��� ������ � � �� �(�, ���� �����

����)��� � ��� � �� �(���� ����� ���� ���, �

� ���� ����� ������ �)� � � ����.

��

-l ����� �� �� ������ �� ID� �����.

profile_manager

����� �� ��� ���� ��� � �����. profile_manager

��� ��� �� ��� ����.

v @prof_manager_name

v @ProfileManager:prof_manager_name

v /Regions/PolicyRegionName/prof_manager_ name

��

user

��

�� ����� Admin ���� ���� ��� ������ �����.

wlsendpts "@ProfileManager:Admin PM"pepper (ManagedNode)gumby (ManagedNode)

� 1 �� 309

wlsinst

Tivoli Management Region� �� ��� ��� �����.

��

wlsinst {-a | -h | -l | -p | -P | -s name | -V} [-i] [-v] [-h]

��

wlsinst �� � ��, � �� �� ��� ��� �����. ��� -i, -v �

� -h �� ���� ���� �� ��� ��� ��� �����. -s name �

� ��� ���� ��� �����. ��� �� �� �� �� � �

� �� ���.

��

-a Tivoli Management Region� �� � ��� ��� �����.

-h �� �� ��� �� ��� ����� ��� ��� � �����.

-i � ����� ���� � ���. � �� -v �� -h � �� �

� �� ���.

-l ��� ��� � �� � ��� �����. ��� ��� ��� �

����.

-p Tivoli Management Region� �� � �� �����.

-P Tivoli Management Region� �� � ��� �����.

-s name

name�� ��� �� �� ��� �����.

-v � ���� ��� �� ���(�: ���, ���� �� man page)

� �� � ��� �, ����� �� � ���� �����.

-V � ���� ��� � ���, �� � � �� �� � �� �

�� �����.

��

super, senior, admin �� user

��

1. �� ����� Tivoli Management Region� �� � �� � ��� ��

���.

310 Tivoli Management Framework: ���

wlsinst -a*---------------------------------------------------*

Product List*---------------------------------------------------*Tivoli Management PlatformTivoli/Admin 2.5*---------------------------------------------------*

Patch List*---------------------------------------------------*Tivoli Management Platform 3.0 Patch 3.0-TMP-0005Tivoli Management Platform 3.0 Service Pack 01

2. �� ����� Tivoli Management Region� �� ��� �����.

wlsinst -p*---------------------------------------------------*

Product List*---------------------------------------------------*Tivoli Management PlatformTivoli/Admin 2.5

3. �� ����� �� ��, � ��� �� ��� �� ����� �� �

� ��� �� ���� �����.

wlsinst -p -v*---------------------------------------------------*

Product List*---------------------------------------------------*Tivoli Management Platform

ida solaris2ALIDB /var/spool/Tivoli ida.dbAPPD /usr/lib/X11/app-defaultsBIN /usr/local/Tivoli/bin solaris2BIN /usr/local/Tivoli/bin solaris2BUN /usr/local/Tivoli/bin client_bundleCAT /usr/local/Tivoli/msg_catCONTRIB /usr/local/Tivoli/bin solaris2/contribGBIN /usr/local/Tivoli/bin generic_unixLIB /usr/local/Tivoli/lib solaris2

tornado solaris2APPD /usr/lib/X11/app-defaultsBIN /usr/local/Tivoli/bin solaris2CAT /usr/local/Tivoli/msg_catCONTRIB /usr/local/Tivoli/bin solaris2/contribDB /var/spool/Tivoli tornado.dbGBIN /usr/local/Tivoli/bin generic_unixLIB /usr/local/Tivoli/lib solaris2

wlsinst

� 1 �� 311

wlsnotif

���� ���� ��� �����.

��

wlsnotif [-g]

wlsnotif [-l] [-n ngroup]

��

wlsnotif �� ���� ���� ��� �����. -g �� wlsnotif� � �

�� ����� �����. -l �� wlsnotif� �� ��� �� ��� �

�� ����� �����. -n �� wlsnotif� ��� �� ��� ��� �

���� �����. -n ���� � �� ��� �� ���� �����.

wlsnotif� ��� ���� ��� � �� ��� � ��� �����. wlsnotif

�� �� �� ���� ��� �� ��� ���� �����. � ���

� ��� � � � � �����.

��

-g ��� �� �� �� ��� �����. � �� ���� �� ��

�����.

-l ���� ���� �� ��� ��� �����. � �� ���� � �

� �� ��� �����. � 40�� � ��.

-n ngroup

��� ��� �� �� �� ��� �� ��� �����. � �� �

��� � �� � �� ��� ��� �����.

��

user, admin, senior, super

��

1. �� ����� � �� ��� � ��� �����. � � �� ��

��� ��� ��� ���.

wlsnotifDate: Mon Nov 21 10:29:12 1994Notice-Group-Name: Tivoli AdministrationPriority: NoticeSent-By-Administrator: root@bald

A new IP interface was added on bald by [email protected]: le1address: 146.84.49.3name: bald2

312 Tivoli Management Framework: ���

2. �� ����� ���� ��� � �� �� �����.

wlsnotif -gTivoli AdministrationTivoli AuthorizationTivoli DiagnosticsTivoli Scheduler

3. �� ����� ��� ���� � ��� ��� �����.

wlsnotif -l11/21/01 10:29:12 CST A new IP interface was added on11/21/01 10:30:25 CST An IP interface was deleted from11/21/01 10:34:32 CST Deleted Objects11/21/01 10:37:08 CST A new task, date_task, was11/21/01 10:39:35 CST The task, date_task, of the11/21/01 10:49:33 CST The task, date_task2, of the11/21/01 10:50:45 CST The task, date_task2, of the11/21/01 10:55:52 CST A new task, find_cores, was

�� ��

wexpnotif, wsndnotif, wtailnotif

wlsnotif

� 1 �� 313

wlspol

Tivoli �� �� ��� � �� ��� policy �� � ��� �� ��� �

����.

��

wlspol [-d | -v] resource

��

wlspol �� ��� �� �� ��� �� policy �� �� policy ���

�� ��� � �����.

��

-d ��� �� �� ��� �� policy �� ��� �� �����.

policy �� ��� policy region�� ��� ��� �� �� ��

�����. -v ��� ���� ��� � ��� ������.

-v ��� �� �� ��� �� policy ��� �� ��� �� ��

���. policy ��� �� ��� �� ��� �� ��� ���

�����.

resource

policy �� �� �� policy ��� �� ��� ��� �� ��

�� �����.

��

senior, super

��

�� ����� ProfileManager �� �� ��� �� � policy ��� �� �

�� �����.

wlspol -v ProfileManager

�� ��

wchkpol, wcrtpol, wcrtpr, wdelpol, wdelpr, wgetdfpol, wgetpolm, wlspolm,

wputpolm

314 Tivoli Management Framework: ���

wlspolm

Tivoli �� �� ��� �� policy ���� ����� ����� �� � �

�����.

��

wlspolm [-d | -v] class

wlspolm [-d | -v] profile

��

wlspolm class �� ��� �� �� �� class� ��� policy ���� �

�����. wlspolm profile �� ��� profile� �� � �(policy� ��

��� � � �� ��) �����. ��� �� policy ���(�: ���,

NIS(Network Information Services) ��� �� �� ��) �� ���� ��

�� � �� �� ��� � ����.

� ���� ���� � wgetpolm� wputpolm ��� �� � �� ���

� ����.

-d �� �� policy(���)� ��� -v �� ��� �� policy� ����

�. �� Tivoli ������� �� �� � ��� �� policy� ���� ��

���� �� ���� ������.

��

-d policy �� ���� �����. -v ��� ���� ��� � ��� ��

����.

-v policy ��� �� ���� �����.

class policy ���� ��� �� �� �� �����.

profile � �� ��� ���� �����.

��

senior �� super

��

1. � ���� ���� ��, �� ����� ProfileManager policy ��� �

� ��� � policy ���� �����.

wlspolm -v ProfileManagerpm_val_remove_subscriberspm_val_remove_subscriptionpm_val_subscriberspm_val_subscription

� 1 �� 315

2. �� �� �� ���(CCMS) ���� ���� ��, �� �� Engineering

��� ��� �� ����� � policy� ����� � � �� �� �

����.

wlspolm -d @PhoneListProfile:Engineeringnamephoneaddresscitystatecountrypostalownertypecomment

�� ��

wchkpol, wcrtpol, wcrtpr, wdelpol, wdelpr, wgetdfpol, wlspol, wputpolm

wlspolm

316 Tivoli Management Framework: ���

wlsrealms

��� ��� HTTP 1.0 �� ��� �����.

��

wlsrealms

��

wlsrealms �� �� ��� HTTP 1.0 �� ��� �����.

��

��

��

user, admin, senior, super

��

�� ����� �� ��� HTTP 1.0 �� ��� �����.

wlsrealms

�� ��

waddrealm, wdelrealm, wstarthttpd, wstophttpd

� 1 �� 317

wlssub

�� ��, NIS(Network Information Service) ���, ����� �� ���� �

��� ��� ��� ���� ���� ���� �����.

��

wlssub -l [-o] name

��

wlssub �� �� ��, NIS ���, �����, ���� ��� �� �� �

�� ���� ���� ���� �����.

��

-l � �� �����.

-o ��� ���� � ���� ���� �� ID� �����. � �

�� �� ��, NIS ���, ����� �� ���� ���� ���

� ����.

name �� ��� ��� �� � �����. name ��� ��� ��

��� ����.

v @domain_name

v @NisDomain:domain_name

v /Regions/PolicyRegionName/domain_name

��

user, admin, senior, super

��

�� ����� �� �� cook� ���� � ���� ���� �����.

wlssub @ManagedNode:cook

�� ��

wcrtpr, wcrtprfmgr, wdistrib, wgetprf, wgetsub, 350 ���� �wpopulate�, wsub,

wvalidate

318 Tivoli Management Framework: ���

wlstlib

��� ����� �� �����.

��

wlstlib library_name

��

wlstlib �� ��� ����� �� �����.

��

library_name

��� ����� � �����.

��

user, senior, super

��

�� ����� queue_lib ��� ����� �� �����.

wlstlib queue_libClean Queue (task)Clean Queue (job)

�� ��

wcrttlib

� 1 �� 319

wmailhost

Windows NT � Windows 2000 ����� Tivoli Management Framework� �

��� �� ��� �����.

��

wmailhost [host_name]

��

wmailhost �� Tivoli ��� Windows NT � Windows 2000 ����

SMTP(Simple Mail Transfer Protocol) �� �����. Tivoli Management Region

�� �� �� ���� ���� � Windows NT �� Windows 2000 ���

�� wmailhost� ������. �� � ���� Tivoli ��� �� ���

� ���� �� ��� ����. host_name ��� ��� wmailhost� �� �

� ��� �����.

�� ��� SMTP �� �� SMTP ������ ��� ��� ���. �� �

�, ���� �� ��� Windows NT ���� Microsoft Exchange �� Lotus

Notes� �� ���� ���� SMTP ����� ������ � ���.

SMTP �� � ��� �� ��� ��� Tivoli Enterprise � ���� ���

���.

��

host_name

�� ��� ��� � �����.

��

�� ����� �� ��� loki� ����.

wmailhost loki

320 Tivoli Management Framework: ���

wmannode

Tivoli ��� �� �� ��� �� ��� ��� �����.

��

wmannode node_name

��

wmannode �� Tivoli ��� �� �� ��� �� ��� ��� �����.

�� ��� � ��� ��� � � ��� �� �� ���.

��

node_name

�� �� � �����.

��

user, admin, senior, super

��

�� ����� �� �� yankee� �� ��� ��� �����.

wmannode yankeeSystem Name : yankeeInterpreter : solaris2Install Directory : /usr/local/TivoliHost ID : 945bd30System Architecture : sun4mMemory Size (MB) : 48System Timezone : 360OS Name : SunOSOS Release : 5.3OS Version : Generic_101318-21

�� ��

wdiskspace, whostid, wident, winstdir, winterp, wmemsize, wtimezone

� 1 �� 321

wmcast

MDist 2 �� �� ��� �� repeater� �����.

��

wmcast -s repeater_name [keyword=value...]

wmcast -p {repeater_name | all}

��

wmcast �� MDist 2 �� �� ��� �� repeater �� ����. ���

��� ���� LAN ���� ���� �� ���. ��� � � ��

� � �� ��� ���� ��, � �� �� ��� �� �� �� repeater

� ������.

��

-p ��� ����� repeater� ��� � ������ �� �� ping �

���.

-s �� �� � � � �� �� ���� repeater� �����. �� �

��� ��� ��� repeater� �� �� ��� ����.

repeater_name

��, repeater� �� ID �� �� �� � ��� �����.

all �� � ��� � repeater� �����.

default

��� repeater� �� �� � �����. � ��� -p �

�� �� ��� � ����.

keyword=value

�� � � ��� ����.

backofftm=time_in_milliseconds

�� ��(���) �����. ���� �� �� �� ��

�� ���� ���� ����� ���� �� 0ms � ��

� � ��� ms ��� ��� �� �� � �� ��. ���

� � �����. ���� � ��� � � �� ��� ��

���� ���. ��� 100���.

blocksize=size_in_bytes

���� ����� ���� � � ���� ��� ��(���)�

�����. ��� ��� 65535����� �� ���. ���

1460����� ��� ��� �� �� �(MTU)���.

322 Tivoli Management Framework: ���

connrty=retry_count

�� �� ���� ����� �� ���� �� �� ����

��� �����. ��� 5���.

connwtout=milliseconds

���� �� �� � �� �� ���� ���� ��(���)

�����. ��� 2000���.

dtrtry=retry_count

�� �� ���� ��� �� ����� �� ��� ��� �

����. ��� 10���.

dtwtout=time_in_milliseconds

��� ��� ��"�� �� ���� ������ �� ����

��(���) �����. ��� 3000���.

ifrcvaddr=address...

�� �� �� ��� � ���� ���� IP ��� �� �

����. �� ��� ��� ��� ���(;)�� ��� ��

(″)� �����. ��� ���� ���, ��� 0.0.0.0���.

ifsrcaddr=address

�� �� �� ��� � ���� �� ��� ����� IP

��� �����. ��� 0.0.0.0���.

mcadvert=address

�� �� ���� ��� �����. mcadvert� ��� ��� �

�� ��� ��, �� �� ��� �� ��� ����� ��

���� �� ���. ��� 224.0.1.118��, � � Tivoli

�� ��� IANA �� �����.

mchigh=highest_address

�� �� ���� ��� � ��� � � ��� �����.

��� �� �� ���� �� ��� �� ��� mclow mchigh

��� ��� ���� �� �� ��� ���� ��� � ��

��� �����. ���� ��� ��� �� �� ��� ���

���� � ��� ��� �� ���� � �����. �

�� �� �� ��� ��� mchigh� ��� ��� � ��

��. ��� 224.2.255.255���.

mclow=lowest_address

�� �� ���� ��� � ��� � � ��� �����.

��� �� �� ���� �� ��� �� ��� mclow mchigh

��� ��� ���� �� �� ��� ���� ��� � ��

��� �����. ���� ��� ��� �� �� ��� ���

wmcast

� 1 �� 323

���� � ��� ��� �� ���� � �����. �

�� �� �� ��� ��� mchigh� ��� ��� � ��

��. ��� 224.2.128.0���.

mc_netload=bytes_per_second

repeater� ����� ��� ���� ���� ��� ����

�/� �� �����. ��� 500000���.

mc_debug_level=trace_level

�� � �����.

0 �� ��� ���� ����.

1 ��� �����.

2 �� �� ��� �����.

3 ��� � �� �����.

�� � �����. �� ��� � repeater�� ��

$DBDIR\mcast.log� �����. ��� 1���.

pollrtry=retry_count

�� �� ���� �� ��� ���� � ����� ����

�� ��� �����. ��� 5���.

port=port_number

�� �� �� � �� �� ���� ��� �� �� ����

�. ��� 9499���.

rcvbufsz=size_in_bytes

UDP ��� �� �� ��(���)� �����. ��� 67108864

���.

relrty=retry_count

�� �� ���� ����� �� � ���� �� ����

��� �����. ��� 5���.

relwtout=time_in_milliseconds

� ���� ��� �� ���� �� �� ��� ����

���� ��(���) �����. ��� 2000���.

repeat=count

��� �� �� �� ��� ��� �����. �� ��� �

�� �� �� � �� ��� � ����. ��� 2���.

returnIP=address

���� ���� ��� IP ��� �����. �� ��, �� �

wmcast

324 Tivoli Management Framework: ���

��� �� � ��� ��� �� ��� ��� � �� ��

� ����� �� �����. �� IP ��� ��� IP ��

����. ��� 0.0.0.0���.

sndbufsz=size_in_bytes

UDP ��� �� �� ��(���)� �����. ��� 67108864

���.

ttl=count

time-to-live ��� �����. ��� ���� �� ��� � �

� ��� �����. ��� ���� � ��� � � ��� �

� ��. 0� ���� ��� �����. �� �� ��� ��

� ��� ��� ��� � �� ������. ��� 5���.

��

senior, super

�� ��

wdepot, wmdist, wrpt

wmcast

� 1 �� 325

wmdistrepeater � �� MDist 2 ��� �����.

��

wmdist -B [-A] [-f] repeater_name

wmdist [-f] -c dist_id [dist_id...]

wmdist [-f][-h] -d dist_id [dist_id...]

wmdist -D [debug_level]

wmdist -e dist_id [-t ep_label][-n node_type][state...]

wmdist -I repeater_name

wmdist -l [-a][-i dist_id][-v]

wmdist -m dist_id [-t ep_label][-n node_type][state...]

wmdist -M [TRUE | FALSE]

wmdist [-f] -p dist_id

wmdist -q dist_id

wmdist [-f] -r dist_id

wmdist -R [rim_object]

wmdist -s [-C [noprompt | nostart | nostop]]repeater_name [keyword=value...]

wmdist -T [database_purge_interval]

��

wmdist �� MDist 2 repeater �� ��� ��� �����. MDist 2 �

��� ���� repeater� ����� wrpt �� ������. RIM(RDBMS

Interface Module) ��� ���� � ��, -s � -I ��� ��� � ��

��. MDist 2 � � ���� �� ��� ��� Tivoli Management Framework

��� ���� ������.

��

-A ���� � �� �����. ���� �� �� �� �� �

326 Tivoli Management Framework: ���

�� �� -A �� -B ��� �� ������. Tivoli ��� ����

� ���� ���� � �� ������.

-B repeater_name

��� � �� �����. � �� ��� � �� ��� ���

� � � ����.

v ������ ���� ���� ������ ��� �� �� ��� �

�� ��

v wmdist -I �� ��� � �� �� �� ��� � ����

repeater �� ��� ����� ��� ��

repeater ��� �� ��� �� ������� ���� ��� ��

����. Tivoli ��� ����� ���� ���� � �� �����

�.

-c dist_id [dist_id...]

�� ��� �� �� ��� �����. ��� dist_id� �����.

-d dist_id [dist_id...]

MDist 2 �������� �� ��� ��� �����. ��� dist_id�

�����.

-D [debug_level]

�� ���� � �� ��� $DBDIR/distmgr.log� ���� �� ��

�� � �����. debug_level �� 0(�� ��)�� 9(�� ��)�

� �����. ��� 0���. � �� ���� � �� ����

��� ��� ��� � ��� ��� � � ��. � ���� �

� �� ���� �� �� �����.

-e dist_id [-t ep_label][-n node_type][state...]

��� �� ����� ��� �����. ��� ��� ����.

-n node_type

repeater� ������ ���� � ������.

-t ep_label

��� ������ �����. ������ ���� ��, wmdist

�� � ������ ��� �����. ��� ���, �

������ ��� �����.

state ��� ��� �� ��(����� � repeater)� �� ��� ��

���. ���� ���, wmdist �� � ��� �� ��� �

����. ���� ��� ��� ����.

v CANCELED

v EXPIRED

wmdist

� 1 �� 327

v FAILED

v INTERRUPTED

v PAUSED

v READY

v RECEIVING

v REJECTED

v SENDING

v STORED

v SUCCESSFUL

v UNAVAILABLE

v WAITING

-f �� ��� � �� ����� �����.

-h ���� � ��� �������� �� �����.

-I repeater_name

repeater� �� �� �� ��� �� ��� ��� � � ��� ���.

-l [-i dist_id][-a][-v]

�� ��� �����. �� ��� ����.

-a �� �� ��� �����.

-i dist_id

�� ID� �����. dist_id� ���� ���, wmdist ��

� ��� �� ��� �����.

-v ��� �� � ��� �����. -v� ���� ���, wmdist

�� �� � ��� �����.

-m dist_id [-t ep_label][-n node_type][state...]

��� �� ���� �����. ���� � -e �� ������.

-M [TRUE | FALSE]

�� �� MDist 2 ��� �� ������ ������� ������

�� ����� �����. � ��� ������ �������

�� ���� ��� TRUE� ������. ��� � �� FALSE� �

�����. �� ���� ��� �� �� ����.

-p dist_id

��� �������.

-q dist_id

��� �� ��� ��� ���� ���� ���� ���� ���

�. ��� � ��� ��� ���� ����.

wmdist

328 Tivoli Management Framework: ���

-r dist_id

��� �����.

-R [rim_object]

���� �� ���� ��� ��� � ���� RIM ��� ��

� � �� ���. ��� MDist 2���. � ���� � � ��

���� �� �� �����.

-s [-C [noprompt | nostart | nostop]] repeater_name [keyword=value...]

�� �� � � � �� �� ���� repeater_name�� ���

repeater� �����. �� ���� ���, ��� repeater� �� �� �

�� ����. keyword=value �� ���� ���, wmdist -s �� �

� �� �� �� �����.

-C [noprompt | nostart | nostop]

����� repeater� ������� �� �� ���� ���

���� �� �����. �� ��� ����.

noprompt

repeater� �� ��� � �� �� ���� ���

� ���� ����. ������ ��� ������ �

� �� � ������� �� �� ���� �����

��� �� �� � ����. � ��

endpoint_multicast=TRUE� � ��� � ����.

nostart

repeater� ������� �� �� ���� ���� ��

�� ��� ����. � �� endpoint_multicast=TRUE

� � ��� � ����.

nostop

repeater� ������� �� �� ���� ����� �

� ���� ��� ����. � ������ �� �� �

� ���� �� �����. � ��

endpoint_multicast=FALSE� � ��� � ����.

�: -C �� endpoint_multicast �� ��� ��� � ��

��. �� �� �� ���� � �� �����.

repeater_name

��, repeater� �� ID �� �� �� � ��� ����

�.

all �� � ��� � repeater� �����.

wmdist

� 1 �� 329

default

��� repeater� �� �� � �����.

keyword=value

�� � � ��� ����.

conn_retry_interval=seconds

��� � ��� ��"�� ��� ����� ��(�)� �

����.

debug_level=number

�� �� repeater� �� �� ��($DBDIR/rpt2log)� �

��� ���� �����. ����� repeater� ��

�� wgateway debug_level �� ���� ����

�.

default_multicast=TRUE|FALSE

�� ��� � MDist 2 ��� �� ���� ����

�. � �� �� Tivoli ������� ��� � ���

�. �� ���� ��� TRUE� ������. �� �

��� ��� FALSE� ������. ��� false���.

disk_max=max_size_MB

repeater ��� ���� �� ��� ��� �����.

�� MB���. disk_max ��� 0� ���� ��� �

���. � ��� �� ��� ��� � ����. repeater

� � ��� � �� wmdist 288 ��� �����

��� ����. ��� ��� �� ���� �

� ��� ��� �� ��� � ���.

�: � �� �� ��� � ��, repeater� �� ��� �

�� ����� ���� ����.

endpoint_multicast=TRUE|FALSE

������� �� �� ��� �� � ������ ��

���� �� �� � �� ��� ������ ����

�. �� ��� ����� TRUE� ������. �� �

�� �� ���� � �� ��� ����� FALSE

� ������. ������ ��� ������� ��

��� ��� � ����. � ��� ����� repeater

�� �����. ��� FALSE���.

�:

v ��� -C ��� ���� ��� � ����.

wmdist

330 Tivoli Management Framework: ���

v � ��� TRUE� ���� � repeater�

Tivoli� Java 1.3� Tivoli Java Client Framework�

� ���.

execute_timeout=seconds

����� ���� � �� ������ ���� �

��� �� �� ��(�) �����. �� �����

� ���� � repeater� ��� ���� �� ��

�� �� �� � ����.

max_sessions_high=number

repeater� � �� �� ��� � � � ��� ��

�� �����. � �� �� �� � �� ���� �

����. repeater� � �� � ��� �� ��, ��

�� � �� ���� �����.

�: � �� �� ��� � ��, repeater� �� ��� �

�� ����� ���� ����.

max_sessions_low=number

repeater� � �� �� ��� � � � ��� ��

�� �����. � ��� 1 ���� ���. � ��

�� �� � �� ���� �����. repeater� � �

� �� ��� �� ��, �� �� �� �� �� �

�� ����� �� ��.

�: � �� �� ��� � ��, repeater� �� ��� �

�� ����� ���� ����.

max_sessions_medium=number

repeater� �� �� �� ��� � � � ��� ��

�� �����. � �� �� �� � �� ���� �

����. repeater� �� �� � ��� �� ��, �

�� � �� ���� �����.

�: � �� �� ��� � ��, repeater� �� ��� �

�� ����� ���� ����.

mem_max=max_size_MB

���� ���� ���� ����� � ���� �� �

�(MB)� �����. � ��� �� �� �� �

� ��� �� ������. ��� �� �� � �

� ���� �����.

wmdist

� 1 �� 331

�: � �� �� ��� � ��, repeater� �� ��� �

�� ����� ���� ����.

net_load=KB_per_second

repeater� ����� ��� ���� ���� ���(�

����/�) �����. slow_link� TRUE� �� �

�, ���� ��� �� ��� �� �����. � ��

�� �� � �� ���� �����. � ��

target_netload �� �����.

notify_interval=minutes

�� � ��(�)� �����. notify_interval� ���

�� � ��� � ��� ��� �, ��� �����.

��� MDist 2� ���� �������� ��� MDist

2 �������� �����.

packet_size=number_KB

� ��� � � ����� ���� KB �� �����

. slow_link� TRUE� �� ��, � ��� � � �

���� ��� ��� �� �����.

permanent_storage={TRUE | FALSE}

��� � repeater� �����. TRUE� �� ��, �

�� ��� ��� ��, �� ��� �� �����

�����. FALSE� �� ��, ��� ��� �� �

��� ����� �����.

repeater_multicast=TRUE|FALSE

������� �� �� ��� �� � ������ ��

repeater� �� �� � �� ��� ������ ���

��. �� ��� ����� TRUE� ������. ��

��� ����� FALSE� ������. ��� FALSE

���.

�: � ��� TRUE� ���� � repeater� Tivoli�

Java 1.3� Tivoli Java Client Framework� � �

��.

retry_ep_cutoff=seconds

��� � ��� ��"�� ������ ���� �� �

�(�) �����. ��� �� ��� ��� ��� ��

� � ��� ��"�� repeater� ������.

rpt_dir=path_name

depot ��� �� ���� ���� � ���� �

wmdist

332 Tivoli Management Framework: ���

� ���� �����. depot ����� ������

� ��� � ����� �� ��� disk_max� �

����� ��� �� ��� �� ���. �� ���

�� repeater �� ��� ��� ���� �������

�� ����.

send_timeout=seconds

���� ��� � ���� �� �� ��� ���� �

���� ����(�)� �����. �� ������ �

�� ���� � send_timeout ���� ���� � �

� ����. ����� ���� ��, ��� repeater

�� �� � conn_retry_interval � �� ���� ��

���.

slow_link={TRUE | FALSE}

���� 1KB ��� ��� � ��� ������� �

����. TRUE�� net_load, packet_size �

target_netload � KB �� ��� �� �����. �

�� FALSE���.

target_netload=KB_per_second

�� ��� �� � �� ���� ���� ���(����

�/�) �����. slow_link� TRUE� �� ��, �

��� ��� �� ��� �� �����. ��� 0 �

�� �� ���� ���. � �� net_load ��

�����.

-T [database_purge_interval]

��� ��� RIM �������� ���� ��(�) ����. � �

� ��� �� ���� ��� �������� ��� ��� ��

� ������� �� � � � ����. � ���� � � �

� ���� �� �� �����.

database_purge_interval -1� ��� ������ ��� ���� �

��. ��� -1���.

��

��� ��, ��, ���� �� ����� senior �� �� �� �� Dist_control

�� �� ��� RIM_view �� �� ��� ����.

�� ���� �� ��� ���� �� ���� � �����, �� ����

repeater� �����, ��� ���� RIM ��� �����, ��� ��

� RIM �������� ���� �� ���� senior �� �� ��� �

���.

wmdist

� 1 �� 333

��� repeater� �� ��� �� � �� �� ��� �� ��� ����

�, ��� �� ����� ��� �����, ���� ���� ���� ����

��� �� ��� ��� ���� senior �� �� �� �� RIM_view �

� �� ��� ����.

�� �� ����� admin, senior �� super ��� ����.

��� �� � ��� � �� ������ ������� ������ ��

� ��� ����� senior �� �� ��� ����.

��

1. �� ����� zyrus repeater � � �� ���� � �� �����.

wmdist -B -A zyrus

�: Tivoli ��� ����� ���� ���� � �� ������.

2. �� ����� ID� 11268691349760� SUCCESSFUL � FAILED ���

��� �� � ������ ��� �����.

wmdist -e 11268691349760 SUCCESSFUL FAILED

��� ��� � � ����.

Name Status Start Time End Timehops SUCCESSFUL 2000.12.05 10:31:25 2000.12.05 10:31:29starn FAILED 2000.12.05 10:31:25 2000.12.05 10:31:29

3. �� ����� repeater zyrus� � �� ����.

wmdist -I zyrus

��� ��� � � ����.

Repeater: zyrus

Jobs in SEND queue: 1Jobs in RECEIVE queue: 0=== Session Information ===

Low: available = 40 used = 0Medium: available = 10 used = 0High: available = 5 used = 0=== Distribution Information ===

External Id: 1185150392.113Internal Id: 1185150392.113Label: bobg20Priority: 3Application: mftp2debug

Target: endpt123 State: PAUSED

4. �� ����� �� �� � ��� �� �� ��� �����.

wmdist

334 Tivoli Management Framework: ���

wmdist -l -a -v

5. �� ����� �� �� �� �� �����.

wmdist -s

� ��� �����.

repeater_id: 1589385886.1.560rpt_dir:D:/Tivoli/20000215/db/jachtermann1.db/tmppermanent_storage: TRUEmax_sessions_high: 5max_sessions_medium: 10max_sessions_low: 40disk_max: 500 (MB)mem_max: 64 (MB)send_timeout: 300 (secs)execute_timeout: 600 (secs)notify_interval: 30 (mins)conn_retry_interval: 900 (secs)retry_ep_cutoff: 7200 (secs)net_load: 100 (KB/sec)packet_size: 16 (KB)target_netload: 0 (KB/sec)debug_level: 3

�: ��� � UNIX repeater� �� ������. Windows �� ��� �

� �� repeater ���� $DBDIR/tmp���.

6. �� ����� �� �� ��� � repeater� � permanent_storage�

FALSE�, disk_max� 51200�� ����.

wmdist -s all permanent_storage=FALSE disk_max=51200

7. �� ����� repeater ID 182894525� �� � � � ����.

wmdist -s 182894525

repeater� ��, �� ID �� �� �� ID� ��� � ��� ����

��. ��� ��� � � ����.

repeater_id: 182894525rpt_dir: /usr/local/Tivoli/rpt_dirpermanent_storage: TRUEmax_sessions_high: 5max_sessions_medium: 10max_sessions_low: 40disk_max: 500 (MB)mem_max: 64 (MB)send_timeout: 300 (secs)execute_timeout: 600 (secs)notify_interval: 30 (mins)conn_retry_interval: 900 (secs)retry_ep_cutoff: 7200 (secs)net_load: 500 (KB/sec)packet_size: 16 (KB)target_netload: 0 (KB/sec)debug_level: 3

wmdist

� 1 �� 335

�� ��

wmcastwdepot, wep, wmdistgui, wrpt

wmdist

336 Tivoli Management Framework: ���

wmdistgui

� ��� ���� �� ���� MDist 2 ���� Tivoli Distribution Status

Console �����. � �� ���� ������� ��� ��� ���

� �� ���.

��

wmdistgui

��

� �� ���� �� �� ��� Distribution Status Console � ��

�. UNIX ���� � �� ����� UNIX ��� X Window System� ��

�� �� ���� ���. �� �� ���� �� ���� �� ��

�.

��

��

��

��� ��� senior �� RIM_view �� �� �� � ��� �� ���.

� 1 �� 337

wmemsize

�� ��� �� ��� ��� ��� ����.

��

wmemsize node_name

��

wmemsize �� Tivoli �� �� ��� �� �� ��� ��� ���

�. �� ��� � ��� �� �� ���.

��� � ��� �� ��� ������ �� �����. �� ��

��� � � � �����.

��

node_name

�� �� �� � �����.

��

user, admin, senior, super

��

�� ����� ebbets� �� �� ��� ����.

wmemsize ebbets64

338 Tivoli Management Framework: ���

wmerge

� �� ��� �� �� �����.

��

wmerge [-L ″label1″ [-L ″label3″]] [-p] [-q] ″file1 file2 file3″

��

wmerge �� file2�� file3� ���� � ���� file1� �����. -p�

�� ��� ��� � � �� �, ��� � ���� file1� !��. wmerge

� ��� ���� ���� ���� �� �����. file2� ��� file1� file3

� file2� ������ ����, wmerge� � ���� �����.

file1� file3� �� �� ����� ����� ��� ��� ��� ���. diff3

� -E �� ���� �� ��� ��� �����, wmerge� �� ����

� � file3�� ��� �� �����. ���� ������ ��� ���

� �� wmerge� ���� � �(-q ��� ���� � ��) ��� ���

� � �����. � �� ���� ��� �� �����.

<<<<<<< ″file1″ ″lines in file1″″=======″ ″lines in file3″ >>>>>>> ″file3″

���� �� ���� ��� �� � � ��� �� ���. -L ″ label1″

� -L ″label3 ″ ��� ���� ��, �� ��� � file1 � file3 �� �

�� � ���.

��

�� ��� ��� �� �� 0, �� ��� �� 1 � ��� � �� 2���.

���

��: Walter F. Tichy. �� �: 1.1.6.2; ��� ��: 1993/10/07. Copyright ©

1982, 1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991 by Paul Eggert

�� ��

wco, wrcsmerge

� 1 �� 339

wmrgaef

���� �� Tivoli Management Framework �� Tivoli ������� ���

�� �� ��� �����.

��

wmrgaef [-r resource...] -d path

��

wmrgaef �� ���� �� Tivoli Management Framework �� Tivoli ��

���� ��� �� �� ��� �����. �� wcatcher �� ���� ��

� �� �� ��� � ���.

wmrgaef �� ��� �� �� ��� ����� �� ��� �� ���

��. ��� ����� �� ��� � ��� ��� �� �� ��� ���

����.

��� ����� �� ��� ��� �� ��, ��� � ���� �

DSL(Dialog Specification Language)� ��� � ����. � ��, wmrgaef�

� �� ��� ��� � �� �����. �� �� ��, ����� �� �

� � �� ��� wcatcher ���� ��� ���� ����.

��

-d path

��� �� �� ��� �� �� ��� �� ��� �����(wcatcher

��� � ). ���� ��� �� �� ��� ���� ���� ��

��� � �����.

-r resource

��� �� �� �����. �� �� ���� ���, wmrgaef� �

�� ���� � ��� �� �� ��� � �� ���� ���

��.

��

super

��

�� ����� /tmp/aef/my.dir� �� ��� �� �� ��� �����.

wmrgaef -d /tmp/aef/my.dir

340 Tivoli Management Framework: ���

�� ��

wcatcher

wmrgaef

� 1 �� 341

wmrgini

� .INI ��� �� � ��� �� ��� �����. � �� ������� �

��� ���.

��

wmrgini dest_file merge_file

��

wmrgini �� � .INI ��� �� �� ��� �����. merge_file� � �

�� � �� dest_file� �� ��� ����� �����.

��

dest_file

�� �� � �����.

merge_file

��� �� � �����.

��

SYSTEM.INI �� WIN.INI ��� ����� �� � ����.

wmrgini C:\TEMP\WIN.INI C:\TEMP\SYSTEM.INI

�� ��

weditini

342 Tivoli Management Framework: ���

wmv

�� �� ��� ����.

��

wmv [-I] label... collection

��

wmv �� ��� ��� �� �� ���� ��� ���� ����.

� ��� �� � �� �� �� �� ��� � ����.

� �� ���� ������ ��� ��, wep sync_gateways �� ���

� Tivoli �� rgion� ����� ���, ����� � ������ �� ��

��� ���� ������.

��

-I ��� � � �� ��� ��� � ����� ���. � ��

�� ��� ��� ��� �� �����. -I �� ���� �� �

�� �� � ����� ��� � ���, �� �� �� ��

� � ����. � �� ���� � ���� � ����� ��

��� � ����, �� �� ��� ��� ��� �� �

����. ��� � ��� ��� � ��� ���� ���.

collection

�� ��� �� �����. � �� �� �� ��(‘/’ ���

� ��), �� �� ��(�� �� ��� ���) �� �� �(�

� �� ���� ����) � ��� � � ����. ��� �� ��

�����. ��� ��� ��� ��� ���� ���.

label... �� �� ��� ��� �� �����. � �� �� ��

��(‘/’ ���� ��), �� �� ��(�� �� ��� ���) ��

�� �(�� �� ���� ����) � ��� � � ����.

��

��� �� �� �� �� � ��� policy region ���� admin, senior,

�� super

��

�� ����� �� �� �� ceridwen lost-n-found ���� ��� Root

� ��� ���� ����.

wmv /lost-n-found/ceridwen /Administrators/Root_ceridwen-region

� 1 �� 343

�� ��

223 ���� �wep�, wln

wmv

344 Tivoli Management Framework: ���

wmvrim

RIM(RDBMS Interface Module) �� �� ��� ����.

��

wmvrim { -h host_name | -o host_oid} [-H db_home] [-I instance_home] [-t

instance_name]rim_name

��

wmvrim �� ��� RIM ��� �� �� ��� ����. -h �� -o

�� ���� ��, wmvrim �� � � �� RIM ��� ���� Tivoli

Management Region� �� �� ��� ������. -I �� DB2 �����

��� ����. � �� �� RIM ��� �� ����� ��� � ��

��. ����� �����, RIM ��� ��� � ��� �� ��

�.

��

-h host_name

RIM ��� ��� �� ��� ��� � �����. �� ���

� Tivoli region� �� ���. � ���� -o �� ���� ���

RIM ��� ��� ����.

-H db_home

RIM ����� RDBMS �� �� ������ ��� ���� ��

�� ��� �����.

DB2 DB2 ������ �� ���. DB2DIR �� ��� �� �

� ����.

Oracle

���. ORACLE_HOME �� �� ����.

Sybase

interfaces ��� �� �� ���. SYBASE �� �� ���

�.

Microsoft SQL

Microsoft SQL Server� ��� ���

Informix

Informix CLI ������ ��� ���. INFORMIXDIR �

� ��� �� �� ����.

� 1 �� 345

-I instance_home (DB2 ��)

INSTHOME �� ��� � �����. � � ������ �����

��� � ������.

-o host_oid

RIM ��� ��� �� ��� �� ID� �����. �� ���

� Tivoli region� �� ���. � ���� -h �� ���� ���

RIM ��� ��� ����.

-t instance_name (DB2 ��)

DB2INSTANCE �� ��� � �����. � � ��� ������

����� ����.

rim_name

�� RIM �� �� �����.

��

Tivoli Management Region�� senior �� super

��

1. �� ����� RIM �� inventory� �� �� amon-sul� ����.

wmvrim -h amon-sul inventory

2. �� ����� RIM �� invdh2� �� �� amon-sul� ����. �

�� RIM ��� �� Oracle ����� ������ /tivoli/oracle ��

�� ����. �� �� amon-sul��� /oracle ���� ����.

wmvrim -h amon-sul -H /oracle invdh2

�� ��

wcrtrim, wdel

wmvrim

346 Tivoli Management Framework: ���

wpatch

Tivoli ��� ����.

��

wpatch [-c src_dir] -i patch -n -y [install_variables]... managed_node

��

wpatch �� Tivoli �� rgion ���� ��� � Tivoli ��� ����.

��

-c src_dir

� ���� ��� ���� �� �� ��� �����.

-i patch

��� ��� �� �� �����. �� �� .IND ��� ���

�. �� �� �� �� �� �� �� � � � � ����. �

� ��, �� ���� TMF.IND ��� �� �� ��, -i TMF ��

-i TMF.IND� ���� ��� �� ��� ����.

-n �� ��� ��� � � �� ��� ��� ����. �� ���

���� �� � �� �����.

-y �� �� �� ����� �����. ����� � �� �� ���

� � � �� ��� ���� ��� �� �� ����. wpatch

� � �� ���� �� ��� � �� ��� ��� ���

��.

install_variables

�� �� � ��� �����. ����� �� @variable@=value�

�����. �� �� � ��� �� ��� ��� �� � �� ��� �

�����.

�: �� ��� ��� �� ���� � �� � � ����. �

�� ����� �����.

managed_node

Tivoli ��� �� �� ��� �����. �� �� �� ��� ���

� ����. �� ��� ���� ��� ��� Tivoli Management Region

� � �� ��� ����. ���� ��, � �� ���� ���

�.

� 1 �� 347

��

senior �� install_product

�� ��

wclient, winstall, wserver

wpatch

348 Tivoli Management Framework: ���

wping

���� �� ���� ��� �����.

��

wping host_name [timeout]

��

wping �� ��� ���� �� ���� ��� �����. ��

��� ��� ��, �� ���� � � � �����.

object dispatcher on host_name is alive

�� ��� ��� � ��, �� ���� � � � �����.

no response from object dispatcher on host_name

��

host_name

�� ��� �

timeout

���� ����� ��� �� ����� ���� � �

��

user, admin, senior, super

�� ��

��

� 1 �� 349

wpopulate

��� ��� ���� ���.

��

wpopulate [-o] source name

��

wpopulate �� Tivoli Management Framework� ���� ���� �� ��

��� �� ����� �����.

� �� ��� �� NIS(Network Information Service) ���� � ����

������� ���� �� ���� name�� ��� ���� ���. source

�� � ���� ������ �����. ����� ��� �� �� name

� ���� ��� �� ����. �� ��, name� ��� ����� ���� �

�� ���� passwd ��(�� ��� NIS ���� �� �) ���� ����

���.

-o� ����, wpopulate �� �� ���� �� �����. -o� ���� �

��, source� ��� ���� ��� �����.

��

-o ��� ����� �� ����� �����.

name � ���� � �����.

source � ���� ����� � �����.

��

senior, super

��

�� ����� Users ���� pinatubo� passwd �� ���� ���. �

�� �� Users ����� �����.

wpopulate @ManagedNode:pinatubo @UserProfile:Users

�� ��

wcrtprf, wcrtprfmgr, wdistrib, wgetprf, wgetsub, wlssub, wsub, wunsub, wxterm

350 Tivoli Management Framework: ���

wputeppol

��� ����� policy �� �� �����.

��

wputeppol pol_name

��

wputeppol �� ����� policy �� �� �����. �� �� ��� �,

� �� �� �� Tivoli ������� ���� ���� ����. ��

� �� � � � � ���.

��

pol_name

��� policy �� � � �����.

��

senior

��

�� ����� policy �� �� ������� ���� ��� policy �� �

� ���� ����.

wputeppol login_policy < login_policy

�� ��

wgeteppol

� 1 �� 351

wputpolm

policy ���� �� �����.

��

wputpolm [-C | -c value] [-d | -v] class name policy

wputpolm [-d | -v] [-F | -N] [-n | -C | -c value] [args=‘a1,...’] profile policy

��

wputpolm �� ��� policy ���� �� �����. wputpolm ��� �

� � ��, � ���� Tivoli �� ��� policy ���� ���� ��� ���

�� policy � ���� ��� ����.

� � ���� class ��� ��� �� ���, name� ��� ��� policy

��� �� �����. -d ��� ���� ��, name policy �� �

� ��� �� �� policy� �����.

� �� �� ���� policy ���� � �� �� � ��� ��� � ���

�. � � �� policy ���� �� � � ����. � ����, wputpolm

�� �� ���� ���� ���� �� ���. ��� � �� ��

� ���� ����, � � �� �� ���� ����. �� ���

�� policy ���� ��� � ����. � ����� �� �� ��� �

� ����. �� ���� �� � ����� � �� � �� ��, �

��� �����. �� -c value �� ���� ������� �� -C ���

��� �� � � ���� �� ��� � � ����.

��� � � ���� profile �� ���� � ���, policy ��

policy� �� �� � wlspolm ��� ���� �� �����. -C, -c, -d

� -v �� ����� �� ��� � ��� ��� ����� �� ��

�� � �� policy� ��� � ��� � ����. ����� wputpolm �

�� �, -n ��� ��� � ����. -n �� none �����. �� policy

� � -d �� ���� ��, -n �� �� ���� �� �����. �

�� �� policy� � -v �� ��� �, -n policy� � � �� ���

�����.

-F -N �� �� policy� � �� ��� ��� ��� � �����. �

��� ���� ���, policy� � ��� ��� � �����.

��� args �� �� � � policy� ��� ����, policy �� �� ��

� � �� �����. attribute� �� ��� � �� $attribute ���

� � ��� ��, ��� �� �� � �� �����.

352 Tivoli Management Framework: ���

��

-C ��� �� ��, � �� ��� � � �� policy ���� �� ��

��� ����.

-c ��� �� ��, � �� � � �����.

-C � -c ��� � ��� ��, � �� ��� � � �� ���� ��(�

� �� �) ����.

��

-c value

��� ��� ���� � policy ���� �� ����� �����.

value� ��� ASCII ������. ��� ���� ���� ���

�. � ��� -C ��� ���� ��, � �� � � �� ����

�� ����.

-C policy ���� �� ��� � � �� � ��� ��� �����

�����. � ��� -c ��� ���� ��, � �� � � �� �

��� �� ����.

-d ���� �� policy� �����.

-F policy� �� ���� �� ��� � �� �����.

-n policy� �� �� ���� ��� � �� policy� ����� ���

��.

-N policy� ��� ��� �����. �� �, ���� policy� ��� �

����.

-v ���� ��� �� policy� �����.

args=a1...

���� �� ��� �����.

class policy� ���� �� �� �� �����.

name �� �� � �����.

policy ��� ����� ���� ���� � �����.

profile policy� ���� ���� �����.

��

��� � � ��� ��, super � policy. ��� � � ��� ��, senior

�� super.

wputpolm

� 1 �� 353

��

1. ����� ��� ��, �� �� PolicyManager� �� Restricted policy

��� �� ��� pm_val_subscribers ���� � ��� policy ��

�� ����. �� �� � � �� ������.

wputpolm -v ProfileManager Restricted pm_val_subscribers < new_script

2. ����� ��� ��, �� �� pm_val_subscribers� �� policy� ��

TRUE� ����, �� � ���� �� �����.

wputpolm -v -c TRUE ProfileManager Restricted pm_val_subscribers

3. ���� ��� ��, �� �� Engineering��� ��� ����� ���

ID(UID) �� � ��� �� policy �� �� ����. policy� �

�� �� ���� �� ��� � ����. �� �� ���� �� � �

��� � ��� �����. �� �� � � �� ������.

wputpolm -d -F args=’$real_name,$login_name’ \UserProfile:Engineering uid < new_script

�� ��

wchkpol, wcrtpol, wcrtpr, wdelpol, wdelpr, wgetdfpol, wgetpolm, wlspol, wlspolm

wputpolm

354 Tivoli Management Framework: ���

wpwd

�� �� �� ����.

��

wpwd [-o]

��

wpwd �� �� �� ���� ID� �� ���� �� �� ��� ��

����. � ���� � �� ���� ID ��� ��� �� �� �� �

� ����.

��

-o ��� �� ID� ����. � �� ���� � �� ���

�� ����.

��

user, admin, senior, super

��

�� ����� �� �� ��� �� ����.

wpwd

�� ��

wcd

� 1 �� 355

wrcs

RCS(Revision Control System) �� � �����.

��

wrcs [options] file...

��

wrcs �� ��� RCS �� ����� �� ��� � �����. RCS �

��� ���� �� ��, �� ��, �� ��, � ��� � �� �� ��

�����. wrcs� ����, �� ��� � �� ���� �� ��� ��

������� -i ��� �� ��� ��� ���� ��� �� ��� �

� ��� �� ���.

RCS ��� ���� ��� RCS �� ����, � �� �� ��� �� �

� �����. � wci�� �� �� � ����. �� �� wci�

�� �� �����.

��

-a logins

�� ��� �� logins� ���� ��� RCS ��� �� ���

�����.

-A oldfile

oldfile� �� �� RCS ��� �� ��� �����.

-b [rev]

�� ��� rev� ����. rev� ���� ��, �� ��� (���)

���� ��� ��� �����.

-c string

�� ��� string�� ����. �� wci �� -c� �� wrcs -i� ��

�� �� ����� �� ��� �����. RCS� ����� �� �

� �� �� � ��� � �� �� $Log$ �� ���� ���� ��

�, � �� �����(wco ��). ��� � ��� ��� RCS� $Log$

�� ��� �� �� ��� �����, RCS� �� � � �� � �

�� ��� ����� �� �� ��� $Log$ � ��� �����

������.

-e [logins]

�� ��� �� logins� ���� ��� � RCS ��� �� �

��� ����. logins� ���� ��, �� �� �� ����.

356 Tivoli Management Framework: ���

-i ��� RCS �� ��� ������, �� ���� ����. RCS

��� �� ���� �� ��, �� � ��� ./RCS� �� �

� �� ���� ���. RCS ��� �� ���� ��, �� ���

� �����.

-I � � � ��� � ���� ����� �����.

-k subst

�� �� ��� subst� ����. �� ��� ��� wco� ��

� ����. wco, wrcsdiff � wrcsmerge� ���� -k �� ����

� ���� �����. -kv� wco -l �� �����, wrcs -kv� �

��� ����. �� �� ��� ����� wrcs -k kv� ������.

-l [rev]

�� rev� �� ����. ��� ����, � ��� �� �� �

���. rev� ���� ��, �� ��� �� �� ����. �� ��

����� ���� � � ����. �� wci �� wrcs -u� �

��� �����.

-L �� ���� ����. ��� �� RCS ��� ���� �� �

�� ���� ���� �� �����. � �� ��� ��� ��

���.

-m rev:msg

�� rev� �� ���� msg� �����.

-M ��� �� ���� � �� ��� ����. � �� �� ��

���� ���, �� ���� ����� �� �� � �� �� �

����� wrcs -u� ���� ��������.

-n name[:[rev]]

�� � name �� �� �� rev ������. :� rev� � � ��

�� �� �� � ����, ��� � name� �� �� �� ��

�� �� �� ���� �����. rev� ����, ���� �� ���

�. �� � ��� ‘.’� �� rev� ��� �� �� �� �����.

�� rev �� ��� : �� ��, ����� ���� �� �� ��

�����. �� ��, wrcs-n name: RCS/*� name � ��� RCS

��� �� ��� ������. � name ���� �� ��� �

� ����� ��� �� � ���� wrcs-n-n name : RCS/* �

�����.

-N name[:[rev]]

name� � �� �� ���� � ����, -n� � �� ����.

-o range

range� ��� �� �����.(“��� �� ���� ���”.) � �

wrcs

� 1 �� 357

� �� ���� ��� � �� �����. �� �� ���� �

�� � ��� �� �� �����. rev1:rev2 ��� ��� �� �

�� �� rev1�� rev2��� ���, :rev� rev� �� �� ��� �

��� � rev ����� ����, rev: �� rev�� rev� �� ��

��� ���� �����. ��� �� �� ��� �� �� � ��

��.

-q ��� � �����. � ���� ����.

-s state[:rev]

�� rev� � ��� state� ����. rev� �� �� ��, � �

�� �� �� �����. rev� ���� ��, �� ��� �� ��

�����. state� �� � ���� � �����. ��� ��� ��

� Exp(���� ��), Stab(���� ��) � Rel(�� ��)���. �

���� wci� �� ��� Exp� ����.

-t [file]

� ��� file ��� � ���� RCS ��� ���, �� ����

�����. file �� � ��(-)� ���� � � ����. file� �

���, � � �� �� ��� ‘.’� ���� ��� ���� ����

���. ��� ��� �� ���� �������(-I ��). -i� ���

�, -t� ��� � ���� ���.

-t - string

string� � ���� RCS ��� ���, �� ���� �����.

-T ��� ���� �� �� RCS ��� �� �� �����. � ��

RCS ��� �� �� ��� �� ��� �� make ��� � ��

�� ��� ���� ��� � ����. � �� ��� �����

�. ����� �� ��, � RCS ��� �� ��� �� ��� ��

��� �� �� ���� ���� ��� � ����.

-u [rev]

�� rev� �� �� ����. ��� ����, � ��� �� �

� �� ����. rev� ���� �� ���� ��� �� �� �

����. ����� �� �� ���� �� �� � ����. ��

��� �� ��� �� ���� ���. � ��, �� ���� �

� ���� �����. ����� �� ���� ��� ��� ���

�����. �� �� ��� ‘.’� ���� ��� �����.

-U �� ���� ���� ����. ���� � �� ��� ����

�� � � �� � �� �� �����. ���� ���� �

�� ���� ����. �� ��� ���� ��� ��� ���� �

���� ����� �����.

wrcs

358 Tivoli Management Framework: ���

-V RCS� �� �� �����.

-V n RCS �� n �������. ��� �� wco� ������.

-x suffixes

RCS ��� �� ���� � suffixes� �����. ��� �� wci

� ������.

-z zone

zone �� ���� �����. � �� ��� ����. �� RCS �

��� ��� � �����.

wrcs ��� � �� ��� ��� ��� ��� � ��� ��� ��

� �� �� ���.

���

-b rev �� RCS �� 3 �� �� ���� �� ��� � �� RCS �� �

����.

-k subst ��(-k kv ��) RCS �� 4 �� � �� ���� �� ��� � �

� RCS �� �����.

�� n ��� � �� ��� ���� RCS �� RCS �� n� �� �

�� ��� wrcs -V n ������.

RCS �� 5.5 � �� �� -x �� ���� ��� RCS �� �� ,v ��

�� ����.

��

RCS �� �, �� ��� �� �� � � � �����. � ��� ��

�� ���� �� ��� 0���.

��

wrcs� wci� ���� �� � ��� �����. ��� � ��� �

�� ���� ���, �� �� �� ���� ���� ��� �� � $

� ���� � ���� �� �� �� ���� �� ����.

�� ��

RCSINIT

���� ���� �� �� �� �� ��. ��� �� wci� ����

��.

wrcs

� 1 �� 359

��

��� ��� � �� � RCS� �� ��� RCS ��� �� �� ��

��� �� ���� �� �� RCS� ��� � � ����. � ����� �

��� �� ������. ���� ��� � ����� ,� ����� wrcs

��� �� _. ��� ����.

-o ���� �� ��� �� ��� :� ��� -����. ��� �� �� -�

��� �� �� � ����. ��� ��� �, wrcs -o� � �� - ��

��� �����, � �� ��� � ����.

�� � �� ���� ��� ��� �� ����. �� ��, -o �� �

�� �� ��� �� �� � ���� ����. � ����� -n ��

���.

���

��: Walter F. Tichy. �� �: 5.13; ��� ��: 1995/06/05. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991, 1992, 1993, 1994, 1995

by Paul Eggert.

�� ��

wco, wci, wident, wrcsdiff, wrcsmerge, Walter F. Tichy, RCS--A System for

Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654.

wrcs

360 Tivoli Management Framework: ���

wrcsdiff

RCS(Revision Control System) �� � ���.

��

wrcsdiff [-k subst] [-q] [-r rev1 [-r rev2]] [-T] [-V n] [-x suffixes] [-z zone]

[diff_options] file...

��

wrcsdiff �� diff� ���� ��� � RCS ��� � �� � ���.

RCS ��� ���� ��� RCS �� ����, � �� �� ��� �� �

� �����. � wci�� �� �� � ����. �� -q� � �

���� ����. 0, �� �� � �� �� -r� ��� � ����. ��

-k subst� wco�� �� �� �� ��� � �� ��� �� ���.

�� ��, -k k-r1.1-r1.2-r1.1-r1.2� �� 1.1� 1.2� � � � �� �� ��

� �����. �� � ������ ��� � ���� (1) �� � ��

��� ���� (2) -k ��� ���� � (3) -k kv� �� �� ���� (4)

�� ��� �� wco -l� � ���� �� -k kvl� �����. -T, -V, -x

� -z� �� ��� ��� wco� ������. �� ��� ��� �� ���

���� diff� � �� diff� �� �� ��� ����. rev1� rev2�

� ���� ��, wrcsdiff� �� ��(����� ���)� �� �� ���

� �� ��� ��� � ���. �� ����� ��� � ��� �� ���

� �����. rev1� ��� rev2� ���� ��, wrcsdiff� RCS �� �� rev1

� ���� �� ��� �� � ���. rev1� rev2� � � ��� ��,

wrcsdiff� RCS �� �� rev1� rev2� � ���. rev1� rev2� � � �� �

� ��� ��� � ����.

��

�� ��� � � ��� �� �� 0��, ��� ��� �� ��� 1, ���

� ��� 2���.

�� ��

RCSINIT

���� ���� �� �� �� �� ��. ��� �� wci� ����

��.

��

�� �� �� �� f.c� ��� � RCS ��� �� ��� �� �� �

���.

� 1 �� 361

wrcsdiff f.c

���

��: Walter F. Tichy. �� �: 5.5; ��� ��: 1993/11/03. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991, 1992, 1993 by Paul

Eggert.

�� ��

wco, wci, wident, wrlog, Walter F. Tichy, RCS--A System for Version Control,

Software--Practice & Experience 15, 7 (July 1985), 637-654.

wrcsdiff

362 Tivoli Management Framework: ���

wrcsmerge

RCS(Revision Control System) �� �����.

��

wrcsmerge [options] file

��

wrcsmerge� RCS ��� � �� ��� ���� ���� �� ��� ���

��.

RCS ��� ���� ��� RCS �� ����, � �� �� ��� �� �

� �����. � wci�� �� �� � ����.

��� ��� ��� ��� �� �� � ��, �� -r� �� ���� ��

�. ��� � �� �� ��� � ����. ��� ��� ��� ��, �� ��

(����� ���� ��� ��)� �� ��� � � ���� �����. ��

�� �� ��� ��� � ����.

wrcsmerge� ���� �� �� ��� merge�� �� �� ���� region

�����. � �� ���� �� �� ���� ��� �� �����.

��

-k subst

subst �� �� ��� �����. ��� �� wco� ������. �

� ��, -kk-r1.1-r1.2� 1.1� ���� 1.2� ��� � �� �� �

�� �����.

-p [rev]

�� �� ���� � ��� � � � �����.

-q [rev]

��� � �����. � ���� ����.

-r [rev]

rev ��� ��� �����. �� rev� �� ��, ����� ��� ��

�� �����.

-V n RCS �� n �������. ��� �� wco� ������.

-x suffixes

RCS ��� �� ���� � suffixes� �����. ��� �� wci

� ������.

� 1 �� 363

��

�� ��� ��� �� �� 0, �� ��� �� 1 � ��� � �� 2���.

�� ��

RCSINIT

���� ���� �� �� �� �� ��. ��� �� wci� ����

��.

��

1. f.c� �� 2.8 ��� ������. �� ��� � �� 3.4� ���

� ����� ��� 2.8� �� ���� ���� ������. 2.8� �

� ����� 2.8� 3.4 ��� ���� �����, 2.8� �� ���� �

� f.c� , �� �� ������.

wrcsmerge -p -r2.8 -r3.4 f.c >f.merged.c

�� �� f.merged.c� �����. �, �� 2.8.1.1� �� �� wco -j� �

��� 2.8� ���� RCS ��� �����.

wci -r2.8.1.1 f.cwco -r3.4 -j2.8:2.8.1.1 f.c

2. � �� ���, �� �� f.c� �� �� ��� ���� �� 2.4 2.8 �

�� �� �� �������.

wrcsmerge -r2.8 -r2.4 f.c

��� � f.c� ������ �� ������.

���

��: Walter F. Tichy. �� �: 5.3; ��� ��: 1991/08/19. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991 by Paul Eggert

�� ��

wco, wci, wident, wrcsdiff, wrlog, Walter F. Tichy, RCS--A System for Version

Control, Software--Practice & Experience 15, 7 (July 1985), 637-654.

wrcsmerge

364 Tivoli Management Framework: ���

wrefresh

Tivoli �� � �� �����.

��

wrefresh collection

��

wrefresh �� ��� ��� �� � �� �����.

��

collection

�� ��� �� � �����. Administrators � �� �����

�� �� ������.

/Administrators/administrator_name

�� �� � �� ����� �� �� � ��� ������.

/Regions/top_level_region_name/subregion_name

@NisDomain:domain_name

��

user

��

1. �� ����� ��� Callahan� ���� � ���� �� �����.

�� �� Callahan ���� �� �� �� � �� �����.

wrefresh /Administrator/Callahan

2. �� ����� New York policy region� � ���� �� �����.

wrefresh @PolicyRegions:NewYork

� 1 �� 365

wregister

� ����� ��� �� ����� ����� ��� Tivoli region ��� �

� �� ���� ���.

��

wregister -i [-fn] -r resource_type

wregister -i {-fr|-fx} -r resource_type

wregister [-i [-fn] -r resource_type] name object

wregister -u [-r resource_type] name

��

wregister �� Tivoli � ����� ��� �� ����� ����� ��

� Tivoli region ��� �� �� ���� ���.

� ��� �� �� �� ���� ��� � ��� �, �� ��� Tivoli

region ���� � �� �� � ����. �� �� ��� � wlookup ��

���� � Tivoli region� �� ���� �� ��� �� �����. �

���� �� ��� �� �� ��� �� � �� ����.

��� �� ����� ���� �, �� ��� �� ��� �� �� ��

��� ������. -r� ���� ���, ��� �����.

��

-fn �� �� �� �� �� ����� �����. � ��� ��

�� ��� Tivoli region ��� ��� � ����.

-fr � ��� �� ��� �� �� ��� ��� �����. � ��� �

� ��� �� �� ���� ��� Tivoli region ��� �� ��� �

� ����.

-fx �� �� �� � ��� �� ���� ����� �����. ���

Tivoli region ��� ��� �� �� ��� � ����.

-i �� �� ������. � �� ���� � ��� �� ��� ��

�� �� ��, wregister� ��� �����.

-r resource_type

��� ��� �� �� �����. ��� ��, �� �� �� ���

��.

-u �� �� ���� �����.

366 Tivoli Management Framework: ���

name � ��� ��� � �����.

object ��� �� ��� �����.

��

senior, super

��

1. �� ����� ��� �� �� MyResource� � ����� �����.

��� �� �� � �����.

wregister -i -fn -r MyResource

2. �� ����� mylabel��� �� MyResource� �����. mylabel� �

� �� ID� 400004.34.26���.

wregister -r MyResource mylabel 400004.34.26

3. �� ����� �� mylabel MyResource�� �����.

wregister -r MyResource -u mylabel

4. �� ����� ��� �� �� YourResource� ���, yourlabel���

�� YourResource� �����. yourlabel� �� ID� 400005.35.37

���.

wregister -i -r YourResource yourlabel 400005.35.37

�� ��

wlookup, wupdate

wregister

� 1 �� 367

wrestart

��� �� �� � ��� �� �� �����(Windows� �).

��

wrestart [-b] [-c] [-f] [-t timeout_value] [-m ″confirm_message″]

��

wrestart �� ��� �� �� � ��� �� �� �����.

��

-b �� � ��� �� �����.

-c ��� �� ���� �� ���� � ����� �������.

-f �� �������� ����� ��� ����� �� �� ��

�����. � �� ������� ����� ���� �� �

����� �� ���.

-m ″confirm_message″

��� �� ���� �����.

-t timeout_value

� ��� �� �� �� �� ��� �� ���� � �� ����

�.

��

1. ��� �� ���� �� ����� �� ������� ��� �� ��

� ����.

wrestart -c

2. 60� �� ��� �� ���� �� � ���� ���� �� �� �

����.

wrestart -m "WARNING: The system will reboot in 60 seconds!!" -t 60

368 Tivoli Management Framework: ���

wrimtest

RIM(RDBMS Interface Module) ��� ���� ��� �����.

��

wrimtest [-l RIM_object_label]

��

wrimtest �� ��� ������� ���, RIM ���� ��� � ��� �

� ��� ��� � �����. -l �� ���� � ��, �� RIM ��

� � �����. wlookup -ar RIM �� ���� �� ��� RIM �

� �� ����.

��

-l RIM_object_label

������ RIM ��� �����. wrimtest �� RIM_object_label

� ��� ������� �����. �� �� �� � ��� � � � �

�� �������.

c: RIM_commit

���� �����.

d: RIM_delete

�������� � �����.

e: RIM_execute_sql

SQL(Structured Query Language) � �����.

g: RIM_retrieve_rows

�������� � �����.

i: RIM_insert_rows

������� � �����.

r: RIM_rollback

���� �����.

u: RIM_update_rows

������� � �����.

?: Help List

�� �� �� �����.

x: Exit

wrimtest � ��� �����.

� 1 �� 369

��

rim_view, rim_update

��

�� ����� tec RIM ��� �� �� �����. �� ��� �� �

�� �������.

wrimtest -l tecResourceType:RIMResource Label:tecHost Name:lynxUser Name:tecVendor:SybaseDatabase:tecDatabase Home:/data/sybaseServer ID:tecInstance Home:Opening Regular Session...Session OpenedRIM : Enter Option >

�� ��

wrimtrace

wrimtest

370 Tivoli Management Framework: ���

wrimtrace

RIM(RDBMS Interface Module) ��� �� �� �� �� �� �� �

������.

��

wrimtrace RIM_object_label [INFORMATION | ERROR | TRACE_OFF]

��

wrimtrace �� RIM ��� �� �� �� �� �� �� ���� �

��. RIM �� ����� ���� ��� ���� IOM(Inter-Object

Messaging) ��� ��� /tmp/rim_db_log ���� ��� RIM �� ���

���� �� RDBMS ��. �� �� ���� RIM �� �� � �� �

�� ��� � ����.

1. �� �� ������.

odadmin environ get > env.out

2. env.out �� �� �� ������.

RIM_DB_LOG=/tivoli/rim/rim_db_log

3. �� �� ������.

odadmin environ set < env.out

�� � ��(INFORMATION, ERROR �� TRACE_OFF) �� wrimtrace

�� ���� �� �� �� � � � �����. �� �� ��� �

� ���. �� �� �� � �� ���� ��, ��� ��� ��� RIM

��� ��� ��� � ����.

�: RIM �� � ��� ��� ���� ��� RIM_database_Agent ���

�� ��� �� ���. ��� database� �� � �����.

DB2� ��

DB2

Informix� ��

Informix

Microsoft SQL Server� ��

MS_SQL

Oracle� ��

Oracle

Sybase� ��

Sybase

� 1 �� 371

��

RIM_object_label

����� RIM ��� �����.

��� �� � ������.

ERROR

RDBMS ��� RIM �� ��� �����.

INFORMATION

IOM ��� �� RIM �� ��� �����.

TRACE_OFF

�� ���.

��

1. �� ����� �� �� RIM ��� �� �� � �����.

wrimtrace inventory

2. �� ����� IOM �� ��� RIM �� ��� �����.

wrimtrace inventory INFORMATION

3. �� ����� RDBMS �� IOM �� ��� RIM �� ��� ����

�.

wrimtrace inventory "INFORMATION|ERROR"

4. �� ����� RIM �� ���.

wrimtrace inventory TRACE_OFF

�� ��

wrimtest

wrimtrace

372 Tivoli Management Framework: ���

wrlog

�� ��� � RCS(Revision Control System) ��� �� �� ��� ����

�.

��

wrlog [options] file...

��

wrlog �� RCS ��� �� ��� �����.

RCS ��� ���� ��� RCS �� ����, � �� �� ��� �� �

� �����. � wci�� �� �� � ����.

wrlog� � RCS ��� � RCS �� �, �� �� �, ��(�: ���� �

� �� �), �� ��, �� ��, ��, �� �, ���, �� �� �, ���

� � ��� �� � � � ���� �����. � ���� � ��� �

��� � �� ��� ��� �� ��� �����. � ��� � wrlog� �

� �, ���, �� ��, ��, �� � ��� � �(�� ��� �), �� �

�(�� ��)� �� ���� �����. � �� UTC(Coordinated Universal

Time)� ����. ��� � �� wrlog� �� ��� �����. �� ��

� � �����.

��

-b �� ��, ����� ���� ��� �� ��� �� ��� �����.

-d dates

����� ���� �� ���� ���� ��� �� �� � �� �

�� �� ��� �� ��� �����. d1<d2 �� d2>d1 ��� ��

� d1� d2 ��� �� �� �����. <d �� d> ��� ��� d

�� � �� ��� �� � �����. d< �� >d ��� ��� d

�� � �� ��� �� � �����. d ��� ��� d �� � �

� ��� �� � �� �����. �� �� ��� d, d1 � d2�

wco�� �� �� �����. ����� � �� ���� ���,

�� < � >� ��� ����. �� ��� �� ��� ������.

-h RCS �� �, �� �� �, ��, �� ��, �� ��, ��, �� �

� ���� �����.

-l [lockers]

�� ��� �� ��� �����. �� �� ��� ��� � lockers

� 1 �� 373

��� ����, lockers� �� �� ��� � �� �����. �� �

�, wrlog -L -R -l wft RCS/*� ��� wft� �� RCS �� � �

����.

-L �� �� �� RCS �� �����. -h, -l � -R� ���� ���

� ����.

-r [revisions]

�� ��� �� � �� ��� revisions� ��� ��� �� ��� �

����. rev1:rev2 ��� � ��� �� rev1�� rev2��� ����

�. :rev� ��� ���� rev��� �����. �� rev:� rev� ���

� ���� rev� ���� ��� ���� �����. ��� �� �

��� �� � �� �����. ��� ��� ��� ��� ���

� �� �����. �� ‘.’� �� ��� � ��� �� �� �

����. revisions �� -r ����� ���� �� ��� �� ��

�����.

-R RCS �� �� �����. �� �� � RCS �� ��� ���

� ����.

-s states

�� �� �� ��� �� states� ��� �� � �� ���� �

�� �� ��� �����.

-t � ���� ���� -h, ���� �� ��� �����.

-V n ��� ��� � RCS �� n �������. ��� �� wco� �

�����.

-w [logins]

�� ��� �� logins� ���� ��� � �� ���� �� �

� ��� �� ��� �����. logins� ����, ��� ����� �

����.

-x suffixes

RCS ��� �� ���� � suffixes� �����. ��� �� wci

� ������.

wrlog� -b � -r� ���� ��� � �� ��� �� -d, -l, -s � -w� ��

�� ��� � �����.

��

� ��� ���� ���� �� ��� 0���.

wrlog

374 Tivoli Management Framework: ���

�� ��

RCSINIT

���� ���� �� �� �� �� ��. ��� �� wci� ����

��.

��

1. �� �� �� � ��� RCS� � RCS �� � �����.

wrlog -L -R RCS/*

2. �� �� ��� ��� ��� �����.

wrlog -L -h RCS/*

3. �� �� �� ��� �� ��� �� ��� �����.

wrlog -L -l RCS/*

4. �� �� �� ��� �����.

wrlog RCS/*

��

-r ���� �� ��� �� ��� :� ��� -����. ��� �� �� -�

��� �� �� � ����. ��� ��� �, wrlog -r � �� - ��

��� �����, � �� ��� � ����.

���

��: Walter F. Tichy. �� �: 5.3; ��� ��: 1991/08/22. Copyright © 1982,

1988, 1989 by Walter F. Tichy. Copyright © 1990, 1991 by Paul Eggert

�� ��

wco, wci, wident, wrcs, wrcsdiff, wrcsmerge, Walter F. Tichy, RCS--A System

for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654.

wrlog

� 1 �� 375

wrm

��� ���� �����.

��

wrm [-I] label...

��

wrm �� ��� ��� ���� �����. label �� �� �� �

�� � ����. � �� ��� �� ��� ����, �� ��� �

��� ����.

��

-I ��� � � �� ��� ��� � ����� ���. � ��

�� ��� ��� ��� �� �����. -I �� �� ��� �

� �� ��� ��� ����, �� ��� �� ��� � �

���. � ��� ���, �� ��� �� ��� � ���� ��

�� �� ��� ��� ��� ��� �����. ��� � �

�� ��� � ��� ���� ���.

label...

��� ��� �� �� �� �� �����. ��� UNIX

�� �� ���� �����. �� ��(�� �� ��)� ����, �

�� �� ��� � ��� ���� �����. �, ���

��� ���� �� �� ��� � �� ��� ���� ���

��. ���� �� � �� ��� ��� ��, ��� �� �

� ���� �����.

��

admin, senior, super

��

�� ����� �� �� �� ceridwen ��� ���� �����. �

� ��� ���� ����.

wrm /Administrators/Root_ceridwen-region/ceridwen

�� ��

wdel

376 Tivoli Management Framework: ���

wrmnode

Tivoli ��� �� ��� �����.

��

wrmnode [-f] node_name [-d dispatcher_number] [node_name [-d

dispatcher_number]]...

��

wrmnode �� Tivoli �������� ��� �� ��� �����. UNIX �

� ��� ��, � �� ���� ��� � Tivoli �������� ��� �

����.

�� ��� ��� �����. �� ��� ��� ��, ��� �� ��

���. � �� odadmin odlist �� ���� � � ����.

� �� Tivoli �� rgion ��� ���� ����.

wrmnode� ��� �, wchkdb �� ���� ������� ���� �� �

����. ��� ��, ��� �� ��� ��� ��� � ����.

��

-d dispatcher_number

��� ���� ��� ��� �� ��� �����.

-f ���� �� ��� � �� � ��� �����.

node_name

��� �� �� � �����.

��

install-client, super

��

� �� Tivoli �� ��, ������ � �� �� ��� �� ���� �

��� ����.

��

1. �� ����� Tivoli �������� sherman �� ��� �����.

wrmnode sherman

� 1 �� 377

2. �� ����� ����� �� �� ����� ��� ��� �����. �

� �� ���� ��� ���� ��� ��� ��� �� �� �

��. ��� �� ����� �� � ����.

odadmin odlist

Region Disp Flags Port IPaddr Hostname(s)2323231 ct- 737 146.84.25.15 ceridwen,ceridwen.tivoli.com2 -t- 737 146.84.29.12 elcap,elcap.tivoli.com

����� ���� ����� ��� ��� ����� �� � ����.

wrmnode elcap -d 2

�� ��

odadmin, wbkupdb, wchkdb, wclient, winstall, wpatch, wserver

wrmnode

378 Tivoli Management Framework: ���

wrplblk

��� � �� �����. � �� ������� ���� ���.

��

wrplblk [-r] -s ″start_string″ -e ″end_string″ [-o output_file] {-i ″replace_string″

| @file_name} file_name

��

wrplblk �� ��� �� ��� �� �����. � �� ��� ��� �

�� ���� ���� � ��(winsblk �� ���� ��� ��� �) �

��� �� ���.

��

-e ″end_string″

� ��� � ���� �� ��� �����. ��� �� � �

� ���.

-i {″replace_string″ | @file_name}

��� � ��� ���� ��� ��� �� � �� ���� ��

�����. ��� �� � �� ���.

-o output_file

� ��� � � � � � output_file� �����.

-r � �� �� ���� � �����.

-s ″start_string″

� ��� �� ���� �� ��� �����. ��� �� �

�� ���.

file_name

� �� ��� �� �����.

��

[boot]� ���, end� ��� SYSTEM.INI ��� � �� RPLBLK.FIL

��� ��� ����� �� �� � ����.

wrplblk -s "[boot]" -e "end" -o C:\TEMP\OUTPUT.FIL \-i @C:\TEMP\RPLBLK.FIL C:\WINDOWS\SYSTEM.INI

� ��� � OUTPUT.FIL ��� ��� ������.

� 1 �� 379

�� ��

wclrblk, winsblk

wrplblk

380 Tivoli Management Framework: ���

wrplline

��� � � �����. � �� ������� ���� ���.

��

wrplline [-f] -s ″search_string″ [-o output_file] -r ″replace_string″ file_name

��

wrplline �� ��� ��� � ��� �����. ��� � �� ��� �

��� ����. � ��� � � � � �����.

��

-f �� ���� �� ���� �����. � �� ���� � ��, ��

� ���� � �� ��� �����.

-o output_file

� ��� � � � � � output_file� �����.

-r ″replace_string″

�� ��� ��� � ��� ��� �����. ��� �� �

�� ���.

-s ″search_string″

�� ��� �����. �� ���� �� ����, � � -r ���

� ��� ���� �����. ��� �� � �� ���.

file_name

� ��� �� � �����.

��

SYSTEM.INI ���� device=� ���� � � type= ���� �����

�� �� � ����.

wrplline -s "device=" -o C:\TEMP\OUTPUT.FIL -r "type=" \C:\WINDOWS\SYSTEM.INI

� ��� � OUTPUT.FIL ��� �����.

�� ��

wclrline, winsline

� 1 �� 381

wrpt

�� ��� repeater(MDist � MDist 2�)� ��� MDist repeater� ����

MDist ��� �����.

��

wrpt

wrpt -A [-f] -k dist_id

wrpt -g [-e]

wrpt -L

wrpt [-n] src_host [always | noalways] [default | nodefault] [wan | nowan]

[range=value]

wrpt -q src_host destination [destination...]

wrpt -R -k dist_id

wrpt -r src_host

wrpt -T [seconds]

wrpt -t src_host [-k dist_id] [reinit | keyword=value...]

��

wrpt �� MDist ���� ���� MDist repeater� ��� ��� ����

� �����. �� MDist, MDist 2 �� � � ���� �� ��� repeater�

���� �� �����. ����� �� ���� �� ��� ��� Tivoli

Management Framework ��� ���� ������.

src_host �� �� ���(�� ��)� � �����. ��� �� odadmin

odlist � � Disp �� �� ��� � ����.

�: wrpt �� Tivoli ������ ������ ��� ����� ��� � �

���. ����� ��� ������ ������ ������ ������

� ��� � ��� ����.

��

��� ��� � ��, wrpt� � repeater� ���� ��� �����. �

� � ��� �(��� �� ��� [ ]� ���)��, � � �

382 Tivoli Management Framework: ���

repeater� �� repeater(d) �� WAN(wide area network) �� ���(w)�

��, � � � repeater� ���� ���� ���� ��� �����.

�: � �� � repeater ��� �� ��� �����. ������ ���

� ����.

-A [-f] -k dist_id

��� ��� ��� �� �� ��� �����. �� ��� ��� �

� ��� � ����. � ��(–f)� ���� � ��, ����� Are

you sure? ���� ����. �� ��� ����.

-f �� �� �� ��� � �� ����� �����.

-k dist_id

�� �� �� ����� �����. dist_id� �� �� ���

�� ���� �� �����. dist_id � ��� -L �� �

�����.

�: ��� ��� ��� �� ����� �� �� ���� ���

�.

-g [-e]

wrpt �� �� �� ��� � �� ��� ����� �� �����.

��� ��, ��� �� � repeater ��� ���� ����. -e ��

repeater� ���� ���� ����� ��� �����.

-L � �� � ���� � �� �� ��� �����. � � �

�� �� �� �� ���, � � � �� �(������� �

��� ��)�, � � � �� �� ����, � � �

in/est_size [out_min-out_max] ���� ��� �� ��� �����.

-n src_host [wan | nowan] [default | nodefault] [always | noalways] [range=value]

��� repeater� ����� ��� repeater� �����. �� ��� �

���.

src_host

Tivoli � ����� ��� �� �� ���(�� ��)� ��

���.

always | noalways

repeater�� ������ ��� ���, � repeater� � ���

������ �����. ����� repeater� ������ ��

� ���� repeater� ���� �� � ������ �����.

always �� �� � �����. noalways �� ����

always �� �� ���� � �� ��� ������.

wrpt

� 1 �� 383

default | nodefault

� repeater� �� repeater� ��� ����� ���� � �

���� ��� �����. nodefault� ���� � �� ��

���� ����.

range=value

�� ��� ��� � �� �����. � �� ��(-)�

�� � ����. �� ��, 2 - 14� 2�� 14��� ���

� �����. Tivoli Management Framework� ��� ���� �

���. ����� ���� ��� ����, ��� �� ��� �

�� � ����.

wan | nowan

� repeater� region� �� WAN ����� �� ���� ���

�� ���� ���. �� region��� � ��� � repeater

� � ������. region� �� WAN ��� ���� ��

�, ��� repeater� region� ��� � � � � � ����.

-q src_host target [target...]

��� �� ��� �� �� � �� ���� ����. � ���

� ���� �� ��� �� ��� �� �� repeater� ����.

� �� ���� ��� ���� �� ���� ���� ��� �� �

�� ������. �� ��� ����.

src_host

��� �� ��, �� ID �� �� ��� � ����

�.

target ��� �� ��, �� ID �� ��� � �����.

�: �� �� �� ������ � � �� ��, @ManagedNode

@Endpoint �� ��� � ����.

-r host

��� repeater� �����. host �� Tivoli � ����� ���

�� �� ���(�� ��)� �����.

-t src_host [-k dist_id] [reinit | keyword=value...]

repeater� �� �� �� �� �����. �� ��� ����.

src_host

Tivoli � ����� ��� �� �� ���(�� ��)� ��

���.

wrpt

384 Tivoli Management Framework: ���

-k dist_id

�� ��� �� �� ���� �� ���� ���. dist_id� �

� �� ��� �� ���� �� �����. dist_id � �

�� -L �� ������.

reinit � �� � ����� �����.

keyword=value

�� �� ��� �� �(�� �� ���� �� �� �

) � ��� ��� � ����. value� ���� ��� ���

repeater� �� �� ��� ����. ��� ��� ����.

disk_dir

�� �� �� �� ��� ��� ���� �����.

��� ���� ��� ��� repeater� ��� ��� �

� �� ��� �� ���. � �� �� ���

disk_max�� � ���.

disk_hiwat

�� �� �� �� ��� ���� �� ��� �

���� �� �����. �� �� disk_time ��

��� � �����. �� �� ��� 16Kb���.

Tivoli� � �� repeater�� ��� � �� �� �� �

�� � 50%� ����.

disk_max

��� ��� �� ��� �� ��� ����� �

� �����. �� �� repeater� ��� �� disk_max

� mem_max �� � ���. ������ �

repeater� ��, max_conn� �� ��� ����� ��

� ��� mem_max� disk_max� �� � ��� ��

�� � � �� ��� �� �� ���. ����

� repeater� ��, max_conn� �� ��� ����� �

�� ��� disk_max ���� ��� ���� � � �

� ��� �� � ��� ��� ���.

disk_time

�� �� �� ��� �� � �� �����. �

� ���� disk_hiwat �� ��� ��� � ����

��� ��� ��� �����.

max_conn

���� � repeater� � ��� � � �����

��� ���� �����.

wrpt

� 1 �� 385

mem_max

��� ���� �� ��� �� ��� �����

�� �����. �� �� repeater� ��� �� disk_max

� mem_max �� � ���. ������ �

repeater� ��, max_conn� �� ��� ����� ��

� ��� mem_max� disk_max� �� � ��� ��

�� � � �� ��� �� �� ���. ����

� repeater� ��, max_conn� �� ��� ����� �

�� ��� disk_max ���� ��� ���� � � �

� ��� �� � ��� ��� ���.

net_load

repeater� ��� ��� ����� ��� �� ��� �

�(Kb/�)� �����. Tivoli� � �� ���� ���

(repeater ����� ��)� � 20%� ����.

net_load� 32MB/sec�� � ��� ��� � ����.

net_load� ��� ��� ��, �� ���� �� ��

� ����.

net_spacing

����� ��� ��� ��� ��(��� �) ���

��.

stat_intv

��� �� �� ���� �� �� � TCP ���

�(�: �)� �����. � � ���� ����� ��

� ����, �� PC ���� RAM� �� ����.

-R -k dist_id

�� �� ��� �� ���� �����. -k dist_id �� ���� �

� �� ��� �� ID� ������. -q ���� �� �� � �� �

�� ��� �� ����. dist_id � ��� -L �� ������.

-T [seconds]

repeater ��� ����� �����. � ���� � ��� ��� �

���� ��, repeater ��� �� � ��� �� �� ����� ���

���� �� ��(�)���. 0� �� ���� � ����� ��� �

��� �����.

��

senior

wrpt

386 Tivoli Management Framework: ���

��

1. region � � repeater� �� ��� �� �� � ����.

wrpt

��� ��� � � ����.

fuji [1] wd [default]lazzaro [2] -- [2-14,18,20-40]

� � � ���([ ])� �� ��� �� �� �� repeater �

����. � � �� � � �� w �� ���(-)���. w� ���

WAN �� ���� �����. � � �� � � ��� d� ��, �

� region� �� repeater���. � � ��� repeater� ���� ���

��� �����. ��� ���� � ��([ ]), � repeater� region � �

�� repeater���.

-g �� ����, wrpt �� � �� ��� � �� ��� ����� ��

� �����. ��� ��, ��� �� � repeater ��� ���� ���

�.

2. peppe�� ��� ����� �� �� � ����.

wrpt -A peppe

3. �� ����� peppe ���� repeater� �����.

wrpt -n peppe range=2-14,18,20-40

� ��� ��� ��� ����.

-n peppe

��� peppe� ��� repeater� �����.

range=2-14,18,20-40

��� repeater� �� �� �� �� ��� �� �����. ���

��� 2�� 14, 18, �� 20�� 40� �����.

4. �� �� smith ����� jones �� �� ���� ��� �� �� �

����.

wrpt -q smith jones

��� ��� � � ����.

--[RPT:smith [1]]|--[RPT:smith [1]]| |--[RPT:reality [6]]| | |--jones [5]

wrpt

� 1 �� 387

�� �� �� �� ID� ��� �� ����. ��� �� �� ��

���� � � �� ��, @ManagedNode @Endpoint �� ���

� ����. �� ��, �� �� ����� smith �� �� ���� ��

� �� �� � ����.

wrpt -q @ManagedNode:smith @Endpoint:smith

��� ��� � � ����.

--[RPT:smith [1]]|--[RPT:jones [3]]| |--smith [4]

5. �� �� � ��� ����� �� repeater ���� �� �� � ��

��.

wrpt -L

��� ��� � � ����.

4 fp_distribute 05 09 16:12:50 2816/0 [640-640]

��� 4� �� �� �� �� �� fp_distribute� �� �(����

��� ��� ��)�� 05 09 16:12:50 �� �� �� � ��� 2816/0

[640-640] �� ��� �����.

��� �� �� ��� �� ���� ����.

in/est_size [out_min-out_max]

��� in repeater� ��� � ��� est_size� ��� �� ���

���� out_min � �� ���� �� ��� �� ��� out_max�

� �� ���� �� ��� �� �����.

6. peppe repeater� �� � ��� �� �� � ����.

wrpt -t peppe

repeater� ��, �� ID �� �� �� ID� ��� � ��� ����

��. ��� ��� � � ����.

mem_max = 10000disk_max = 50000disk_hiwat = 50000disk_time = 1disk_dir = "C:/TEMP/"net_load = 500max_conn = 100stat_intv = 180

�: ��� ��� �� �� repeater � �� ��� �� � ��� Tivoli

Management Framework ��� ���� ������.

wrpt

388 Tivoli Management Framework: ���

7. �� ����� �� �� ��� �� ���� �� , � �� ��

�� � ��� ���, ����� 100KB/�� ��� � �� �� ���

� ��� �����. � �� � ��� �� ���� ��� �����.

wrpt -Ll fp_distribute Jun 16 12:53:27 1696/1696 [0-432]wrpt -k l -t peppe net_load=100

peppe� repeater� ��� ���(�� ��)� ����.

wrpt

� 1 �� 389

wrunas

�� �� �� ����� �����. ���� ��� �� � ����

����� �����.

��

wrunas [user_name | key | command]

��

wrunas �� ����� ��� ��� Microsoft �� ��� ���� �

� �� ����� . wrunas �� ��� ���� �� � ��

AEF(Application Extension Facility) ��� �� ��� ���� Tivoli ���

�� �� �� ��� � ����. ��� �� �� $root_user� �����

� ���.

��

command

��� �� �����.

key ��� �� ��� ��� � �����.

user_name

��� � �����.

��

�� ����� � admin_key� �� Administrator ��� �����.

wrunas Administrator admin_key net config workstation

390 Tivoli Management Framework: ���

wruninvquery

�� �� ��� �� ������� ��� �� ��� ���� ��� �

� ��� �� ID �� �����.

��

wruninvquery [-i] [-T idl_type] [-l | -t] query_name [input...]

��

wruninvquery �� ��� ��� �� ID �� ��� �� �

�� ��� ��� � �� ���� �����. � ��� �

SysAdminTypes_ObjectLabelList���. � �� ����� TME_OBJECT_ID

� TME_OBJECT_LABEL �� ��� � ��� ���� ���. � �

� ��� ���� �� ���, � �� � ��� ����� ���� �

��� wrunquery �� ������.

wruninvquery �� �� � � �����.

v ��� ��� �� ID ��(���)

v ��� ��� �� �� ��(���)

v SysAdminTypes_ObjectLabelList ����� ASCII IDL(Interface Definition

Language) ��� ��

� �� �� �� ��� �� � �� ��� � ��� � � ����. �

� ����, ��� �� ��� � � ��� � �� ���� ���� ���

�����. � �� �� ���� ����.

v ���� ��� �� ID ��(���)

v IDL ��� ASCII �. ��, ��� � � �� ��� IDL �� ��� �

���.

– SysAdminTypes_ObjectList

– SysAdminTypes_ObjectLabelList

– TMF_CCMS_subscriber_list

��

-i �� ID �� IDL ��� ��� ASCII � � ��� �� �

� � �� ����. -T ��� ���� � ��, � ���� ��

�� �� ID ���� ����. -T ��� ��� ��, � IDL

��� ��� ASCII �� ���(idlcall � idlattr ��� ��� ��

� ��� ��). � � � �� ����� � � ���, �� �

�� � �� ����.

� 1 �� 391

-l � � �� ��� ��� ��� ��� ��� ��� �����.

-t � � IDL ��� ASCII �� ��� �����.

-T idl_type

IDL ��� ��� �� � �����. � � � �� ��� �

� ��� ��� �� IDL ��� ASCII �� ���.

input...

�� � �����. -T ��� ���� � ��, � ���� ��

�� �� ID ���� ����. -T ��� ��� ��, � IDL

��� ��� ASCII �� ���(idlcall � idlattr ��� ��� ��

� ��� ��). � � � �� ����� � � ���, �� �

�� � �� ����.

query_name

��� �� � �����.

��

query_execute, admin, senior �� super

��

1. �� ����� AIX-machines ��� ��� � �� ID ���� �

����.

wruninvquery AIX-machines

� ��� ����.

1922582407.1.323#TMF_ManagedNode::Managed_Node#555555.1.332#TMF_ManagedNode::Managed_Node#

2. �� ����� AIX-machines ��� ��� � �� �� ���

� �����.

wruninvquery -l AIX-machines

� ��� ����.

manzanoamon-sul

3. �� ����� AIX-machines ��� ��� �

SysAdminTypes_ObjectLabelList ��� ASCII ��� �� �����.

wruninvquery -t AIX-machines

� ��� ����.

{ 2 { 1922582407.1.323#TMF_ManagedNode::Managed_Node# \"manzano" } { 555555.1.332#TMF_ManagedNode::Managed_Node# \"amon-sul" } }

wruninvquery

392 Tivoli Management Framework: ���

4. �� ����� pm1 ���� ���� ���� ���� AIX-machines ��

� ���, � � �� �� �� �����.

idlcall 555555.1.535#TMF_CCMS::ProfileManager# \_get_subscribers | wruninvquery -l -i \-T TMF_CCMS::subscriber_list aix-boxes amon-sul

� ��� ����.

manzano

� ��� ��� ���� ��� TME_OBJECT_ID

TME_OBJECT_LABEL �� ���� �� ��, wruninvquery �� wrunquery

�� ������.

�� ��

idlattr, idlcall, wcrtqlib, wcrtquery, wgetquery, wrunquery, wsetquery

wruninvquery

� 1 �� 393

wrunjob

��� ����� �� �����.

��

wrunjob job_name -l library [-a option] [-e name=value] [-i] [-E] [-r] [-T

trans_type]

��

wrunjob �� ��� ����� ���� �� �����.

��

-a option

���� ��� ��� �����. ��� ��� �� ��� ��� �

��� ��, � � � � �����(�: -a″-o option″).

-e name=value

���� �� �� ��� ����(�: DISPLAY=bald:0.0).

-E � ��� �� ��� ���� �����.

-i ��� � �� � � �� ����.

-l library

��� ���� ���� ��� ����� �����.

-r ��� ��� ������ � �� ���� ���� � ���� ��

�� �� 1 �����.

-T trans_type

���� �� �����. ���� ��� �� �� ��� 4 ���

�Tivoli ����� ������. � �� �� � �����.

none ���� ��

revoke

�� ��� ����

sub �����

top ��� � ����. -T ��� ���� � �� ������.

job_name

��� �� � �����.

394 Tivoli Management Framework: ���

��

��� ��� � ��� ��� �� ���. wgetjob �� ���� ��

�� � � ����.

��

1. �� ����� ��� ���� my_tasks� ��� �� date_job ���

��.

wrunjob date_job -l my_tasks###################################################Task Name: date_taskManaged Node: baldReturn Code: 0-------Standard Output-------Mon Nov 21 14:24:16 CST 1998-------Standard Error Output-------####################################################

2. �� ����� ��� ���� my_tasks� ��� �� date_job ���

��. LANG �� ��� ���� ����.

wrunjob date_job -l my_tasks -e LANG=de#####################################################Task Name: date_taskManaged Node: baldReturn Code: 0-------Standard Output-------Montag, 21. November 1998 14:25:30 Uhr CST-------Standard Error Output-------#####################################################

3. �� ����� ��� ���� NoonTide�� �� ps_vernon �����.

� ����� ���� aux �� �����.

wrunjob ps_vernon -l NoonTide -a aux##############################################################Task Name: psTask Endpoint: vernon (ManagedNode)Return Code: 0------Standard Output------USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMANDroot 2245 54.5 6.2 360 2368 ? S 13:10 0:02 task_endpointroot 2246 19.7 1.3 228 488 ? R 13:10 0:00 /tmp/ taskAAAa02245 auxnobody 2244 14.6 5.2 176 1992 ? S 13:10 0:01 man_node_skel1nobody 2239 12.2 7.3 568 2800 ? S 13:10 0:02 repository_ skel1root 134 8.4 2.9 1508 1100 ? S Apr 19 0:41 oserv -p -k /usr/Tivonobody 2237 3.5 5.7 184 2188 ? S 13:10 0:01 library_skel1root 2236 1.1 5.5 120 2108 p0 S 13:09 0:01 wrunjob ps_ vernon -l Nooroot 172 0.0 1.8 136 684 ? S Apr 19 0:02 ./usrlnkd------Standard Error Output------###############################################################

�� ��

wcrtjob, wcrttask, wgetjob

wrunjob

� 1 �� 395

wrunquery

��� ��� ��� � � �� ��� �����.

��

wrunquery [-n] [[-h host_name] -f file_name] [-d delimiter] query_name

��

wrunquery �� ��� ���� ���� ��� ���� ��� �� � �

�� ���. ����� wrunquery �� � � � �� �����. ��

��� � ��� �� ID � �� ��� �� ���, wruninvquery

�� ������.

��

-d delimiter

� ��� �� ���� ����� �����. �� ����� ��

��.

-f file_name

�� ��� �� �� � � ��� �����.

-h host_name

�� ��� �� �� �� � �����. �� ��� ���� �

��, �� � ��� ����.

-n � �� ��� �����.

query_name

��� �� � �����.

��

query_execute, RIM_view, admin, senior �� super

��

�� �� Operating-systems ��� ��� � �� �� amon-sul�

query.txt ��� �����. � ���� ��� �� ��� �� �����

�����.

wrunquery -h amon-sul -f query.txt -d ";" Operating-systems

�� query.txt�� �� ��� �����.

Query Name Operating-systemsNumber of rows : 9BOOTED_OS_VERSION_TYPE BOOTED_OS_NAME PROCESSOR_SPEED

396 Tivoli Management Framework: ���

3.2;AIX;UNKNOWN3.2;AIX;UNKNOWN3.2;AIX;UNKNOWN4.1;AIX;UNKNOWN4.1;AIX;UNKNOWN3.10;Windows 25;486 DX3.10;Windows 25;486 DX3.10;Windows 33;486 DX3.10;Windows 133;Intel Pentium

�� ��

wcrtqlib, wcrtquery, wgetquery, wruninvquery, wsetquery

wrunquery

� 1 �� 397

wruntask

��� ����� �� ���� �����.

��

wruntask -t task_name -l library_name {-h node... | -p profile_mgr...} [-a option]

[-e name=value] [-i] [-E] [-T trans_type] [-M mode [-s interval] [-n number] [-r]

[-m timeout] [-o output_format]

��

wruntask �� ��� ����� �� ���� �����. ���� ���

wcrttask� ���� ���.

��

-a option

���� ��� ��� �����. ��� ��� �� ��� ��� �

��� ��, � � � � �����(�: -a″-o option″). a �� ���

� ��� � ���� ���(�: -a ″-h node″ a ″ -p profile_mgr″).

-e name=value

���� �� �� ��� ����. -e �� ��� � �� ��� �

���� ���(�: -e DISPLAY=bald:0.0 -e COLOR=red).

-E �� � �� � �� ��� ���� �����.

-h node...

���� ��� ��� �����. ��� ��� �� �� ��� ���

���� ���(-p �� ��)� �� ���. -h �� ���� � �

�� � ���� ���(�: -h vernon-h everest-h fuji).

-i � � �� ���� � � �� �����.

-l library_name

��� ���� ���� ��� ����� �����.

-m timeout

��� ����� ����� ��� ����� ���� ��(�). � �

� �� ��� ��� ��� �� �� ����. -m �� ����

� ��, �� ����� 60����.

�: ������ � ���� ��� � ��� ���� � �����

���� ��� � ���. �� ��, ��� ���� �� 600�

����� ����� 300�� ���� 300� ��� �����.

398 Tivoli Management Framework: ���

-M mode

���� ���� �� �����. ��� �� ��� ����.

parallel

� ��� ��� �� ���� �� �� �����. -M �

� ���� � �� ������.

serial � �� �� ���� ���� � � ��� �����.

staged �� ��� � ��� ���� ��� ���� �����.

-n number

� ������ ���� ��� �� ��� �� �����. staged

�� ��� �� � ��� �� � �� ���.

-o output_format

��� � � �� �����. ��� �� � �� 0 - 17��� 8�

��� �����. �� ��� � � ���� �����. �� ��,

�� ��� � � � ����� -o 05� ������. ��� � ��

� � ��� �� ������. � � ��� ����.

01 � ��� �� � ��� �����.

02 �� ��� �����.

04 � � �����.

08 � �� � �����.

-p profile_mgr...

���� ���� ���� ���� �����. ��� ��� ���� �

�� �� ��� ��(-h �� ��)� �� ���. -p �� ��� �

���� ���� � ���� ���(�: p pm1 -p pm2 -p pm3).

-r ��� ��� ������ � �� ���� ���� � ���� ��

�� �� 1 �����.

-s interval

���� �� ��� � ���� ���� �� �� ���� ����

� ��� � �� �����. �� � � ��� ����. staged

�� ��� ���� � ��� �� � �� ���.

-t task_name

��� ��� � �����.

-T trans_type

���� �� �����. ���� ��� �� �� ��� 4 ���

�Tivoli ����� ������. � �� �� � �����.

�� ���� ��

wruntask

� 1 �� 399

�� �� ��� ����

�� �����

�� ��� � ����. -T ��� ���� � �� ������.

��

���� ��� � ��� ��� �� ���. wgettask �� ���� �

� �� � � ����.

��

1. �� ����� ��� bald � fuji�� ��� date_task� �����. ��

�� ��� ���� my_tasks� �����.

wruntask -t date_task -l my_tasks -h bald -h fuji#####################################################Task Name: date_taskManaged Node: baldReturn Code: 0-------Standard Output-------Mon Nov 21 10:49:34 CST 1998-------Standard Error Output-------#####################################################Task Name: date_taskManaged Node: fujiReturn Code: 0-------Standard Output-------Mon Nov 21 10:49:45 CST 1998-------Standard Error Output-------#####################################################

2. �� ����� ��� bald�� ��� date_task2� �����. ���� �

�� ���� my_tasks� �����. � ���� � � � ���.

wruntask -t date_task2 -l my_tasks -h bald -o 04#####################################################Mon Nov 21 10:50:47 CST 1998#####################################################

3. �� ����� �� �� vernon� ��� ps� �����. ���� ��� �

��� NoonTide� ����. � ����� ���� aux �� �����.

wruntask -t ps -l NoonTide -h vernon -a aux############################################################Task Name: psTask Endpoint: vernon (ManagedNode)Return Code: 0------Standard Output------USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMANDroot 2245 54.5 6.2 360 2368 ? S 13:10 0:02 task_endpointroot 2246 19.7 1.3 228 488 ? R 13:10 0:00 /tmp/ taskAAAa02245 auxnobody 2244 14.6 5.2 176 1992 ? S 13:10 0:01 man_node_skel1nobody 2239 12.2 7.3 568 2800 ? S 13:10 0:02 repository_ skel1root 134 8.4 2.9 1508 1100 ? S Apr 19 0:41 oserv -p 94 \-k /usr/Tivonobody 2237 3.5 5.7 184 2188 ? S 13:10 0:01 library_skel1

wruntask

400 Tivoli Management Framework: ���

root 2236 1.1 5.5 120 2108 p0 S 13:09 0:01 wrunjob ps_ vernon -l Nooroot 172 0.0 1.8 136 684 ? S Apr 19 0:02 ./usrlnkd------Standard Error Output------###############################################################

�� ��

wcrtjob, wcrttask, wgettask

wruntask

� 1 �� 401

wschedjob

��� ����� �� �� ��� ����.

��

wschedjob -n name -L library_name -t ″mm/dd/yyyy hh:mm″ [-c ‘time_period’]

[-C daytime | nighttime | weekday | weekend from to][-D] [-d desktop] [-f file

-h host] [-g group] [-l label] [-m email] [-o] [-r ‘time_period’ | ‘iterations’] [-R

‘time_period’ | ‘iterations’] [-s description]

��

wschedjob �� ���� �� ��� �� � ��� ���. ����� �

�� ����� �� �� ���� �� � ����. �� ���� �� �

��� �� ��� �� �� ���. �� ��� ���� � ���� ���

��. ��� ��� � ����� ��� ��� ��� �� �����.

��

-c ‘time_period’

�� ���� �� �� ���� �� �� ���� �� �����.

��� � � �(��� �)� �� ���. �� �� �, �� ��

���. �� �� ’3 hour’� ����, �� ���� �� �� ��

�� 3�� �� ��� �����.

-C daytime | nighttime | weekday | weekend from to

��� ���� �� �� �� �����. from �� �� �� ��

�� ��� � � ����. to �� �� �� �� �� ��� � � �

���. �� 24�� ���� � �� ���(�: �� 9�� �� 9:00

��, �� 2�� �� 14:00��). �� �� �� 0� �� 6�

�� ��� � ���. ��� �� ��� ����.

‘daytime from to’

��� from� to ��� � ��� ����� �����.

‘nighttime from to’

��� from� to ��� � �� �� ����� �����.

‘weekday from to’

��� from� to� ��� ���� ����� �����.

‘weekend from to’

��� from� to� ��� ���� ����� �����.

402 Tivoli Management Framework: ���

-d desktop

��� �� ��� ��� � �� �� ��� �� ��� ����

�. �� �� ��� ��� � ����.

-D �� �� ���� ����. �� ����� �� ��� �� �

�� ��� ���� ����.

-f file ��� �� ��� ��� � �� ��� ���� �� �����. ��

� ���� ��, -h� ���� ���� �� ���.

-g group

��� �� ��� ��� � �� ��� �� �� �� �����. �

� �� �� �� ��� � ����.

-h host

�� �� ��� ���� ���� �����. -f ��� �� �� �

��.

-l label

��� ����� �� � �����.

-L library_name

��� �� ��� ���� � �����(��).

-m email

��� �� ��� ��� � �� ��� �� �� � ��� ����

�. �� �� �� � ��� ��� � ����.

-n name

���� �� ��� ����� �� ��� � �����(��).

-o -t ��� ��� ��� ��� �����. � ���� �����.

-r ‘ time_period’ | ‘ iterations’

�� ��� �����. iterations ��� ���� ��, �� ��� ��

�� �����. �� �� � ��� �� ���.

‘time_period’ ��� ��� �� ������� �����. ��� �

� �(��� �)� �� ���. �� �� �, ��, ,

�, � �� ����. �� ��, ’3 hour’� ���� 3�

��� ��� �����.

‘iterations’ ��� ���� ��� �����. ��, �� � � ��

� �� ���. �� �� �, ��, , �, � �� �

���. �� ��, ’3 hour 6’ ���� ��� 6 ��

� ��� 3���� �����.

wschedjob

� 1 �� 403

-R ‘time_period’ | ‘iterations’

��� ��� �����. iterations ��� ���� ��, �� ��� �

��� ������.

‘time_period’

��� ��� �� ������ �����. ��� � � �(��

� �)� �� ���. �� �� �, �� �� ���. ��

��, ’3 hour’� ���� 3���� ��� ������.

‘iterations’

��� ����� ��� �����. ��, �� � � ��� �

� ���. �� �� �, �� �� ���. �� ��, ’3

hour 6’ ���� ��� 6 ��� ��� 3���� �����

�.

-s description

�� ����. �� �� � � � � ����.

-t ″mm/dd/yyyy hh:mm″

��� �� ����� ���� �� �� �����(��).

��

admin, senior, super

��

1. �� ����� �� SendWishList� ��� ���� Holiday�� ���

����. �� 1998� 12! 24� �� 6:00� �����. ��� �� ��

� ��� ��� �, �� �� ���� [email protected]�� �� ��.

wschedjob -t "12/24/1998 6:00" -m [email protected] -L \Holiday -n SendWishList

2. �� ����� �� SendWishList� ��� ���� Holiday�� ���

����. �� 1998� 12! 24� �� 6:00� �����. � ����� �

�� �� ��� ��� �, �� �� ���� [email protected],

[email protected][email protected]�� �� ��. �� 5��� ����

�. ��� ���� ���� 1� �� � ������.

wschedjob -t "12/24/1998 6:00" -m [email protected] \-L Holiday -n SendWishList -r ’5 minute’ \-m [email protected] -m [email protected] -R ’1 minute 1’

3. �� ����� �� nice_list� ��� ���� MakeToys�� ���

����. �� !��� ���� �� 10�� �����.

wschedjob -t "3/4/1996 22:00" -L MakeToys -n nice_list \-r ’1 day’ -C ’weekday 1 5’

wschedjob

404 Tivoli Management Framework: ���

�� ��

wdelsched, wedsched, wenblsched, wgetsched

wschedjob

� 1 �� 405

wserver

UNIX ��� Tivoli �� rgion ��� ����.

��

wserver -c cdrom_path [-a server_name] [-d] [-P] [-p path_prefix[!]]

[install_variable=value...]

��

wserver �� region� �� Tivoli Management Region ��� ����. X11

�� � ��� �� �� � � �� �����. wserver� X11 ��

����� DISPLAY �� ��� �� �� �� DOGUI� ��� ����

������. ��� �� �� ��, �� �� DOGUI� no� �����. �

���� X11 � ��� �����. �� ��� wserver� ����� ���

� install_dir ���� ������. �, WPREINST.SH� ���� ��� �

� FILE0.TAR� tar � �� ���� ����. �� ����� �� ��

BINDIR install_dir ���� �� � ����.

��

-a server_name

Tivoli Management Region ��� � �����. � ��� � �

� �� ��� � ��� � ����. �� � ��� ����.

9� ��� ��� � �� �� ����� hostname �� Unknown

�����. � �� ���� � � ��� � ����.

�: � ���� �� ��� ��� � ����� ��, �

/.rhosts �� ���� ��� �� ��� �� ���� ��

�.

-c cdrom_path

CD-ROM ���� �� ��� �����.

-d � ��(install_variable)� ����� ����. � ���� wserver�

��� ���� �����. � �� �� � �� �� ���� ����

� �� ����.

-p path_prefix[!]

path_prefix� �� � �� �� ����. ��� ‘!’� ���� ��,

path_prefix� �� � ��� ��� ��� ��� ����. �� ��,

Tivoli ���� �� �� � ��� /usr/local/Tivoli/bin���. -p /Tivoli

� ���� ��, � ��� /Tivoli/usr/local/Tivoli/bin���. -p /Tivoli!

� ���� ��, ��� /Tivoli/bin���.

406 Tivoli Management Framework: ���

-P ����� ��� �� �� �� �� ��� �� �����. � �

� �� ���� �� ���� �����.

install_variable=value...

�� ���� � ��� �����, ����� ���� �����

�� � ����. X11 �� � �� ����� ��, � �� ���

� � � ��� �� ����. ��, ����� �� � � ���

��� �� ����� ���� ���. � ��� �� ��� ���

�� �� ��� �����.

�: �� ��� ��� �� ���� � �� � � ����. �

�� ����� �����.

�� � ��� Tivoli Management Region ��� �� ���� �

����. ���� �� �� ��� ��� wserver� �� �� �

��� ����. ��� ��� ��� ‘!’ ��� � �� ����

�� �� �� � ����. �� � ��� ��� � ����

�.

BIN=binaries_dir

Tivoli Management Framework ���� �� �� � ��

(/usr/local/Tivoli/bin)� �����.

LIB=libraries_dir

Tivoli Management Framework ����� �� �� � ��

(/usr/local/Tivoli/lib)� �����.

ALIDB=server_database_dir

Tivoli Management Framework �� ������� �� ��

� ��(/var/spool/Tivoli)� �����.

MAN=man_page_dir

Tivoli Management Framework ��� ��� �� �� � �

�(/usr/local/Tivoli/man)� �����.

APPD=X11_app_defaults_dir

X11 ������ ��� �� �� � ��(/usr/lib/X11/app-

defaults)� �����.

CAT=message_catalog_dir

Tivoli Management Framework ��� ����� �� �� �

��(/usr/local/Tivoli/msg_cat)� �����.

�� �� ��� � �����.

wserver

� 1 �� 407

@EL@=None | Simple | DES

��� �� � ��� ��� � �����. �� �

Simple���.

@ForceBind@=yes | no

�� ��� ��� IP(Internet Protocol) ��� �� �����

�. � �� �� �� ���� �� � ���� �� IP

��� �� ��� �� �� �� ��� �����.

AutoStart=0 | 1

Tivoli � ��� �� � ��� ��� �����. ����

� � ���� ����.

CreatePaths=0 | 1

��� ���� �� ���� �� �� ���� ��(1)�

��� �����. ����� ���� �����. install_variables

� ��� ���� ��� ��� �����.

IP=installation_password

� ��� ����. ����� ��� ����. � ��� ��

���� Tivoli Management Framework� �� �� � ��,

���� ��� �� �� seed � ��� ���� Tivoli

Management Region� ��� �� region� �����.

LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41

Tivoli ��� �� ��� � �����.

RN=region_name

�� policy region � �����. �� policy region � �

�� ��� � ����.

SetPort=0 | 1

Tivoli �� �� �� �� ��� ��� �����. ���

�� � �� ���� ����.

��

� �� ���� �� �� ��

��

/tmp/tivoli.sinstall

�� � ���� ��� �� �� ��� �����.

/tmp/install.cfg.error /tmp/install.cfg.output

Tivoli Management Region �� ������� ��� �� ��� �� �

�. ��� �, �#� ���� �� � �� �����.

wserver

408 Tivoli Management Framework: ���

/etc/Tivoli/setup_env.sh

��� �� ��� ���� � � Bourne �� �� �� ��

��� ��.

/etc/Tivoli/setup_env.csh

��� �� ��� ���� � � C �� �� �� �� ���

��.

�� ��

� �� ���� � ��� �����.

DISPLAY

X11 �� �� ����� �����.

DOGUI

$DISPLAY �� ��� ��� ��� ��, wserver� ��� ��� �

����.

EtcTivoli

��� /etc/Tivoli ������. ���� ����.

BINDIR

install_dir ���(WPREINST.SH� ��� ��� �� FILE0.TAR�

� � ���)�� wserver� ���� ���� ��, � ���

install_dir ���� �� � ����.

o_dispatch

�� ��� 94���. ���� ����.

SAVE_CFG_FILES

Tivoli Management Region ��� ��� �� ��� �� ��

/tmp/install.cfg.output � /tmp/install/cfg.error� �� ��� �� ��

���. � �� ����� ��, � ��� � � ��� �� � �

���.

�: Tivoli Management Framework� UNIX �� ��� �� � /tmp/.tivoli

���� �����. � ����� �� ��� ����� �� �

�� �� ����. Tivoli �� �� ����� ��� ���� ��� �

���� � �� � ��� ���� ����. �� ����� ����

�� �� ��� ��(cron �� Tivoli ��)� � ���� � �� �

��� ��� ���.

�� ���� ����� �� ��� �� � �� ��� �

���. Tivoli Management Framework � ���, �� �� ����

�� �� ��� �����.

wserver

� 1 �� 409

1. ���� ������. � ����� ��� �� �� � �� ��� �

� ���. ��� �� �� ��� � ��� ��� ���� �

��� �� �� ��� � ��� ����.

2. �� ���� �� ��� �����.

a. �� �� � ����.

odadmin environ get > envfile

b. envfile ��� �� � ��� �����.

TIVOLI_COMM_DIR=new_directory_name

c. �� �� � ����.

odadmin environ set < envfile

3. /etc/Tivoli ���� �� Tivoli �� set_env.csh, setup_env.sh �

oserv.rc �� �� TIVOLI_COMM_DIR ��� �����.

4. HP-UX � Solaris ���� ��, �� ���� ���� ��� ��

� ������.

TIVOLI_COMM_DIR=new_directory_name

�� ���� ���� �� ���� ���� �� �� ��� �

� �� ��� � ������. �� ���� � �� ���� ��

�� ��� �� ����.

v HP-UX �� ��� ��: /sbin/init.d/Tivoli

v Solaris �� ��� ��: /etc/rc3.d/S99Tivoli

5. �� �� � �� �� ���� ������.

odadmin shutdown all

6. �� �� � �� �� ���� �� ������.

odadmin reexec all

��

�� ����� ��� �� ����. �� �� DOGUI� no� ����. X11

� ��� � ���.

1. �� ����� � ��� Tivoli Management Region ��� ����.

CD-ROM ���� �� �� ��� /cdrom/cdrom0���. ����

/Tivoli/bin� ����. ����� /Tivoli/lib� ����. Tivoli ����

��� /Tivoli/database� ����. man page� /Tivoli/man� ����. X11

������� ��� /Tivoli/X11� ����. ��� ����� /Tivoli/cat

� ����. ��� ���

IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 ���� ���

�. �� policy region NoonTide-Region��� ��� �����. Tivoli

wserver

410 Tivoli Management Framework: ���

� ��� �� �� ��� �����. Tivoli �� �� �� ��� �

����. ��� ���� �� �� � ���� �����. � ���

Tivoli4Ever� ����. �� ��� �� ���� ����.

./wserver -c /cdrom/cdrom0 BIN=Tivoli/bin \LIB=Tivoli/lib ALIDB=/Tivoli/database MAN=/Tivoli/man \APPD=/Tivoli/X11 CAT=/Tivoli/cat \LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 RN=NoonTide-Region \AutoStart=1 SetPort=1 CreatePaths=1 IP=Tivoli4Ever

�: Tivoli Management Region ��� �� ���� �� Tivoli ����

��� �� �� ���� �� ����� ���(ALIDB=!). ��

��� ��� �� ���� ��� � ����. �� �� ����

���� ���� ��� ��(!)� ������. �� ��� �� ��

�� �� Tivoli Management Region ��� �� ��� � ���

� �����.

. /wserver -c /cdrom/cdrom0 \BIN=! LIB=! ALIDB=! MAN=! APPD=! CAT=! \LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 \RN=NoonTide-Region AutoStart=1 \SetPort=1 CreatePaths=1 IP=Tivoli4Ever

2. �� ����� � ��� Tivoli Management Region ��� ����.

CD-ROM ���� �� �� ��� /cdrom���. ���� /Tivoli/bin�

���� . ����� /Tivoli/lib� ���� . Tivoli �������

/Tivoli/database� ����. man page� /Tivoli/man� ����. ��� �

�� IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 ����

����. �� policy region NoonTide�� ��� �����.

wserver -c /cdrom -d -p /Tivoli! ALIDB=/database \LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 RN=NoonTide

3. �� ����� � ��� Tivoli Management Region ��� ����.

CD-ROM ���� �� �� ��� /cdrom���. ���� /Tivoli/bin�

����. ����� /Tivoli/lib� ����. Tivoli �������

/Tivoli/database� ����. man page� /Tivoli/man� ����. ��� �

�� IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 ����

����. �� policy region NoonTide�� ��� �����.

wserver -c /cdrom BIN=/Tivoli/bin LIB=/Tivoli/lib \ALIDB=/Tivoli/database MAN=/Tivoli/man \LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 \RN=NoonTide

4. �� ����� � ��� Tivoli Management Region ��� ����.

CD-ROM ���� �� �� ��� /cdrom���. � ��(���, ��

�� �)� ��� �� ��� /Tivoli ��� �� ��� ����. ���

��� IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 ���

� ����.

wserver

� 1 �� 411

wserver -c /cdrom -d \LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41

5. �� ����� �� �� cook� Tivoli Management Region ��� ���

�. CD-ROM ���� �� �� ��� /cdrom��, � ��� � �� �

� ��(cook) ���� �� �� ���. �� cook� �� ��� � �

�� ����� ����� ����. � ��(���, ���� �)� �

� ��� ����. ��� ���

IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41 ���� ���

�.

wserver -c /cdrom -P -d -a cook \LK=IBMTIVOLIMANAGEMENTREGIONLICENSEKEY41

�� ��

wclient, winstall

wserver

412 Tivoli Management Framework: ���

wsetadmin

Tivoli ���� �� ��� �����.

��

wsetadmin [-L login] [-l login] [-n notice_group] [-N notice_group] [-R group]

[-r group,role1:role2...] name

��

wsetadmin �� �� Tivoli ���� �� �����. ��� ��� ���

�� ��� � ���, ��� �� �� � �� �� �� ��� � ����.

�: ��� �, �� � �� ��� ���� �� ���� � wsetadmin

��� � ����. ��� �� ����� �� ���.

��

-l login

��� ��� �����.

-L login

��� ��� �����.

-n notice_group

�� ��� �� �����.

-N notice_group

�� ���� �� �����.

-r group,role1:role2...

group�� ��� �� ��� ��� �����. �� ����� � ��

� ��� �� �����.

v @Administration

v @PolicyRegion:Administration

v /Regions/PolicyRegion:Administration

-R group

��� ���� �� � �� �����.

name �� ��� ���� � �����.

��

senior �� super

� 1 �� 413

��

1. �� ����� ��� Steve Callahan� �� ��� �����. Accounting

policy region� ��� �� admin���. ���� Tivoli �� �� �� �

�� � �� ���� ���, ��� callahan@teton� �����.

wsetadmin -r @Accounting,admin -N "Tivoli Authorization" \-l callahan@teton "Steve Callahan"

2. �� ����� ��� Steve Callahan� �� ��� �� �����. � �

���� Accounting policy region� �� �� �����. Tivoli �� ��

�� ��� �� ���, ��� callahan@teton �����.

wsetadmin -R @Accounting -n "Tivoli Authorization" \-L callahan@teton "Steve Callahan"

�� ��

wcrtadmin, wgetadmin

wsetadmin

414 Tivoli Management Framework: ���

wsetdfpol

���� �� �� policy ��� ����.

��

wsetdfpol [-d | -v] class label

��

wsetdfpol �� �� policy region� ��� �� ���� �� �� policy ��

� policy ��� �� �� � ����. �� ���� policy region� �

���, ��� �� policy ��� �����.

policy �� ��� policy region� ��� ��� �� �� �����. policy

��� �� ��� �� ���� �� ��� ��� �����.

��

-d �� policy �� ��� ����. � ��� -v� ���� � ��

� ���� ���.

-v �� policy ��� �� ��� ����.

class �� policy ��� �� ���� �����.

label ��� policy �� �� �����.

��

admin, senior, super

��

�� ����� policy ��� �� �� Restricted� ����. � ���

ProfileManager ���� �� �� policy ��� �� �����.

wsetdfpol -v ProfileManager Restricted

�� ��

wgetdfpol

� 1 �� 415

wseterr

�� ����� �� �� ���� �� ��� ����. � �� ������

� ���� ���.

��

wseterr return_code

��

wseterr �� �� ������ ��� �� ��� �� �� ��� ����.

Tivoli� ��� ��� Tivoli Software Distribution� ���� � � �� �

�� �� � �� ��� ����.

��

return_code

��� �� ��� �����.

416 Tivoli Management Framework: ���

wsetjob

��� �� ����.

��

wsetjob -j job_name -l library_name [-t task_name] [-M mode] [-s interval -n

number] [-m timeout] [-o output_format] [-D] [-d node_name -f file_name] [-h

node_name] [-p prof_manager_name] [-N] [-X]

��

wsetjob �� ��� ���� ���� ��� �� ����.

��

-d node_name

�� � �� �� ��� �����.

-D �� � ���� ����.

-f file_name

�� � � �� �� � �����.

-h node_name

�� ��� �� ��� �����.

-j job_name

���� ��� � �����.

-l library_name

��� ��� ���� �� �� ��� ����� �����.

-m timeout

��� ����� ����� ��� ����� ���� ��(�) ��

���. staged �� �� �� ��, ����� �� ���� �� �

��.

-M mode

��� ���� �� �����. ��� �� ��� ����.

parallel

�� ���� �� � � ��� �����.

serial ��� � �� �� ���� �� �� �����.

staged �� �� ��� �� ��� �� � �����. -M staged

� �� �� �� -s interval, -n number � -m timeout���.

� 1 �� 417

-n number

staged �� � ��� �� �� �� �����. staged �� ���

���� � ��� �� � �� ���.

-N ��� �� � ���� ��� ���.

-o output_format

�� � � �� �����. �� � �� � �� ��� ��� ��

�� �����. �� � �� 0 - 15��� ��� �����. ��

�� �� ��� �����.

1 � ��� �� � ��� �����.

2 �� �� ��� �����.

4 � � �����.

8 � �� � �����.

-p prof_manager_name

��� ���� ���� ���� �����.

-s interval

���� �� ��� � ���� ���� �� �� ���� ����

� ��� � �� �����. staged �� ��� ���� � ���

�� � �� ���. �� m ���� ��� ���� ��� �

���.

-t task_name

��� ����� ���� ���� � �����.

-X ���� �� � ���� ��� ���.

��

admin, senior, super

�� ��

wcrttask, wdeljob, wrunjob, wsettask

wsetjob

418 Tivoli Management Framework: ���

wsetlang

Tivoli �� �� �� ����� Tivoli ��� �� �� ��� ����.

��

wsetlang [-o] [-l locale_name]

��

wsetlang �� Tivoli ��� �� ��� �� �� �� ����. ��� �

�� � ��� �� �� ��� � �� � ��� �� � � ����.

��� � � �� ISO 639 �� �� ��� ���� ��(_)� � �� ISO

3166 �� ��� �����. � �� ��� ����.

11[_TT]

��� ll �� ��� ��� _TT� ��� �� �����.

UNIX ��� �� �� ��� � �� UNIX �� ���� ��� � ��

��.

locale -a

UNIX �� ���� ��� ��� � ��� � �� ���� �� �� �

� ��� ��� �����. ���� ��� �� ���, C� �����.

Windows �� ��� �� ��� ��� � �����. ���� ���� �

���.

��� � ��� �� �����.

en �� C

��

fr ���

de ���

it �����

ja ���

pt_BR

��� �

ko ���

zh_CN

���

� 1 �� 419

zh_TW

���

��

-l locale_name

��� ��� �����. -l ��� ���� � ��, �� �� ���

�����.

-o � Tivoli Management Region �� �� �� ��� �� ��� ���

��� ����.

��

super �� senior

��

1. ��� ���� �� ���� �� odadmin �� ����� �� �

� � ����.

wsetlang -o -l fr

�� �� ���� ��� �� � � � ����.

odadmin environ get

2. � ���� �� �� �� ��� � ��� �� �� � ����.

� ��� �� ���� ����.

wsetlang -l fr

wsetlang

420 Tivoli Management Framework: ���

wsetpkey

����� ��� ����� ����.

��

wsetpkey [-a key [-k]] | [-d key]

��

wsetpkey �� Windows ����� ��� ����� ����. � � ��

�� ��� ���� ���� �� ����.

��

-a key ��� �� �� �����.

-d key ���� �� � � �� ��� ��� �� �� ���� ��� ��

���.

-k ��� �����.

��

�� ����� admin_key� �����.

wsetpkey -a admin_key

� 1 �� 421

wsetpm

��� �� ��� �� ���� ���� �� �� �� �� ���� �

��.

��

wsetpm [-d | -D] @ProfileManager:prof_manager_name

��

wsetpm �� ���� ���� ���� �� ��� ������ �����.

���� �� ��� ���� ���� ����� ������� �� ����

�� ��� � ����. ������ ���� �� ��� ���� ���� �

��� ��� � ����. �� ��� ���� ���� �� �� �� ��

� ���� ���� ��� � ����. ���� �� ���� ���� �� �

�� ���� ��, �� ��� ������� ���� � �����.

��

-d prof_manager_name� ���� �� ��� ���� �����.

-D prof_manager_name� ���� �� ��� ��� ��� �����.

���� ����� ���� �� �� �� ���� �� �� � �

���� ���� �� ���.

@ProfileManager:prof_manager_name

���� ��� � �����.

��

admin, senior, super

��

1. �� ����� ���� ��� AdminServer� ���� �� ��� �

��� ����. ����� ���� ����.

wsetpm -d @ProfileManager:AdminServer

2. �� ����� ���� ��� TopLevel� ����� ���� ��� �

�� ����. ���� �� �� �� �������.

wsetpm -D @ProfileManager:TopLevel

422 Tivoli Management Framework: ���

wsetpr

policy region� ��� policy� ����, policy ��� �� �� �� �� �

� �����, policy region� �� �� ����� �����.

��

wsetpr [-d default_pol] [-v validation_pol] [-E | -e] resource region

wsetpr [-r] resource region

��

wsetpr �� ��� policy region� �� ��� ���� �� �� ��� ��

policy� �����. -E �� -e ��� ���� ��, � �� ��� policy region

� �� ��� �� policy ��� �� �� �� �� �� ���� ���.

wsetpr �� �� policy region� �� �� ����� �����. �����

� �� ��� �� policy region� �����. �� �� ����� -r �

� ������.

��

-d default_pol

�� ��� ��� �� policy� �� �����.

-e policy ��� �� �� �������.

-E policy ��� �� �� �������.

-r ��� �� policy region�� �����.

-v validation_pol

�� ��� ��� ��� �� policy� �� �����.

region �� policy region� �� �����.

resource

�� �� �� �����.

��

senior �� super ��� policy

��

1. �� ����� �� TaskLibrary� Engineering policy region� �����.

wsetpr TaskLibrary @PolicyRegion:Engineering

� 1 �� 423

2. �� ����� Engineering policy region� TaskLibrary ��� �� policy

��� �� �� �������. �� policy� BasicTaskLibrary��, ��

� �� policy� BasicTaskLibrary���.

wsetpr -d BasicTaskLibrary -v BasicTaskLibrary -e \TaskLibrary @Engineering

�� ��

wcrtpr, wdelpr, wgetpr

wsetpr

424 Tivoli Management Framework: ���

wsetquery

��� �� ���.

��

wsetquery [-n name] [-d desc] [-r repository] [-v view] [-c column...] [-i | -s |

-w where_clause] [-x] query_name

��

wsetquery �� ���� �� ��� �� ��� ��� � ����. �� �,

�, ��, �, � �� � where� ��� � ����.

��

-c column...

��� ��� ��� � �����. � ��� � ����� ��

�� -c� ������. � �� � ��� � � ��� ���

��.

-d desc

��� � �����.

-i � � �� ��� where� ����.

-n name

�� � �����.

-r repository

��� ��� � ��� �����.

-s � � �� �#� ���� � ����. �� �� ��� �� �

��.

[AND | OR] [NOT] Column_Name {= | != | < | <= | > | >= | LIKE |

IN} Column_Value

-v view

��� �������� ��� ���� � ���� � �� ��� ��

���.

-w where_clause

����� ��� where� ����.

-x �� ��� �� �� ���� ��� �����.

query_name

��� ��� �����.

� 1 �� 425

��

query_edit, admin, senior �� super

��

1. �� ����� �� �� � ��� �� ��� �� ���� �

DOS-machines ��� where� �����. ����� ��� where� �

���.

wsetquery -w "BOOTED_OS_NAME = ’DOS’ AND \BOOTED_OS_VERSION LIKE ’6.%’" DOS-machines

2. �� ����� DOS-machines �� � AIX-machines�� ���, ��

� �� � ����, � � �� ��� where� ����.

wsetquery -i -n AIX-machines -d "Find all the AIX \machines" DOS-machines <<EOF

(BOOTED_OS_NAME = ’AIX’)EOF

�� ��

wcrtqlib, wcrtquery, wgetquery, wruninvquery, wrunquery

wsetquery

426 Tivoli Management Framework: ���

wsetrim

RIM(RDBMS Interface Module) ��� �� ���.

��

wsetrim [-n name] [-d database] [-u user] [-H db_home] [-s server_id] [-I

instance_home] [-t instance_name] [-a application_label] [-m max_connections]

rim_name

��

wsetrim �� ��� RIM ��� �� ������ ��� �����. ��

���� ID, ������ ���, ������ , ������ �� ID � ���

� ��� � ����. RIM ��� �� �� �� �� ����� ��

��� wdel �� ���� ��� ��� wcrtrim �� ���� �� �

� ���. �� ���� � RIM ��� ��� �� �����,

Tivoli Application Development Environment� ��� ���� _set_label ��

�� ��� � ����.

��

-a application_label

RIM ��� �� ������ �� �����.

-d database

RIM ��� ��� ������� � �����. DB2� ����

��, “�� ��” ��� � ������.

-H db_home

������ ���� �� ��� �����. � �� �� Oracle,

Sybase � DB2� �� �� �� ORACLE_HOME, SYBASE � DB2DIR

�����.

-I instance_home

DB2� ����, ��� RIM ��� �� DB2 ����� ��� ��

����.

-m max_connections

RIM �� � RDBMS ��� ��� �� �� �����.

-n name

RIM �� � name�� �����.

-s server_id

������� �� �� ID� �����. � �� �� Oracle, Sybase

� DB2� �� �� �� TWO_TASK, DSQUERY, DB2COMM ��

� 1 �� 427

���. Microsoft SQL Server� ��, � RDBMS(relational database

management system) �� ��� ����.

-t instance_name

DB2� ����, ��� RIM ��� �� DB2 ����� � ��

����.

-u user

RIM ��� ���� ������ ���� � �����. DB2�

���� ��, ��� UNIX ���� ������.

rim_name

��� RIM ��� �� �����.

��

Tivoli Management Region�� senior �� super

��

�� ����� ������ ID� � ���, ������ ���� tivoli2�, �

����� ���� /ORACLE�, � ������ �� ID� inventory RIM

��� �� invdb2.world� �����.

wsetrim -d inventory -u tivoli2 -H /ORACLE \-s invdb2.world inventory

���� ����� wgetrim �� ������.

wgetrim inventory

� ��� ����. ���� ��� �� � � ���� ������. �

��� DB2�� �����.

RIM Host: amon-sulRDBMS User: tivoli2RDBMS Vendor: OracleDatabase ID: inventoryDatabase Home: /ORACLEServer ID: invdb2.worldInstance Home:

�� ��

wcrtrim, wgetrim, wsetrimpw

wsetrim

428 Tivoli Management Framework: ���

wsetrimpw

RIM(RDBMS Interface Module) ��� �� ������ ��� ����.

��

wsetrimpw rim_name old_pw new_pw

��

wsetrimpw �� RIM ��� ������ ��� ����. old_pw �

new_pw �� ���� ���, ��� ����� ��� �������.

��

new_pw

��� ��� �����.

old_pw

�� ��� �����.

rim_name

RIM �� �� �����.

��

Tivoli Management Region�� senior �� super

��

�� ����� inventory RIM ��� ��� funEguy�� Dlite� ����

�.

wsetrimpw inventory funEguy Dlite

�� ��

wcrtrim, wgetrim, wsetrim

� 1 �� 429

wsettap

Windows �� ��� Tivoli �� �� �� ����.

��

wsettap [-a| -d] [-B] [-P] [-r [domain_name\user_name | user_name]] [-k]

��

wsettap �� Tivoli �� ��, � �� ��� TivoliAP.dll� �� ��

��. Tivoli �� ��� ���� Tivoli Management Framework� ��� ��

��� �� �� ���� ��� � ����. wsettap �� Windows NT,

Windows 2000 �� Windows XP �� ��� setuid ���� ��� � ����

��. �, ��� ��� ���� ������ ���� ��� � ��� ���.

�� �� ��� ��� �� ��� ��� Tivoli Management Framework �

� �� ���� ������.

Tivoli �� �� �� ��� �� �����. Tivoli Management Framework�

� �� ���� �� �� ���� �����.

wsettap �� �� �� ���� �� �� �� TivoliAP.dll��� �� ���

�����.

����� Tivoli Management Region ��� �� �� ���� Tivoli �� �

�� �� ���� �� ��� �� �� ����� �����.

��

-a Tivoli �� �� �� � �� � �� ��(LSA)�� TivoliAP.dll

�����. ��� �� � �� ���� ���. TivoliAP.dll ��

��� �� ��� � LSA� � �����.

-B �� ��� ���� � �� ��� ���� ���� ��� ����

�����. �� ��� ���� ���� ���� ����� -P �� �

�����.

-d Tivoli �� �� �� � ��� LSA� TivoliAP.dll �� ���

��. TivoliAP.dll �� ��� �� ��� � LSA� � ����. (�

�� Tivoli Management Framework� � ���� �� ��� � ��

��.)

-k wsettap� user_name� �� ��� � � �� ��� �����. -k�

���� ���, wsettap� ����� ��� �������.

430 Tivoli Management Framework: ���

-P �� ��� ���� ���� ��� ���� �����. �� ����.

�� ��� ��� �� �� ��� ���� ���� ���� ����

� -B �� ������.

-r [domain_name\user_name | user_name]

Tivoli �� �� �� user_name�� ����. Tivoli� � ��� �

� ���� �� �� ���� �����. user_name �� ��(/)

�� ���(\)� ��� ��� � �� � ����. ���� ���

���� Tivoli �� ��� ���� ��� � ������ � ���

� ����� ����� ���. ���� ���� � ��, �� ��

� � ����� ���� ����� ��� ���� �����. wsettap

-r ″″ Tivoli Management Framework� �� �� ���� ��� �

�� ���. ����� �� ����� ����� �� ���� �

� ������.

��

� ��� ���. �� �� wlcftap� ����� Tivoli admin ��� ��

��. � �� ���� � ����� ��� Windows �� �� ���

����.

��

�� ����� Tivoli �� �� �� userTME�� ��� ���� ���

�. wsettap �� pswd.txt file�� userTME� �� ��� ����.

wsettap -r userTME -k < pswd.txt

wsettap

� 1 �� 431

wsettask

���� �� ����.

��

wsettask -t task_name -l lib_name [-g group_name] [-u user_name] -r role [-c

comments] {-i interp_type node_name file_name}...

��

wsettask �� ��� ��� ����� ��� �� ����.

��

-c comments

��� � �� ���� ��� � �� �����.

-g group_name

���� ��� ��� � �����(UNIX� �).

-i ��� ���� �� ���� ���� � �� ��� �����. -i �

�� �� �� � �� ���.

file_name

��� ���� ��� �� �� � �����.

interp_type

���� ��� ��� ����� �� �����.

node_name

��� ��� �� ��� �� �� �� ��� �����.

-l lib_name

���� �� ��� ����� �����.

-r role

���� ���� � �� �� �� �� �����. ��� ���

��� �� �� ��� � ����(�: admin:senior:super).

-t task_name

�� �� ��� � �����.

-u user_name

���� ���� ���� � �����.

��

admin, senior, super

432 Tivoli Management Framework: ���

�� ��

wcrttask, wdeltask, wgettask

wsettask

� 1 �� 433

wsetval

���� �� �� �� �����.

��

wsetval [-b] [-d] [-h registry_hive] -k {key | @file_name} -n value_name -v

{″value_string″ | @file_name}

��

Windows �������� wsetval �� ���� ��( �) �� �� �

�� � �( �) ����. �� �� ���� �� �� �����.

�: � �� ������� ���� ���.

��

-b � ���� �����. ��� � -v ���� ���� ���� �

� ���.

-d -n ���� ���� � ��� -k ���� ���� � ����

�. -n ��� ���, -n ���� ���� � �� �����. -n ���

���, -k ���� ���� (� � � �)� �����.

-h registry_hive

��� ���� ��� �����. ��� ��� ����.

v HKEY_LOCAL_MACHINE(���)

v HKEY_CURRENT_USER

v HKEY_CLASSES_ROOT

v HKEY_USERS

v HKEY_CURRENT_CONFIG(Windows)

v HKEY_DYN_DATA(Windows)

-k key | @file_name

�� ��� � �����. � � � ��� @�� � file_name�

� ������.

-n value_name

�� � �����. -d� �� ��, -n �� ������.

-v ″value_string″ | @file_name

� ���� �� �� � �����. -d� �� ��, -v �� ���

��.

434 Tivoli Management Framework: ���

��

admin

��

NOTEPAD � � �� SOFTWARE ��� ���, NOTEPADVAR

� � HKEY_LOCAL_MACHINE ��� ����� �� �� � ��

��.

wsetval -h HKEY_LOCAL_MACHINE -k SOFTWARE\NOTEPAD \-n NOTEPADVAR -v C:\TEMP\NTPADVAR.FIL

wsetval

� 1 �� 435

wsndnotif

� � ��� ��� ��� �� ��� �����.

��

wsndnotif [-et] ngroup priority

��

wsndnotif �� � � ��� ��� ���� �� ��� ���� ���

�������. -e � -t �� ���� �� �� �� � ���� ���

� ��� � ����. � �� ���� � ��, � �� � � �

ASCII ��� ��� ���� �� � ���� ���� ����. � �� �

�� �� �� ���� ���� ��� �� ��� �����.

��

-e � � � ��(�:IDL(Interface Definition Language) ����� ���

� ��)� ASCII �� ��� �����.

-t � � � EIDL(Extended Interface Definition Language) ��� �

�� ���� ASCII ��� tmf_msg_t� ���� �����. EIDL

��� ��� ���� ASCII ��� �� ��� ��� TME 10 ADE

Framework Services Manual ������.

ngroup

��� � � ��� �� �� �����.

priority

��� � � ��� �� ��� ���� � ��� �� �� ��

���. ��� �� �� ��, ��, � , �� � ������.

��

user, senior, super

��

1. �� ����� Tivoli Administration �� ��� ��� �����. ��

�� �����.

wsndnotif "Tivoli Administration" NoticeThis notice is to inform all administrators that I amchanging the name of managed node homer to marge this weekend.

Paul^D

436 Tivoli Management Framework: ���

2. �� ����� �� ��� -e �� �����. IDL ��� 0� � �

� ��� ���� , ASCII � ����� . ASCII ���� Tivoli

Administration �� ��� ���� �����.

out=`idlcall $OID method`if [ $? -ne 0 ]thenwsndnotif -e "Tivoli Administration" Error <<EOF$outEOFfi

3. �� ����� �� ��� -t �� �����. � ����� task_msg

��� ������ Tivoli Administration �� ���� ��� 49� ���

��. ��� Amar, [email protected] � AmarLib� ���� ��

���. ��� 49� � � ��� �� ���� �����. �� ���� “A

new task, %1$s, was created by %2$s in the %3$s task library”���.

echo ’{ { 1 { "task_msg" "A new task, %1$s, was created by %2$s \in the %3$s task library." 49 { { \TMF_Types::_sequence_string_StringList } \{ 3 "Amar" "[email protected]" \"AmarLib" } } } } }’ | \wsndnotif -t "Tivoli Administration" Critical

�� ��

wexpnotif, wlsnotif, wtailnotif

wsndnotif

� 1 �� 437

wstarthttpd

Tivoli HTTP(Hypertext Transfer Protocol) � �����.

��

wstarthttpd [host_name]

��

wstarthttpd �� host_name�� ���� ����� Tivoli HTTP � ��

���. host_name ���� ���, � �� ��� HTTP �� �����.

��

host_name

HTTP � ��� �� �� � �����.

��

admin, senior, super

��

�� ����� HTTP � �� �� ccorley�� �����.

wstarthttpd ccorley

�� ��

whttpd, wstophttpd

438 Tivoli Management Framework: ���

wstartsched

Tivoli ����� �����.

��

wstartsched

��

wstartsched �� Tivoli ����� �����. ���� ����� TMF_sched

���.

��

senior

�� ��

wdelsched, wedsched, wenblsched, wgetsched, wschedjob

� 1 �� 439

wstophttpd

Tivoli HTTP(Hypertext Transfer Protocol) � �����.

��

wstophttpd [host_name]

��

wstophttpd �� host_name�� ���� ����� Tivoli HTTP � ��

���. host_name ���� ���, � �� ��� HTTP �� �����.

��

host_name

HTTP � ��� �� �� � �����.

��

admin, senior, super

��

�� ����� �� �� ccorley� HTTP � �����.

wstophttpd ccorley

�� ��

whttpd, wstarthttpd

440 Tivoli Management Framework: ���

wsub

Tivoli �� ���� ���� �����.

��

wsub [-r] name subscriber...

��

wsub �� subscriber� ���� Tivoli �� name� ���� ���� ��

�� �����.

��

-r ��� � ��� ��� � �� �� wsub ��� �� ��(1)� ����

� �����. ��� ���� �� �� �� �� ��� �����.

name �� ���� ���� ���� � �����. name ��� ���

�� ��� ����.

v @prof_manager_name

v @ProfileManager:prof_manager_name

v /Regions/PolicyRegionName/prof_manager_name

subscriber

��� ���� ���� �� ��� ��� Tivoli ��� � ����

�. � �� �� ��� � ����. �� ����� subscriber ��

� ��� �� �����. �� �� ��� �� ����� � ��� �

��� �� �� ������.

v @ManagedNode:node_name

v /Regions/PolicyRegionName/node_name

��

��� ��� policy region�� admin, senior �� super

��

�� ����� �� �� pinatubo, newcastle � ���� ��� Apps_Dev�

Development ���� ���� �����.

wsub @Development @ManagedNode:pinatubo \@ManagedNode:newcastle @ProfileManager:Apps_Dev

� 1 �� 441

�� ��

wcrtprf, wcrtprfmgr, wdistrib, wgetprf, wgetsub, wlssub, wpopulate, wunsub,

wvalidate

wsub

442 Tivoli Management Framework: ���

wsupport

������ � �� ��� �� �� ��� � ���(UNIX� �).

��

wsupport -s

��

wsupport �� �� ��� ���� ��� ���� � �� �� ���

� �����.

� ��� � ��, ��� � �� ��� �� ��� ��� �� ��

��� ��� �� ��� �������. �� � ����, ��� ���

�� � ��� � ���. ��� ��� �� �� ��� � �� ����

�� � ��� ��� �����. ��� ��� ��� ���� ����, ��

� � �� ��� ��� ��� � �� � � ���� ����. ��� �

��� �� ��� � � ����. ��� �� �� ��� ��� �� �

���.

��� �� �� ��� �� ��� ����� ��, ����� ���� �

� � ��� ��� ���� ���� ���� � ����.

�� � ��� ��� �������.

�� �� ��� �

�� ��

�� �

� � ��

�� �� �� ��� �� ���� �� � ��

�� ��

���� �� �. �� � ��� � �, �� �� ��� ��

���.

�� ��

���� �� �

TMR ��

��� Tivoli Management Region� �

�� �� � � ��

��� ���� Tivoli �� ����� �� � ��.

�� ��� ��� ��� �������.

� 1 �� 443

�� ID ��

�� ����� � ��� �� ��� �� �� �

��� �

��� ��� ���

�� � ��

��� ��� �� ��� ��� �(�: 4.1.3)

Tivoli ��

��� ��� Tivoli ��� �. wsupport� ��� � �� Tivoli ��

�� ����.

Tivoli ��

��� �� � ��� �

�� �� ��� ��� �������.

��� ��� �

��� Tivoli ���� ����� �� �� ���� ������ ��

�� �� ����� ��

��� ��� ��� �

��� ���

��� ��� �. ��� �� ��� ����.

�� �� ��� ��� � ����. ��� ���� ����. �� �

�, ��� �� �� ��"�, ��� ��� �����.

�� ��� �� ������� ��"�� �� ��� ���. ���

���� ���, ��� �� ��, ��� �� ��� �����.

�� ��� ������, �� ��� �� �� ��� ��� ���

�. ��� �� ��� ��, �� �� ����.

� ���� �� �� ��� ����.

��� ��

��� �� 10� �� 12� ��� �

��� ��

��� ��� ���� �� ��

�� ��

��� �� ��� �

�� ��� ��� ���� .tivoli_rc� �� � ����.

wsupport

444 Tivoli Management Framework: ���

��

-s � �� �� � ��. ����� ��� �� ���� �����.

.tivoli_rc ���� � ��� ����.

��

/tmp/wsupport.$UNAME - ��� �� �� /tmp/sup.$UNAME.uu - ��� �

�� ��

wsupport

� 1 �� 445

wtailnotif

�� ��� ���� ��� ��� ��� � �� ����.

��

wtailnotif [-a admin...] [-g group...] [-l] [-p priority...]

��

wtailnotif �� �� ��� ��� ��� ��� ��� � �� ����. �

�� �� �, ��� �� ���� ���� � ����. -l �� �� ��� �

�� ��� ���� � �����. -l ��� ���� ��� � �� ��

�� ����. -p �� ��� �� �� �� ��� ���� �����. �

� �� �� �� ��� � ����. -a �� ��� ���� ���� ���

� ���� �����. �� �� ���� ��� � ����. -g �� ���

�� ��� ���� ���� ���� �����. �� �� �� ��� � �

���. � ��� �� ��� ���� ��� � �� ��� � ��� ��

� � ����.

��

-a admin...

admin�� ��� ���� ��� ��� ���� �����. �� ��

���� ��� � ����.

-g group...

group�� ��� �� ��� ��� ��� ���� �����. �� �

� �� �� ��� � ����.

-l �� ��� ���� �����. � �� ���� ��� � �� �

��� ����.

-p priority...

priority� ��� �� �� �� ��� ���� �����. �� �� �

� �� ��� � ����.

��

senior, super

��

�� ����� Tivoli administration ��� �� ��� ��� � � ���

����.

wtailnotif -g "TME Administration"

446 Tivoli Management Framework: ���

�� �� � policy region ��� �� � region� ���� ��� �

���� ���� �� ��� ����.

Date: Wed Feb 14 00:46:46 2001Notice-Group-Name: TME AdministrationPriority: NoticeSent-By-Administrator: [email protected]

Policy Region Northeast-region Created

Created a policy region named Northeast-region.

Date: Wed Feb 14 00:47:14 2001Notice-Group-Name: TME AdministrationPriority: NoticeSent-By-Administrator: [email protected]

Policy Region Northeast-region Resources Changed

The resource types managed by policy region Northeast-regionwere changed to the following resource types:

TaskLibrary

Date: Wed Feb 14 00:47:37 2001Notice-Group-Name: TME AdministrationPriority: NoticeSent-By-Administrator: [email protected]

A task library, Nightly reports, was created by [email protected] the Northeast-region policy region.

�� ��

wexpnotif, wlsnotif, wsndnotif

wtailnotif

� 1 �� 447

wtaskabort

��� ���� �� ����� ���� �����.

��

wtaskabort

��

wtaskabort �� ��� �� � ��� ���� �� ���. � �� �

���� ���� �� ���� ��� � ����.

���� ��� � ���� � ��� � ����. Tivoli �� ���� �

����� ���� �� �� ���� � �����. ���� ��� ��

��� ��� ��� ���� ���� ����. Tivoli �� ��� �� ��

�� ����� ��� ����, wtaskabort �� ���� ���� ��

���� � ���� ��� � ����.

��

wtaskabort ��� ��� � ���� �� � �� �� ��� ���� ���

�. �� ��� � � �� ���� ����.

bald (ManagedNode): The task failed to execute.bald (ManagedNode): System Exception: failure detected by object adapter:completion status: NOTransaction Error

��

�� ���� ���� ��� ���� ��� Tivoli � ����� �� �

� ���� ���� �����. � ��� ���� �����. mkdir ���

����, � -e ���� ��� ���� �� �� abort() ��� �����.

abort() ���� wtaskabort� ���� � ����� ����� �����.

�� �� ��� ���� ���� ����.

1 #!/bin/sh2 set -e34 #5 # Function to be used to abort a transaction in task shell script67 #8 abort() {9 return_code=$?10 if [ $return_code -ne 0 ]; then11 wtaskabort12 fi13 }14

448 Tivoli Management Framework: ���

15 trap ’abort’ 01617 #18 # TASK MAIN19 #20 wregister -i -r special_directory /Tivoli/specials OBJECT_NIL21 mkdir /Tivoli/specials

�� ��

wruntask, wrunjob, Tivoli ����

wtaskabort

� 1 �� 449

wtimezone

��� ���� ��� � �����.

��

wtimezone host_name

��

wtimezone �� GMT(���� ��)�� ����� � �� ���� host_name

���� ��� ���� ���� �����.

��

host_name

��� ��� ���� � �����.

��

user, admin, senior, super

��

�� ����� �� �� bald� ���� �����.

wtimezone bald 360

�� ��

wdate, wdiskspace, whostid, wifconfig, winstdir, winterp, wmannode, wmemsize,

wping, wuname, wxterm

450 Tivoli Management Framework: ���

wtempTivoli ��� �� �� ���� ���� � ����.

��

wtemp [-s]

��

wtemp �� Tivoli ��� �� �� ���� ���� � ����. �

� ���� ��� ��� � � �� ��� � ����.

wtemp� � �� �� ��� ��(/)� �����. Windows �� ����

bash ��� �� ��� ��� ��� ��� ��(\)� �� ��

�.

��

-s ���� ��� ��� � � ��� �����.

��

Tivoli �� �� ��� � ����.

���

�� ���� ���� ��� ��� � � �� ��, � � � ���

���.

��

1. �� ����� Solaris ���� �� ���� ����.

wtemp /var/tmp

2. �� ����� Windows �� ��� �� ���� ����.

wtempc:/Tivoli/db/cdeamqs.db/tmp

3. �� ����� AIX ���� �� ���� ��� ��� � � �� �

����.

wtemp -s /tmp

4. �� ����� �� ���� ���� ��� ��� � � �� ����

�.

wtemp -s

� 1 �� 451

wtll

��� ���� ��� �� � �����.

��

wtll [-r] -p region [-P preprocessor] import_file [preprocessor_options...]

wtll -i [-p region | -l library_name] [-t task...] [-P preprocessor] import_file

[preprocessor_options...]

wtll -d [-l library_name] [-P preprocessor] import_file [preprocessor_options...]...

wtll -F export_file -l library_name

��

wtll �� ��� ���� ��� ��(�)� Tivoli ��� ����� �

���� ���� � ���� �����. �� �� ������ ���� �

� �� ��� � �� ���� �� ��� ����� ���� � ����

�. ��� ����� �� � �� ���� TLL(Task Library Language) �

��� ����.

��� ��� ����� Tivoli region�� ��� � TLL �� ��� ����

�. ���� ��� � ���� �� �� �� TLL ��� �� ����� TLL

��� � �� ��� �����. wtll �� ��� ���� ��� � �

� ����, ��� ��� ��� �� ��� ��� �, ��� ���� �

�� ����� �����.

��� ����� ��� �, wtll ��� ����� ����� � ��

� ��� ���� tar ��� �� �����. � � �� ���� ���� �

�� ��� �� � ��� �� �� ���� �� TLL �� �����.

wtll �� ��� ��� ���� ��� �� ��� ��� Tivoli Enterprise

Task Library Language Developer’s Guide� ������.

��

-d wtll �� �� ��� �����. wtll �� import_file� �� �

����, �� Tivoli Management Region�� ����� ����.

-F export_file

library_name�� ��� ��� ����� tar ��� �� �� ���

��.

-i ��� ��� �� ��� �� �� ��� ����� �����. �

452 Tivoli Management Framework: ���

� ��� �� ���, ��� ���� �� ��� ����� ����

�. �� �� �� ��� ���� �� �� ��� ��� � � ��

��.

�:

v ��� ����� ���� ����� wcrttask �� �����

����.

v �� ��� ��� ����� �� �� ��, ��� ���� �

� ���� ���. ���� “layout” ��� ���� ��� �

���� ���� ArgLayout ��� � ����.

-l library_name

�� �� ��� ��� ���� � �����. ����� �

Tivoli region� ���� ���.

-p region

��� ��� ����� ��� policy region �����. policy region

� Tivoli region� �� ���.

-P preprocessor

�� �� �� ���� �� �� ��� ������ ��� �����

��� �����. cpp ��� � ����� ���� ��������.

import_file �� ���� ��� �� ������ ��� ���� ��

���(preprocessor_options).

-r ��� ����� import_file� ��� ����� �����. �� �

��� ����� � ��� � ��� ��� �, ����� �

� ��� ��� ���� �� �����. ����� �� ���� �

� ��, � ����� �����.

-t task

��� ��� � �����. ��� ��� � ��� ���� �

� policy region ��� � ���.

import_file

��� �� �����. � �� �� ��� ����� ���� �

�� ���� �� ��� �� ��� ����� ��� � ����

��� � ����.

preprocessor_options

�� ����� �� �����. ��� ��� �� ������ � �

�� ������.

wtll

� 1 �� 453

��

admin, senior

��

1. �� ����� �� /tmp/tll� TLL ��� ���� ��� ��� ����

� sandia-Region policy region� �����.

wtll -p sandia-Region /tmp/tll

2. �� ����� policy region� ��� ��� ����� �����, �� cpp

������ � TLL ��� ��� ��� ���� ���� �� �

����. -B � -P ��� cpp� �� � ��� � ��� ��� ����

��� C++ �� �� �����.

wtll -p sandia-Region -P /usr/lib/cpp /tmp/tll \-B -P

�: ������ �� �� wtll� ����� �� �� �(-P �)

��� � ����. �� ���� �� ���, �� �� ���� �

����.

3. � ��� /tmp/tll ��� TLL ��� sandia-Region Policy Region� �� �

�� ���� my_tasks� �����.

wtll -r -p sandia-Region -l my_tasks /tmp/tll

4. � ��� ��� ���� my_tasks� /tmp/my_tasks.tar ��� �����.

wtll -F /tmp/my_tasks.tar -l my_tasks

�� ��

cpp, tar, wcrttask

wtll

454 Tivoli Management Framework: ���

wtmrname

� Tivoli Management Region� � ���� �����.

��

wtmrname [-s new_name]

��

wtmrname �� � Tivoli Management Region� � ����. wtmrname

-s new_name �� ���� � ���� � ��� �� ����. � �

�, � � ���� �� ��� ��� � ��� � region� ����

�� ���.

��

-s new_name

��� � region ���� ��� � ��� �, Tivoli Management

Region � new_name�� �����.

��

���� � Tivoli Management Region�� �� �� �� ���.

v � � �� super

v � �� �� super, senior, admin �� user

��

1. �� ����� � Tivoli Management Region � ����.

wtmrname sherman-region

2. �� ����� � Tivoli Management Region � patton-region��

����.

wtmrname -s patton-region

�� ��

wconnect, wdisconn, wlsconn, wupdate

� 1 �� 455

wtrace

�� ���� ��� �����.

��

wtrace [-hjlnuvDEHIJOV] [format_options] -k db_dir

��

wtrace �� ��� � , ���� � ��� � ���� ��� �� ���

� �� ��� ��� ��� � �����.

wtrace� ����� �� Tivoli �� ��� ��� �� � ���. �

�� odtrace.log�� �� ��� �����. � �� ��� ������ ���

��� ���� �����. ����� �� ��� 1MB(512 2KB �� ��)

���, �� ���� �� ��� -t ���� ��� ��� ���� ��

� �� ����.

�� �� ���� �� ���� ����. �� �� ���� �

� ��� � �� �� �� ���� � �� �� �����. wtrace�

�� ��� �� ���� ���, �� ���� odstat� ��� � ���

�� � ��� ��� ��� �� ���� ����� �� ����.

odadmin �� ���� �� �� �� �� ���� �� �� �� �

��� � � ����. �� �� �����.

1. �� �� ���� �� ��� �� �� �� �������.

odadmin trace objcalls

2. � �� ���� �� �� ��� �� �� �� ���� ��

�.

odadmin trace objcalls all

3. �� �� ���� �� ��� �� �� �� �������.

odadmin trace errors

4. � �� ���� �� ��� ��� �� �� �� ���� �

��.

odadmin trace services all

5. � �� ���� �� ��� �� � ��� �� �� �� ��

�� ���.

odadmin trace services allodadmin trace errors all

456 Tivoli Management Framework: ���

�� ��

wtrace ���� ��� ��� � ���� ���� �� �� ��� ��� �

���. � ���� wtrace� ���� � �� ��� ����. ��� ���

�� ��� ��� �� ������.

� �� �� $� wtrace� � ��� �����.

1. �� � ���� �� ��({}).

2. �� ���� �� ��([]).

3. �� �� �� ��� � ��� ���� �����.

4. ��� � ���� ��� � �� �� ����.

{111111:1,111111:1,2:3311

}#4

wtrace� � ���� ��� ��� ����.

wtrace -jk /usr/Tivoli/spam.db

j ���� �� ��� �� ��� �����. ��� ��� � � ����.

loc-ec 676 15:10:36 M-H 1-289 0 NOT_FOUNDObject ID: 333333.1.387#FpPol::FilePackagePolDef#

Method: o_setattrMethod Args: fp_def_src_hostPrincipal: root@albundy (0/0)Path: o_setattrTrans Id:

{333333:1,333333:1,2:405}, {333333:1,333333:1,2:406}#3

� � �� 15:10:36� ��� �� ID 676��� � �� �����.

��� o_setattr� fp_def_src_host ���� �� ��

333333.1.387#FpPol::FilePackagePolDef#�� ��� ���. NOT_FOUND� �

� ��� ��� ���.

��� � ���� ���� ID, ���� ��� ����, ���� �� ��� ID

� �� ID, �� ���� ��� �����.

�� �� ����� ��� �� ��(��)� �����.

loc-ec 6073 16:28:01 M-hdoq 1-6047 26 e=12Object ID: 333333.1.26Method: get_allPrincipal: root@ajax (60001/60001)Helper pid: 2419

wtrace

� 1 �� 457

Path: /home/Tivoli/bin/solaris2/TMF/BASESVCS/TNR_prog1Trans Id:{333333:1,333333:1,7:4042},{333333:1,333333:1,7:4063}#3

Input Data: (encoded): "NisDomain" 9999Results: (encoded):"Exception:UserException:SysAdminException::ExException:SysAdminException::ExInvalid:SysAdminException::ExNotFound{"Exception:UserException:SysAdminException::ExException:SysAdminException::ExInvalid:SysAdminException::ExNotFound" "TNR_errors"1 "The resource type %7$s was not found."779578081{0

}"NisDomain"}

� ���� root@ajax� “nobody” (60001)� �� ��� ID� ���� �

����(�� �� 333333.1.26)� get_all ���� ������. � ���

� �� NisDomain� ���� ��� � �����. �� ��(e=12) Results�

�� � ����, �� NisDomain� �� �� ���� ��� ���� ��

� ��� � � � ����.

��

-D � ���� � �� �����.

-E �� �� ��� �����.

-h “��” ��� ��� ��� �����.

-H 16�� �� ��� �����.

-I � �� ��� �����.

-j �� ��(80 �)� �� �� �����.

-J � ��(132 �)� �� �� �����.

-k db_dir

Tivoli ������ ���� �����.

-l � ��� � �����.

-n ���� ��� ��� ��� �� �����.

-O � �� ��� �����.

wtrace

458 Tivoli Management Framework: ���

-u �� ��� ���� �����.

-v � �(��� ��� � ��)� �����.

-V ��� �� �� �����.

format_options

� � �� ���� �� �� �����. ��� � �� ��� ��

��� ����.

-e lines

� ��� �� ��� �����. ��� 5���.

-f �� ��(�: 3219 �� 3.2K)� ��� ����.

-t tab_size

��� �����. ��� 4�� �����.

-w width

���� �� �� � �����. ��� 80���.

-W width

���� �� �� � �����. ��� 70���.

��

�� ��� ���� wtrace� �� ��� ���.

�� ��

odadmin

wtrace

� 1 �� 459

wuname

�� �� ��� �����.

��

wuname host_name

��

wuname �� host_name ��� ���� �� ��� �� �� ��� ����

�. � �� �� ��, �� �, ��� � � ���� � �����.

��

host_name

�� �� ��� ��� ���� �����.

��

user, admin, senior, super

��

�� ����� �� �� bald� �� ��� �����.

wuname baldSunOS bald 5.3 Generic_101318-21 sun4m

�� ��

wdate, wdiskspace, whostid, wifconfig, winstdir, winterp, wmannode, wmemsize,

wping, wxterm

460 Tivoli Management Framework: ���

wuninst

��� �� �� �� Tivoli Management Region�� Tivoli ������ �

�����.

��

wuninst

wuninst tag

wuninst -list

wuninst tag -list

wuninst tag node_name [-rmfiles] [options]

��

wuninst �� ��� �� ��� �� �� ���� �� �� ����. �

�� wuninst ��� �� ���� ��� ��� �����. � ��� �� �

�� �� � ��� �� ����.

�� ��� �� ��� ���� �� � ����.

wuninst

�� ������� �� ��� �� ��� ���� �� � ����.

wuninst tag

tag �� ��� �� �����. �� �� �� ��� ���� �� � �

���.

wuninst -list

node_name �� ����, tag� ���� ������� ��� ���� ��

���. node_name� Tivoli Management Region ����, �� Tivoli Management

Region�� ������� �����. Tivoli Management Region�� �����

�� ���� �� �� ���� �������.

wuninst �� ���� Tivoli Management Framework� ��� � Tivoli

Management Region�� ��� ������. wunstmn �� ���� �� �

������ �� ����� wuninst �� �� ���.

��

-list �� ������ �� �� ��� �� ��� �����. tag ���

� 1 �� 461

�� ���� ��, -list� ��� ��� �� ��� �����. �� �

� ���� ���, -list� �� � ��� ��� ����.

-rmfiles

�� �� ��� node_name�� ��� �����. � ��� ����

�� ��, wuninst �� node_name� �� ������ ��� ��

���. -rmfiles� Tivoli Management Region ��� ���� region� �

��� �� ��� �����.

node_name

�� ��� ��� �����. node_name� Tivoli Management Region

���� �� region�� ��� �����.

options

� ��� �� � �� �� �����. �� �� � ���� �

�� �� ��� ���� wuninst tag� � ����.

tag ��� �� �����.

��

super

��

1. �� ����� wuninst �� �� �� ���� ��� �� �����.

wuninst

2. �� ����� Tivoli Software Distribution ���� ��� �� ���

��.

wuninst courier_3.7

3. �� ����� Tivoli Management Region� �� � ��� ��� ��

���.

wuninst -list

4. �� ����� Tivoli Software Installation Service� �� ��� ����

�.

wuninst SIS_3.6 -list

5. �� ����� �� kiwi�� Tivoli Software Installation Service� ����

�.

wuninst SIS_3.6 kiwi

6. �� ����� �� pctmp83�� Tivoli Software Installation Service� ��

���. pctmp83� Tivoli Management Region ���� ���, Tivoli Software

Installation Service� � region� �� � ���� �����. -rmfiles �

� ������ �� ��� � �� ��� ����� �����.

wuninst

462 Tivoli Management Framework: ���

wuninst SIS_3.6 pctmp83 -rmfiles

�� ��

wunstmn

wuninst

� 1 �� 463

wunstmn

UNIX �� Windows �� ���� Tivoli Management Framework �� ��

���.

��

wunstmn [-A] [-f] [-r] [-y] [...] [name [...]]

��

wunstmn �� ��� UNIX � Windows �� ���� Tivoli Management

Framework� � �����. �� ���� Tivoli Management Region��

� �� ��� �����.

� �� � � ��� �� � � � Tivol i � �� �� � � ��

$BINDIR/TAS/UNINST ����� �� ���. �� ��� Tivoli ���

� ��� ��� ��, -r �� ������.

Tivoli �� �� � �� ���� ��� � ��� � ����.

Tivoli ������� �� �� ��� ����� wuninst �� ���� ��

���� ������. �� �� wunstmn ���� �� ��� ������.

-A ��� ��� wunstmn ����� ������� �����. -A� ��

��, ���, ��� �� � ���� Tivoli Management Framework �

��� � �� �����.

�: ����� �� ��� Tivoli ��� ����� �� �� �� ��� �

� -A �� ���� ����.

wunstmn �� �� ��� � wrmnode� ���� ��� Tivoli ����

���� � ��� �� � �� �����. wunstmn� ��� � wchkdb�

���� �� ������� ������.

��

-A ��� �� ���� � Tivoli �� �����. ���� ����, �

��, ��� ��, ��� ���� �� �����. � ��� ���,

wunstmn ��� �� ��� ����� ������� �����.

-f name ��� � ��� �� �� ��� �� �� �� �� ���

��. �� �� ��� ����.

ManagedNode_name user_name

464 Tivoli Management Framework: ���

-r �� ���� rexec� �����. oserv� ���� � � � �� �

�� � ����� � �� ������.

-y �� �����. � �� wunstmn� �� �� ���� ���� ��

� � �� ���.

name � ��� ��� �� �� ��� � ��� �� ��� �� ��

��� �� � �����. -f ��� �� ���� ��, name ��

� ��� �� ��� �����. �� �� �� � ��� � ���

�. -f ��� ���, name � �� ��� ����.

��

super

��

1. �� ����� �� �� iandu-4�� Tivoli Management Framework �

� �� �����.

wunstmn -A iandu-4

2. �� ����� nodelist�� �� ���� �� �� �� � �����.

-y �� �� �����. -A� ���� ��� �������� �����.

� Tivoli Management Framework �� ��� �� ����.

wunstmn -f -y nodelist

�� ��

wchkdb, wrmnode, wuninst

wunstmn

� 1 �� 465

wunsub

���� ���� �� ���� Tivoli �� �����.

��

wunsub [-a] [-l] [-r] name [subscriber...]

��

wunsub �� name� ��� ���� ���� �� ���� subscriber� ��

�� Tivoli �� �����.

-l ��� ����, � ������ ��� ������� ��� � �� ���

���� ������� ������� ����� �� ���. -l� ���� �

��, name�� ��� ������� ��� ���� �� �� ��� ���� �

������� �����.

�: Tivoli Distributed Monitoring� ��, ���� �� ����� �� ��� �

����.

-a ��� ���� ��� � ���� �����.

��

-a ��� ���� ���� � �� ���� �����.

-l ��� ������� ������� ����� �� ����.

-r ��� � ��� ��� � �� �� wunsub ��� �� ��(1)� ��

��� �����. ��� ���� �� �� �� �� ��� �����.

name �� �� ��� ���� ��� �. name ��� ��� �� ��

� ����.

v prof_manager_name

v @ProfileManager:prof_manager_name

v /Regions/PolicyRegionName/prof_manager_ name

subscriber...

��� ���� ���� �� ���� ��� Tivoli �� �. � ��

�� ��� � ����. subscriber ��� ��� �� ��� ���

�.

v @node_name

v @ManagedNode:node_name

v @Endpoint:ep_label

466 Tivoli Management Framework: ���

v /Regions/PolicyRegionName/node_name

��

super, senior, admin

��

1. �� ����� ��� ������� �� ��� �� �����, ����

��� pm1� � ��� �� �����.

wunsub -a -l pm1

2. �� ����� ��� ���� ��� pm1�� ��� pm2 � mn1� ��

�����. � �� ��� ��� �������� �����.

wunsub pm1 @ProfileManager:pm2 @ManagedNode:mn1

�� ��

wcrtprf, wcrtprfmgr, wdistrib, wgetprf, wgetsub, wlssub, wpopulate, wsub,

wvalidate

wunsub

� 1 �� 467

wupdate

� � ����� �� �����.

��

wupdate [-f] -r resource [-r resource...] regions...

��

wupdate �� �� ��� �� Tivoli Management Region�� � � �

���� �� �����. wupdate ��� ��� �, �� � ������

����. wupdate� ��� � � � �� ���� ��� �� �# �

����. wupdate �� ������ � 60� � �� ��� �����.

��

-f ����� ���� �� � �����.

-r resource...

��� �� ��� �� �� �����. �� �� ����� All� �

��� � �� �� ��� � ����.

regions...

��� �� ��� Tivoli Management Region �����. region �

����� All ���� � region ��� � ����.

��

Tivoli Management Region�� senior �� super

��

1. �� ����� NisDomain �� �� �� � � �����

ceridwen-Region�� �����.

wupdate -r NisDomain ceridwen-Region

2. �� ����� ceridwen-region� meiron-region�� �� �� �� ��

� � ����� �����.

wupdate -r All ceridwen-Region meiron-Region

3. �� ����� ProfileManager � AdministratorCollection �� �� �

� � � ����� ��� � region�� �����.

wupdate -r ProfileManager -r AdministratorCollection All

4. �� ����� �� ��� �� ����� ���� � �� ��� �� �

� � �����.

wupdate -f -r All meiron-Region

468 Tivoli Management Framework: ���

�� ��

wconnect, wdisconn, wlsconn

wupdate

� 1 �� 469

wvalidate

����� ��� �� policy� � ����� ��� �����.

��

wvalidate name

��

wvalidate �� ��� �� policy� � name�� ��� ����� ���

�����.

��

name policy� ��� ��� ����. name ��� ��� �� ��� ��

��.

v @prof_name

v @ProfileManager:prof_name

v /Regions/PolicyRegionName/prof_manager_ name/prof_name

��

super, senior, admin

��

�� ����� ��� �� policy� � ���� pr1� ��� �����.

wvalidate @TestProfile:pr1

�� ��

wcrtprf, wcrtprfmgr, wdistrib, wgetprf, wgetsub, wlssub, wpopulate, wsub,

wunsub

470 Tivoli Management Framework: ���

wxterm

X �� � ��� ����� ���.

��

wxterm -h node_name [xterm_options]

��

wxterm �� ��� �� ���� X �� � ���. xterm ���� ��

��� �� �� �� �� ��� �� ����. ���� �� �� ���

� �� ��, wxterm install_dir/bin/interp/TAS/xterm.sh� �� �� �� �

� �����.

��

-h node_name

xterm ����� ���� �� ��� �����.

xterm_options

xterm ������ ���� ��(�� �, �� �� �) �����.

��

senior, super

� 1 �� 471

472 Tivoli Management Framework: ���

� 2 � Tivoli �� policy

Tivoli Management Framework� ��� ���� � ���� ����� �� �

��� �� policy� �����. � ���� ���� ���� ��� ���

� � �� �� ���� �� � ��� �� ���� �����. ��

�� �� ��� �� ��� �� policy� ��� � ����.

Tivoli ����� � ����� ���� policy �� �� �����. �����

�� �� policy ��� ����� �� � ����� ��� �� � ��

� �� policy ����.

� �� �� �� ����.

v ������ policy�

v 474 ��� ����� ��� policy�

v 475 ��� ���� ���� policy�

v 476 ��� ������ policy �

v 477 ��� ����� ��� � ��� ���� policy �

v 478 ��� ������ policy ����

v 493 ��� ����� ��� policy ����

v 502 ��� ���� ���� policy ����

����� policyTivoli Management Framework� � ����� policy �� � �� ����.

����� policy �� �� ��� �� �� �� ��� ���� � �

�� � ��� � ��� �� ��� � � ����. ���� ��, �

� �� �����. ���� �� ��� Perl �� C �� � !�� �� �

��� ��� ����. �� �� �(login_policy �� � ��)� �� ��

����� ���� � � ��� � �� ���� �� ��� �� ���.

�� � ����� policy �� � � �� �� �� �� ��� �� ��

��.

policy �� ��� � ��

allow_install_Policy ����� ���� �

�����.

����� �� ��� � �����.

after_install_policy ����� ���� �

�����.

����� ���� ������ ��� �

�� � ������ �� ��� ���

� �� �����.

© Copyright IBM Corp. 2002 473

policy �� ��� � ��

login_policy ������ � ���

��.

������ ���� ��� �����.

select_gateway_policy ����� ���� �

�����.

������ ������ ��� �� �

��� �����.

��� ��� policyTivoli Management Framework� ���� ��� ���� �� �� � ��� �

� policy� �����.

���� ��� �� policy� ���� ���� � ���� � � �� �� �

�� ���, ����� ��� � �� ���� ���� �����.

��� �� policy� �� ��� ��� �����.

v ���� ���� ����� ��� � ���� ��

v ���� ���� �� ��� � ���� ��

v ���� ���� ���� ��� � ���� ��

v ���� ���� �� ���� ���� ��� � ���� ��

�� policy ���

�� � ���� ��� �� policy ��� � � �����.

��� ��

pm_def_profile_managers ���� ��� � �� ���� ��� �� �

����.

pm_def_profile_types ��� region�� ���� ���� �� �� ��

���.

pm_def_subscribers ���� ���� �� ���� � � �� �� �

�� �� �����.

��� � policy ���

�� � ���� ��� ��� �� policy ��� � � �����.

��� ��

pm_val_remove_subscribers ���� ������ ��� ��� �� ��� �

����.

pm_val_remove_subscription ���� ���� �� �� ��� ��� ����

�.

pm_val_subscribers ���� ���� �� ��� ��� ��� ���

��.

474 Tivoli Management Framework: ���

��� ��

pm_val_subscription �� ���� ���� �� ���� ��� ��� �

�� �����.

��� ����� policy��� ���� ��� �� policy� ��� �� ��� ��� � � ���

���� ��� � �� �� �� ����.

��� �� policy� �� �� �����.

v �� ��� �� ��� ��� �� �� � ���� ��� ���� ���

� �����.

v ��� �� �� ��� �� �� � ��� ID� ����� �����.

�� policy ���

�� � ��� ���� �� policy ��� � � �����.

��� ��

tl_def_dist_mode Tivoli �� rgion � ��� ���� ����

�� �� �� �����.

tl_def_man_nodes ��� ����� �� �� ��� �� �� �

����.

tl_def_prof_mgrs ��� ����� �� ���� ���� �� ��

�����.

tl_def_set_gid ���� ��� �� �� ID� �����.

tl_def_set_uid ���� ��� �� ��� ID� �����.

��� � policy ���

�� � ��� ���� ��� �� policy ��� � � �����.

��� ��

tl_val_man_nodes ��� �� �� ��� �� �� �� ��� �

�� �����.

tl_val_prof_mgrs ��� �� ��� ��� �� ���� ��� ��

� ��� �����.

tl_val_set_gid ��� �� ��� ��� �� �� ID� ��� �

����.

tl_val_set_uid ��� �� ��� ��� �� ��� ID� ���

�����.

� 2 Tivoli �� policy 475

����� policy ��

Tivoli Management Framework� � ����� policy �� � �� ����.

��� �� ��� �� �� ����� �� �� �� ��� wgeteppol

� wputeppol �� �� ���. ��� ��� 1 ��� � 1 ����

������.

����� policy �� �� ��� �� �� ������. � ��

login_policy �� �� �����. �� �� policy ��� login_policy

� ���� � ����� policy �� �� � �� ��� �����.

�: policy� ��� ����� ���, policy� ��� �����.

1. �� �� � �� login_policy� ��� �� ��� ������.

wgeteppol login_policy > login_policy.txt

� �� �� ���� �� ��, ��� � � � �����. �

�� �� � ��� � � ����.

#!/bin/sh## The following are the command line options passed# to this script from the gateway.## $1 - The label of the endpoint machine# $2 - The object reference of the endpoint machine# $3 - The interpreter type of the endpoint machine# $4 - The object reference of the gateway that the# endpoint logged into# $5 - The IP address of the endpoint logging in# $6 - Region# $7 - Dispatcher# $8 - Version# $9 - The inventory id of the endpoint logging in# $10 - The protocol of the endpoint logging in.# TCPIP -> TCP/IP# IPX -> IPX/SPX

exit 0#

2. ��� �� ���� �� �� �� ����� �� �� �����

�.

3. �� �� � �� ��� policy �� �� ������.

wputeppol login_policy < login_policy.txt

476 Tivoli Management Framework: ���

��� ��� � ��� ����� policy ��

�� ����� ��� ���� ��� �� policy� �� �� �����

����. ���� ��� ��� �� policy� � ���� �� ��� ��

� � ����. �� policy� ��� wlspolm, wgetpolm � wputpolm ��

� -v �� -d ���� ������.

��� �, ��� ���� policy� �� �� ���� ��� � �� ��� �

� ��� Tivoli �� rgion� �� � �� ��� ����. ��� �� policy�

���� ��� �� �� ���� ���� �� ��� ��� � ����.

1. �� �� � �� �� ��� ��� �� policy � ��� � �� �

�����.

wlspol -v TaskLibrary

2. �� �� � �� policy �� �� validate_execution_managed_nodes

��� ��� � aef ��� �������. ��� � ��

���.

wgetpolm -v TaskLibrary BasicTaskLibrary tl_val_man_nodes > aef

aef ���� ��� ��� �� �� �� ����.

#!/bin/sh########################################################### $Id: tl_val_man_nodes.sh,v 1.2 1998/09/09 15:41:23 paul$## This script implements the# "validate_execution_managed_nodes" policy method for the# Task Library. The script is provided with the name of the# task, the label of the Admin and all of the# managed nodes selected for execution targets of the task.# Modify the code below if you want something different# returned.## To debug your changes, you could add the lines:## set -xv# exec > /tmp/debug.output 2>&1## These lines will allow you to see any errors that occur# by looking in the /tmp/debug.output file.## NOTE: This script can also be called when a check_policy# operation is performed. In that case, the name of# the Admin will be "any". Make sure that you handle# that case if you modify this script.##########################################################

task_name=$1administrator=$2shift 2

## Example of how to validate the list of managed nodes. ##

� 2 Tivoli �� policy 477

# for i in $*; do# if [ $i = "the evil managed node" ]; then# echo FALSE# exit 0# fi# done

echo TRUEexit 0#

3. ��� �� ���� aef �� ������.

Tivoli Management Framework� �� �� ���� ���� �� ��� �

��� � policy �� �����. � �� �����, Tivoli Management

Framework� ���� policy ���� �� � ��� “ � �� ��”�

�� �� ��� ������.

��� �� ��� �� ����.

4. �� �� � �� policy� � policy �� �� ������.

wputpolm -d TaskLibrary BasicTaskLibrary \tl_val_man_nodes < aef

�� �� � �� ��� �� policy �� ������.

wcrtpol -d TaskLibrary "Secure Tasks"

�� ��� ���� ���� �� �� � ���, �� �� policy �

���� �� TaskLibrary ��� ��� � ����.

���� ��� �� policy� ��� � ��� � �� �� �� ��

���. policy region ���� �� policy� �� � ����.

����� policy ���

� ���� ����� policy ���� ����.

478 Tivoli Management Framework: ���

allow_install_Policy������ ��� Tivoli Management Region� �� ���� ��� ���

�����.

��

allow_install_policy ep_label ep_oid ep_interp gw_oid ep_ipaddr region dispatcher

version unique_id protocol

��

allow_install_policy �� �� ������ ��� Tivoli Management Region�

�� ���� ��� ��� �����. � policy� �� � �����

��� ��� �� �� ���� ������ ���� � �� ���(���

exit 0�). �� � �� �� ���� ������ ����� �� �� ��

��� ��� �� ����. ��� � �� �� ��� �� ������ ���

� ���� � ������. ��� �� �� Tivoli �� ��� � ����.

�� �� ����, � ����� ��� Tivoli ������� ��� ���

� ����.

����� ���� ������� ������ �� ��� �� ��� �

allow_install_policy� �����. �� �� ��� ������ ���� ��

��. allow_login_policy� select_gateway_policy �� � �� �����.

��

dispatcher

������ �� ��� �� �����.

ep_interp

������ ����� �� �����.

ep_ipaddr

������ IP(Internet Protocol) �� �� �� �����.

ep_label

��� ���� ����� �� �����.

ep_oid ������ �� ID� �����.

gw_oid

���� ������ �� ID� �����.

protocol

����� ������ ���� ���� ��� �����.

� 2 Tivoli �� policy 479

region ������ �� region �� �����.

unique_id

����� ������ � ID(�� �� ID�� �)� �����.

version

����� ������ �� �� �����.

�� ��

��� �� ��� ����� ���� � �� �� ��� � ��� ���

�.

LCF_DUPL_GATEWAY

�� ����� ������ �� ID� �����.

LCF_DUPL_INTERP

�� ������ interp� �����.

LCF_DUPL_INV_ID

�� ������ �� �� ID� �����.

LCF_DUPL_LOGIN

�� ������ � � �� ���� ���� �����.

LCF_DUPL_NET_ADDRESS

�� ������ ���� ��� �����.

LCF_DUPL_OBJECT

�� ������ �� ID� �����.

LCF_INVALID_LABEL

wepmgr test_label� �� ����� ��� ���� ��� �����.

��

�� allow_install_policy �� �� �����. � ����� �� 146.84.26

� ������ Tivoli Management Region� ������ ��� ����. �

� �� ��� dev� �� ������ ��� ����.

� �� �� UNIX �� ������. Windows �� ��� ��, awk � ��

� UNIX�� �� awk � ��� � �� ���� ����. ��,

awk ’{FS="." ; print $2}’

UNIX �� ���� ��� �� �� ��� ����, Windows �� ��

��� ��� ����. Windows �� ��� ��, awk�� �� ��� ���

�.

awk -F’.’ ’{ print $2 }

allow_install_Policy

480 Tivoli Management Framework: ���

�: �� ���� ���� ����� �� lcfd �� ����, �� �� �

�� ���, ��� � ��� ����(spot.dev.tivoli.com) ��� �

� ����(spot). -Dlcs.machine_name=name ���� �� ��� �

����. ��� ��� lcfd �� ������.

#!/bin/sh# Please do not remove the below Tivoli comments# --- Start of Tivoli comments ---## The following are the command line options passed to this script# from the Endpoint Manager.## $1 - The label of the endpoint machine# $2 - The object reference of the endpoint machine# $3 - The architecture type of the endpoint machine# $4 - The object reference of the gateway that the endpoint$ logged into# $5 - The ip/ipx address of the endpoint logging in (refer to# parameter $10 to determine the protocol of the endpoint).# $6 - region# $7 - dispatcher# $8 - version# $9 - The inventory id of the endpoint logging in.# $10 - The protocol of the endpoint logging in.# TCPIP -> TCP/IP# IPX -> IPX/SPX## A line with this format may be written to standard output to# change an endpoint label:# new_label = <label>## The normal exit code of 0 from the allow_install_policy will allow# the endpoint initial login to proceed. (If the label of this# endpoint is in use, or invalid, then this login will not complete.)## An exit code of 10 also will allow this login to proceed and,# if this endpoints label matches the label of an existing# endpoint, or if the endpoint label is invalid, then a unique# label will be created for this endpoint.## An exit code of 6 will cause this login to be ignored.## Exiting the allow_install_policy with any other non-zero exit status will# stop this endpoint initial (or orphaned) login.## The environment variable LCF_LOGIN_STATUS is also set by the epmgr.# A value of 2 indicates the endpoint is isolated. That is, it was unable# to contact its assigned gateway. Isolated endpoints are automatically# migrated to another gateway unless the select_gateway_policy terminates# with a non-zero exit status. Other LCF_LOGIN_STATUS values are:# 0 Initial login (allow_install_policy, select_gateway_policy,# after_install_policy)# 2 Isolated login (select_gateway_policy)# 3 Migratory login (select_gateway_policy)# 7 Orphaned login (allow_install_policy, select_gateway_policy,# after_install_policy)## The allow_install_policy will have these environment variables set if

allow_install_Policy

� 2 Tivoli �� policy 481

# there is already an existing endpoint with the same label as the endpoint# which is attempting to login:# LCF_DUPL_OBJECT object id of existing endpoint# LCF_DUPL_ADDRESS network address of existing endpoint# LCF_DUPL_LOGIN timestamp of existing endpoint first normal login# LCF_DUPL_GATEWAY object id of existing endpoint gateway# LCF_DUPL_INV_ID inventory id of existing endpoint# LCF_DUPL_INTERP interp (architecture type) of existing endpoint# The initial login will fail for an endpoint whose label matches the label# of an existing endpoint, unless allow_install_policy is exited with code 10.## The allow_install_policy will have the environment variable# LCF_INVALID_LABEL set to TRUE, if the endpoint label, $1, is invalid.# Endpoint labels must not contain any invalid characters and must conform# to the labelspace regular expression. A label may be tested with the# wepmgr test label command. Invalid characters and the labelspace regular# expression may be displayed and set with the wepmgr get and set commands.# An initial login will fail if the endpoint label is invalid, unless# allow_login_policy is exited with code 10, in which case a generic# label stem, "eplabel", is used as the beginning of the endpoint label.# The object dispatcher number and arbitrary characters will be added to# make the label unique.## Also note that during the execution of allow_install and select_gateway# policy scripts, the endpoint does not yet formally exist. For this reason,# the endpoint object reference will have a value of OBJECT_NIL and the# object dispatcher number will be 0. The endpoint label will have the value# suggested by the endpoint (or the user value lcfd -n) but is not guaranteed# to become the final endpoint lable. It will become the final endpoint label# if this value is not already taken by another endpoint.# --- End of Tivoli comments ---#set -e

## Don’t allow endpoints from subnet 26 log into this TMR.#

SUBNET=`echo $5 | awk ’{FS="."}{ print $1"."$2"."$3 }’`if [ "$SUBNET" = "146.84.26" ]; then

exit 1fi

## Don’t allow endpoints whose name contain the regular# expression "dev".## This line will force the script to exit nonzero if the# expression "dev" is in the label.#echo $1 | grep -v dev

exit 0

allow_install_Policy

482 Tivoli Management Framework: ���

after_install_policy������ ��� �� ��� ��� �����.

��

after_install_policy ep_label ep_oid ep_interp gw_oid ep_ipaddr region dispatcher

version unique_id protocol

��

after_install_policy �� �� ������ ��� �� ��� ��� �����.

� policy� �� ��� ��� ���� � ������ ���� ����.

� �� �� ��� ��� ����� ���� ����. ������ � ��

�� ��� � �� �����. �� �� ��� �� ����� �����.

����� ���� after_install_policy� ����� ��� ���� ���� �

����� ���� �, �� ����� �� ��� �� �����. � �� �

����� �� �� ��� �� �����, � �� ��� �� �� ��� �

����. ��� �� ��� ����.

��

dispatcher

������ �� ��� �� �����.

ep_interp

������ ����� �� �����.

ep_ipaddr

������ IP �� � �� �� �����.

ep_label

�� �� ��� ������ �� �����.

ep_oid ������ �� ID� �����.

gw_oid

��� ������ �� ID� �����.

protocol

������ ���� ���� ��� �����.

region ������ �� region �� �����.

unique_id

������ � ID(�� �� ID�� �)� �����.

� 2 Tivoli �� policy 483

version

����� ������ �� �� �����.

��

�� ����� � � �� ��� ������ ��� ���� ���� ��

� ������ �����. policy region�� ���� ���� ���� �� �

�, policy� �����.

#!/bin/sh# Please do not remove the below Tivoli comments# --- Start of Tivoli comments ---## The following are the command line options passed to# this script from the Endpoint Manager.## $1 - The label of the endpoint machine# $2 - The object reference of the endpoint machine# $3 - The interpreter type of the endpoint machine# $4 - The object reference of the assigned gateway that the# endpoint logged into# $5 - The IP address of the endpoint logging in# $6 - Region# $7 - Dispatcher# $8 - Version# $9 - The inventory id of the endpoint logging in# $10 - The protocol of the endpoint logging in.# TCPIP -> TCP/IP# IPX -> IPX/SPX## The environment variable LCF_LOGIN_STATUS is also set by the epmgr.# A value of 2 indicates the endpoint is isolated. That is, it was unable# to contact its assigned gateway. Isolated endpoints are automatically# migrated to another gateway unless the select_gateway_policy terminates# with a non-zero exit status. Other LCF_LOGIN_STATUS values are:# 0 Initial login (allow_install_policy, select_gateway_policy,# after_install_policy)# 2 Isolated login (select_gateway_policy)# 3 Migratory login (select_gateway_policy)# 7 Orphaned login (allow_install_policy, select_gateway_policy,# after_install_policy)# --- End of Tivoli comments ---LCF_POLICY_REGION=LCF-EndpointsPROFILE_MANAGER=LCF-$3EP=$1

## Check to see if our top-level policy region already# exists. If not create it and put it on this administrators# desktop.## Disable "exit on error" for this call since we will handle# the failure.#set +ewlookup -r PolicyRegion $LCF_POLICY_REGION > /dev/nullERR=$?

after_install_policy

484 Tivoli Management Framework: ���

set -e

if [ $ERR -ne 0 ]; thenALI=`objcall 0.0.0 get_security_objid`set `objcall $ALI get_identity`ADMIN="$1"ADMIN_OID=‘echo $2 |cut -d”#” -f1‘wcrtpr -m ProfileManager -a $ADMIN $LCF_POLICY_REGIONidlcall $ADMIN_OID refresh_collection

fi

## Check to see if our interp specific profile manager# already exists. If not create it and make it dataless so# that we can subscribe the endpoint to it.## Disable "exit on error" for this call since we will handle# the failure.#set +ewlookup -r ProfileManager $PROFILE_MANAGER > /dev/nullERR=$?set -e

if [ $ERR -ne 0 ]; thenwcrtprfmgr $LCF_POLICY_REGION $PROFILE_MANAGER > /dev/nullwsetpm -d /Library/ProfileManager/$PROFILE_MANAGER

fi

## Subscribe the endpoint to the profile manager which# contains the endpoints for that specific interp type.#wsub /Library/ProfileManager/$PROFILE_MANAGER \Endpoint:$EP

exit 0

after_install_policy

� 2 Tivoli �� policy 485

login_policy������ ���� ��� ��� ��� �����.

��

login_policy ep_label ep_oid ep_interp gw_oid ep_ipaddr region dispatcher version

unique_id protocol

��

login_policy �� �� ������ ���� ��� ��� ��� ����. �

policy� ������ ��� ������ � �����. �� policy �� �

� Tivoli Management Region� �� � ������� �����.

�: � policy� ���� �� ���� ����.

� �� �� �� � ��� ��� � ������ ����� ������ �

������ ��� � ��� ���. ����� ������ ������

� login_policy �� �� ����� �� �� ������.

1. upgrade.cntl ���� upgrade_mode �� auto� ����

$BINDIR/../lcf_bundle/upgrade� ���� �� �(upgrade.sh)� �� �

��� ����. � �� � ����� ���� �� ���.

2. login_policy �� �� �� upgrade.sh� ������. ��� � ��

��� � ��� ����. ���� �� �� ��� ��� ���� �

� � � ���� ����.

����� ������ ������ ���� ��� login_policy� �����.

��

dispatcher

������ �� ��� �� �����.

ep_interp

������ ����� �� �����.

ep_ipaddr

������ IP �� � �� �� �����.

ep_label

�� �� ��� ������ �� �����.

ep_oid ������ �� ID� �����.

gw_oid

��� ������ �� ID� �����.

486 Tivoli Management Framework: ���

protocol

������ ���� ���� ��� �����.

region ������ �� region �� �����.

unique_id

������ � ID(�� �� ID�� �)� �����.

version

����� ������ �� �� �����.

��

�� ����� ������ ���� ��� ����� �� �� ��� ���

��� ��� ����� ������ �������.

#!/bin/sh

# Please do not remove the below Tivoli comments# --- Start of Tivoli comments ---## The following are the command line options passed to this script# from the Gateway.## $1 - The label of the endpoint machine# $2 - The object reference of the endpoint machine# $3 - The architecture type of the endpoint machine# $4 - The object reference of the gateway that the endpoint logged into# $5 - The ip/ipx address of the endpoint logging in (refer to parameter# $10 to determine the protocol of the endpoint).# $6 - region# $7 - dispatcher# $8 - version# $9 - The inventory id of the endpoint# $10 - The protocol of the endpoint logging in.# TCPIP -> TCP/IP# IPX -> IPX/SPX## --- End of Tivoli comments ---## AUTO UPGRADE# Invoke the upgrade script to check the current version of# the endpoint software and upgrade if necessary.BO='objcall 0.0.0 self'OS='objcall $BO getattr oserv'INSTALLDIR='objcall $OS query install_dir|tr ’\134’ ’/’'$INSTALLDIR/lcf_bundle/upgrade/upgrade.sh $1 $8 $3#LCF_NOTICE_GROUP=LCF_Endpoints## Send a notice to LCF endpoint notice group every time this# endpoint logs in.#set +ewlookup -r TMF_Notice $LCF_NOTICE_GROUP > /dev/nullERR=$?set -e

login_policy

� 2 Tivoli �� policy 487

if [ $ERR -ne 0 ]; thenNTFGM=`wlookup -r Classes TMF_Notice`idlcall -T top $NTFGM \

TMF_Notice::NoticeManager::create_notice_group \’"’$LCF_NOTICE_GROUP’" 72’

fi

GW=`idlcall $4 _get_label`EPOID=`wlookup -o -r Endpoint $1`

wsndnotif $LCF_NOTICE_GROUP Notice << LCF_NOTICEEndpoint $1 ($EPOID of interp type, $3, logged into gateway$GW ($4).LCF_NOTICE

exit 0

login_policy

488 Tivoli Management Framework: ���

select_gateway_policy������ ����� ��� ����� ��� �����.

��

select_gateway_policy ep_label ep_oid ep_interp gw_oid ep_ipaddr region dispatcher

version unique_id protocol

��

select_gateway_policy �� �� ������ ����� ��� ����� �

�� �����. select_gateway_policy� ������ ����� ������ �

� ��� ��� � �� ����� �����.

�� �� ������ ���� ���, ����� ���� �� �� �����

��� ����� region�� ����� �� 5��� �����. ����� �

��� �� �� ����� select_gateway_policy� �����. � policy� ��

�� ���, ���� ������ �� ����� �� �� �����.

������ ��� ��� ��� ���� ��� �� �, ���� �����

� select_gateway_policy ��� ��� �����. ����� ���� �� �

� ��� ����� � �� ���� ��� � ���, ����� ���� ��

�� ������ ������ �����. �� �� ����(0 � � ���

� ��), ��� ��� �����. select_gateway_policy� ����� ����,

��� ������ �� ID� ������ �����.

����� ���� allow_install_policy� ��� � ������ �� ��� �

� � select_gateway_policy� �����.

��

dispatcher

������ �� ��� �� �����.

ep_interp

������ ����� �� �����.

ep_ipaddr

������ IP ��� �����.

ep_label

�� �� ��� ������ �� �����.

ep_oid ������ �� ID� �����.

� 2 Tivoli �� policy 489

gw_oid

��� ������ �� ID� �����.

protocol

������ ���� ���� ��� �����.

region ������ �� policy region �����.

unique_id

������ � ID(�� �� ID�� �)� �����.

version

������ �� �� �����.

��

����� ����� � �� �� ��� �� � �� �� ����� policy

�� � ����. LCF_LOGIN_STATUS ��� ����� ���� �

����. � 2� ������ ���� ��(��� ������ ��� � ��)

�����. select_gateway_policy �� �� 0� � �� ��� ���� ��

� ��� ������ ��� �� ������ ��������. �����

�� �� ������ �� ��� ��� Tivoli Management Framework ��

�� ���� ������.

�: � �� �� ���� �, ������ �� ����� ���� ����.

��� ����� �� ��� OBJECT_NIL�, �� ����

� 0���. ����� �� � �����(�� lcfd -n �� ���)� �

�����, �� ������ �� � ���� � ���� �� ��

� � � ����.

����� ������ NAT(network address translation) ���� � ��

�� ��, ���(|) ��� �� �� ID� ��� ������ ��� ���

� �� ���. �� ��, ��� �� select_gateway_policy �� ��

123267682.1.529� �� ID �� paris.dev.server.com�� ��� ����

� paris� � ���.

123267682.1.529|paris.dev.server.com

�� �� �� �����.

#!/bin/sh# Please do not remove the below Tivoli comments# --- Start of Tivoli comments ---## The following are the command line options passed to# this script from the Endpoint Manager.## $1 - The label of the endpoint machine# $2 - The object reference of the endpoint machine# $3 - The interpreter type of the endpoint machine

select_gateway_policy

490 Tivoli Management Framework: ���

# $4 - The object reference of the assigned gateway that the# endpoint logged into# $5 - The IP address of the endpoint logging in# $6 - Region# $7 - Dispatcher# $8 - Version# $9 - The inventory id of the endpoint logging in# $10 - The protocol of the endpoint logging in.# TCPIP -> TCP/IP# IPX -> IPX/SPX## The environment variable LCF_LOGIN_STATUS is also set by the epmgr.# A value of 2 indicates the endpoint is isolated. That is, it was unable# to contact its assigned gateway. Isolated endpoints are automatically# migrated to another gateway unless the select_gateway_policy terminates# with a non-zero exit status. Other LCF_LOGIN_STATUS values are:# 0 Initial login (allow_install_policy, select_gateway_policy,# after_install_policy)# 2 Isolated login (select_gateway_policy)# 3 Migratory login (select_gateway_policy)# 7 Orphaned login (allow_install_policy, select_gateway_policy,# after_install_policy)# Also note that during the execution of allow_install and select_gateway# policy scripts, the endpoint does not yet formally exist. For this reason,# the endpoint object reference will have a value of OBJECT_NIL and the# object dispatcher number will be 0. The endpoint label will have the value# suggested by the endpoint (or the user value lcfd -n) but is not guaranteed# to become the final endpoint label. It will become the final endpoint label# if this value is not already taken by another endpoint.## NB: That the version in $8 is not defined when the sgp is called during a# migratory completion by login or upcall.# --- End of Tivoli comments ---

# only ep_ip is needed for this exampleep_label=$1ep_oid=$2ep_interp=$3gateway=$4ep_ip=$5region=$6dispatcher=$7version=$8#FOUNDONE=FALSE# we just want the subnet of the endpointSUBNET='echo $ep_ip|cut -d’.’ -f3'# get all gateways and find ones that are on the same subnetGATEWAYS='wlookup -ar Gateway -o'

for gwoid in $GATEWAYSdogwproxy='idlattr -tg $gwoid proxy Object'mnips='wifconfig -h $gwproxy | grep -v Device | awk’(print $2)’'

# a managed node might have multiple interfaces, so check each# one of them if the gateway subnet matches the endpoint number.# return gwoid if it matchesfor ip in $mnipsdogwsub='echo $ip | cut -d’.’ -f3'if [ $gwsub -eq $SUBNET ]

select_gateway_policy

� 2 Tivoli �� policy 491

thenecho $gwoidFOUNDONE=TRUEfidonedone

# if you did not find a gateway, and you still want the endpoint# to log in, exit 0, else exit 1if [ "$FOUNDONE" = "TRUE" ]then

exit 1elseexit 0fi

select_gateway_policy

492 Tivoli Management Framework: ���

��� ��� policy ���

� ���� ���� ���� �� �� � ��� �� policy ���� ���

�.

� 2 Tivoli �� policy 493

pm_def_profile_managers

����� ��� � �� ���� ��� �� �����.

ProfileManager

��

pm_def_profile_managers mgr_name

��

pm_def_profile_managers ���� ����� ��� � �� ���� ��� �

� �����.

� ���� pm_def_profile_managers �� �� �����. �� �� ����

��� �� �� ���� ��� ��� � � � �����. � �� ��

��� ��� � ����. �� � � �� �� �� ID� ��� �

� �� ���� ���.

�� ��, ��� PM1� OID�

1214115201.1.616#TMF_CCMS::ProfileManager#� ���� �� ASCII ���

� � � �� ���.

PM1\t1214115201.1.616#TMF_CCMS::ProfileManager#\n

� ���� �� �� �� ��� ��� ��� ��� ����.

pm_def_profile_managers� �� �� ProfileManager �� ��� � Tivoli

Management Region� �� � ���� �� �����.

��

mgr_name

��� ���� ���� ���� ��� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

494 Tivoli Management Framework: ���

pm_def_profile_types

��� region�� ���� ���� �� �� �����.

ProfileManager

��

pm_def_profile_types region

��

pm_def_profile_types ���� ��� region�� ���� ���� �� �� �

����.

� ���� pm_def_profile_managers �� �� �����. �� �� � �

� ���� �� �� �� ���� �� ��� �����. � ���� �

� �� ����.

pm_def_profile_types� �� �� ��� region�� ���� � ���� �

� �� �����.

��

region ����� ��� policy region� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � ����

�� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

� 2 Tivoli �� policy 495

pm_def_subscribers

���� ���� �� ���� � � �� �� ��� �� �����.

ProfileManager

��

pm_def_subscribers mgr_name

��

pm_def_subscribers ���� �� ��, ���� ��� � ���� ���� �

� ���� � � �� ����� �� �����.

���� pm_def_subscribers �� �� �����. �� �� � � � ��

� �� �� ��� ��� �����. � �� �� ��� ��� � ����.

�� � � �� �� �� ID� ��� �� �� ���� ��

�.

�� ��, ��� reality� OID�

1214115201.3.7#TMF_ManagedNode::ManagedNode#� ���� �� ASCII �

�� � � � �� ���.

reality\t1214115201.3.7#TMF_ManagedNode::Managed_Node#\n

� ��� �� �� ��� ��� ��� ����.

pm_def_subscribers� �� �� ProfileManager� � Tivoli Management

Region� �� � ���� �� � ManagedNode �� �� �� �����.

��

mgr_name

��� ���� ��� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

496 Tivoli Management Framework: ���

��

pm_val_remove_subscribers, pm_val_remove_subscription, pm_val_subscribers,

pm_val_subscription

pm_def_subscribers

� 2 Tivoli �� policy 497

pm_val_remove_subscribers

���� ������ ��� ��� �� ��� �����.

ProfileManager

��

pm_val_remove_subscribers {localize | delete} mgr_name subscriber...

��

pm_val_remove_subscribers ���� ���� ������ ��� ��� �� �

�� �����.

� ���� pm_val_remove_subscribers �� �� �����. �� �� ���

��� �� ��� �� ��� TRUE� ��� � ���� FALSE� � �

� �����.

Tivoli Management Framework� ����� TRUE� �����.

��

delete ���� ��� � � ��� �� � ����.

localize

���� ��� � � ��� �� � ����.

mgr_name

���� ��� � �����.

subscriber...

����� ��� �� �����. � ���� ���� ������.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

pm_val_remove_subscription, pm_val_subscription

498 Tivoli Management Framework: ���

pm_val_remove_subscription

���� ���� �� �� ��� ��� �����.

ProfileManager

��

pm_val_remove_subscription subscriber {localize | delete} mgr_name

��

pm_val_remove_subscription ���� ���� ��� �� ������� ��

�� ���� �� ��� ��� �����. � ����

pm_val_remove_subscription �� �� �����. �� �� ��� ��� �

� ��� �� ��� TRUE� ��� � ���� FALSE� � � � ��

���. Tivoli Management Framework� ����� TRUE� �����.

��

delete ���� ��� � � ��� �� � ����.

localize

���� ��� � � ��� �� � ����.

mgr_name

���� ��� ���� ���� �����.

subscriber

���� ���� ��� �� ����� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

pm_val_remove_subscribers, pm_val_subscription

� 2 Tivoli �� policy 499

pm_val_subscribers

���� ���� �� ��� ��� ��� �����.

ProfileManager

��

pm_val_subscribers mgr_name subscriber...

��

pm_val_subscribers ���� ���� ���� �� ��� ��� ��� ��

���. � ���� pm_val_subscribers �� �� �����. �� �� ���

���� ��� �� ��� �� ���� TRUE� ��� � ���� FALSE

� � � � �����. Tivoli Management Framework� ����� TRUE�

�����.

��

mgr_name

���� ��� � �����.

subscriber...

��� ��� ��� ��� �� �����. � ���� ���� �

�����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

pm_val_remove_subscribers, pm_val_remove_subscription, pm_val_subscription

500 Tivoli Management Framework: ���

pm_val_subscription

�� ���� ���� �� ���� ���� �� ��� �� ��� ����

�.

ProfileManager

��

pm_val_subscription subscribee mgr_name

��

pm_val_subscription ���� ���� ��� �� ������� ���� ��

�� �� �� ��� �� ��� �����. � ���� pm_val_subscription

�� �� �����. �� �� ��� ��� �� ��� �� ��� TRUE�

��� � ���� FALSE� � � � �����. Tivoli Management

Framework� ����� TRUE� �����.

��

mgr_name

���� ���� ��� �� ������ �����.

subscribee

����� ���� ���� �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

pm_val_remove_subscribers, pm_val_remove_subscription

� 2 Tivoli �� policy 501

��� ����� policy ���

� ���� ��� ����� �� �� � ��� �� policy ���� ���

�.

502 Tivoli Management Framework: ���

tl_def_dist_mode

Tivoli �� rgion � ��� ���� ���� �� �� �� �����.

TaskLibrary

��

tl_def_dist_mode

��

tl_def_dist_mode ���� ���� ��� � ��� �� �� ���� � �

��� �� �� �����. ��� �� �� ��� ����.

ALI ��� ���� Tivoli Management Region ���� �����.

GLOBAL

��� ���� ��� � Tivoli Management Region� � �� �

�� �����.

LOCAL

��� ���� � Tivoli Management Region� � �� ��� �

����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����.

1 ���� ���� � ���� ��� � ����.

2 ��� �����.

� 2 Tivoli �� policy 503

tl_def_man_nodes

��� ����� �� �� ��� �� �� �����.

TaskLibrary

��

tl_def_man_nodes task_name admin_name

��

tl_def_man_nodes ���� ��� ����� �� �� �� � ������ �

� �� �����. tl_def_man_nodes ���� tl_def_man_nodes.sh �� �

� �����. � �� �� ���� ��� � �� ManagedNode � Endpoint

�� �� �� ���.

� ���� � � � �� �� � ����� �� �� �� ��� ����

�.

��

admin_name

���� ��� ��� � �����.

task_name

�� ����� ���� �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����.

1 ���� ���� � ���� ��� � ����.

2 ��� �����.

��

tl_def_prof_mgrs

504 Tivoli Management Framework: ���

tl_def_prof_mgrs

��� ����� �� ���� ���� �� �� �����.

TaskLibrary

��

tl_def_prof_mgrs task_name admin_name

��

tl_def_prof_mgrs ���� ��� ����� �� ���� ���� �� ��

�����. � �� �� ���� ��� � �� ProfileManager �� ��

�� ���.

���� � � � ���� ��� �� �� ��� �����.

��

admin_name

���� ��� ��� � �����.

task_name

�� ����� ���� �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����.

1 ���� ���� � ���� ��� � ����.

2 ��� �����.

��

tl_val_man_nodes

� 2 Tivoli �� policy 505

tl_def_set_gid

���� ��� �� �� ID� �����.

TaskLibrary

��

tl_def_set_gid admin_name

��

tl_def_set_gid ���� ��� ��� �� �� ID� �����.

�� �� �� ID� � � � �����. � ��� �� �� ����.

��

admin_name

���� ��� ��� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � �� ID

� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

tl_def_set_uid

506 Tivoli Management Framework: ���

tl_def_set_uid

���� ��� �� ��� ID� �����.

TaskLibrary

��

tl_def_set_uid admin_name

��

tl_def_set_uid ���� ���� ��� �� ��� ID� �����.

�� �� ��� ID� � � � �����. � ��� �� �� ���

�.

��

admin_name

���� ��� ��� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � ���

ID� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

allow_install_Policy

� 2 Tivoli �� policy 507

tl_val_man_nodes

��� �� ��� ��� �� �� �� ��� ��� �����.

TaskLibrary

��

tl_val_man_nodes task_name admin_name node_name...

��

tl_val_man_nodes ���� ��� �� ��� ��� �� �� � ����� �

�� ��� �����.

�� �� ��� ��� �� ��� � ���� TRUE� ��� �� ����

FALSE� � � � �����.

Tivoli Management Framework� ����� TRUE� �����.

��

admin_name

���� ��� ��� � �����.

node_name

��� ��� �� �� � ����� �� �����. � � ��

�� ������.

task_name

��� �� ��� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

tl_def_prof_mgrs, tl_val_set_gid, tl_val_set_uid

508 Tivoli Management Framework: ���

tl_val_prof_mgrs

��� �� ��� ��� �� ���� ��� ��� ��� �����.

TaskLibrary

��

tl_val_prof_mgrs task_name admin_name mgr_name...

��

tl_val_prof_mgrs ���� ��� �� ��� ���� ��� ��� ��� �

����.

�� �� ��� ��� �� ��� � ���� TRUE� ��� �� ����

FALSE� � � � �����. ��� TRUE���.

��

admin_name

���� ��� ��� � �����.

mgr_name...

��� ��� ���� ��� �� �����. � ���� ��� �

���� ������.

task_name

��� �� ��� � �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

tl_def_man_nodes, tl_val_set_gid, tl_val_set_uid

� 2 Tivoli �� policy 509

tl_val_set_gid

��� �� ��� ��� �� ID� ��� �����.

TaskLibrary

��

tl_val_set_gid admin_name group_id

��

tl_val_set_gid ���� ��� �� ��� ��� �� ID� ��� �����.

�� �� �� ID� ��� �� ��� � ���� TRUE� ��� � ��

�� FALSE� �� � �����.

Tivoli Management Framework� ����� TRUE� �����.

��

admin_name

���� ��� ��� � �����.

group_id

��� ��� �� ID� �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

tl_def_man_nodes, tl_val_set_uid

510 Tivoli Management Framework: ���

tl_val_set_uid

��� �� ��� ��� ��� ID� ��� �����.

TaskLibrary

��

tl_val_set_uid admin_name user_id

��

tl_val_set_uid ���� ��� �� ��� ��� ��� ID� ��� ����

�.

�� �� ��� ID� ��� �� ��� � ���� TRUE� ��� � �

��� FALSE� � � � �����.

Tivoli Management Framework� ����� TRUE� �����.

��

admin_name

���� ��� ��� � �����.

user_id

��� ��� ��� ID� �����.

�� ��

� ���� �� � � ��� �����.

0 ���� ����� ��� � �����. ���� � � � TRUE

�� FALSE� �����.

1 ���� ��� ��� � �����. ���� � � ���� �

���.

��

tl_def_man_nodes, tl_val_prof_mgrs, tl_val_set_gid

� 2 Tivoli �� policy 511

512 Tivoli Management Framework: ���

��

�������� ��

��� ����� � ����� ��

� �� x

�� �� ��

��� 9

wclient 141

wdate 187

wdiskspace 208

whostid 270

wifconfig 278

winstdir 287

winterp 295

wmannode 321

wmemsize 338

wtimezone 450

wuname 460

wunstmn 464

wxterm 471

��� ��

��� 6

wauthadmin 113

wcrtadmin 164

wgetadmin 247

widmap 275

wsetadmin 413

wsetlang 419

�� �� ��

��� 6

wcrtprf 174

wcrtprfmgr 176

wdistrib 209

wgetprf 259

wgetsub 266

wlssub 318

wpopulate 350

wsetpm 422

wsub 441

wuninst 461

wunsub 466

wvalidate 470

� ��, �� ix

�� � viii

���� ��, �� ix

�� ��

��� 12

tivoli 96

vdisp 102

waddicon 107

wbindmsg 119

wbkupdb 115

wcatcher 122

wcd 124

wchdep 125

wchkdb 127

wchknode 129

wdel 188

wdepot 198

wdepset 202

wdtmsg 215

wgetallinst 249

wiconv 273

winstendpt 288

wlcftap 296

wln 298

wlocpath 302

wls 306

wlsinst 310

wmcast 322

wmdist 326

wmdistgui 337

wmerge 339

wmrgaef 340

wmv 343

wping 349

wpwd 355

wrefresh 365

wrm 376

wrmnode 377

wrpt 382

wrunas 390

wsetpkey 421

wsupport 443

wtemp 451

wtrace 456

��������� �� ID, Informix 182

������ ID, Informix 180

�� �� �� 213

������� ��

� �� 254

� � 434

�� �� 109

�� ���, Oracle 182

�������� �� ��, ��� 10

���, ����� policy

after_install_policy 483

allow_install_policy 479

login_policy 486

select_gateway_policy 489

���, ��� ���� �� policy

tl_def_dist_mode 503

tl_def_man_nodes 504

tl_def_prof_mgrs 505

tl_def_set_uid 507

���, ��� ���� ��� �� policy

tl_val_man_nodes 508

tl_val_prof_mgrs 509

tl_val_set_gid 506, 510

tl_val_set_uid 511

���, ���� ��� �� policy

pm_def_profile_managers 494

pm_def_profile_types 495

pm_def_subscribers 496

���, ���� ��� ��� �� policy

pm_val_remove_subscribers 498

pm_val_remove_subscription 499

pm_val_subscribers 500

pm_val_subscription 501

�� ��

Tivoli ��� 320

Windows NT� � �� 320

© Copyright IBM Corp. 2002 513

�� ���

����� 6

�� �� 9

��� 6

�� �� 6

�� 12

����� �� 10

� 8

���� 12

����� 6

�� 11

��� ���� 12

�� 10

�� � ���� 9

httpd 7

kerberos 8

policy 10

RDBMS Interface Module 11

region� 8

Revision Control System 11

��, Tivoli �� 1

���� �, �� ix

�����

�� ix

DB2COMM 182

DB2DIR 181

DB2INSTANCE 182

DSQUERY 182

INFORMIXDIR 181, 182

INSTHOME 181

ORACLE_HOME 181

ORACLE_SID 180

SYBASE 181

TIVOLI_COMM_DIR 144, 409

TWO_TASK 182

������ ��

informix 182

���, Oracle �� 182

�� �� ix

��� �� ��� x

� ���

DB2 181

� ��� (�)

Informix 181

� ��

��� 8

oinstall 89

wclient 141

wcpcdrom 161

winstlcf 289

wmailhost 320

wpatch 347

wserver 406

wsettap 430

���� ��

��� 12

wdelsched 196

wedsched 218

wenblsched 222

wgetsched 264

wschedjob 402

wstartsched 439

��� ID, Oracle� 180

��������

��� 461

����� � ����� ��

��� 6

lcfd 51

lcfd.sh 61

w4inslcf.pl 104

waddpath 109

wadminep 111

wclrblk 147

wclrline 149

wcpyfile 163

wcrtgate 166

wdelep 190

wdelgate 191

wdskspc 213

weditini 216

wep 223

wepmgr 233

wepupgd 237

wgateway 240

wgetkey 254

wgetval 269

winsblk 280

����� � ����� �� (�)

winsline 282

winstlcf 289

wlsendpts 309

wmrgini 342

wrestart 368

wrplblk 379

wrplline 381

wseterr 416

wsetval 434

����� policy

�� �� � �� 473

� ����� ���� �� 486

��� 473

476

���� �� 473

after_install_policy 483

allow_install_Policy 479

login_policy 486

select_gateway_policy 489

��� �� ix

���� ��, �� �

��� 9

�, DB2 ���� 182

���� ���, DB2 182

���� �, DB2 182

���� �, Oracle 180

���� , DB2 181

���� ��, Sybase 181

����� �� vii

� ��� �

�� �� 320

SMTP 320

Windows NT �� 320

�� � �� x

�� ��

��� 11

wcrtqlib 177

wcrtquery 178

wgetquery 261

wruninvquery 391

wrunquery 396

wsetquery 425

��

�� x

514 Tivoli Management Framework: ���

����� ���� ��

��� 12

wcrtjob 168

wcrttask 184

wcrttlib 186

wdeljob 192

wdeltask 197

wdisttask 211

wgetjob 253

wgettask 267

wlstlib 319

wrunjob 394

wruntask 398

wsetjob 417

wsettask 432

wtaskabort 448

wtll 452

��� ���� policy

�� policy ���

��� 475

tl_def_dist_mode 503

tl_def_man_nodes 504

tl_def_prof_mgrs 505

tl_def_set_uid 507

��� �� policy ���

��� 475

tl_val_man_nodes 508

tl_val_prof_mgrs 509

tl_val_set_gid 506, 510

tl_val_set_uid 511

477

���� �� 476

��, DB2� 182

�� ��

��� 10

wbroadcast 121

wexpnotif 239

wlsnotif 312

wsndnotif 436

wtailnotif 446

����

� �� 4

����� 4

�� ��� ����� 4

�����

����, Sybase 181

setup_env 1

setup_env.csh 1

tnsnames.ora 182

.odbc.ini 180

���� ��� policy

�� policy ���

��� 474

pm_def_profile_managers 494

pm_def_profile_types 495

pm_def_subscribers 496

��� �� policy ���

��� 474

pm_val_remove_subscribers 498

pm_val_remove_subscription 499

pm_val_subscribers 500

pm_val_subscription 501

477

���� �� 474

�� �� 5

����� � ���� ��

��� 9

idlarg 14

idlattr 16

idlcall 18

idlexception 20

idlinput 22

idlresult 23

logls 62

objcall 64

odadmin 67

odbls 82

odstat 84

oserv 91

tmcmd 98

tmstat 99

wlocalhost 300

wlocktmr 301

wmailhost 320

���

�� � 320

SMTP �� 320

���, DB2 ���� 181

�� ��

� 1

��� ��

Aafter_install_policy ��� 483

allow_install_policy ��� 479

DDB2

� ��� 181

���� ��� 182

���� � 182

���� 181

�� 182

DB2COMM �� 182

DB2INSTANCE �� 182

DBDIR �� 181

INSTHOME �� 181

DB2COMM �� 182

DB2DIR �� 181

DB2INSTANCE �� 182

DSQUERY �� 182

Hhttpd ��

��� 7

waddrealm 110

wdelrealm 195

whttpd 271

wlsrealms 317

wstarthttpd 438

wstophttpd 440

Iidlarg �� 14

idlattr �� 16

idlcall �� 18

idlexception �� 20

idlinput �� 22

idlresult �� 23

Informix

������ �� ID 182

�� 515

Informix (�)

������ ID 180

� ��� 181

informix �� 182

INFORMIXDIR �� 181

INFORMIXSERVER �� 182

.odbc.ini �� 180

INFORMIXDIR �� 181

INFORMIXSERVER �� 182

INI ��

�� 216

�� ��� �� � �� �� 342

INSTHOME �� 181

Kkadmin �� 25

kadmind �� 27

kdb_destroy �� 29

kdb_edit �� 30

kdb_init �� 32

kdb_util �� 34

kdestroy �� 36

Kerberos ��

��� 8

kadmin 25

kadmind 27

kdb_destroy 29

kdb_edit 30

kdb_init 32

kdb_util 34

kdestroy 36

kerberos 38

kinit 41

klist 43

kpasswd 45

ksrvtgt 47

kstash 49

kerberos �� 38

kinit �� 41

klist �� 43

kpasswd �� 45

ksrvtgt �� 47

Llcfd �� 51

lcfd.sh �� 61

login_policy ��� 486

logls �� 62

Lotus Notes, Tivoli �� ���� 320

MMicrosoft Exchange, Tivoli �� ����

320

Oobjcall �� 64

odadmin �� 67

odbls �� 82

odstat �� 84

oinstall �� 89

Oracle

�� ��� 182

��� ID 180

���� � 180

ORACLE_HOME �� 181

ORACLE_SID �� 180

tnsnames.ora �� 182

TWO_TASK �� 182

ORACLE_HOME �� 181

ORACLE_SID �� 180

oserv �� 91

Ppm_def_profile_managers ��� 494

pm_def_profile_types ��� 495

pm_def_subscribers ��� 496

pm_val_remove_subscribers ��� 498

pm_val_remove_subscription ��� 499

pm_val_subscribers ��� 500

pm_val_subscription ��� 501

policy ���, ����� policy, ��� ��

�� policy, ���� ��� policy ��

473

policy ��

��� 10

wchkpol 131

wcrtpol 171

wdelpol 193

wdelpr 194

wgetdfpol 250

wgeteppol 251

policy �� (�)

wgetpolm 255

wgetpr 258

wlspol 314

wlspolm 315

wputeppol 351

wputpolm 352

wsetdfpol 415

wsetpr 423

RRDBMS Interface Module ��

��� 11

wcrtrim 180

wgetrim 262

wmvrim 345

wrimtest 369

wrimtrace 371

wsetrim 427

wsetrimpw 429

region� ��

��� 8

wconnect 157

wdisconn 206

wlookup 304

wlsconn 307

wregister 366

wtmrname 455

wupdate 468

Revision Control System ��

��� 11

wci 133

wco 151

wident 274

wrcs 356

wrcsdiff 361

wrcsmerge 363

wrlog 373

Sselect_gateway_policy ��� 489

setup_env.csh �� 1

setup_env.sh �� 1

SMTP

����� ����� 320

�� �� 320

516 Tivoli Management Framework: ���

SMTP (�)

Windows NT� �� 320

stash �� 49

Sybase

DSQUERY �� 182

interfaces �� 181

SYBASE �� 181

SYBASE �� 181

TTivoli � �� x

tivoli �� 96

TIVOLI_COMM_DIR �� 144, 409

tl_def_dist_mode ��� 503

tl_def_man_nodes ��� 504

tl_def_prof_mgrs ��� 505

tl_def_set_uid ��� 507

tl_val_man_nodes ��� 508

tl_val_prof_mgrs ��� 509

tl_val_set_gid ��� 506, 510

tl_val_set_uid ��� 511

tmcmd �� 98

tmstat �� 99

tnsnames.ora �� 182

TWO_TASK �� 182

Vvdisp �� 102

Ww4inslcf.pl �� 104

waddicon �� 107

waddpath �� 109

waddrealm �� 110

wadminep �� 111

wauthadmin �� 113

wbindmsg �� 119

wbkupdb �� 115

wbroadcast �� 121

wcatcher �� 122

wcd �� 124

wchdep �� 125

wchkdb �� 127

wchknode �� 129

wchkpol �� 131

wci �� 133

wclient �� 141

wclrblk �� 147

wclrline �� 149

wco �� 151

wconnect �� 157

wcpcdrom �� 161

wcpyfile �� 163

wcrtadmin �� 164

wcrtgate �� 166

wcrtjob �� 168

wcrtpol �� 171, 478

wcrtpr �� 172

wcrtprf �� 174

wcrtprfmgr �� 176

wcrtqlib �� 177

wcrtquery �� 178

wcrtrim �� 180

wcrttask �� 184

wcrttlib �� 186

wdate �� 187

wdel �� 188

wdelep �� 190

wdelgate �� 191

wdeljob �� 192

wdelpol �� 193

wdelpr �� 194

wdelrealm �� 195

wdelsched �� 196

wdeltask �� 197

wdepot �� 198

wdepset �� 202

wdisconn �� 206

wdiskspace �� 208

wdistrib �� 209

wdisttask �� 211

wdskspc �� 213

wdtmsg �� 215

weditini �� 216

wedsched �� 218

wenblsched �� 222

wep �� 223

wepmgr �� 233

wepupgd �� 237

wexpnotif �� 239

wgateway �� 240

wgetadmin �� 247

wgetallinst �� 249

wgetdfpol �� 250

wgeteppol �� 251, 476

wgetjob �� 253

wgetkey �� 254

wgetpolm �� 255, 477

wgetpr �� 258

wgetprf �� 259

wgetquery �� 261

wgetrim �� 262

wgetsched �� 264

wgetsub �� 266

wgettask �� 267

wgetval �� 269

whostid �� 270

whttpd �� 271

wiconv �� 273

wident �� 274

widmap �� 275

wifconfig �� 278

Windows NT ��

SMTP ����� 320

SMTP ��� �� 320

winsblk �� 280

winsline �� 282

winstall �� 284

winstdir �� 287

winstendpt �� 288

winstlcf �� 289

winterp �� 295

wlcftap �� 296

wln �� 298

wlocalhost �� 300

wlocktmr �� 301

wlocpath �� 302

wlookup �� 304

wls �� 306

wlsconn �� 307

wlsendpts �� 309

wlsinst �� 310

wlsnotif �� 312

wlspol �� 314, 477

wlspolm �� 315

wlsrealms �� 317

wlssub �� 318

wlstlib �� 319

wmailhost �� 320

wmannode �� 321

wmcast �� 322

�� 517

wmdist �� 326

wmdistgui �� 337

wmemsize �� 338

wmerge �� 339

wmrgaef �� 340

wmrgini �� 342

wmv �� 343

wmvrim �� 345

wpatch �� 347

wping �� 349

wpopulate �� 350

wputeppol �� 351, 476

wputpolm �� 352, 478

wpwd �� 355

wrcs �� 356

wrcsdiff �� 361

wrcsmerge �� 363

wrefresh �� 365

wregister �� 366

wrestart �� 368

wrimtest �� 369

wrimtrace �� 371

wrlog �� 373

wrm �� 376

wrmnode �� 377

wrplblk �� 379

wrplline �� 381

wrpt �� 382

wrunas �� 390

wruninvquery �� 391

wrunjob 394

wrunquery �� 396

wruntask �� 398

wschedjob �� 402

wserver �� 406

wsetadmin �� 413

wsetdfpol �� 415

wseterr �� 416

wsetjob �� 417

wsetlang �� 419

wsetpkey �� 421

wsetpm �� 422

wsetpr �� 423

wsetquery �� 425

wsetrim �� 427

wsetrimpw �� 429

wsettap �� 430

wsettask �� 432

wsetval �� 434

wsndnotif �� 436

wstarthttpd �� 438

wstartsched �� 439

wstophttpd �� 440

wsub �� 441

wsupport �� 443

wtailnotif �� 446

wtaskabort �� 448

wtemp �� 451

wtimezone �� 450

wtll �� 452

wtmrname �� 455

wtrace �� 456

wuname �� 460

wuninst �� 461

wunstmn �� 464

wunsub �� 466

wupdate �� 468

wvalidate �� 470

wxterm �� 471

��� � �.odbc.ini �� 180

518 Tivoli Management Framework: ���

���

Printed in Australia

SA30-1681-00