aix 5l 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state...

644
AIX 5L 5.2 , 1 ,a-c SA30-0463-06

Upload: truongkiet

Post on 16-Mar-2018

233 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L �� 5.2

�� ���, � 1 �, a - c

SA30-0463-06

���

Page 2: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices
Page 3: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L �� 5.2

�� ���, � 1 �, a - c

SA30-0463-06

���

Page 4: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�!

� ��� � ��� ���� ��� ���� ��, 609 ���� ������� ��� �����.

� 7 �(2003� 10�)

� ���� � ���� ��� ���� �� �, AIX 5L �� 5.2 � � ��� �� �� ���� �����.

IBM �� ��� �� �� ��� � � � �� ���� ���. ��� ��� � ��� ��� ������.

135-270

����� ��� ��� 467-12, ��������

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

�����

�� ���� ��� �����, [email protected]� �� ��� ��� ������. ��� ��� ��� ��� ���

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

© Copyright International Business Machines Corporation 1997, 2003. All rights reserved.

Page 5: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

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

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

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

ISO 9000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii

UNIX98 ��� 32�� � 64�� �� . . . . . . . . . . . . . . . . . . . . . . . . . xii

�� �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii

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

ac �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

accept, reject �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

acctcms �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

acctcom �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

acctcon1 �� acctcon2 �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

acctdisk �� acctdusg �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

acctmerg �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

acctprc1, acctprc2 �� accton ��. . . . . . . . . . . . . . . . . . . . . . . . . . . 15

acctwtmp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

acledit �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

aclget �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

aclput �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

adb �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

addbib �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

addrpnode �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

addX11input �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

adfutil �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

admin ��(SCCS). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

aixmibd �. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

aixterm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

ali �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

alias �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

alog �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

alstat �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

alt_disk_install �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

anno �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

ap �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

apply �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

apropos �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

ar �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

arithmetic �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

arp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

as ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

asa �� fpr ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

at �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

© Copyright IBM Corp. 1997, 2003 iii

Page 6: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ate �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

atmstat �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

atq �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

atrm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

attachrset �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

audit �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

auditbin � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134

auditcat �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

auditconv ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

auditmerge �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

auditpr �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

auditselect �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

auditstream �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

autoconf6 ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150

automount � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

automountd � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

autopush �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

awk �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

back �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

backsnap �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

backup �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

banner �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

basename ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

batch �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

battery ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

bc �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

bdftopcf �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

bdiff �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

bellmail �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

bffcreate �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

bfs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

bg �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

bicheck �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

biff �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

bindintcpu �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

bindprocessor �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

binld � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

biod � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220

bj �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

bootlist �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222

bootparamd � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

bootpd �. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

bootptodhcp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229

bosboot �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230

bosdebug �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

bs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236

iv �� ���, � 1 �

Page 7: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bsh �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

bterm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248

bugfiler �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

burst �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254

cachefslog �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

cachefsstat �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257

cachefswssize �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

cal �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260

calendar �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261

cancel �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

canonls �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

captoinfo �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268

capture �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

cat �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

catman �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

cb �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274

cd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275

cdc �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

cdcheck �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279

cdeject �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

cdmount �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282

cdromd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

cdumount ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

cdutil �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

certadd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288

certcreate �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290

certdelete �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

certget �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294

certlink �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

certlist �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297

certrevoke �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299

certverify �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

cfgif �. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302

cfginet � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304

cfgmgr �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

cfgqos � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309

cfgvsd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310

cflow �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311

cfsadmin �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314

chargefee �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316

chauthent �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317

chC2admin �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318

chCCadmin �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319

chclass �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

chcod �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

chcomg �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

�� v

Page 8: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chcondition �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

chcons ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333

chdev �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335

chdisp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338

chdoclang �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339

checkeq �� checkmm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340

checknr �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341

chfilt �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342

chfn �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343

chfont �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345

chfs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346

chgif � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351

chginet � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353

chgroup �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354

chgrp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357

chgrpmem �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358

chhwkbd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360

chitab �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362

chkbd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364

chkey �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365

chlang �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366

chlicense �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369

chlv �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370

chlvcopy �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374

chmaster �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376

chmod �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377

chnamsv �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382

chnlspath �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383

chnfs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384

chnfsexp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385

chnfsmnt �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387

chown �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389

chpath �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391

chprtsv �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394

chps �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

chpv �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

chque �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401

chquedev �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402

chresponse �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404

chrole �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409

chroot �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411

chrsrc �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413

chsec �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418

chsensor �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420

chserver �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422

chservices �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

vi �� ���, � 1 �

Page 9: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chsh �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

chslave �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428

chssys �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429

chsubserver �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432

chtcb �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

chtun �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436

chtz �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438

chuser �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

chvfs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447

chvg �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448

chvirprt �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452

chvmode �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454

chypdom �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455

ckpacct �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456

ckprereq �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458

cksum �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460

clear �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462

clsnmp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463

cmp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470

col �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471

colcrt �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473

colrm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

comb ��(SCCS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475

comm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

command ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

comp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

compare_report ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484

compress �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487

comsat � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489

configassist �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490

conflict �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490

confsetcntrl �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492

copycsmpkgs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497

cp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499

cpio �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503

cplv �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

cpp �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514

cpu_state �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518

craps �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520

createvsd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521

crfs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

cron � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532

cronadm �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534

crontab �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536

crvfs �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

csh �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541

�� vii

Page 10: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

csplit �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543

ct �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545

ctags �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548

ctcasd � . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550

cthactrl �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552

cthagsctrl �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553

cthagstune �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557

cthatsctrl �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558

cthatstune �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562

ctlvsd �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565

ctmsskf �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

ctsidmck �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572

ctskeygen ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575

ctsnap �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578

ctsthl �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581

cu �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584

curt ��. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589

custom �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597

cut �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602

cw �� checkcw �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604

cxref �� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606

��. ���� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609

�� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611

�� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613

viii �� ���, � 1 �

Page 11: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� ��

� �� AIX 5L �� 5.2 �� ��� 6� � � 1 ���, ��� ��� �� �� ��� � �

��. ��� ���� ���, �� �� ��, ��� �� ��, �� ��� �� �� ����, 6�

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

��� ���� ��� ��� � �� ���� ���, � 6 �� ������.

� ���� AIX 5L �� 5.2 5200-01 �� �� �� ���� �����. � �� �� ���� ��

��� ��� AIX 5.2 5200-01� ������.

� �� ���

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

� �� ���

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

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

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

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

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

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

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

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

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

�� ��� � �� ��� ��� ������� SMIT(��� �� ����� ��)� ��� �

� ���.

����

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

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

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

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

© Copyright IBM Corp. 1997, 2003 ix

Page 12: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

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

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

�� ��

��� �� ��� ���� ���� ���([ ]), ���({ }) � �� ��(|)� �� ��� ����.

�� unget ��� �� �� �����.

unget [ -rSID ] [ -s ] [ -n ] File ...

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

v ���� �� ��� ���� �� ��� ���� �����. � ���� �� ��, �� � �

�� ��� ���.

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

� ���� Files � Directories� ��, ��� ���� ���� ���.

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

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

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

v �� ��� � �� ���� ��� �� �� �����. �� �, [ a | b ]� a �� b� �

��� �� �� �� ��� �� � � �����. �����, { a | b }� a �� b� ��

� �� �����.

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

v ��( - )� �� ��� �����.

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

�� ��� ���� ���� ���(�� ��)� �����, lslpp ��� -w ��� ������.

�� �, installp ��� ���� �� ��� ����� �� ������.

lslpp -w /usr/sbin/installp

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

x �� ���, � 1 �

Page 13: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

File Fileset Type-----------------------------------------------------------------/usr/sbin/installp bos.rte.install File

installp� � � �� �� ��� ��� �� ��� �����, �� ������.

lslpp -w "*installp*"

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

File Fileset Type-----------------------------------------------------------------/usr/sbin/installp bos.rte.install File/usr/clvm/sbin/linstallpv prpq.clvm File/usr/lpp/bos.sysmgt/nim/methods/c_installp

bos.sysmgt.nim.client File

������� �� ��

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

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

�� �����, �� �� & ���� ������.

Command&

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

��.

��� ���� ����� ��� � � ��� ����� �� ���. cron �� ��� ��

� ���� ����� � ���. ���, at � batch ��� ��� ��� �� ��� �

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

�� ��

����� ����� � �� �� ��� �����. � ��� �����. � ����� $

� �����.

�� ����� �� ���� �����, ls� ���� Enter �� ���.

$ ls

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

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

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

�� ��� ����

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

ls �� �� -l(long) ��� �� ��, ���� �� ����� ��� �� �� ��� ����

�. � ��� ls ��� -l ��� ���� ��� �� �����.

� �� �� xi

Page 14: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

$ ls -l

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

�, �� �� ���� �����. � ����, /usr/bin ����� ������.

$ ls -l /usr/bin

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

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

v ��� �� -(�� ��)� �� ����.

v ��� ;(���)�� ��� ��, � ��� ��� ���� �� � ���.

v ��� �� \(���)� ��� � �� �� �� � ���. ���� � �� �� ��

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

$ cat /usr/ust/mydir/mydata > \/usr/usts/yourdir/yourdata

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

(�: telnet ��)�� ���, ���� �� ��� �� ��� ��� ����. ��� ��� �

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

���� � �� ����(�� �, Bourne, C, Korn) ���� ��� �� �� �����. �

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

�� ��

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

���. �� ��� �����, ���� �(Ctrl-C �� Alt-Pause)� ����. ���� ����, �

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

ISO 9000ISO 9000 �� �� ���� � ��� ��� ��� ��� ���.

UNIX98 ��� 32�� � 64�� ��

�� 4.3�� ���� ���� UNIX ��� ���� ��� � Open Group� UNIX98

��� ���� � ��� ���. �� �� ������ ��� ������ �� 4.3� �� ��

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

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

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

UNIX98�� ��� ��� ������ ���� ��� ��� � ��� CD-ROM� � Open

Group’s UNIX98 ��� � � Go Solo 2: The Authorized Guide to Version 2 of the Single UNIX

Specification� ���� CD-ROM� ���� Open Group’s UNIX98 ��� ������.

xii �� ���, � 1 �

Page 15: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

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

v AIX 5L �� 5.2 �� ���, � 1 �

v AIX 5L �� 5.2 �� ���, � 2 �

v AIX 5L �� 5.2 �� ���, � 3 �

v AIX 5L �� 5.2 �� ���, � 4 �

v AIX 5L �� 5.2 �� ���, � 5 �

v AIX 5L �� 5.2 �� ���, � 6 �

v AIX 5L Version 5.2 Files Reference

v AIX 5L Version 5.2 Glossary

v AIX 5L Version 5.2 Guide to Printers and Printing

v AIX 5L �� 5.2 �� � � ���

v AIX 5L �� 5.2 ��� ���� AIX ��

v AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide

v AIX 5L �� 5.2 ��� ��: ����

v AIX 5L �� 5.2 � �� ��

v AIX 5L Version 5.2 Performance Tools Guide and Reference

v AIX 5L �� 5.2 � ��

v AIX 5L Version 5.2 System Management Concepts: Operating System and Devices

v AIX 5L Version 5.2 System Management Guide: Communications and Networks

v AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v AIX 5L �� 5.2 ��� ��� ��: � � ����

v AIX 5L �� 5.2 ��� ��� ��: ��� � ��

v AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1

v AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2

v AIX 5L Version 5.2 Technical Reference: Communications Volume 1

v AIX 5L Version 5.2 Technical Reference: Communications Volume 2

v AIX 5L Version 5.2 Technical Reference: Kernel and Subsystems Volume 1

v AIX 5L Version 5.2 Technical Reference: Kernel and Subsystems Volume 2

v AIX 5L �� 5.2 � �� ��� ��� �� ��

v Performance Toolbox Version 2 and 3 for AIX: Guide and Reference

� �� �� xiii

Page 16: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

xiv �� ���, � 1 �

Page 17: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ���(����)

ac ��

��

�� � �� �����.

��

/usr/sbin/acct/ac [ -d ] [ -p ] [ -w File ] [ User ... ]

��

ac ��� ��� �� ���� �� � �� �� ���� �� � � �����. �� ��

wtmp ��� ��� �� � � ���� ���� �����.

�� � �� init � login ����� ����, /var/adm/wtmp ��� � ��, � ��� �

����. �� ���� adm ��� ��� �� � ��� 0� /var/adm/wtmp ��� ��� �

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

��� �����.

No /var/adm/wtmp

��� �� �� wtmp ��� ��� ����. -w ��� �� ���� ��� �����.

���

-d �� ���� ����� ��� ����.-p ��-� � �� ����� �����. � ��� ���� ��� ��� � � �� ��� �����.-w File /var/adm/wtmp ��� �� wtmp ��� �����.

��

��� ��: � ��� �� ����� ��(x) ��� ��� � ���.

��

1. �� wtmp ��� ��� �� � � ����� �� ���� �� � � �����, �� ��

������.

/usr/sbin/acct/ac

2. ��� smith � jones� �� �� � � �� wtmp ��� ��� ��� �� �����, �

� �� ������.

/usr/sbin/acct/ac smith jones

© Copyright IBM Corp. 1997, 2003 1

Page 18: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. ��� smith � jones� �� �� � � ��� �� wtmp ��� ��� ��� �� �����

�� �� ������.

/usr/sbin/acct/ac -p smith jones

��

/usr/sbin/acct/ac ac ��� �����./var/adm/wtmp ��-� � ����� � ��� ��� ���� ���.

�� ��

init � login ��.

�� ���, �� ��� � � ���� ��, ���� ��� �� ��� ��� AIX 5L Version 5.2

System Management Concepts: Operating System and Devices� Accounting Overview� ������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ��� �� ��� �� �����.

accept, reject ��

��

�� ��� �/�����.

��

accept Destinations

reject [ -r Reason ] Destination

��

accept ��� ��� ��� Destinations� �� �� �� ����� �����. Destination� ��

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

reject ��� ��� ��� destinations� �� �� �� ����� ���� ����. destination�

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

���

-r Reason �� ��� �� Reason� �����. Reason� ��� �� Destination� �����. lpstat -a ��� �

�� �����. ��� ��� � ���� Reason� �� ��� �� ���. �� ��� � � ��

� unknown reason��, ���� ��� �� �� ��� ��� �� ��� � � ��� new

destination���.

2 �� ���, � 1 �

Page 19: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/var/spool/lp/*

�� ��

enable ��, lpadmin �� � lpsched ��.

acctcms ��

��

���� ���� ��-���� ��� ����.

��

/usr/sbin/acct/acctcms [ -t | -a [ -o ] [ -p ] ] [ -c ] [ -j ] [ -n ] [ -s ] [ File ... ]

��

acctcms ��� File ���� ���� ��� ��, ��� ��� ���� �� �� ��,

�� �, � �� �� ��� �� �����. � ��, �� ��� 2� �����. �� ���

�� acct �� ���� �� ���.

-o� -p ��� �� ���� acctcms ��� �� � � ��� � � ���� ���� ��

��. �� � ��� � � /etc/acct/holidays ��� � ���� �����. �� � � ���

�� ��� ��� �� �� �� � ���. ���� ����� ���� ���� /etc/acct/holidays

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

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

�� ���(���) 3

Page 20: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-a 2� �� ��� �� ASCII �� ���� ��� �����. �� ��� �� ��, �� �� �, kcore �

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

CPU � , CPU ��� �� �� ���� ���. ��� � � � � �� ���. acctcms ��� �� kcore

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

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

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

-o ��� � ��� �� �� ��� �����.

-p �� � ��� �� ��� �����.

-o� -p ��� �� ���� acctcms ��� �� � � ��� � � ���� ���� ����. �� �

��� � � /etc/acct/holidays ���� ���� �����. �� � � ��� �� ��� ��� �� �� �

� � ���. ���� ����� ���� ���� /etc/acct/holidays ���� ���� ���� ��� �� ���

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

������.

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

TOTAL COMMAND SUMMARY

COMMAND NUMBER TOTAL TOTAL TOTALNAME CMDS KCOREMIN CPU-MIN REAL-MIN

MEAN MEAN HOG CHARS BLOCKSSIZE-K CPU-MIN FACTOR TRNSFD READ

-c kcore � ( )� �� CPU � �� ����. � ��� -n ��� �� �� ���� -n ��� ���

��.-j �� other ��� � �� ���� �� ��� �����.-n ��� ��� ��� ����. � ��� -c ��� �� �� ���� -n ��� �����.-o ��� � ��� �� ��� �����. -a ��� �� �� � ��� �� � ���.-p �� � ��� �� ��� �����. -a ��� �� �� � ��� �� � ���.-s � �� �� �� �� � � ��� � 2� ����� �����.-t �� �� �� ���� �� �����. � � 2� ��� �� �� � ��� ��� � ����

� ��. � ��� �� � � � ��� � � � �� ��� ��� �� ����, �� ���� acctcms

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

��

��� ��: adm ��� ���� � ��� �� ��(x) ��� ��� ����.

��

���� �� �� today ��� ����, � ��� total ��� �����, � ����� �

� ������

acctcms File . . . > todaycp total previoustotalacctcms -s today previoustotal > totalacctcms -a -s total

4 �� ���, � 1 �

Page 21: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

File ���� ���� today�� ��� �����, �� ��� ����(previoustotal� ���

�� ����) � ��(total)� ����. ��� �� 2� �����. ��� ���, -a ��� ASCII

���� � total ��� ��� ���, ���� ���� � � ���.

��

/etc/acct/holidays ���� �� �� � � ��� � � ���� ���./usr/sbin/acct/acctcms acctcms ��� �����.

�� ��

lastcomm ��, runacct ��.

acct �� ��, utmp,wtmp, failedlogin �� ��.

acct ���.

�� ���, �� ��� � � ���� ��, ���� ��� �� ��� ��� AIX 5L Version 5.2

System Management Concepts: Operating System and Devices� Accounting Overview� ������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � ���� �� ��� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting

Commands.

AIX 5L �� 5.2 � �� ��� � ���� � ��� ��� ��.

acctcom ��

��

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

��

/usr/sbin/acct/acctcom [ [ -q | -o File ] | [ -a ] [ -b ] [ -c Classname ] [-f ] [ -h ] [ -i ] [ -k ] [

-m ] [ -r ] [ -t ] [ -v ] [ -w ]] [ -C Seconds ] [ -g Group ] [ -H Factor ] [ -I Number ] [ -l Line

] [ -n Pattern ] [ -O Seconds ] [ -u User ] [ -e Time ] [ -E Time ] [ -s Time ] [ -S Time ] [ File

... ]

��

acctcom ��� �� ���� �� /var/adm/pacct ���� File ���� ��� ���� ��� �

��� �� ����. � � acctcom ��� ���� �� ����� ��� �� ����

�. � ��� �� ���� ��� � �� /usr/sbin/acct ����� �����.

�� ���(���) 5

Page 22: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

File ���� ���� �� �� ��� �������� /dev/null ��� �� ��, ���� �

���� ����� acctcom ��� /var/adm/pacct ��� ����.

File ���� ���� ��, acctcom ��� ��� �� � � �� ����� ��� ����.

��, /var/adm/pacct ��� acctcom ��� �� �� �����. ckpacct ���� � ��� ��

��� ��� �� ��� �� �� ����� pacct ��� � � � � ���. �� ��� ��

� �� ��� �� �� /var/adm/pacct?� ����. �� ?� ��� �����.

�� ��� ��� ���� �����. � � �� ��� �� ��, ��� ��, tty ��, �

� � , � � , �� (�), CPU � (�), � �� ��(�� ��)� ����. � � ���

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

COMMAND START END REAL CPU MEANNAME USER TTYNAME TIME TIME (SECS) (SECS) SIZE(K)

�� ���� �� ���� ��� � ��, ��� �� ��� #� ����. ���� ��� �

������ ���� �� ��(�� �, cron �� ���� ���� ��), ?(��)� TTYNAME

�� ����.

�:

1. acctcom ��� ��� ���� ���� �����. ps ��� ��� �� �� ����

������.

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

��

��� ��: � ��� �� ����� ��(x) ��� ��� � ���.

���

-a �� ���� �� � ��� �����. ��� �� � �� �����.-b ����� ���� �� ��� � ������. acctcom ��� �� ��� �� �, � ���

�� �� ����.-c Classname ��� ��� ��� ���� ����.

�: ���� ������ �� ��� �� � ����.-C Seconds CPU � (��� � + ��� � )� Seconds �� ��� �� ���� ���� �����.-e Time �� � �� � ��� ���� ���� ����. �� ���� ��� � , , �� ��� �

� � ���. � � ��� hh:mm:ss���.-E Time �� � �� � ��� ��� ���� ����. �� ���� ��� � , , �� ��� �

� � ���. � � ��� hh:mm:ss���. -E� -S ��� ��� � � ����, acctcom ��

� ��� � � �� ���� �����.-f acct.h ��� ac_flag �� ��� � �� �� �����. � �� �� ���� ��� � fork

��� ��� ����, � �� ��� ��� ��� �����. AIX 5L Version 5.2 Files Reference

� acct �� ��� ��� acct ��� ������.-g Group �� ��� �� ���� ����. �� ID� �� ��� �� � ���.

6 �� ���, � 1 �

Page 23: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-h � �� �� � � ���(���)�� ���� �� �� CPU � � �� �����. �

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

(� CPU ��) / (�� ��)-H Factor Factor ���� �� ���� ���� �����. ������ �� � ��� �� �� ����

�.

(� CPU ��) / (�� ��)-i �� �� �� ��(��� ��)�� ���� �� �� ���� �� �����.-k �� �� � �� kcore � ( )� �����, �� � � ���� �� �� ��� �

� �� ������.-l Line ��� L ������ /dev/Line� ��� ���� �����.-I Number (��� i)� ��� ��� �� ��� ���� ����� �����.-m � ��� � ��� �����. ��� � ����. -h �� �� -k ��� -m ��� ��

� �����.-n Pattern Pattern �� �� ���� ��� �����. �� Pattern� �����. ��� ed ���� ��

���. �� �� ���, acctcom ���� � ��� �� �� ���� + ��� �� � ���.-o File �� ��� �� �� ��� �� ���� �� ��� ��� �����. � ��� �� ��

�� �� �� �����. � ��� -q ��� �� �� � ����.-O Seconds �� � (�)� ���� CPU ��� � � � ���� �����.-q ��� ����� �� �� ���� ����. � ��� -a ��� ��� ��� ��� ���

�. -q ��� -o ��� �� �� � ����.-r CPU ��� �����. � ��� �� �� �����.

(��� ��) / (��� �� + ��� ��)-s Time ��� � �� � ��� ���� ���� �����. �� ���� ��� � , , �� ���

�� � ���. � � ��� hh:mm:ss���.-S Time ��� � �� � ��� ���� ���� �����. �� ���� ��� � , , �� ���

�� � ���. � � ��� hh:mm:ss���.-t �� ���� ��� CPU � � �����.-u User �� ���� ���� �����. User �� ��� ID, ��� ID� � ��� ��, �� ��

�� ���� ���� �� � #(� ��) �� ?(��) � ��� ������.-v ���� � ��� ����.-w ���� ��� �� ��� �����.

��

1. CPU � � 2� ���� ���� �� ��� �����, �� �� ������.

/usr/sbin/acct/acctcom -O 2 < /var/adm/pacct

� ��� ��� /var/adm/pacct ���� ����.

2. finance ��� ��� ���� �� ��� �����, �� �� ������.

/usr/sbin/acct/acctcom -g Finance < /var/adm/pacct

� ��� ��� /var/adm/pacct ���� ����.

3. /dev/console ������� ���, �� 5 ��� ���� ���� �� ��� �����, �

� �� ������.

/usr/sbin/acct/acctcom -l /dev/console -s 17:00

��� ��� � �� /var/adm/pacct ���� ����.

�� ���(���) 7

Page 24: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/sbin/acct/acctcom acctcom ��� �����./var/adm/pacct ��� ��� ���� ��� �����./etc/group ��� �� �� �� �����./etc/passwd ���� �� �� �����.

�� ��

ed ��, ps ��, runacct ��, su ��.

cron �.

acct ���.

acct �� ��, utmp, wtmp, failedlogin �� ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting

Commands.

���� ���, �� ��� � � ���� ��, ���� ��� �� �� ��� ��� AIX 5L

Version 5.2 System Management Concepts: Operating System and Devices� Accounting Overview�

������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � ���� �� ��� �� �����.

AIX 5L �� 5.2 � �� ��� � ���� � ��� ��� ��.

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

acctcon1 �� acctcon2 ��

��

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

��

acctcon1 [ -l File ] [ -o File ] [ -p ] [ -t ]

acctcon2

8 �� ���, � 1 �

Page 25: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

acctcon1acctcon1 ��� runacct ��� �� ���� ���� ��� �� ��(�� ���� �� �)

� ��� �� �� ��(�� ��� ���)� �����. ��� ����� /var/adm/wtmp ���

� ������. �� ��� ��� � ��� �� /var/adm/wtmp ��� ��� � ���.

acctcon1 ��� ASCII ���� � ��� �����.

v ��� ��

v ��� ID

v ��� ��

v �� �� � (�)

v ��� �� � (�)

v �� �� � (��)

v �� �� � (�/� ��)

acctcon1 ��� �� ���� ���� ��� ���� �����. acctcon1 ��� �� �� ����,

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

acctcon1 ��� ��� �� ����� ���� �� �� ��� � � �� �� � � ����

�.

-l ��� �� �� ��� ��� ���� � ���� ���� ��� �� ���� � ��� ��

�. �� ��, login ��� ��, ��� �� �� ���� ��� �� �� �� �����. �

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

acctcon2runacct ��� ���� ���� acctcon2 ��� acctcon1 ���� � ��� �� � ��� �

� � ���� �� �����. � �� acctmerg ���� �� ���� �� ��

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

���

�: � ��� acctcon1 ��� �� �����.

-l File ��� L� � ��, �� � ( ) �, �� � � �� ���, � �� ��, ���

��, �� � �� �� ���� �-��� �� ��� ����. ���� �� ���

���� ���, ���� /var/adm/acct/nite/lineuse ��� ��� ����.-o File ���� � , �� � , � � , ��� �, � � � �� �� �� �� �

� ��� �����. ���� �� ��� ���� ���, ���� /var/adm/acct/nite/

reboots ��� ����.-p ��� �����. � ��, ��� ��, � �� ��� �/� �� ��� �����.

-p ��� ���� ���, acctcon1 ��� ��� ����, � ��� �� ��

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

�� ���(���) 9

Page 26: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

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

�.

��

��� ��: � ��� adm ��� ����� ��(x) ��� ��� � ���.

��

1. ��� � ��(/var/adm/wtmp ��� )� ��� �� � ��(/var/adm/logsess ���

���� )� ����, � ����� � ��� ������.

acctcon1 -t -l/var/adm/acct/nite/lineuse \-o/var/adm/acct/nite/reboots \</var/adm/wtmp > /var/adm/logsess

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

���. ��� � ��� �� ��� /var/adm/acct/nite/lineuse��, � ��� ���� � �

�� �� /var/adm/acct/nite/reboots ��� �����.

2. ��� ��� �� �(/var/adm/acct/nite/ctmp ��� )� �� ���� ���(/var/adm/logacct

��� ���� )� ����, � ����� � ��� ������.

acctcon2 < /var/adm/acct/nite/ctmp \> /var/adm/logacct

��

/usr/sbin/acct/

acctcon1

acctcon1 ��� �����.

/usr/sbin/acct/

acctcon2

acctcon2 ��� �����.

/ v a r / a d m /

wtmp

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

�� ��

acctmerg ��, fwtmp, acctwtmp �� wtmpfix ��, init ��, login ��, runacct ��.

acct �� ��, utmp,wtmp, failedlogin �� ��.

acct ���.

�� ���, �� ��� � � ���� ��, ���� ��� �� ��� ��� AIX 5L Version 5.2

System Management Concepts: Operating System and Devices� Accounting Overview� ������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � ���� �� ��� �� �����.

10 �� ���, � 1 �

Page 27: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

acctdisk �� acctdusg ��

��

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

��

/usr/sbin/acct/acctdisk

/usr/sbin/acct/acctdusg [ -u File ] [ -p File ]

��

acctdisk� acctdusg ��� dodisk ��� �� ���� ��� ����� ����. ��, � ���

� cron �� dodisk ��� �� � �����.

�����, diskusg ��� ��� acctdisk ��� ��� ���. � ����� �� ��� ��� ��

��� ����, dodisk -o ��� ��� diskusg �� � acctdusg ��� ������.

����� �� ���� �� �� ����� ����� �����. ��� ���� �� ���(��

�, YP ����� �� ��� �� �����)� ���, acctdusg -p ��� ���� ���.

acctdiskacctdisk ��� �� ������ diskusg �� acctdusg ��� �� �� ��, �� �� �

��� �� ��� �� �� ��� �����. � �� acctmerg ���� � ����

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

acctdusgacctdusg ��� ���� ��� ��� ���� ��� ��� ��� dodisk -o ��� ��� ���

��. ��� �� ��, dodisk ��� diskusg ��� �����.

acctdusg ��� �� ��(�� find / -print ���� ���)���� �� ���� ��, �� �

���� � ��� �� �( � � ��)� ���� ���� �� �� �� ��� ��

���. � ��, ��� /etc/passwd ���� ��� ��� ��� �����. -p File ��� ��

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

uid login #blocks

#blocks �� ���� ���� 1KB �� ����.

���

-p File /etc/passwd ��� ���� � ��� ���� ��� ��� ��� �����.-u File ���� �� �� �� �� �� ��� ���.

�� ���(���) 11

Page 28: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

��� ��: � ��� adm ��� ����� ��(x) ��� ��� � ���.

��

1. ��� ���� ���� ����� �����, �� ��� �� crontab ��� ��� cron

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

0 2 * * 4 /usr/sbin/acct/dodisk

� ����� dodisk ���� �� ���(4) �� 2�(0 2)� ����, dodisk ���� diskusg

� acctdisk ��� ��� /usr/adm/acct/nite/dacct ��� ��� �� �� �����.

2. ��� ���� ���� ���� �����, �� ��� �� crontab ��� ��� cron �

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

0 2 * * 4 /usr/sbin/acct/dodisk -o

� ����, dodisk ���� �� ���(4) �� 2�(0 2)� ����, dodisk ���� acctdusg

� acctdisk ��� ��� ��� �� �� /var/adm/acct/nite/dacct ��� �����.

��

/usr/sbin/acct/

acctdisk

acctdisk ��� �����.

/usr/sbin/acct/

acctdusg

acctdusg ��� �����.

/etc/passwd ���� �� �� �����./usr/sbin/acct ����� �� ���� ��� � ���.

�� ��

acctmerg ��, diskusg ��, dodisk ��, runacct ��.

cron �.

acct �� ��, utmp,wtmp, failedlogin �� ��.

acct ���.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting Overview

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

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � ���� �� ��� �� �����.

12 �� ���, � 1 �

Page 29: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

acctmerg ��

��

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

��

/usr/sbin/acct/acctmerg [ -a [ Specification ] ] [ -h [ Specification ] ] [ -i [ Specification ] ] [

-p [ Specification ] ] [ -q Filename ] [ -v [ Specification ] ] [ -t ] [ -u ] [ File ... ]

��

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

(tacct 2� �� tacct ASCII ��)� ��� �, � ��� �� ��� �����. (�� ���� �

�� �� ��� acct �� ��� tacct ��� ������.) acctmerg ��� �� ��� File ��

�� ��� �� ��( � 9�)�� ���� �� ����. � �, acctmerg ��� ���

��� �� �����. �� �� ��� ID� �����. -a, -v �� -p ��� ���� �� �

�, acctmerg ��� ��� �� �� � 2� ���� ��� �����.

acctmerg ��� runacct ��� �� ���� �� ��� �� � � ���� ���� � ��

�� �� �����. � ���� /var/adm/acct/nite/daytacct ��� �����. � ����

/var/adm/acct/sum/tacct ��� �����. �� monacct ��� ASCII ��� � �� ����

� � ���� ��� ���. � �� ���� /var/adm/acct/fiscal ��� �����.

Specification �� ���� �� 1� ��� �� �� �� �� �� � � ���. � ��

� acct �� ��� tacct ��� ��� �� �� � ��� ��� �� ������. � � �

�� ��� ��� ta_name ��� ���� �� � ���. � ��� �� ����.

-h2-3,11,15-13,2

-h ��� � ��� �� �� ��� ��� � ��� ���� ���.

v ��� ��(2)

v �� CPU(3)

v �� � (11)

v ��(15)

v ���� ���(� � ��� �� 14)

v ��� �� ���(13)

v ��� �� ��(2)

� � �� �� �� ���� ���, ��� �� ���� 1-18 �� 1-� ����, �� �� ��

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

�� ���(���) 13

Page 30: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� ���, ��� ��� �� �� ���� acctmerg -i Specification ��� ��� tacct �

� � � ���.

tacct �� �� ����.

�� � �� ��

1 UID ��� ID ��.2 LOGIN NAME ���� ��� ��.3 CPU PRIME �� � � �� CPU � ( ).4 CPU NPRIME ��� � �� �.5 KCORE PRIME �� � � ��� ��� � � ( ).6 KCORE NPRIME ��� � �� �.7 BLKIO PRIME �� � � ��� � �.8 BLKIO NPRIME ��� � �� �.9 RW/WR PRIME �� � � ��/��� � �.10 RW/WR NPRIME ��� � �� �.11 CONNECT PRIME �� � �� �� �� � ( ).12 CONNECT NPRIME ��� � �� �.13 DISK BLOCKS � ��� ���.14 PRINT ���� ��� ��(���).15 FEES �� ��� ��.16 # OF PROCS ��� ��.17 # OF SESS ��� �� ��.18 # OF SAMPLES ��� �� ��.

���

-a[Specification] ASCII � ���� ��� ����.-h[Specification] � ��� �����. � ��� -a ��� ����, -p �� -v ��� �� �� � ��

� ���.-i[Specification] ASCII �� �� �� ��� ��� 2� �� ����.-p[Specification] ���� �� ��� �����. ��� ASCII �����.-q Filename ��� qacct ��(accrec.h �� ��)� �� ��� ID � ��� ���� ��� �� ��

����. � ��� ��� ID, ��� ��, ��� ��� � �� � ���.-t �� �� �� � � �� �� ����.-u ��� ��� �� ��� ID�� �����.-v[Specification] �� �� �� �� �� ��� ASCII ���� �����.

��

��� ��: adm ��� ���� � ��� �� ��(x) ��� ��� ����.

��

1. ��� ���� �� dacct� � �� -i1-2,13,18� ��� �� ���� �� tacct� �

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

acctmerg -i1-2,13,18 <dacct | acctmerg tacct >output

acctmerg ��� dacct ���� ��� ID, ��� ��, � �, ��� �� �(i1-2,13,18)� �

� � ��� �� �, � ��� tacct �� ��� � ��� �� ��� �����.

14 �� ���, � 1 �

Page 31: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2. tacct ��� �� jan2.rpt� �����, � �� �� ������.

acctmerg -v <Jan.2.rpt >jan2.tmp

�� jan2.tmp ��� ��� �� ������. � ��� Jan2.rpt� ��� Jan2.tmp� ����

�, ��� ASCII ���� �����.

3. ��� 2� � ���� � Jan2.tmp� Jan2.rpt� ������, � ��� ������.

acctmerg -i <jan2.tmp >jan2.rpt

��

/usr/sbin/acct/acctmerg acctmerg ��� �����./usr/include/sys/acct.h acct � tacct �� ��� �����./var/adm/acct/nite/daytacct 2� ��� �� ���� � ���� �����./var/adm/acct/sum/tacct 2� ��� ����� �� � � ��� �����./var/adm/acct/fiscal /var/adm/acct/sum/tacct ��� ���� �� � ���� �

� ���� �����.

�� ��

acctcms ��, acctcom ��, acctcon1 �� acctcon2 ��, acctdisk ��, acctprc1,acctprc2 �� accton

��, fwtmp ��, runacct ��.

acct �� ��, utmp,wtmp, failedlogin �� ��.

acct ���.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting Overview.

AIX 5L Version 5.2 Guide to Printers and Printing� Queuing System Overview for System Management.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � ���� �� ��� �� �����.

acctprc1, acctprc2 �� accton ��

��

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

��

/usr/sbin/acct/acctprc1 [ InFile ]

/usr/sbin/acct/acctprc2

/usr/sbin/acct/accton [ OutFile ]

�� ���(���) 15

Page 32: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

� �� acctprc ��� acctprc1, acctprc2 � accton� runacct ��� �� ���� ��� ����

� ���� �����.

acctprc1 ��� acct ��� � �� ������ �� �� ��, ��� ID� ���� ���

��� ���� ASCII �� �� ���� �����. � ��� ��� ID, ��� ��, ��

CPU � , ��� CPU � , ��� �� �(1024 �� � ), �� ��� � �, ���

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

InFile ���� ��� ��, ��� utmp ��� � ��� �� ���� ��� ID� ��� ��

�� ��� � ���. File ���� ���� �� ��, acctprc1� ��� ��� /etc/passwd

�� ����� �����. InFile ���� ��� ��� ��� ID� �� ���� � � ���

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

acctprc2 ��� acctprc1 ���� �� ��(�� ������) �� � �� ��� ID� ��

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

accton ��� ��� �� ����, ��� ����� ���� ����. ���� OutFile ���

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

��� ����� OutFile ���� �� ���� ���. OutFile ���� accton ����

��� ����. OutFile ���� ��� ��� � ��� ��, ��� � �� ��� �� ��

�. �� � ����� /var/adm/pacct ��� �����.

��

��� ��: � ��� adm ��� ����� ��(x) ��� ��� � ���.

��

1. ��� ��� 2� ��� ��� ���� �� ���� � �� out.file��� ASCII

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

/usr/sbin/acct/acctprc1 < /var/adm/pacct >out.file

2. �� 1� ASCII �� ��� ���� �� ����, � ��� ����� � �����

� �� ������.

/usr/sbin/acct/acctprc2 < out.file > \/var/adm/acct/nite/daytacct

�� ��� tacct ��� ���� 2� ����, ��� ID�� ��� �� �� � ��

�. /var/adm/acct/nite/daytacct ��� acctmerg ���� � ���� �� ���� �

� �� �� /var/adm/acct/sum/tacct ��� ����.

3. ��� ����� �����, �� �� ������.

/usr/sbin/acct/accton

16 �� ���, � 1 �

Page 33: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/sbin/acct/

acctprc1

acctprc1 ��� �����.

/usr/sbin/acct/

acctprc2

acctprc2 ��� �����.

/usr/sbin/acct/

accton

accton ��� �����.

/etc/accton �� accton �� ����� �� �� ��./etc/passwd acctprc1 ���� ���� ��� ID� ��� ���� ��� �� �����.

�� ��

acctmerg ��, runacct ��.

acct �� ��, utmp �� ��.

���� ���, �� ��� � � ���� ��, ���� ��� �� �� ��� ��� AIX 5L

Version 5.2 System Management Concepts: Operating System and Devices� Accounting Overview�

������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � ��� �� ��� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting

Commands.

AIX 5L �� 5.2 � �� ��� � ���� � ��� ��� ��.

acctwtmp ��

��

utmp �� �� ���� ��� �� � �� �� �����.

��

/usr/sbin/acct/acctwtmp ″Reason″

��

acctwtmp ��� runacct ��� �� ���� utmp �� �� ��� �����. � �� ����

�� �� � , ���� �� ���� �� 11� ��� Reason� ��� ���� � ���.

���

�.

�� ���(���) 17

Page 34: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����

Reason 11� ��� ���

��

��� ��: � ��� adm ��� ����� ��(x) ��� ��� � ���.

��

/usr/sbin/acct/accwtmp acctwtmp ��� �����./var/adm/wtmp ��� �� �� �� � � � �� �����./usr/include/utmp.h ��, � � � � � �� �� �����.

�� ��

acctcon1 �� acctcon2 ��, acctmerg ��, fwtmp ��, runacct ��, wtmpfix ��.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting

Commands.

acledit ��

��

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

��

acledit File

��

acledit ��� ���� File ���� ��� ��� ��� �� ��� � � ���. � ���

�� ��� �� ��� ����, �� ���� EDITOR �� �� ��� ���� ��� ���

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

�: EDITOR �� �� �� �� ���� ���� ���. ��� ���, acledit ��� ���

� ����. � ��� ACL� 1 �� ���(4096 ��)� �� � ����.

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

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

18 �� ���, � 1 �

Page 35: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

attributes: SUIDbase permissions:

owner (frank): rw-group (system): r-xothers : ---

extended permissions:enabled

permit rw- u:dhsdeny r-- u:chas, g:systemspecify r-- u:john, g:gateway, g:mailpermit rw- g:account, g:finance

�� �� ��� �� ���, ��, �� ����� ����, ���� ��(r), ��(w), ��(x) ���

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

�. � �� �� setuid(SUID), setgid(SGID) � savetext(SVTX)� �� � ���. �� ���

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

�: acledit ��� �� ���� �� ��, ����� ���� ���� �� ���� �

� ���.

��

��� ��: � ��� �� ��� ����� �� ���� ��� �� ��� ���.

����� ��:

�� ��

x /usr/bin/aclgetx /usr/bin/aclput

�� ���: �� ������ ��� ����� ��� ����, acledit ��� �� ��� ��

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

��� ��

FILE_Acl ��� ��� �����.

�� ���� ��� ���, �� ��� ��� ��� ��� ��� �� ��� ��� AIX 5L �

� 5.2 � ��� ″� ��″� ������.

��

plans ��� ��� �� ��� �����, �� �� ������.

acledit plans

��

/usr/bin/acledit acledit ��� �����.

�� ���(���) 19

Page 36: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

aclget ��, aclput ��, auditpr ��, chmod ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ���.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

aclget ��

��

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

��

aclget [ -o OutFile ] File

��

aclget ��� File ���� �� ���� ��� ���� OutFile ���� ��� ��� ��� �

� ��� �����.

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

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

���

-o OutFile ��� �� ��� OutFile ���� ��� ��� ����� �����.

��

��� ��: � ��� �� ��� ������ ��, ���� ��� �� ��� ���.

��� �� ���

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

attributes: ( SUID | SGID | SVTX )

base permissions:

owner (name): Mode

group (group): Mode

others: mode

20 �� ���, � 1 �

Page 37: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

extended permissions( enabled | disabled )

permit mode u:Username,g:groupname

deny mode u:Username,g:groupname

specify mode u:Username,g:groupname

��� �� ��(r), ��(w), ��/��(x) ���, � ���� rwx� �����. (���� ��

�� �� ��� ��� ���.)

�� �, � ACL� ��� ��� user1� �� staff� ���� �� �����. � ��� ���

user2� � ��� �� �� ��� ��� �� ���.

attributes:

base permissions:

owner (user1): rw-

group (group): r--

others: ---

extended permissionsenabled

permit r-- u:user2

� ACL� ��� ��� ���, ��� ��� �� ���� ��, � ����� user2� ��� �

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

attributes:

base permissions:

owner (user1): rw-

group (group): r--

others: r--

extended permissionsenabled

deny r-- u:user2

��

1. status ��� ��� �� ��� �����, �� �� ������.

aclget status

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

2. plans ��� ��� �� ��� status ��� �����, �� �� ������.

aclget plans | aclput status

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

�� ���(���) 21

Page 38: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. ��� ���� ���� � plans ��� ��� �� ��� acl1 ��� �����, �� ��

������.

aclget -o acl1 plans

��

/usr/bin/aclget aclget ��� �����.

�� ��

acledit ��, aclput ��, chmod ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ���.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

aclput ��

��

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

��

aclput [ -i InFile ] File

��

aclput ��� File ���� ��� ��� ��� �� ��� �����. � ��� ���� -i ��

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

�: ���� �� ��� �� � ��, ����� ��� �� �� ��� ���� ��� �� ��

� �����. Ctrl-D �� ��� ��� ������.

��� �� ���

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

attributes: ( SUID | SGID | SVTX )

base permissions:

owner (name): mode

group (group): mode

22 �� ���, � 1 �

Page 39: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

others: mode

extended permissions( enabled | disabled )

permit mode u:Username,g:groupname

deny mode u:Username,g:groupname

specify mode u:Username,g:groupname

��� �� ��(r), ��(w), ��/��(x) ���, � ���� rwx� �����. (���� ��

�� �� ��� ��� ���.)

�� �, � ACL� ��� ��� user1� �� staff� ���� �� �����. � ��� ���

user2� � ��� �� �� ��� ��� �� ���.

attributes:

base permissions:

owner (user1): rw-

group (group): r--

others: ---

extended permissionsenabled

permit r-- u:user2

� ACL� ��� ��� ���, ��� ��� �� ���� ��, � ����� user2� ��� �

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

attributes:

base permissions:

owner (user1): rw-

group (group): r--

others: r--

extended permissionsenabled

deny r-- u:user2

�� ���(���) 23

Page 40: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-i InFile ��� �� ����� �� ��� �����. InFile ���� ��� ��� ��� �� ��� � ��

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

�: ��� �� ��� �� ���� ��� �� ���(4096 ��)� �� � ����.

��

��� ��: � ��� �� ��� ������ ��, ���� ��� �� ��� ���.

�� ���: �� ������ ��� ����� �� ����, aclput ��� �� ��� �� �

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

��� ��

FILE_Acl �� ��� ��� �����.

�� ���� ��� ���, �� ��� ��� ��� ��� ��� �� ��� ��� AIX 5L �

� 5.2 � ��� ″� ��″� ������.

��

1. �� ���� �� ��� � ��� ��� �� ��� �����, �� �� ������.

aclput statusattributes: SUID

� � Ctrl-D �� �� ��� �����.

2. acldefs ��� ��� ��� ��� status ��� �� ��� �� ��� �����, �� �

� ������.

aclput -i acldefs status

3. plans ��� ���� �� �� ��� status ��� �� ��� �� ��� �����, ��

�� ������.

aclget plans | aclput status

4. plans ��� ��� ��� �� ��� ��� status ��� �� ��� �� ��� �����,

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

aclget -o acl plans

� ��� plans ��� ��� �� ��� acl ��� �����. ��� ���� ��� acl �

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

aclput -i acl status

� ��� acl ��� � ��� �� ��� ���� status ��� ����.

24 �� ���, � 1 �

Page 41: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/aclput aclput ��� �����.

�� ��

acledit ��, aclget ��, auditpr ��, chmod ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ���.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

adb ��

��

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

��

adb [ -k ] [ -l Directory ] [ -w ] [ ObjectFile [ CoreFile ] ]

��

adb ��� ���� �� ��� ���� �����. � ��� ���� ��� ����� ��

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

����� ObjectFile ���� �� ��� � � �� ��� �����. ObjectFile ���

� �� ��� � � ���, ��� �� �� �� adb ��� ��� ��� �� � ���

�. ObjectFile ���� � � �� a.out���.

CoreFile ���� ObjectFile ���� ��� �� �� �� �����. CoreFile ���� �

�� core���.

adb ��� ���� � �� ��� ���� �� ��� �����. adb ��� �� �� ����

�� ���� ����. � �� ���� adb ��� �� ��� �����.

����� adb �� �� ��� �� ����.

[Address] [,Count] [Command] [;]

�� Address� Count� ������. Count ���� � � �� 1���. Address ���� ���

� ��, .(���) �� Address� �����.

�� ���(���) 25

Page 42: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

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

��� ;(���)�� � � 2� ��� ��� � �� �� � ���.

adb ��� ���� ��� ���� �� � ���.

v ���

v ���

v �� ��

v �

v ��

��� ��� AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs

� adb ��� ��� ��� ������.

�: ���� ��� �� ��� � � ���, adb ��� ���� �� �, �� �, ��

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

���

-k �� ��� ������.-l Directory $< �� $<<� �� ��� � ����� �����. � �� /usr/ccs/bin/adb �����.-w ObjectFile � Corefile ���� �� �� � �����. � ��� �� �� ���� � ���

��� ����.

���

adb ��� ���� �� ���� ��� �� � �����. adb ��� ��� � �� ��, ��

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

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

��

/dev/mem �� �� �� ��/�� ���� �����.a.out �� ���� �� ��� ��� �����.core �� ���� ��� ��� ���� ���.

�� ��

cc ��, dbx ��.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� adb Debug

Program Overview.

26 �� ���, � 1 �

Page 43: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

addbib ��

��

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

��

addbib [ -a ] [ -p PromptFile ] Database

��

addbib ��� ���� ��� ��� ��� �� �� ������� ���� � � �

���. ���� � ��� �� ��� �� � ���. �� � � ��� ���� refer

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

� ��� Instructions?���. ��� ��� ��� �� � ���.

��� ������ Enter �� �� ��� �� � ����. addbib ��� � �� �� �� �

� ��� ����, ����� � ��� ��, �� �� Database ���� ��� ����

��� ����.

Enter �� �� �(�(null) ��)� �� �� ����� ����. -(�� ��)� ���� ��

�� ������. �� �� ���� �� � ��� ����� ���. ���� Continue?

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

�� ��� ��� ����� Enter �� ����. �� ��� ����� ��� ��� ��� ���

���.

������� ����� ��� ��� �� ���(vi, ex, edit, ed)� ��� ������.

���

-a ��(abstract)� ��� ���� ����. ��� �� ��� ���� �� � ����. �

�� Ctrl-D �� �� ����.

�� ���(���) 27

Page 44: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-p PromptFile addbib ��� PromptFile ���� ��� ��� ��� � �� ��� ����� ���. �

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

�� �� ���� � ��� � �� �� ����. addbib ��� ��� ��� ����

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

�� �� �� ���.

%A �� ��

%B ����� � � �

%C ��(���)

%D �� ��

%E ����� � � �� ���

%F � ��� �(refer ���� ���)

%G �� �� ��

%H ���� �� ��� �� ��

%I ���(���)

%J ��� � � ��

%K ����� � � ���� ��

%L refer ��� -k ���� ���� � �

%M � �(Bell Labs) �(���� � �)

%N �� �� ��

%O ���� �� ��� �� ��

%P ��� ��

%Q ���� ��� ��(��� ��)

%R ���, �� �� ��(��)

%S ��� ��

%T ���� �� ��

%V �� ��

%X refer ��� ��, roffbib ��� ���� ��

%Y,Z refer ��� �� ���

�: %A � ��� ��� �� � �� ���� ���. �� ��� ���� ���.

��

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

28 �� ���, � 1 �

Page 45: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

%A Bill Tuthill%T Refer - A Bibliography System%I Computing Services%C Berkeley%D 1982%O UNIX 4.3.5.

�� ��

indxbib ��, lookbib ��, refer ��, roffbib ��, sortbib ��.

addrpnode ��

��

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

��

addrpnode [-c] [-h] [-TV] node_name1 [node_name2 ... ]

addrpnode [-c] -f file_name │ ″-″ [-h] [-TV]

��

addrpnode ��� ��� ���� ��� �� ��� ��� �� �����. ��� �� ��

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

�� � � �� ����. ��� �� ��� � � ��� startrpnode ��� ������. �

� ��� ����� �� ��� ���� �� �� preprpnode ��� ������.

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

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

���

-c ��� ��� �� �� ��� �� � � ��� �� ��� �����.

-f file_name │ ″-″

file_name�� � �� ���� ����. ��� �� ��� � ��� � � ����

�. � ��(#)� �� ��� ��(�� #� 1 �� � ��, �� �)� ���� �����.

STDIN� �� ��� ����� -f ″-″� ������.

-h �� ��� ��� ���� �����.

-T �� ��� ��� �� ��� �����. ���� ��� �� �����.

-V �� ��� ��� ��� ��� �����.

�� ���(���) 29

Page 46: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����

node_name1 [node_name2 ... ]

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

� DNS ��� ��� long �� ��� �����. � ��� IP ��

� ���� ���.

��

addrpnode ��� ���� �� ��� ���� �� IBM.PeerNode �� �� �

IBM.PeerDomain �� ��� �� �� ��� �� ���. �� ���� �� �� preprpnode

��� ��� �����. preprpnode ���� �� ���� ��� � � �� �� ��� ��

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

�� ��

0 ��� ���� ��� ���.

1 RMC� ��� ������.

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

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

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

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

�� ��

CT_CONTACT

RMC(Resource Monitoring and Control) �� ���� ��� ���� ���� �����.

CT_CONTACT� ��� �� �� IP ��� ��� ��, ��� ��� ���� RMC ��

�����. CT_CONTACT� ���� �� ��, ��� ��� ���� �� ���� RMC �

� �����. RMC � ��� �� � �� ��� � ���� �� �� � ��� ��

���.

��

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

�� ��

-f ″-″ ��� ��� ��, � ��� �� ���� �� ��� � ��� ����.

�� ��

-h ��� ��� ��, � ��� ���� �� ��� � ���. �� �� ��� �� ��� ��

���.

30 �� ���, � 1 �

Page 47: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

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

��

nodeA� � ���� �� ApplDomain� �� ��� � �� nodeB � nodeC �� ApplDomain

�� ��� �����, � ��� nodeA�� ������.

addrpnode nodeB nodeC

��

/usr/sbin/rsct/bin/addrpnode addrpnode ��� �����.

�� ��

��: lsrpnode, mkrpdomain, preprpnode, rmrpnode, startrpdomain, startrpnode

addX11input ��

��

���� ��� ���(ODM) ������� X11 �� � �� �����.

��

addX11input

��

addX11input ��� X11 �� � �� ODM ������� ���� � �����. ����

addX11input� ���� addX11input ��� DeviceName, GenericName � ModuleName �� ���

��. ��� �� �� ODM ������� �����.

� ��� ��/��� ��� �����. ��� � �� �� ���� �� ����� ��, � ��

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

�� ��

ODM� ���� � � ����. ODM ������� X11 �� � �� /usr/lib/objrepos �����

�� ��� �����.

�� ��

deleteX11input ��, listX11input ��.

�� ���(���) 31

Page 48: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

adfutil ��

��

P/S ���� �� Micro Channel ��� AIX 5.1 � �� ��� ������� ���� ��� ��

���.

��

adfutil [ -d Device | -f File ] [ -a AdapterName | -c PS/2CardID ] [ -m FileName ... ] [ -q ]

��

adfutil ��� AIX 5.1 � �� ��� �������� �� ��� ��� ��� �� PS/2 ���

� �� Micro Channel �� ��� � ���� ��� �����. ��� PS/2 ��� ���� �

�� ��� DOS ���� ��� ���� ����. � ���� � � ��� ��� �� ���

�, ��� ��� �� ASCII� ��� ����.

DOS �� ���� � ��� �� ��� �� ��� �� @XXXX.ADF���. �� XXXX�

PS/2CardID���. ��� �� �� ���� � � ��� ���� � � �����. @XXXX.ADF

���� � ��� �� ��, �� ��� �� ���� ���� adfutil ��� ����. ��� �

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

�� ��� �� ���� ���� ��� ����. -c ��� ����, ��� ��� �� ���

� DOS �� ��� ���� ���� �����. � ��� �� ��, �� ��, � �� ��� �

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

��� �� ��� � �, � ��� /tmp/adfnnn ��� �����, ��� nnn� �� ��� ID

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

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

� � ���. -m ��� ��� ������ /usr/lib/microcode ����� �����.

��: ���� �� ���� �� ��� ���� ���� �� ��� �� � ��� ���

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

���

-a AdapterName �� ��� � ODM ������� ��� ��� �� ��� �� �� DOS �� �

�� ����. AdapterName ���� ��� �� �����.-c PS/2CardID ���� PS/2CardID� �����. ID� 4�� �� �����, ��� �� ��� DOS

�� ��� ��� ���. � �� ����.-d Device ��� �� ��� � Device� �����. � �� /dev/fd0���.-f File �� ��� �� ��� �� �� ��� �� ��� �����. -f ��� ���� � ��,

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

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

32 �� ���, � 1 �

Page 49: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-m FileName ����� � � � ����� ��� ����. FileName ���� ���� ���

/usr/lib/microcode ��� ����. �� �� ����� �����.-q ��� ��� ��� �� �� ���� ����.

��

1. ��� �� ��� ����� � /dev/fd0 ��� ���� �����, �� �� �����

�.

adfutil

2. /home/owner/adf.file� ��� �� ��� ����, �� �� ������.

adfutil -f /home/owner/adf.file

3. insert diskette ��� �� ��� ������ �� @0FFE.ADF �� �� ��� ��

��� � � �� /dev/fd0� �����, �� �� ������.

adfutil -c 0FFE -q

4. ��� �� �� ��� ���� �� ��� ������ ����, �� �� ������.

adfutil -m FileName

�� ��

dosdir ��.

admin ��(SCCS)

��

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

��

� SCCS �� ��

admin { -n -i[FileName ] } [ -a { User | GroupID } ] ... [ -f HeaderFlag[Value ] ... ] [ -r SID ]

[ -t FileName ] [ -m ModificationRequestList ] [ -y[Comment ] ] File ...

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

��� SCCS �� ��

admin [ -a { User | GroupID } ] ... [ -e { User | GroupID } ] ... [ { -d HeaderFlag |

-fHeaderFlag[Value ] ... } ] [ -m ModificationRequestList ] [ -t[ FileName ] ] [ -y[Comment ] ]

File ...

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

�� ���(���) 33

Page 50: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� SCCS �� ��

admin -h File ...

��� SCCS �� ��

admin -z File ...

��

admin ��� �� �� � �� ���(SCCS) ��� ���� �� SCCS ���� ��� ��

�� ����.

get ��� ���� �� � � �� ����� ���� ���� admin ���� � �

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

� ���.

File ���� ��� ��� ��, admin ��� � ��� ��� ��� �����. ��� �� -i

�� -n ��� �� ��, admin ��� � ��� ��� ���� �� ��� � � �� ��

���.

File ���� ���� ��� ���� admin ��� � ����� �� SCCS ��� ��� ���

�����. �� SCCS ���� �� �� �� s. ���� �� ���. File ���� �� -(��

��)� ����, admin ��� �� ��� �� �� SCCS �� ���� �����. EOF ���

��� ����.

������ ��� � � � �� ��� �� ���. �� SCCS ��� �� ���� s.Name

� �� ���. �� SCCS ��� �� �� �� ���� ����. admin ��� x.�����

�� �� x-file� �����. � ��� � ���� ��, x-file� �� �� � �� ���(SCCS)

��� ��� �� ��� ����. x-file� admin ��� �� ��� ��� �� �� �� ���

��. admin ��� ���� ��� ��, x-file� SCCS ��� ���� �����. ��� admin �

�� �� �� ��� ���� �� ���� SCCS ��� ����.

SCCS ��� � � ����� �� �� � 755� ���� ���, � �� ���� ��, �

�, �� �� �� � �� ��� �� ��� ��, �� �� ��� ���� ����. SCCS ��

��� �� �� ��(444)� ���� ���. � �� ��� ����, ���� �-SCCS ���� SCCS

��� �� � ���. �� ��� SCCS ��� ���� �� � ��, � ������ ���

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

admin ��� �� �� �� ��(z.Name)� ��� �� � ���� SCCS ��� ��� ���

���� ���.

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

��(�� ��) � ��� ��� �� ����. �� ��� -f ��� ��� ���� -d �

�� ��� ���� � ���. �� ��� get ���� �� g-��� ��� �����.

34 �� ���, � 1 �

Page 51: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-a User �� -a GroupID �� ���� ��� ���� ��� � ���� SCCS ��� �

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

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

� ��� ���� �� ����. ��� admin ����� � ��

� -a ��� �� � ���. �� � �� ���(SCCS) �

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

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

���� ���� � ��� � ��� ��� ��� ���. User

�� GroupID ��� �� !(� �)� ��, �� ���� ��

� � � � �� ��� �����. �� �, -a !User� �

����.-d HeaderFlag SCCS ����� �� �� ��� �� ���� �� ���.

�� SCCS ���� � ��� �� � ���. �� admin �

��� � ��� -d ��� �� �� ���. �� �� �

��� ��� �� �� �� ��� �� ����.-e User �� -e GroupID SCCS ��� ��� ��� ��� ��� ����� �� ���

� �����. �� ID� ���� �� � ��� ��� �� User

��� ���� �� ����. � �� -e ��� �� admin �

��� �� � ���.-f HeaderFlag[Value ] SCCS ��� ��� �� ��� �� ������. ���

admin ��� 2� ��� �� ��� �� � ���. 12��

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

� ��� �� ����. HeaderFlag � Value � � ��� �

� ����.-h SCCS �� ��� ����, �� ��� ���� SCCS �� � �

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

��� ����� ��� �� ��� ����. SCCS ��� ��

�� � �� �-SCCS ��� ���� ��� ��� � ���

� ��� ��� ��� ���� � � ��� ��� ���. -h

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

���� � ���. ��� ��� �� �� ��� ���� -z

��� ��� ���� �� ������. � �, �� -h �

�� ��� ��� ����� �������.-i[FileName ] FileName ��� � SCCS ��� �� ��� �����. �

��� ��� � �� �����. -i ��� ����� �� ��

� ���� admin ��� EOF ��� �� ��� �� ����

��� ����. -i ��� ���� ���� -n ��� ���

��, � ��� � �� � �� ���(SCCS) ��� ����.

admin ��� ��� ��� � � ��� ���� � �

���. admin ��� � � ���� � ��� �� � �� �

��(SCCS) ��� ��� ��, -n ��� ���� ��, �

� SSCS ��� �� ���. FileNmae �� ���� ���

��� 512� ��� � �� ���. �� ���� �� ��

�� ��(MBCS) ��� �� � ���. ��� FileName

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

�� ���(���) 35

Page 52: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-m ModificationRequestList �� ��� ��� ���� �� ��(MR) �� ���� SCCS

��� ���� �����. �(null) ��� , �� � ���

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

���. v �� ��� ����� ���. MR ��� v �� �

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

�����. admin ��� v �� ��� ���� ���� MR �

� �� ��� ��� ��� �����.-n �� � � SCCS ��� ����. -n ��� -i �� ��

�� �, SCCS ��� �� ��� ���� �� ���� ���

� �� ����.-r SID SCCS �� ���(SID) �� ��� ���� �����. SID

�� 4�� �, ���, �, �, ��(� : 3.2.5.1)� ���

����. ���� ���� admin ��� ���� � 1(���

�)� ����. ���� -r ��� ���� ��� � ��

� ��� 1, � 1( 1.1)� ���. SID ��� �� ��� ��

� get ��� ��� SID �� ��� ������.

-i �� -n ��� ��� ���� -r ��� �� � ���.

SCCS ��� � ��� � ��� �����.-t [FileName] FileName �� ��� ����� SCCS ��� �� ��� �

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

�� ���� ���. �� SCCS �� ��� �� ����.

v �� ��� ��� -t ��� SCCS� �� � �� �� �

�� �����.

v �� ��� �� -t ��� SCCS ��� �� � �� ��

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

v �� ���� �� �� �� ��(MBCS) ��� �� �

���.

��� FileNmae � ���� ��� �� ����.-y [Comment] ��� ��� delta ��� �� ���� �� ��� ����.

SCCS ��� � ��� � ��� �����. ��� ���

� ��� admin ��� � ��� �� ����.

date and time created YY/MM/DD HH:MM:SS by Login

�� ���� �� �� �� ��(MBCS) ��� �� � �

��. ��� FileNmae � ���� ��� �� ����.-z SCCS ��� ���� �� ��� SCCS ��� � �� �� �

����(-h �� ��).

��: ��� ���� admin ��� -z ��� �� ���

� ��� ��� ��� �� � ���. � ��� SCCS

��� �� �� ��� �-SCCS ��� ��� ���

���� �� � ���.File admin ���� ���� �� ��� ��� �����. -(��

��)� ����, admin ��� �� ���� ����. EOF ��

� ��� ����.

36 �� ���, � 1 �

Page 53: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ���

� ����� -f ��� ���� -d ��� ���� � � �� ��� �� ���. ��

��� get ���� �� g-��� ��� �����.

b get ��� -b ��� ��� � ��� � � �� ���.c Number Number �� get -e ��� �� � � �� �� ��� ��� ������. Number

�� 0�� �� 9999�� ��� ���. (� � �� 9999���.)d SID SID �� get ��� ���� � � ��� ����.f Number Number �� get -e ��� �� � � �� �� ��� ��� ������. Number

�� 0�� �� 9999�� ��� ���(� � �� 1���).i [String] get �� delta ��� �� ��� � �� ��� ��� ����.

There are no SCCS identification keywords in the file. (cm7)

� ��� �� �� ��� �� �����. SCCS ��� ����� ��� ���

SCCS �� ��� �� ��� � ��� �����(get �� ��). ���� ����

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

� ��� ����.j get ��� ��� ��� SCCS ��� ��� SID� �� � �� ���. j �� �

�� ���� �� ��� SCCS ��� ��� � � � � ���.lList ��� L List �� ��� ���� ���� ���� ��� get -e ��� ��� ���

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

<List> : : = <Range> | <List> , <Range><Range> : : = SID | a

���� �� a� �� � � SCCS ��� �� ���� ���� �� �� ���

�.m Module get ���� ��� SCCS �� ��� ���� �� %M% �� � Module ��

�����. � � Module �� s. ���� �� SCCS ��� �����. �� ���

MBCS(�� �� �� ��) ��� �� � ���.n � ���� ��� � � ��� ���� delta ��� �(null) ��� ���� ���.

�� �, �� 2.7 ��� �� 5.1� �� ��, ��� 3 � 4� �(null)� ���. ��

� 3 � 4� s. ��� �� ��� � �(null) �� ����� ����. �� �(null)

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

�� �� � �� ���(SCCS) ��� ���� ����.q Text get ���� ��� SCCS �� ��� � %Q% ��� �� ��� �� ��

��� �����

t Type get ���� ��� g-���� �� %Y% ��� ��� ��� �����.v [Program] �� �� ��� delta ��� MR(Modification Request) ��� ����� ���. Program

�� MR �� �� �� ���� �����. v ��� SCCS ��� ��� ���

� -m ��� �� �(null) ���� �� �� ���� ���. ��� ��� MBCS(�

� �� �� ��) ��� �� � ���.

��� SCCS �� ��

SCCS� �� ��� �� �� ��� ���, ����� ��� ��� ���� ���. � ���

��� ���, � ��, SCCS ��� ���� �� SCCS ��� ��� ��� �� � ��

�.

SCCS ��� ���� ��� ��� ��� �� ��, �� �� �� �����. ��� ���

���� ��� SCCS ��� -h �� -z ��� �� �� � ���� admin �����. -h ��

�� ���(���) 37

Page 54: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� admin ��� SCCS �� ��� ��� ���� ��� ���� ����� �����. -z ���

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

�� ��

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

0 ����� ��� ���.>0 ��� ������.

��

� ����� test.c�� �� ��� �� ��� ed� �� ���� ��� ��� �����.

1. �, ���� SCCS ��� �����. ��� s.test.c� �� � SCCS ��� ����, �

� �� ������.

$ admin -n s.test.c

admin ��� -n ��� �� ���� � SCCS ��� ����.

2. �� �� ��� SCCS ��� ����, �� �� ������.

$ admin -itest.c s.test.cThere are no SCCS identification keywords in the file (cm7)$ lss.test.c test.c

-i ��� ���� admin ��� ��� ����� �� 1.1� ����. �� �� 1.1� ���

�� �� ��� ��� �� � SCCS ��� ���� �� ����.

$ mv test.c back.c

�� There are no SCCS identification keywords in the file (cm7)� ��� ���� ��

��. ��� �� ��� �� � SCCS� � ��� ����. �� ��� ��� SCCS �

�� � � ���. ��� � ��� �, � , SID, �� ��� �� ��� � � ���.

�� ��� ��� ���� get ��� ������. �� ��� �� ��, SCCS� ��� �

����. ���, i �� ��� s. ��� ���� � ��, � ��� �� ��� ������.

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

SCCS ��� s.� ���� ��� �����. �� ����� �� ��� SCCS ��� ��� ��

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

��� ��� ���� ��� ��� admin ��� SCCS ��� 1.1��� SID� ������. SCCS

� ��� ���� � �� 0� ���� ����. ����, �� � ��� SID 1.0 �� 2.1.1.0�

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

3. ��� �� 3.1� test.c ��� �����, -r ��� admin ��� �� ��� �� �� �

�����.

$ admin -itest.c -r3 s.test.c

38 �� ���, � 1 �

Page 55: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

SCCS ��� � ��� �� ��� ID� �����, admin ��� -a ��� ��� SCCS �

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

� ���. ��� � ID� SCCS �� ��� �����. ���� ���� -a ��� ���,

�� ��� ID� SCCS ��� � � ���.

4. �� ��� ��� ID dan�� �����, �� �� ������.

$ admin -adan s.test.c

5. ����� SCCS ��� ��� ��� �� �����. �� � ��� SCCS ���� SCCS

������ -h ��� �� admin ��� �� �� ���� ����.

$ admin -h s.file1 s.file2 ...$ admin -h directory1 directory2 ...

admin ��� ��� ���� SCCS �� ��� ��� ���� �� �� ��� ���� �

��� �����.

ERROR [s. filename]:1255-057 The file is damaged. (co6)

��� ��� �� ��� �� ����� � ��� �����. ��� ��� ��, -z �� �

��� �� ��� �� admin ��� ������.

$ admin -z s.file1

��� ��� SCCS �� ��� � �� ���� �� �� ��� ��� �� �����

�����. �� � SCCS ���� ��� �� � ���.

��

/usr/bin/admin SCCS admin ��� �����.

�� ��

delta ��, ed ��, get ��, prs ��, sccshelp ��, what ��.

sccsfile �� ��.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� List of SCCS

Commands.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Source Code

Control System(SCCS) Overview.

�� ���(���) 39

Page 56: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

aixmibd ��

��

SNMP(Simple Network Management Protocol) �� 3 ����� �� ��� , AIX ����� ��

MIB(Management Information Base)� ��� �� �� ������� ���� ���� AIX ��

��� MIB � ������� �����.

��

aixmibd [ -f FileName ] [ -d Level ] [ -a Host ] [ -c Community ]

��

AIX ����� MIB � ������� AIX ����� �� MIB� ��� �� �� ����

��� ���� ���� aixmibd�� ����. ������� SNMP ��� ��� � AIX snmpd

�� ��� � SNMP-DPI API� �� ���� �����. ����� �� ����� �� �

� ��� �����(�� snmpinfo ��)� SNMP ���� ��� AIX MIB ����� ����

� �����.

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

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

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

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

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

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

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

� ���. �� �, /home �� ���� 95%� ���(��� �� ���)� ���� ����

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

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

�.

�: AIX ����� ������� SRC(System Resource Controller)� �� ����� ���. ��

�� aixmibd� ���� �� ���� ����.

���

-a Host ��� ��� ���� ����� ���.-c Community ��� ��� �����.

40 �� ���, � 1 �

Page 57: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-d Level ��/��� �� �����. � � �� 56���. ���

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

v 8 = DPI � 1

v 16 = DPI � 2

v 32 = �� � 1

v 64 = �� � 2

v 128 = �� � 3

�� �� �� ����� ��� ������.-f File � �� �� ��� ��� �����.

��

1. aixmibd ������� ��� �� ‘instrum’�� ‘host1’ ���� � SNMP ����� ����

� �� ������.

startsrc -s aixmibd -a "-a host1 -c instrum"

2. aixmibd ������� SRC� �� ���� ��� startsrc� �� �� � ���. � ���

� startsrc� �� aixmibd ������� ��� �, ������� nmsu ���� � SNMP

����� TCP� �� ‘public’��� � � ��� ���� �����.

startsrc -s aixmibd -a "-a nmsu"

��

/etc/aixmibd.conf aixmibd ������� �� ��� ��� �����./usr/samples/snmpd/aixmibd_security_readme /usr/samples/snmpd/aixmibd_security_readme�� � �� �

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

� /etc/aixmibd.conf� � �� ��� ���� ��� ���

��./usr/samples/snmpd/aixmibd.my aixmibd ������� �� MIB ��� �����.

�� ��

clsnmp ��, snmpinfo ��, SNMP �� 3 � snmpdv3, snmptrap ��.

aixterm ��

��

�� X-Windows �� �� ��� ������.

��

aixterm [ -ah ] [ -ar ] [ -autopush ] [ -b NumberPixels ] [ -bd Color ] [ -bg Color ] [

-bw NumberPixels ] [ -cc CharRange:Value [ ,... ] ] [ -cr Color ] [ -csd CharShape ] [ -cu ]

[ -C ] [ -display Name:Number ] [ -dw ] [ -f0 Font ] [ -f1 Font ] [ -f2 Font ] [ -f3 Font ]

�� ���(���) 41

Page 58: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

[ -f4 Font ] [ -f5 Font ] [ -f6 Font ] [ -f7 Font ] [ --f0 FontSet ] [ --f1 FontSet ] [

--f2 FontSet ] [ --f3 FontSet ] [ --f4 FontSet ] [ --f5 FontSet ] [ --f6 FontSet ] [ --f7 FontSet ]

[ -fb Font ] [ -fg Color ] [ -fi FontSet ] [ -fn Font ] [ -fs Font ] [ -fullcursor ] [

-geometry Geometry ] [ #geometry Geometry ] [ -help ] [ -i ] [ -ib File ] [ -im InputMethod ]

[ -j ] [ -keywords ] [ -lang Language ] [ -l ] [ -leftscroll ] [ -lf File ] [ -ls ] [ -mb ] [

-mc Number ] [ -ms Color ] [ -mn ] [ -n IconName ] [ -name Application ] [ -nb Number ]

[ -nobidi ] [ -nonulls ] [ -nss NumShape ] [ -orient Orientation ] [ -outline Color ] [

-po Number ] [ -ps ] [ -pt Preedit ] [ -reduced ] [ -rfb Font ] [ -rfi Font ] [ -rfn Font ]

[ -rfs Font ] [ -rf0 Font ] [ -rf1 Font ] [ -rf2 Font ] [ -rf3 Font ] [ -rf4 Font ] [ -rf5 Font ]

[ -rf6Font ] [ -rf7 Font ] [ --rf0 FontSet ] [ --rf1 FontSet ] [ --rf2 FontSet ] [ --rf3 FontSet ]

[ --rf4 FontSet ] [ --rf5 FontSet ] [ --rf6 FontSet ] [ --rf7 FontSet ] [ -rv ] [ -rw ] [ -s ]

[ -sb ] [ -sf ] [ -si ] [ -sk ] [ -sl NumberLines ] [ -sn ] [ -st ] [ -suppress ] [ -symmetric ]

[ -T Title ] [ -text TextType ] [ -ti ] [ -tm String ] [ -tn TerminalName ] [ -ut ] [ -v ] [

-vb ] [ -W ] [ -xrm String ] [ -132 ] [ -e Command ]

��

aixterm ��� �� X-Windows� �� ���� �� ���� �� �� �� ��� �����.

� ��� VT102 �� �� ��� ��(HFT)� �� ��� �����. VT102 �� -v ���

�� �����.

aixterm ��� ����� � �� � 16�� ���� �����.

aixterm ��� �� ��, �� �� � � �� �� ��� aixterm �� ��� ���� ���

� ��� �����.

�� ��� aixterm �� �(�: ��� )� ��� �� aixterm �� ���� ��� �� �

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

�.

aixterm ��� �� �� � �� � �� ���.

v ���

v � ���

v �� �

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

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

� �����.

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

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

42 �� ���, � 1 �

Page 59: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ���� �������. AIXwindows � ���(MWM) ��� ��, �� � ���� aixterm �

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

WINDOWID �� �� aixterm �� �� ID� �����.

aixterm ��� �� �, TERM �� �� TERM=aixterm��� ���.

���� ���� ��� TERM �� �� TERM �� �� �� ��� �� �� �����

(� �� �� ���� .profile� �� !� ��� �� ��).

rlogin, tn �� rsh ��� ��� � ��� ��� �, TERM �� �� aixterm�� ����

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

1. TERM=aixterm

2. export TERM

���� � ���� ��� �, ��(�� �, vi ��)� �� �� aixterm� ���� ��� �

�, �� ����� �� �� 1� ��� ������.

1. su

2. cd/tmp

3. mkdirXxxxx

4. cdXxxxx

5. ftpLocalSystemName

6. cd /usr/share/lib/terminfo

7. get ibm.ti

8. quit

9. TERMINFO=/tmp/Xxxxx

10. export TERMINFO

11. tic ibm.ti

12. ls

13. ls a

14. mkdir /usr/share/lib/terminfo/a

15. cp a/aixterm* /usr/share/lib/terminfo/a

16. cd /tmp

17. rm -r /tmp/Xxxxx

18. exit

19. �� ����� �� ������.

a. TERM=aixterm

b. export TERM

�� ���(���) 43

Page 60: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���/���� ��

aixterm ��� ���� ���� �� ��� ��� �����. � ���� �� �� ���/����

������ �� � ���. ��� �� ���� ���(ar_AA, Ar_AA, iw_IL �� Iw_IL)�

-lang ��� �� �����, ���� SMIT�� ��� �� ���� ���� ����� ���/

���� �� � � ���. �� � �� ��� ��� wsm system �� ��� ���� �� �

� ���� � � ���.

���/���� �� ��� �� �� ��� �����. ��� �, ���, ���� ��� ��

�� �� � ���. ���/���� ��� �� �� �� � � � ���.

v �� ��

v �� �

v �� �

v �� ��

v � ���

�� ��: ���/���� �� �� ��� ‘��� ��’ �� ‘��� ��’���. �� �� .Xdefaults

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

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

���.

��� ��: ���/���� �� �� �� 2�� �� �� � �� ��� �����.

v �� �

v �� �

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

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

�� ��: ���/���� �� ��� �� ���� ���� ��� ��� �����. ��� �

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

v ��

v ��

v �

v �

v

���/����� �� ��� �� �� � �� ���. �� � � �� ��� ��� AIX

5L Version 5.2 National Language Support Guide and Reference� ″Character shaping″� �����

�.

44 �� ���, � 1 �

Page 61: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �: ��� ���� ��, �� �� �� �� ��� �� �� � ���. ��� ��

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

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

�� ���: ���/���� �� �� � ���� ��� �� � � � ��� � ���. �

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

� � ��

E �

N ��

SCR-> ‘��� ��’ �� ��

<-SCR ‘���� �’ �� ��

alef �� � �

blank �� ��� � �

ghain �� ���� � �� ��

I ��� �� �

V �� �� �

U �� ��

A ���� ��

H �� ��

P �� �� ���

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

���/���� ���� �� �� �� ��� ���� � � ���.

� ��

Alt + Enter �� ��� ��� ���.Alt + �� Shift ���/���� �� ��� �� � ���.Alt + �� Shift � �� ��� �� � ���.

��� � ��:

Alt + Kpd* � ��� �����.

�� � ��:

Alt + Kpd 1 ��� � ���� ����.Alt + Kpd 2 ��� �� ���� ����.Alt + Kpd 3 ��� �� ��� ���� ����.Alt + Kpd 4 ��� �� ���� ����. (��� ���� ���.)Alt + Kpd 7 ��� � ���� ����.Alt + Kpd 8 ��� ���� ����.Shift + Kpd / � �(�/� �)� �����.Alt + Kpd / �� � ��� �����.

�� � ��, �/� � ��, �� ���/���� �� �� �� ��� ��� telnet, tn ��

tn3270 ��� ������.

�� ���(���) 45

Page 62: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

aixterm �� �� ��� �� ��

�� aixterm ���� ���� ���� ��� ������.

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

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

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

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

Xv VT100 ��� ���� aixterm ��� ���.

Xh HFT ��� ���� aixterm ��� ���.

H HFT ��� ��!�� �� � .

V VT100 ��� ��!�� �� � .

Name �� ��� ��� ����

��- �� ��

BEL � 0x07 Xv, Xh, H, V

BS ����� 0x08 Xv, Xh, H, V

HT �� � 0x09 Xv, Xh, H, V

LF � �� 0x0A Xv, Xh, H, V

VT �� � 0x0B Xv, Xh, H, V

FF �� �� 0x0C Xv, Xh, H, V

CR ��� ��(CR) 0x0D Xv, Xh, H, V

SO �� ��(Shift out) 0x0E Xv, Xh, H, V

SI �� �(Shift in) 0x0F Xv, Xh, H, V

DC1 �� �� 1 0x11 H, V

DC3 �� �� 3 0x13 H, V

CAN �� 0x18 H, V

SUB ��(��� ��) 0x1A H, V

ESC ����(Escape) 0x1B Xv, Xh, H, V

SS4 �� Shift 4 0x1C H

SS3 �� Shift 3 0x1D H

SS2 �� Shift 2 0x1E H

SS1 �� Shift 1 0x1F H

cbt �� � �(cursor back tab) ESC [ Pn Z Xv, Xh, H

cha �� �� �� ESC [ Pn G Xv, Xh, H

cht �� � �� ESC [ Pn I H

ctc � �� �� �� ESC [ Pn W H

cnl � � �� ESC [ Pn E H

cpl � � �� ESC [ Pn F Xv, Xh, H

cpr � �� �� ESC [ Pl; Pc R Xv, Xh, H, V

46 �� ���, � 1 �

Page 63: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cub ��� �� ESC [ Pn D Xv, Xh, H, V

cud �� �� ESC [ Pn B Xv, Xh, H, V

cuf ��� �� ESC [ Pn C Xv, Xh, H, V

cup �� � ESC [ Pl; Pc H Xv, Xh, H, V

cuu �� �� ESC [ Pn A Xv, Xh, H, V

cvt �� � �� ESC [ Pn Y H

da1 �� �

��(���� vt100) ESC [ c Xv, Xh, V

��(���� vt100) ESC [ 0 c Xv, Xh, V

��(vt100 � ���) ESC [ ? 1 ; 2 c Xv, Xh, V

dch �� � ESC [ Pn P Xv, Xh, H

decaln �� �� �� �� ESC # 8 Xv, Xh, V

deckpam � � ����� � ESC = Xv, V

deckpnm � � �� � ESC > Xv, V

decrc �� �� & � ESC 8 Xv, Xh, V

decsc �� �� & � ESC 7 Xv, Xh, V

decstbm �� & �� � �� ESC [ Pt; Pb r Xv, Xh, V

dl � � ESC [ Pn M Xv, Xh, H

dsr �� � �� ESC [ Ps n

vt100� �� 0: �� Xv, Xh, V

���� �� 5: � � ������. Xv, Xh, V

���� �� 6: �� �� �� ������. Xv, Xh, H, V

�� ���� ���� �� 13�� �� ��� H

dmi �� �� ��� ESC `(� �� ��) H

emi �� �� �� ESC b H

ea � ��� ESC [ Ps O

0 � ��� ��� Xv, Xh, H

1 � ���� ��� Xv, Xh, H

2 �� � ��� Xv, Xh, H

ed �� �� ��� ESC [ Ps J

0 �� �� ��� ��� Xv, Xh, H, V

1 �� �� ���� ��� Xv, Xh, H, V

2 �� �� �� ��� Xv, Xh, H, V

ef � -e, s, �� ��� ESC [ Ps N

0 � ��� ��� Xv, Xh, H

1 � ���� ��� Xv, Xh, H

2 �� � ��� Xv, Xh, H

el � ��� ESC [ Ps K

0 � ��� ��� Xv, Xh, H, V

1 � ���� ��� Xv, Xh, H, V

2 �� � ��� Xv, Xh, H, V

ech �� �� ESC [ Pn X Xv, Xh, H

�� ���(���) 47

Page 64: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

hts �� � �� ESC H Xv, Xh, H, V

hvp �� � �� � ESC [ Pl; Pc f Xv, Xh, H, V

ich �� � ESC [ Pn @ Xv, Xh, H

il � � ESC [ Pn L Xv, Xh, H

ind �� ESC D Xv, Xh, H, V

ls2 Shift G2� �� ESC n Xv

ls3 Shift G3� �� ESC o Xv

nel � � ESC E Xv, Xh, H, V

ksi �� � �� ESC [ Ps p H

pfk PF � �� ESC [ Pn q Xh, H

rcp �� � �� ESC [ u Xv, Xh, H

ri � �� ESC M Xv, Xh, H, V

ris �� � � ��� ESC c Xv, Xh, H, V

rm ��� �, ANSI �� �: � � �� � ″

� ��″� ������.

ESC [ Ps;...;Ps

��� �, �� �� �, XTERM �� �: �

� �� � ″� ��″� ������.

ESC [ ? Ps;...;Ps l

�� �, �� �� �, XTERM �� �: �

� �� � ″� ��″� ������.

ESC [ ? P;...;Ps r

�� �, �� �� �, XTERM �� �: �

� �� � ″� ��″� ������.

ESC [ ? Ps;...;Ps s

sapv �� �� �� ����. ESC [Ps1;...Psn] Xh

0 BIDI� �� � � � ��

1 ���� �� � ��

2 �� �� � ��

3 �� ��� �� �� �� � ��

5 � � ��� �� ��(���� ��� �

�)�� �����.

6 � � ��� �� ��(���� ��� �

�)�� �����.

7 � � ��� � ��(���� ��� �

�)�� �����.

8 � � ��� ��(���� ��� �

�)�� �����.

13 �� � �� �����.

14 �� � �� �����.

15 �� �� ������.

18 �� ���(��)

19 �� ���(��� ��� �� �)

20 ���� ��(���)

21 �� 5, 6, 7, 8

22 �� ��

23 �-�(nonull) � ��

48 �� ���, � 1 �

Page 65: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

24 �-�(nonull) � ��

5-8 �� 21�� 22� �� ���� �� ��, �

���� �� ���.

scp �� � �� ESC [ s Xv, Xh, H

scs �� ��� ����.

� ESC ( A (GO) Xv, V

ESC ) A (G1) Xv, V

ESC * A (G2) Xv, V

ESC + A (G3) Xv, V

ASCII �� (USASCII) ESC ( B (G0) Xv, V

ESC ) B (G1) Xv, V

ESC * B (G2) Xv, V

ESC + B (G3) Xv, V

�� � ESC ( 0 (G0) Xv, V

ESC ) 0 (G1) Xv, V

ESC * 0 (G2) Xv, V

ESC + 0 (G3) Xv, V

sd �� ������. ESC [ Pn T H

sl ���� ������. ESC [ Pn Sp @ H

spd �� ��� ����. ESC [Ps1;1 S Xh

0 ��� ��� �� ��, � ��� ���

��.

1 ��� ��� �� ��, �� ��� ���

��.

sr ���� ������. ESC [ Pn Sp A H

srs ��� � ���� ����. ESC [Ps[ Xh

0 ��� ����.

1 ��� �����.

ss2 �� Shift G2 � ESC N Xv

ss3 �� Shift G3 � ESC O Xv

su � ������. ESC [ Pn S Xv, Xh, H

sgr � ��� �����. ESC [ Ps m

0 �� Xv, Xh, H, V

1 ��� Xv, Xh, H, V

4 �� �� Xv, Xh, H, V

5 ���(���� ���) Xv, Xh, H, V

7 � Xv, Xh, H, V

8 ��� �. Xh, H

10..17 �� Xh, H

30..37 ��� Xh, H

40..47 ��� Xh, H

90..97 ��� Xh, H

�� ���(���) 49

Page 66: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

100..107 ��� Xh, H

sg0a GO �� ��� �����. ESC ( < Xh, H

sg1a G1 �� ��� �����. ESC ) < Xh, H

sm �� �����.

ANSI �� � ESC [ Ps;...;Ps h

4 IRM � � Xv, Xh, H

12 SRM �/� � H

18 TSM � �� � H

20 LNM � ��/� �� Xv, Xh, H, V

�� �� � ESC [ ? Ps;...;Ps h

1 ��/�� �� Xv, V

3 80/132 � Xv, Xh, V

4 ��� ���/ ��� Xv, Xh, V

5 �� /�� � Xv, Xh, V

6 � /�� Xv, Xh, V

7 �� � �/�� Xv, Xh, H, V

8 �� �� �/�� Xv, Xh, V

21 CNM CR-NL H

XTERM �� �

40 132/80 � � Xv, Xh

41 curses(5) �� Xv, Xh

42 ��� ���/�� Xv, Xh

43 ��� �� �� �/�� Xv, Xh

44 � �� � �/�� Xv, Xh

45 ��� ��� �/�� Xv, Xh

47 ��/�� �� �� Xv, Xh

48 �/�� � ��� Xv, Xh

49 ���/�� ��� � Xv, Xh

tbc �� ��� ESC [ Ps g (� � Ps =0)

0 �� �� ��� �� � �� ��� Xv, Xh, H, V

1 ��� ���� �� � �� � H

2 �� �� � H

3 �� �� � Xv, Xh, H, V

4 �� �� � H

VTD �� �� ��� ESC [ x Xv, Xh, H

VTL �� �� ��� ��� ESC [ y Xh, H

VTR vt �� �� �� ESC [ w Xh, H

vts �� � �� ESC I H

xes � ��� ��� ESC [ ? E Xv, Xh

xrs � ������ �� ESC [ ? F Xv, Xh

xhs � ��� ��� ESC [ ? H Xv, Xh

xss � ��� �� ESC [ ? S Xv, Xh

50 �� ���, � 1 �

Page 67: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

xgs � ���� �� �� ESC [ ? Ps T Xv, Xh

xst �� ��� �� ESC ] Ps ; Pt \007 Xv, Xh

0 � ��� ��� Pt� � Xv, Xh

1 ��� ��� �� Xv, Xh

2 ��� �� Xv, Xh

ESC-P� ESC\ ��� � �� �� �����.

aixterm� �� ESC\ ��� �����.

ESC-P...ESC\ Xv, Xh

��, ��� � �� ��

�� �� � �, aixterm ��� ���� ��� ��� ��, � �� � ��� �� ���

��� �� ��� � �� �� � ���. � �� ��� HFT� VT102 �� ���� ��

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

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

Copy ��� �� ��� ��� ��� ���� � �����. aixterm ���� ��� ��� � �

�, ��� ��� �� ����. ��� �� � � �� �"� ��� � ��� ���� ���

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

PRIMARY �� ���.

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

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

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

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

� ��� � � ���.

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

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

��� aixterm ���� �� ����� ���, � �� �� ����, �� �� �� ����

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

� �� � ��� "���.Paste � �� � �� �� ��(�� � �� � ����� �� �) PRIMARY � �� ���

� ��� � ��� ��� ��� � �� �� ��(� ��)��, �� ���� ����.Re-execute Shift �� �� ��� �� �� ��� ��(�� ���� )��� �� ��� � � ��(�

� � ��) ����, ��� �� ��� ���� �� � �� ���� ��� ��� ����.

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

�� � �� ��� ���, aixterm ��� � ��� �� ��� ����.

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

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

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

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

��� �� ��� � ��� �� ��� ��! �����.

�� ���(���) 51

Page 68: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ���

aixterm ���� � ��� � �� ���.

v ��

v �

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

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

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

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

��� ��� �� �� � Ctrl �� �� ��� �� ��� �� �� �� ����. ���

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

� �� �� �� �� �� � �� �� �����. � ��� Ctrl �� �� ���

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

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

���� �����. �� ��� ��� ��� ��� �� 8�� ��� �����, aixterm ��� �

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

�� ��� � � ��� ��(CR), �� �, �� ��� �� � ��� ��(CR)� �����. ����

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

��� �

aixterm ��� ��� ��� ���� ��� ��� �� �� ��� � ��� ���� �

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

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

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

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

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

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

�� �� Shift �� Ctrl �� �����. �� �� �� ��� �� 1� �� � �� ������.

Shift �� �� ��� 1� �� ���� �� �� � �� ������. Ctrl �� �� ���

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

�� ���

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

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

��� ���� �� �� � ���� ���� �), charClass(�� CharClass) ��� ���

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

52 �� ���, � 1 �

Page 69: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

charClass ��� CharRange:Value �� ������. � � � � � 0-127� ��� �� ����

� �� ���� � ��� �����, �� ��� ASCII �� ����. � � ���� ���

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

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

static int charClass[128] = {

/* NUL SOH STX ETX EOT ENQ ACK BEL */

32, 1, 1, 1, 1, 1, 1, 1,

/* BS HT NL VT NP CR SO SI */

1, 32, 1, 1, 1, 1, 1, 1,

/* DLE DC1 DC2 DC3 DC4 NAK SYN ETB */

1, 1, 1, 1, 1, 1, 1, 1,

/* CAN EM SUB ESC FS GS RS US */

1, 1, 1, 1, 1, 1, 1, 1,

/* SP ! " # $ % & ’ */

32, 33, 34, 35, 36, 37, 38, 39,

/* ( ) * + , - . / */

40, 41, 42, 43, 44, 45, 46, 47,

/* 0 1 2 3 4 5 6 7 */

48, 48, 48, 48, 48, 48, 48, 48,

/* 8 9 : ; < = > ? */

48, 48, 58, 59, 60, 61, 62, 63,

/* @ A B C D E F G */

64, 48, 48, 48, 48, 48, 48, 48,

/* H I J K L M N O */

48, 48, 48, 48, 48, 48, 48, 48,

/* P Q R S T U V W */

48, 48, 48, 48, 48, 48, 48, 48,

/* X Y Z [ \ ] ^ _ */

48, 48, 48, 91, 92, 93, 94, 48,

/* ` a b c d e f g */

96, 48, 48, 48, 48, 48, 48, 48,

/* h i j k l m n o */

48, 48, 48, 48, 48, 48, 48, 48,

/* p q r s t u v w */

48, 48, 48, 48, 48, 48, 48, 48,

�� ���(���) 53

Page 70: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/* x y z { | } ~ DEL */

48, 48, 48, 123, 124, 125, 126, 1};

�� �, ��� ″33:48,37:48,45-47:48,64:48″� !(� �), %(��� ��), -(��), .(���), /(�

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

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

� ��

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

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

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

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

keysym� ��� ASCII �� �� �� ��!� ��

��.)string(String) �� ��� ��� �� �����. ��� ��� �

� ��!� ����. ���� �� ��� ��� �� �

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

″0x″ ��� ���� 16� �� ��� ���� � ��

� ����� �����.keymap(Name) � � ��� ���� ���� � ���� ��� �

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

�� Keymap� Name� ��� �� � ���. �� �

� None� �� � ��(� � �� ��� ���

���� �)� �����. ��� � ���� �����.insert-selection(Name[,Name]...)

� �(�� ��) �� � � � �� ��� �� �

�!� ����. Name ���� PRIMARY ��

SECONDARY� �� �� �����. ��� � ���

� �����.

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

*aixterm.Translations: #override <Key>F13: keymap(dbx)*aixterm.dbxKeymap.translations:\<Key>F14: keymap(None) \n\<Key>F17: string("next") string(0x0d) \n\<Key>F18: string("step") string(0x0d) \n\<Key>F19: string("continue") string(0x0d) \n\<Key>F20: string("print") insert-selection(PRIMARY)

� � �� ���

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

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

mode-menu() �� �� �� 2� � � � ��� �����.select-start() ��� �� ��� ���� �� ��� ��� ����

�.select-extend() ��� ��� ��� �� �� �����.

54 �� ���, � 1 �

Page 71: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

start-extend() �� ����(��)�� �� �� ��� �����.select-end(Name[,Name]...)

�� �� ����. Name ���� ��� �� � �

����. aixterm ��� ��� ��� �� ��� ���� �

����. ��� � ���� �����.ignore() �� � ���� � �� ����.bell([Volume ]) �� �� ��� ��� �� � �� �� ����.

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

static char defaultTranslations =" <KeyPress>: insert() \n\~Shift Ctrl ~Meta <Btn1Down>: mode-menu(options) \n\~Shift Ctrl ~Meta <Btn2Down>: mode-menu() \n\~Shift Ctrl ~Meta <Btn3Down>: mode-menu(modes) \n\~Shift ~Ctrl ~Meta <Btn1Down>: select-start() \n\~Shift ~Ctrl ~Meta <Btn1Motion>: select-extend() \n\~Shift ~Ctrl ~Meta <Btn1Up>: select-end(PRIMARY)\n\~Shift ~Ctrl ~Meta <Btn2Down>: ignore() \n\~Shift ~Ctrl ~Meta <Btn2Up>: insert-selection(PRIMARY)\n\~Shift ~Ctrl ~Meta <Btn3Down>: start-extend() \n\~Shift ~Ctrl ~Meta <Btn3Motion>: select-extend() \n\~Shift ~Ctrl ~Meta <Btn3Up>: select-end(PRIMARY)\n\Shift ~Ctrl ~Meta <Btn1Down>: reexecute() \n\Shift ~Ctrl ~Meta <Btn1Motion>: select-extend() \n\Shift ~Ctrl ~Meta <Btn1Up>: select-end(PRIMARY)\n\Shift ~Ctrl ~Meta <Btn2Down>: select-start() \n\Shift ~Ctrl ~Meta <Btn2Motion>: select-extend() \n\Shift ~Ctrl ~Meta <Btn2Up>: select-end(PRIMARY)\n\Shift ~Ctrl ~Meta <Btn3Down>: ignore() \n\Shift ~Ctrl ~Meta <Btn3Up>: insert-selection(PRIMARY)\n\Shift Ctrl ~Meta <BtnDown>: size(toggle) \n\Shift Ctrl ~Meta <BtnUp>: ignore() \n\

<BtnDown>: bell(0) \n\<BtnUp>: bell(0) \n\

";

aixterm �� ���(I18N)X �� ��� � �� ��� ��(� � �� X ��� � �� ��� ��) aixterm� ��

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

1. X ��� � ��� ����.

xmodmap /usr/lpp/X11/defaults/xmodmap/Fr_FR/keyboard

2. � � ��� ��� ��� �� �� Fr_FR� �����.

v For Korn shells:export LANG=Fr_FR

v For C shells:setenv LANG Fr_FR

v For Bourne shells:LANG=Fr_FR; export LANG

3. �� �� aixterm �� �� ��� �����.

aixterm &

4. X �� �� ��� � ��� ������.

�� ���(���) 55

Page 72: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

xmodmap /usr/lpp/X11/defaults/xmodmap/Gr_SW/keyboard

aixterm ���� aixterm� ���� � X ��� ���� � �� ��� �� �����. � ��

�� KeymapNotify� �����.

aixterm ��� �� ��� ��� X ��� keysyms� �� �� �� �� ��� ��� �� ��

�� ���� ��� � ��� ����. �� ��� /usr/lib/nls/loc�� �� �� ��� ���

, X keysyms� �� ��� ��� � ��� � �� ���� ��� ���� ���� ���

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

[email protected]� ���, ��� [email protected]���. � �� ��� ��

� ���� ���� ��� locale.imkeymap and locale.codeset.imkeymap� ����. �� �, �

� ����.

� �� IBM-850� � � En_US.IBM-850.imkeymap� �� ISO8859-1� � � � en_US.ISO8859-1.imkeymap� �� ISO8859-9� ��� tr_TR.ISO8859-9.imkeymap� �� IBM-932� ��� Ja_JP.IBM-932.imkeymap� �� IBM-943� ��� Ja_JP.IBM-943.imkeymap� �� EUC(JP)� � ��� ja_JP.IBM-eucJP.imkeymap

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

v � SMIT �� ��:smit mle_sel_menu� �����, � �� ��� ���� ��� wsm ��

� �� ��� ���� �� �� ���� �� ���� � � ���. LANG �� ��

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

v SMIT ��� �� �� ��� �� ��� � � ���. ��� ��, �� �� ��,

�� ���� � �� � � �� � �� ��� ��� wsm system �� �� �� � �� �

� ��� �.

v � ��� ���(LC_ALL, LANG �� �)� �� �����.

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

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

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

Keysyms� �����.

v �� �(��� �)� �� ��� X �� ��� �� ����. �� ���� X �� ��� ��

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

v �� ��� � ��� ���, �� ��, �� ��� ����. ���� �� �� ����

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

��� �� � ���.

v �� ��� ���, �� ��, �� ��� �� ����. ��� �� ��� ��� �� ���

�� � ���. aixterm� ���(LC_ALL, LANG �� �)� ���, aixterm� ���� �

��� ��� ����. �� ���� � ��� aixterm� � ��� ���, ��� ��(��

� ��)� �� � ���.

56 �� ���, � 1 �

Page 73: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v X �� ��� ��� �� ��� �� ����. Xinit� X �� ��� ��� ��� ��

��� ����. ��� xmodmap� ��� ����. X �� �� � �� Keysyms� ����

�.

aixterm�� ��� ���

ASCII �� 32(0x20)�� 126(0x7e)� �� � ��� ���� �� � ���. 0(0x00)�� 31(0x1f)

��( ��)� �� ���� �� � �� ��� �����. 127(0x7f)�� 255(0xff)� � ��� �

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

� ���. �� �, �� ��( ��)� � � vtsingle ��� ��� aixterm vt100 ���

�� �����. � ��� ���� ��, � ��� � �� � ���. � ��� IBM-850

����� �� �� � ISO8859-1 ��� �����. �� ��( ��)� ���� �� ��� �

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

��� ��� ���

� �� � �� ���, ��� ��� � ��� aixterm ��� �����.

scr-rev() �� ��� ��� ��� �� ��� � ��� � � ��� �����.ltr-lang() � �� ��� �� � ���.rtl-lang() ���/���� �� ��� �� � ���.col-mod() � ��� ��� ��� �� �� �����.auto-push() �� � ��� �����. � ��� ���� � � ��� � ��� ���� ���

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

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

�� ���� ���� ��� ���.chg-push() � �� �����. � �� ��� � �� � �� ��� ��� �� �� �

��� ���.shp-in() �� ��� � �� � � ����.shp-is() �� ��� � �� � � ����.shp-p() �� ��� ��� �� � � ����.shp-asd() �� ��� ���� �� � � ����.shp-m() �� ��� � �� � � ����.shp-f() �� ��� �� � � ����.

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

~Shift ~Ctrl Mod1 <Key>Return: scr-rev() \n\~Shift ~Ctrl Mod2 <Key>Return: scr-rev() \n\~Shift ~Ctrl Mod1 <Key>Shift_L: ltr-lang() \n\~Shift ~Ctrl Mod2 <Key>Shift_L: ltr-lang() \n\~Shift ~Ctrl Mod1 <Key>Shift_R: rtl-lang() \n\~Shift ~Ctrl Mod2 <Key>Shift_R: rtl-lang() \n\~Shift ~Ctrl Mod1 <Key>KP_Multiply: col-mod() \n\~Shift ~Ctrl Mod2 <Key>KP_Multiply: col-mod() \n\~Shift ~Ctrl Mod1 <Key>KP_Divide: auto-push() \n\~Shift ~Ctrl Mod2 <Key>KP_Divide: auto-push() \n\~Shift ~Ctrl ~Meta <Key>KP_Divide: chg-push() \n\~Shift ~Ctrl Mod1 <Key>KP_1: shp-in() \n\~Shift ~Ctrl Mod2 <Key>KP_2: shp-in() \n\~Shift ~Ctrl Mod1 <Key>KP_1: shp-is() \n\~Shift ~Ctrl Mod1 <Key>KP_2: shp-is() \n\~Shift ~Ctrl Mod1 <Key>KP_3: shp-p() \n\

�� ���(���) 57

Page 74: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

~Shift ~Ctrl Mod2 <Key>KP_3: shp-p() \n\~Shift ~Ctrl Mod1 <Key>KP_4: shp-asd() \n\~Shift ~Ctrl Mod2 <Key>KP_4: shp-asd() \n\~Shift ~Ctrl Mod1 <Key>KP_7: shp-m() \n\~Shift ~Ctrl Mod2 <Key>KP_7: shp-m() \n\~Shift ~Ctrl Mod1 <Key>KP_8: shp-f() \n\~Shift ~Ctrl Mod2 <Key>KP_8: shp-f() \n\

.Xdefaults ���� ��� �� � � ���. �� �, Ctrl+Shift� ��� �� ��� ��

��, .Xdefaults ���� � �� ���� ���.

Translations: Ctrl<Key>Shift_R: rtl-lang() \n\Ctrl<Key>Shift_L: ltr-lang()

���

��� -(�� ��)� +(��� ��)� ��� ���� ����. �� �� ��� ��� .Xdefaults

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

-ah ��� ��� ���� ���.-ar aixterm� �� �! �� �����. � �� ���� �� ��� ��

� �� � �� ���� ����(.Xdefaults �� autoRaiseDelay� �

�� �� � ��). � �� off���.

� ��� �� ��� � � ���.- autopush �� �� ��� �� �� � ��� �� � ���.-b NumberPixels �� ��� �� �� �����. �� ��� ��� �� ����� � �

��� ��� �����. � �� 2���.-bd Color �� �� ���� �� ��� ��� ��� �����. � �� �����

�.-bg Color �� �� ���� � ���� �����. � �� �����.-bw NumberPixels �� � ��� �� �����. � �� 2 ����. �� � ���� �

��� ��� � ���.-C �� ��� � ���.-ccCharRange:Value,... ��� ��� �� ��� ����. �� �, ��� -cc 48-52:3� ��

01234� 1��� ��, 56789� � ��� ����. :3� �� �� 3��

�� �����. �� ��� ���� � �� � �����.-cr Color �� �� ���� �� ��� ��� ����. � �� ������.

58 �� ���, � 1 �

Page 75: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-csd CharShape ����� ��� � � � � �����. CharShape �� � �� �

��� � ���.

automatic

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

passthru

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

�.

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

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

middle

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

final ��� ��� �����(�� ���� ��).-cu �� �� ������ ��� �� �� ����� ���. � �� off�

��.

� ��� � ��� � � ���.-display Name:Number aixterm ��� �� X �� ��� ��� ��� �����. � ��,

aixterm� DISPLAY �� ��� ��� �� � �� ��� �����.-dw aixterm ��� �� �� �, ��� ��� aixterm �� ��� ��

��(warp)����. � �� off���.-e Command ��� �� ��� �����. � ��� ��� �����. �� ����

����. � ��� ����, �� � ��(� ��)� aixterm ���� �

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

� ��� ��� aixterm ��� ����.-f0 Font ���� � � �� ��� �����. �� �� ���� 0 �� � �

� ��� �����. � ��� -fn ��� �����. �� �, ���

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

aixterm -f0 rom11-f1 Font �� ���� � 1� � �� ��� �����. � ��� -fb ��

� �����.-f2 Font �� ���� � 2� � �� ��� �����. � ��� -fi ��

� �����.-f3 Font �� ���� � 3� � �� ��� �����.-f4 Font �� ���� � 4� � �� ��� �����.-f5 Font �� ���� � 5� � �� ��� �����.-f6 Font �� ���� � 6� � �� ��� �����.-f7 Font �� ���� � 7� � �� ��� �����.--f0 FontSet �� ���� � 0� � �� ��� �����. � ��� -fn ��

� �����.--f1 FontSet �� ���� � 1� � �� �� ��� �����. � ��� -fb

��� �����.--f2 FontSet �� ���� � 2� � �� �� ��� �����. � ��� -fi �

�� �����.--f3 FontSet �� ���� 3 �� � �� �� ��� �����.--f4 FontSet �� ���� 4 �� � �� �� ��� �����.--f5 FontSet �� ���� 5 �� � �� �� ��� �����.--f6 FontSet �� ���� 6 �� � �� �� ��� �����.--f7 FontSet �� ���� 7 �� � �� �� ��� �����.

�� ���(���) 59

Page 76: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-fb Font �� ��� �� ��� �����. � ��� �� ��� ��� �� ���

���.-fi FontSet ��� �� ��� �����.-fg Color �� �� ���� ��� ���� ����. � �� ������.-fn Font �� � �� �� ��� ��� �����. �� ��� �� ��� ��

� ���. HFT �� ���� �� ��� � � �� Rom14.500��, �

� ��� � � �� Rom10.500���. VT102 �� ����, � ��

vtsingle���. �� ���� �� ��� �����, aixterm.Fontset FontSet

� ������.-fs Font �� � �� ��� �����.-fullcursor � � �� �� �� � � � ��� �����.-geometry Geometry �� � � ��� �����. � � �� 80x25+0+0���. �� � ���

(�� �, mwm ��)� � � � �� !�� � ���.#geometryGeometry ��� �� �� �����. �� ��� ���� � ��, �����. �

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

�� !�� � ���.

�: � �� sh(�) ��� ��� �� ��� ″ ″(�� �� ��)�

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

�����.-help �� �� �� ��� �����.-i �� �"� � �� ��� ��� �� �����. � �� �����.

�: � ��� � ���� �� �� ��� ��� ����.-ib File � � ��� �� � ��� ��� ��� ���� � ��� ���

�� ��� �����. ��� ��� /usr/include/X11/bitmaps ���

���� �� ��� ��� � � ���.-im InputMethod aixterm ���� �� �� ��� ���� ��� ���� �����.-j � �� ��� � ����� � ��, aixterm ��� � �� � �

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

� ��� � ��� � � ���.-keywords .Xdefaults ��� �����.-lang Language aixterm �� ��� �� ��� �����. ��� setlocale ���� ��

�� ��� ��� �� ����.-l aixterm ��� �� ��� logfile �� �� ����� ���. � �� �

����.

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

� ��� .Xdefaults ���� LogInhibit� ����� ����.-leftscroll �� � ��� � ��� ���. � �� �� �� � �� ���.-lf File � � AixtermLog.XXXXXX �� �, ��� ��� ��� �����.

�� XXXXXX� aixterm ��� ��� ID���. � ��� aixterm ��

� ��� ����� ����, ��� aixterm ��� ����� ��

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

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

� ��� ����� ��� � -l ��� ��� ����� ���.-ls aixterm �� ��� ���� �� ��� �� ��� ���. ���� .login

�� .profile ��� ��, �� ����� �� ����� ���. � �

� �����.-mb � � � �� ���. � �� �����.

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

60 �� ���, � 1 �

Page 77: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-mc Number � � �� � � ����. ��� ���� � �� � ���� ��

���.-mn XMappingNotify ���� �����. -mn ��� � ����.-ms Color �� �� ���� ��� ��� ��� ����. � �� ������.-n IconName aixterm ���� �� ��� ��� �����.-name Application .Xdefaults ��� �� ����� ��� �����.-nb Number � �� ��� � � � ��� �����. � �� �� � � ���

���� 10� �����.-nobidi �� ��� �� �����/���� ��� �� � ��� �����/��

�� ���� �����.- nonulls Nonulls �� ��� �� �� � �(null)� � � ��� ����

�.-nss NumShape �� � � � � �����. NumShape �� � �� � ��� �

���.

bilingual

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

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

�����.

hindi ��� ��� �����.

arabic ���� ��� �����.

passthru

���� ��� ���� ��� �����.- orient Orientation � � �� ��� �����. ��� � �� � �����.

LTR ‘��� ��’ �� ��

RTL ‘���� �’ �� ��

-outline Color �� �� ���� �� �(Keisen)� ��� ����. � �� �����

�.

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

� �� ��� ���� ��� �� ��� � ���.-po Number �� ��� � ��� ���� �� � ���� ��� � ��� ����

�. � �� 1����.-ps ��� ��� �� ���.

�� ��� �� ��� �, aixterm ��� �� �� ���� �� ���

� �� ��� � �� ���� ����. Enter �� �� 1�� ��

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

� �� �����.-pt Preedit �� �� �� �� ��� �����. �� �� ��� �� ����.

over �� �� �� �� � ��� �����.

off �� �� �� � �� �� � ��� ��� ���.

root �� � �� ��� � ��� ����.

none �� ��� �� �� �� ��� �����.-reduced aixterm ��� ��� ��� ����� ���.-rfb Font �� ��� �� ��� �����. � ��� �� �� ��� �� ���

�� ���� ���.

�� ���(���) 61

Page 78: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-rfi Font �� ��� �� ��� �����. � ��� �� �� ��� �� ���

�� ���� ���.-rfn Font �� �� �� ��� �����.-rfs Font �� �� � �� ��� �����.-rf0 Font �� ���� � 0� � �� �� ��� �����. � ��� -rfn

��� �����.-rf1 Font �� ���� � 1� � �� �� ��� �����. � ��� -rfb

��� �����.-rf2 Font �� ���� � 2� � �� �� ��� �����. � ��� -rfi

��� �����.-rf3 Font �� ���� � 3� � �� �� ��� �����.-rf4 Font �� ���� � 4� � �� �� ��� �����.-rf5 Font �� ���� � 5� � �� �� ��� �����.-rf6 Font �� ���� � 6� � �� �� ��� �����.-rf7 Font �� ���� � 7� � �� �� ��� �����.--rf0 FontSet �� ���� � 0� � �� �� �� ��� �����. � ���

-rfn ��� �����.--rf1 FontSet �� ���� � 1� � �� �� �� ��� �����. � ���

-rfb ��� �����.--rf2 FontSet �� ���� � 2� � �� �� �� ��� �����. � ���

-rfi ��� �����.--rf3 FontSet �� ���� 3 �� � �� �� �� ��� �����.--rf4 FontSet �� ���� 4 �� � �� �� �� ��� �����.--rf5 FontSet �� ���� 5 �� � �� �� �� ��� �����.--rf6 FontSet �� ���� 6 �� � �� �� �� ��� �����.--rf7 FontSet �� ���� 7 �� � �� �� �� ��� �����.-rv ���� ���� �� ���. ��� �� �� � �� ���.

� ��� � ��� � � ���.-rw ��� ��� �� ���. � �� �����.

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

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

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

� ��� ���� � ��, aixterm ��� ������ � � ���

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

� � �� � ���.-sb ��� � �����. � ��� � ��� � � ���. �

�� off���.-sf VT102 �� � ���� ��(PF) �� (Sun) �� ��� ���

�.-si ��� � ���� � � ��� �� �� ����� ����, ��

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

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

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

62 �� ���, � 1 �

Page 79: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-sk �� � � �� ��� � ��� � �� ��� ����� �� ��

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

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

�� ��� ��� ����, -si ��� �� �� ����.

� ��� ��� ��� � � ���.-sl NumberLines �� ���� ���� �� � � �� � �� �����. � ��

64���.-sn �� �� �� � ���� �����. (� ���� �� �� � �

����.) � ���� � �� ��� �� ���� ��� �� ��

�����. � ��� � ��� � � ���.-st �� � � ���� �����. � �� �����.-suppress �� �� IMIoctl call� � �� �� ��� ����� �����.- symmetric <> � ()� �� ��� �� �� ���� � �� � �� �� ���

� ���.-T Title �� ��� ��� ����, ��� ��� ���� ����. -n ��� ��

�� ���, ��� ��� .Xdefaults ��� ��� ��� ���, ���

��� ���� �����.-text TextType ��� ��! ��� �����. TextType �� � �� � ��� �

���.

- implicit

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

- visual ��� ��� �� �� ���� �����. � � ���� �

� � �� � �� �� � ���.-ti ��� ��� �� ��� � �� �����. ��� � �� ��� ��

� �� �����(� ���� ���� ��).-tm String ��� �� � ��� �� �� ��� ��� � ��� ����� �

��. ���� ��� �� ����. intr, quit, erase, kill, eof, eol, start,

stop, susp, dsusp, rprnt, flush, weras, � lnext.-tn TerminalName �� �� �� �����. �� �� �� ���� -tn ��� �

�����. X ��� �� �� ��� ����� �� �� �� ��

� ��� ���. aixterm ��� X ��� �� �� ��� ����� �

���� ����.-ut ��� ID� /etc/utmp� ���� ���� ���.-v VT102 �� ��� �� � ���. HFT� � �� ��� �� ��

���.

�: �� �� � ��� �����.-vb �� � �� �� � ���. �� �� �� ��� � Ctrl + G

� �� �� �����. � �� �����.-W aixterm �� � � ��� ��� � �� ��� ��(� ��)���

�. � �� �����.-xrm String �� ���� �����. �� �,

aixterm.foreground: blue-132 sm/rm ���� ��� ����� �� aixterm �� ��� ��� �� �

���� ���. �� sm/rm ���� �� 80�� 132� � �� � �

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

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

�� ���(���) 63

Page 80: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

.Xdefaults ��

� ��� ��� aixterm ��� �� � �� �����.

alwaysHighlight �� ��, ��� ��� ���� � �� ��� �� �� �����.autoRaise �� ��, ��� ��� �� �� � aixterm �� ���� ����(autoRaiseDelay �

� ��). � �� �����. � ���� � ��� ��� � ���.autoRaiseDelay autoRaise� ���, ���� �� ��� �� ���� � � � �� �����. � ��

2����. � ���� � ��� ��� � ���.background �� �� ���� � ���� �����. � �� �� �����.boldFontSet ���� ��� �����. � ��� ��� �� �� ��� ��� ���.borderColor � ��� ��� �����. � ���� � ��� ��� � ���.borderWidth �� � ��� �� �����. � �� 2 ����.c132 �� ��, 80�� 132 � ���� aixterm �� ��� ��� sm/rm ���� ���

����� �����. � �� �����.charClass �� ��� �����.charShape ���� ����, ��� ����� � � ����. �� ����� ����, ��� �

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

��� � � � �����. �� ����, ��� � � �����.console ��� ���� aixterm ��� �� ��� �������. � �� �����.curses ���, ������ ��� �� �� ����� ���. � �� �����.cursorColor �� �� ���� �� ��� ��� �����. � �� ������.deiconifyWarp �� ��, aixterm ��� �� aixterm ��� � � ���� �� ��� �����.

� �� �����.expandTail ″seen″, ″sheen″, ″sad″, ″dad″ ���� ��� �� � � 2�� �����.fASD �� � �� ��� �����.fAutoPush �� � ��� �����.fEndPush � � ��� �����.fLTR LTR �� ��� �����.font0 �� ���� � 0� � �� ��� �����. � ��� -fn ��� �����.font1 �� ���� � 1� � �� ��� �����. � ��� -fb ��� �����.font2 �� ���� � 2� � �� ��� �����. � ��� -fi ��� �����.font3 �� ���� � 3� � �� ��� �����.font4 �� ���� � 4� � �� ��� �����.font5 �� ���� � 5� � �� ��� �����.font6 �� ���� � 6� � �� ��� �����.font7 �� ���� � 7� � �� ��� �����.fontSet aixterm � ���� ���� �� ��� �� �� ��� ��� �����.fontSet0 �� ���� � 0� � �� ��� �����. � ��� -fn ��� �����.fontSet1 �� ���� � 1� � �� �� ��� �����. � ��� -fb ��� ���

��.fontSet2 �� ���� � 2� � �� �� ��� �����. � ��� -fi ��� ���

��.fontSet3 �� ���� 3 �� � �� �� ��� �����.fontSet4 �� ���� 4 �� � �� �� ��� �����.fontSet5 �� ���� 5 �� � �� �� ��� �����.fontSet6 �� ���� 6 �� � �� �� ��� �����.fontSet7 �� ���� 7 �� � �� �� ��� �����.foreground �� �� ���� � �� ��� ���� ��� ��� �����. � �� �����

�.fPush � ��� �����.fRTL RTL �� ��� �����.fScrev �� ��(Reverse) ��� �����.fShapeF ‘ � ’ ��� �����.

64 �� ���, � 1 �

Page 81: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

fShapeIN ‘ � � ’ ��� �����.fShapeIS ‘�� � ’ ��� �����.fShapeM ‘� � ’ ��� �����.fShapeP ‘�� ��� � ’ ��� �����.fullCursor �� ��� �����. � �� �� �� �����.geometry �� �� ��� �����.iconBitmap ��� �� ��� �� � ��� ���� ����� �����.iconGeometry ��� � �� �����.iconName ��� ��� �����.iconStartup �� ��, �� �� �� ��� �� ��� aixterm ��� ����� ���.inputMethod aixterm ���� �� �� ��� �����.internalBorder �� ��� � �� �� � ��� �����. � �� 2 ����.italicFontSet ��� �� ��� �����.jumpScroll ���, ���� �����. � �� �����.language aixterm �� ��� �� ��� �����. ��� setlocale ���� ���� ��� �

�� �� ����.logFile logging� ���, ��� ���� ��� �����. � � ��� AixtermLog.XXXXXX�

��. �� XXXXXX� aixterm ��� ��� ID���.logging ���, pseudo tty��� �� ��� �� ��� �����. � �� �����.logInhibit ���, ���� ������ ���� ��� ���. ��� �� logging� ��� �� �

� ������.loginShell �� ��, aixterm ��� ��� �� ����� �� �����. � �� �����.mappingNotify ���� �� ��, XMappingNotify ���� �����. � �� �����.marginBell ���, � � � �� �� ����� ���. � �� �����.multiClickTime ���� � �� � � �� ��� �� �� �����. � �� 250������.multiScroll ���, ��� ����� �����.nMarginBell � �� ��� �� � � ������� ��� �����. � �� �� � � ���

���� 10� �����.noNulls �(null)� �� ���� �����.numShape ��� ��� ����, ��� �� ��� �� � � ����. ���� ����, ���

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

(Passthru)�� ����, ��� � ��� �����.orientation LTR� ����, ‘���� ��’� � � �� ���� �����. RTL� ����, ‘���

� ��’� � � �� ���� �����.outline �� �� ���� �� �(Keisen)� ��� ����. � �� ������.

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

� ���� ��� �� ��� � ���.pageOverlap �� ��� � ��� ���� ��� � ���� ��� � ��� �����. ���

��� ����, ���� ��� ��� ��� ���� � �� �����. � �� 1

����.pageScroll �� ��, ��� ��� �� �� ���� ���. � �� �����.

�� ��� �� ��� �, aixterm ��� ��� ���� �� ���� �� ��� �

�� ���� ����. Enter �� �� 1�� �� �� �����. ���� � ��

�� �� �� ���� �����.preeditType �� �� �� �� ��� �����. �� �� ��� �� ����.over �� �� �� �� � ��� �����.off �� �� �� � �� �� � ��� ��� ���.root �� � �� ��� � ��� ����.none �� ��� �� �� �� ��� �����.pointerColor �� �� ���� ��� ��� ��� �����. � �� ������.pointerShape aixterm ��� �� ��� ��� ��� �����. � �� XC_xterm���. ���

/usr/include/X11/cursorfont.h ���� �����.reducedBoldFontSet �� ���� � 1� � �� �� �� ��� �����.

�� ���(���) 65

Page 82: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

reducedFont0 �� ���� � 0� � �� �� ��� �����.reducedFont1 �� ���� � 1� � �� �� ��� �����.reducedFont2 �� ���� � 2� � �� �� ��� �����.reducedFont3 �� ���� � 3� � �� �� ��� �����.reducedFont4 �� ���� � 4� � �� �� ��� �����.reducedFont5 �� ���� � 5� � �� �� ��� �����.reducedFont6 �� ���� � 6� � �� �� ��� �����.reducedFont7 �� ���� � 7� � �� �� ��� �����.reducedFontSet �� ���� � 0� � �� �� �� ��� �����.reducedFontSet0 �� ���� � 0� � �� �� �� ��� �����.reducedFontSet1 �� ���� � 1� � �� �� �� ��� �����.reducedFontSet2 �� ���� � 2� � �� �� �� ��� �����.reducedFontSet3 �� ���� 3 �� � �� �� �� ��� �����.reducedFontSet4 �� ���� 4 �� � �� �� �� ��� �����.reducedFontSet5 �� ���� 5 �� � �� �� �� ��� �����.reducedFontSet6 �� ���� 6 �� � �� �� �� ��� �����.reducedFontSet7 �� ���� 7 �� � �� �� �� ��� �����.reducedItalicFontSet �� ���� � 2� � �� �� �� ��� �����.reducedSpecialFont �� �� � �� ��� �����.reducedStartup aixterm ��� ��� ��� ����� ���.reverseVideo �� ��, ���� ���� �� ���. � �� �����.reverseWrap ���, ��� ��� �� ��� , ��� �� �� � �� ��� � � � ��

� �����. � �� �����.rtArrow � � �� �� �� �� �����.saveLines �� ���� ���� �� � � �� ��� �����. � �� 64���.scrollBar ���, �� � ��� � �����.scrollInput �� ���� ��� � ��� � ���� ����� ��� �� �����. �

�� ����.scrollKey ��� � ���� � � ��� �� �� ����� ����, �� ����� ��

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

����.

�� ��� ��� ����. �� scrollInput ��� �� ����.scrollPosition ����, ��� � �� ���� �����. � �� � ����.signalInhibit ���, �� ���� ��� �����. � �� �����.specialFont �� � �� ��� �����.statusLine ���, �� � � ���� �����. � �� �����.statusNormal � ���� �� ��� ���� ���. (� ���� �� ��� � ���.) �

���� � �� ��� �� ���� ��� �� �� �����.sunFunctionKeys PF�� VT102 ��� �� ��(Sun function keycordes)� ����. � �� ��

���.suppress ���, �� �� IMIoctl call� � �� �� ��� ����� �����.symmetric �� �� ���� �� ����� ���.termName �� �� � $TERM � �����. termName ��� ��� �� �� ���

�����. X ��� �� �� ��� ����� �� �� �� ��� ��� �

��. aixterm ��� X ��� �� �� ��� �� ��� � ����.textType ��� ���� ��, ��� ��!� ‘��’� �����. ���� ���� ��, ���

��!� ‘���’� �����.textUnderIcon ����, ��� ��� �� ��� � �� �����. ��� � �� ��� ��� �

� �����.title �� ���� ��� ����� �����. � �� aixterm���.ttyModes tty ��� �����.translations �� �� ���� �����.utmpInhibit ��� ��, ��� ID� /etc/utmp ��� �����. � �� �����.

66 �� ���, � 1 �

Page 83: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

visualBell ���, �� � �� ��� Ctrl-G � ��� ��� �� �����. � �� ��

���.vt102 ���, VT102 �� �����. � �� �� �����.warp �� ��, �� �� aixterm �� ��� ��� ��� ������. � �� ����

�.

��

� ��� ��� aixterm� ��� � � ��� ��� ��� � ��� �� ����, ��

� �� ���� �����. � � aixterm ��� � ��� ��� �����.

aixterm -geometry 20x10+0+175 -fn Bld14.500 -fg DarkTurquoise -e/tmp/banner_cmd &

aixterm ��� X Toolkit �� ������ ����. �� ��, aixterm ��� �� �� �� �

�� �����.

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

$XFILESEARCHPATH %T=app-defaults %N=Xdefaults %L=$LANG$XFILESEARCHPATH %T=app-defaults %N=Xdefaults %L=/usr/lpp/X11/defaults/$LANG/Xdefaults/usr/lpp/X11/defaults/Xdefaults/usr/lib/X11/$LANG/app-defaults/Xdefaults/usr/lib/X11/app-defaults/Xdefaults/usr/lpp/X11/defaults/app-defaults/Xdefaults

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

$XFILESEARCHPATH %T=app-defaults %N=Aixterm %L=$LANG$XFILESEARCHPATH %T=app-defaults %N=Aixterm %L=$XFILESEARCHPATH %T=app-defaults %N=aixterm %L=$LANG$XFILESEARCHPATH %T=app-defaults %N=aixterm %L=/usr/lpp/X11/defaults/$LANG/Aixterm/usr/lpp/X11/defaults/Aixterm/usr/lib/X11/$LANG/app-defaults/Aixterm/usr/lib/X11/app-defaults/Aixterm/usr/lib/X11/defaults/app-defaults/Aixterm/usr/lpp/X11/defaults/$LANG/aixterm/usr/lpp/X11/defaults/aixterm/usr/lib/X11/$LANG/app-defaults/aixterm/usr/lib/X11/app-defaults/aixterm/usr/lib/X11/defaults/app-defaults/aixterm

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

$XUSERFILESEARCHPATH %T=app-defaults %N=Aixterm %L=$LANG$XUSERFILESEARCHPATH %T=app-defaults %N=Aixterm %L=$XUSERFILESEARCHPATH %T=app-defaults %N=aixterm %L=$LANG$XUSERFILESEARCHPATH %T=app-defaults %N=aixterm %L=$XAPPLRESDIR/$LANG/Aixterm$XAPPLRESDIR/Aixterm$XAPPLRESDIR/$LANG/aixterm$XAPPLRESDIR/aixterm$HOME/$LANG/Aixterm$HOME/Aixterm$HOME/$LANG/aixterm

�� ���(���) 67

Page 84: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

dpy->xdefaults (A.K.A. "RESOURCE_MANAGER" property)$HOME/$LANG/.Xdefaults$HOME/.Xdefaults

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

$XENVIRONMENT$HOME/$LANG/.Xdefaults-hostname$HOME/.Xdefaults-hostname

�:XFILESEARCHPATH� XUSERFILESEARCHPATH ��� %T, %N � %L �� ����

�����. ��, $LANG� �����

setlocale(LC_CTYPE,NULL) ��� ���.

�� ��

telnet, tn �� tn3270 ��.

AIX 5L Version 5.2 National Language Support Guide and Reference� Bidirectionality and Character

Shaping.

ali ��

��

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

��

ali [ -alias File ] [ -list | -nolist ] [ -normalize | -nonormalize ] [ -user User | -nouser ] [ Alias ...

]

��

ali ��� � �� � � ��� �����. � ��, � ��� /etc/mh/MailAliases ��� ����

�� � ��� ��� ��� �� ��� �����. �� � �� ��� �����, -alias File �

�� ������.

-user ��� ����, ali ��� �� ���� ��� ��� ��� � ��� �� ��� ���

��.

���

-alias File � �� ��� ����� �����. � �� /etc/mh/MailAliases �����.-help �� ��, �� �� � �(��) � �� ��� �����.

�: MH� ��, � ��� ��� ��� ����� ���.-list ��� �� �� �����.

68 �� ���, � 1 �

Page 85: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-nolist ���� �� �� ��� ��� �����. � ��� � ����.-nonormalize �� ��� ��� �� ��� ���� ��� �� ���. ��� � ����.-normalize �� ��� ��� �� ��� ���� ����.-nouser ��� ��� �����. � ��� � ����.-user User �� ���� ���� � ��� �����. -user� -nonormalize ��� �� ���

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

��

1. /etc/mh/MailAliases ��� � �� ��� ��� ���� ����� �� �� ������.

ali

2. mygroup ��� ��� ��� ����� �� �� ������.

ali mygroup

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

mike@mercury george@helium vicky@venus

��

$HOME/.mh_profile MH ��� ���� �����./etc/group �� ���� �����./etc/passwd ��� ���� �����./etc/mh/MailAliases � � � �� ��� �����./usr/bin/ali ali ��� �����.

�� ��

comp ��, dist ��, forw ��, repl ��, send ��, whom ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

alias ��

��

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

��

alias [ -t ] [ -x ] [ AliasName [ =String ] ] ...

��

alias ��� �� ��� ����, �� �����, �� �� ��� �� ��� �����.

��� ��� �� alias ��� ����, �� ��� ��� �� ��� �����. AliasName ��

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

�� ���(���) 69

Page 86: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AliasName=String ��� �� ��� � ��� ����. �� ����� � ����� ���

��, ���� ���� ��� �����. String ��� ��� � ��� �� � ���. ���

� ��� � �� �� �� ��(’)� ��� � �� ����. AliasName ���� ��� ��

� �� ��, alias ��� �� ��� �����.

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

�. ��� ��� PATH �� �� �� ����� ��� ��� ��� � �� ���� �� �

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

-x ��� ����, �� ��� ��� �����. ��� ��� �� ��� �����.

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

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

���

-t ��� ��� �� ��� ����� �����. -t ��� AliasName ���� �� ����, � ��� ���� �

�� ��� �� ��� �� ��� �� �� ��� ���� ���. PATH �� �� �� ����� ��� ���

� �� ���� �� �� ��� � � �� ���.-x ��� ��� �� ��� �����. � ��� AliasName ���� �� ����, � ��� �����. ��� �

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

� ���� ���.

�� ��

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

0 ����� ��� ���.>0 ��� �� � ��� ���� � ��� ��� ������.

��

1. ls ��� �� �� ��� ���� ��� ��� ��� ��� �� �� ������.

alias ls=’ls -CF’

2. �� �� ���� ���� �� ��� �� ��� ����, �� �� ������.

alias r=’fc -s’

3. du ��� �� 1KB � � �����, �� �� ������.

alias du=du\ -k

4. ��� Dee� ���� � �� ���� ���� � ��� ����, �� �� �����

�.

alias psc=’ps -ef | grep Dee’

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

alias -t ls

70 �� ���, � 1 �

Page 87: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ls=/usr/bin/ls� �����.

��

/usr/bin/ksh Korn �� ��� alias ��� �����./usr/bin/alias alias ��� �����.

�� ��

ksh ��.

alog ��

��

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

��

�� ��� �� ��

alog -f LogFile [ -o ]

��� �� ��� �� �

alog -f LogFile | [ [ -q ] [ -s Size ] ]

��� �� ��� Verbosity � ��

alog -t LogType -V

��� �� ��� � ��

alog -C -t LogType [ -f LogFile ] [ -s Size ] [ -w Verbosity ]

��� �� ��� � ��

alog -L [ -t LogType ]

��

alog ��� �� ��� �� �� ��� ��, ��� ��� ��� �����. � ��� �� ����

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

alog ��� ����� ��� �� ���� alog ��� ������� ��� ��� �� �����.

alog ��� ������� ��� ��� LogType�� �����. ��� LogType� File, Size �

Verbosity �� LogType�� alog ��� ������� �����. odmadd ��� ��� alog

��� ������� �� LogType� �� � ���. alog ��� ��� alog ��� ��

����� ��� LogType� �� � � ���.

�� ���(���) 71

Page 88: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-C ��� LogType� �� ����. ��� LogType� File, Size, Verbosity �� ��

�� -f, -s, -w ��� �� -C ��� ������. -tLogType ��� �����.

-C ��� ����, alog ��� �� ��� �� ���� �� ��� ���� ����.

-C ��� ��� �� �� ��� �� ���� �� �� ��� ����, �� ��

���� ��� � �� �����. �� alog -C� �� ���� ��� ��� �� �

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

�: �� ��� ��� ��� � ����� alog �� � � ���.-f LogFile �� ��� ��� �����. ��� LogFile� ��� �� ����. alog ��� LogFile

� � � �� ���� /dev/null� �����. alog ��� ������� ��� LogType

� File �� ���� -f LogFile ��� -C � -t ��� �� ������.-L alog ��� ������� �� ���� � �� ��� �����. -L ��� -t

LogType ��� �� ���� ��� LogType� �� �����. File, Size � Verbosity

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

<File>:<Size>:<Verbosity>

-L ��� ���� alog ��� �� ��� �� ���� File� ���� ����.-o LogFile� ��� �����. LogFile� ��� �� ����� �#� �����.-q �� ��� LogFile� �����, �� ��� ��� ����.-s Size LogFile �� ��� �� � � �����. LogFile� �� �� �� ��� �

� �����. �� LogFile� ��� �� �� ���� �� ��, � LogFile ��

4096 ��� �����. LogFile� � ���� ��, � ��� ����. ���� ��

� 4096 ��� � ����� ��!���. LogFile� ��� �� ��, �� ��� � �

� ��� "� ��� ���� �� �� ��� ����. ��� ���� LogFile�

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

alog ��� ������� ��� LogType� Size �� ���� -s Size ��� ��

-C � -t ��� ������. �� �� ��� �� LogFile� � � �����.-t LogType alog ��� ������� ��� ��� �����. alog ��� ��� �� ��� ��

� alog ��� ��������� �����. LogFile� ���, �� LogFile� ���

�.

alog ��� alog ��� �������� ��� LogType� �� ��� ���� ����,

alog ��� LogFile� � � �� ���� /dev/null� �����.

-f ��� ��� LogType� LogFile� ����, �� ��� ���� �� ��� ���

��.-V alog ��� ������� ��� LogType� Verbosity � �� �� �� ��� ���

��. LogType� ���� ���, ��� LogType� ���� � ��� �� ��� ��

�� ���� ����.

alog ��� -t LogType � -V ��� �� ��� ��� �� ��� alog ��� ��

� , ��� ���� ���� verbosity� ���� ���� �� � ���.-w Verbosity -C � -t ��� �� ����, alog ��� ������� ��� LogType� Verbosity

�� ����.

Verbosity ��� 0-9� � ���. �� 0�� alog ���� ��� LogFile� ���

� ����. �� ��� �� �� ���� �����. �� 0� ���, alog ��� ��

��� ��� �� ��� LogFile� �� ��� �����.

72 �� ���, � 1 �

Page 89: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. �� �� � � sample.log�� ��� �� ��� �����, �� �� ������.

date | alog -f /tmp/sample.log

2. /tmp/sample.log �� ��� ��� �����, �� �� ������.

alog -f /tmp/sample.log -o

3. /tmp/sample.log �� ��� ��� 8192 ��� ����, �� �� ������.

echo "resizing log file" | alog -f /tmp/sample.log -s 8192

4. � �� �� sample� alog ��� ������� �����, alog.add ��� � ���� �

����.

SWservAt:attribute="alog_type"deflt="sample"value="sample"

SWservAt:attribute="sample_logname"deflt="/tmp/sample.log"value="/tmp/sample.log"

SWservAt:attribute="sample_logsize"deflt="4096"value="4096"

SWservAt:attribute="sample_logverb"deflt="1"value="1"

alog.add ��� �� �� �� �� ������.

odmadd alog.add

��� alog.add ��� SWservAt ������� �����.

5. alog ��� �������� �� �� sample� �� �� ���

/var/sample.log� ����, �� �� ������.

alog -C -t sample -f /var/sample.log

��

/etc/objrepos/SWservAt ���� ���� � ���� ��� �����.

�� ��

odmadd ��.

AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs� How to Add

Objects to an Object Class.

�� ���(���) 73

Page 90: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

alstat ��

��

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

��

alstat [ -e | -v ] [ Interval ] [ Count ]

��

alstat ��� �� �� ��� �����. �� ��� �� �� ��� ���� ��(�� �, 8�

��� �� ���� �� ��� �� �) �� ���� �� � �� ��� �� � ���.

���, ## ��� ���� �� �� ��� �� ����� �� � ��� �� ��� ��

� ����.

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

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

� � ��� ���� ��� �����. �� ��� Interval � Count� �� � ���.

����

Interval �� � �.Count �� �.

���

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

��

1. �� �� ��� ���� �����, �� �� ������.

alstat

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

Alignment AlignmentSinceBoot Delta8845591 08845591 08845591 08845591 08845591 08845591 0

...

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

74 �� ���, � 1 �

Page 91: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

alstat -e 2 5

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

Emulation Emulation Alignment AlignmentSinceBoot Delta SinceBoot Delta21260604 0 70091846 023423104 2162500 72193861 210201525609796 2186692 74292759 209889827772897 2163101 76392234 209947529958509 2185612 78490284 2098050

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

alstat -v 5

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

Alignment Alignment Alignment AlignmentSinceBoot Delta Delta00 Delta0188406295 0 0 093697825 5291530 0 529153098930330 5232505 5232505 0102595591 3665261 232697 3432564102595591 0 0 0

�� ��

emstat ��.

alt_disk_install ��

��

mksysb �� ��� ��� �� ���� �����, �� �� �� ���� �� ���� ����

�.

��

″�� ��� ��:″

alt_disk_install { -d device | -C} [ -i image.data] [ -s script ] [ -R resolv_conf] [ -D] [

-B] [ -V] [ -r] [ -O ]

[ -p platform ] [ -L mksysb_level ]

[ -b bundle_name ] [ -I installp_flags ]

[ -l images_location ] [ -f fix_bundle ]

[ -F fixes ] [ -e exclude_list ] [ -w filesets ]

[ -n] [ -P phase_option ] target_disks...

�� ���(���) 75

Page 92: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

″�� ��� � � ��:″

alt_disk_install -X

alt_disk_install AIX 4.3.2 �� ��:

″� � �� ��� ��:″

alt_disk_install -q disk

″Put-to-sleep � �:″

alt_disk_install -S

″�� ��� � � �� ���:″

alt_disk_install -v new_volume_group_name disk

″Wake-up � �:″

alt_disk_install -W disk

″�� ��� � � ��:″

alt_disk_install -X [ volume_group]

��

alt_disk_install ��� �� ��� �� � � ���� ��� ���� � ��� �� �

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

mksysb ��� ����� ��� ���� ��� � �� ��� �� � ���.

��: alt_disk_install� ″alt″ ���� ��� �� ��, ��� ��, �� �� �� � �� ����

����. alt_disk_install� ����� �� ��, ���� ″alt″ ���� �� �� ���, �� �

�, ��� �� �� �� ��� ��� ���� ��� - alt_disk_install ��� ���� �� �

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

� �� ��� mksysb ���� AIX 4.3 ��� mksysb ��, AIX 4.3 ��� mksysb �� ��

AIX 4.3.3 ��� mksysb CD� �����. alt_disk_install ��� �� �� ��� �� ���� ��

����, mksysb� ��� ���� ���� ���� �� ��, �� ���� AIX 4.3 ��� ��

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

�:

1. alt_disk_install� ��� ���� �� ��� ��� AIX �� ��� �� � ����. ��

�, AIX 5.1 ���� AIX 4.3 mksysb� �� � ����.

2. �� ��, � ���� ��� �� bootlist ��� ����, �� ��� ����� �� �

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

� �� ��� �� �� rootvg ��� ����, ���� �� �� ��� � ��� � � �

��. � � ��� rootvg� ���� �� ��� �����, ���� ���� ��� � �

���. �� �, ��� 4.2.0� ��� � ���� ��� ��� rootvg� ��� 4.2.1.0�� �

� ���. �� �� ��, ���� �� ��� � � �, � rootvg�� ���� �� ��

76 �� ���, � 1 �

Page 93: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� �� 4.2.1� ���. �� �� �� ���� �� ��� � � �, � rootvg�� ��

��� �� �� ���� �� 4.2.1� ���. 4.2.1 �� ��� ��, bootlist� 4.2.0 ���� �

� ��� ����� ���� 4.2.0�� �����. � �� �, rootvg� ���� ���� ���

�� ��� � ���� ��� ����� ����� ��, �� ��� �� �� rootvg� ���

� ���.

�: NIM �� ��� ��(� � �� �� ��� �)� AIX 5.1 ���� nimadm ���� ��

���. ��� ��� nimadm ��� ������.

�� alt_disk_install ��� ��� 4.1.4.0 ��� ����� � � ��� �� �� � ���.

alt_disk_install ��� ����� ���� bos.alt_disk_install.rte �� ��� ���� �� ��, �

� ���� mksysb ��� ����� bos.alt_disk_install.boot_images �� ��� ���� �� �

��.

���� mksysb ��� � ��� �� ��, mksysb� �� ���� ���� �� ��� �

� ��� ���� �� ���. ���� �$� ��� ������ ����� ��� �� ���

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

�: ����� mksysb� �� ��� ���� �� bos.alt_disk_install.boot_images �� ��� �

� ���� ���.

rootvg �� ��� �� �, �� �� ��� bosboot ���� ����. mksysb ��� ��

�, mksysb� �� �� �� ��� �%� ��� �� �� rootvg� �� ��� ���� �

����. ���� �����, bosboot ��� �� �� ���� ���� ���� �� �� �����

�. ��� �� ��� mksysb� �� ��� ����� ����. � � ���� � �� ��

���.

��� ��� � �� ��, altinst_rootvg� �� � ��� � � �� ���� ��� �� ��

�. �� �� ����, �� ��� ��� ��� ��� � �� ��! ���� ��� ��� ��

� ��� ���. ��� ��� ��� ��� �� �� ���� ��� ��� ���� ��� ODM

�� ��� ���. altinst_rootvg �� ��� �� �(vary on)�� �� ��� �#� ��� �"

�� �� ����.

alt_disk_install ��� 4.3.2 ��� ���, � �� ������ ���� ��� � �� ��� rootvg

�� ��� lspv ���� ���� ����.

alt_disk_install 4.3.2 ��� ��:

�� �� ������ ����� ��, ��� rootvg �� ��� lspv ���� ″old_rootvg″�

���� � rootvg� � �� ���� �����. ��� � rootvg �� ��� ��� � ��

��� ���� ���, �� -X flag( alt_disk_install -X old_rootvg)� ���� ���� �

��.

�� ���(���) 77

Page 94: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� rootvg� �� ��� ��, bootlist ��� ��� � rootvg�� ������ �� ����

����.

alt_disk_install 4.3.2 ��� ��:

�� ���� �� �� ��� �� ����� ��� �� ��, -q ��� ��� �� ��

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

��� � � �����.

�� �� �� ���� /alt_inst� �����, � �� ���� � ���(/alt_inst/usr, /alt_inst/var)

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

���.

��: alt_disk_install� ��� �� rootvg� ���� � �� �� ��� alt_disk_install �

�� ����� ��, altinst_rootvg�� exportvg� ���� ����.

ODM �������� altinst_rootvg ��� ����� ��� alt_disk_install -X ��� ����

��. exportvg ��(�� reducevg ��)� �� � �� ��� ��� �� ��� �� ����

�� �� ��� �� ��, exportvg ��� �� rootvg� /etc/filesystems�� �� �� ����

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

��� exportvg� ���� ��, ���� ����� � /etc/filesystems ��� ������. �

��� � /etc/filesystems ��� ��� ����� ����.

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

��� ������.

alt_disk_install� AIX 4.3.1 ��� ���� �� � ���. ��� � ��� ���� � �� �

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

1�� altinst_rootvg �� ��, alt_ ″��� ��″, /alt_inst �� ���� ��� mksysb �� rootvg ���� �

����

2�� ��� ��� �� ����� ����, ���, �� �� ��, ���� �� �� ����, resolv.conf

��� ��� �� ���� NIM ������ ��� �� �� �� ��� �����.3�� /alt_inst �� ���� �� ����, �� ��� � ��� ��� ��� ���, alt_ logical ��� ��

��, ODM ��� ����, altinst_rootvg� ��� �����. �� ���� ���� ��� �� �����

�.

��� �� �����, 1��� 2��� �� �� 2��� 3��� �� �� � ���. 2���

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

�� �� rootvg� �� ��� ����� 3��� ���� ���. 1� 2��� �� �� /alt_inst �

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

1�� �/�� 2��� ����, ��� �� ��(altinst_rootvg ��)��� ���� alt_disk_install-x

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

78 �� ���, � 1 �

Page 95: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

alt_disk_install 4.3.2 ��� ��:

� rootvg� � �� ��� ��� ��� ���� ��� ��, -W ��� ��� ��� �

� ���� �� ��� ″wake-up″ � ���. ″wake-up″�� �� ��� alt_disk_install 1�

�� �� � � ���(, /alt_inst �� ���� ���).

�: ″wake-up″� ��� �� ��� ″altinst_rootvg″� ��� ���.

����

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

� ����� ���. , ″altinst_rootvg″�� ��� ″old_rootvg″� ″wake-up″�� ���.

�� �, �� ���� 4.1.5 �� ����� alt_disk_install 4.3.3 mksysb��� ���

�. � �� �� ���� ���� ������, 4.3.3 �� ������ ��� 4.1.5

″old_rootvg″ �� ��� ″wake-up″�� ���.

��� ��� jfs �� ��� ��� �����. � �� ��� ��� � � �� ��

� ″wake-up″ � ��, � �� ��� ��� rootvg� �� ����. �� ��, �� ���

�� ���� ″wake-up″� �� �� � �� ��� ��� rootvg� �� � �� jfs ��

��� �� ���. JFS �� ��� �� ��� ��� ��� ���� ��� �� ����

�� �����. /,/usr� � �����.

FORCE �� �� ″yes″� ���� �� ��, alt_disk_install ��� � �� ��� ���

� � �� ���� ″wake-up″� ��� ���� ����.

��: � �� ��� ���� � �� ���� FORCE ″wake-up″� �� ��, �� ��

��� � ″waking″ �� ��� ��� rootvg��, ��� �����.

� �� ��� ���� ���� ���, -S ��� ��� �� ��� �� � � � �

��.

�: ″wake-up″� ��� �� ��� ���� rootvg� ���� �� ″�� � ″��� ���.

���

-B mksysb� �� � ���� �� bootlist� �����. � ��� ����, -r ���

�� � ����.-C rootvg� �����.

�: -d � -C� �� ������.

�� ���(���) 79

Page 96: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-d device device� �� �� ����.

tape device - for example, /dev/rmt0

��

path name of mksysb image in a file system.

�: -d � -C� �� ������.-D ���� �����(-x �� ��).-i image.data � �� ��� mksysb ��� rootvg��� �� image.data � �� ��

image.data �����. image.date �� ��� /tmp/my_image.data� �� �� �� �

���� ���.

alt_disk_install 4.3.2 ��� ��:

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

image.data ��� ��� ��

LV_SOURCE_DISK_LIST �� ���� ��� ���.-p platform � ��� ��� �� ��� ��� ��� � ���� �%�� �����. ��

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

mksysb ���� �����(-d ��).-Pphase � alt_disk_install� �� � �� phase. ��� �� 1, 2, 3, 12, 23 �� all���.

v 12 - 1 � 2��� �����.

v 23 - 2 � 3��� �����.

v all - � �� �� ��� �����.-r alt_disk_install ��� �� � � ������ ������ �����.-R resolv_conf mksysb� ����� rootvg� ��� �, ��� resolv.conf ��� ���� � ��.

resolv_conf�� �� �� ��� ���� ���.-s script mksysb ��� rootvg ��� � � �� �� �� �������. � ��� ��

����� ���. � ����� �� �� ����� /alt_inst �� ���� �� ��

�� �� �����, ����� �� �� �� ����� /alt_inst �� ����� ��

� �� � ���. ��� �� ��� rootvg� ����� ��� �� �� rootvg

� ��� ���� ��� ��� �� altinst_rootvg�� ″wake-up″� �� ��� �

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

� ��� �����. script� �� �� ��� ���� ���.-V ��� ��� ���� � ���. � ��� rootvg ��� � ��� ��� � �

��. mksysb alt_disk_installs� �� ���� ��� � ���.-L mksysb_level � �� �%� ��� ���� �� �� �� ��� ����(�� �, AIX 5.1

� ���� rspc_4.3.0_boot). V.R.M. ������ ��, � �� AIX 4.3���. mksysb

��� � �� ��� ���� �� ����.-n NIM ������ �� ���. /.rhosts � /etc/niminfo ��� �� rootvg� �� ��

�� �����.-X ODM �������� altinst_rootvg �� �� ��� ���� �. ��� �� ��� �

� lspv ���� ″�″� �����. ���� �� ���� �� ���� ���� ��

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

�� � ���.

alt_disk_install 4.3.2 ��� ��, ��� �� �� �� ODM ������ �� �

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

-X old_rootvg� � �����.-O altinst_rootvg ���� �� ���� �����. �� alt_disk_install� ��� �� ��

���� ���� ��� ���. �� ���� � ���� rootvg� ��(��� �

�� �� ��� ��� � � �� ��) � ��� �����.

80 �� ���, � 1 �

Page 97: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� rootvg� �� �(-C)� �� � ���.

-b bundle_name rootvg �� � �� ���� �� ��� ���� � �� ��� �� �����.

� ��� ����� -l ��� ����� ���.-e exclude_list rootvg� �� � �� �� exclude.list���. �� �� grep ��� �� ��

�� ����. exclude_list� �� �� ��� ���� ���.

�: ��� ��� ��� ������, ASCII ���� /etc/exclude.rootvg ��

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

���. � ��� ��� grep ��� �� �� ��� ���� ��� ���

� ��� �����. /etc/exclude.rootvg ��� ��� � ��� �����

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

�.

�� �, scratch�� ����� �� ��� ������ �� �� �� ��

� ������.

/scratch/

�� �, /tmp�� ����� ��� ����� �� ��� /tmp� �� �� �

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

^./tmp/

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

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

�� ��� ^� ���� � �� .� ���� �� �� �� ����� ����

�.

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

�, ^.� ��� �� �� � �� ��� ���� �� ����, $� ���

�� ��� ��� ��� �� ������.-f fix_bundle rootvg �� � �� APAR ���� � �� �����. � ��� ����� -l

��� ����� ���.-F fixes rootvg �� � �� APAR(�� �, ″IX123456″)� �� ������. � ���

����� -l ��� ����� ���.-I installp_flags � �� ��� ��� alt_inst_rootvg� ���� �� � ���� �����. �

� ��: ″-acgX″ -l ��� � ��� �� ����� ���.-l images_location rootvg �� � �� installp ��� ���� ����. ��� ���� �� ��

�� �� �� ��(�� �, /dev/rmt0)� � ���.-w filesets rootvg �� � �� �� �� ������. � ��� ����� -l ��� ����

� ���.

� ��� alt_disk_install �� 4.3.2 ���� �� � ���.

-q disk �� �� �� ��� ��� ���� � �����. �� �� �

���� ���� �, ″old_rootvg″ �� ��� � � ��

����� �� ���� ����� �, �� �����.-S �� ��� ″�� � ″� ���. �� �� �� ″wake-up″(-W)

��� �����.

�� ���(���) 81

Page 98: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-v new_volume_group_name disk �� ��� �� ��� ��� �� � �����. �� �� �

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

� ���� ���.-W disk rootvg� �� ��� rootvg ��� ��� ���� � �� �

�� ″wake-up″�� � �����.

�: ″wake-up″� ��� �� ���

″altinst_rootvg″� ��� ���.

����

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

� ����� ���. , ″altinst_rootvg″�� ��� ″old_rootvg″� ″wake-up″�� ���.

����

target_disks �� rootvg� � �� ���� ��� �����. ���� ��� �� �� ��� ����

� ��� ���. lspv ��� ���� �� �� None� �� ��� ���� ���.

��

1. �� �� 4.2.0 rootvg� hdisk3� ���� ���� ��� ��� rootvg� 4.2.1 �� ��

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

alt_disk_install -C -F 4.2.1.0_AIX_ML -l /updates hdisk3

bootlist� � ��� � hdisk3���� ���� ��� �����.

2. 4.3 mksysb ��� hdisk3� ����, ����� � ## ��� ��� ���� � ��� ��

��(/home/myscript)� �����, �� �� ������.

alt_disk_install -d /mksysb_images/4.3_mksysb -s /home/myscript hdisk3

3. �� �� ������ ��� � � rootvg ODM ������ ��� ����� �� ��

������.

alt_disk_install -X old_rootvg

� rootvg� �� lspv ���� ″�″�� ����. ��� � �� ��� � ���� �

� ���.

4. ��� ��� � �� �� ��� �� �� ���� �����, �� �� ������.

alt_disk_install -q hdisk0

��

# lspvhdisk0 00006091aef8b687 old_rootvghdisk1 00076443210a72ea rootvghdisk2 0000875f48998649 old_rootvg# alt_disk_install -q hdisk0hdisk2

82 �� ���, � 1 �

Page 99: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� ″old_rootvg″� �� ���� ��� hdisk2���. ���� ���� �� ���� hdisk2�

�����, � rootvg �� ���� ��� � ���.

5. alt_disk_install �� �� ��� ����� �� �� ������.

alt_disk_install -v alt_disk_432 hdisk2

��

# lspvhdisk0 00006091aef8b687 rootvghdisk1 00000103000d1a78 rootvghdisk2 000040445043d9f3 altinst_rootvghdisk3 00076443210a72ea altinst_rootvghdisk4 0000875f48998649 Nonehdisk5 000005317c58000e None# alt_disk_install -v alt_disk_432 hdisk2#lspvhdisk0 00006091aef8b687 rootvghdisk1 00000103000d1a78 rootvghdisk2 000040445043d9f3 alt_disk_432hdisk3 00076443210a72ea alt_disk_432hdisk4 0000875f48998649 Nonehdisk5 000005317c58000e None

6. �� �� ���� ��� �� � rootvg� ″wake-up″��� �� �� ������.

alt_disk_install -W hdisk0

��

# lspvhdisk0 000040445043d9f3 old_rootvghdisk1 00076443210a72ea rootvg# alt_disk_install -W hdisk0# lspvhdisk0 000040445043d9f3 altinst_rootvghdisk1 00076443210a72ea rootvg

� �, ″altinst_rootvg″ �� ��� �� ���, /alt_inst �� ���� �����.

7. ″wake-up″� ��� �� ��� ″�� � ″���, �� �� ������.

alt_disk_install -S

��

# lspvhdisk0 000040445043d9f3 altinst_rootvghdisk1 00076443210a72ea rootvg# alt_disk_install -S# lspvhdisk0 000040445043d9f3 altinst_rootvghdisk1 00076443210a72ea rootvg

″altinst_rootvg″� � �� �� ��� ��, /alt_inst �� ���� � �� ���� ����.

″altinst_rootvg″ �� ��� ��� �� ″old_rootvg″� ��� ��, ″-v″ ��� ���

� � ���.

�� ���(���) 83

Page 100: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/sbin/alt_disk_install alt_disk_install ��� �����.

�� ��

bootlist ��, bosboot ��, lspv ��, nim ��, nimadm ��.

anno ��

��

��� ��� ���.

��

anno [ +Folder ] [ Messages ] [ -component Field ] [ -inplace | -noinplace ] [ -text ″String″ ]

��

anno ��� ��� ��� � ��� ���. ��� ���� �� anno ��� ����, ���

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

Enter component name:

���� ��� ���� Enter �� ��, ���� ��� ��� �� �� ��� ��� �

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

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

�: �� ��� � ��� �����, dist, forw �� repl ��� ������.

���

-component Field �� ��� � ��� �����. Field �� �� ��� ��� ���� ���. � ��� �

��� ���, anno ��� �� ��� ����� ��� �����.+Folder ��� ��� ��� � �� �� �����. � �� �� ����.-help �� ��, �� �� � �(��) � �� ��� �����.

�: �� ���(MH)� �� � -help ��� �� ��� ���� ���.-inplace ��� ��� ��� �� ��� ���� �� ��� ��� �� ���.

84 �� ���, � 1 �

Page 101: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

Messages ��� ��� ��� �����. � ���� � ��, �� � � �� �� ��� ��� �

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

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

Number �� ��. � �� ��� �����, ��� ��� ��� �����. � � ��

���, -(���)�� � � � � ��� �����.

Sequence

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

all �� �� �����.

cur �� .(��)

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

first �� � �� �����.

last �� ��� �����.

next

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

prev �� ��� �� �����.

-noinplace ��� ��� �� �� ����. � ��� � ����.-text ″String″ ��� ���� �� ��� �����. ��� �� �� � ��� ���.

���� �

� ��� UserMhDirectory/.mh_profile ��� � � ���.

Current-Folder: � � �� �� �����.Path: ���� �� ���(MH) ����� �� �����.

��

1. �� �� ��� �� � ��� ���, �� �� ������.

anno

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

Enter component name: _

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

Date

Enter �� ����. ��� ���� ��� ��� �� � � ���� ���. ��� �

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

Date: Tues, 28 Mar 89 13:36:32 -0600

2. �� �� ��� �, � ��� ��� ��� ���, �� �� ������.

�� ���(���) 85

Page 102: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

anno -component NOTE -text ″Meeting canceled.″

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

NOTE: Mon, 15 Mar 89 10:19:45 -0600NOTE: Meeting canceled.

3. meetings ��� �� 25� ��� ��� �� �� ������.

anno +meetings 25 -component NOTE -text ″Meeting delayed

until Friday.″

�� 25� ��� �� ��� ���� ��� ����.

NOTE: Wed, 19 Jun 87 15:20:12 -0600NOTE: Meeting delayed until Friday.

�: ��� ���� ����, �� ��� ���� ��� Enter �� �� ����.

��

$HOME/.mh_profile MH ��� ���� �����./usr/bin/anno anno ��� �����.

�� ��

dist ��, forw ��, repl ��.

mh_alias �� ��, mh_profile �� ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

ap ��

��

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

��

ap [ -form File | -format String ] [ -normalize | -nonormalize ] [ -width Number ] Address

��

ap ��� ��� �� ��� �������. ���� ap ��� ���� ����. ap ��� �

���� �� �����. ����� � ��� �� �� ��� /usr/lib/mh/ap� �� �����.

ap ��� �� ���� ���� ���� �� ��� ����� �����. ap ��� �� �

� �� ��� ARPA RFC 822 �����. � � ��� ����, ap ��� �� � � ��

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

86 �� ���, � 1 �

Page 103: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-form � -format ��� ����, �� ��� �� ��� ��� �� � ���.

���

-form File Address ���� ��� �� ���� ��� File �� ��� �� ���� ���.-format String Address ���� ��� �� ���� ��� String �� ��� �� ���� ���. �

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

%<{error}%{error}:%{Address}%:%(putstr(proper{Address}))%>

-help �� ��, �� �� � �(��) � �� ��� �����.

�: MH� ��, � ��� ��� ��� ����� ���.-nonormalize ���� �� ��� �� ��� ���� ��� ����.-normalize ���� �� ��� �� ��� ���� ����. � ��� � ����.-width Number ap ��� ���� � � �� ��� � � �� ��� �����. � �� �����

����.

��

/etc/mh/mtstailor MH �� ��� �����.$HOME/.mh_profile MH ��� ���� �����.

�� ��

ali ��, dp ��, scan ��.

.mh_alias �� ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

apply ��

��

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

��

apply [ -aCharacter ] [ -Number ] CommandString Parameter ...

��

apply ��� Parameter ���� �� ��� CommandString ���� �#� ���� �� �

��� �����. �����, Parameter �� ����� ����. ��� -Number ��� ���

�� ���� ���� Parameter �� �� �����. Number �� 0��, �� ���� Parameter

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

�� ���(���) 87

Page 104: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

%n(n� 1�� 9��� ��) ��� ���� CommandString� ����, %n� �� ���� �� �

CommandString �� �� n�� �� Parameter ��� �����. � ���� �� ��, apply

��� -Number ��� ����, CommandString� ���� ���� �� CommandString ��

��� n� ��� ���.

%(��� ��)� �� � ��� ��� -a ��� ��� �� ���� �� � ���. ��

�, -a@� @1� @2 ��� CommandString ��� �� ���� �� � �� ���� � ��

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

�:

1. CommandString�� ��-�� ��� ��� ���� ����, ��� ��� ‘ ’(�� �� �

�)� � �� ����.

2. -a ��� ���� ��� �� � �� ��� %(��� ��)� �� � ����.

���

-aCharacter ��(% ��)� ��� �� ���� ����� ���.-Number CommandString� �� ��� �� �� ���� �� �����.

��

1. ls ��� ��� ��� ��� ����, �� �� ������.

apply echo *

2. a1 ��� b1 ��� ����, a2 ��� b2 ��� ����� �� �� ������.

apply -2 cmp a1 b1 a2 b2

3. who ��� 5� �����, �� �� ������.

apply -0 who 1 2 3 4 5

4. �� ����� � �� ��� /usr/joe ����� �����, �� �� ������.

apply ’ln %1 /usr/joe’ *

�� ��

xargs ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ��.

88 �� ���, � 1 �

Page 105: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

apropos ��

��

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

��

apropos [ -M PathName ] Keyword ...

��

apropos ��� ���� Keyword ���� ���� �� � ��� � � ��� ��� ��

���. apropos ��� ��� ����� ���, ��� ���� �� ���� ����. �

��� ��� ��� �����. �� �, �� compile� � � apropos ��� �� compiler�

�� ����� �� ���. ��� � � ������� /usr/share/man/whatis��, catman -w

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

apropos ��� ��� ��� �� ��� ���� man Section Title� �� � ���. �� �,

apropos ��� ��� printf(3)�� man 3 printf� ��� printf ���� �� ��� ���

� � � ���.

apropos ��� -k ��� ���� man ��� �����.

�: /usr/share/man/whatis ������� catman -w ��� ��� HTML �������� �

���, �� 3� �� 2 �� 3� ����. ��� �� ��� ��� man ��� ������.

���

-M PathName �� �� ��� �����. �� ��� Pathname ���� ����, ���� �� �

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

��

1. ��� password�� ��� ���� � ���� ��� ��� �� �� ������.

apropos password

2. ��� editor�� ��� ���� � ���� ��� ��� �� �� ������.

apropos editor

��

/usr/share/man/whatis whatis ������� �����.

�� ���(���) 89

Page 106: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

catman ��, man ��, whatis ��.

ar ��

��

linkage ���� ����, ��� �� ������ �����.

��

ar [ -c ] [ -l ] [ -g | -o ] [ -s ] [ -v ] [ -C ] [ -T ] [ -z ] { -h | -p | -t | -x } [

-X {32|64|32_64}] ArchiveFile [ File ... ]

ar [ -c ] [ -l ] [ -g | -o ] [ -s ] [ -v ] [ -C ] [ -T ] [ -z ] { -m | -r [ -u ] } [ {

-a | -b | -i } PositionName ] [ -X {32|64|32_64}] ArchiveFile File ...

ar [ -c ] [ -l ] [ -g | -o ] [ -s ] [ -v ] [ -C ] [ -T ] [ -z ] { -d | -q } [ -X

{32|64|32_64}] ArchiveFile File ...

ar [ -c ] [ -l ] [ -v ] [ -C ] [ -T ] [ -z ] { -g | -o | -s | -w } [ -X {32|64|32_64}]

ArchiveFile

��

ar ��� linkage ���� ���� �� ������ �����. ar ��� �� ��� �� � � �

�� ar ��� ���� � � ��� ��� ��� ������. ar ��� ������ � �,

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

��. ��� ��� � �� ��� �� � ��� �� ��� ar �� ��� ������.

ar ��� ���� � �� �� ��� ���. �� ��� ��(Big Archive Format)� ar_big�

� � �� ���� 32�� � 64��� ���� ��� �� �����. �� ��� ��(Small Archive

Format)� AIX 4.3 �� �� ���� ���� ���� ��� � �� � ���. -g ��

� ������. 64�� ����� �� �� ���� ���� ��, ar� -g� �� �� �����

�� ���� ����. � ��, ar ��� 32�� ���� ��� ����, ���� 64�� ���

� ��� �����. � ��� ����, -X ��� ����� OBJECT_MODE �� �� ��

����.

���

ar ��� �� �, cClosTv ���� # �� �� ��� �� � ���. dhmopqrstwx �

� ���� ��� ��� ���� ���. -m �� -r ��� ���, � �� ��(-a, -b ��

-i)� �� � ���. -m �� -r ��� ���, � �� ��(-a, -b �� -i)� �� ��

���. -a, -b �� -i ��� �� ArchiveFile(PositionName)�� �� ��� �� �� ���. �

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

90 �� ���, � 1 �

Page 107: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-a PositionName PositionName ���� �� ��� �� �� �� ��� ��� ��� �� ���

��.-b PositionName PositionName ���� �� ��� �� �� �� ��� ��� ��� �� ����

�.-c ������ � � ��� �� ��� ���� ��� ���.-C ��� ��� �� ���� � ��� ��� ���� �� �����.-d �� � � ��� �������� ����.-g ��� ��� ��� ��, �� �� � �� �� �� ��� �����. ��

� ���, -g ��� ��� ��� ����� ��� ��� �� ����� �� �

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

� �� ���� �� �� ���� � � ���. 64��� XCOFF �����

� ���� �� ���� ���� � � ����.-h �� � � ��� ��� � � � � �� �� ��� �����. �� ���

���� ���, ar ��� �� �� ��� � ��� �����. � ��� -z ��

� �� �� � ����.-i PositionName PositionName ���� �� ��� �� �� �� ��� ��� ��� �� ����

�(-b� ��).-l TMPDIR ���� � ��(��) ����� �� ��� ����(� ��, /tmp).-m �� � � ��� ����� �� � �� �����. �� � � ��� � �� �

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

���.-o ��� ��� ��� ��, �� �� � �� �� �� ��� �����. ��

� ���, -o ��� ��� ��� ����� ��� ��� �� ����� �� �

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

�� �� �� ���� �� �� ���� � � ���.-p Files ���� ��� ��� �� �� ��� ���� �� �� ArchiveFile ����

��� �� ��� ��� �� ��� �����.-q �� � � ��� ����� �� �����. ��� ��� � � ����, � ���

������ � � �����.-r �� � � ��� � ������ ���� ��, �� � � ��� �����. ��

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

� �� �� �� ����. -u ��(�)� �� ����, -r ��� ����� �

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

��� ��� ��� �� ������ ���� ��� ar ��� ��� �����. � �

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

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

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

���. ������� strip ��� ��� �� ����� �� ��� �����, � �

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

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

�.-T ��� ��� ��� �� ���� ���� ��� ��, ��� ����. �� ��

�� ��� ��� ��� � 255��� �����, � ��� �� ��� ���

�.-u ����� ��� ��� �� ��� �����(��� ��� -r �� ��).-v � ������ ��� ��� ��� ��� �� ��� �����. -t ��� ��

���� ls -l ��� ���! ���� �����. -x ��� ����, �� ��

��� ��� ���. -h ��� �� ����, �� ��� �� �� � � ����

�.

�� ���(���) 91

Page 108: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-w ��� �� ��� �����. ��� ��� ���� � ��� ��� �� ��

���.-x �� � � ��� �� ����� ��� �� � � ��� �����. ��� ���

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

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

����.-X mode ar ��� ���� �� ���� ��� ��� �����. mode� � � �����.

32 32�� ���� ��� ��

64 64�� ���� ��� ��

32_64 32��� 64�� ���� ��� �� ��

� �� 32�� ���� ��� ��(64�� ����� ��)�� ����. mode�

OBJECT_MODE �� �� ��� � � �� ��� . �� � ,

OBJECT_MODE=64� ar ��� 64�� ����� ���� 32�� ����� ����

� ���. -X ���

OBJECT_MODE �� ������.-z ���� �� ��� ��� ��� ��� �� �� �� �����. �� ��

���� ����, ���� � �� ��� � �� � �����. � ��� -h

��� �� �� � ����.ArchiveFile ��� �� ��� ����, �� ������.MemberName ... ��� ��� ��.

�� ��

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

0 ����� ��� ���.>0 ��� ������.

��

1. ������ ����, �� �� ������.

ar -v -q lib.a strlen.o strcpy.o

lib.a ������ �� ��, � ��� ������ �� strlen.o � strcpy.o ��� ��

� �����. lib.a ������ ��, � ��� ��� �� �� ��� �� ����� �

� � ��� �����. v ��� �� �� ���� �, � � ��� ar ��� ��� ��

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

2. ������ ��� �����, �� �� ������.

ar -v -t lib.a

� ��� lib.a ������ ��� ����, ls -l ��� ��� ��� ���� �����. �

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

3. ������ � ��� ����� �����, �� �� ������.

ar -v -r lib.a strlen.o strcat.o

92 �� ���, � 1 �

Page 109: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� ���� �� strlen.o� strcat.o� �����. lib.a� �� 1�! �� ��

strlen.o ��� �����. strcat.o�� ��� ��� ���� �� ��� ������ �� �

����.

4. � ��� � �� �����, �� �� ������.

ar -v -r -b strlen.o lib.a strcmp.o

� ��� ���� strcmp.o ��� ����, � ��� strlen.o �� �� ����.

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

ar -v -r -u lib.a strcpy.o

� ��� ���� ��� strcpy.o ��� �����, �� strcpy.o� ����� ������ �

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

6. ����� ��� ��� ����, �� �� ������.

ar -v -m -a strcmp.o lib.a strcat.o strcpy.o

� ��� ���� �� strcat.o� strcpy.o� strcmp.o �� � � �� �����.

strcat.o� strcpy.o� ��� ��� ��� ���. , ���� �� strcpy.o ��� strcat.o

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

7. ����� ��� �����, �� �� ������.

ar -v -x lib.a strcat.o strcpy.o

� ��� �� strcat.o� strcpy.o� strcat.o� strcpy.o�� ��� �����.

8. ��� ��� ��� ����, �� �� ������.

ar -p lib.a strcpy.o >stringcopy.o

� ��� �� strcpy.o� stringcopy.o�� ��� �����.

9. ��� ����, �� �� ������.

ar -v -d lib.a strlen.o

� ��� �� strlen.o� lib.a ������� ����.

10. ld ���� �� � �� ����� ��� ������ ����, �� �� ������.

ar -r -v libshr.a shrsub.o shrsub2.o shrsub3.o ...

� ��� shrsub.o, shrsub2.o, shrsub3.o �� �� ����� libshr.a�� ��� ����

�� ����. libshr.a ��� ������ ��� main ���� ����� �����,

� ��� ������.

cc -o main main.c -L/u/sharedlib -lshr

�� main ���� �� �����. libshr.a� ���� � main ���� ���� �� �

�� ��� ����� ��� ���. -l ��� libshr.a ������� ��� �� �� �

����.

�� ���(���) 93

Page 110: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

11. 32�� ���� ��� ���� lib.a� ��� �����, �� �� ������.

ar -X64 -t -v lib.a

12. lib.a��� �� 32�� ���� ��� �����, �� �� ������.

ar -X32 -x lib.a

13. 32��, 64�� �� ����� ��� ���� lib.a� �� ��� �����, �� �� ���

���.

ar -X32_64 -t -v lib.a

��

/tmp/ar* �� ��� �����.

�� ��

ld ��, lorder ��, make ��, nm ��, strip ��.

ar �� ��(Big) � ar �� ��(Small).

arithmetic ��

��

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

��

arithmetic [ + ] [ - ] [ x ] [ / ] [ Range ]

��

arithmetic ��� �� � ��� ����, �� �� ��� �����. �� "��, ����

Right!� ���� �� ��� ���. �� ��� What?� �����. � �� �� ��� ��

���. 20 ��� � �� arithmetic ��� "� �� �� �� ��� ��� ��� � � ��� �

��.

arithmetic ��� ��� �� ��� � ��� ����. � �� ��� �� ������ ��� �

�� �����.

��� ����, ����(Ctrl-C) �� ����. arithmetic ��� ��� ��� ��� �

����.

94 �� ���, � 1 �

Page 111: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

�� ��� arithmetic ��� ��� �����. � ��� �� ����.

+ �� ��� �����.- �� ��� �����.x �� ��� �����./ ��� ��� �����.Range ���� ��� � � ���� 10�����. � � 99�����(99 ��). ��� �� ��� ��, � � �� �

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

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

��� ��� ��� arithmetic ��� ��� ��� �� � � � � 10� ����. � ��

� �� ���(+, -, x, /)� ���� ���� ��� ���� ��� ��� ��� �����.

��

1. 0�� 10��� ��� ��� ��� ��� �����, �� �� ������.

�� ��

2. 0�� 50��� ��� ��� ��, �� � ���� �����, �� �� ������.

arithmetic +x/ 50

��

/usr/games ����� ��� �.

�� ��

back ��, bj ��, craps ��, fish ��, fortune ��, hangman ��, moo ��, number ��, quiz

��, ttt ��, turnoff ��, turnon ��, wump ��.

arp ��

��

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

��

ARP � ��

arp { [ -t ifType ] HostName | -a [ n ] [ /dev/kmem ] }

ARP ATM � ��

arp { -tatm HostName | -a [ n ] [ /dev/kmem ] [ pvc | svc ] }

�� ���(���) 95

Page 112: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ARP � ��

arp [ -t ifType ] -d HostName

PVC ARP ATM � ��

arp -tatm -d pvc vpi:vciif ifName

ARP � ��

arp [ -t ifType ] -s Type HostName AdapterAddress [ Route ] [ temp ] [ pub ]

SVC ARP ATM � ��

arp -tatm -s Type HostName AdapterAddress [ temp ]

PVC ARP ATM � ��

arp -tatm -s Type pvc vpi:vci { HostName | if ifName } [ no-llc ] [ no-arp ] [ temp ]

� ���� ARP � ��

arp [ -t ifType ] -f FileName [ Type ]

��

arp ��� �� �� ���(ARP)� ���� ���-�-��� �� � ��� ���� �����.

arp ��� HostName �� ��� ���� �� ARP ��� �����. ���� ���� �� �

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

���

-a ���: { [ -tifType ] HostName | -a [ n ] [ /dev/kmem ] }

�� ARP ��� �� �����. �� ��� �� ARP ��� ����� -a /dev/kmem �

�� ������. ‘n’ ���� ��� �� ��� ������.

���: { -t atmHostName | -a [ n ] [ /dev/kmem ] [ pvc | svc ] }

pvc� ���� ATM � �� ��(PVC) ��� �� ���� ����, svc� ���� ATM �

� �� ��(SVC) ��� �� ���� �����. pvc | svc ���� ����, �� ATM �

� ��� �����.-d ���: [ -t ifType ] -d HostName

����� �� ��� ��� � ��, HostName �� ��� ���� ��� ����.

���: -t atm -d pvc vpi:vci if ifName

��� �� � vpi:vci� ��� PVC ARP� ��� ����. vpi:vci �� � �� �

�� �����. ifname �� �� ��� � ATM ������ ��� �����.

96 �� ���, � 1 �

Page 113: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-f FileName[Type] FileName �� ��� ��� �� ARP ���� � ��� ����� ���. ��� ���

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

[Type] HostName AdapterAddress [Route] [temp] [pub]

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

Type ��� ��� ��� �����. ����� arp� �� � �� ��� ���� ��,

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

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

v ether: ��� �����

v 802.3: 802.3 �����

v fddi: ��� � ��� �����

v 802.5: �� � �����

HostName

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

AdapterAddress

� ���� �� ���� ��� ��� ���� � � 6�� 16� ��� ���

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

Route �� � �� ��� � ��� �����(FDDI) ��� ���� �� � ������

FDDI� �� ��� �����.

temp ARP �� ��� ������ �� �����. � ��� ����, ��� ���

�����.

pub � �� ��� ����� ��, ��� ��� ��� ��� �� ���� HostName �

�� �� ���� � ���� ARP ��� ����� �����.

�: -f ��� ATM� ���� ����.

�� ���(���) 97

Page 114: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-s ���: [ -t ifType ]-s Type HostName AdapterAddress [ Route ] [ temp ] [ pub ]

AdapterAddress �� �� ��� ��� ��� ��� HostName �� ���� ���� �

� Type �� ��� ��� ARP ��� ����. ��� ��� ���� � � 6�� 16�

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

Type HostName AdapterAddress [Route] [temp] [pub]

�� Type, HostName, AdapterAddress, Route, temp � pub ���� ��� ��� -f ��

� ���� ����.

-t atm -s Type HostName AdapterAddress [ temp ]� ���.

ATMAddress �� �� ��� ��� ��� ��� HostName �� ���� �� ����

�� ARP ��� SVC ��� ����. ATM ��� ���� � � 20�� 16� ��� ��

���. � ��� ���, IP ����� IP ��� ���� � ARP �� ���� ���� �

� ���.

���: -t atm -s Type pvc vpi:vci { HostName | if ifName } [ no-llc ] [ no-arp ] [ temp ]

vpi:vci� �� ��� PVC� ��� HostName �� ���� �� ���� �� ARP ���

PVC ��� ����. �� Hostname� �� ifname � ��� ���� ���. no-llc ���

LLC/SNAP ���� � �� ����� ���� �� ��� ���� � �����. � ��

�� Hostname� ���� ���. no-arp ��� ARP ���� � �� ����� ����

�� ��� ���� � �����. � ���� Hostname� ���� ���.

temp ���� ARP �� ��� ������ �� �����. � ��� ����, ��� �

�� �����.-t ifType -t iftype ��� ���� ������ ��� ���� � �����. �� �� ��� ��

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

v et: IEEE 802.3 ���(inet, xns)

v tr: �� �(inet, xns)

v xt: X.25(inet)

v sl: �� � IP(inet)

v lo: ��(inet)

v op: ��(inet)

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

v at: ATM

��

1. ���� � �� ��� ��� � ��� ���� arp �� ��� �����, �� �� �

�����.

arp -s 802.3 host2 0:dd:0:a:85:0 temp

2. arp ���� ��� ���� � �� ��� ����, �� �� ������.

arp -d host1 flag

98 �� ���, � 1 �

Page 115: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. atm ��� host1� arp ��� �����, �� �� ������.

arp -t atm -a host1

4. ATM ��� host2� �� PVC ARP ��� �����, �� �� ������.

arp -t atm -s atm pvc 0:20 host2

5. ����� at0� �� PVC ARP ��� �����, �� �� ������.

arp -t atm -s atm pvc 0:20 if at0

�� ��

ifconfig ��, netstat ��.

inetd �.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Protocols.

as ��

��

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

��

as [ -a Mode ] [ -o ObjectFile ] [ -n Name ] [ -u ] [ -l [ ListFile ] ] [ -W | -w ] [ -x [ XCrossFile

] ] [ -s [ ListFile ] ] [ -m ModeName ] [-Eoff|on ] [ -poff|on ] [ -i ] [ -v ] [ File ]

��

as ��� ��� ��� File(�� �� � ��� .s ��� ��)� �� �����. File� ���

� ��� as ��� �� ��� �� �����. ��� � �� �� a.out ��� �����. ���

XCOFF �� ���� �����.

as ��� �� ��� �����.

���

-a Mode as ��� ���� �� �����. � ��, as ��� 32�� ��� �����, 32�� �

� ��� � �� -a32� ����, 64�� �� ��� � �� -a64� ��� ��

��� �� � ���.

�� ���(���) 99

Page 116: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-l[ListFile] ��� ���� ����. �� ��� ���� ���, �� �� ��� �� ��� .lst

� ��� ��� � � ��� ���. �� �� �� �� ��� .s��, �� � ��

����.

sourcefile.xyz

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

sourcefile.lst

�� �� �� ������ � ��, ��� ��� �� ��� ���� �� -l ���

����, ��� �� ��� a.lst���.-m ModeName ��� �� �����. � ��� .machine �� ��(pseudo-op)�� �� � ����.

� ��� ���� ��� ��� .machine �� ��� �� ���� ���� ���, �

� ��� �� �����. � � ��� ��� �� ���� POWER ���/PowerPC

����� ��, �� POWER ���/PowerPC� ��� ��(POWER ���/PowerPC ���

� � ���� �� �� ��� ��� ��� ��)� �� ��� ����.

���� �� ��� �� ���� �� ���� .machine �� ��� ���, ��� �

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

-m ��� ����, ModeName �� � � � ��� �����.

″″ �� ���� POWER ���/PowerPC ����� �� � � ��� �� ���

�� �����, POWER ���/PowerPC ���� � ���� �� �� ��� ��

��� ����. -m� �(null) ��� ��� ��� �� ���(� �� �� ��

��).

com POWER ���/PowerPC ���� �. �� ����� POWER ��� � PowerPC

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

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

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

�: POWER ���� �� ��� AIX 5.1 � ��� PowerPC 601 RISC ����

����� �����, PowerPC ��� ���� ����. � ���� com ���

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

any �� �� �����. ���� � ��� ����, �� �� ��� ���� ��

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

� �����.

�: POWER ��� � PowerPC� �� ��� ��� any ��� �� �� �

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

100 �� ���, � 1 �

Page 117: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ppc PowerPC �� �����. �� ����� PowerPC ��� �� � ���. �

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

�:

1. PowerPC� �� ��� PowerPC ����� ���� ppc �� ��� �

���. ppc �� �� ��� ���� �� ���� � ���� ��

�� ��� ����.

2. �� ��� PowerPC ��� ����, AIX 5.1 � ��� PowerPC 601 RISC �

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

ppc64 POWER �� 64�� �� �����. �� ����� 64�� POWER �� ��

� �����.

pwr POWER �� �����. �� ���� POWER ��� ��� POWER� ���

� �� � ���.

pwr2(pwrx)

AIX 5.1��� POWER2 �� �����. �� ���� AIX 5.1 � ��� POWER

��� �� POWER2 �� ����� �� � ���. pwr2� ��� ����.

�� ��� � � pwrx� pwr2� ���� �� ����.

�: POWER �� ��� ��� AIX 5.1 � ��� POWER2 �� ��� ��� ��

�����.

601 AIX 5.1��� PowerPC 601 RISC ������� �� �����. AIX 5.1 � �

�� �� ���� PowerPC 601 RISC �������� ����� �� � �

��.

PowerPC 601 RISC ������� ���� AIX 5.1 � ��� POWER �� �%

��� � �� ���. ���, �� PowerPC ��� AIX 5.1 � ��� PowerPC

601 RISC ��������� ���� �� �� ���.

��: �� PowerPC ���� �� � �� ��� ������� 601 ���

�� ���� �� �� �����. � ������� com �� ppc ���

�� ���� ���.

AIX 5.1 � ��� PowerPC 601 RISC �������� POWER �� �%� �

POWER �� �%�� ���� �� ## POWER ��� ���� �����. �� �

�, POWER �� ����� ���� �� ����� ��� POWER �����

� �� � ���.

603 AIX 5.1��� PowerPC 603 RISC ������� �� �����. �� ���

� AIX 5.1 � ��� PowerPC 603 RISC �������� ����� �� �

���.

604 PowerPC 604 RISC ������� �� �����. �� ����� PowerPC 604

RISC ������� ��� �� � ���.

A35 A35 �� �����. �� ���� A35 ���� �� � ���.-n Name ��� ���� ��� ���� ��� �����. � �� ��, ���� ��� �� ��

� ��� � ���.-o ObjectFile ��� ���� ��� a.out �� � ��� ��� �����.

�� ���(���) 101

Page 118: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-s[ListFile] POWER ��� � PowerPC� �� ��� �� ��� ��� ���� ���� ��� �

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

�, ��� PowerPC ���� �� ��� ���� POWER ��� ���� ����, ��

� POWER ���� ���� �� PowerPC ���� �����.

��� �� ��� POWER ��� � PowerPC�� � ���� �����, ��� �� �,

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

-s ��� ��� ��� ��� ��� � �����, -l ��� �����. � �� �

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

-l ��� �� ��� ListFile �� ��� ��� �� ��� �����. ��� ��� �

� ��� -l �� -s ��� �� ���� ���, � � ��� �� ��� �� �� ���

�� ��� .lst� ��� ����.-u �� ��� ���� ��� ���� �� ��� ��(extern) ��� ����. ��� ��

�, ���� �� ��� ��� �� ��� �����.-W �� �� ��(POWER ��� � PowerPC ��� ��)� ��� �� �� ��� ���

������.-w �� �� ��(POWER ��� � PowerPC ��� ��)� ��� �� �� ��� ���

�� �����.

�: -W �� -w� ���� �� ��, �� ��� ����� � ��� ���� ����.-x[XCrossFile] �� �� ��� ����. �� ��� ���� ���, �� �� ��� �� ��� .xref

� ��� ��� � � ��� ���. �� �� ��� .s��, �� � �� ����.

sourcefile.xyz

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

sourcefile.xref

�: -x ��� ���� ���� ���� ��� ��� ����.-E �� v2.00 ���� �� ��� ���(-Eon) �� ���(-Eoff) �� �����. �

�� v2.00 ��� �����.-p �� v2.00 � ��(-pon)� ��� �� �� v2.00 � ��(-poff)� ��� �� �

����. � �� �� v2.00 � ��� �����.-i � �� ��� ����� �����. � �� � ��� ���� ����. � ��� -p

��� ��� ��� �����.-v � ��� �� ��� �����.File �� ��� �����. ��� ���� ���, �� ������ �� �� ����.

�� ��

OBJECT_MODE

���� OBJECT_MODE �� �� ��� ����. -a32 �� -a64 � �� �� ����

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

� ��� ��� ���� 0� �� �� �� ��� ����. ��� ��� ���

��� �� ����.

OBJECT_MODE = 32 32�� ���� �� ����. � � ��� ��� com���.

OBJECT_MODE = 64 64�� ���� �(XCOFF64 ��)� ����. � � ��� ��

� ppc64���.

OBJECT_MODE = 32_64 ���� ����.

OBJECT_MODE = �� ���� ����.

102 �� ���, � 1 �

Page 119: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. file.lstf�� ��� ��� ��� file.o�� ��� ���� ��� ����, �� �� �����

�.

as -l -o file.o file.s

2. AIX 5.1 � ��� 601 ����� ���� file.o�� ���� ��� ��� file.lst�� ��

� ��� ��� POWER ��� � PowerPC ���� �� �� ��� ����, �� �� �

�����.

as -s -m 601 -o file.o file.s

3. � � ��� �� ��� file.o�� ���� ��� ��� ��� �� �� �� xxx.lst�

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

as -lxxx.lst -o file.o file.s

��

/usr/ccs/bin/as as ��� �����.a.out � � �� �����.

�� ��

ld ��, m4 ��.

���� ��� ���.

asa �� fpr ��

��

FORTRAN ��� � ��� �� �� �����.

��

{ asa | fpr } [ File ... ]

��

asa � fpr ��� FORTRAN ��� ��� � ���� � �� �� ����. � ���

�� ���! ���� FORTRAN ��� �� �� �� ��� ��� ��� � �� �� ��

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

File �� �� �� � asa � fpr ��� �� �� ��� ��� �����. asa � fpr ��� �

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

�� ���(���) 103

Page 120: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

�� �����. � �� ��� ��, 0, ��(-), 1 �� ��� ��(+)��, � �� � ��� �� �

����.

�� ���� � � ����� �� �� �����.0 ���� � � ����� �� �� �����.- ���� � � ����� �� �� �����.1 ���� � ���� ���� ������.+ ���� ����� ��, �� �� �� ��� � �� � � ���� �����.

� �� � �� �� � �� ��� ���� ���� ���� ���, ��� �� ���! ��� �

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

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

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

�: 170� ��� �� �� �� ��� ���� � ����.

�� ��

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

0 ����� ��� ���.>0 ��� ������.

��

1. � ���� fpr ��� ��� FORTRAN ����� �� a.out ��� ��� �� ��� �

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

a.out | fpr | qprt

2. � ���� asa ��� ��� asa ��� �� f77.output ��� ��� ��� �� ���

FORTRAN�� ����� ��� �� ��� ������.

asa f77.output | qprt

��

/usr/ucb/fpr fpr ��� �����./usr/bin/asa asa ��� �����.

�� ��

fsplit ��, qprt ��, struct ��.

104 �� ���, � 1 �

Page 121: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

at ��

��

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

��

�� �� ���� ��

at [ -c | -k | -s | -q Queue ] [ -m ] [ -f File ] { -t Date |Time [ Day ] [ Increment ] }

��� �� �

at -l [ -o ] [ Job ... | -q Queue ]

at -n [ User ]

��� �� �

at -r [ -F ] [ -i ] Job ...

at -r [ -F ] [ -i ] -u User

��

at ��� ��� �� ��� ��� �� ������ ����. ���� ��� �� �� � � ��

� ���.

at ��� ���� �� ��� ����� �� �, �� ������ �� �� ��� ��� ��� �

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

at ��� ����, ��� ��� ��� �����. �� �� ���, �� � �� � ���� �

���.

/var/adm/cron/at.allow � /var/adm/cron/at.deny ��� �� ���� at ��� �� � ��� �

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

�� � �� ��� � � � ��� ��� �����. �� at.allow ��� �����.

rootnickdeesarah

at.allow ��� � ��, � ��� ��� ��� ���� ���� at ��� �� � ���. ��

� ���� ���� ��� ��� at.deny ��� ��� ���� at ��� ���� ��� �

���. at.deny ��� ����, � ��� ��� ���� � �� ���� at ��� �� � �

��.

� �� � ��� ����, ���� at ��� �� � ����.

�� ���(���) 105

Page 122: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v at.allow ��� at.deny ��� ����(�� ���� ��).

v at.allow ��� ��, ���� ��� ��� ��� ����.

v at.deny ��� � ���� ��� ��� ��� ���.

at.allow ��� �� at.deny ��� ��� �� ��, �� ��� � ���� at ��� ���

�� �� � ���.

�� ��� ����� �����, � �� � � ���� ���. -t Date �� �� Time, Day

� Increment ���� ��� � � �� �� ���.

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

[[CC]YY]MMDDhhmm[.SS]

Date �� ��� �� �� �����.

CC ��� � � ��(��)� �����.YY ��� � �� � ��� �����.MM �� �����(01�� 12��).DD �� �����(01�� 31��).hh �� �����(00�� 23��).mm � �����(00�� 59��).SS �� �����(00�� 59��).

CC� YY ��� �� �����. �� ���� ���, �� ��� �����. YY ��� ���� CC

��� ���� ��� CC ��� �� �� �����.

v YY ��� �� 70�� 99��� ��, CC ��� �� 19� ����.

v YY ��� �� 00�� 37��� ��, CC ��� �� 20�� ����.

v SS� � � �� 00���.

� ��� �� ���� � � TZ �� �� �� �� �� ����.

�� ��� ��� � ��� Time ���� ��� �� � ���. at ��� �� �� �

�� ��� � �� �����. � � �� � ��� �����. LC_TIME ��� ��� T_FMT

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

� ��� � ���. � � ��� Hour:Minute���.

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

v am

v pm

v zulu

106 �� ���, � 1 �

Page 123: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

am �� pm� ���� �� ��, at ��� 24� ��� �����. � ��� � ���� �

�� ��� ���� � � ���. am � pm ��� LC_TIME ��� ���� AM_STR

� PM_STR ������ ��� ����. �� zulu� � � GMT(Greenwich Mean Time)�� �

����.

at ��� �� � ��� Time ���� ��� ��� �����.

v noon

v midnight

v now

v A: AM� ��

v P: PM� ��

v N: noon� ��

v M: midnight� ��

� �� � �� ��(� �� �� �� ��) �� �� �� ��� ��� Day ���� �� �

���. LC_TIME ��� ��� D_FMT ��� � � �� ��� �����. (� ��, � ��

�� ���.) LC_TIME ��� ��� DAY_1 - DAY_7 ��� �� ��� �����. LC_TIME

��� ��� ABDAY_1 - ABDAY_7 ��� �� � ��� �����. LC_TIME ��� ���

MON_1 - MON_12 ��� �� ��� �����. LC_TIME ��� ��� ABMON_1 -

ABMON_12 ��� �� � ��� �����. � ��, ��� ��� ����, � ��� ��

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

at ��� Day ���� �� ��� � � ���� today � tomorrow� �����. ��� � �

�� � �� ����, today� � � Day���. ��� �� �� ��� ���(��� ��� ���

� �� ��), � ��� � � �����.

���

-c � �� ���� � csh ��� ����� �����.-f File �� �� � ���� ��� ��� �����.-F � ��� �����. -r ��� �� � ��� ������.-i ��� �� �����. -r ��� �� � ��� ������.-k ksh ��� ��� �� �� �� �����.-l ���� �� ��� �� �����. ���� �� ��� ��� ��� ��, � �

��� ��� �� ��� � ���.-m ��� �� ��� ��� ��� ����� �����.-n [ User ] ���� ����� � ��� �� �����. ���� �� ��� ��� ��� �

�, � ���� ����� �� ��� �� � ���.-o �� �� ��� ��� �� �����. � ��� -l ��� �� �� �� ���

��.

�� ���(���) 107

Page 124: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-q Queue �� ����� �� �� ���� �����. � ��� -l ��� �� ����, �

�� Queue �� ��� ������ �����. � ��, at �� a ����� ��

��. b, c � d ����� batch �, cron �, sync �� � ���� ��

�.

-q a at �� ����� ����.

-q b batch �� ����� ����. batch ��� � ��� ��� at ��� �

����.

�: b ����� ����, ���� �� ������ ��� ����. �

�, ����� ��� �� ����, now ��� Time ���� ���

��.

-q e ksh �� ����� ����. -k ��� �����.

-q f csh �� ����� ����. -c ��� �����.-r Job... at �� batch ��� �� ��� ��� Job� �����. �� Job� at �� batch �

�� ��� �����. �� ��� ��� ���(su �� ��), �� �� �� �

���. �� ���� atrm ��� ��� � ���� ��� � �� �� ����

��� �� �� �� � ���.-s bsh ��(Bourne �)� ��� �� �� �� �����.-t Date Date �� ��� � � �� �� �����.-u User �� ���� �� �� ����. -r ��� �� �� ���� Job �(� �

�� at -r -u User�)� ���� ����.

����

Day � �� � �� ��(� �� �� �� ��) �� �� �� ��� ��� Day ���� �����.Increment ��� Increment ���� � � ��� � ���.

v +(��� ��) �� �� ��� � �� � ��

– minute[s]

– hour[s]

– day[s]

– week[s]

– month[s]

– year[s]

v ��� ��� next� � �� � �� � ��

– minute[s]

– hour[s]

– day[s]

– week[s]

– month[s]

– year[s]

108 �� ���, � 1 �

Page 125: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�� ���: �� ������ ��� ����� � �� �����, at ��� �� ��� ��

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

��� ��

AT_JobAdd ��� at �, ���� ��� � , ��� ��� ���� �����.

�� ���� ��� ���, �� ��� ��� ��� ��� ��� �� ��� ��� AIX 5L �

� 5.2 � ��� ″� ��″� ������.

�� ��

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

0 at ��� ���� �� ��, �� �� ������.>0 ��� ������.

��

1. ���� ��� ����� ����, �� �� ��� ������.

uuclean� ��� ����� ��, �� �� ������.

at 5 pm Fridayuuclean<Ctrl-D>

at now next weekuuclean<Ctrl-D>

uuclean� $HOME/bin/uuclean� �� �� �� ������.

at now + 2 days$HOME/bin/uuclean<Ctrl-D>

�: ����� ��� ��� ��� ����� �� ��, � ��� ��� ����� �

�� at ��� ��� ��� ���� ����, �� �� ��� ���� ���.

2. 1� 24� �� 3�� uuclean ��� �����, � �� � ��� ������.

echo uuclean | at 3:00 pm January 24

echo uuclean | at 3 pm Jan 24

echo uuclean | at 1500 jan 24

3. �� �� �����, � ��� � �� ��� �� ��� � ������ at ��� �

�����.

echo "ksh shellfile" | at now tomorrow

4. ��� ����� ��� �� �����, �� �� ������.

�� ���(���) 109

Page 126: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

at -l

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

at -r ctw.635677200.a

� ��� � ctw.635677200.a� �����. ��� �� ��� � ��� �����, at -l �

�� ������.

��

/var/adm/cron/FIFO crontab �� at ��� ��� � �� �� � cron �� ���

���� ��� ��� ��./usr/bin/at at ��� �����./var/adm/cron � cron ����� �����./var/adm/cron/at.allow ��� ���� ���� �����./var/adm/cron/at.deny ��� ���� ���� �����.

/var/spool/cron/atjobs at� �� �� � ����� �����.

�� ��

atq ��, atrm ��, auditpr ��, batch ��, bsh ��, kill ��, ksh ��, mail ��, nice ��, ps

��, sh ��, su ��.

cron �.

environment ��.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Input and Output

Redirection Overview��� ���� �� � ��� ���� ��� �� �����.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� National Language

Support Overview for Programming��� �� ��, �� �� � ���� �� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ����� �� ��, �� � � �

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

ate ��

��

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

110 �� ���, � 1 �

Page 127: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

ate

��

ate ��� ATE(��� �� �� ��) ���� �����. ATE ���� ������� �� �

�� � ��� �����. ������� �� ���� ���� ���� �����. ATE� ���

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

�: ATE� �����, ���� ��� ��� � ���(UUCP) ��� ����� ���. �

� ��� �� ���� SMIT(��� �� ����� ��)� ���� �� ���� ��� ���

��.

ATE� ��� ����, ���� �� �� � ��� �����. �� ���� ���� �, ���� �

� �� ���� ��! ���� ����, ��� ���, �� ���� � ��� �����. ATE

� �� ������� VT100 ��� �� �� � � ���.

ATE ���� �� �� ��� �����. ���� ���� �� ��� ��� �� ����

����, ��� �� ����, ��� ��� �����. ���� �� �� ���� ate ��� ��

��� �����. � ���� ��� � MAINMENU_KEY(�� Ctrl-V �)� ��, �� ��

�� �����. connect �� ��� ���� ��� ������.

ATE ���� � �� �� � ��� CAPTURE_KEY(�� Ctrl-B), PREVIOUS_KEY(�� CTRL-R),

MAINMENU_KEY(�� CTRL-V)� �����. � �� �� �� ATE ���� �� ����

��� ���� ����. �� � � � ATE � � �� ate.def �� ��� ���� � � �

��.

��

ATE ���� �����, �� �� ������.

ate

ATE ���� �� �� �����.

� ��

alter ATE ���� ��� �� �� ����� ����.break �� ���� �� ��� �������.connect �� ���� �����.directory ATE ���� ����� �����.help ATE �� ��� �� ��� ��� �����.modify �� �� ��� ��� �� ���� ����� ����.perform ���� ATE� ����� ������ ��� ��� �� � � ���.quit ��� �� �� ��(ATE) ���� ����.receive �� ������� ��� ����.send �� ���� ��� �����.terminate �� ����� ATE ��� ����.

�� ���(���) 111

Page 128: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

alter � ��

a [ l CharacterLength ] [ s StopBit ] [ p Parity ] [ r BaudRate ] [ d Device ] [ i DialPrefix ] [

f DialSuffix ] [ w Seconds ] [ a RedialAttempts ] [ t TransferProtocol ] [ c PacingType ]

�: alter �� �� ��� � � �� ate.def �� ��� ��� ���� � � ��

�.

alter �� ��� ��� �� �� ��(ATE)� �� �� ���� �� ��� ������. ate

��� ����� ���� ���� �� �� �����. alter �� ��� � ��� �� �� �

� ����.

v ��� �� ��

v �� ��

v �� � ��� ��

v �� ��

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

v ��� � ��� ��

v �� �� ���

v ��� �� �� �� �

���� ATE� � �, ���� ate.def �� ��� ��� � �� �����.

ATE(��� �� �� ��) �� � � ���� �� �� alter �� ��� ���� � �

� �����. � �� �����, ATE �� � � ��� �� ��� � ��� � alter

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

alter �� ��� � �� � ��� ��� � � ���. � ��� �� ����, � �� �

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

alter �� ��� �� �� ���� �����, ate.def �� ��� ������.

�� ��: � �� alter �� ��� ��� � � � �� �� ���� �����. �

�� ���, ATE �� �� ���� �� ��� �� �� �� �� a� ������.

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

� �� ��

�� �� �� ��� ��

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

�� � �� �� �

��� � �� � � � �

112 �� ���, � 1 �

Page 129: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

�)� ������.

� ���� ATE �� � � ��� ������, Enter �� ����.

���:

a RedialAttempts ATE ���� ���� � ���� � � � �� �����. RedialAttempts �� 0

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

��: 0(���� �) �� �� ��

� �: 0c PacingType ���� ��� ���� ��� �����.

� �: 0 (��� �)

�: xmodem ���� �� ���� PacingType �� �� �� ����.

PacingType� � � ��� � ���.

Character

� ��� ����. �� ASCII �� � �� ��� �����.

send �� �� �� � ���� ���� �� � �� ��� ���, � �� ����

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

receive �� ��� ���� � ��� �� ��� ��� ��� �, ���� �

�� � 30� � �����. receive �� ��� ����� ��� ��(CR) ���

����, �� ��� ��� �����. receive �� ��� 30� � ���� �� �

�� ����.

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

�. � � �� 0�� ��� ��� 0��� �����.d Device �� ���� ���� � ���� ��� ��� ��� �����.

��: ����� �� �� ��. �� ��� � 8��� � �� �����.

� �: tty0f DialSuffix ��� ��� �� ��� ��, ���� �� � � ��� ��� �����. ��� ��

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

��: 0(�) �� ��� �� ��. � 8��� � �� �����.

� �: � � �� ����.i DialPrefix ��� ��� �� ��� ��, ���� �� � � ��� ���� �����. ��� ��

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

��: ATDT, ATDP �� ���� ��� ��� � �. � 8��� � �� �����.

� �: ATDTl CharacterLength ��� ��� �� �� �����. �� �� �� ���� ���� �� ���� ���.

��: 7 �� 8

� �: 8

�� ���(���) 113

Page 130: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

p Parity ��� �� ����� �� �� ������� ���� ��� ��� ����. �� ���

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

�� � ���� � ���� ���, � �� �� 1��� �� � ��, ��� ��� �

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

��: 0(��� �� �), 1(��) �� 2(�)

� �: 0r BaudRate �� ��� bps(� �� ���)� �����. ��� ��� �� � �� ���� ��� ���

� ���.

��: 50, 75, 110, 134, 150, 300, 600, 1200, 1800, 2400, 4800, 9600 �� 19200

� �: 1200s StopBit ��� �� �, � ��� �� ���� � ��� �� ���� �� ��� �� �����. �

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

��: 1 �� 2

� �: 1t TransferProtocol ��� ���� ��� ���� ��� �����.

p �� �� ���� ��� ��� ����� � �� ��� ��� � (�)� ����

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

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

x ��� �� ��� ����, ���� ����� � 8�� �� �� ���.

��: p (pacing) �� x (xmodem)

� �: pw Seconds wait

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

� �����. attempts ��� 0�� ���� ����� ���� ����.

��: 0(���� �) �� �� ��

� �: 0

��:

1. � �� �����, ATE �� � � ��� �� ��� alter �� ��� ������.

a

� �� �����.

2. � ��� �� ��� ����, � �� �� ��� ��� ��� ������.

v rate ��� �� ����, �� �� ������.

r 9600

ATE� �� ���� �� ��� 9600bps� ����.

v wait ��� �� ����, �� �� ������.

114 �� ���, � 1 �

Page 131: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

w 7

�� ATE ��� ���� �� � � 7�� ����.

v alter ��� �� � � �� �����, ATE �� � � ��� ���� �� ��� a

�� � ��� ������. �� �, rate, wait � attempt �� ����, ATE �� �

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

a r 9600 w 5 a 1

ATE� �� ���� �� ��� 9600bps� ���, ����� �� � � 5�� ���, �����

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

break � ��

b

break �� ��� ��� �� �� ��(ATE) ����� ��� ��� �� ���� �� �

� ����. break �� ��� �� ����� �� ��� �������. ATE �� �� ���

break �� ��� �����.

��: break �� ��� �� ��� ��� �� � ���. ���� ���� �� � ��

�.

��: �� ��� �������, �� ���� ��� ����

MAINMENU_KEY(�� Ctrl-V � ��)� ����. ATE �� �� �� ���� �� �� ��

����.

b

�� �� �� ���� ���� ATE ���� �� �� �����. �� ATE ���� ���

�, � ATE �� ��� �� � ���.

connect � ��

c [ TelephoneNumber | PortName ]

ATE connect �� ��� ���� ATE(��� �� �� ��)� ��� �� ���� �� �

� ���. ATE ���� �� ��� connect �� ��� �����. ���� �� ��� ��

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

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

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

���� ���� ������ ��� �� ����� ���, �� ��� �� ���� pdisable ��

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

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

�� ���(���) 115

Page 132: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

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

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

PREVIOUS_KEY(�� Ctrl-R � ��)� �� TelephoneNumber ���� �� ������.

�� ����, ATE� ��� ���� ��� ��� ���� ��� �����.

����:

PortName �� ��� ���� ��� ��� �����.TelephoneNumber �� �� ���� �� � ���� ����� �����.

��:

1. �� �� ���� �����, ATE ���� �� �� ���� �� �� ������.

c tty0

� ��� �� tty0� ��� �� �����. ��� �����, ��� ���� ��� ���

����. ATE �� �� �� �����, ��� ��� ��� ���� MAINMENU_KEY(�

� Ctrl-V � ��)� ����.

2. �� ��� �� ���� �����, ATE ���� �� �� ���� �� �� ������.

c

ATE ���� �� ���� �� ��� ��, �� ��� ��� ��� ��� ����� �

�� �����. ��� �����, ATE� ��� ���� �� ��� ���� ��� ����

��� ��� �����. ��� ��� ��� ����, MAINMENU_KEY(�� Ctrl-V �)� �

� ATE �� �� �� �����.

3. �� ��� �� ���� �����, ATE ���� �� �� ���� �� �� ������.

c 2229999

� ��� ���� 222-9999� ������. ��� �����, ��� ���� ��� ��� ��

�� ��� ���� ��� ��� ����. ��� ��� ��� ����, MAINMENU_KEY(�

� Ctrl-V �)� �� ATE �� �� �� �����.

directory � ��

d

ATE directory �� ��� ���� ����� �����. ��� ������ ���� �� � ���

�� �� ���� �����. directory �� ��� ATE ���� �� ��� �����. directory

�� ��� ���� ����� � ��� ��� �� ��� �� ��(�� ��� �� ��)�� �

����.

116 �� ���, � 1 �

Page 133: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ATE� ����, ate.def �� ��� �� �� ����� ����. ate.def �� ��� �� ����

� �� ��, ��� �����. ���� ����� �� �� /usr/lib/dir���, � �� ate.def �

� ��� ��� � � ���. ���� ate.def �� ��� � ���� ����� ����,

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

���� ����� ATE ���� �� ���� �� ���� �� ��� �� �� ���� �

��� ���.

Name

Phone

Rate

Length

StopBit

Parity

Echo

Linefeed

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

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

���� ���� ��� �� ��� ��� AIX 5L Version 5.2 Files Reference� � ″Dialing Directory

File Format for ATE″� ������.

directory �� ��� ��� ���� ����� ��� ��� ����, �� �� �� ��� ���

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

��: ���� ����� �����, ���� �� �� ���� �� �� ������.

d

ate.def �� ���� ��� ���� ����� ���� �� ��� �� ���� �����. �

�� �� ���� ���� ��� ��� ������. ATE� ��� ����, ���� �� ���

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

AIX 5L �� 5.2 ��� ��� ��: � � ����� ATE ���� ���� �� ��� ����

��.

help � ��

h [ a ] [ b ] [ c ] [ d ] [ m ] [ p ] [ q ] [ r ] [ s ] [ t ]

ATE help �� ��� ATE �� ��� �� ��� ��� �����. ATE� ���� �� �� ��

��� help �� ��� �����. �� ATE �� ��� �� ��� ��� �� ����, ���

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

�� ���(���) 117

Page 134: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

help �� ��� �� �, ATE� ���� �� ��� �� ��� ���� ���� �� ���

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

�� ��, Enter� �� ��� ��� � ���� ������. ��� ��� ���, Enter� �

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

��� ��� ���, ATE �� ��� � ��� �� help �� ��� ������. ATE �� ���

��� �� ����.

�� ATE �� ��

a alter �� ��

b break �� ��

c connect �� ��

d directory �� ��

m modify �� ��

p perform �� ��

q quit �� ��

r receive �� ��

s send �� ��

t terminate �� ��

��:

1. � ��� �� ��� �� ��� ��� ���, ATE �� �� �� �� ������.

h c

connect(c) �� ��� �� ��� ��� �����. ��� ��� ��� � Enter �� ��,

ATE� help �� ��� ��� �� �����.

2. � �� ��� �� ��� ��� ���, ATE �� �� �� �� ������.

h r s

receive �� ��(r)� �� ��� ��� � �����. ��� ��� ��� �� Enter ��

����. send �� ��(s)� �� ��� ��� �����. ��� ��� � ��, Enter �� �

���. ��� ATE� help �� ��� ��� �� �����.

modify � ��

m [ n CaptureFileName ] [ e ] [ l ] [ v ] [ w ] [ x ]

�: � � CaptureFileName� �� modify �� �� ��� � ���� ate.def �� ����

���� � � ���.

modify �� ��� ��� �� �� ��(ATE)� �� �� ���� �� ��� ������.

modify �� ��� �� ����� �� �� ���� ATE �� ��� ����� ����.

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

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

– ���� �� ���� �� �� � �� ��� �����.

118 �� ���, � 1 �

Page 135: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

– �� �� �����.

– ���� DEC VT100 ��� �� �����.

– ���� �� ���� ����� ��� �� ���� �����.

– Xon/Xoff(transmitter on/off) �� �����.

���� ATE� ���, ���� ate.def �� ��� ��� � � ��� �����.

ATE �� � � ���� �� �� modify �� ��� ����, �� �� �����. ATE ��

� � ��� �� ��� m(modify �� �� ��)� ��� ��� ���� �� �� ��

� ���.

modify �� ��� � �� � ��� ��� � � ���. name �� ����, n �� �

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

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

modify �� ��� �� �� ���� �����, ATE� ���� ����� � ate.def �� �

�� ������.

�� ��: �� �� modify �� ���� �� � � �� ���� �����. �� ��

�����, ATE �� �� � �� ATE ���� �� �� �� �� �� �� m� ����

��.

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

� �� ��

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

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

�� � �� �� �

��� � �� � � � �

name �� ��� � ��� �� ����, �� �� �� ���� ��(COMMAND �

��)� ������. ��� �� �� ����� �����. �� ��� ��� ����, �� �

� ��� �� n(name ��)� �� ��� ��� ������.

�� ���� ATE �� �� ���� �� �� �����, Enter �� ����.

�� ���(���) 119

Page 136: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���:

e echo

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

�� ���� �� ��� ����, ��� ��� ���� �� ��� �����. echo

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

���� � � �� � � �����. echo ��� ������, ��� ���� � �

� �����.

��: � �� �

� �: �l linefeed

��� ��� ��!� �� ��� ��(CR) �� �� � �� ��� �����.

��: � �� �

� �: �n CaptureFileName name

write ��� � � ���, �� �� CAPTURE_KEY(�� Ctrl-B � ��)� � � �

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

��: ��� �� �� ��. � 18��� �� �� �����.

� �: capturev VT100

�� ��� DEC VT100 ��� �� �����. ��� �� ����� DEC VT100 �

� �� � ���. VT100 ��� � � ��, �� ��� ������� ���

���.

��: � �� �

� �: �

�: �� ��� � �� ����� ����. � ��� 132�, �� �� � ��

�� �, � � ��� 10� ����� �� � ��� �� ## DEC VT100

�� ���� ����.w write

� ���� �� ��(name ��� ��) � ����� ������. write ��� ��

�� CAPTURE_KEY � ��� �� ��� ���. ��� ��(CR) � � �� ��� �

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

���.

��: � �� �

� �: �

120 �� ���, � 1 �

Page 137: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

x Xon/Xoff

Xon/Xoff ���� ��� ��� ��� �� �� �����.

v Xoff �� ���, ��� �����.

v Xon �� ���, ��� �����.

v � ��� �� ����, Xoff �� �����.

v � ��� ��� � �� ����, Xon �� �����.

��: � �� �

� �: �

�: name �� ��� ��� �� �� ����, �� �� �� ��� �

����.

828-003 not ’command-name’ command is not valid.Enter the first letter of a commandfrom the list on the menu.

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

����.

��:

1. �� �� �����, ATE �� � � ��� �� ��� modify �� ��� ������.

m

�� �� �����.

2. �� ��� ���� ����, �� � ��� � �� ��� ��� ��� �����

�.

v linefeed ��� �� �����, �� �� ���� �� �� ������.

l

linefeed ��� �� �� ���� ���.

v name �� schedule� ����, �� �� ���� �� �� ������.

n schedule

�� ��� �� ���� schedule ��� ����.

3. modify �� ��� �� � �� �� �����, ATE �� � � ��� �� ����

m �� ��(modify �� ��� ��) �� � ��� ������.

v linefeed � echo ��� �� �����, ATE �� � � ��� ���� �� �� �

�����.

m l e

linefeed � echo ��� �� �� ���� ���. ��� �� ���� ��� �� ��

������.

�� ���(���) 121

Page 138: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v name �� schedule� ��� write� Xon/Xoff ��� �� �����, ATE �� � �

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

m n schedule w X

�� ��� �� ���� schedule ��� ���, write� Xon/Xoff ��� �� �� ���

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

perform � ��

p [ Command ]

ATE perform �� ��� ���� ATE� ����� ������ ��� ��� �� � �

���. ATE ���� �� �� �� ��� perform �� ��� �����. ��� ��� ����

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

��:

1. ������ ��� ��� �����, ATE ���� �� �� �� �� ���� �� �

� ������.

p

ATE� ����� �� ��� �����. ATE� ��� ��� �����. ��� ����, ATE�

perform �� ��� ��� �� �����.

2. �� ��� �����, ATE �� �� �� �� �� �� ���� �� �� ������.

p cat mystuff

ATE� cat ��� ��� mystuff ��� �����. cat ��� ����, ATE� perform ��

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

quit � ��

q

ATE quit �� ��� ��� �� �� ��(ATE) ���� ����. ATE� ���� �� ��

�� ��� quit �� ��� �����. quit �� ��� ���� ATE ���� ��� ��

��� �����.

��: ATE ���� ����, ATE �� � � ��� ���� �� �� ������.

q

ATE ���� ��� �� ��� �����.

receive � ��

r FileName

ATE receive �� ��� ���� ���� �� ������� ��� � � � ���. ATE receive

�� ��� ATE �� �� ��� �����.

122 �� ���, � 1 �

Page 139: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ATE receive �� ��� xmodem �� �� ���� �����. xmodem �� �� ���� ��

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

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

xmodem ��� -s ��� �� ����, �� ���� ��� �� � � ���. � �, receive

�� ��� ������. FileName� �� ���� ���� ��� �����.

��: �� ���� ��� ��� ����, ATE �� �� �� ���� �� �� �����

�.

r myfile

�� ������� ��� ���� myfile ��� �����.

send � ��

s [ FileName ]

ATE send �� ��� ��� �� ����� �����. ��� �� ATE �� �� ��� ATE send

�� ��� ������. ATE connect �� ��� ���� ��� ����, �� ���� ��� ��

� �� �����.

send �� ��� xmodem �� �� ���� ��� ���� �� ���� � �� � ��, �

�� ���� �����. �� ����� xmodem ��� -r ��� �� ���� �� ���� ��

� � � � ���. � �, send �� ��� ������. FileName� �� ����� ��

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

��:

1. ��� �� ���� �����, ATE �� �� �� ���� �� �� ������.

s

ATE� �� ���� �� ��� ����� ��� �����.

2. �� ���� �� ��� �����, ATE �� �� �� �� �� ������.

s mystuff

mystuff ��� �� ����� �����.

terminate � ��

t

ATE terminate �� ��� ���� �� ����� ��� �� �� ��(ATE)� ��� �, ATE

���� �� �� �����. ATE �� �� ��� terminate �� ��� ������.

��: �� ��� ����, �� ���� ��� ���� MAINMENU_KEY(�� Ctrl-V � ��)�

����. ATE �� �� �� ���� �� �� ������.

t

�� ���(���) 123

Page 140: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� �� ���� ����, ��� ����. ��� ATE� ���� �� �� �����.

�� � ATE �� ��� �����, ATE� � � ���.

��

/usr/lib/dir � � ���� ����� �����.

�� ��

ate.def �� ���� ATE � � �� �����.

AIX 5L �� 5.2 ��� ��� ��: � � ����� ATE ����� ATE ���, � � ��

�� �� �����.

AIX 5L �� 5.2 ��� ��� ��: � � ����� ATE � � �� �� ����� ATE �

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

AIX 5L �� 5.2 ��� ��� ��: � � ����� ��� ��� � ATE ����� ATE �

� ���� �� ���� �� � � ATE ��� �����.

atmstat ��

��

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

��

atmstat [ -d -r ] Device_Name

��

atmstat ��� ��� �� �(ATM) ��� ��� �����. ���� �� �� ��� �� ��

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

�. atmstat ��� ��� � ��� �� �� ��� ��� AIX 5L �� 5.2 ��� ��� ��:

� � ����� ATM ��� ��� ������.

���� �� Device_Name� ��� ��, atmstat ��� ��� �� � �� ��� �� ���

�����.

���

-d �� ��� �����.-r �� ��� ����� ������. � ��� �� ����� �� � ���.

124 �� ���, � 1 �

Page 141: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����

Device_Name ATM ��� ��, �� �, atm0.

��

atm0� �� ���� �� ��� �����, �� �� ������.

atmstat atm0

� ��� AIX 5.1 � ��� ���� �� ��� �� �� ��� ����.

ATM STATISTICS (atm0) :Device Type: Turboways 155 MCA ATM AdapterHardware Address: 08:00:5a:99:88:d5Elapsed Time: 2 days 23 hours 38 minutes 18 seconds

Transmit Statistics: Receive Statistics:-------------------- -------------------Packets: 50573 Packets: 0Bytes: 2225182 Bytes: 0Interrupts: 0 Interrupts: 12904Transmit Errors: 0 Receive Errors: 0Packets Dropped: 0 Packets Dropped: 0

Bad Packets: 0Max Packets on S/W Transmit Queue: 0S/W Transmit Queue Overflow: 0Current S/W+H/W Transmit Queue Length: 0

Cells Transmitted: 50573 Cells Received: 0Out of Xmit Buffers: 0 Out of Rcv Buffers: 0Current HW Transmit Queue Length: 0 CRC Errors: 0Current SW Transmit Queue Length: 0 Packets Too Long: 0

Incomplete Packets: 0Cells Dropped: 0

General Statistics:-------------------No mbuf Errors: 0Adapter Loss of Signals: 0Adapter Reset Count: 0Driver Flags: Up Running Simplex64BitSupportVirtual Connections in use: 2Max Virtual Connections in use: 2Virtual Connections Overflow: 0SVC UNI Version: auto_detect

Turboways ATM Adapter Specific Statistics:---------------------------------------------------Packets Dropped - No small DMA buffer: 0Packets Dropped - No medium DMA buffer: 0Packets Dropped - No large DMA buffer: 0Receive Aborted - No Adapter Receive Buffer: 0Transmit Attempted - No small DMA buffer: 0Transmit Attempted - No medium DMA buffer: 0Transmit Attempted - No large DMA buffer: 0

�� ���(���) 125

Page 142: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

Transmit Attempted - No MTB DMA buffer: 0Transmit Attempted - No Adapter Transmit Buffer: 0Max Hardware transmit queue length: 12Small Mbuf in Use: 0Medium Mbuf in Use: 0Large Mbuf in Use: 64Huge Mbuf in Use: 0MTB Mbuf in Use: 0Max Small Mbuf in Use: 0Max Medium Mbuf in Use: 0Max Large Mbuf in Use: 64Max Huge Mbuf in Use: 0MTB Mbuf in Use: 0Small Mbuf overflow: 0Medium Mbuf overflow: 0Large Mbuf overflow: 0Huge Mbuf overflow: 0MTB Mbuf overflow: 0

PCI ��� �� �� ��� ����.

-------------------- -------------------Packets: 299 Packets: 294Bytes: 9727 Bytes: 10123Interrupts: 0 Interrupts: 297Transmit Errors: 0 Receive Errors: 0Packets Dropped: 0 Packets Dropped: 0

Bad Packets: 0Max Packets on S/W Transmit Queue: 0S/W Transmit Queue Overflow: 0Current S/W+H/W Transmit Queue Length: 2

Cells Transmitted: 450 Cells Received: 457Out of Xmit Buffers: 0 Out of Rcv Buffers: 0Current HW Transmit Queue Length: 2 CRC Errors: 0Current SW Transmit Queue Length: 0 Packets Too Long: 0

Incomplete Packets: 0Cells Dropped: 5

General Statistics:-------------------No mbuf Errors: 0Adapter Loss of Signals: 0Adapter Reset Count: 0Driver Flags: Up Running Simplex

64BitSupportVirtual Connections in use: 4Max Virtual Connections in use: 5Virtual Connections Overflow: 0SVC UNI Version: uni3.1

IBM PCI 155 Mbps ATM Adapter Specific Statistics:---------------------------------------------------Total 4K byte Receive Buffers: 96 Using: 64

126 �� ���, � 1 �

Page 143: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

entstat ��, fddistat ��, netstat ��, tokstat ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� ATM ��� ��.

atq ��

��

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

��

atq [ c | -n ] [ User ... ]

��

atq ��� ��� ���� � ���� � �� ����� �� ��� �� �����. ����

� �� at ��� �� �� ���. ���� ���� ��� ��� ���� atq ��� � �

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

���

-c at ��� ��� � � �� ����� �����.-n �� ����� � �� � �� �����.

��

at ���� �� ����� ��� �� �� ������.

atq

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

root.635623200.a Wed Feb 21 12:00:00 1990root.635670000.a Thu Feb 22 01:00:00 1990

��

/usr/bin/atq atq ���� �����./var/spool/cron/atjobs �� �� �����.

�� ��

at ��, atrm ��.

cron �.

�� ���(���) 127

Page 144: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � �� ��� ����� ��

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

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ����� �, � ��� � � ��

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

atrm ��

��

at ��� �� ��� �� �� �����.

��

atrm [ -f ] [ -i] [ -a | - ] [ Job ... | User ... ]

��

atrm ��� at ���� �� ��, ����� �� �� �����. �� ��� � ��� ��

��, atrm ��� ��� �� �����.

�� ��� ��� ��� ����, ��� ����� �� ��� �����. ��� ���� atrm

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

���

- atrm ��� ���� ����� ��� �� �� �����.-a atrm ��� ���� ����� ��� �� �� �����. � ��� ��� V ��� �����.-f ���� �� �� �� ��� �����.-i �� ���� �� ��� �����. �� �����, y� ������.

��

at �� ������ � �� root.62169200.a� �����, �� �� ������.

atrm root.621619200.a

��

/usr/bin/atrm atrm ��� ��� �����./var/spool/cron/atjobs �� �� �����.

�� ��

at ��, atq ��.

cron �.

128 �� ���, � 1 �

Page 145: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � �� ��� ����� ��

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

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ����� �, � ��� � � ��

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

attachrset ��

��

���� rset� �����.

��

attachrset [ -P ] [ -F ] rsetname pid

��

attachrset [ -P ] [ -F ] [ -c CPUlist ] [ -m MEMlist ] pid

��

attachrset ��� ���� rset� �����. � ��� ��� ���� rset� ��� ��� �/�

� �� ���� ����� �����. ��� ����� � rset ��� ���� �� �

���. �� ��� ��� � �� �� ���� rset� ���� �� � ���.

���

-P rset� ��� rset� �����.-F rset ��� ����� �� �����. � ��� �� rset� ���� �� ����� bindprocessor

�� �����. -P ��� �� ��� ��, �� rset� ���� �� ����� ��� rset� ��

�����.-c CPUlist rset� ���� CPU� ���. �� �� ��� CPU �� CPU � � � ���.-m MEMlist rset� ���� �� �� ���. �� �� ��� �� � �� � � � ���.

����

rsetname ���� ���� rset� �����. ��� ″/″(��)� � � namespace � rsname�� �

���. namespace � rsname �� � 255�� �� � ���. rset ��� �� �� ���

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

pid rset� ���� ��� ID.

�� ���(���) 129

Page 146: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

���� �� ��� ��� �� �� CAP_NUMA_ATTACH �� � ��� rset ����� ��

�� ���� ��� �� ��(-r ��� ��� ��) �� ���� �� ���� ��� ��� �

�� ID� ��� �� ���. ���� ���� ��� rset� ����� �� ��� �� ���

(-P ��).

��

1. 18838 ���� 0-7 CPU� ��� rset� �����, �� �� ������.

attachrset -c 0-7 18838

2. 20124 ���� test/cpus0to7��� rset� �����, �� �� ������.

attachrset test/cpus0to7 20124

��

/usr/bin/attachrset attachrset ��� �����.

�� ��

detachrset, execrset, lsrset, mkrset � rmrset ��.

audit ��

��

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

��

audit { start | shutdown }

audit { off | on [ panic ] }

audit query

��

audit ��� � ��� �� ��� ��� �����. ��� �� ��� ��� ��� ����

� ���. start �� � shutdown ��� �� ���� ���� ���� ��� ���� ���

���. off �� � on ��� ��� ���� �� �� �� �� ���� �� ���� �

�����. query ��� �� � � ���� ���.

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

v /etc/security/audit/config

130 �� ���, � 1 �

Page 147: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v /etc/security/audit/events

v /etc/security/audit/objects

v /etc/security/audit/bincmds

v /etc/security/audit/streamcmds

��� ��� ″��″ ���� �����. �� ���� ���� �� �� ��� ��� AIX 5L

Version 5.2 System Management Guide: Operating System and Devices� ″Setting up Auditing″� �

�����.

��

start �� ������ �����. � ��� ��� ���� ���� ��, �� �����.

object auditing

/etc/security/audit/objects ��� � �� ��� ��� ��� ��� ���� �� ��

�� �����.

event auditing

/etc/security/audit/config ��� � �� �� ��� ��� ��� �� ��� ���

��.

bin auditing

Start ���� binmode=on� ��, /etc/security/audit/config ��� bin ���� � �

�� ��� �� auditbin �� ������.

stream auditing

Start ���� streammode=on� ��, /etc/security/audit/config ��� � ��! ���

� ��� �� �� ��! ��� ������.

��: /etc/inittab�� ��! ��� ����� ���.

user auditing

���� �� ���� �� ��� ��� /etc/security/audit/config ��� users ���� �

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

audit logging

/etc/security/audit/config ��� start ���� ��� �� �� �� ���� �� ���

� ����.shutdown �� � ��� ��� ��� �� ��� �� ����� ������ ��� ��� ���

���. �� �� �� �� ��� ��� �� �� ���� ���� bin ���� �� ��!�

� ����. � �, �� ��� bin �� ��� � /etc/security/audit/bincmds ��� � �,

��! �� ��� � /etc/security/audit/streamcmds ��� � ���. �� ��� ��� �

audit start ��� �� ��� �����.off �� ���� �� �����, ����� �� �� ����. ��� ��� audit on ��� ��

��� �� �����.on [panic] ���� � �� ���� � ���(�� �, audit start ��� ��� ��� � ���� �

� ��� ��), �� �� �� �� ���� �� �����. ��� �� � ��� � ����

��, bin �� ��� ���� � � ���.

panic ��� ����, bin �� ��� ��� ����� bin ��� ���� � � �� ��, ����

����. bin �� �� ���� � ���, ���� ����.

�� ���(���) 131

Page 148: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

query �� ������ �� � � � ���� �����.

auditing on {panic} | auditing off

bin manager off | is process number pid

audit events:audit class: audit event, audit event...

audit objects:object name: object mode: audit event

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. ���

�� ���� �� setuid��� ��, ���� ��� �� �� ���.

����� ��:

�� ��

r /etc/security/audit/configr /etc/security/audit/objectsx /usr/sbin/auditbinx /usr/sbin/auditstream

��

1. �� ���� �����, AIX 5L �� 5.2 � ��� ″� ��″� ��� �� �� ����

�����, ��� ��� ��(/etc/rc ��)� � �� ������.

/usr/sbin/audit start 1>&- 2>&-

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

2. �� ���� ��� ����, �� �� ������.

/usr/sbin/audit shutdown

��� ��� audit start ��� �� �� ��� �����. ��� ��� � �� �

��� �����.

�: audit shutdown ��� /etc/shutdown ��� �� ���.

3. �� ���� �� �����, �� �� ������.

/usr/sbin/audit off

4. audit off ���� �� ��� �� ���� �� �����, �� �� ������.

/usr/sbin/audit on

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

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

/usr/sbin/audit query

132 �� ���, � 1 �

Page 149: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

audit query � ��� ��� �� ����.

auditing on

bin manager is process number 123

audit events:authentication- USER_Login, USER_Logoutadministration- USER_Create, GROUP_Create

audit objects:/etc/security/passwd :r = AUTH_Read

/etc/security/passwd :w = AUTH_Write

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

��� ���� /etc/security/passwd ��� �� ��� � � �� �� �� ���� � � �

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

��

/usr/sbin/audit audit ��� ��� �����./etc/rc ��� ��� ��� �����./etc/security/audit/config

�� ��� ��� ���./etc/security/audit/events

�� ���� � �� ��� ���� ���./etc/security/audit/objects

��(����)� �� �� ���� ���� ���./etc/security/audit/bincmds

�� �� �� ��� ��� � � ��� �����./etc/security/audit/streamcmds

auditstream ��� �����.

�� ��

auditbin �, auditcat ��, auditconv ��, auditpr ��, auditselect ��, auditstream ��, login

��, logout ��, su ��.

audit ���, auditbin ���, auditevents ���, auditlog ���, auditproc ���.

��� �� �� ��� ���, AIX 5L �� 5.2 � ��� �� ��� ������.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

�� ���(���) 133

Page 150: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

auditbin ��

��

�� ��� bin� �����.

��

auditbin

��

�� ������ auditbin �� �� ��� ���� ��� ���� �� bin ��� bin1� bin2�

�����. � ��� �� bin ��� �� �� ��� ����� �����.

�� ���� ����, ��� ��� �� bin ��� �����. bin ��� �� ��, auditbin

�� /etc/security/audit/bincmds ��� ��� bin �� ��� ��� �� ��� �����.

/etc/security/audit/bincmds ��� �� �� ����� ��� ��� � �, ���� � �

�� ���� ���. auditbin �� ���� $bin ���� $trail ���� ��� ��� ��

�� �� �� bin ��� �� ��� ��� � �(trail) ��� �� ���� �����.

auditbin �� ��� bin� �� � � ������ ��� bin� �� ���� ��� �����

��� ����. �� ��� ���� ��, bin ��� � �� �� �� �� ��� ���.

��� ���� ���� ���, auditbin �� ��� � ��� ����, �� ��� �� ��

��� ��� ��� �� ��� � 60��� /dev/tty ��� ��� �����.

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. ���

�� ���� �� setuid��� ��, ���� ��� �� �� ���.

����� ��:

�� ��

r /etc/security/audit/configr /etc/security/audit/bincmdsrw ��� �� bin� trail ��

x �� �� bin �� ��

��

1. auditbin �� ������, � � ��� ����� /etc/security/audit/config ��� start

� bin ���� ������.

start:binmode = on

bin:

134 �� ���, � 1 �

Page 151: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

trail = /audit/trailbin1 = /audit/bin1bin2 = /audit/bin2binsize = 25000cmds = /etc/security/audit/bincmds

2. �� �� ���� ��� �����, �� �� /etc/security/audit/bincmds ��� ��� ,

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

/usr/sbin/auditcat -p -o $trail $bin

/usr/sbin/auditselect -e "event == USER_Login" \$bin | /usr/sbin/auditpr >> /etc/log

� �� ���� ��� �� bin� �� � ��� �����. � �� �� bin ����

USER_Login �� �� auditpr ��� ��� ���� �, /etc/log ��� �����.

��

/usr/sbin/auditbin auditbin �� ��� �����./audit/binx � � bin �� ��� ��� �����. �� x� bin ��

���./etc/security/audit/config

�� ��� ��� ��� �����./etc/security/audit/events

���� �� ���� �����./etc/security/audit/objects

��� ����(��)� �� �� ���� �����./etc/security/audit/bincmds

auditbin �� ��� �����./etc/security/audit/streamcmds

auditstream ��� �����.

�� ��

audit ��, auditcat ��, auditconv ��, auditpr ��, auditselect ��, auditstream ��.

audit ���, auditbin ���.

AIX 5L �� 5.2 � ��� �� ��.

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

�� ���(���) 135

Page 152: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

auditcat ��

��

�� �� bin� �����.

��

auditcat [ -p | -u ] [ -o OutFile ] [ -r ] [ InFile ]

��

auditcat ��� �� ������ �� ���, �� ��� �� ���� �� ��� �����.

auditcat ��� InFile ���� ��� �� �� �� ������ �� � bin ��� ����.

� �, �� ����, � ��� �� ���� OutFile ���� ���� ��� �����. �

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

auditcat ��� ��� �� � ��� ��� bin ��� ��� �� � ��� �� ���� ���

�.

/etc/security/audit/bincmds ��� �� ��� $bin� � ��, ��� �� bin ��� bin1 �� bin2

��� ���. /etc/security/audit/bincmds ��� �� ���� $trail� ���� ��, ��� ��

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

bin ��� ��� ��� �� �� ��� ��� ��� ��� �����. �� ��� �� ��

��� auditpr ���, �� ��� �� ��� auditbin ��� ������.

���

-o OutFile auditcat ��� �� �� �� � ��� �����. OutFile ���� �� ��� $trail� �

���, auditbin �� ��� �� � ��� ��� �����.-p ��� bin ��� �� �� �����. � � �� bin ��� ���� �� ����.-r �� ���� �����. ��� ��� � InFile � OutFile ���� �� ��� ���� ���.

���, �� ��� auditcat -o OutFile-r InFile� ��� ���. auditcat ��� InFile ���� �

��� ��� ���� ��� ���� �� ���� � ���, bin ��� OutFile ���� ��

�� ��� �����. bin ��� ���� ���, auditcat ��� bin ��� ��� �� ��� �,

bin ��� OutFile ���� ���� ��� �����

-u ��� ��� � � ��� ��� ��� �����.

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. � ��

� �� ���� �� setuid��� �� ���� ��� �� ��� �� ���.

136 �� ���, � 1 �

Page 153: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�� bin ���� ��� �� � ��� ����� �����,

/etc/security/audit/bincmds ��� � �� ������.

/usr/sbin/auditcat -o $trail $bin

auditbin �� auditcat ��� �� �, �� $bin ���� �� bin ��� �� ���� ��,

$trail ���� � � �� � ��� ���� ���.

��

/usr/sbin/auditcat auditcat ��� ��� �����./etc/security/audit/config �� ��� ��� ��� �����./etc/security/audit/events ���� �� ���� �����./etc/security/audit/objects ��� ����(��)� �� �� ���� �����./etc/security/audit/bincmds auditbin �� ��� �����.

�� ��

audit ��, auditconv ��, auditpr ��, auditselect ��.

auditbin �.

��� �� �� ��� ���, AIX 5L �� 5.2 � ��� �� ��� ������.

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

auditconv ��

��

AIX �� 4 �� ��� �� bin� AIX �� 4 ���� ����.

��

auditconv OldFile NewFile

��

auditconv ��� �� ��� ����� �� �� �� AIX �� 4 ��� �����

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

�� ���(���) 137

Page 154: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� OldFile ���� �� NewFile ��� �����. �� �� � ��� ���

� ��� � � � � ID� 0���.

�:

1. OldFile � NewFile ���� �� ��� ��, �� �� ����� �� ��� ���.

2. AIX �� 4 ��� ���� AIX �� 4 ��� �� bin� ���� ����. ��� auditconv

��� ���� �� 4 ��� bin ��� ��� ���.

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. � ��

� �� ���� �� setuid��� �� ���� ��� �� ��� �� ���.

����� ��:

�� ��

r /etc/security/audit/eventsr /etc/passwdr /etc/group

��

�� ��� �� �� pre_v4_auditbin� ��� ��� converted_auditbin� �����, � ���

������.

/usr/sbin/auditconv pre_v4_auditbin converted_auditbin

��

/usr/sbin/auditconv auditconv ��� ��� �����./etc/security/audit/config �� ��� ��� ��� �����./etc/security/audit/events ���� �� ���� �����./etc/security/audit/objects ��� ����(��)� �� ��� �����./etc/security/audit/bincmds auditbin �� ��� �����./etc/security/audit/streamcmds auditstream ��� �����.

�� ��

audit ��, auditbin �, auditcat ��, auditpr ��, auditselect ��, auditstream ��.

audit ���.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

138 �� ���, � 1 �

Page 155: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

auditmerge ��

��

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

��

/usr/sbin/auditmerge [ -q ] file [ file ... ]

��

auditmerge ��� ����� � ������ � �� �� � ��� ��� �� � ���

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

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

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

auditmerge ��� �� �� ����� �� �� CPU ID �� �� � ���. CPU ID �

� AIX 4.3.1�� � ��� ��� �� bin� �� bin �� � � ��� �����.

-q ��� �� �� ��� ���� � �����. � � �� �� �� � ����,

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

���. -q ��� ����� ���� � ��� �����.

���

-q �� �� ��� ���� � �����.

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. � ��

� �� ���� �� setuid��� �� ���� ��� �� ��� �� ���.

��

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

/usr/bin/auditmerge /audit/trail.calvin /audit/trail.hobbes > /audit/trail.merge

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

/usr/bin/auditmerge /audit/trail.jim /audit/trail.julie > /audit/trail.both

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

/usr/bin/auditmerge -q /audit/jumbled.1 /audit/jumbled.2 > /audit/jumbled.output

��

/etc/security/audit/hosts ��� �� ��� �� CPU ID� � ���.

�� ���(���) 139

Page 156: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

auditpr ��, auditstream ��, auditselect ��.

auditread ���, getaudithostattr ���.

auditpr ��

��

bin�� stream �� �� ����� ��� "� ������.

��

auditpr [ -m ″Message″ ] [ -t { 0 | 1 | 2 } ] [ -h {e l R t c r p P T h } ] [ -r ] [ -v ]

��

auditpr ��� �� ������ �����. � ��� bin �� ��! ���� �� �� ��

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

�� ��� �� ��� �� �����. -m ��� ��� ��, �� �� ��� �����.

-t� -h ��� ���� � � �� ��� �� � � �, -v ��� ���� �� ��

�� � ���. auditpr ��� �� /etc/passwd ��� ��� ���� �� ID� ���� �

���.

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

event login status time commandlogin dick OK Fri Feb;8 14:03:57 1990 login. . . . . trail portion . . . . .

�� �� ��� ���, �� �� ��� ��� /etc/security/audit/events ��� ������.

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

��� ����.

���

-d ���� 100� � 1� � � �����. � ��� � ��� �� ����.

DD MMM YYYY hh:mm:ss.uuuuuu

140 �� ���, � 1 �

Page 157: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-h Fields �� �� �� �� ��� ����. � � �� e, l, R, t, c���. ��� �� ��

����.

e �� ���

l ���� ��� ��

R �� �

t �� �� �

c �� ��

r ���� �� ��

p ��� ID

P � ���� ID

T �� � ID. � ID� �� ������ �����. � ���� � ID� ��

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

h �� �� �� ���� ��. �� �� CPU ID� �� ��, none �� �

����. �� �� CPU ID� �� ���� ��� �� ��, CPU ID� �� 16

� �� � �����.-m ″Message″ ��� �� �� Message� �����. message ���� �� �� �� � ��� ��

�.-r ID� ��� ��� ���� ��� �� �����.-t {0 | 1 | 2} �� �� �� � � �����. � � ��� �� ��(-m �� ��) �� ���

� ���� ����.

0 �� ��� �����.

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

2 ��� � �� �����.-v /etc/security/audit/events ��� � �� ��� ��� �� �� � �� ����

�.

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. ���

�� ���� �� setuid��� ��, ���� ��� �� �� ���.

����� ��:

�� ��

r /etc/security/audit/eventsr /etc/passwdr /etc/group

��

1. � � �� ��� � � �� �� � ��� �� �� ����, �� �� �����

�.

�� ���(���) 141

Page 158: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/usr/sbin/auditpr -v < /audit/trail

/audit/trail ���� ��� �� bin �� �� �� ���.

2. �� � ����� ��� witte� �� ��� �� �� ���� ��� �����, �� �

� ������.

/usr/sbin/auditselect -e″login == witte″\/audit/trail |

auditpr -v

�� �� � � �(e, c, l, R � t)�� ��� ���� � �� �����.

3. �� ����� �� ����� ����, �� �� ������.

/usr/sbin/auditstream | /usr/sbin/auditpr -t0 -heRl

��

/usr/sbin/auditpr auditpr ��� ��� �����./etc/security/audit/config �� ��� ��� ��� �����./etc/security/audit/events ���� �� ���� �����./etc/security/audit/objects ��� ����(��)� �� �� ���� �����./etc/security/audit/bincmds auditbin �� ��� �����./etc/security/audit/streamcmds auditstream ��� �����./etc/security/audit/hosts ��� �� ��� �� CPU ID� � ���.

�� ��

audit ��, auditcat ��, auditconv ��, auditselect ��, auditstream ��.

auditbin �.

audit ���.

events ��.

��� �� �� ��� ���, AIX 5L �� 5.2 � ��� �� ��� ������.

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

auditselect ��

��

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

142 �� ���, � 1 �

Page 159: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

auditselect { -e″Expression″ | -f File} [ -m ] [ Trail ]

��

auditselect ��� �� ������ �����. /etc/security/audit/bincmds ���� bin �� ���

� �� ���� ����� � ��, � ��� auditbin �� �� �����.

auditselect ��� ��� ��� ���� �� �� �� �� ���� �� �����.

auditselect ��� ��� , �� � �� �� �� � �� �� ����� �� � ��

�� � �� �� � � ���. � ��� Trail ���� ��� ���� �� ����

�� stream�� bin� ��� ����. $bin ���� Trail ���� ��� ���� auditselect ��

� �� � auditbin �� �� bin ��� �� ��� �����. � ��� ����� �����

-f ��� ��� ����� �� � ���. bin ��� ��� � ��, auditselect ��� ���

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

��! ���� ��, /etc/security/audit/streamcmds ���� auditstream ��� auditselect ��� �

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

���

-e″Expression″ � ��� �����. Expression ���� ��� ���� ��� �� ��� ����

����.-f File � ��� � � File� �����.-m � ��� �� �� �� �����.

�� ��

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

��� ���

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

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

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

&& (And) term1� term2� ��� ��� term1 && term2� ����(��).|| (Or) term1 �� term2� ��� ��� term1 || term2� ����(��).! (Not) term1� �� ��� ��� !term1� ����(��).

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

Field Relational_Operator Value

�� ���(���) 143

Page 160: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

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

event �� ���� ��, �� �, FILE_Open.command(�

�)

�� ���� �� ��.

result �� ���� � . result �� �� � � �� � ���.

v OK

v FAIL

v FAIL_PRIV

v FAIL_AUTH

v FAIL_ACCESS

v FAIL_DAC� DAC(�� ��� ��)� ��� �� ��� ���� �����. ��� �� ���(ACL)�

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

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

FAIL� � �� �� �� �����.login �� ���� �� ���� ��� ���� ID.real �� ���� �� ���� �� ���� ID.pid �� ���� �� ���� ID.ppid �� ���� �� � � ID.tid ���� �� �� � � ID.time �� ���� �� � .date �� ���� �� �.host �� �� ��� ��� ��. ��� �� UNKNOWN� /etc/security/audit/hosts ��� ���� ��

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

�� ���

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

������.

== ��

!= �� ��

< ��

> ��

>= ��� ��

<= ��� ��

��� �

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

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

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

event = =, ! = ��� ��� �� ��� ��

result = =, ! = ��� ��� �� �� ��

144 �� ���, � 1 �

Page 161: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

command

(��)

= =, ! = ��� ��� �� ��

pid all 10� �� ���� ID

ppid all 10� �� ���� ID

login all 10� �� ��� ID

login = =, ! = ��� ��� ��� ��

real all 10� �� ��� ID

real = =, ! = ��� ��� ��� ��

tid all 10� �� ��� ID

time all �� ���� �� ��� ��� ���

date all �� ���� �� ��� ��� ���

host = =, ! = ��� ��� ��� �� �� 16� cpu ID

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. ���

�� ���� �� setuid��� ��, ���� ��� �� �� ���.

��

����

1. bin ���� ��� ��� � � USER_SU �� USER_Login �� ���� ���� ��

����, �� �� ��� auditselect ��� /etc/security/audit/bincmds ��� ������.

/usr/sbin/auditselect -e "event== USER_SU || event== \USER_Login" $bin >> /audit/trail.login

�� ��� �� ��� �, ��� ��� �� � �� �� bin ���� ��

/audit/trail.login ��� �����.

2. stream ���� ��� ��� � � ���� ��� �� ���� ��� �� ���

�, �� �� ��� auditselect ���

/etc/security/audit/streamcmds ��� � auditstream ���� ������.

/usr/sbin/auditstream -c authentication | \/usr/sbin/auditselect -e "event == \USER_Login && result == FAIL" | \/usr/sbin/auditpr -t 2 -v >> /dev/lpr2

� � �� �� ��� � ��� �� �� ���� �� /dev/lpr2 � ���

�����.

� �� ��� �� �

1. �� � ���� �� ��� ���� � �� ���� �����, �� �� ������.

/usr/sbin/auditselect -e "result == FAIL_AUTH"/audit/oldtrail | /usr/sbin/auditpr -t -helt -v

�� ���(���) 145

Page 162: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ��� � ��� ��� ���� �� ��� �����. �� ��, ���, ��� ID, �

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

2. 1987� 5� � �� �� �� � � �� smith� ��� � �� �� �� ���

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

/usr/sbin/auditselect -f /aaa/bbb \

/audit/trail1987 | /usr/sbin/auditpr

/aaa/bbb ���� � �� �� ���.

command == login && login == smith &&time >= 08:00:00 && time <= 17:00:00 &&date >= 05/01/87 && date <= 05/05/87

��� ��

1. �� ���� ��� USER_Login ���� �����, � � ��� ������.

"event == USER_Login"

"event != USER_Login"

2. passwd ��� �� ���� ���� �� �����, �� ������.

"command == passwd"

passwd ��� �� ���� ��� ���� �� �� ���, �� ������.

"command != passwd"

3. �� � � OK �� ���� �����, �� �� ������.

"result == OK"

4. �� ���� �� ���� ��� �� �� ��� ID� �� ��� ID(��� ID 014 ��

��� �� carol)� �����, � � ��� ������.

"login == 014""login != carol""login == 014 || login != carol""real == carol"

5. �� ���� �� ���� ���� � � ID� ��� ID 2006� �����, � � �

�� ������.

"pid == 2006""pid != 2006""ppid == 2006"

�: ��� ���(< =, > =, <, >)� ��� ��� �� �� ��� ID � ��� ID� ��

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

6. �� ���� �� � � 08:03:00 � ���� �����, � � ��� ������.

146 �� ���, � 1 �

Page 163: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

"time == 08:03:00""time != 08:03:00""time < 08:03:00""time <= 08:03:00""time > 08:03:00""time >= 08:03:00"

08:03:00 � ���� �� ��� ���� "� �� �� ����. � ���� �� ��

�� �� ��� ��� "�� ���.

7. �� ���� �� ��� 05/05/89 �� ���� �����, � � ��� ������.

"date == 05/03/89""date != 05/03/89""date < 05/03/89""date <= 05/03/89""date > 05/03/89""date >= 05/03/89"

05/05/89 � ���� �� ��� ���� "� �� �� ����. �� ���� �� ��

�� �� ��� ��� "�� ���.

��

/usr/sbin/auditselect auditselect ��� ��� �����./etc/rc ��� ��� ��� �����./etc/security/audit/config �� ��� ��� ��� �����./etc/security/audit/events ���� �� ���� �����./etc/security/audit/objects ��� ����(��)� �� �� ���� �����./etc/security/audit/bincmds auditbin �� ��� �����./etc/security/audit/streamcmds auditstream ��� �����./etc/security/audit/hosts ��� �� ��� �� CPU ID� � ���.

�� ��

audit ��, auditcat ��, auditconv ��, auditpr ��, auditstream ��, env ��.

auditbin �.

��� �� �� ��� ���, AIX 5L �� 5.2 � ��� �� ��� ������.

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

�� ���(���) 147

Page 164: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

auditstream ��

��

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

��

auditstream [ -m ] [ -c Class ...]

��

auditstream ��� �� ������ �����. � ��� /dev/audit ��(�� ��)��� �� �

� �� �� ��� 2� ���� �����. �� ��(/etc/security/audit/config ��� ���

� )� -c ��� ����, �� � � ���� � � ���. ��� ���, �� �� �

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

�� ��! ���� ��� �� ����, �� � ���. �� �, ��� ��� �� �� �

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

� ��� auditselect ��� ��� ���� � � ��� ���� auditpr ��� �� ��

��� �����.

auditstream� ����� �����, � � ����� �� ��� ���� ��� ��� �

���. auditstream ��� ���� �� ��� ���, AIX 5L �� 5.2 � ��� ″� ��″

� /etc/security/audit/config ��� ������.

�: auditstream ��� ����� ���� ���.

���

-c Class �� �� ��� �����. ��� etc/security/audit/config ���� ��� � � �� ��

�� ����� ������ ���. � � �� �� �� ��� �� �� ������.-m �� ��� CPU ID� �����.

��

��� ��: � ��� �� ���� �� �� ���� ��(x) ��� ��� � �� ���. ���

�� ���� �� setuid��� ��, ���� ��� �� �� ���.

����� ��:

�� ��

r /dev/audit

148 �� ���, � 1 �

Page 165: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. �� ���� ��� � �� �� ��! ��� ������, �� /etc/security/audit/config

��� ��! ���� ������.

cmds = /etc/security/audit/streamcmds

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

streammode=on

� �, �� ���� ��� � ����� �� �� ��! ��� /etc/security/audit/streamcmds

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

/usr/sbin/auditstream -c authentication | \/usr/sbin/auditpr -v > /dev/console

/usr/sbin/auditstream | /usr/sbin/auditselect -e \"result == FAIL_ACCESS" | \/usr/sbin/auditpr -t 2 -v > /dev/lpr2

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

� �����. � �� ��� ��� ��� �� �� �����, ���� �� /dev/lp2

��� �����.

2. �� ��! ���� � ��� �����, �� �� ������.

/usr/sbin/auditstream | /usr/sbin/auditselect -e "event == \USER_Login || event == USER_SU" | \/usr/sbin/auditpr -v > /dev/lp0 &

� ��� �� ���� ��� � su ���� ��� ��� � ��� �����.

��

/usr/sbin/auditstream auditstream ��� ��� �����./etc/rc ��� �� �� �����./dev/audit �� ��� �����./etc/security/audit/config �� ��� ��� ��� �����./etc/security/audit/events ���� �� ���� �����./etc/security/audit/objects ��� ����(��)� �� �� ���� �����./etc/security/audit/bincmds auditbin �� ��� �����./etc/security/audit/streamcmds auditstream ��� �����./etc/security/audit/hosts ��� � CPU ID� � ���.

�� ��

audit ��, auditcat ��, auditconv ��, auditpr ��, auditselect ��.

auditbin �.

��� �� �� ��� ���, AIX 5L �� 5.2 � ��� �� ��� ������.

�� ���(���) 149

Page 166: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �� � ��, �� ��� ��, �� ����, ��� �� ��� ��� AIX 5L �� 5.2 �

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

�� ���� ���� � ���� �� ��� ���, AIX 5L �� 5.2 � ��� � ��� �

�����.

autoconf6 ��

��

IPv6 ���� ������ �� �� ���� ������.

��

autoconf6 [ -a ] [ -A ] [ -i ] [ -s ] [ -6 ] [ -M ] [ -O ] [ -R ] [ -c ] [ -v ] [ -m main_interface

] [ interface_name ... ]

��

autoconf6 ��� �� � �� �� ��� ND ��� ���� ������ ���� � �����.

autoconf6 ��� �� ��� �� �����, �� ��� �����, ��� �� ���� ���

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

��� �� � ���.

���

-a IPv4� ��� � ���� �� �� ��� ������ ����� �����.-A �� ��� �� ������ ����� �����.-i �� ����� ������ ����� �����. -a � -i ��� �� ��, � ��

� ������� ������.-m main_interface � ������ �����. no ��� main_if6 ��� �� �� �� ���.-s SIT ����� � IPv4 �� ��� ���� �����. � ��� �� ��, SIT ��

���� SIT ������ � ��� ���� ������.-6 SIT ����� � IPv4 �� ��� �� ��(interoperabiity)� ����� ����

����.-M (���) ��� IPv6 $���� ���� ���� ����.-O (���) �� ������ ����� ����.-R (���) � � IPv6 ���� ���� ����.-c ��� LL ��� �� ��� � �� �� ��.-v ��� ��. ���� �� ���� � �� ��� ��� �����.interface_name ����� �� ������ ��� �����. � ��� -i ��� �� �����. -i

��� ���� interface_names� ���� ��� ������ ����� ����.

interface_name� ���� -i ��� ���� ��� ���� �� ��� �����.

���

��� autoconf6� ��� �� � ��� autoconf6 �� ��� ��� ��� �����.

150 �� ���, � 1 �

Page 167: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

ifconfig ��, ndpd-host ��, ndpd-router ��, route ��.

automount ��

��

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

��

/usr/sbin/automount [ -m ] [ -v ] [ -t Duration ] [ -i Interval ]

��

automount ��� AutoFS� �� ���� �����. � ��� AutoFS �� � � ����

automount �� �� � � ������. AutoFS �� ��� ���� �� ��� �� � �

���� ����� �� automountd �� ����. � �� �� ���� ���� � �� �

�� �, AutoFS �� ��� �� �� � �� �����.

�� ���� � �(� ��, 5 ) ��� ����� ���, automountd �� �� ���� �

� �����.

��� � ��� � � �� ��� /tmp/autofs_cmdline���.

automountd �� ���� ���� automount ��� SRC� �� �� �����.

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

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

��� �����.

� �� ���, ��� ��, �� � � auto_master/auto.master NIS ��� � ��� �� ��

��� ��� AIX 5L Version 5.2 System Management Guide: Communications and Networks� ″How

to Manage NIS automount Maps″� ������.

-MountOptions ��� �� ��� ������. � ���� ��� -(�� ��)� �� �, ��

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

� ��� ���.

�:

1. � �� ���� ��� �� ��� -MountOptions ��� ����.

2. mount ��� bg ��� �� ��� automount ��� ���� ����.

�� ���(���) 151

Page 168: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

automount �� �� � ��� ���. ���� ��� �� NFS(���� �� ���) ���

��� �� ��� �� ��� �� ��� ��� �� �� �� ��� ������. /etc/mtab �

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

����. ���� ��� �� ���� ignore� ��� mount ��� -t �� ���� �����.

��� �� ���� mount �� �� df ��� ��� ���� ����.

�� ��

automount ��� ��� �� �� automount ��� �� � ���. �� automount �

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

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

�� ��� { }(���) �� ����, ����� ��� �� ����� � � ���.

�: �� NFS ��� ����� ���� �� �� ��� �����. � ����� grpid,

noauto, remount, quota, noquota, posix, nocto � noac� ���. � ��, � ��� automount

�� � ��� ��� �����. � �� ��� ���� AUTOMOUNT_BAD_OPTS �

�� �� ������.

����

automount �� �� auto.master NIS ��� ��� �� Directory-to-MapName � ��� ���

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

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

�: � �� automount � ���� ���� ���. automount �� �� �����

auto.master ��� � ����.

auto.master NIS � ��� ���� �� �� ��� ��� AIX 5L Version 5.2 System Management

Guide: Communications and Networks� ″How to Manage NIS automount Maps″� ������.

���

-i Interval Autofs ����(�� ��� ����)� ���� �� �� � � � �����.-m �� �� �� � NIS� �� ��� �� ��� �����.-t Duration Autofs �� ��� � � �� �� ���� �� �� � � ���� �� � �

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

��

/tmp_mount �� ���� ���� ���� � ����� �����.auto_master �� auto.master automount �� �� NIS ��� �� �����.

152 �� ���, � 1 �

Page 169: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

df ��, mount ��.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� How to Manage NIS

automount Maps��� �� ���, ��� ��, �� � � auto_master/auto.master NIS ���

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

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

NFS �� ���

automountd ��

��

AutoFS �� � �� �� �

��

/usr/sbin/automountd [ -n ] [ -T ] [ -v ] [ -D name=value ]

��

automountd �� �� AutoFS �� ��� �� ������ ��� ���� ���� �� ��

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

�� �����.

� ��� �� ��� automount ��� �� �� ��� ������.

���

-Dname=Value ��� automountd � �� �� �� �����.-n � �� �� �� ��� nobrowse ��� �����.-T RPC �� ��� ��� �� ��� �����.-v �� �� ��� ��� � � �� ��� �����.

�� ��

df ��, mount ��, automount �.

AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide� How to Manage NIS

automount Maps��� �� ���, ��� ��, �� � � auto_master/auto.master NIS ���

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

�� ���(���) 153

Page 170: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

NFS �� ���

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

autopush ��

��

���� �� STREAMS ��� ���� ������.

��

autopush -f File

autopush -r -M Major -m Minor

autopush -g -M Major -m Minor

��

autopush ��� ��� �� � ��!� ����� � ��� ���� ������. �� �� �

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

���

-f File ��� ��� ��� ��� �� ���� autopush �� �����.

File ���� ��� ��� � � 4�� �� �� ��� ����. �� �� �� �

� ��� � ���.

maj_ min_ last_min_ mod1 mod2 . . . modn

� � �� � �� ��, qn �� �� � qn �� ��� ���� �����. � ��� �� �

� ��� ��� �����. min_ �� �� -1�� maj_ �� ��� � ���� �� � ���

����� last_min_ �� �� �����. last_min_ �� �� 0��, � ��� � ���� �

�����. �� � ��� �� �� � � � ��� ������, min_ �� �� last_min_ �

� ��� ��� ���.

autopush ���� �� ��� �� �� ��� ���� �����. �� ��� �� ���� �

���. ��!� �� � � � ��� � 8���, ��� ��� ��� �� ��!� �

���. �� �� #(� ��)� �����.-r �� �/� �� ��� �� ��� ��� �����.-g �� �/� �� ��� �� ���� ��� ����. � ��� �� ��� ��� � � ����, �

��� �� ��� �����.-M Major � �� ��� �����.-m Minor � �� ��� �����.

154 �� ���, � 1 �

Page 171: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ���� autopush ��� ��� � ��� � �� �� � �� ���. � �� ���

����� ���� #�� ����� � �� �� � ���� ��� �� � ���.

����

File �� � �� ��, � �� ��, � �� �� � ��� ���� ���.Major � �� ��� �����.Minor � �� ��� �����.

��

1. ���� ��� ��! ��� ���� ������ �� �� ������.

autopush -f File

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

autopush -r -M Major -m Minor

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

autopush -g -M Major -m Minor

�� ��

streamio ��

Streams �� ���

AIX 5L Version 5.2 Communications Programming Concepts� STREAMS Overview.

awk ��

��

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

��

awk [ -F Ere ] [ -v Assignment ] ... { -f ProgramFile | ‘Program’ } [ [ File ... | Assignment ... ] ]

...

��

awk ��� ��� �� ��� ��� ��� �� ��� ���� ��� � ���� � �� � �

� �����. � �, � ��� ���� �� �� ��� �����. awk ��� ���� �

� ��� 10KB���.

�� ���(���) 155

Page 172: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

awk ��� �� ��� grep ��� �� ���� � �����, �� �� �� �� � �� ��

� �� � � ���. awk �� ��� ��� ���� ��� �� ��, �, �� ��, ���

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

awk ��� LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_NUMERIC,

NLSPATH � PATH �� �� �� ����.

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

v awk ��� �� ��

v awk ��� ��

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

v awk �� ��� ��

– ��

– ��

– �

– �� �

v ��

v ��

awk ��� �� ��

awk ��� � �� ��, �� �� ��� ��� ���� �����.

�� ��� ��

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

v ����� File �� ��.

v �� � ARGV � ARGC ��.

v File �� �� �� �� �� ��.

File �� � �� ��� ����, ��� ���� ��� �����.

��� ���

���� ���� ���� awk ��� ��� �����. � ���� ����� ‘Program’ �� �

�� �����, ProgramFile �� -f ��� �� ��� ��� ��� �� � ���. �

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

�.

awk ��� ��

awk ��� �� �� ��� � ������ � �� �� ��� �����.

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

156 �� ���, � 1 �

Page 173: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

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

� �� �� �� �� ���� �� � ���. awk ���� ���� ��� ��� ����

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

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

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

1. awk ��� ���� ���� �� ��� �� �� ��� ��� �����.

���� awk ��� ��� BEGIN�� ��� , � �� �� �� �� ���� ��

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

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

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

�����. � �� ��� ��� �� ��� �� ����. � � ��� RS ��

�� ��� � � ���.

3. �� awk ��� ���� ��� ��� �����.

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

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

$1 �� ��, � �� ��� $2 �� ��, ��� �� ����� �� ���.

� ���� $0 �� ���. � � ��� ����� -F ��� ����� FS ��

�� ��� � � ���. FS �� �� ��, �� �� �� � ��� ��� ��

� ���.

4. �� ��� ����, ��� ��� ��� �� �����.

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

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

6. ��� �� ��� ��� ���, � ��� �� � ��� �����. �� ��� �� ���

� ��� �����.

7. ��� ��� ��� �� �� ��, awk ��� �� �� �� ����� ��� ���� ��

���.

���� awk ��� ��� END�� ��� ��� �� �� � ���� ��� ��

� ���. � ��� �� awk ��� �� ��� �� �� ��� ��� � �����.

awk �� ���� ��

awk �� ��� ��� �� �� � � ����� ����.

Pattern { Action }

�� ���(���) 157

Page 174: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

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

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

��

awk �� �� ���� ���� ���� � �� ��� ���.

v ��

v ���

v ��� ��

v BEGIN� END ��.

���

awk ��� ���� � ��� grep �� egrep ��� ���� �� �����. �� �� �

� � ��� �� ��� ���� ������. �� �, testfile��� ��� ��� � �

�� �� �����.

smawley, andysmiley, allensmith, alansmithern, harrysmithhern, annesmitters, alexis

� ���� �����.

awk ’/smi/’ testfile

� ��� smi ���� ���� � �� �� �� �� ��� �����. � ���, awk ��

� ��� ‘/smi/’� ��� �� �����. �� ��� �� ����.

smiley, allensmith, alansmithern, harrysmithhern, annesmitters, alexis

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

�� ��

+ +(���) �� ���� �� ��� �� �� � ��� ��� �� � �� ���� ��

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

awk ’/smith+ern/’ testfile

�� smit �� h ��� �� �� ��� �� ern�� ��� ���� � � �� �

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

smithern, harrysmithhern, anne

158 �� ���, � 1 �

Page 175: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

? ?(��) �� � ��� � ��� ���� ��� � � ���� ���� ����� ��

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

awk ’/smith?/’ testfile

� ��� smit� �, � �� h� ��� � � ���� �� �� �� �� ��� ���

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

smith, alansmithern, harrysmithhern, annesmitters, alexis

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

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

awk ’/allen|alan /’ testfile

� �� ��� allen �� alan� ���� � �� �� �� �� ��� �����. �

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

smiley, allensmith, alan

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

awk ’/a(ll)?(nn)?e/’ testfile

��� ae �� alle �� anne �� allnne� ���� �� �� �� �� ��� ����

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

smiley, allensmithhern, anne

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

� ����.

awk ’/l{2}/’ testfile

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

smiley, allen{m,} ��� ��� ���� m � ��� �� �� ���� ����� �����. �� � ��

����.

awk ’/t{2,}/’ testfile

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

smitters, alexis{m, n} m� n� ��� � �� ��� � ��� ��� �� ��( �� m <= n) ���� ���

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

awk ’/er{1, 2}/’ testfile

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

smithern, harrysmithern, annesmitters, alexis

�� ���(���) 159

Page 176: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

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

awk ’/sm[a-h]/’ testfile

sm� � � �� a� h ��� ���� �� ���� ��� � �� �� �� �� ���

�����.

smawley, andy[^ String] ��� ���� �� � �� [ ](���) � ^(�&)� ��� ��� � ��� ���� �

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

awk ’/sm[^a-h]/’ testfile

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

smiley, allensmith, alansmithern, harrysmithhern, annesmitters, alexis

~,!~ ��� �� ��� ��(~) �� ���(!~)��� ���� �����. �� � �� ���

�.

awk ’$1 ~ /n/’ testfile

� �� �� �� n� ���� � �� �� �� �� ��� �����.

smithern, harrysmithhern, anne

^ �� �� ��� �����. �� � �� ����.

awk ’$2 ~ /^h/’ testfile

� �� �� � �� ��� �� h� � �� �� �� �� ��� �����. � ���

��� �� ����.

smithern, harry$ �� �� �� �����. �� � �� ����.

awk ’$2 ~ /y$/’ testfile

� �� �� ��� ��� �� y� � �� �� �� �� ��� �����. � ���

��� �� ����.

smawley, andysmithern, harry

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

���.

awk ’/a..e/’ testfile

� �� ��� � �� a� e ��� ��� � �� �� �� �� ��� �����. �

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

smawley, andysmiley, allensmithhern, anne

160 �� ���, � 1 �

Page 177: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

*(asterisk) ��� �� �� � ���� �����. �� � �� ����.

awk ’/a.*e/’ testfile

�� a� e� 0 �� � �� ��� ��� �� �� �� �� ��� �����. � ���

��� �� ����.

smawley, andysmiley, allensmithhern, annesmitters, alexis

\(backslash) ���� ��. ���� ��� � ��� ��� ��� �� ��� � �� �� ��,

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

/a\/\//

a// ��� �����. !���, ���� ��� ��� ����� ���� �� ���

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

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

���� ��� ��: awk ��� awk ��� �� ��� ��� ���� ���� ��� ��

� C ���� �#��� ���� �� � ���� ��� �����. ���� ��� �� ��

��.

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

\″ \″(�� �� ��) ��

\/ /(��) ��\ddd ���� � ��, � �� �� � ��� 8�� ��� ���� ��. �� d� 8��� �����.\\ \(���) ��\a �� ��

\b ����� ��

\f ��� �� ��

\n � �� ��(�� �� ��)\r ��� ��(CR) ��\t � ��

\v �� �

�: gsub, match, split � sub �� ��� ����, � ��� ��� �� �� ����

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

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

� � ����. ��� �� ����� ��� �� ���� ����, ( � � ��� ��

��) �� ��� ��� �� ��� � ��� ����� � ���. ���, awk ��

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

���.

���

��� ��� <(�� ��), >(�� ��), <=(��� ��), >=(��� ��), = =(��) ��� !=(�� �

�)� ��� �� � �����. �� � �� ����.

$1 < $4

�� ���(���) 161

Page 178: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

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

$1 =! "q"

� ��� � �� �� q� �� �� �����. �� � �� ����.

$1 >= "d"

� �� �� �� a, b, c �� d� ���� �� �� ����. � ��� ���� �� ��

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

��� �

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

v � � ,(��)� �� � � � ��� �� �����. � �� ��� ���� �� ��� �

�� ��� ���� � ��� �� �(� �� ��� ���� �� ��)� ��� ��

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

/begin/,/end/

��� begin� � � �, � �� ��� end� � � � ��� �� � �

��� end� � � �� ����.

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

v �� ��� ||(��), &&(�), !(NOT)� ��� ��� ��� � �� ��� ���� �� ��� ��

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

$1 == "al" && $2 == "123"

� �� �� al�� � �� �� 123� �� ����.

BEGIN � END ��

BEGIN ���� ��� ��� �� ��� �� �� �����. END ���� ��� ��� �� �

�� �� � �����. � �� BEGIN � END ��� ��� ��� ���� �����. ��

� ����� END ��� BEGIN �� �� � � ���. ���� BEGIN ������ �� �

�, ��� ���� ��� ��� �� ����. ���� END ��� �� ��, �� ��� ���

��� �� ����.

��

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

v ���

v �� ��

v ��� �� ��

v ���

v ���

162 �� ���, � 1 �

Page 179: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

���� { }(���)� �� ���. �� �� ���� ����, ��� �� �� �����. ��

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

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

���

� ��� +(��� ��), -(�� ��), /(���), ^(���), *(��), %(����)� � � � �����.

Expression Operator Expression

�� � �� ����.

$2 = $1 ^ 3

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

�� ���

�� -(��) � �� +(���)� C ��� �����! �����.

+Expression or -Expression

�� � � �� ���� C ��� ����� �� �����.

++Variable or --Variable

�� � � �� ���� C ��� ����� �� �����.

Variable++ or Variable--

���

�� ���(���) 163

Page 180: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��� +=(���), -=(��), /=(��) � *=(���)� � � � C ��� ����� �� �����.

Variable += Expression

Variable -= Expression

Variable /= Expression

Variable *= Expression

�� � �� ����.

$1 *= $2

� � $1� � � $2� �� � �� �� $1� �����.

�� ��� ^=(���)� %=(����)� �� �� � � ����.

Variable1^=Expression1

���

Variable2%=Expression2

���� C ���� ��� ��� �� ����.

Variable1=pow(Variable1, Expression1)

���

Variable2=fmod(Variable2, Expression2)

�� pow� pow ����� fmod� fmod ������.

��� ���

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

$3 = $1 $2

� � $1� $2� ���� ��� � � $3� �����.

�� ��

awk �� ��� � ��, ��� �� � �� ��� �����. ��� ��� �� ��� ���

�� ����� ���� close ����� �� �� ���.

�� ��: � � ��� ��� ��� C �� ���� �� ��� �����.

atan2( y, x) y/x� �� ���� �����.cos( x) x� ���� ����, x� �����.sin( x) x� ��� ����, x� �����.exp( x) x� �� ��� �����.log( x) x� �� ��� �����.sqrt( x) x� ���� �����.int( x) �� x �� ��� �����.rand() '� �� n� �����. � �, 0 <= n < 1.srand( [Expr] ) rand ��� � �� Expr ���� ��� �����, Expr ���� �� �� �

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

164 �� ���, � 1 �

Page 181: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ��: ��� ��� �� ����.

gsub(Ere, Repl, [ In ]) ���� �� ��� ����� �� ����, sub

��� ��� ��� ���.sub(Ere, Repl, [ In ]) In ���� ��� ����� Ere ���� ��

��� � �� � � �� ��� Repl ��

�� �� ��� ���� �����. sub ��� �

� �� �����. Repl ���� ���� ��

�� ���� &(���)� Ere ���� ���

� ��� ���� In ���� ���� ����

�. In ���� ���� ���, � � �� �

��($0 � �)���.index(String1, String2) String2 ���� ��� ���� ���� String1

���� ��� ����� 1�� ��� �" �

� �����. String2 ���� String1 ����

���� ���, 0(��)� �����.length [(String)] String ���� ��� ���� ��� �� �� �

����. String ���� ���� ���, ��

�� ��($0 � �)� �����.blength [(String)] String ���� ��� ���� ��� �� �

� �����. String ���� ���� ���, �

� �� ��($0 � �)� �����.substr(String, M, [ N ]) N ���� ��� �� �� � �� ���� �

����. �� ���� String ���� ��� �

�� ���, M ���� ��� �� � ���

�� ��� ����. M ���� �� 1�,

String ���� � �� ��� �����. N ��

�� ���� ��� String ���� �� ��

��� � ���� ��� M ���� ���

��� �����.match(String, Ere) Ere ���� ��� � ��� ���� String

���� ��� ����� 1�� ��� �" ��

� �� �����. ��� ��, Ere ���� �

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

� 0� �����. ���� RSTART �� �� �

�� �����. RLENGTH �� �� �� ���

���� ��� "����� ���� ��� -1� �

����.split(String, A, [Ere]) String ���� ��� ���� �� �� A[1],

A[2], . . ., A[n]�� ��, n �� �� ���

��. Ere ���� ��� � ���� ���,

Ere ���� �� ���� �� � � ��(FS

�� �)� ����. A ��� � �� ���,

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

����, ��� �� ��� ����.tolower(String) String ���� ��� ���� �����. � �,

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

��� ��� �� ���� LC_CTYPE ��� �

� �����.

�� ���(���) 165

Page 182: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

toupper(String) String ���� ��� ���� �����. � �,

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

���� ��� �� ���� LC_CTYPE ��� �

� �����.sprintf(Format, Expr, Expr, . . .) Format ���� ��� printf ��� �� ��

�� �� Expr ���� ��� ���� ��� �

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

�� ��: �� ��� �� ����.

close(Expression) print �� printf �� �� ����, ��� ��

� �� �� Expression ���� �� getline �

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

��� ��� ���� ����, 0� ����,

��� ��� 0 �� �� �����. ��� �

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

��� close �� �� �� ���.system(Command) Command ���� ��� ��� ���� �

� � �����. � ���� system ���� �

����.Expression | getline [ Variable ] Expression ���� ��� ��� ������ �

�� ��!�� �� �� �� � ��

Variable ���� ��� �� ���.

Expression ���� �� ���� �� ��!�

�� ��� � ��� ��!� ����. �

� ��!� Expression ���� �� r ��� �

�� Mode ���� ��� Command ����

�� popen ���� ��� �� ��!� �

����. ��!� ��� � Expression ���

� �� ��� ���� ���� �, getline ��

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

� Variable ���� ���� ���, $0 �

�� NF �� �� ��!���� �� �

� �����

getline [ Variable ] <Expression Expression ���� ��� ���� � ��

�� ��, Variable ���� ��� �� �

�� ��� �����. ��!� ���

� Expression ���� �� ��� ���� �

��� �, getline ��� �� �� ��� �

�� ����. �� Variable ���� ���

� ���, $0 � �� NF �� �� ��

!���� �� �� �����

getline [ Variable ] Variable ���� ��� �� �� �� ���

� �� �� �����. Variable ����

���� ���, $0 � �� � �� �

�� ����, NF, NR � FNR �� �� ��

���.

�: �� � � getline ��� ��� ��� ���� 1, �� �� ���� 0 ��� ��� �

��� -1� �����.

166 �� ���, � 1 �

Page 183: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �� ��

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

function Name (Parameter, Parameter,...) { Statements }

��� awk �� ���� �� #�� �� � �, ��� �� �� � � ���. ��� �� �

� �����.

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

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

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

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

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

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

�� ���� ��, �� �� 0�� ������ ������. ���� �� ���� � ��� ��

����.

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

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

��� �� �� ��� ��� �� ��� ����. return�� ��� �� �� � ���.

�� �� ��� � �� ��� ���� ��� { �� ��� ��� } �� ���� � � ��

�.

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

function average ( g,n){

for (i in g)sum=sum+g[i]

avg=sum/nreturn avg

}

�� average�� �� g� � n� �����. � �, n� ��� � ��� �����. ��� ���

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

���

awk �� ��� ���� �� � ���� C ��� ��� ���� �� �� � ��� ��

��. �� ���� ���� �� ����� � { }(���)� ��� �����. ���� ��� �

� ��� � ��� ��� � ��� �� � ���. ;(���)� ��� { }(���) �

� �� �� � ���. C ��� � �� ���� �� ����.

if �� �� ��� ��� ���.

if ( Expression ) { Statement } [ elseAction ]

�� ���(���) 167

Page 184: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

while �� �� ��� ��� ���.

while ( Expression ) { Statement }for �� �� ��� ��� ���.

for ( Expression ; Expression ; Expression ) { Statement }break while �� for ��� break �� �� � ��� �� �����.continue while �� for ��� continue �� �� � ��� �� � ����� ������.

awk �� ��� ���� C �� �� ��� �� �� �� ���� �� ����.

for...in �� �� ��� ��� ���.

for ( Variable in Array ) { Statement }

for...in �� Variable ���� Array �� �� ��� �����. �� �� �� � �� ���

��� ����, ��� �� Statement ���� ��� ��� �����. for...in�� �� ���

delete�� ������.if...in �� �� ��� ��� ���.

if ( Variablein Array ) { Statement }

if...in �� Array ��� ����� �����. Array ��� ���� ���� �����.delete �� �� ��� ��� ���.

delete Array [ Expression ]

delete�� Array ���� �� ��� �� ��� Expression ���� ��� ��� �� ���

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

for (i in g)delete g[i];

� �� g[] ��� �� ��� ����.exit �� �� ��� ��� ���.

exit [ Expression ]

exit �� � END ��� ���� ���� ��� �, awk ��� ���, Expression ����

��� � � � �����. END �� �� exit �� �� ��� END ��� ���� ����.# �� �� ��� ��� ���.

# Comment

# ���� ��� �����. ��� �� � ��� ��� ��� � � ������ �� � ��

�.next �� �� �� ��� ���� � �� �� �����.

168 �� ���, � 1 �

Page 185: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

awk �� ��� ��� � ���� �� ����.

print �� �� ��� ��� ���.

print [ ExpressionList ] [ Redirection ] [ Expression ]

print�� ExpressionList ���� ��� ���� �� �� ��� �����. ���� OFS �� �

� �� ��� ���, �� ORS �� �� �� ��� ����.

Redirection ���� ��� �� ��� �� � ��, Redirection ���� �� ��� >(�� �), >>(�

� �) ��� |(��)� ��� � ��� �� � ���. Redirection ���� �� �� ��� ���

����, Expression ���� ��� �� ��(Redirection ���� > �� >>� ��) �� ��� ��

(Redirection ���� |� ��)� ���.printf �� �� ��� ��� ���.

printfFormat [ , ExpressionList ] [ Redirection ] [ Expression ]

printf�� ExpressionList ���� ��� ���� Format ���� ��� ���� �� ��� �����.

printf �� c � ��(%c)� ����, printf ��� ��� ��� �����. Redirection� Expression ��

�� print���� �� ��� ���.

c � ��: ��� �� �� ��� ��, ���� � � �� �� ��� �����. �� 0��� �� �

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

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

�: Expression ���� Redirection ���� �� ��� �� ��, Expression ���� �

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

��

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

�.

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

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

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

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

x = "4" + "8"

12� �� � x� �����.

��� ��� � ���� �� ����. ���� ��� ���� ���, ���� 0� ������.

���� ���� ���� ���, ���� �(null) ���(″ ″)� ������.

�� ��

� �� $(�� ��) �� �� �� ���� �����. �� � �� ��� $1 ��

��, � �� ��� $2 �� ��, ��� �� ����� �� ���. $0 � ��

�� ���(���) 169

Page 186: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

���, $NF � �� �� ��� � �� �� ����, �� �� ���(�(null) ����

��), NF �� �� �� ����, $0 � �� �� �� �����. �� �� �� �

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

����, -F ��� �����, FS �� �� awk �� ���� � ��� ������.

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

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

� ����.

/red/ { x["red"]++ }/green/ { y["green"]++ }

red � � green �� �� ������.

## ��� ��� ��� ���! ��� �� ��� ��� ��� � ���. awk ��� �

� ��� ��� ���� 1���� ���, ��� �� � � ��� ���� ��� �� ��

���� �� ���� � � ���. ���� SUBSEP �� �� ��� � ���. ���,

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

x[expr1, expr2,...exprn]

���

x[expr1SUBSEPexpr2SUBSEP...SUBSEPexprn]

in ���� �� �, ��� Index �� �� �� ��� ���. in ���� ��� ����, ����

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

�� ��

� �� awk ��� �� ��� �� ��� ���.

ARGC ARGV ��� � ��� �. � �� � � ���.ARGV File � �� Assignment � � ��� ���� ��� ����� ���, ��� ����� ���

�, ��� 0(��)�� ARGC -1�� �"���. �� ��� ���� ARGV ��� � ��� �

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

v � ��� Assignment����. � ��, ��� �����.

v � ��� �(null) �� ��� ���. � ��, ��� �����. �� ��� ���� � ARGV

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

v � ��� awk ��� �� ��� ��� ���� ARGV [ARGC -1]� �� ����.CONVFMT ��� ���� ��� printf ��(��� ��, �� OFMT �� �� ���). � �� ″%.6g″�

��.

170 �� ���, � 1 �

Page 187: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ENVIRON awk ��� ���� ��� ���� ��. ��� ��� �� �� ���� �� ���.

ENVIRON[″Environment VariableName″] = EnvironmentVariableValue

awk ��� ���� �� �, �� �����. ��� ENVIRON �� �� � �� ���� �

� ���� �����.FILENAME �� �� ��� �� ��. BEGIN �� �� �� FILENAME� �� ���� ����. END ���

���� �, �� ��� �� ��� �����.FNR �� ��� �� �� �� ��.FS �� � ���. ��� �� �����. �� � ���� ���� ���� ���, �� � �

� ��� �� ��� ����. FS �� �� � �� ���� �� � � ���.

v FS� �� ��� ���� �� � ��� �� � ���.

v FS� � ���� ����, � ��� ���� ��� �� ����.NF �� �� �� ��. ���� 99���. BEGIN �� ���, NF �� �� Variable ����

��� � �� getline ��� ��� ���� ���� ���� ����. END �� ���, Variable

��� �� ��� ���� �� getline ��� END ��� ���� �� ���� �� �, NF ��

�� ����� �� �� �� �� �����.NR �� �� �� ��. BEGIN �� ��� NR �� �� �� 0(��)���. END �� ���, �

� ��� �� �����.OFMT �� ��� ��� ���� ��� printf ��. � � �� ″% .6g″���.OFS �� � ���(� �� �����).ORS �� � ���(� �� � �� �����).RLENGTH match ��� �� ���� ���� ��.RS �� � � ��(� �� � �� �����). RS �� �� �(null)�� �� �� ���

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

� � �� ���� ����. ���, � �� ��� FS �� �� �� ���� �� �

� �����.RSTART match ��� �� ���� �� ��, 1�� ��� ����. match ��� ���� �����.SUBSEP �� ��� � ���. � �� \031���.

���

-f ProgramFile ProgramFile �� ��� ����� awk ��� �� ���� ����. �� -f ��� �

� ���� ��� ��� ��� ��� ��� ��� �����.-F Ere Ere �� ��� � ��� � � ��� �����. � � � � ��� ����

�.-v Assignment awk ��� ��� �� �� �� �����. Assignment ���� Name = Value ��

���. Name � � � ��� ����, ��, �� � ��� �� � ��, �� ��

��� ���� ���. Value � � ��, �� � ��� ���, ��� ″(��� �� ��

�� �� �� �� ��)� �� ��! �����. �� Value � � ����, � �� ��

�� �����.

-v ��� �� ��� ��� BEGIN � � ��� awk �� ���� �� � � ����

�� �����.Assignment awk ��� ��� �� �� �� �����. � ���� ��� ��� -v ���

� Assignment �� ����. �, ���� � � ����. Assignment ���� ���

�� � ��� �� ��� �� ��(File �� ��) � �� �����. Assignment �

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

��� �����. Assignment ���� ��� �� �� ����, END ��(� ��) �

� ��� �����. �� ��� ���� �� ��, ��� ���� �� ��� ����.�� �� ��� ���� � �� ��� �����. File �� ���� ��� -(��) ���

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

�� ���(���) 171

Page 188: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

’Program’ awk ��� �� ���� ���� ���. -f ��� ���� ��� ����� Program

�� �� ��� ���. ‘ ’(�� �� ��)� �� ���.

�� ��

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

0 ����� ��� ���.>0 ��� ������.

exit [ Expression ] ���� ��� ����� � � � � � ���.

��

1. 72��� �� ����� �� �� ������.

awk ’length >72’ chapter1

� ��� chapter1 ���� 72��� �� �� �� �� �� ��� �����. �� Action

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

2. ″start″ � ″stop″� ��� �� start� stop ��� � �� �� �����, �� �� �

�����.

awk ’/start/,/stop/’ chapter1

3. �� chapter1� ���� awk �� ���, sum2.awk� �����, �� �� ������.

awk -f sum2.awk chapter1

� ��� sum2.awk� �� �� chapter1� � �� �� � ��� ��� � � �����.

{sum += $2

}END {

print "Sum: ", sum;print "Average:", sum/NR;

}

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

� ��� ������. � �� �� �� �� END� �� ��� �� �� �� � ��� ��

��� ���. � � ��� � ���� NR �� �� ���� �� �� �� ����

�� ����.

4. � � �� �� �� ��� �����, �� �� ������.

awk ’{ print $2, $1 }’ chapter1

5. �� awk ����

awk -f sum3.awk chapter2

172 �� ���, � 1 �

Page 189: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� �� �/�� ��, ��� ��� � �� � chapter2 ��� � � �� ����

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

BEGIN {FS = ",|[ \t]+"}{print $1, $2}{s += $1}

END {print "sum is",s,"average is", s/NR }

�� ��

egrep ��, fgrep ��, grep ��, lex ��, printf ��, sed ��.

popen ���, printf ���, system ���.

back ��

��

backgammon ��� �����.

��

back

��

back ��� ����� backgammon� �� ���� �����. ���� ���, � �, ���� �

� �� � ��� ��� � � ���. �� �#� �� ���� � � �, � ��

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

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

v 0� ��� �� �� �� ������.

v 1� ��� �� � �����.

v 24� �� �� � �����.

v 25� ��� � �� �� ������.

�� ���� ��� �� ����� ���, �� �� � Instructions?� ���� Y� ������.

�� �� move? ��� �����. �� ��� ����� ?(��) �� �� �� ���� �

��� ����.

�� ���, �� ��� ���� ����. Y� ����, �� ����� back.log ��� �� ��

�� �����.

back ��� ��� ���� ��� ���� ���� ���. � �� �� �� ����� ��, ��

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

�.

�� ���(���) 173

Page 190: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �����, ����(Ctrl-C) �� ����.

��

/usr/games ����� ��� �./usr/games/lib/backrules � ��� �./tmp/b* �� �� ��� �.back.log ��� ��� ��� �� ���� �����.

�� ��

arithmetic ��, bj ��, craps ��, fish ��, fortune ��, hangman ��, moo ��, number ��,

quiz ��, ttt ��, turnoff ��, turnon ��, wump ��.

backsnap ��

��

JFS2 �� ���� �� ���� ��� ���� �� ���� ������ �����.

��

backsnap [ -R ] -m MountPoint -s size=Size [ BackupOptions ] FileSystem

��

JFS2 �� ���� �� ���� ��� ���� �� ���� ������ �����.

���

-m MountPoint �� ���� ���� ��� �����.-R � �� � � ���� �� ���� ����� �����.-s size=Size �� ��� ��� ��� � ��� �����.

Size �� M� � ��, �� � ��� ����. Size �

� G� � ��, �� �� ��� ����. ��� �� �

�, �� 512 �� ��� ����.

����

BackupOptions � �� ��� ���� �� �� � backup ��� �

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

��� �� ��, � ��� �� -i ��� ���� ���.

inode� ��� ��, � ��� �� � ��(-[0-9])� ��

�� ���.FileSystem ��� � �� � JFS2 �� ���� �����.

174 �� ���, � 1 �

Page 191: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

0 ��� ���� ��� ���.

>0 ��� ������.

��

1. /home/janet/sb �� ���� ���� ��� ����� ����, �� �� ������.

backsnap -m /tmp/snapshot/janetsb -s size=16M -i -f/dev/rmt0 /home/janet/sb

� ��� 16MB ��� ��� ��� �� � �� �� ��� ��� /home/janet/sb �� ��

�� ���� ����. � � /tmp/snapshot/janetsb� ���� ���� � �� ����

� �� � ����� ����� /dev/rmt0 ��� ����.

2. /home/janet/sb �� ���� ���� ��� inode��� ����, �� �� ������.

backsnap -R -m /tmp/snapshot/janetsb -s size=16M -0 -f /dev/rmt0 /home/janet/sb

� ��� 16MB ��� ��� ��� �� � �� �� ��� ��� /home/janet/sb �� ��

�� ���� ����. � � /tmp/snapshot/janetsb� ���� ���� ���� � ��

�� /dev/rmt0 ��� inode��� ����. �� ��� � ���� ����.

��

/usr/sbin/backsnap backsnap ��� �����.

�� ��

backup ��, snapshot ��.

backup ��

��

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

��

�� �� ��

backup -i [ -b Number ] [ -p [ -e RegularExpression ] ] [ -E{force|ignore|warn} ] [ -f Device ] [

-l Number ] [ -o ] [ -q ] [ -v ]

i ��� �� �� ��

backup [ [ -Level ] [ -b Number ] [ -c ] [ -f Device] [ -L Length ] [ -u ] ] [ FileSystem ] |

[ -w | -W ]

�� ���(���) 175

Page 192: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

backup ��� �� ��� ���� �� � ��� ���� ��� �����. ��� �� �

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

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

v Level � FileSystem ���� ��� i ��� �� �� �� ���.

����� backup ��� ����, � �� /dev/rfd0 ��� �� �� ���� � 9� i � �

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

-9uf/dev/rfd0 /dev/rhd4

� � � ��� /dev/rfd0���. ��� ��� � ��� ���� �� ��� ��� backup �

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

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

�:

1. backup ��� ���� �� �� ��� ��� ��� ���� �� �����.

2. ��� � �� ��� ����, ���� ���� ��� �� � ���. ��� �

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

3. �� � ��� 0�� ��� �� ��� �� � ��, backup ��� �� � � ��

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

��, backup ��� � � �� ��� restore ��� �� �� � ���.

, �� �� � ��� 0� � -b ��� ����� ���. backup ��� -b ���

���� ��� � � ��� �� ��, ���� ���� ��� ����� restore ��

� -b ��� ��� ��� ��� ���� ���.

�� �� ��

���� ����, -i ��� ������. backup ��� �� �� ��� �� �� ��� ��

��.

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

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

�:

1. ���� ��� �� �� ��� ��� ��� �����. ����, �� ����� ��

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

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

�. ��, ���� backup ���� ���� ����� �� ������.

176 �� ���, � 1 �

Page 193: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

�� � ���"�� �� ��� �� �� ��� ″��″���. ��� ��� ����, �

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

��� �� a �� �� ��� ���.

3. -p ��� ���� 2GB �� ��� �����.

i ��� �� �� ��

i ��� �� ���� ����, -Level � FileSystem ���� ������. -u ��� �� �

��� -Level ���� �� ���� � � � ��� ������ �� �����. -u �

�� ���� -Level ���� n�� ��� n-1 �� �� ��� ��� ���� �����.

� � �� �, � � �� �� ��� /etc/dumpdates ��� � ���. ��� � �

� 0-9���. � 0 �� �� ���� �� ��� ������. /etc/dumpdates ��� �� ��

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

���� ���.

FileSystem ���� ��� ��� �� ��(� �� � ��)�� �� ���� ��� ����

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

���� �� ��� ��(�� �, /dev/hd4)� �� �� ��� �� ��, i ��� ���� �

��� �� ���.

�:

1. i ��� �� �� �� �� ���� � �� ���� ���. ��� �� ����

� ��, �� ��� �����. backup ��� ������ �� �� � �� �

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

2. i ��� �� ���� ��� uid �� gid� 65535 �� � ��� uid �� gid� ���

�. ��� ��� �� � uid � gid �� �� � �� �� � ���. �� � ��

�����, uid �� gid� 65535 �� � ��� �� ���� �����.

3. i ��� � �� �� �� ���(JFS)� ��� � ���. JFS� �� �� ���

� �� �� �� pax, tar �� cpio ��� �� � ��� ��� ��� �����.

���

-b Number �� �� ���� ��� �� 512 ��� � �� ����, i �� �� 1024 �

�� � �� �����. backup ��� �� ��� �� �� � � �� ��� �

� 100, i �� �� 32���.

�� ��� � �� � ��� �� ����. �� ��� �� backup ��� � �

�� ��� ���� � ���� 51200(100 * 512)��, i ��� � ����

32768(32 * 1024)���. �� ��� ��� ��� � ��� ����� ���.

backup ���� ���� � ���� -b ��� �� �� �����. ��� ��, ��

��� ��� ���� ����� �����.-c ��� 9-��� ��� ����� �����.

�� ���(���) 177

Page 194: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-e RegularExpression ��� ���� ��� �� ��� ���� �� �� �����. ��� �� ����

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

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

���. -e ��� -p ��� ��� ���� �����.-E ��� �� ��, -E ��� � �� � ��� ���� ���. -E ��� �� ��,

warn� � � �����.

force ��� � �� �� ��� � ��� �� � �� ��, ��� �� � �

�� �����.

ignore � �� �� �� ��� �����.

warn ��� � �� �� ��� � ��� �� � �� �� ��� �����.-f Device �� ��� �����. ��� ��� ��� ��� �����, Device �� �� ��(�

� �, /dev/rmt0)�� ������. �� �� ��� �����, -(�� ��)� ����

��. -(�� ��) ��� ���� backup ��� ��� dd ��� �� � ���.

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

/dev/deviceXXX-YYY

�� XXX� YYY� ����, XXX� �� YYY�� ��� ���. �� �, /dev/rfd0-3.

��� � � �� ��� �� ����� ���. �� �, 8mm, 2.3GB �� �� ��

1.44MB ��� ��� �� � ���. �� �� ��� ��� ��� �� � �

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

Device ��� � � ���� backup ��� ���� � � � ���� � ��� �

����. ��� ��� �� ��� backup ��� ���� �� � � �� ��� �

���� �����.-i ��� �� ���� �� � �� ���� ��� �� �����. �� �� ��� �

���, (restore ����) ���� � �� ����� ��� �����. �� �� ���

���� ��� ���� ��� ���� �����.-L Length ��� ��� �� � � �����. � ��� -c, -d, -s ��� ������. �

(512 ��), ��(1024 ��), �(1024KB) �� ��(1024MB)� �����, b, k, m

�� g ���� ��� �� � ���. 2GB� �� ��� �����, -L 2g� ���

���.

�: i ��� � ���� -L ��� ������.-l Number ��� L ��� ��� �� �� �� �� �����. ��� �� ��� �� ��

�� 0� �� �� � ���. � ��� ��� ��� �����. ��� ��� ���

�� ��� format ��� ������.-o �� 2� �� ��� ��� �� ����. � ��� �� 2 ���� �� ���

�� �� 2 ���� �� � ���� � ��� �� 2 ����� ��� � ��

���. �� 2 �� ��� ��� �� ����, ��� �� ���� � ���

�� -o ��� ������. �� 2� ���� �� ���� ����, ��� ��

��� � ��� �� -o ��� ������.

�� 2 ���� ���, �� � ��� ID � �� ID� �� � � �� �� ��� �

�� ����. �� � �� �� � �� ��� �����.-p ��� ����� �� ��� �� �� �����. 2GB �� �� �� �����.

�: � ��� �� �� ����� ��� � �� ���� ���. �� ��

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

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

178 �� ���, � 1 �

Page 195: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-q �� ��� ��� �� ��� � � �����. -q ��� ����, ����� �

��� ���� Enter �� ��� ���� �� backup ��� �����. � �

�� � �� ���� ����, � ��� ���� �����. -q ��� ��� �

�� �����.-u �� ���� �� �� �� � � � , �, �� /etc/dumpdates ��� ����.

� � �� ��, -u ��� ��� � ���. -u ��� i �� ��� ���

��.-v backup ��� �� �� �� ��� ����� ���. ��� �� �, �� ���

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

�� �� ��� ��� � � �����. ����� ��� 0�� �����. �� ���

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

� ��� ���� ���. � � �� ��� �� ��, 0 ��� �����.

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

� �� ���� ��� ���� �����.-w ��� �� � ����. -w ��� ����, � ��� ���� ����.-W /etc/dumpdates ��� �� ���� �� �� � � �� �� �����. -W

��� ����, � ��� ���� ����.-Level � �(0 - 9)� �����. � � �� 9���.

�� ��

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

0 ����� ��� ���.>0 ��� ������.

��

1. �� �� ��� ��� /home ����� �� �� � ������� ����, �� �� ��

����.

find /home -print | backup -i -f /dev/rmt0

-i ��� �� ���� ��� �� �� ���� ��� ������ �����. find ���

/home ����� �� �� ���� ����. � ���� ��� �� �� �����. |(�� �

�)� � ���� backup ��� �� �� ���� ��� ���. -f ��� backup ���

/dev/rmt0 �� ��� ��� ��� �����. �� �� ��� ��� ��� ����"�

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

2. �� �� ��� ��� /home/mike ����� �� �� � ������� ����, �� �

� ������.

cd /homefind . -print | backup -i -v -q

find ���� �� ���� �� �� ��� ./� ����. ��� �� �� ��� ��� �

���, �� � �� ����� �����. -v ��� backup ��� �� �� �� ��� �

��� ���. ��� � � � �� /dev/rfd0� �����.

�� ���(���) 179

Page 196: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. /(��) �� ���� ����, �� �� ������.

backup -0 -u -f /dev/rmt0 /

0 �� /(��) �� ���� � �� ��� ���� �����. -u ��� backup ���

�� /etc/dumpdates ��� ���� ���.

4. ��� � �� 0� ��� ��� /(��) �� ���� �� ��� ����, �� �� ��

����.

backup -1 -u -f /dev/rmt0 /

/etc/dumpdates ��� /(��) ���� � 0�� �� ��� ��� �� ���� � �� �

�� ����.

��

/etc/filesystems �� ��� �� ��� �����./etc/dumpdates i � �� � �� �� ��� �����./dev/rfd0 � � � ��� �����./dev/rhd4 � � �� ���(��)� � ��� �����./usr/sbin/backup backup ��� �����.

�� ��

dd ��, find ��, rdump ��, restore ��.

dumpdates ��, filesystems ��, rmt �� ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Backup Overview

for System Management��� �, �� ���� � ��� �� �, � ��� � ��,

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

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ���� ����� ���� � �� ��

� �� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

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

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Mounting Overview

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

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool��� ��, �� � � SMIT� ���� ���� �� �����.

180 �� ���, � 1 �

Page 197: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

banner ��

��

�� ��� ASCII ���� �� ��� �����.

��

banner String

��

banner ��� ASCII String� �� ��� �� ��� �����. � �� �� ��� � 10�

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

�� ���� ����.

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

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

��

1. ������� ��� �����, �� �� ������.

banner SMILE!

2. � �� � ��� ��� �����, �� �� ��� �� ��� ����.

banner "Out to" Lunch

��� � �� Out to� ���� � �� Lunch� �����.

��

/usr/bin/banner banner ��� �����.

�� ��

echo ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ����� ���

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

basename ��

��

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

�� ���(���) 181

Page 198: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

basename String [ Suffix ]

��

basename ��� String ���� ��, /(��)� ��� ��� � ��� Suffix ���� ���,

� �� �� ��� �� ��� �����. basename ��� �� �� ��� � � � ��

�����.

1. String ���� //(�� ��)���, String ��� ��� �� ��� ��� �� ���

� �� /(��)� �����. 2-4��� ������.

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

3. String ���� / ��� �� ��, ��� / ���� ��� ���� ���� ������.

4. Suffix ���� ��� � ���� �� � ��� �� ���� ���� ���� ����.

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

K > basename /u/dee/desktop/cns.boo cns.boo

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

cns.boo

Suffix ���� ��� � ���� �� ��� ���� ���, ���� ��� ���� ���

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

K > basename /u/dee/desktop/cns.boo .boo

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

cns

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

basename � dirname ��� ����� ��� �� �� ��� �� �� �� �� ��� ����

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

�� ��

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

0 ����� ��� ���.>0 ��� ������.

��

1. � �� �� ��� �����, �� �� ������.

basename $WORKFILE

182 �� ���, � 1 �

Page 199: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� � � WORKFILE� ��� �� �� ��� �����. WORKFILE �� ��

/home/jim/program.c ��� ��, ��� program.c� �����.

2. ��� ����, � �� ��� �� �� ��� ��� �� �� ������.

OFILE=`basename $1 .c`.o

� ��� OFILE ��� � �� � ���� �($1)� �����, .c ��� .o� ����.

$1� /home/jim/program.c ��� ��, OFILE� program.o� ���. program.o� �� �� ��

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

�: `(� ���)� �� ��� �����.

��

/usr/bin/basename basename ��� �����.

�� ��

dirname ��, sh ��.

batch ��

��

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

��

batch

��

batch ��� ��� �� ��� ��� �� ���� ��� ��� � �� �� �� �� �

����. batch ��� ���� � ��� ����� �� ��, �� ���� �� �� � ��� �

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

batch ��� �� �, � �� � �� ����� �� ����� �� ��� ��, �� � ��

� ���� ����.

batch ��� at -q b -m now ��� ���� �� �������. -q b ��� ���� �� ��

at ����� �����.

�� ��

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

0 ����� ��� ���.

�� ���(���) 183

Page 200: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

>0 ��� ������.

��

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

batch <<!longjob!

� ��� �� ��� batch ��� ���� � ″� ��″� ��� �����.

��

/usr/bin/batch batch ��� �����./bin/batch batch ��� �� �� ��./var/adm/cron � cron � ����� �����./var/spool/cron/atjobs �� �� �����.

�� ��

at ��, bsh ��, csh ��, kill ��, ksh ��, mail ��, nice ��, ps ��.

�: cron.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � �� ��� ����� ��

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

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� Korn � �� �� � Bourne � �� �

�.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� National

Language Support Overview for Programming��� �� ��, �� �� � ���� �� ����

�.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ����� �� ��, �� � � �

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

battery ��

��

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

��

battery [ -d ]

184 �� ���, � 1 �

Page 201: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

battery ��� ���� ����� �����. battery ��� -d �� �� �� ��, �� �� �

�� ��� �����.

battery type: NiCd or NiMHcurrent battery usage: charging, discharging, in use, fully chargedbattery capacitycurrent remaining capacityfull charge count

battery ��� -d ���� �� ���� �� �� ��� ��� �����.

discharge quantitydischarge time

��� ��� 50%� ����(20-30� ��) �� ���� ����, ���� � ��� 50% ����

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

�, ���� �� 100% �� � ���.

���

-d ���� �� ��� ��� � �� ���� �����.

��

��� ��: �� ���

�� ���: ���� �

��

1. �� ��� � � �����, �� �� ������.

battery

�� �� �����.

battery type: NiMHcurrent battery usage: in usebattery capacity: 3200 (mAH)current remaining capacity: 1800 (mAH) [57%]full charge count: 3

��

/usr/bin/battery battery ��� �����.

�� ���(���) 185

Page 202: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bc ��

��

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

��

bc [ -c ] [ -l ] [ File ... ]

��

bc ��� ��� ��� ��� ���� ��� �����. bc ��� � File ���� ��� ��

��� �� � �� ��� ����. �� ��� bc ��� �� ���� ��� ��, ��� �� �

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

bc ��� dc ��� �� �������. -c(��� ��) ��� ���� �� ��, � ��� dc

��� ���� �����. -c ��� ����, bc ��� ���� ��� ��� �� ���� ���

��.

bc ��� ��� � ��� ��� 10��, 8�� �� 16��� ���� ���. � �� 10����

�. �� � ��� 10�� ��� � ���� ��� ����. bc ��� .(���)� ��� ��

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

bc ��� �� ��� C ��� ��� �����. bc ��� ���� �� ��� ibase ��� ��

�� �� ��� obase ��� ������ �� � � � ���. � 2-16� ibase ���

��� ����. obase ��� � �� 2�� /usr/include/sys/limits.h ��� ��� BC_BASE_MAX

��� ��� �������. ibase � obase ���� ���� bc ��� �� A-F� 16�� � 10-15

� �����.

bc ��� ��� ��� ��� �� �����. ��� ���� �� ��� �� ���� �� �

� �� ��� ��� ����. ��� �� � ���� obase � scale ��� �� �� ���

��.

bc ��� �� ����� ��� ���� ��� �� ��� ��� � ���� �����.

v ���

v �� �

v ID� ���

v ���

v ���

v �� ��

v -I math ����� ��

186 �� ���, � 1 �

Page 203: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

�� ���� bc ���� �� ��� ����, �� program� ��� ���� ����.

%token EOF NEWLINE STRING LETTER NUMBER

%token MUL_OP/* ’*’, ’/’, ’%’ */

%token ASSIGN_OP/* ’=’, ’+=’, ’-=’, ’*=’, ’/=’, ’%=’, ’^=’ */

%token REL_OP/* ’==’, ’<=’, ’>=’, ’!=’, ’<’, ’>’ */

%token INCR_DECR/* ’++’, ’--’ */

%token Define Break Quit Length/* ’define’, ’break’, ’quit’, ’length’ */

%token Return For If While Sqrt/* ’return’, ’for’, ’if’, ’while’, ’sqrt’ */

%token Scale Ibase Obase Auto/* ’scale’, ’ibase’, ’obase’, ’auto’ */

%start program

%%

program : EOF| input_item program;

input_item : semicolon_list NEWLINE| function;

semicolon_list : /* empty */| statement| semicolon_list ’;’ statement| semicolon_list ’;’;

statement_list : /* empty */| statement| statement_list NEWLINE| statement_list NEWLINE statement| statement_list ’;’| statement_list ’;’ statement;

statement : expression| STRING| Break| Quit| Return| Return ’(’ return_expression ’)’| For ’(’ expression ’;’

relational_expression ’;’expression ’)’ statement

| If ’(’ relational_expression ’)’ statement| While ’(’ relational_expression ’)’ statement| ’{’ statement_list ’}’;

�� ���(���) 187

Page 204: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

function : Define LETTER ’(’ opt_parameter_list ’)’’{’ NEWLINE opt_auto_define_liststatement_list ’}’

;

opt_parameter_list:/* empty */| parameter_list;

parameter_list : LETTER| define_list ’,’ LETTER;

opt_auto_define_list: /* empty */| Auto define_list NEWLINE| Auto define_list ’;’;

define_list : LETTER| LETTER ’[’ ’]’| define_list ’,’ LETTER| define_list ’,’ LETTER ’[’ ’]’;

opt_argument_list : /* empty */| argument_list;

argument_list : expression| argument_list ’,’ expression;

relational_expression: expression| expression REL_OP expression;

return_expression : /* empty */| expression;

expression : named_expression| NUMBER| ’(’ expression ’)’| LETTER ’(’ opt_argument_list ’)’| ’-’ expression| expression ’+’ expression| expression ’-’ expression| expression MUL_OP expression| expression ’^’ expression| INCR_DECR named_expression| named_expression INCR_DECR| named_expression ASSIGN_OP expression| Length ’(’ expression ’)’| Sqrt ’(’ expression ’)’| Scale ’(’ expression ’)’;

named_expression : LETTER| LETTER ’[’ expression ’]’| Scale| Ibase| Obase;

188 �� ���, � 1 �

Page 205: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

�� �� �� bc ��� �����.

1. bc ��� ��� �� �� �� �� ��� � �� ���� ���� �����.

2. ��� /*(��, ��)� ��� */(��, ��)� ����. ��� �� ��� ��� ���

�� ���.

3. � �� ��� NEWLINE ���� �����.

4. STRING ��� ��� ��� �����. ���� ″(�� �� ��)� ��� ″(�� �� ��)

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

���� ���� ��� ����. ���� ��� BC_STRING_MAX �� ��� � ��

� ����, limits.h ��� �����.

5. �� ��� STRING ��� ����� �� ��� ��� � ���� ��� ����� ��

�� ����.

6. \n(���, � ��) ��:

v �� ��� ����.

v STRING ����� �� ��� �����.

v �� � NUMBER ��� ��� ���� �����.

7. NUMBER ��� � ��� �����.

NUMBER : integer| ’.’ integer| integer ’.’|integer ’.’ integer;

integer : digit| integer digit;

digit : 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7| 8 | 9 | A | B | C | D | E | F;

NUMBER �� �� ibase �� ��� �� �� ��� ��� ���� �����.

8. NUMBER ��� �� ibase �� ���� ��� ��� ���� ��� �����. ���

�� ��� ��� 0-15� �� ���, ��� ��� � � �����. ibase ���� ���

��� �� ��� ��� ���� �� ��� ���� ����. ibase � obase ��� ���

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

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

auto for length return sqrtbreak ibase obase scale whiledefine if quit

10. � �� ��� ����, �� ��� ��� LETTER ���� ����.

a b c d e f g h i j k l m n o p q r s t u v w x y z

11. �� �� �� � � �� �� ��� ASSIGN_OP ���� �����.

�� ���(���) 189

Page 206: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v =(��)

v +=(��� ��, ��)

v -=(�� ��, ��)

v *= (��, ��)

v /= (��, ��)

v %=(���, ��)

v ^= (�&, ��)

12. �� �� ��� MUL_OP ���� �����.

v *(��)

v /(��)

v %(���)

13. � �� �� � � �� �� ��� REL_OP ���� �����.

v ==(�� ��)

v <=(���(�� ��), ��)

v >=(���, ��)

v !=(� �, ��)

v <(���(�� ��))

v >(���)

14. � � �� ��� �� ���� INCR_DECR ���� �����.

v ++(�� ��� ��)

v --(�� ���)

15. �� �� ��� ���� �����. ��� �� �� ��� �� ��� ����.

<� ���>

((� �)

)(� �)

,(��)

+(��� ��)

-(�� ��)

;(����)

[(� ��)

](� ��)

^(��)

{(� ��)

190 �� ���, � 1 �

Page 207: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

}(� ��)

16. EOF ��� �� �� �� � �����.

ID ���

bc ���� ���� �� ID, �� ID � �� ID� � �� ID� ���. � ��� �� ��� �

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

���� � �� ����� �����. ��� ��� ���� ���� BC_DIM_MAX ��� ��

� ���� �� � ���. ��� 0�� �����. ���, ��� ��� 0�� BC_DIM_MAX

-1� ��� ��� �� � ���. ��� ��� �����. �� ID ��� ( )(�� � � � �

�)� �� �� �� ��� �� � �� ���. � �� ��� ID� ���� ����.

bc ��� ��� ���� �� ���� �� � �� ��� �� �� �����. �� ��

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

bc ���� ���

��� �� ��

++, - - �� ���

�� - �� ���

^ � ��� ����

*, /, % ���� � ���

+, 2� - ���� � ���

=, +=, -=, *=, /=, ^= � ��� ����

==, <=, >=, !=, <, > �

����� ��� ��� ����� scale� �����. �� ���� �� � �� ���� 10��

�����.

Named expressions� �� ��� #� ����. �� � � ���� ��� ��� �����. ��

� � ���� �� �� � � �� ��� ����. �� ID � �� ��� �� � � �����,

0� �� �� 0� �� ���� ����.

�� ��� scale, ibase � obase �� �� � � ������. ��� ��� � ��� ��� �

�� ���� ���� 0���. ��� ���� ��� �� ��� �����. scale ���� (�

��� �� ��) �� ���� ���� � ��� �� �� ���� ���. scale ���� �� 0

<= scale <= {BC_SCALE_MAX}�� ����, � � � 0� ����. ibase � obase ����

��� �� ��� �����. ibase� �� <= ibase <= 16�� �����. obase� ��

2 <= obase = {BC_BASE_MAX}� �����.

ibase �� obase ���� ″�� �″�� ��� ���� � �� �� ����, �� 16��� �

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

ibase=A

�� ���(���) 191

Page 208: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ibase ��� �� ���� �� 10�� �����. ��� �� ��, ibase ���� � ��

� ��� ��� �� ��, ��� ���� ����. ibase � obase ���� ��� 10� ���

�.

�� ��� ��� ��� ����, 10���! ��� �� �%�� �����. �� ��� �� �

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

scale=0; 3.2/1

bc ��� ��� �����.

� �� �� obase ���� �� �� �� �����.

1. �� 0 ���, ��� -(���)���.

2. �� �� ��, ��� � �� �����.

v �� �� ���� 1 ��� ��, ���(3���� ���) obase ���� ��� ��� ��

�� �� � � ����. � ��� 0� �� � ����, ��� ����� �� ���

���.

v �� �� ���� 1�� ��� 0�� �� �� �� ���� 0�� � ��, �� 0� �����

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

v �� �� 0� ��, �� ��� 0���.

3. �� ���� 0�� ��, ��� .(���) �� obase ��� �� ��� � ��� ����.

��� � ���� � � � ����, s� ���� �� ���� �����.

v obase �� 10��, ��� s ��� �����.

v obase �� 1�� �� s�� ��� �� ��� �����.

v obase �� 10�� ��� s�� ��� �� ��� �����.

v 10� �� obase �� ��, ��� 10� ���� ���� ����� ���.

v obase �� 2-16� ��, ��� ��� �� ��� � �� obase���.

0 1 2 3 4 5 6 7 8 9 A B C D E F

��� 0-15��� �� �����.

v ��� 16�� � ��, ��� � ��� � 10��� ����� �����. � �� ��

� ��� �� ��� �� �� ��� ���. �� 17-100 ��� ��, bc ��� � ��

10��� ��, �� 101-1000 ��� ��, bc ��� � �� 10��� �����. �� �, ��

25� 10�� 1024� �� �� �����.

01 15 24

�� 125��� �� ����.

008 024

192 �� ���, � 1 �

Page 209: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� � �� POSIX ����� � 70���, �� ���� � ���. � ���� �

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

��

�� ��� ������. ���� ��� ���� ��� � �� �� �%� �� � � ����

�� �� 0���.

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

�� � �� � ���.

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

-expression ��� ���� �����. ��� ���� ���� ������.

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

�. ��� ���� �� � � ���� ������.++named_expression �� � � ���� 1� � ���. ��� � � � �� � � ���� ����.- -named_expression �� � � ���� 1� �����. ��� ��� � �� � � ���� ����.named_expression++ �� � � ���� 1� � ���. ��� � �� �� �� � � ���� ���

�.named_expression- - �� � � ���� 1� �����. ��� ���� �� �� � � ���� ���

�.

��� ���, ^(�&)� � ��� ���� ����.

expression ^expression ��� � �� ���� ��� � � �� ������. � �� �

��� ��� �� ��, ��� ���� ����. a� �� ���

� ����� b� � � ���� ����� ��� ���� �

� ����.

if b >= 0 min(a * b, max(scale, a))if b < 0 scale

��� ��� *(��), /(��) � %(���)� ���� � ��� ����.

express ion *

expression

��� � �� ���� ����. a � b� � ���� ���� ��, �� ���� �� ����.

min(a+b,max(scale,a,b))e xp r e s s i on /

expression

��� � �� ���� &���. ��� ���� scale� ����.

�� ���(���) 193

Page 210: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

expression %

expression

��� a � b�� a % b� � ��� ��� ��� �����.

1. �� ���� a/b� ������.

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

a - (a / b) * b

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

max(scale + scale(b), scale(a))

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

max(scale + scale(b), scale(a))

scale� 0��, % ���� ����� ��� ������.

�� ��� +(��� ��) � -(�� ��)� ���� � ��� ����.

express ion +

expression

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

exp re s s i on -

expression

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

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

v =(��)

v +=(��� ��, ��)

v -=(�� ��, ��)

v *=(��, ��)

v /=(��, ��)

v %=(���, ��)

v ^=(�&, ��)

named-expression = expression � ���� � � ���� ��� ��� �� � � �����

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

�� ������.

named-expression <operator >= expression

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

named-expression = named-expression <operator > expression

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

� �� ���� ��, � �� ���� if �� while �� ����� �� for � ���� ���

��.

194 �� ���, � 1 �

Page 211: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v <(���(�� ��))

v >(���)

v <=(���(�� ��), ��)

v >=(���(�� ��), ��)

v ==(�� ��)

v !=(� �, ��)

expression1 < expression2 expression1� �� expression2� ��� �� �� ��, ���

����.expression1 > expression2 expression1� �� expression2� ��� �� � �� ��� �

���.expression1 <= expression2 expression1� �� expression2� � ��� ��, ��� ����.expression1 >= expression2 expression1� �� expression2� � ��� ��, ��� ����.expression1 == expression2 expression1 � �� expression2� �� �� ��, ��� ���

�.expression1 != expression2 expression1� �� expression2� �� �� �� ��, ��� �

���.

���

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

� �����.

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

��� �� � �� ��� � � ���� ����� �����. bc ��� ��� ����, ��

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

input_item : semicolon_list NEWLINE

semicolon_list� ��� ���� �� ���� � ����, � ��� �� �� ��� ���

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

if �(if (relation) statement)� ��, statement� �����.

while �(while (relation) statement)� relation� ����� �� �����. relation� �� ��

� statement� ���� relation� �� ������. relation� ��� �, ��� statement ��� ��

���.

for �(for (expression; relation; expression) statement)� �� ����.

first-expressionwhile (relation) {

statementlast-expression

}

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

�� ���(���) 195

Page 212: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

break �� for �� while �� �� ��� ���.

auto �(auto identifier[,identifier ] ...)� ID �� ����� ���. ID� �� ID� �� ID� �

���. �� ID� �� ��� � ��(square) ���� �����. auto �� �� ����� � ��

����.

define �� �� ����.

define LETTER ( opt_parameter_list ) {opt_auto_define_liststatement_list

}

LETTER ��� ��� �����. LETTER ��� ��� ��� � ��, define �� �� ��� ���

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

LETTER ( opt_argument_list )

LETTER ��� �����. ���� ��� ���� ���� ���� �� ��, ��� ���� ��

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

�. ��� �� ��, �� �� �� ��� �� ibase ���� �� �� ��� ���� ���

��.

return �(return � return(expression))� ��� ��� auto �� ����� ��, ��� ���

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

�.

quit �(quit)� ���� � ���� � ��� bc ���� ��� �����. � ���� �� �

� �� if, for, while �� � ���� �����.

�� ��

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

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

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

�� �� �� ����. ��� return�� ��� ���, ��� �� return�� ��� �

���� �� ��, ���� ���� ��� return�� ��� 0� ���.

sqrt(expression)� ��� ���� ������. ��� � 10�� ��� �����. ��� ���

� ���� ������ scale� � � � � ����.

length(expression)� ��� ����� ��� 10�� ��� �� ����. ��� ���� 0���.

scale(expression)� ��� ���� ������. ��� ���� 0���.

bc ����� global� automatic(��)��� � �� ��� ��� ���. ��� ���� ID�

� auto ��� � ��� ���. ��� �� ��� ��� ������. � �� ID� ���

� ���� �� ��� �� �����. �� � ��� �� ID� ��� 0� ����. auto� ���

196 �� ���, � 1 �

Page 213: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

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

����. auto ��� �� �� �� �� [ ](�� � � � ���)� �� �����. �� ���,

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

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

� ���� ��� � ��� ��� ��� �� ��� � �� � ��� �� �� �� ��

��� �� ��� �� �� �����.

-l Math ���� ��

� ��� -l ��� �� � �����.

s(expression) expressionx� ��� �����. �� expression� �����.c(expression) expressionx� ���� �����. �� expression� �����.a(expression) expressionx� �� ���� �����. �� expression� �����.l(expression) expression� �� ��� �����.e(expression) expression� ��� �����.j(expression,expression)

�� ��� Bessel ��� �����.

��� ��� �� ���� ��� �� � scale ��� ����. ��� ��� ��� ��� �

� ��� ��� �� �� �� ��� ���� ����.

���

-c File ���� ������, dc ��� ����� ����.-l ��� L math ��� ������ ���� scale �� 20�� �����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.1 �� ��� ����� �� ��� ��� � ����.���� � � ��� ������.

��

1. bc ��� ����� �� � ���. scale � �� �� �� �� ������ ��, ���

� �� �� �����. �� �� ������.

bc1/4

0� �����. scale �� ���� ��� �����, �� �� ������.

scale = 1 /* Keep 1 decimal place */1/4

��� 0.2� �����. �� �� ������.

�� ���(���) 197

Page 214: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

scale = 3 /* Keep 3 decimal places */1/4

0.250� �����. �� �� ������.

16+63/5

28.600� �����. �� �� ������.

(16+63)/5

15.800� �����. �� �� ������.

71/6

11.833� �����.

bc ��� ��� ����, Enter �� � �� ���� �� �����.

bc �� ���� ���� �� �� ��, bc �� �� ��� �� � ����� �����,

EOF(Ctrl-D) � ��� ����.

2. C� �� ���� ����� �����, �� �� ��� ������.

bc -l prog.bc

e(2) /* e squared */

ma

��� 7.38905609893065022723� �����. �� �� �� ��,

f(5) /* 5 factorial */

��� 120� �����. �� �� �� ��,

f(10) /* 10 factorial */

��� 3628800� �����.

� ��� prog.bc ��� ��� bc ���� ����, ����� � �� bc ��� ����. -l

��� �� bc ��� ���� math ������ �� � ���. � ��� math �����

�� e(��) ��� ���� f� prog.bc ��� ���� �� �� �����.

/* compute the factorial of n */define f(n) {auto i, r;

r = 1;for (i=2; i<=n; i++) r =* i;return (r);}

198 �� ���, � 1 �

Page 215: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

for �� while � �� �� ���� �� ��� ����� ���. bc �� ���� ����

�� �� ��, bc �� �� ��� �� � ����� �����, EOF(Ctrl-D) � ��� ��

��.

3. 2��� � �� ���(RPN)�� ����, �� �� ������.

bc -c

(a * b) % (3 + 4 * c)

��� � ��� �����.

lalb* 3 4lc*+%ps.

� ��� bc ��� infix-notation ���� dc ��� �� � � ����� ������. dc �

�� �� RPN(�� ��� ��) ���� �����. ���� ���� � �� �� l�

� �� ���� ��� dc �� �����. p� ��� ���� �� ����, s.� �� ��

��� .( )� ��� �� �� ����. dc ��� �� ���� RPN ���� ��� � ��

� �� ��� ���� ��� �� � ���. bc �� ���� ���� �� �� ��,

bc �� �� ��� �� � ����� �����, EOF(Ctrl-D) � ��� ����.

4. pi� � 10��� ���� � x� �� �����, �� �� ������.

x=$(printf "%s\n" ’scale = 10; 104348/33215’ | bc)

� bc ���� �� �� �� ���� pi� �� ���� �����.

scale = 10"pi equals "104348 / 33215

5. (-l(��� L)��� �� ��, ��� �� ���� �� ��) ��� ��� �� ��� ����

�����, �� �� ������.

scale = 20define e(x){

auto a, b, c, i, sa = 1b = 1s = 1for (i = 1; 1 == 1; i++){

a = a*xb = b*ic = a/bif (c == 0) {

return(s)}s = s+c

}}

� 10 ��� �� �� ���� �����, �� �� ������.

for (i = 1; i <= 10; ++i) {e(i)

}

�� ���(���) 199

Page 216: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/bc bc ��� �����./usr/lib/lib.b ��� ������ �����./usr/bin/dc ��� ���� �����.

�� ��

awk ��, dc ��.

bdftopcf ��

��

��� ��� � ��(bdf)�� �� ��� ��� ��(pcf)�� ����.

��

bdftopcf [ -i | -t ] [ -p Number ] [ -u Number ] [ -l | -m ] [ -L | -M ] [ -o PcfFile ]

font-file.bdf

��

bdftopcf ��� ��� � ���� �� ��� ��� ���� ��� ��� �� �������.

�� ��� ��� ��� ��� ������ �� � �� ��� �� ��� �� � �� ��� �

��� ��� �� � ���. � ��� ��� ���� ��� �� � � ���. ��, ���

�� ��� ��� ��� � ��� �� �����.

���

-p Number �� ��(glyph) ���� �����. ��� ��(glyph)�� Number �� ���

� ��� ��� ����� ���. �� Number� � 1, 2, 4 �� 8 �����.-u Number �� ���� � ��� �����. �� �� ��� �� �� ��� �� ��, Number

�� �� ���� � ��( �� � )� �����. Number �� � 1, 2 �� 4

��� � ���.-m �� �� ��� MSB( � ��)� � �����. ��� ��� � ��(glyph)�

�� ��� ����. ����, ��� �� �� ��� � ��� � � �����.-l ��� L� �� �� ��� LSB( � ��)� � �����. ��� �� �� ���

� ��� � � �����.-M �� �� ��� MSB( � ��)� � �����. ��� � ���� ��� �

� ��� �� �� ���� � ��� � �����.-L �� �� ��� LSB( � ��)� � �����. ��� � ���� ��� ��

��� �� �� ���� � ��� � �����.-t �� ��, ��� �� ��� ����. �� ��� �� ��� ��� � ��

(glyph) ��� ����. X ��� ����� ��� �� ��� �� � '� �

���.

200 �� ���, � 1 �

Page 217: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-i �� ���� �� ��� �����. “on” �� ��� ������ ��� �� �

�� ��� ��� ��� ��� ��(glyph) ��� ��� � ��, bdftopcf ���

�� �� ��� ��� .pcf ��� ����.

�: -t ��� � ��� ��� �����.-o PcfFile �� �� ��� �����. � ��, bdftopcf ��� pcf ��� �� ��� �����.

��

1. ��� ��, ��� �� ��� ����, �� �� ������.

bdftocpf -t font-file.bdf

2. ��(glyph) ���� �� 4 ��� �����, �� �� ������.

bdftocpf -p 4 font-file.bdf

bdiff ��

��

diff ��� ��� � �� ��� �� � ���.

��

bdiff { File1 | - } { File2 | - } [ Number ] [ -s ]

��

bdiff ��� File1 � File2 ���� ��� ��� ���� �� � � �� �� ��� �� ��

� �����. �� �� � ��� -(�� ��)��, bdiff ��� �� ��� ����. bdiff ��� diff

��� ���� ���� � �� ���� ���� �� �� � ���� ���. � ��� ��

��� diff ��� �� � ��� ��� ���� ����.

bdiff ��� �� �� ��� ���� �� ����, ��� ���� Number �� ����

��, diff ��� ��� � ���� �����. �� ����, Number ���� �� 3500

� � �� diff ��� �� �� ���. diff ��� �� ��, Number ���� �� � ��

�� ��� �� ������.

bdiff ��� �� ��� diff ��� �� ��� ����. bdiff ��� � ��� ��� ��� ��

�� �����. �� ���� bdiff ��� �� �� � � ��� ��� � ��� �� ��

����.

���

-s bdiff �� �� � �� ��� ���� ��� ���. (-s ��� diff �� �� � �� ��� ���� ���

�� ����.)

�� ���(���) 201

Page 218: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

chap1 ��� chap1.bak ��� ��� ����� �� �� ������.

bdiff chap1 chap1.bak

��

/usr/bin/bdiff bdiff ��� �����.

�� ��

diff ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ��.

bellmail ��

��

��� ����� ��� ���� ��� ���� ��� �����.

��

��� ��

bellmail [ -e ] [-fFile ] [ -p ] [ -q ] [ -r ]

��� �

bellmail [ -t ] User ...

��

��� �� �� bellmail ��� ���� ��� ���� ��� ���� �� ��� �� � ��

��� ��� �� ��� �����. �� �� bellmail ��� ?(��)� ����� �

����. � � ��� ����� Enter�� ���, bellmail �� �� � ��� ��� �

�� ��� ������.

User ���� ��� ���� ���� ��� ������. bellmail ��� �� ��, ��

(�� ��)� � � � � ��� ���� ��, ��� ���� �� ��� �����.

�� �� EOF(Ctrl-D �) �� ��� ���� �� �� .(���)�� ���� �� ��� User

���� ������.

bellmail ��� ��� /var/spool/mail/UserID �� ��� ��� � � �� ���� �� �

���.

202 �� ���, � 1 �

Page 219: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v others� ���� � � �� ��� all permissions denied(660)���. � �� ��� ��/�

�� � � ���. � ��� �� ��� � ��, �� �� ��� ���� � , ���

����� ���� ��� �����. � �� ��� �� � ����.

v ��� ��� � �� ��� ���� � ���.

Forward to person

� ���� User ���� ��� �� ��� � Person ���� ����� ���. Forward to

��� � ���� �� �� ���� ��� �� ����� �� � �����.

��� ��� � ���(UUCP)� �� ��� � � �� ����� ��� �����, User

���� ��� ��� !(� �)� ������.

[ -t ] User. . .uucp ���� �� ���� �� ��� �� �� ��� �����.

�: �� � ��� �����, UUCP� ��� ���� � ���.

� �� � ��� ��� ��� � ���� bellmail ��� ���� �� �� �� ���

� �� ��� ���.

1. bellmail ��� O_NSHARE � O_DELAY ��� open ���� ������ ���

/var/spool/mail ����� UserID.lock ��� ����. UserID.lock ��� �� ��� ��� �

� ��� bellmail ���� �� � � ���.

2. bellmail ��� lockf ����� /var/spool/mail/UserID� ����.

���

-e ��� ���� ����. � ��� �� ��, ����� �� �� bellmail ��� �� 0� ���

�, �� ��� �� 1� �����.-fFile � � � �� /var/spool/mail/UserID �, ��� ��� File ������ �� ����.-p � �� �� �� �� �� �����. � ��� ��� �, �� � ���� ����.-q ����(Ctrl-C � ��)� � � bellmail ��� ���� ���. ����(Ctrl-C)� �� ���� ��

�� �����. (� ��, � ��� �� p �� ��� ���� �����.)-r � � ��� �� �����.-t ��� �� � �� ��� ���� ���(� ��� �� ��, �� �� ���� ���� ��

���).

User ���� ����� login ��� ���� �����. ���� �� ��� ��� User ���

� ���� ��� bellmail ��� �� �� ���� ��, bellmail ��� �� ����� dead.letter

��� ��� ����� ���. bellmail ��� dead.letter ��� ��� �� � �� ��,

��� $HOME/dead.letter ��� �����. �� � ��� ��� ����, ��� �� � ��

�� � ���.

�: bellmail ��� $MAIL �� �� ��� ���� ��� ���.

�� ���(���) 203

Page 220: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��

�� �� ��� �� � � �����.

+ � � ��� �����(Enter � ��� ��).- �� ��� �����.!Command ��� ������ ��� �����.* �� �� ��� �����.d ��� ��� ��� � ��� �����.m User ��� User ���� ��� �����.p ��� ��� �� �����.q �� ��� �� �� /var/spool/mail/ UserID ��� ���� ����. EOF(Ctrl-D)� ��� �

�� ��� ���.s [File] � � � �� $HOME/mbox �, ��� ��� File ���� ��� �����.w [File] � � � �� $HOME/mbox �, �� �� ��� File ���� ��� �����.x ��� �� �� �� /var/spool/mail/UserID� ���� ����.

��

1. � ����� �� �����, �� �� ������.

bellmail tom rachelDon’t forget the meeting tomorrow at 9:30 a.m.

�� ��� Ctrl-D� ����. � ����, ��� ��� tom� rachel�� �����.

2. � ����� ��� �����, �� �� ������.

bellmail lance <proposal

� ����, �� proposal� ��� lance�� �����.

3. ���� �� �����, �� �� ������.

bellmail

�� � ��� ��� �� ?(��)� bellmail ��� bellmail �� �� � ��� ����

� �����. �� ��� �� ��� ����� help �� *(��)� ������.

4. �� �� ��� � � � ��� �����, �� �� ������.

bellmail

� ��� ����� ��� ��� �����. ��� ��� �� ��� ? �� ��

Enter �� ����. � ��� �� ��, �� �� ������.

s

� ����, ��� � � � ��� $HOME/mbox� �����.

5. �� �� ��� �� ��� �����, �� �� ������.

bellmail

204 �� ���, � 1 �

Page 221: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� ����� ��� ��� �����. ��� ��� �� ��� ? �� ��

Enter �� ����. � ��� �� ��, �� �� ������.

s mycopy

� ����, ��� � � � �� � mycopy�� ��� �����.

��

$HOME/dead.letter � ���� ��

$HOME/mbox �� ��

/usr/mail/*.lock � ���� ��

/var/spool/mail/UserID User ID� �� � � ��� ��

/usr/bin/bellmail Bellmail ���

�� ��

mail ��, uucp ��.

lockfx, lockf �� flock ���, open, openx �� creat ���.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ���.

bffcreate ��

��

� ���� �� �� ��� ����.

��

bffcreate [ -q ] [ -S ] [ -v ] [ -X ] [ -d Device ] [ -t SaveDir ] [ -w Directory ] [ -M

Platform ] { -l | PackageName [ Level ] ... | -f ListFile | all }

��

bffcreate ��� � �� ��(bff)� �� �� ��� �� ���� �� ��� �����.

bffcreate ��� ��� �� ��� �� �� ����� �� �� ��� ����. ��, ���

�� ��(�� �, ��� ��� CD-ROM� � ��)��� �� ��� ���� �

���. installp ��� �� �� �� ��� ��� ���� ����� �� � ���. ��

� � ���� ���, SaveDir� ��� ����� �����. SaveDir ���� ���� ���

�� � .toc ��� �� ��� �� ��� ����� ����.

�� ���(���) 205

Page 222: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bffcreate ��� � ��� �� bff ��� �����.

Neutral Packages package.v.r.m.f.

platform.installtypePOWER �� �%� ��� package.v.r.m.f.installtype

��� �� bff ��

POWER �� �%�� �� �� package.v.r.m.f.INeutral� �� �� package.v.r.m.f.N.IPOWER �� �%�� 3.1 � �� package.v.r.m.f.service #POWER �� �%�� 3.2 � �� package.v.r.m.f.ptfPOWER �� �%�� 4.X** ��� � �� package.part.v.r.m.f.UNeutral� � �� package.v.r.m.f.N.U

** 4.X ��� � ���� ��� ���� �����. ���, AIX �� 4 �� � ���� ptf ID� ���� ���

�.

package = PackageName ���� ���� ���� ���� ��.

v.r.m.f = version.release.modification.fix, ���� ���� ��� �. PackageName� �� fileset

��� �� ����.

ptf = ��� �� �� ID(FixID��� �)

�� �� �� ��� ��� Package.Level.I���. Package� Package Name ���� �� ���

�� ���� ���� �����. Level� ��� v.r.m.f���. �� v = version, r = release, m =

modification, f = fix� �����. I ��� ��� � ��� ��� �� ���� ����.

AIX 3.1 ��� ���� � � � �� ��� � �� ��� �� ��� ����.

Servicenum ���� 4���� �� � ���. xlccmp.3.1.5.0.1234� � �����.

AIX 3.2 ��� ���� � � � �� ��� � �� ptf ��� ����.

bosnet.3.2.0.0.U412345� � �����.

AIX �� 4� � �� �� ��� PackageName� �� fileset ���� �����. ��, �� �

� ��� ��� ��� � �� ���� ���� � U �� �� ����. bos.rte.install.

4.3.2.0.U.� � �� ��� � �����.

all ��� �� �� ��� ��� �� �� ��� ���� ���� �� ��� �����.

AIX �� 4 �� bffcreate ��� ��� ��� � ��� �� � ���. � �, fileset

��� v.r.m.f. ���� ���� ���. �� ��� �� 3���! PackageName ���� bos.net

� ���, fileset� �� ��� bos.net.tcp.client� ��� ���.

��: ��� ��� �� �� ����� � � ������. �� �� fileset� �� ��

���� �� �� � � ��� ����, ���� �� �� ��� �� � ���. ��

206 �� ���, � 1 �

Page 223: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��, installp� ��(.toc) ���� � � ��� ����. ��� ��� ����

��� �� �� � ��, ��� �� �� ��� �� � ���. ���� ��� ����

� ���� ��� ���� �� ���� ���.

���

-d Device � ��� ���� �� ��� �����. ��� CD, ��, ��� �� ������

�. ��� ��� � �� �� ��� no-rewind-on-close � no-retention-on-open(�

�� ��� ����� /dev/rmt*.1, ��� ��� ����� /dev/rmt*.5)�� ����

���. � � ��� /dev/rfd0���.-f ListFile ListFile�� PackageNames � Levels ���� ����. ���� �� �� ���

PackageNames� ��� � �� ��� ���� ���. ��� � �� ��� � ��

� �� ��� ��� �����.-l ���� �� ���� Package, Level, Image Type(I� �� ��, U� � ��� �

��), Part(s)� �����.-MPlatform � Platform �� ��� �� �%�� �� �� ���� ��� � �� ��(bff)

��� ����� � � ���.

A �� ���� �����.

N �%� ��� ���� �����.

R POWER �� �%� ���� �����.-q ��� �� ��� �����.-t SaveDir �� �� ��� ��� ����� �����. ���� �� ��, bffcreate ��� ��

� ����� ����. -t ��� ���� ��� /usr/sys/inst.images ����� ���

�����.-v � �� �� ��� �� ��� �����.-w Directory �� ������� � � � ����� �����. ���� �� ��, bffcreate �

�� ��� ����� ����. � � ����� /tmp���.-S �� ��� CD-ROM� � �� �� ��� �����. CD-ROM���� ��� CD-ROM

� �� �� CD ��� �� ��� ���� ���� �� �� ���� �����.

INU_SINGLE_CD ��� ���� � ��, ��� ���� � ��� ��� �� �

���.-X � � ��� �� �� ���� ���� ����.

��

��� ��: � ��� ����� �� ��� �� ���.

��

1. /dev/rmt0 �� ���� � ��� bos.net ���� ������ �� �� ��� �

�� � ����� /var/tmp� �����, �� �� ������.

bffcreate -d /dev/rmt0.1

-w /var/tmp bos.net

2. /dev/rfd0 ��� ���� � ���� package ���� ������ �� �� ��� �

�� ���� �� �� ��� ��� �����, �� �� ������.

�� ���(���) 207

Page 224: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bffcreate -q -v

package

3. /dev/cd0� CD� � bos.net.tcp.client ���� ������ ��� � �� ��� ���

�, �� �� ������.

bffcreate -d

/dev/cd0 bos.net.tcp.client 4.2.2.1

4. /dev/cd0� CD� � ���� �����, �� �� ������.

bffcreate -l -d /dev/cd0

5. MyListFile��� ListFile� PackageNames� Levels� ���� ��� /dev/cd0� CD��� ��

�/�� � ��� ����, �� �� ������.

bffcreate -d /dev/cd0

-f MyListFile

6. �� �%�� CD-ROM ��� � �� ���� ���� �� �� � ��� ����,

�� �� ������.

bffcreate -d /dev/cd0 all

7. �� ����� bos.games ���� ���� �� �� �� ��� �����, �� �� ���

���.

bffcreate -d /usr/sys/inst.images/bos.games -l

8. CD-ROM ��� � Neutral ���� ���� �� �����, �� �� ������.

bffcreate -d /dev/cd0 -MN -l

��

/usr/sbin/bffcreate bffcreate ��� �����./usr/sys/inst.images ���� ��� �� ��� ����� �� �� ��� � ����

� � ���� ��� �����./usr/sys/inst.images/.toc ����� � �� �� �� ���� ���� � � ����� �

� �� �����.

�� ��

installp ��, inutoc ��.

bfs ��

��

��� �����.

208 �� ���, � 1 �

Page 225: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

bfs [ - ] File

��

bfs ��� File ���� ��� ��� ���, ��� ���� ����. ���� ��� �� �

�� �� �� ����.

fs ��� � �� � ��� ��� �� ed ��� �� �� ����, bfs ��� � � ��� ��

� � �� �� ��� ����.

�� ��� � � 255��� � 32,767����. bfs ��� ��� ��� ���� ���� ���

���� � ed ��� ����� � ������. bfs ��� csplit ��� ��� , �� �� �� �

�� � �� �� � � � ��� � � ���� � �� �����.

P �� ��� ���� bfs ��� *(��)� ��� �����. P �� ��� � �� ���� �

�� � ���. bfs ��� ��� �� � �� ��� �����.

bfs ��� �� � �� �� �� �� ���� �����. �� ��� �� �� (/etc/environment

���) LANG �� �� ��� �� �����.

��� � ��� ��

bfs ��� ed ���� ��� �� �� ���� �����. ��, bfs ��� �� ��(wrap around)�

��� �� ���� ��� �� ��� �� ��� ��� �� � ���. ��� ��� ��

���� ����, bfs ��� ��� �� ��� �� ��� ���� ��� �����. ��� ���

�� ���� ����, bfs ��� ��� �� ��� �� ��� ��� ��� �����. ��� �

�� ��� ���� � ��� �� ����.

/Pattern/ ��� ����� Pattern� ����� �����.?Pattern? ��� ����� Pattern� ����� �����.>Pattern> ��� ���� �� Pattern� ����� �����.<Pattern< ��� ���� �� Pattern� ����� �����.

bfs ��� �� �� �� ed ��� ���� ��� � ���, regcmp ���� �����. �

� �� ���� � � �� � ���. a-z�� ����� ����, �� 26 ��� �����.

���

- �� ��� ��� �����. �����, bfs ��� �� �� ��� ��� �� � � �����.

� ��

e, g, v, k, n, p, q, w, =,! � null �� ��� ed ��� ��� �� �����. ���, bfs ��� �

� � �� �� � �� ���� ����. --, +++-, +++=, -12 � +4p� �� �� ��� ����

�. 1, 10p � 1, 10 �� � 10�� �����. f �� ��� ���� ��� ���� ����, ��

�� ���(���) 209

Page 226: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� ��� ����. w �� ��� �� ���, �� �� ��( xo, xt � xc �� ��)�

�����. ��� �� �� �� �� ���� ��� ��, � �� ��� �� �� ���� �

��.

�� �� �� �� ��� �� �����.

xf File ��� ���� bfs �� ��� ����. bfs ��� �� �� ����� ����

�� ����, ��� ���� bfs ��� xf �� ��� � � ��� ��

� �� �����. ��� xf �� ��� 10 ��� �� � ���.xo [File] p � null �� ��� ��� � ��� ��� ��� ��� � �����. � �

�� �� ����� � � �� � �� ���� ����. File ���� ���

� �� ��, bfs ��� �� ��� �����. ��� �� � ���� ���

�� �� ��� ��� ��� ��� ����.:Label �� �� ��� �� ������. �� � �� ��� ����. :(�

�) ��� � � �� ��� �����. � �� ��� �� �� ���

����, �� �� ��� ��� ��� � �� � ���.[Address1[,Address2]]xb/Pattern/Label �� �� ��� ��� ���� ��� ����, ��� ��� � � ��� ��

��, �� ���� ��� �� ���. �� ���� � �����.

v Address1 �� Address2 ���� �� ��� � � � ��� ����.

v Address2 �� Address1 ��� ����.

v ��� � � �� ��� , ��� � � �� � ��� ���� ���

�.

� �� ��� ��� ��� �� �� ��� ���� �� ��� ����, �

�� ��� ���� �� ��� ��� ��� ����� � �����.

�� ��:

xb/^/label

��� ���.

xb �� ��� ������ ��� ���� �� ���� �����. �����

���� ��, �� �� �����.

xt [Number] p �� ��� null �� ��� ���� �� ��� �����. Number ����

� � �� 192���.

210 �� ���, � 1 �

Page 227: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

xv[Digit] [Value] ��� Value� Digit ���� ���. Digit ���� �� 0-9� � �

��. Digit� Value ��� ��� �� �� � � ���. �� � �� ���

�.

xv5 100xv6 1,100p

� 100� � 5� ���� � 1,100p� � 6� �����.

�� �����, � �� �� %(��� ��)� �����. � 5 � 6� ��

� ��� � ��, �� �� � �� �� ��� ���.

1,%5p1,%5%6

� ��� � 100�� �����.

%� ��� �� ����, �� \(���)� ����. �� �, �� ����.

g/".*\%[cds]/p

printf �(%c, %d �� %s)� ���� �� �� � �����.

xv �� ��� ��� �� ��� � �� �� �� ��� �� �� ��

�. � �� �����, Value ���� � �� ��� !(� �)� ���� � �

� �� ��� �����. �� �, �� ����.

xv5 !cat junk

junk ��� � �� � 5� �����.

!� ��� �� Value� � ���� �������, \(���)� �� ���

�. �� �, �� ����.

xv7 \!date

� !date� � 7� �����.xbz Label � ������ ��� ��� ����� �� 0� ��, �� �� ��� ��

� �� ���.xbn Label � ������ ��� ��� ����� �� 0� �� ��, �� �� ��

� ��� �� ���.xc [Switch] �� �� �� �� ��. (�� �� �� �� �� ���� �� �� �

�� �� ���� �����)

Switch ���� � 1� �� ��, p �� �� � �(null) �� ���� ��� �

����. Switch ���� 0�� ��� ���� ����. Switch ���� ��

�� ���� �� ��, ��� 0�� ��� Switch ���� �� �� �����.

�� ��

�� �� ��� �����.

0 �� �� �� �� �� ����� ��� ���.>0 ��� ������.

�� ���(���) 211

Page 228: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/bfs bfs ��� �����.

�� ��

csplit ��, ed �� red ��.

environment ��.

regcmp �� regex ���.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � ���� ��� ���� ���

����� ����� � �� ��� � �� ��� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ���� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ����� ��, �� �� � ��

��� �� ��� �� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � �� ��� ����� ��

�� �� � ��� ���� ��� �� �����.

bg ��

��

����� �� �����.

��

bg [ JobID ... ]

��

� ��� �� ����(AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ″Korn ���

� ��″ ��), bg ��� �� ��� �� ��� ��� ��� �� ���� �� ��

�����. ��� �� � ����� ���� � ��, bg ��� ���� ��� �����

����. JobID ���� ���� ��� bg ��� �� �� ��� �� �����.

JobID ���� ��� ID �� �� � �� �� � ��� �� � ���.

%Number � ���� �� �����.%String ��� ��� ���� ���� ��� �����.%?String ��� ��� ���� ���� ��� �����.%+ �� %% ��� �� �����.%- �� �� �����.

212 �� ���, � 1 �

Page 229: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bg ��� ��� �� ���� ��� � ��� ID� �� � ��� ���� ���. bg

�� ��� � �� � �� ��� ��� �����. � ��� %(��� ��)� � ��� �

��� � wait, fg � kill ��� �� �� � ���. �� �, kill %3� �� �����.

�� Ctrl-Z � ���� �� �����. � �� bg ��� ��� ����� ��� �

���. ��� �� �� ��� ���� �� � ��� ��� ��� ����� �� ���

��. ��� �� �� ��� �� ��, � ��� ��� �� ����� �� � �

��.

stty tostop

��� �� �� ��� ��� ���� � ���.

kill -s stop JobID

/usr/bin/bg ��� �� �� �� ���� �� ��, �� �� �� ��� �� ���� � ��

� ���� ����. �� � �� �� �����.

Command | xargs bg

/usr/bin/bg ��� � ���� ���� �� �� � �� ��� ���� ����. ��� ��

�, bg ��� �� ��� Korn � �� POSIX �� �����.

�� ��

�� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

�� �� ���� ���� bg ��� ��� � ���� ���� �� ���� ����.

��

jobs ��� ��� �� �� ��� �� �� ��:

[2] + Stopped (SIGSTOP) sleep 100 &

� ��� ��� �� �� ��� sleep 100 & �� ������.

bg %2

��� � 2� ��� � � �����.

[2] sleep 100 &

��

/usr/bin/ksh Korn �� ��� bg ��� �����./usr/bin/bg bg ��� �����.

�� ���(���) 213

Page 230: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

csh ��, fg ��, jobs ��, kill ��, wait ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� Korn ��� � ��.

bicheck ��

��

���� ��� bosinst.data ��� �� �� ���.

��

bicheck Filename

��

bicheck ��� bosinst.data ��� �� ��, target_disk_data � ��� ���� ����� ���

�. ��� Filename� ���� ����� bosinst.data �����. ���� �� �� �� ��

� �� ��, �� �� ���� �� �����, �� �� � �� � ��� ����� ��

����.

��� ��� ��� ��, �� �� �� �� ����� ����.

� ���� ���� � �� ��� �� ��, �� ���� �� �� ����� �����. �� �

� �/�� �� ��� ����� ����.

bicheck ��� � �� �� �� �� ���� ��, ��� bosinst.data ��� ��� � �� �

� � �� �����. �� �� ��� �� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.1 ��� ������.

��

/usr/lpp/bosinst/bicheck� bicheck ��� �����.

�� ��

mksysb ��.

214 �� ���, � 1 �

Page 231: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

biff ��

��

�� �� � � ��� �� �� �� �� ����� ���.

��

biff [ y | n ]

��

biff ��� �� �� ��� ��� �� ���� ����. � ��� �� ��� ��, �

� ���� ��, �� ��� � � � 7� �� ��� 560��� ��� �����. ��� biff y

���� ����, �� $HOME/.login �� $HOME/.profile ��� ���� ���� ��� ���

�����. biff n ��� ��� �� ����� ���.

�: y � n ���, yes � no� ��� � ��� �� ���� ��� �� ����� �

���.

biff ��� ������ �����. � ���� ��� ����, �� �����.

1. �� �� ��� ���� �(mesg y)�� ���� ���.

2. comsat� �� ����. (inetd ��� ���.)

3. ��� �� �����(biff y).

��� ����� ksh ��, bsh �� �� csh ��� MAIL �� ������.

��

y � ��� �� ���� ���.n � ��� �� ����� ���.

��

1. �� ��� �����, �� ������.

biff

2. �� �� �� � �� �� ��� ��� ���� ���,

$HOME/.login �� $HOME/.profile ��� � ���� ������.

biff y

� ���� ��, �� ��� � � � 7� �� ��� 560��� ��� �����.

��

$HOME/.login ���� ��� ��� ����.

�� ���(���) 215

Page 232: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

$HOME/.profile �� ��� � �� �����./usr/bin/biff biff ��� �����.

�� ��

bsh ��, csh ��, ksh ��, mail ��.

comsat �.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

bindintcpu ��

��

��� CPU�� �� �� ���� �� �����.

��

bindintcpu Level CPU [ CPU...]

��

bindintcpu ��� �� ��� ���� ��� �� ���� ��� �� ��� ��� �����

�� CPU �� �� ��� CPU ��� �� � ���. �����, � CPU ����� ���

�� ����� �� �� CPU� �� � �, CPU � �� �� ��� �� �� ����

�. bindintcpu ��� ���� ��� ���� �� ��� �� ���� ��, �� ���� �

� CPU�� ���� �� �� � ���. � ��� ��� ��� ���� �����.

���� �� �� CPU� ��� � ��, � ��� �� �� ����� bindintcpu� �

� �� ��� ��� ��� CPU�� ����. ���, CPU0� �� ����� �� ���

� ����. ���� �� CPU0� ��� � ���� ���� �� �� ��� CPU0� �

�� ���.

�:

v �� ��� ��� ��� ��� ����� ��, bindintcpu� � CPU� ���� ��

��� ���� ��� �����. ����� ��� � bindintcpu�� � �� CPU� �

��� �� �����.

v �� ���� �� ���� �� ���, lsattr ��� ���� busintr �� ������.

�� �, ��� �� ent0� �� ���� �� 6���.

lsattr -E -l ent0busio 0xbff400 Bus I/O address Falsebusintr 6 Bus interrupt level Falseintr_priority 3 Interrupt priority Falsetx_que_size 256 TRANSMIT queue size True

216 �� ���, � 1 �

Page 233: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

rx_que_size 256 RECEIVE queue size Truerxbuf_pool_size 384 RECEIVE buffer poof size Truemedia_speed 10_Half_Duplex Media Speed Trueuse_alt_addr no Enable ALTERNATE ETHERNET address Truealt_addr 0x000000000000 ALTERNATE ETHERNET address Trueip_gap 96 Inter-Packet Gap True

��

1. �� ���� � 6�� CPU1� �� ����� �����, �� �� ������.

bindintcpu 6 1

2. �� ���� � 6�� CPU2 � CPU3�� �� ����� �����, �� �� ������.

bindintcpu 6 2 3

��

/usr/sbin/bindintcpu bindintcpu ��� �����.

�� ��

lsattr ��.

bindprocessor ��

��

���� �� ���� �� � � � �� � �����.

��

bindprocessor Process [ ProcessorNum ] | -q | -u Process

��

bindprocessor ��� ���� �� � � � �� � �����, �� �� ���� �

����. Process ���� � �� � �� ��� � � ��� ID���. ProcessorNum

���� �� ���� � CPU ID���. ProcessNum ���� �� ��, ���� �

�� �� ���� ����.

bindprocessor ��� �� ���� �� ��� � �� �����.

��� ��� ���� ���� DLPAR(Dynamic Logical Partitioning) ���� ��� ���. �

�� ��� AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs�

Dynamic Logical Partitioning� ������.

��� ��� ��� �� ���� �� � � ��� ���� �� �����. �� ��

� � ��� ��� � ���� �� �, �� �� ���� ����� �����. ��

�� ���(���) 217

Page 234: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� � ���, � ��� �� � �� ����. ��� fork ���� �� ��

�� ���� �� � � ���� �� � � fork�� ��� � � � �� ��

��. exec ���� �� ��, � �� ��� �� �� ���.

bindprocessor ��� -q ��� �� �� � CPU ID� �����, ��� ��� ���

ProcessorNum ���� �� ��� �� � ���. -u ��� � � ����� �� �

� ��, � ���� � � � �����.

�:

1. bindprocessor ��� $���� �������. ����� ����� ����� ��

� � ���� �� �� �� ����.

2. ���� ���� �� ����� � � ���� � �� �� ��� ����

�.

���

-q �� �� ���� �����.-u ��� ���� � � � �����.

��

1. �� ��(�� �� ProcessorNum �) ���� �����, �� �� ������.

bindprocessor -q

� ��� ��� ���� �� ��� �� ����.

The available processors are: 0 1 2 3

2. ��� 19254� � � ��� 1� ���� �� �� ������.

bindprocessor 19254 1

��

/ u s r / s b i n /

bindprocessor

bindprocessor ��� �����.

�� ��

cpu_state ��, smit ��.

bindprocessor ���. exec ���, fork ���.

AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs� Controlling

Processor Use � Dynamic Logical Partitioning.

218 �� ���, � 1 �

Page 235: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

binld ��

��

PXE(Preboot Execution Environment) �� ��� �����. �� �� �� �� ��� ���� PXE

������ ��� �� ��� �����.

��

��� �� ���� ��� PXE ������ �� �� ��� ����� �� �� ������.

startsrc -s binld [ -a] ...

��� �� ���� ���� �� PXE ������ �� �� ��� ����� �� �� ����

��.

binld [ -f] [ -i]

��

BINLD ��� PXE ������ �� �� ��� ���� �� ��� �� �� ������ �

����. BINLD �� ����� ���� �� ���� �� ��� ������ � �� �

�� ��� ����� ��(����� ��, ����� �� ID, ���� ID� � �� � � �� ID)

� �����. �� �� �� ������� ��� ���� �����. ��� ���� �� PXE

������ �� �� ��� ���� � ��� �� ��� � ���.

�� �, BINLD ��� ��� ��� �� �� �� �� ��� �� ������� �����. BINLD

��� refresh �� �� SIGHUP �� �� ��� ��� �� ����.

���

-a �� ��.-f ConfigurationFile. �� ��� ��� �����.-i IP ��. DHCPINFORM� ���� DHCP ��� IP ��� �����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.> ��� ������.

��

��� ��: � ��� ����� �� ��� �� ���.

�� ���(���) 219

Page 236: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/sbin/binld BINLD �� �����.

�� ��

pxed ��, startsrc ��, stopsrc ��.

biod ��

��

��� �� ����� ��� �����.

��

/usr/sbin/biod NumberOfBiods

��

biod �� �� NFS ����� ����� �����. ������ ��� ��� ��� ��� ��

��� ��, biod �� � ��� ��� �����. biod �� ��� �� �� ���� ��

��� �����.

NumberOfBiods ���� ��� �� ��� � �� �� �� � ���. ���� ���

��� �� � � �� ���� �� �� �����. 6-8 �� � �� �� � ��

�. ���� NFS� �� �� ��� �� ��� � ���.

SRC(��� �� ���) ��� �� � ���� �� �� ����, chnfs ��� ������.

�����, SRC �� �� ���� ����, chssys ��� ������. SRC ��� �� ��

��� ��� AIX 5L Version 5.2 System Management Guide: Communications and Networks�

″Controlling NFS″� ������.

biod �� �� SRC ���� �� � ����� ���.

startsrc -s biod

stopsrc -s biod

��

1. src ��� ��� biod �� ����� �� �� ������.

startsrc -s biod

� ����, startsrc -s biod ��� ��� �� �� �����.

2. ����� ���� �� �� ���� �� �� ������.

chssys -s biod -a 6

220 �� ���, � 1 �

Page 237: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ����, chssys ��� ����� ���� biod �� �� 6�� ����.

��

/etc/rc.nfs NFS � NIS �� �� �� ����� �����.

�� ��

chnfs ��, chssys ��, mount ��.

mountd �, nfsd �.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� How to Mount a File

System Explicitly.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Resource

Controller Overview.

NFS �� ���

bj ��

��

� ��� �����.

��

bj

��

bj ��� � ��� �����. � � �����. � ��� ��� 21 ��� �� ��

� ��, ��� ��� ����. ���� � �� ��� �� ���.

���� �� ��� ��� 21� ��� ��� � � ��� ��� ��� ���. �� �� �

� ����.

��� � �� 2 �����. ���� ��� �� � �� �(natural blackjack)� ���, ���� 3 �

�� ���. ��� ��� �� � �� �� ���, ���� 2 ��� !� ���. ��� � �� ��

�� ��� �� � �� �� ���, �� ��(��)�� ����.

��� ���� ���, ��� �� � �� �(natural blackjack)� �� � ���� �� ��� � �

���. ��� ��� � �� �� ��� �� 2 ��� ��, ��� ��� 1 ��� !� ���.

�� ���(���) 221

Page 238: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� � �� ��� �, �� � ��� ���� ��� 2 ��� ���, � , �

�� � ���. � �� �� �� 10 �� 11� ��, � � , 4 ��� � �� � � �

� � � �� ��� � �� � ���.

�� ���� ���� � 21 ��� ��� ��� � � � ���. (� � ���.)

� 21 �� � �, ���� �� ��� ��� ����. ���� �� �(� � �� ��

� �), ��� 17 ��� ��� � � ���. ��� �'��, ���� ����. ���� �

� �� �� �� �� ��, 21 ����� � �� �� ����. � �� �����.

���� � ���, �� ���, ��� �� �� �� ��� ���. Do you want a hit?

Insurance? Double? Double down? �� ���� Y� ��, ���� ���� Enter �� ���

�.

��� �� ��, ��(�� ��)� (��� ���� ��) (� ��� ����� ����. ���

���� � ����(Ctrl-C) � �� EOF(Ctrl-D) �� �� ���� ��, � � �� ��

���.

��

/usr/games ����� ��� �.

�� ��

arithmetic ��, back ��, craps ��, fish ��, fortune ��, hangman ��, moo ��, number

��, quiz ��, ttt ��, turnoff ��, turnon ��, wump ��.

bootlist ��

��

���� �� ��� �� ��� ���� �� � ����.

��

bootlist [ { -m Mode } [ -r ] [ -o ] [ [ -i ] [ -V ] [ -F ]| [ [ -f File ] [ Device

[ Attr=Value ... ] ... ] ] ]

��

bootlist ��� ��� ���� �� � � �� ��� ���� ����� � � ���. �

��� �� � ���� ��� ����, ���� � �� ��� ���� � �� ���� ���

�����. � ��� �� �� �� �����.

v � �� ���. � ���� ���� � ��� �� � �� � � �� ��� ����

�.

222 �� ���, � 1 �

Page 239: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v ��� �� ���. ��� ���� ���� ��� ��� �� � �� � � �� ��� �

����. ��� ��� ���� ���� ��� ��� �%�� �� ����. �� ��� �

%�� �� ��� �� ��, ��� �� �� � � �, �� ��� � ��� �� ��

� �� �� � ���� �� �� ���.

v ��� �� �� ��. � ��� ���� ��� ��� �����. �� ��� �%����

� ��� � ���� �� ��� � �� �� �� ���� ��� ����� ���.

�� ���� �� ��� �%�� �� �� � ���. �� ���� �%�� ��� �� ����

�� ���� ����� � � ���. �� ��� �%�� �� ���� ���� �� ��

�� ����� � � ���.

�� �� ���, ���� ���� � �� ��� ��� �� ����� �����. �� �� ��

�� � �� ���� ���� ���, ���� ���� � ��� �����. ���, �� �����

�� ��� �� �����.

bootlist ��� �� ��� ��� �� �� ���� ��� �� �� ��� ��� �����. ��

� �� ��� ��� �� ��� �����. �� �� ���� � ��� � ��� ���� � ��

�� ���� �����.

�� ���� �� ��� ��� �� � ���. ��� ����� ��� � � �� ��

��� �� � ��� ���. -f ��� ���� file �� ��� ���� �� ���� ���

��. � �, � ���� ��� ���� ��� ���� �� ���� ����.

��: ��� �� ��� �� � ���� ���. �� ���� ��� ��� �� � �� �

� � ���� �� � ���. bootlist �� �� �� ���� ��� ��� ������

���. ���� ������, � �� �� � ��� � �� ��� ����, �� ���� �

���� �� � ���.

����� � �� ���� -m mode ���� ����. �� mode �� �� service, normal,

both, prevboot � �����. both ��� ���� � �� ���� ��� �� ���� �� �

���, � ���� �� �� ���� �����. prevboot ��� �� ��, -i(���) ��

�� �� �����. -i ��� -m ��� ��� �� ���� ������.

�� �� ���� ��� -o ��� ��� �� �� ���. ��� �� ���� ��� ��

���� � ��� ��� �����. �� ���� ��� ��� ���� � �� �� ��, ‘-’� �

� � �����. ��� ��� ��� -f ��� �� bootlist ��� �� ���� �� �

� �����. ��� �� � �� �� ���� ���� � �� � ���.

�: ���� ��� ���� ���� � ��� � � ��� bootlist ��� �� � ��� �

� ��� �� � �� � ���. �� ��� �� ��� ���� ����� � ���

� ����� � ���.

�� ���(���) 223

Page 240: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

���(�� ��)� ��� �� ��� � � �� �� � ���� �� � ���.

v �� ��� ��� ��� �� ��� �� � ���.

v ��� ��� �� �� �� �� ��� ��� � ���. �� �� �� ��� �����.

fd �� �� ��� �� ��� ���

scdisk (��� �� ��� ���� ���)�� SCSI �� ���

badisk �� �� �� �� ���

cd �� SCSI �� CD-ROMrmt �� SCSI �� �� ��

ent �� ��� ���

tok �� �� � ���

fddi �� ��� � ��� ����� ���

�: �� ��� �%�� �� �� ��� ���� ����. �� ��� � �%�� �

� ��, �� ���� �� �� ���� � ��� �����.

�� ��� �� ���� �� ��, (��� �� ��� �� ���) ��� ��� ��� ���

� ���. � ��� ��� ���� ��� ������. ��� ����� ���� �� ���

�����. ��� ��� �� �� � ��� ���. ��� �� ��, �� ���� �� �� �

��� � ��� �����. �� �� � �� ��� ��� �����. ( �� �� ��� ���

����� xx �� �� �� �����.)

fdxx ��� ��� �� ��� ��

hdiskxx ��� ��(PV) �� ��� ��

cdxx SCSI CD-ROM �� ��� ��

rmtxx �� �� �� ��� ��

entxx ��� ��� ��� ��

tokxx �� � ��� ��� ��

fddixx ��� � ��� ����� ��� ��� ��

� ��

�� ���� ���� ��� ��� �� ��� �� � ���. � ��� �� ��� �� ���

��, �� ��� �� �� ����. �� ���� � ��� ��� ����, ��� �� �

��� ��� ���� ���. ��, ���� ���� �� ����. �� ����.

bserver BOOTP ��� IP ��

gateway ������ IP ��

client ������ IP ��

speed ���� ��� ��

duplex ���� ��� �

��� �� �� �� ���� �� � ���.

224 �� ���, � 1 �

Page 241: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v hardware �� ���� �� � ����. � �� bserver �� gateway �� �� ����

���. bserver �� gateway

�� �� ����, �� �� ������ �����. bserver � gateway� �� ����,

hardware� gateway� �����.

v bserver �� hardware �/�� gateway �� ��, ���� �� � ���.

v gateway �� �� ���� bserver � client� ���� ���.

v client �� gateway � bserver �� �� �� �� ���.

�� ��� �� �� ��� �%��� ���� �� � ���. �� ��� �%� ����

� �� � ���.

�� ���� ��� attr=value���. �� attr� � ����, value� ���, = �� ��� ��

� ����.

-f ��� ��� �� ��

file �� ��� ��� �� �� �� ��� � � �� ��� ��� � ���.

hdisk0 hdisk1 cd1

�� �� �� � ��� ��� ��� � ���.

hdisk0hdisk1cd1

�� ��

� ��� ��� �� ����, �� ���� ��� ����. �� �� �� ��� ��� ���

��.

v ���� ��� �%�� �� ���� �� �� ��� �� �� �� �� ��, �� �

��� �� ����, ��� �����.

v ���� �� ���� ��� �� �� ����� �� ��� ����, �� �� ��� ����

����. ��� ��� �� �� � � ��� �%�� �� �� � ���.

v ���� �� ��, ���� �� �� �� � � �� ��� ���� � �� ��� ���

�� ��� �����.

v �� ��� �� �� � � �� ��, � �� ��� �� ��� �����.

���

Device �� ���� ���� �� �� �� �� ��� �����.-f File �� ��� �� �� ���� ���� �����.-F �� ��, speed � duplex �� �� �� ��� ���� �� ���� ���� ��� �� ��

���.-i -m ��� ��� �� ���� ����� �� �����.-m Mode �� �� � �� ���� �����. mode �� ��� �� normal, service, both �� prevboot��

�.

�� ���(���) 225

Page 242: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-o ��� �� ��� �, ��� �� ���� ���� �����. ��� �� �� ������.-r ��� �� ��� �, ��� �� ���� ���� �����. ��� ��� �%�� �� ����. �

�� �� ���� 16�� � �� �� �� ���� � ���. (��� �� �� ��� �����.)-V ��� ��, �� � ��� �� ��� �� �����. �� ���� ���� ����.

��

�� ��: � ��� �� � �� ����� � ��� �� ��(x) ���� ��� ���.

�� ���:

��� ��

NVRAM_Config �� ��

��

1. ��� � �� ���� ������, �� �� ������.

bootlist -m service -i

2. ���� ��� ��� �� � �� �� ���� ����, �� �� ������.

bootlist -m normal hdisk0 hdisk1 rmt0 fd

3. ���� �� ���� �� � �� �� ���� ����, �� �� ������.

bootlist -m normal -f /bootlist.norm

�� bootlist.norm� � ��� �� ���� � �� ��� � � �����.

bootlist.norm ��� �� ��� ��� ��� �����.

4. �� �� �� ��� ������, �� �� ������.

bootlist -m prevboot

5. �� 2� �� � ���� �����, �� �� ������.

bootlist -m normal tok0

6. ���� ��� ������ �� ��� ��� � � ��� �����, �� �� �����

�.

bootlist -m normal ent0 gateway=129.35.21.1 bserver=129.12.2.10\ client=129.35.9.23 hdisk0 rmt0 tok0 bserver=129.35.10.19hdisk1

�� ��

nvram �� ��.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Device Configuration

Subsystem Programming Introduction.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� List of Device

Configuration Commands.

226 �� ���, � 1 �

Page 243: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 Files Reference� Special Files Overview.

bootparamd ��

��

��� �� ������ ��� �� ��� �����.

��

/usr/sbin/rpc.bootparamd [ -d ]

��

bootparamd �� ��� �� ������ ��� ��� ��� ���� �� ������. NTS

���� �� �� �� ��, bootparams ������ �� /etc/bootparams ��� �����.

���

-d ��� ��� �����.

��

/etc/bootparams ��� �� ������ ��� ���� ����� �� ���� ���� ���.

�� ��

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

NFS �� ���

bootpd ��

��

��� �� ��� ��� �����.

��

bootpd [ -s ] [ -t Integer ] [ -d [ -d ... ] ] [ -g ] [ ConfigFile [ DumpFile ] ]

��

bootpd ��� ��� �� ��� ��� �����.

�� ���(���) 227

Page 244: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bootpd �� ����� inetd �� �� �����. � � /etc/inetd.conf ��� � �� ��

���.

bootps dgram udp wait root /usr/sbin/bootpd bootpd

� ��, � ��� ��� ���. bootpd �� inetd �� �� �� ���� ���� ���� �

�� ��� SMIT(System Management Interface Tool)� ���� ����. bootpd �� �� ���

� �� � � ��� /etc/inetd.conf ��� ��� bootps ��� �� ��� ����, refresh

-sinetd �� kill -1 InetdPid� ��� inetd �� ��� ��� ���� ��� ����.

��, bootp ��� ��, inetd� bootpd �� �����. �� ����, bootpd� �� ��� �

� �����. ���, ��� �� �� ��� 15 ��� �� ��� �� ���, ��� ��� ��

�� � ����. � � �� 15 � -t ��� ��� � � ���.

inetd � �� bootpd �� ����� -s ��� ������. � ���, bootpd �� ��

� ��� �� bootp ��� �����.

bootpd �� ��� ��� �� �� ��� /etc/services ���� � � ��� �����.

bootps BOOTP �� �� ��

bootpc ������ ���� � ��� �� ��

� �, bootpd �� ��� ��� ����. ��� ��� ���� �� ��, � � ���

/etc/bootptab���. ��� ��� �� ��, bootpd �� bootp ��� ���� ���� ����

�. bootpd �� SIGHUP �� �� ���� bootp �� ��� �� ��� �� � �

��� � ��� ��� �� ����. ��� ��� �� �� �, ���� ����� � ��

�� � ���.

���

-d ��� ��� �� ������. � ��� � � �� � ���. ��� �� �

� �� �� � ���.

Debug Level Syntax Message1 -d Only error messages.2 -d -d Level 1 messages and

messages indicatingpotential errors.

3 -d -d -d ... Level 1 and level 2and general informationmessages.

��� �� >0�� ���� syslogd �� �� ��� �� ��� ��� syslogd ��

��� �����.-g bootp ��� bootp ���� ��� �� �� ����� IP ��� ������.-s ��� ����� bootpd ��� �����. � �� �� ���� � �� ����

��� �����. � ��, bootpd ��� ���� ���� -t ��� �� �� ��

��.-t -t20� �� � � ��� �� �����. � �� 0� ���� ����. �

� � ��� 15 ���.ConfigFile ��� ��� �����. � � ��� ��� /etc/bootptab���.

228 �� ���, � 1 �

Page 245: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

DumpFile bootpd �� bootp �� ������� ��� �� �� ��� �����. � � �

��� /etc/bootpd.dump���.

��

1. ��� ��� bootpd �� ����� �� �� ������.

/usr/sbin/bootpd -s

2. ��� � 3, ��� �� /etc/newconfig � � �� /etc/newdumpfile� ��� ��� bootpd

�� �����, �� �� ������.

/usr/sbin/bootpd -s -d -d -d /etc/newconfig /etc/newdumpfile

��

/etc/bootpd.dump � � bootpd � ��./etc/bootptab � � bootpd ��� ��./etc/services ��� ���� ��� �� � ���� �����./etc/inetd.conf inetd �� �� ��� ��� �����.

�� ��

x_add_nfs_fpe ��, x_rm_fpe ��.

bootptodhcp ��

��

BOOTP ��� ��� DHCP ��� ��� ����, �� ���� �� BOOTP ��� ���

DHCP ��� ���� �����.

��

BOOTP ���� �� DHCP ���� ��� ��

/usr/sbin/bootptodhcp [ -d DHCPFile ] [ -b BOOTPFile ]

DHCP ���� ���� BOOTP �� �� �

/usr/sbin/bootptodhcp [ -d DHCPFile ] -r HostName ]

��

bootptodhcp ��� � �� ��� ����. � ��� BOOTP ��� ��� DHCP �����

��� ����. ��� �� � � ��� /etc/bootptab ��� ����. �� ��� � �� ��

� ���� � -b �� -d ��� ��� � � ���.

�� ���(���) 229

Page 246: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bootptodhcp ��� � �� ��� DHCP ��� ���� BOOTP ������ ��� ���� ��

��. -r ��� ���� �� ������ �����. -d ��� ���� �� ��.

���

-b BOOTPFile BOOTP ��� ��� �����. � �� /etc/bootptab���.-d DHCPFile DHCP ��� ��� �����.-r HostName BOOTP ��� ��� ��� ��� DHCP ��� ���� ����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

��� ��: �� ���

���� ��: ��� �� � ��� �� �� ��

��

/usr/sbin/bootptodhcp bootptodhcp ��� �����./etc/bootptab bootpd� �� � � ���� �����.

�� ��

dhcpsconf ��.

DHCP ����� ��� ��.

DHCP �� ��� ��.

bootp ��� ��.

TCP/IP �� � ��� �� - DHCP(Dynamic Host Configuration Protocol).

AIX 5L Version 5.2 System Management Guide: Communications and Networks� The SMIT Interface

for TCP/IP.

bosboot ��

��

�� ��� ����.

230 �� ���, � 1 �

Page 247: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�� ��:bosboot -Action [ -d Device ] [ -Options ... ]

�� �� �� ��

bosboot -a [ -d Device ] [ -p Proto ] [ -k Kernel ] [ -I | -D ] [ -l LVdev ] [ -L] [ -M { Norm |

Serv | Both } ] [ -T Type ] [ -b FileName ] [ -q ]

��

bosboot ��� �� �� ROS(�� �� ����) EPROM(�� � � ��� ��� �� ��

��)� ������� �� ��� ����.

bosboot ��� RAM(�� ��� ��) ��� �� ��� � ���� �� ��(�� ��)� �

���. � �� ��� ROS �� �� ���� �� ��� �����. ��� �� ����� �

�� �, ROS �� �� ����� ��� �� ��� ����. � �, ROS� ��

�� ��� ��� ����.

��� RAM ��� �� ���� ��� �� � �� ���� �� ���� �� �� ��� ��

���� ���. RAM ��� �� ���� �� ��� �� � ��� ��� ���� ���.

mkfs �� ��� ��� ���� �����(� � 6 ��). �� ���� ��� �� ����.

v CD-ROM

v ���

v ��

v ����

���� ��� ��� � (LAN)�� ���� �� ����� ���� � ���� �� �, ���

�� ��� � ��� �����(FDDI)� � ���.

�� ��� ��� ��� ���� ���� ���� ��� ��� ���� �� �� ���

����. �� ��� ��� �� ��� �� � � �� ���.

�� �� � ���, bosboot ��� �� ���� �� ��� ���� �����. ��' ��

��� ��(NVRAM)� � �� �� ���� ��� ����. bootlist ���� ���� �

� ���.

bosboot ��� �� ���� � � � �� ��� �� �� updatep ��� �� �

����.

�:

1. bosboot ��� �����, �� ��� ��� �� ���.

�� ���(���) 231

Page 248: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2. �� ��� �� � ���� ���� ��� ��� �� bosboot ��� �� ��, ���

����� ����. ��� ���� ���� �� ��� bosboot ��� ���� ���.

3. bosboot ��� �����, /tmp �� ��� � �� ��� � ��, � ��� �� �� �

��� �� ��� � � �����.

4. bosboot ��� �����, ��� ��� ���� ��� �� ��� �� ���. �� ���

��� �����, � ��� ������.

lsvg -M rootvg

� ��� �� ��� ��� �� �����. � � �� ��� ��� hd5���. �� ��� ��

� ���� ��� ��� ������.

5. -d ��� �� ��� ���� �� ��, bosboot ��� ���� ���� ���� � � ��

� ����. ���, �� ��� -p ��� ����, ��� �� -d ��� �����.

6. RAM ��� ��� ��� � bosboot ��� ���� �� ��� �� �� � �� ���

���� ��� ��� �%�(sys0) ��� �� ����.

��� �%� ��� ���� � � �� ��� �� ��� �� �� ��� �� �� ��

� ��� � � �����. � ��� �%� ��� �� ��� �� �� ��� ����

����� ��� � ���� �� � ����. AIX 5.1 � ��� ��� �%� �� rs6k�

AIX 5.1��� �� ���� �� �� �� ��� ���� �����. �� rs6ksmp� AIX 5.1

��� �� ���� �� �� �� $� ��� ���� �����. AIX 5.1 � ��� �� rspc

� �� ISA �� ��� �����. �� ��� �� �, ��� �%� ��� � � �� �

�����, �� ��� �� � �� ��, �� ��� �����. � � �� �� ��� �

� �� ��� ����� � ��� �%� ��� �� ��� ����.

bosboot� ���� �� ��� �%� �� � �� ��(�: /usr/lib/boot/chrp.disk.proto)� �� �

� �� ��� ���� ��� ����. � �, bosboot ��� pcfg ���� �� �� �%

� ��(�: /usr/lib/boot/chrp.pcfg)� �����. pcfg ���� bosboot� ������ proto �

� ��� ���� � ���� ��� ���. /usr/lib/boot/protoext ����� ��� � ��

� � �� �� ��� �� ��� �����. �� �, �%� ��� chrp�� �� ���

�����, �� /usr/lib/boot/protoext/chrp.pcfg� �� �� ��� � � ��,

scsi.chrp.chrp_lpar.fcp.graphics.ide.isa_sio.pci.ssa.sys.pci.tty.usbif.

bosboot ��� �� �� �� /usr/lib/boot/chrp.disk.proto� ����, ���� /usr/lib/boot/protoext

�� ���� disk.proto.ext.scsi.*� ���� ��� �����. � ��� ��� � �� ��

232 �� ���, � 1 �

Page 249: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �����. � �, ���� /usr/lib/boot/protoext/disk.proto.ext.scsi.*� ���� ��� �

�� � �� �� ��� �����. ��� pcfg ��� � �� �� �� ��� �����.

� � �� � �� �� ��� �����. bosboot ��� � �� ��� RAM ��� �� ��

�� ��� mkfs ��� �����.

7. BOSBOOT ��� �� ��� ��� � ���� �� ��� �� ��� �� ����. ��,

�� ��� �� ��� ��� ��� ��� �� ��(sys0)� �� ����.

� �� ��� �� ��� ��� ����.

/usr/lib/boot/chrp.disk.proto

/usr/lib/boot/chrp.cd.proto

/usr/lib/boot/chrp.tape.proto

/usr/lib/boot/network/chrp.ent.proto

/usr/lib/boot/network/chrp.tok.proto

/usr/lib/boot/network/chrp.atm.proto

/usr/lib/boot/network/chrp.fddi.proto

��� �� ��� ���� � � ��� �� ��� �� �� ��� �� �� ��� ���

� � �� �����. ��� ��� ��� �� � � ����, ���� �� ���

��� ����.

� ��� �� ��� �� ��� �� �� ��� ���� ����� ��� � ���� �

� � ���.

� ��, bosboot ��� ��� ���� ��� ��� �� ��� ���� �� ��� �����.

-p ��� ���� �� ��� ��� �� ��� �� � � ���.

���

-d device �� ��� �����. � ��� � ���� �� �����.

� ��� �� �����. �� ���� ����� ���.

-a ��� �� �� � ��� ����.

� ��� �� �����.

-b FileName ��� �� ��� �� ����� �����. � ��� �����.-D � � ���� ����. � ��� �����.-I (upper case i) � � ���� � � �����. � ��� �����.-k Kernel �� ��� �� ��� �� ��� �����. � ��� ���� ��

�� �� ��, /unix� � ����.-L MP ���� �� ��� �� ���� ���. � ��� MP ��� ���

� �� ����� ��� ����.-l (lower case L) LVDev �� ��� �� �� �� ��� ��� �����. � ��� ����

�.

�� ���(���) 233

Page 250: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-M Norm|Serv|Both �� �� �����. ��� �� ����.

norm � �� �����.

serv ��� �� �����.

both �� ��� �����.-p Proto RAM ��� �� ���� �� ��� �� ��� �����. � ���

�����.-q �� ��� ��� �� ���� ��� ��� �� �����. �� �

�� ��� ����. � ��� �����.-T Type ���� �%� ��� �����(� 6 ��). � ��� bosboot ��� �

�� ��� �%� ��� �� �� ��� ���� ���. ��� ��

�� �� ��, bosboot ��� ��� �%� ��� �� �� �� ���

��� ���� �� ��� ����. � ��� �����.

��

��� ��: �� ����� � ��� �� �� � ���.

��

1. ��� ���� �� ���� �� � � �� ��� ��� �� �� ��� ����, �

� �� ������.

bosboot -a

2. �� ��� �� /tmp/tape.bootimage�� �� �� ��� ����, �� �� �����

�.

bosboot -ad /dev/rmt0 -b /tmp/tape.bootimage

3. ��� ��� �� �� ��� ����, �� �� ������.

bosboot -ad /dev/ent0

4. ���� �� �� ��� ��� �%� ��� chrp� �� ��� �%� ��� chrp� ���

�� � �� ��� ����, �� �� ������.

bosboot -ad /dev/tok -T chrp

��

/usr/sbin/mkboot �� � �� �����./usr/lib/boot/chrp.disk.proto ��� RAM �� ��� ����� �����./usr/lib/boot/chrp.cd.proto CD-ROM RAM �� ��� ����� �����./usr/lib/boot/chrp.tape.proto �� RAM �� ��� ����� �����./usr/lib/boot/network/chrp.ent.proto ��� RAM �� ��� ����� �����./usr/lib/boot/network/chrp.tok.proto �� � RAM �� ��� ����� �����./usr/lib/boot/network/chrp.atm.proto ATM �� ��� ����� �����./usr/lib/boot/network/chrp.fddi.proto FDDI RAM �� ��� ����� �����.

�� ��

bootlist ��, mkboot �� � locktrace ��.

234 �� ���, � 1 �

Page 251: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Understanding the

Boot Process.

bosdebug ��

��

���� � ��� �� ��/��� � � ��� �� �����.

��

bosdebug [ -I | -D] [ -M [ -S | -s sizelist] [ -n sizelist]] [ -l <file> ] [ -f ]

bosdebug [-o]

bosdebug [-L]

��

bosdebug ��, ���� ��� ��� � � �� ��/��� � � ��� �� �����.

-D �� ��� ���� � ��� � ��� ���.-I �� ��� ���� � ��� � � � ���� ���.-L �� ��� ��� � �� �� �� ���� �� �� ���� �����. ��� ���� � � bosboot

-a � shutdown -r ��� �� ��� �� �� �� ������. ��� � ����.-M �� �� �� ���� �� ���� ���. �� � � �� ����� ��� ���� ���� ���

����.-n sizelist -s ��� �� ��� ���, ���� �� � ����. ��� 32-2048� � �� �� ��, ���

��� 2��� ���. ��� no ��� net_malloc_frag_mask �� �� � �� ���.-o ���� �� ��� ��� ��.-s sizelist �� �� �� ���� ��� ��� �� ����� ��, � � � ���� ���

����. ���� � �� � � ���� ����� �� ���� ��� ����. �� ���� ��

� � � �� �� ������. ��� 16-2048� � �� �� ��, ��� ��� 2��� ���.-S �� �� �� ���� �� ��� ��� ��� ��(4096)��� �"��, � ���� ��� ���

�. ���� �� ��� �� ����� ���� ��� �� � �� ����, ��� �� ���

� �� � � ��� ��� ��� �� � ����.-l <file> kdb ��� �� ��� � ��� �� ��� ����. ��� � ����. ����� ����. LFS �

�� ���� �� ��� ���� �� ������.

# echo ’#include <sys/vnode.h>’ > sym.c# echo ’main() { ; }’ >> sym.c# cc -g -o sym sym.c -qdbxextra /* for 32 bit kernel */# cc -g -q64 -o sym sym.c -qdbxextra /* for 64 bit kernel */

-f �� ���� �� ��(-l ���� ��)� ����. � ���, ���� ��� �� ����.

� ��� �� �� ��� bosboot � shutdown -r ��� ���� �����(-l � -f �� ��).

�� ��

bosboot �� � shutdown ��.

�� ���(���) 235

Page 252: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Memory Overlay

Detection System(MODS).

bs ��

��

�"� ��� ���� ��� � �����.

��

bs [ File [ Arguments ] ]

��

bs ��� ��� ��� �� � ���� � ���� � ������. ��� ���� �����

�, �� ��� � � �� ��� ����, � �� � �� ���� ���� ��� ���� ��

� �� � �� ��� ����.

�� ��� File� ���� ��� �� ���� �� �� ����� �� ��� ��� ���

� �����. �� ������ ��� ���� �� � �����(compile � execute � �� ��).

� ��, File�� �� ���� ��� ���� � ������.

���� �� ���� �� ��, � ���� ��� �����.

�� ��� ��� ��� �� arg � narg� ��� ���� �� � ���.

��� �� �� �� � ��� ������ ���.

statementlabel statement

���� ���� ����� ���� � �� �����. label� �� � �� ��� ���.

� � �� �� ��� �� � ���. �� ��� \(���)� ��, ��� �� ��

��� ��� �����.

��� ��� �� �� �� �� 0 ��� ����� ������.

�: ��� ���� � � ���� �� � ���� �� ��� ����, �� � � �

�� �� �� �� ���� ������.

��� ��

break �� �� � for �� while �� ����.clear �� ��� ��� ���� ���� ��� �����. ���� �� � �����.compile [Expression] ���� ���� ������ ���(�� �� � � � ���). ��� Expression� �

��� �� ��� � �� ���� �����. ��� ��, �� �� � ��� �

�����. compile� �� � �����.

236 �� ���, � 1 �

Page 253: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

continue ��� for �� while �� � �� ���� ��� ����.dump [Name] �� �� � �� ���� Named �� �� � �� �� �����. �� �� ��

�� ���, dump� ��� � � (���)��� �� ��� �����.exit [Expression] ��� �� �����. Expression� ��� � � �����.execute �� �� �� ����. (INTERRUPT �� �� �� ���.) � ����� ��

� ���� ����� ����(� ��).for �� � � �� ���� �� �� �� � ��� ��� ����� ���� ���

����� �����.

for name=Expression Expression statementnext

��

for name=Expression Expressionstatement . . .next

��

for Expression, Expression, Expression statementnext

��

for Expression, Expression, Expressionstatement . . .next

� ��� �� � �� �� �� � �� �� �� �� ��� �� 1� ��

�� �� ��� �����. � �� ��� ��� �� �� �� � ��, ��� �

�� �� � ���.

� �� ��� ��� ��� �� ��� ���(����� �� ��) � � �� ��

���� �����. � �� ��� ��� �� �� �� � ��, ���� ��� �

� � ���. ��� ��� � �� � � �� ���� ���� �����.fun �� ��� ��� ��� � ��� �����.

fun f([a, . . . ]) [v, . . . ]statement . . .nuf

f� �� ��� ����, a� ���� ����, v� ��� � ��� �� �� ��

�����. � 10�� ��� � �� �� �� � ��, �� �� ��� ���

�� � ����. �� ��� �� � ����.freturn ���� �� ��� ��� ����. ��� ��� freturn� 0� �����(�� �� �

��(? ��).) ��� �� freturn� ��� ����� �����.goto Name Name� ���� �� � ���� ����� ��� ����.ibase n �� ��� n�� �����. n� ���� ��� �� 8, 10(� �) � 16���. 10-15�

16� �� �� a-f� � ���. 16��� ��� �� � ��� ��� �����.

(�� �, f0a� 0f0a� ����� ���.) ibase� �� � �����.

�� ���(���) 237

Page 254: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

if � �� � ��� ��� �����.

if Expression statement[elsestatement . . . ]fi

��

if Expressionstatement . . .[elsestatement . . . ]fi

� ��� �� ��� ���� � �� ��� ���� ��� ���� �� �� ��

��� ��� ��� �����. ��� 0 � ″″(�)� 0�� �����.

� �� ����, �� else� � ��� �� ��, ���� ��� ���� ���. else

� � �� �� ���� ��� ���� if���. � fi� �� �� fis�� �� �

���. else� if� elif� �� � ���. if . . . elif . . . [else . . . ] ��� ���

fi� �� � ���.include Expression Expression� ��� ���� � � ��� ���� �����. ��� ��� ���

� ���� ��� ���. include �� �� � �����. include �� ���� ��

��.obase n �� ��� n�� �����. n� ���� ��� �� 8, 10(� �) � 16���. 10-15�

16� �� �� a-f� �����. 16��� ��� �� � � ��� �����. (,

f0a� 0f0a� ����� ���.) ibase� �����,obase� �� � �����.onintr � �� � ��� ��� ���� ����� �����.

onintr Label

��

onintr

� ����, onintr� ��� � � goto� ���� ��!, ��� ��� Label� ���

��. onintr�� ���� �� �����. � �� ����, INTERRUPT� �� bs

���� ����.return [Expression] Expression� ��� � ��� �� �� ��� �� �����. ���� ���� ��

��, ��� 0� �����.run ��� � ���� ����� �����. ��� �� ��� ������. ��� run

�� �� ��, ����, run� �� � �����.stop ����� ��� ���� � �� �����.trace [Expression] �� ��� �����. Expression� ���� ��� 0�� ���� �� ��� �����.

��� ���, ��� �� ��/��� �� �����. ��� trace �� �� 1�

������.

238 �� ���, � 1 �

Page 255: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

while �� � � �� ���� �� �� �� � ��� ��� ���� ��� ��� �

���� �����.

while Expression statementnext

��

while Expressionstatement . . .next

while �� � ��� �� ���� ����� �� ����� for �� �����.!cmd ��� ��� � bs ����� ��� �� ����.# Comment �� �� ����.

�� ��

Name �� ����� ��� � �� � ��, �� �����. ��� ��(��� �

� ���) �� ���� �� � ��� ���. ��� � 6���� �����.

fun��� ����� �� ��� ����, �� ��� �����. ��� ��(�� �

�) � �� ��� �� ��� ��/��� �� � ���(�� �� open ��).Name([Expression[, Expression] . . . ]) �� Name� ��� ��� � ���� ��� �����. ��� ��� ����,

Name� fun �� ���� ���. �� ���� ��� �����.Name[Expression[, Expression] . . . ] �� �� ��� �����(��� �� table ��). ��� ��, ���� ���

���� ��� �� ����� �����. ���� �� ��� ������ ��� �

�� , [1,2]� [1] [2]� ����. ��� �� 0-32,767 ��� ���� ���.Number ���� �����. � �� ��, 10�� �� ��� ����� �� � ���. (�

�, �� �� � �� e �� ��� �� ��� ���.)String ″ ″(�� �� ��)� � � ���� �����. ��� ���, �� �� ��(\″), �

�� ��(\n), ��� ��(CR)(\r), �����(\b) � �(\t) ��� ���� �� �

� �� ���� ��� \(���)� �� � ���. ��� �� ��� � �

� �� �� ��, \� ��� �����.(Expression) ��� � ��� ����.(Expression,Expression

[, Expression] . . . ) [Expression]

���� ��� �� ����� ���� � ��� �� ��� ���� �����.

��� ��� 0�� ��� �� ���� ��� ����. � �� ��� �� ��

True �� ����.

(False, True) [a == b]Expression Operator Expression ���� ��, �� �� �� ���� �� ��, ���� ���� �� ����� �

� ���� ����.

� ���

? Expression Expression� �� �� � �� ������. � �� ���� � ���� �����.

v ��� �

v eval �� ��� ��

v ���� �� ���� �����(freturn ��).

�� ��(�� �, ��� �)� ��� ���� ����� �� �� ��� , ��

�� ��� � �����.-Expression Negates Expression.++Name � �(�� �� ��)� 1� ������.

�� ���(���) 239

Page 256: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-- Name � �� 1� ������.! Expression Expression� ��� ��� �����.

�: �� ���� �(null) ���� 0�� �����.

2� ���(�� �)

= �� ���� �����. �� ����� �� �� �� ����� ���. �� ����� � � ���

�� �� ����. ��� � ��� ���� ���, �� � ���� ���� � ��� �

���._ �� ���� �����(�� ��).& | ��� AND, ��� OR� �����.

��� �� ����.

Expression & Expression

� ��� �� ��� ��� �� ��(�)�� 1(�)��, � ��� �� �� �� ��� 0� �

� 0(��)���.

��� �� ����.

Expression | Expression

� � �� ��� ��� �� ��(�)�� 1(�)��, � � �� �� �� ��� 0� �� 0(��)�

��. ��� �� ��� �(null) ���� 0�� �����.< <= > >= == != � �� ���� �����.

v < �� ��

v <= ��� ��

v > ��� ��

v >= ��� ��

v == �� ��

v != �� �� ��

�� ���� ��� ��� �� �� 1� �����, ��� �� �� 0(��)� �����. �� ��

�� ���� �� �� ����. a>b>c� a>b& b>c� ����. ���� �� ��� ���� �

�, ��� ��� ������. �� � LC_COLLATE� ��� �� ��� ���� �����. ��

� �� ����� �� �� �� � ��� �����.+ - �� � ��� �����.* / % ��, ���, ���� �����.^ ���� �����.

�: 2� ���� �(null) ���� 0�� �����.

��� � � ��

arg(i) ��� �� �� ��� i-�� �� ��� �����. � 0��, arg� i-�� ��� ��� �����. �

� �, arg(0)� bs� �����.narg( ) ��� ��� �����. � 0��, ��� �� ��� �����.

240 �� ���, � 1 �

Page 257: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ��

abs(x) x� ���� �����.atan(x) x� ��(arc) ���� �����.ceil(x) x�� �� ���� �� �� ��� �����.cos(x) x� ���� �����.exp(x) x� e ��� �����.floor(x) x�� �� ���� �� � ��� �����.log(x) x� �� ��� �����.rand( ) 0-1 ���� ���� � � ��� �� �����.sin(x) x� ��� �����.sqrt(x) x� ���� �����.

��� ��

size(s) s� ��(�� ��)� �����.bsize(s) s� ��( �� ��)� �����.format(f, a) printf ���� ����� �� �� ���� �� a, f� ��� ��� �� ����

�. %...f,%...e � %...s ��� ������.index(x,y) y� � ��� ���� ��� � � x�� � �� �� ���� ��� ���

��. ��� ���� �� �� 0� �����. 2 �� � ��� ��, � ���

�� �����.trans(s, f, t) �� ��� s�� f� � ��� ���� ��� t�� ��� �� �� ��� �

���. f� ���� �� �� ��� ��� �� ��, �� ���� �����. �

�� f� t�� ��, f� ��(excess) � � � ��� ���� �� ��� �� �

��� ���� ����.substr(s,Start,Length) ���� Start �� ��� s � Length� � ���� �����.

�� ���(���) 241

Page 258: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

match(String,Pattern)

mstring(n)

pattern� ���� string� �� �� �����. �� ., *, $, [, ], ^(��� � �

�), \(� \)� �� �� ��� �� ����.

�: �� ���� �� ��� ��� ed� ������.

. � �� ��� ��� ��� ������.

* �� �� �� ��� 0 ��� ��� ������. �� �, .*� � �

� ��� ���� ��� 0 ��� ��� ������.

$ �� �� �����.

[.-.] � � ��� ����, ��� � ([.-.]) �� ���([ . . . ])� � �

��� ������.

[^ .-.]

[^ . . . ]

� �� ��� ��� �� � � �� ���� � ��� ������.

�&(^)� �� ��� � �� � ���� �� �� ����.

[].-.]

[] . . . ]

] �� ���� ��� ������. � � �� ��� (� ��, �� ^ �

�) � ��� �� ��� ���� ��� ����.

\( . . . \)

� ���� ���� ��� ������. ��� ��� �� � ��� �

� ����� ��� � ���. �� �, �� ����.

match (’a123ab123’,".*\([a-z]\)") = 6

� ������, .*� a 123a(a-z��� �� �� �� �� ���)� ��

��, \([a-z]\)� ���� 6��� �����, b� ������. [a-z],

� �� ����� �� ��� �� �� ��� �� ″��� ���″� �

���.

�� ��� �� � �� �� �� ��� �� � ���. �� ��

� �� ��� �� ��� ��� ″�� �� �� ��″� ������.

mstring ��� match� ��� ���� n�� � ���� �����. (n�

1� 10�� � ���.)

242 �� ���, � 1 �

Page 259: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� ��

open(Name, File, Mode)

close(Name) ��, �� �� � �� �� �����. Name�(����� ���) ���� �����

���. �� �, ��� �� �� ���. �� ��, File� � � ��� � ���.

v �� ��� �� 0

v �� ��� �� 1

v �� ��� �� 2

v �� ��� ���� ���

v (″sh -c″� ��� ) ��� �� �� ���� !� ���� ���

�� r� ���, w� ���, W� � �� �� �� �� �� ��� ��� � ���.

�� ��� �� ����.

v open (″get″, 0, ″r″)

v open (″put″, 1, ″w″)

v open (″puterr″, 2, ″w″)access(p, m) ��� ���� �����. ��� p� ��� �� ����, m� ���� ��� ��

���� �� �����. � ��� ��� ��� �� �� 0� ����, �� �� -1

� �����.ftype(s) f� �� ��, p�(�� � � ��) ��(FIFO), d� ����, b� � �� �� �

� c� �� �� ��� �� �� ��� ���� �� ��� �����.

��

table(Name, Size) ����� ����, 1�� ��� �����. (��� �)″��″� (�� ��)������.

Name� bs � ��(���� ���)��� ���. Size� �� ��� �����.

����� ���� bs� �� ��� �����.item(Name, i)key( ) ���� � � �� � ����� �� ��� ������. �� �� ��� �� �

����, � ��� �� �� ��� ″��″� ������. Name� �� ��� ��� ��

��.

�� �� ��� ���� ����, �� ���� ��� �� ���� � ����,

�� �� ����.

table("t",100)

.

.

.#If word contains "parity", the following expression#adds one to the count of that word:++t[word]...#To display the key/value pairs:for i = 0, ? (s = item (t, i)), ++i if key( ) put = key( )_":"_s

iskey(Name, Word) � ��� �� ��� �� ����� �� 1�, ��� 0� �����.

�� ���(���) 243

Page 260: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

eval(string) ��� ���� ���� � ����� �����. �� ����� ��� ��� � �

�� �����. eval� �� �� �� �� ��� � ���� �� �� ���.

name = "x,y,z"eval("++"_name)

� ″x,y,z″� � ���. ���, eval �� ?(�� ���)� ��,bs �� ��� �� �

���. �� �, �� ����.

?eval ("open(\"X\",\"XXX\", \"r\")")

″XXX″�� ��� �� ��, � 0� �����(���� ���� �). �� �� (��

��) � ″L:″� goto� �����.

label = "L:"if! (?eval ("goto"_label))puterr="no label"

244 �� ���, � 1 �

Page 261: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

plot(request, args) tplot ���� ��� ���� ��� ����. �� ��� �� ���� ���� ����.

0� 12� ��� �� ��� ��� tplot� ��� �����.

�� ��� �� ����.

plot(0, term)

�� ��� -T �� ��� �� tplot� ���� ���.

plot(1) ���� �#��.

plot(2, string)

string� �� �� � � ����.

plot(3, x1, y1, x2, y2)

(x1, y1)� (x2, y2) ��� � ����.

plot(4, x, y, r)

��(x, y) � ��� r� �� �� ����.

plot(5, x1, y1, x2, y2, x3, y3)

��(x1, y1) � � (x2,y2)� (x3, y3)� �� �(�� ����)� ����.

plot(6) ���� �.

plot(7, x, y)

(x, y)� �� � �����.

plot(8, x, y)

�� �� (x ,y)� �� ����.

plot(9, x, y)

(x, y)� � ����.

plot(10, string)

� �� ���� �����.

plot(11, x1, y1, x2, y2)

(x1, y1) �� �� �� �� ��� � (x2, y2) �� �� � � �� ����

����.

plot(12, x1, y1, x2, y2)

���� ��� x(y) ���� x1 (y1)� �� � ���� �� x2 (y2)� ����

� ���. �� ����� plot(12, 1.0, 1.0, 0.0, 0.0)���.last ( ) � �� �� �� �� �� �����.

��

bs ��� ���� ��� output��� ��� �����, �� �� ������.

bs < input.n > output

��

bs input.n > output

�� ���(���) 245

Page 262: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

ksh ��.

access ���, printf ���.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� National

Language Support Overview for Programming.

bsh ��

��

bsh ��� Bourne �� �����.

��

bsh [ -i ] [ -r ] [ { + | - } { [ a ] [ e ] [ f ] [ h ] [ k ] [ n ] [ t ] [ u ]

[ v ] [ x ] } ] [ -c String | -s | File [ Parameter ] ]

�: �� �� -(�� ��)� �� +(��� ��)� �� ��� ��� �����.

��

bsh ��� Bourne �, ��� �� ��� � �� ��� ��� �����. �� �� ����

� ����� �� ����� ��� �����.

Bourne �� �� ��� ��� AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ″Bourne

�″� ������.

���

Bourne �� �� ����� �� ���� �� �� ��� �����.

�: ���� -c �� -s ��� ���� �� ��, �� � ���� �� ��(� ����)�

�����. ���� ���� � ����� �����. ��� ��� AIX 5L �� 5.2 ���

��� ��: ��� � ��� ″Bourne ��� � ��″�� � ���� ��� ���

���.

-a ��� ���� �� � ��� �����. �� �� ��� ���� �� �� �� ��� �� ���

����, �� �� � ��� �� ��� ���� �����. ��� ��, �� �� �� ��� �

�� ��� �����. �� �� ��� ��� �� �� �� �� ��� getopts �� read ��� ��

��� ��, �� �� �� ���� �� ��� �����.-c String String ���� �� ��� �����. String �� ����� �� ��� � 0� ����, ���

Parameter ������� � ���($1, $2 �)� ���� �����. � ��� �� �� �� �

� ���� �� ��� �� ����.

246 �� ���, � 1 �

Page 263: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-e ��� �� �� �� ��� �� �� � ����.

v 0�� � ����� ����.

v while, until �� if ��� � ��� ��� ����.

v AND �� OR ���� ��� ����� ����.

v !(� �) ���� ��� ����� ����.-f �� �� ��� �� ����� ���.-h ��� ��� �� �� ��� ��� ��� ����� �����. (����� ��� ��� �� ��

�� ������. hash ��� ������.)-i ���������� ���� ���� �� ���� �� ���. � ��, �� TERMINATE �� �

�� kill 0 ��� ��� �� ���� ��� ��, INTERRUPT �� �����, wait ��� ��

� ���� � ���. �� ��, �� QUIT �� �����.-k ��� �� �� ��� ��� ����� ��� �� �� ���� ��� ������.-n ��� ���� ��� ��� ����. -n ��� � ����� �� ��� ���� � �� �

���. ��� �� � ��� �� � ���.-r ��� �� �����. � ��� ���� �� .profile ��� �� � �� ����� ���� �� �

���, Rsh ��� ���� �� ����.-s ��� �� ������ ����. ��� � ���� � ����� �� �� �����. ��

��� ��� ����, � ��� �� ��� �����.-t ��� ��� �� ��� � ����.-u ���� �� �� ��� ���� � ��� �� �� � ����. ��� �� ��� ���

�.-v � �� �� ��� �� �����.-x �� � � ��� ���� �� �����.

�: -(�� ��)� �� +(��� ��) ��� ��� ���� ����. $- �� ��� ���

�� ��� �����.

��

/usr/bin/sh � � �� ��� �� �����. � ��� Bourne �� �����./usr/bin/bsh �� ��� Bourne �� �����./usr/bin/Rsh �� ��� ��� Bourne �, Bourne �� ����� �����./tmp/sh* �� �� � ��� �� ��� �����.

�� ��

env ��, sh ��, Rsh ��.

/etc/passwd ��, null �� ��, environment ��.

profile �� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� Bourne �.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� Bourne � �� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� Bourne ��� � ��.

�� ���(���) 247

Page 264: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

bterm ��

��

���(BIDI) �� ��� �� �����.

��

bterm [ -maps Map ] [ -help ] [ -keywords ] [ -nobidi ] [ -symmetric ] [ -autopush ] [ -or Orientation

] [ -text TextType ] [ -nss NumShape ] [ -csd CharShape ] [ -tail ] [ -nonulls ]

��

bterm ��� IBM 3151, VT220, HFT � � ��� �� �����. ASCII ��� BIDI ��

� �����. � ��� BIDI ������ �� � � BIDI �� ����. bterm �� �� �

�� ����� � ��� �� � ����.

�� ��� ��� �� � � ���� �� -maps ��� �����. bterm ��� �� �� �

�� ����� � � ��� ��� ��� � BIDI ��� �� � ���. ��� ���

� � ��, � � �� �� ��, �� �� � �� � � �, ��� � � � � ����, �

�� �� � �� �� �� � �� � �� �� ���� ��� �� ����� ���. �

�� ��� ��� � � �� ��� ��� ����.

� � ��� � ��� �����.

1. ������ .Bidi-defaults ��� �����.

2. ��� ���� �� ��, bterm ��� /usr/lib/nls/bidi/$LANG/app-defaults ��� BTerm ��

��� �� �����.

���

-autopush �� �� ��� �� � �� �� � ���.-csd CharShape �� ��� � � �����. CharShape �� � �� � ��� � ���.

v automatic

v isolated(�� �� ��)

v initial(�� �� ��)

v middle(�� �� ��)

v final(�� �� ��)

v passthru

� �� �� � ���.-help �� �� ��� � � ��� �����.-keywords � � ���� �� �� ��� �����.

248 �� ���, � 1 �

Page 265: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-maps Map �� �� � ��� �� ���� ���� �� �����. ���� �� � ��

�, Map �� � ��� /usr/lib/nls/bidi/maps ����� ���. �� �

BIDIPATH� �� �� ��� � ���.

export BIDIPATH=/usr/lib/nls/bidi-nobidi BIDI �� �� ����� ���.-nonulls ��� �(null) �� ���� ������.-nss NumShape ��� � � �����. NumShape �� �� � �� � ��� ������.

v bilingual

v hindi

v arabic

v passthru

� �� bilingual���.-or Orientation �� �� ��� �����. Orientation�� LTR �� RTL� � ���. � ��

LTR���.-symmetric �� � �� �� �����.-tail ���� ″seen″, ″sheen″, ″sad″ � ″dad″ ��� � �(cell) �� � �� �����.-text TextType ��� ��! ��� �����. TextType �� implicit �� visual� � ���.

� �� implicit���.

� �

� ��� ��� BIDI ���� ����, Ctrl+X �� �� BIDI �� �� ������. � � �

� ��� �� BIDI ���� �����. ���� �� �� �� �� BIDI �� �� ���

�. � �� ��� BIDI �����.

� ��

r ��� ��� ������.n �� �� ��� ���� �����.l �� �� ��� ��� �����.a (�� �� ���� ���) �� ��� �� � �� � ��� �����.t � � �����.space �� � (RSP)� �����.

�� �� ����:

� ��

c � �� �� �����.

�� �� ����:

� ��

s � �� �����.e � � �� ����.p �� � �� �����.f �� ��� �� � � ����.i �� ��� � �� � � ����.b �� ��� �� ���(Passthru) �� � � ����.o �� ��� � �� � � ����.

�� ���(���) 249

Page 266: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��

m �� ��� � �� � � ����.

.Bidi-defaults ��

� ��� ��� bterm ��� �� � �� �����.

.Bidi-defaults ��

��� � ��

fScrRev on �� � �� �� �� �����.

off �� � �� �� �� ������.

fRTL on RTL �� �� �� �� �� �����.

off RTL �� �� �� �� �� ������.

fLTR on LTR �� �� �� �� �� �����.

off LTR �� �� �� �� �� ������.

fPush on � �� �� �� �����.

off � �� �� �� ������.

fEndPush on � � �� �� �� �����.

off � � �� �� �� ������.

fAutoPush on �� � � �� �� �����.

off �� � � �� �� ������.

fASD on �� � �� �� �� �� �����.

off �� � �� �� �� �� ������.

fShapeIS on � � �� �� �� �����.

off � � �� �� �� ������.

fShapeIN on �� � �� �� �� �����.

off �� � �� �� �� ������.

fShapeM on � � �� �� �� �����.

off � � �� �� �� ������.

fShapeF on � �� �� �� �����.

off � �� �� �� ������.

textType implicit ��� ��!� � � ��� �����.

visual ��� ��!� � � ���� �����.

orientation LTR ���� � � � � �� ����

RTL � ��� �� � � �� ����

symmetric on �� � �� ��

off �� � �� ���

numShape bilingual �� � ��� 2� �� ���� �����.

hindi ��� ���� �����.

arabic ��� ���/����� �����.

passthru ��� ���/����� �����.

250 �� ���, � 1 �

Page 267: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

.Bidi-defaults ��

��� � ��

charShape automatic ����� �� �� � � ����.

passthru �� ��� �� ��� �� �����.

isolated �� ��� � �� �����.

initial �� ��� �� �� �����.

final �� ��� �� �����.

middle �� ��� � �� �����.

maps ��� � ����� ��� ����� �����. ��, ��,

�� � �� �� �

expandTail on � �(cell)� ″seen″� �� �� � �� �����.

off � �� ″seen″� �� �� � �� �����.

nobidi on BIDI �� �����.

off BIDI �� ��.

noNulls on �(null)� ���� �����.

off �� �� �� �(null)� �(null)� ���.

�� ��

aixterm ��, telnet, tn �� tn3270 ��.

AIX 5L Version 5.2 National Language Support Guide and Reference� Bidirectionality and Character

Shaping.

bugfiler ��

��

��� � ����� �� ���� �� �����.

��

bugfiler [ -d ] [ -m MessageMode ] [ -b BugUserName ] [ MailDirectory ]

��

bugfiler ��� �� ���� ���� ����� ��� �, MailDirectory �� ��� ����

� ��� �� �����.

� �� ���� /etc/aliases ��� � �� �� bugfiler ��� �����. �� � ��� �

���.

bugs:"|/usr/lib/bugfiler $HOME/bugstuff"

����, �� ���� $HOME/bugstuff ����� ������. ����� ���� �� ��, bugfiler

��� $HOME/mail � � ����� �� ���� �����.

�� ���(���) 251

Page 268: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�: bugfiler ��� � � ����� ���� � $HOME/mail ����� ��� ���.

BugUserName� bugs� �� � ��� ��, /etc/aliases ��� ���� � ��� �� -b

BugUserName ��� �� ���.

hadley:"|/usr/lib/bugfiler -b hadley"

� ��, hadley� BugUserName�� ��� �� �� ���� /home/hadley/mail � � �����

������. bugfiler ��� �� ��� �� ����� hadley� �� ����� ���.

bugfiler ��� �� ���� �� ���� ��, ���� ��� �� �, ��� � ��

($HOME/MailDirectory/.ack ��)� ����, ��� ��� � �����($HOME/MailDirectory/.format

��).

��� ��� �� ���� errors ����� �����. � ����� bugfiler ��� MailDirectory

�� ������� ����. �� ���� /usr/lib/bugformat ��� � ����� ���. sendbug

��� ��� /usr/lib/bugformat ��� ������. bugfiler ��� ��� �� ���� ���

���� Index: �� ��� �� �����. Index: �� �� ���� ��� � ����� �

���� �� � ��� ���� ���. bugfiler ��� � ���� MailDirectory/summary ���

�� �����.

DirectoryName/MessageNumber IndexInformation SubjectInformation

�: bugfiler ��� ��� �� ���� ����. Reply-To: �� ���� ��� ���� ��

��, ��� ��� �� ����� �����.

�� ��� ��

�� ���� ARPA RFC 822 ���� ����� ���. sendbug ��� � ��� �� ���

� � �� ��� ���� ���.

���� ��� ��� � � �� �� ��� ���.

Date: bugfiler ��� ���� �� �� �� ���.From: ��� �� �� ��� �� ���.Subject: �� � �� ��� �� ���.Index: �� ����� �� ��� ��, �� ��� �� �� Fix ��� � �� ���.

�� ���� ��� � �� ��� ���.

Description: �� , � �� �� � �� ��� ��� �� ���.Repeat-By: �� � ���� ���� �� ���.Fix: �� �� ��� � �� ��� ���� diff� �� ��� �� �� ��� �� ���

����. Index: �� Fix ��� ��� ���� Fix: �� �����.

�� ��� �

�� ���� MailDirectory/.redist ��� �� ��� �� �� � � ���. MailDirectory/.redist

��� �� �� ��� �� ���� ���� �� �� ����. �� �� � � ��� ��

252 �� ���, � 1 �

Page 269: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� ��� �� ��� � � � �� ���� ���. ���� � �� �� ����,

� ��� �� \(���)� ��� ���. �� .redist ��� � �� ��� �����.

myindex joe@hal,mary@mercutio,martha@banquo,sarah@mephisto,\dee@hamlet,dewayne@ceasar

���

-b BugUserName �� ��� ID� �����. -b BugUserName ��� ���� ��� bugfiler ��� �

� �� ��� ��� ���.-d ���� �����. -d ��� �� ��, bugfiler ��� �� ��� �� ���� ���

��.-m MessageMode �� ��� �����. -mMessageMode ��� bugfiler ��� ��� �� ��� ��

�� �� ��� 16�� ���� �����.

��

1. � �� �� �� � ��� MailDirectory �� �� ��� � �� bugfiler ��� ��� �

� ����.

hadley:"|/usr/lib/bugfiler -d -m 755 -b hadley/home/hadley/bugdir"

� �� /etc/aliases ��� ��� ���� ����, �� �� ��� rwxr-xr-x� ����, hadley

� BugUserName�� ���

/home/hadley/bugdir ����� �����.

2. �� ���� �� �� ����.

Date: Mon, 27 Nov 89 11:26:15 -600From: a@BSubject: Read not setting errno correctlyIndex: LFS/rdwr.c workstation 3.1

Description: Read not setting errno correctly

Repeat-By: Start an NFS daemon and it receives errors. Errno iszero.

��

/etc/ aliases � �� ���� �� �� ���� ��� �����.usr/sbin/sendmail � �� ���� �����.MailDirectory/summary �� ��� ��� �����.BugUserName/MailDirectory/.ack ��(acknowledgment)�� ��� ��� �����.BugUserName/MailDirectory/.format �� ��� �� � ��� ��� �����.MailDirectory/.redist �� ���� �� � � ���� �����.

�� ��

sendbug ��.

�� ���(���) 253

Page 270: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Mail Overview for

System Management.

burst ��

��

� �� ��� �� �� � �� � ��.

��

burst [ +Folder ] [ Messages ] [ -inplace ] [ -noinplace ] [ -quiet ] [ -noquiet ] [ -verbose ]

[ -noverbose ]

��

burst ��� ��� � �� �� ��� �� ���. burst ��� forw ��� ���� �

�� forw � send ��� ���� � ���� �� �����. burst ��� ��� �� �

�� ��� �� � � ��� ��� , ����� ��� �"���.

burst ��� �� ����� � 1000�� ��� � � ���. ���, ����� burst ��

� � ��� �� �� �� �� �� ��� �� ����.

burst ��� ��� ��� ��� ���� ��� � ��� �����. ��� ��� �� �

� ��, burst ��� ��� � ��� ��� ���.

� ��, � ������ ��� � ��� �� ��� ���. -inplace ��� �� ��,

�� �� ��� �� ��� ���.

���

+Folder � ��� ��� ���� �� �����. � ��, ���� �� �� �����.-help �� ��, �� �� � �(��) � �� ��� �����.

�: �� ��(MH)� ��, ��� ��� ��� ��� � ���.-inplace �� ��� �� ��� ����, �� �� � �� ��� ��� ��� ���, ��

� �� ��� ��� �� �" � � ���� ��� �� � � ����.

��: burst ��� �� ���� ����� ���� �� �� ��� ��� ���

�. -inplace ��� �� ��, burst ��� � � ��� �����. ����, � ���

����� ��� � ������. ���, ���� ��� ���� �� �� �� ��, burst

��� ��� ��� �����.

254 �� ���, � 1 �

Page 271: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

Messages � ��� ��� ������. � ���� � ��, ��� � �� �� ��� �� �

���. � ���� ��� ��� ������.

Number �� ��. � �� ��� �����, ��� ��� ��� �����. � � ��

���, -(���)�� � � � � ��� �����.

Sequence

���� ��� �� �����. ��� �� �� ����.

all �� �� �����.

cur �� .(��)

��� �����. ��� � ����.

first �� � �� �����.

last �� ��� �����.

next �� ��� � �����.

prev �� ��� �� �����.

-noinplace ��� �����. ��� � ����.-noquiet �� ��� �� ��� �� ������. � ��� � ����.-noverbose �� ��� �� � burst ��� ���� ��� ���� ���� ���. � ��� � ���

�.-quiet �� ��� �� ��� ��� �����.-verbose �� ��� �� � burst ��� ���� ��� �����.

���� �

� ��� UserMhDirectory/.mh_profile ��� �����.

Current-Folder: � � �� �� �����.Msg-Protect: ���� �� �� ��� �� �� �� �����.Path: ���� MH ����� �����.

��

1. ���� �� ���� � �� ��� ���� mickdy@mouse�� �� 5� ����.

5+ 03/02 mickey@mouse6+ 03/02 disney@world

�� 5� � �� �� ��� ���, �� �� ������.

burst 55+ 03/02 mickey@mouse6 03/02 disney@world7 first message in digest8 second message in digest9 third message in digest

��� ��� �� ��� �� �� �����. �� 5� ���� �� �� � �� �

�� �����.

�� ���(���) 255

Page 272: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2. -inplace ��� ��� �� 5� ���, �� �� ������.

burst 5 -inplace5+ 03/02 mickey@mouse6 first message in digest7 second message in digest8 third message in digest9 03/02 disney@world

��� ��� �� ��� �� �� � �� ���, burst ��� ��� ��� �� �

�� ��� �� �����. �� 5� �� �� � ��� ��� ���� �����.

��

$HOME/.mh_profile MH ��� ���� �����./usr/bin/burst burst ��� �� ��� �����.

�� ��

forw ��, inc ��, msh ��, packf ��, send ��, show ��.

mh_alias �� ��, mh_profile �� ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

cachefslog ��

��

�� �� ���� ��� �����.

��

cachefslog [ -fLogFile |-h ] Cachefs_Mount_Point

��

cachefslog ��� CacheFS ��� ���� �� �����. ���� � ��� CacheFS ��� �

��� �� � ���� Cache f s_Moun t_Po in t� � �� � �� �� ��� � ���� .

Cachefs_Mount_Point ��� �� �� ���� �� � ���. Cachefs_Mount_Point� �� �� �

� ���� �� �� ���� �����.

���

-f LogFile �� �� ��� �����.

�: � ��� ����� �� ��� �� ���.-h ��� �����.

�: � ��� ����� �� ��� �� ���.

256 �� ���, � 1 �

Page 273: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

�� �� ��� �����.

0 �

��� �� ��� ������.

��

1. /home/sam ����� �� ��� ���� �� �� ������.

cachefslog /home/sam

����� �� �� ��� �����.

not logged: /home/sam

2. /home/sam� �� ��� /var/tmp/samlog� ���� �� �� ������.

cachefslog -f /var/tmp/samlog /home/sam

����� �� �� ��� �����.

/var/tmp/samlog: /home/sam

3. /home/sam directory� �� ��� ����� �� �� ������.

cachefslog -h /home/sam

����� �� �� ��� �����.

not logged: /home/sam

��

/usr/sbin/cachefslog cachefslog ��� �����.

�� ��

cachefsstat ��, cachefswssize �� � cfsadmin ��.

cachefsstat ��

��

�� �� ���� �� ��� �����.

��

cachefsstat [ -z ] [ Path... ]

�� ���(���) 257

Page 274: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cachefsstat ��� Path� ��� �� �� ���� �� �� ��� �����. �� ���� ��

�� � ��, �� �� � �� ��� ���. Path� ���� �� ��, �� �� �� �� �

��� �����. ��, cachefsstat� ��� � ��� �� ��� � ���(-z �� ��).

�� ���� �� �����.

��� �� �� �� �� ��� ��� �� �� � ��� �� �� �����.��� �� ��� �� �� � �� ��� � � ��� �� �����.�� �� � �� �� �� ��� �

���

-z ��� 0�� �� ������. �� �� �� ��� ���� � cachefsstat� �� ���� �

� cachefsstat -z� �����. �� ����� � ��� �� � ���. ��� ��� ���

�� ����� � �� ��� ����.

�� ��

�� �� ��� �����.

0 �

��� �� ��� ������.

��

1. /home/sam ����� �� �� ��� ��� ����� �� �� ������.

cachefsstat /home/sam

����� �� �� ��� �����.

cache hit rate: 73% (1234 hits, 450 misses)consistency checks: 700 (650 pass, 50 fail) modifies: 321

��

/usr/sbin/cachefsstat cachefsstat ��� �����.

�� ��

cachefslog ��, cachefswssize �� � cfsadmin ��.

258 �� ���, � 1 �

Page 275: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cachefswssize ��

��

�� �� ���� �� ��� �����.

��

cachefswssize LogFile

��

cachefswssize ��� LogFile�� ��� �� ��� �����. ��� �� �� �� �� � �

�� �� ���� ��� �� �� �� �����.

�� ��

�� �� ��� �����.

0 �

��� �� ��� ������.

��

1. /var/tmp/samlog ��� �� �� �� �� ���� �� ��� ����� �� �� ����

��.

cachefswssize /var/tmp/samlog

����� �� �� ��� �����.

/home/samend size: 10688k

high water size: 10704k

/foo

end size: 128khigh water size: 128k

/usr/dist

end size: 1472khigh water size: 1472k

total for cache

initial size: 110960kend size: 12288k

high water size: 12304k

�� ���(���) 259

Page 276: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/ u s r / s b i n /

cachefswssize

cachefswssize ��� �����.

�� ��

cachefslog ��, cachefsstat �� � cfsadmin ��.

cal ��

��

��� �����.

��

cal [ [ Month ] Year ]

��

cal ��� ��� �� �� �� ��� �����.

Year ���� ��� ��� ��� ��� ����. cal ��� 1-9999��� ��� �� � ��

� 2��� �� �� ��� ���� ���. Month ���� ��� ��� �� �����.

1(1�)-12(12�)� �����. Year �� Month ���� ���� �� ��, cal ��� �� �� ��

���. ��� ���� ���� ��, cal ��� ���� Year ����� ���� ��� ���

�� ��� �����.

�: cal ��� �� ��� ��� ����.

cal ��� ��� ��� �� ��� �, �� �����. AIX 5L Venrsion 5.2 General Programming

Concepts: Writing and Debugging Programs� ″National Language Support Overview for Programming″

� LANG,LC_TIME, LC_ALL � TZ �� �� �� ��� ��� ���.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

1. 1994� 2�� ��� ���� ������� �����, �� �� ������.

cal 2 1994

2. 1994�� ��� ����� �� �� ������.

260 �� ���, � 1 �

Page 277: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cal 1994 | qprt

3. 84�� �� ��� �����, �� �� ������.

cal 84

��

/usr/bin/cal cal ��� ���.

�� ��

calendar ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� National Language

Support Overview for System Management.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ��.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� National

Language Support Overview for Programming.

calendar ��

��

�� ��� �� ��� �����.

��

calendar [ - ]

��

calendar ��� calendar ��� �� �� �� ��� �� ��� ��� �� �����. calendar

��� ���� ��� calendar ��� ��� ����� �� ���. �����, calendar ���

���� ����� �����.

���� calendar ��� �� ��, calendar ��� � ���, ��� � ����� ��� �

���� �� �� ��� �� �� �����. � ��� ���� ���� ����.

calendar ��� Month Day, Abbreviation Date � MonthNumeral/Date� �� � ��� �����.

� ��� ��� December 7, Dec. 7 � 12/7� ���. �� calendar ��� /(��)� ��� �

�� �� *(��)� �����. �� �, */7� �� 7�� � ��� ��� �����. calendar

��� 7/*, 7 December, 7/12, * 7 �� DEC. 7� �� ��� ���� ����.

��� ���� �� ���� �� calendar ��� �� ��, ���� �� calendar �� �� �

� � �� ��� � ��� ��� � ���.

�� ���(���) 261

Page 278: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

#include <FileName>

FileName �� �� �� ��� ���� �����. � ��� ��� calendar� ��� ����.

calendar ��� ���� �� calendar ��� �� FileName �� ��� ��� ���� � ��

� �����.

�: calendar ��� include�� � �� calendar ��� C ����� �� calendar ��

� �����. calendar ��� include�� ����� ���� /usr/ccs/lib/cpp ��� �

C ����� ���� ���.

�� ���� �� ��� calendar ��� � ��� �� �� ��� �� ���. �� �� ���

���� chmod ��� ������.

���

- ����� calendar ��� � �� ���� �� calendar ��� �����. calendar ��� �� ��� ��

� �� �� mail ��� ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

1. ���� calendar ��� �� ����.

*/25 - Prepare monthly reportAug. 12 - Fly to Denveraug 23 - board meetingMartha out of town - 8/23, 8/24, 8/258/24 - Mail car paymentsat aug/25 - beach tripAugust 27 - Meet with SimmonsAugust 28 - Meet with Wilson

calendar ��� ����� �� ������.

calendar

��� 8� 24� ����� calendar ��� �� �� ��� �����.

*/25 - Prepare monthly reportMartha out of town - 8/23, 8/24, 8/258/24 - Mail car paymentsat aug/25 - beach tripAugust 27 - Meet with Simmons

2. include�� � calendar ��� �� �� � ���.

262 �� ���, � 1 �

Page 279: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

#include </tmp/out>1/21 -Annual review1/21 -Weekly project meeting1/22 *Meet with Harrison in Dallas*Doctor’s appointment - 1/231/23 -Vinh’s wedding

calendar ��� ����� �� ������.

calendar

��� 1� 21� ����� calendar ��� �� �� ��� �����.

Jan.21 Goodbye party for DavidJan.22 Stockholder meeting in New York1/21 -Annual review1/21 -Weekly project meeting1/22 *Meet with Harrison in Dallas*

calendar ��� ��� � �� ��� /tmp/out ��� �����.

Jan.21 Goodbye party for DavidJan.22 Stockholder meeting in New York

��

$HOME/calendar calendar ��� �����./usr/lib/calprog �� ���� ���� ���./usr/ccs/lib/cpp C ����� ���./etc/passwd �� ��� �� ���.

�� ��

cal ��, chmod ��, mail �� Mail ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � ���� ��� ��� �� �

��� �� � ����� �� ��� ��� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ��.

cancel ��

cancel ��� AIX Print Subsystem cancel� System V Print Subsystem cancel� �� ��� ����

�.

AIX Print Subsystem cancel ��

��

� ��� �� ��� �����.

�� ���(���) 263

Page 280: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cancel { JobID ... | PrinterName }

��

cancel JobID QueueName

��

cancel ��� lp ���� �� � �� ��� �����.

�� ���� �� �� �� �����.

v JobID� �� �� ����� �� ��� �����.

v PrinterName� ��� ����� �� �� ��� �����. (�� ��� ��� �� ��, ���

�� �� �� ����.)

AIX 4.3.2 ����, qstatus� � �� �� � ��� ���� �� ����� �� ��� ���

� ��� ���. enq, qchk, lpstat � lpq � ��� -W ��� ���� � �� ��� � �

�� �� � ���.

������ 3�� �� � ��� �� ��, qchk -W� ��� � �� ���� � ��� �

�����. � � �� �� �� � ���.

�� �, qchk� � �� 123� � � �� � �� qchk-W� � �� 1123 � 2123� ���

��. � �� 2123� ����� �� cancel 123� ���� qdaemon�� �� ����� � �

�� ���� � ��(��� 1123�)� �����. -W ��� ����� �� ��� � ��, �

� � ��� �� � ���.

�� �� �� ��, JobID � �� QueueName �� �� ������ ����� �� �����

�� � ���.

�:

1. ���� �� ID� ���� �� �� ��� ����� �� ��� ��� ��� � ���

����� ���.

2. JobID� �� � ���.

3. cancel -?� ���� ����� �� �� �� ��� �����.

enq: (FATAL ERROR): 0781-048: Bad queue or device name: -?

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

264 �� ���, � 1 �

Page 281: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/var/spool/qdaemon/* ����� � ��� �� ��� ���./var/spool/lpd/qdir/* �� �� �� � �� ��� ���./usr/bin/cancel �� ��� ���.

�� ��

enable ��, enq ��, lp ��, lpstat ��, qcan ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � ��(qcan ��).

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ���� �� ��, �� � � ���

� ��.

System V Print Subsystem cancel ��

��

�� ��� �����.

��

cancel [request-IDs] [printers]

cancel -u login-IDs [printers]

��

cancel ��� ���� ��� lp ���� ��� �� ��� �� � ���. cancel� � �� ��

� request-ID� ��� ��� ��� �����. cancel� � �� ��� login-ID� ��� ���

��� �����.

�� �� ��

cancel ��� lp ���� �� �� �� �� ��� �����. � �� ���� �� �� �

� request-ID� �� �� �� � ���. �� �� �� �� ���� �� �� �� �� �

� ���� printers� �� �� �� � ���.

cancel� � �� ���� login-ID� ��� ���� �� �� �� �����. � ���� printers

��� ���� ���� �� ���� ��� �� � ���. � ���� printers ��� ��

�� � ��� ���� ����� �� �� �� �����. �� ��� ��� ��� ��

��.

��� �� ���� ���� ��� ID� ��� ��� �� � ���. ��� ����� ��

�� ��� ������.

cancel -u login-ID [printer]

�� ���(���) 265

Page 282: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� �� ��(� �) �� ��� ���� ��� �� ���� login-ID� ��� �� ��

��� �����.

� ��� � �� ���� �� �� ��� ��� ��� �� ���� ��� �� ��

� ���.

cancel -u “login-ID-list”

�� �� ���� �� �� �� �� ��� ��� ���� �� ��� �����. �

��� ��� � �� �� �� ��� login-ID-list� �� ���. login-ID-list ���� �

� �� �� �� �� ��� � � ���.

login-ID

�� ���� ���

system-name!login-ID

system-name ���� ���

system-name!all

system-name ���� �� ���

all!login-ID

�� ���� ���

all �� ���� �� ���

all!all �� ���� �� ���

����� ����� �� ���� �� �� �� � ���. , �� ������ �����

�� � �� �� � � ����� ������ ��� ��� �� �� � ���.

cancel -u “login-ID-list” printer-1 printer-2 printer-n

��� ���� �� �� �� �� ��� ��� ���� �� ��� �����. ���

�� �� ��� �� ���� ��� lpstat -p ��� ������.

� ���� �� �� �� ��� ���� ��� � ��� ���� ���.

�� ��

enable ��, enq ��, lp ��, lpstat ��, qcan ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � ��(qcan ��).

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ���� �� ��, �� � � ���

� ��.

266 �� ���, � 1 �

Page 283: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

canonls ��

��

LIPS III ��� Canon LASER SHOT� �� troff �� ��� �����.

��

canonls [ -egFile ] [ -emFile ] [ -FDirectory ] [ -quietly ] [ -ugFile ] [ -umFile ] [ File ...]

��

canonls ��� LIPS III ��� Canon LASER SHOT� �� troff �� ��� �����. � ���

��� ��� � ��� �����.

canonls ��� File ���� ��� �� ��� ��� �����. ��� ��� �� ��, canonls

��� �� ������ ����.

canonls ��� .out�� ��� �� ��� �� /usr/lib/font/devcanonls ������ �� ��� ��

���. � ��� ���� ��� canonls ��� � ��� ��� ����.

���

-egFile IBM ��� ��� ��� �� �� ��� �����. � ��, canonls ���

/usr/lib/X11/fonts/JP/IBM_JPN23G.snf ���� � �� ��� �����.-emFile IBM ��� ��� ��� �� Mincho ��� �����. � ��, canonls ���

/Musr/lib/X11/fonts/JP/IBM_JPN23G.snf ���� � Mincho ��� �����.-FDirectory �� ��� � � ��� ���� ��� �����. � ��, canonls ���

/usr/lib/font/devvcanonls ������ �� ��� ���.-quietly ����� �� �� �� ��� �����.-ugFile ��� �� ��� ��� �� �� ��� ����� . � �� , canonls ���

/usr/lib/X11/fonts/JP/IBM_JPN23G.snf ���� � �� ��� �����.-umFile ��� �� ��� ��� �� Mincho ��� �����. � ��, canonls ���

/usr/lib/X11/fonts/JP/IBM_JPN23G.snf ���� � �� ��� �����.

��

Canon LASER SHOT ��� �� reports ��� ����� �� �� ������.

troff reports |canonls | qprt -dp

canonls ��� � troff ��� ��� ��� �, ��� �� ����� �����.

��

/usr/lib/font/devcanonls/*.out �� ��� ���.

�� ���(���) 267

Page 284: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

troff ��.

troff �� �� ��.

captoinfo ��

��

termcap ��� terminfo � � ��� ����.

��

captoinfo [ -wNumber ] [ -v ] [ -V ] [ -1 ] [ FileName...]

��

captoinfo ��� termcap �� ��� terminfo �� ��� �� � ��� �����. termcap ��

��� �� �����. termcap � terminfo ��� �� �� � �� ���� �� ����. ���

�, captoinfo ��� �� � � �� ���� ���. �� nc, D3� �� 2��� termcap ��� �

� ���� termcap ��� �����.

� ��, captoinfo ��� TERM �� �� ���� ��� termcap ��� ����. ���

/etc/termcap ����� ��� ��� �� terminfo-style ��� �����. Filename ���� �

��� ��, ��� � �� ��� terminfo ���� ����.

captoinfo ��� ��� ��� ��� � ���.

���

-v �� �� ���.-V �� ��� �����.-wNumber terminfo ��� � �� �����. captoinfo ��� �� ��� � �� ��� �� terminfo ��

���� �����. terminfo �� �� �� � � ��� ����. -w ��� ���� ��,

Number ���� ���� ���. � ��, � �� 60���.

�:

1. ��� �� �� ��� � �� ��� ���� � ��, ��� � � �� ����

�.

2. ��� �� 0 �� �� ��, � �� 60�� �����.

-1 � � terminfo �� �����.

��

1. termcap �� Wyse50.tc� terminfo ��� �� � ����� ��� ����� �� �� �

�����.

268 �� ���, � 1 �

Page 285: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

captoinfo Wyse50.tc

2. termcap �� Wyse50.tc� terminfo ��� �� � ��� ����� �� �� ������.

captoinfo Wyse50.tc > Wyse50.ti

3. � terminfo �� ��� ��� � ��� ��� ��� �� �� ������.

captoinfo -1 -v Wyse50.tc

4. TERM �� �� ��� ibm3101 ��� �� terminfo ��� ���� �� �� ����

��.

captoinfo -w 40

captoinfo ��� /etc/termcap ��� ibm3101 ��� terminfo ���� �� � 40� ��� �

�� ����. ��� ��� �� ����.

ibm|ibm3101|3101|i3101|IBM 3101-10,am, xon,cols#80, lines#24,bel=^G, clear=\EK, cr=\r, cub1=\b,cud1=\n, cuf1=\EC,cup=\EY%p1%’\s’%+%c%p2%’\s’%+%c,cuu1=\EA, ed=\EJ, el=\EI,home=\EH, ht=\t, ind=\n,kcub1=\ED, kcud1=\EB, kcuf1=\EC,kcuu1=\EA,

�� ��

terminfo �� ��.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Curses

Overview for Programming.

capture ��

��

�� ��� ��� � � ���.

��

capture [ -a ] [ File ]

��

capture ��� ���� ��� ��� �� �� ��� ��� ���. File ���� ��� ��

� ��� ����� ��� ��� �� �� screen.out ��� ��� �����. -a ��� ��� �

�, capture ��� ��� ��� ��� �����.

�� ���(���) 269

Page 286: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ��� ����, capture ��� VT100 ��� �� ���� ��� ��� �� �� �

� ���� �� ����. SHELL �� �� �� �� �����. SHELL �� �� ����

�� ��, /usr/bin/bsh �� � ����. TERM �� �� TERM=vt100�� �����. capture �

�� ���� �� ���� �� �� �� ��� �� ��, ���� vt100� ��� � ���.

Ctrl-P �� �� �� ���� �� � � � �����. � � � ��� ��� SCREENDUMP

�� �� ��� �� � �� � �� 8��� ��� ��� � � ���. �� �, ���

�� ����.

SCREENDUMP=014

�� � � ��� Ctrl-L� ����. ^L �� ‘\014’� ���

SCREENDUMP �� �� ���� �� ��� �����.

�� �� �� ���� �����, Ctrl-D �� ����� exit� ������. ��� ����� You

are NO LONGER emulating a vt100 terminal ��� �����.

���

-a ��� �� �� ��� ���� �� �� screen.out ��� �� ��� �����.

��

/usr/bin/capture capture ��� ���.

�� ��

bsh ��, csh ��, ksh ��, script ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ����� ���

� ��� ���� ��� � �� �� ���� �� �����.

cat ��

��

��� �� �� �����.

��

cat [ - q ] [ -r ] [ - s ] [ - S ] [ - u ] [ - n [ - b ] ] [ - v [ - e ] [ - t ] ] [ - | File ... ]

270 �� ���, � 1 �

Page 287: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cat ��� File ���� ����� ��� ���� �� ���� ����. �� ��� ����

�� ��, cat ��� �� ������ ����. �� �� ��� �� -(��)� �� ��� �� �

� ���.

��: �� ��� ��� >(�&)� ��� �� �� �� ��� ��� �� ����� ����.

� �� ��, cat ��� ��� �� � � �� �� ��� ����� �� ��� � � ��

�� ���� ���. � ��� ��� AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ″Korn

��� ��� ���″� ������.

���

-b -n ��� �� ��� �� �� ��� � ��� �����.-e -v ��� �� ��� �� �� �� $(�� ��)� �����.-n 1�� ����� ��� �� �, � ��� �� � �� �����.-q cat ��� �� ��� � � �� ��, ��� ���� ����. � ��� -s ��� �����.-r �� �� �� �� ��� �� ��� �����. � ��� -S ��� �����.-s cat ��� �� ��� � � �� ��, ��� ���� ����. � ��� -q ��� �����.

�: ���� -s ��� �� -S ��� ��� ���� ������.-S �� �� �� �� ��� �� ��� �����. � ��� -r ��� �����.-t -v ��� �� ��� �� � ��� ^I� �����.-u ��� ���� ����. � �� ��� �����.-v ���� �� ��� �� ��� �����. �, �, �� � � �� ��� �����. ASCII �� ��(8�

000-037)� ^n�� �����. �� n� 8� � 100-137(@, A, B, C,..., X, Y, Z, [, \, ], ^ � _)� � ASCII

�����. DEL ��(8� 0177)� ^?� �����. ������ � ��� M-x� �����. �� x� �

7 ��� ��� ASCII �����.

-v ��� �� �� ��, � ��� �� � ���.

-e �� � �, �� �� $ ��� �����.

-t �� ^I� ���� �� ��� ^L� �����.

-v ��� ���� �� �� -e � -t ��� �����.- cat ��� �� �� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� �� ��� ���� ��� ���.>0 ��� ������.

��

��: �� ��� ��� >(�&)� ��� �� �� �� ��� ��� �� ����� ����.

1. ������� ��� ����� �� �� ������.

cat notes

�� ���(���) 271

Page 288: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� notes ��� ���� �����. ��� �� �� ���� � ��� �� �� � ��,

�� ��� ��� ��� ������. ��� � �� � ���� �����, pg ��� �����

2. � ��� ����� �� �� ������.

cat section1.1 section1.2 section1.3 >section1

� ��� section1.1� � �� �� section1.2 � section1.3� ��� section1 ��� ��

��.

3. �� ��� �� �� ��� ����� �� �� ������.

cat -q section2.1 section2.2 section2.3 >section2

section2.1� ��� � ��� section2.2� section2.3� �����. � ��� -q ��� ��

�� �� ��� ��� �, cat ��� �� �� �� ��� �����.

cat: cannot open section2.1

� ����� cat ��� �� �� -q ��� � ��� �� � ���.

4. � ��� �� � ��� ����� �� �� ������.

cat section1.4 >> section1

>>(� �&)� section1� �� section1.4� ��� �����. ��� �����, >� �����

�.

5. ��� �� ��� ����� �� �� ������.

cat >>notesGet milk on the way homeCtrl-D

��� notes �� �� Get milk on the way home� �����. cat ��� ���� ���,

���� ��� ����� �����. Ctrl-D �� �� ���� �� � ������.

6. ��� ��� ��� # �� ��� ����� �� �� ������.

cat section3.1 - section3.3 >section3

� ��� ��� ��� ��(�� ��� ��)� � section3.1 ��� section3.3 ��� �

�� �, section3�� ��� ��� ��� �����.

��

/usr/bin/cat cat ��� �����.

�� ��

cp ��, ksh ��, pcat ��, pg ��, pr ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��.

272 �� ���, � 1 �

Page 289: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��� � ���� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� Korn ��� ��� ���.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� � ���� ��� �.

catman ��

��

���� cat ��� ����.

��

catman [ -n | -p | -w ] [ -MPath ] [ Section ... ]

��

catman ��� nroff �� �� ���� ��� ���� �� ���� ��� ����. catman ��

� ��� ���� ��� � �� �� ��� ��� �� �� �� ��� � ���� �� �

���. �� ����� catman ��� whatis �� ������� �� ����.

���

-M Path Path �(� � �� /usr/share/man ����)� ��� ���� ��� � ��� ���� ����. Path

��� ���� ��� ���� ��(:)�� ����. �� � �� ����.

’/usr/local/man:/usr/share/man’

�� � MANPATH� ��� ��, �� � � ��� �����. nroff �� �� ��� �� �� ��

���� ���.

’.so manx/yyy.x’

catx ����� �� �� ��� ��� ���� �� �� ��� ����. ��� rdist ��� ��� �

�� �� ��� �� ��� ��� ���� ���� � � � ���.

�� ��� nroff �� ��� � ��� ���� ��� ��� � � �����.

�� �, (mach1-mach5�� ���) 5 ��� �� ����� ��� ��� nroff �� ��� �� mach3�

����. ��� mach3� cron �� ��� catman ��� ��� � ��� �� �� distfile ��� rdist

��� �����.

MANSLAVES = (mach1 mach2 mach4 mach5)MANUALS = (/usr/share/man/cat[1-8no] /usr/share/man/whatis)${MANUALS} -> ${MANSLAVES}install -R;notify root;

�� ���(���) 273

Page 290: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-n whatis �� ������ �� �����.-p ��� ���� ����� ��� �� ����� ��� ��� ��� ��� �����.-w /usr/share/man/cat?/*.* � /usr/share/man/man?/*.* ���� BSD �� ��� ���� �� �

/usr/share/man/info ���� �� ��� ��� �� �� ���� �� �� /usr/share/man/whatis ��

����� ����. MANPATH �� �� ��� ��, MANPATH� ���� ����� � ���

���� ����. ������� �� ����� �� cat?/*.* � man?/*.* ���� �����. HTML

����� ��� MANPATH� ���� ��� MANPATH �� �� ���� �� �� � �

/usr/share/man/whatis ������� ����.

��

��� �� 1, 2 � 3 �� ����, �� �� ������.

catman 123

��

/ u s r / l b i n /

getNAME

whatis ������� ��� ��� �����.

/usr/share/man � � ��� ���� �� �����./ u s r / s h a r e /

man/man?/*.*

��(nroff �� ��) ��� ��� �����.

/ u s r / s h a r e /

man/cat?/*.*

�� ���� ��� ���� ���.

/ u s r / s h a r e /

man/whatis

whatis �� ������� �����.

/ u s r / l b i n /

mkwhatis

whatis �� ������� ��� �� ����� ���.

�� ��

man ��, nroff �� � rdist ��.

cron �.

distfile ��.

cb ��

��

C �� �� �� ��� ���� �����.

��

cb [ -s ] [ -l Length | -j ] [ File ... ]

274 �� ���, � 1 �

Page 291: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cb ��� �� ���� �� ����� C� �� � �� � ��, �� ��� �� ���� ��

� �� ��� �����. �� �� �� ��, cb ��� �� ��� ���� ����. �

��� ���� �� � � �� ��� ���� � ���.

�� ��� ����, � ��� ����� � � � �� ��� ������.

���

-j � �� �����. -l ��� ��� �� �����.-l Length Length ���� �� ����.-s The C Programming Language(Englewood Cliffs, New Jersey: Prentice-Hall, Inc., 1978)� Kernighan �

Ritchie ���� �� �� �� ������.

��

�� � pgm.pretty.c� pgm.c ��� ���� �� �� ������.

cb pgm.c > pgm.pretty.c

��

/usr/ccs/bin/cb cb ��� �����./usr/bin/cb cb ��� �� �� ��.

�� ��

indent ��.

cd ��

��

�� ����� ����.

��

cd [directory]

��

cd [directorya directoryb]

��

cd ��� ���� �� � ����� �����. ���� ��� ����� ��(��) �� ���

��� ���.

�� ���(���) 275

Page 292: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� ���� ���� �� ��, cd ��� ��� ����(ksh � bsh ���� $HOME ��

csh ���� $home)� �� � ����� �����. ��� ���� ��� �� �� ����, ��

� ����� ���. �� �� ��� �� ����� ���� /(��), �� ����� ���� .

�� � ����� ���� ..�� �����. ���� ��� �� �� ��� �� �� cd ���

$CDPATH � �(�� $cdpath csh �)� ��� �� � ��� ��� ���� ��� ����

�. � �� $PATH � �(�� $path csh �)� ��� ��� ��� �� ����.

�: ��� /usr/bin/cd� ���� �� �� � ����� ��� ����. cd ���� ��� ��

���� ���.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

1. ���( ) ����� �� � ����� ���� �� �� ������.

cd

2. ��� ����� ����, �� �� ������.

cd /usr/include

� ��� �� ����� /usr/include� ����.

3. ���� ��� � � �� �����, �� �� ������.

cd sys

�� ����� /usr/include�� �� sys�� ������� � ��, /usr/include/sys� �

� ����� ���.

4. ���� ��� � �� � �����, �� �� ������.

cd ..

�� �� �� ..� �� ���� � � ����� ����.

5. � �� ���� ���� ���� �� � ����� directorya ���� directoryb ����

��� �, �� ��� �� ����� ����. �� �, �� � ����� �� �� ��,

/home/directorya/sub1/sub2/sub3/sub4

cd directorya directoryb

� ��� �� � ����� �� �� �����.

/home/directoryb/sub1/sub2/sub3/sub4

� ����� �� �� �����. ��� �� � ����� �� �� ��,

276 �� ���, � 1 �

Page 293: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

home/directorya/sub1/sub2/sub3/sub4

cd directorya directoryb/test

� ��� �� � ����� �� �� �����.

home/directoryb/test/sub1/sub2/sub3/sub4

� ����� �� �� �����. ����� �� � ����� �� �� ��,

/home/directoryb/test/sub1/sub2/sub3/sub4

cd directoryb/test directorya

� ��� �� � ����� �� �� �����.

home/directorya/sub1/sub2/sub3/sub4

� ����� �� �� �����.

������� �� ��� ����� ���.

�� ��

bsh ��, csh ��, ksh ��, pwd ��.

chdir ���.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ���� ����� �� ���� ���

� �� � �� �� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��� � ���� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ����� �, � �� � �� ��

�� ��� �� �� ��� �� �����.

cdc ��

��

SCCS ��� ��� ����.

��

cdc -rSID [ -m [ModificationRequestList ] ] [ -y [Comment ] ] File ...

��

cdc ��� SCCS(�� � �� ���) ��� �� ��� SCCS ��(SID �)� �� ��(MR)�

����. ���� ���� ��� �� ��, cdc ��� � ����� �� SCCS ��(, s. �

�� ���(���) 277

Page 294: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �� �� �� ��)� �� ��� ��� �����. File �� -(�� ��)� �� ��,

cdc ��� �� ��� �� �� SCCS �� ���� �����.

SID� ��� �� � ����� �� ���� SID� �� MR � ��� � � ���.

���

-m[ModificationRequestList] -r ��� ��� SID�� ����� � cdc ���� MR �

� ���� �����. ��� ���� v �� ��� ��� ��

�� � ��� �� � ���. �(null) MR ���� ��

�� ����.

�� ModificationRequestList �����, MR� ��, � �� ��

�� ��� ����. MR� ����, MR �� �� !(� �)�

������. ���� MR� �� MR ���� � ��, MR� �

� ��� ����. cdc ��� �� �� MR ���� ��� �

� � � ��� MR� �� � ���� ���� �� MR�

����.

-m ��� ���� ��, v �� ��� ��� ��, MR� ��

���� ����. �� ��� ������� ��, cdc ��� MR�

�� �����. ���� ��� �� � � �� ��

� ���� ���� ����. cdc ��� �� � ��� �� ��

�� ��� �� ��� �����. MR� �� �� ��� ���

�(-y �� ��).

v �� ��� �� �� ��, cdc ��� �� MR �� ���

���� ��� ���� �����. MR �� �� � ���

� 0� �� ���� ���� ��, cdc ��� ���� MR�

��� ����.-rSID cdc ��� �� �� MR� � ��� SCCS ID ��� ����

�.-y[Comment] -r ��� ��� ��� �� ��� �� �� ��� ����

�. cdc ��� �� ��� �������, �� �� � � � �

� ��� ����. �(null) Comment �� �� �� ����.

-y ��� ���� �� �� cdc ��� �� ���� EOF ���

�� ��� ��� ����. �� ��� ������� ��, cdc

��� ��� �� ���� �� �� �� ��� ��� �

��. �� ��� \(���)� ��, cdc ��� �� ��

� ���� �� ��� �� ����.

�: cdc ��� �� ��� �� �� ��� �� ��(, -�

�� ��� �� ��), ���� -y � -m ��� ���

� ���.

��

SCCS �� s.text.c� SID 1.3� �� ��� ″new comment″� ����, �� �� ������.

cdc -r1.3 -y"new comment" s.test.c

278 �� ���, � 1 �

Page 295: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/cdc SCCS cdc ��� �� ��� �����.

�� ��

admin ��, delta ��, get ��, prs ��, sccshelp ��.

sccsfile �� ��.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Source Code

Control System(SCCS) Overview.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� List of SCCS

Commands.

cdcheck ��

��

��� �� cdromd � ��� �����.

��

cdcheck { -a | -m | -u | -e } [ -q ] [ -h | -? ] DeviceName

��

cdcheck ��� ��� ��� �� �� �� ��� �� ��� ����� cdromd �� ���

��� �����.

��� ��� �� ��, cdcheck ��� ��(�) ��� ���� stdout� ��� �����. ���

�� ��, cdcheck ��� ��� ��(��) ��� ���� stderr� �� ��� �����.

��� cdromd �� �� ����� ����, cdcheck ��� -a ��� �� ������. cdromd

�� �� ��� ��� ��� �� ���� � ��, cdcheck -a ��� �� �� ��� stdout

� ��� � ��(�) ��� �����.

cd<x> is managed by cdromd.

�: -a ��� �� ��(�)� ��� ��� ���� ����� �� ���, �� ���

���� �� �� ���� ����.

��� ���� cdromd �� �� ��� �� ����, cdcheck ��� -m ��� �� �

�����. ���� ��� ��� ���� �� ��� � � � (# � �� �� �)� �

� � ���. cdcheck -m ��� cdromd �� �� ��� � ��� �����. � ���

��� ��, cdcheck -m ��� stdout� �� �� ��� � ��(�) ��� �����.

�� ���(���) 279

Page 296: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�: ��� ���� cdromd �� ��� � �� ��, cdcheck -m ��� ��� ��(��)

��� ���� stderr� �� ��� �����.

��� ����� cdumount ��� �� �� ��� �� ����, cdcheck ��� -u ���

�� ������. cdromd �� �� ��� ��� ��� �� �� � � ��, cdcheck -u ��

� �� �� ��� stdout� ��� � ��(�) ��� �����.

cd<x> is not mounted.

��� ��� ���� ��� ��� ���� cdcheck ��� -e ��� �� ������. cdromd

�� �� ��� ���� ��� �� ��, cdcheck -e ��� �� �� ��� stdout� �

�� � ��(�) ��� �����.

No media present in cd<x>.

� ����� cdcheck� �� ��, cdcheck ��� -q ��� ��� stdout � stderr� ���

���� ��� � ���. ��� ��� � ����� � �� �� ��� � �� stdout

� �� �� �� ���� cdcheck��� -m �����.

���

-a ��� cdromd� �� ����� ����.-e ��� ����� ��� �� ����.-h �� -? �� ��� ��� �����.-m ��� ��� ���� �� ����.-q �� �� �����. �� �� �� ��� ���� ����.

�: -q ��� -m ��� �� �� ��, stdout� �� �� �����.-u ��� ��� ���� � ��� ����.DeviceName ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� = �.

>0 �� = ��� �� ��.

��

1. cd0� ����� cdromd� ���� �� �� ������.

cdcheck -a cd0

2. �� ��� ���� �� cd1� ��� ���� �� cdromd� ���� �� �� �

�����.

cdcheck -m -q cd1

3. cd1� ��� ���� � ��� cdromd� ���� �� �� ������.

cdcheck -u cd1

4. cd0� ��� ���� ��� cdromd� ���� �� �� ������.

280 �� ���, � 1 �

Page 297: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cdcheck -e cd0

5. � ���� ��:

DEVICE=$1

if [ cdcheck -a -q "$DEVICE" ]; thenAUTO_MOUNT="ON"

elseAUTO_MOUNT="OFF"

fi

# Other initializations# ...

if [ "$AUTO_MOUNT" = "ON" ]; thenMOUNT_POINT=`cdcheck -m -q $DEVICE`

elseMOUNT_POINT="/tmp/MyProg_$$"mount -rv cdrfs $DEVICE $MOUNT_POINT

fiif [ $? -ne 0 ]; then

echo "mount $DEVICE failed"exit 1

fi

# Now extract data from $MOUNT_POINT...# ...

# End of processing. Umount the mediaif [ "$AUTO_MOUNT" = "ON" ]; then

cdeject -q $DEVICEelse

unmount $DEVICEfiif [ $? -ne 0 ]; then

echo "unmount $DEVICE failed"exit 1

fi

�� ��

cdeject ��, cdmount ��, cdromd �, cdumount ��, cdutil ��.

cdromd.conf �� ��.

cdeject ��

��

cdromd �� �� ���� CD ����� ��� �����.

��

cdeject [ -q ] [ -h | -? ] DeviceName

�� ���(���) 281

Page 298: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cdeject ��� ��� ��� cdromd �� ���� �� ��� ��� ��� �� ���� �

�� ����(�� ��) DeviceName� ���� ����� ��� �����.

���

-h �� -? �� ��� ��� �����.-q �� �� �����. �� �� �� ��� ���� ����.DeviceName ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� �.

>0 ��� ������.

��

1. cd0�� ��� ����� �� �� ������.

cdeject cd0

2. �� ��� ���� �� cd1�� ��� ����� �� �� ������.

cdeject -q cd1

�� ��

cdcheck ��, cdmount ��, cdromd �, cdumount ��, cdutil ��.

cdromd.conf �� ��.

cdmount ��

��

cdromd� �� ���� ���� �� ���� �� � �� ���.

��

cdmount [ -q ] [ -h | -? ] DeviceName

��

cdmount ��� ��� ��� cdromd �� ���� �� � ���� � �� ��, DeviceName

� ��� ��� �� ���� �����. � ��� ��� cdumount ��� �� ��� ��

��� �� ���� �� � ���.

282 �� ���, � 1 �

Page 299: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� DeviceName� �� /etc/cdromd.conf ��� � �� � �� � � �� �(cd0� �

� /cdrom/cd0, cd1� �� /cdrom/cd1 �...)� �����.

���� �� ��� �� � ��(mount ��� -o � -V ��)�

/etc/cdromd.conf ��� � � �� � ��(CD-ROM� �� ″-Vcdrfs -oro″ � DVD-ROM� ��

″-Vudfs -oro″ �� ″-Vcdrfs -oro″)� �����.

���

-h �� -? �� ��� ��� �����.-q �� �� �����. �� �� �� ��� ���� ����.DeviceName ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� �.

>0 ��� ������.

��

1. cd0�� �� ���� ����� �� �� ������.

cdmount cd0

2. �� ��� ���� �� cd1� �� ���� �����, �� �� ������.

cdmount -q cd1

�� ��

cdcheck ��, cdeject ��, cdromd �, cdumount ��, cdutil ��, mount ��.

cdromd.conf �� ��.

cdromd ��

��

��� �� CD-ROM �� DVD-ROM� ���� ����, cdutil, cdcheck cdmount, cdumount

� cdeject ��� �� �� ��� �����.

��

cdromd [ -d ]

�: SRC(��� �� ���) ��� ��� ����� cdromd �� �����. ��� �� �

cdromd �� �� ���� ���, /etc/inittab� � �� ������.

�� ���(���) 283

Page 300: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cdromd:23456789:wait:/usr/bin/startsrc -s cdromd

��

cdromd �� �� �� ��� � � �� �� /etc/cdromd.conf ���� ���. ��� �

�� ��� ��� ��, cdromd� ���� �� ��� �� CD-ROM � DVD-ROM ��� ���

� �� �� cd0� �� /cdrom/cd0, cd1� �� /cdrom/cd1���.

�� �� �� cdromd� ���� ��(� ���� �� ��)� ��� ����� �����

��� ��� � �� �����.

cdromd� �� cdutil, cdcheck, cdmount, cdumount �� cdeject ������ ��� ��� ��

��� ����� ����.

cdromd �� SRC(��� �� ���)� ��� ���� ���. ���� cdromd� ���� ��

���� ����.

cdromd �� �� ��� syslogd ��� �����.

cdromd �� � ��� � �� ���� ��� �� CD �� DVD ��� ����� ��

���, ����� �� ����� ����� � ���. ��� �� �� �� �� �� � ��

� �����. cdumount �� cdeject ��� ��� ��� �� ��� ��� �� �����

��� ��� �� � �� ����. �� cdcheck -m �� mount ��� ��� ��� ��

�� �� ������.

�� �� ���(SRC)� ��� cdromd � ��

cdromd �� SRC(��� �� ���)� �� ���� ��������. ������ ��� cdromd

���. cdromd �� �� �� SRC ��� �� �� � ���.

stopsrc

�����, ����� �� �� ����� �����.

startsrc

�����, ����� �� �� ����� �����.

refresh

����� �� ����� ��� �� �����.

traceson

�����, ����� �� �� ����� �� ��� �����.

tracesoff

�����, ����� �� �� ����� �� ��� �����.

lssrc �����, ����� �� �� ����� � � �����.

284 �� ���, � 1 �

Page 301: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� kill ��� ��� �� ��� cdromd �� �� � ���. cdromd� SIGHUP �

� ���� �� ″refresh -s cdromd″ ��� ����, cdromd� SIGTERM �� ���� ��

″stopsrc -s cdromd″ ��� �����.

���

-d syslogd �� ��� ��� �����.

�� ��

� �� �� �� ��� �����.

0 SRC �� SIGTERM �� �� cdromd �� ��� ���.

>0 ��� ������.

��

1. ����� cdromd �� �����, �� �� ������.

stopsrc -s cdromd

� ��� �� �����. -s ��� ��� ������ ����� �����.

2. cdromd �� �����, �� ������.

startsrc -s cdromd

� ��� �� �����. � ��� /etc/inittab ��� �� ����� �� � ���. -s

��� ��� ������ ����� �����.

3. cdromd ��� � � �� ���� �����, �� �� ������.

lssrc -s cdromd

� ��� �� ��, �� ��� ID � �� � (� �� ��)� �����.

4. cdromd �� ��� ��� �� � ����, �� �� ������.

refresh -s cdromd

� ��� cdromd �� ��� ��� �� ��� �����.

��

/etc/cdromd.conf ���� �� � ���� �� ���� �����.

�� ��

cdcheck ��, cdeject ��, cdmount ��, cdumount ��, cdutil ��, syslogd �.

cdromd.conf �� ��

�� ���(���) 285

Page 302: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cdumount ��

��

cdromd� �� ���� ���� ��� ��� �� ���� �� �����.

��

cdumount [ -q ] [ -h | -? ] DeviceName

��

cdumount ��� ��� ��� cdromd �� ����, �� DeviceName� ��� ���� �� �

��� �� ����� �����.

cdumount ��� ��� ���� ����.

���

-h �� -? �� ��� ��� �����.-q �� �� �����. �� �� �� ��� ���� ����.DeviceName ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� �.

>0 ��� ������.

��

1. cd0�� �� ���� �� �����, �� �� ������.

cdumount cd0

2. �� ��� ���� �� cd1� �� ���� �� �����, �� �� ������.

cdumount -q cd1

�� ��

cdcheck ��, cdeject ��, cdmount ��, cdromd �, cdutil ��.

cdromd.conf �� ��.

286 �� ���, � 1 �

Page 303: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cdutil ��

��

��� ��� �� ����� ����� cdromd �� �����.

��

cdutil { -l | -r | -s [ -k ] } [ -q ] [ -h | -? ] DeviceName

��

cdutil ��� ��� ��� cdromd ��� ����, �� DeviceName� ��� ��� ��� ��

��(-s ��) �� ��(-r ��)���.

���� �����(�� �, � ���� � � �) cdromd� �� ���� ��� �� ��

� � ���� ���.

�� ��(-r)� cdromd� ��� �� ������ �����.

���

-h �� -? �� ��� ��� �����.-k ��� �� ���� ��� ���� ����.-l ���� ���� ��� ����.-q �� �� �����. �� �� �� ��� ���� ����.-r cdromd� �� ���� ��� �����.-s cdromd� �� ���� ��� �� �����.DeviceName ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� �

>0 ��� ������.

��

1. cdromd� �� cd0� ��� �� ����� �� �� ������.

cdutil -s cd0

2. ��� ���� �� cdromd� �� cd0� ��� �� ����� �� �� ������.

cdutil -s -k cd0

3. �� ��� ���� �� cdromd� cd1� �� ��� ����� �� �� ������.

cdutil -r -q cd1

�� ���(���) 287

Page 304: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

cdcheck ��, cdeject ��, cdmount ��, cdromd �, cdumount ��.

cdromd.conf �� ��.

certadd ��

��

certadd� �� LDAP ���� ���� �����.

��

certadd [-c|-r] [-p privatekeystore] [-f file] -l label tag [username]

��

certadd ��� �� LDAP ���� ��� �� ���� �����.

-c(� ��) ��� �� ��, ��� �� � � �� �� � � ���� � ���� ��� �

����. ��� �� ��, �� ���� �� ���� �����. -r(�� ��) ��� �� ��,

��� �� � � �� �� � � ���� � ���� ��� ��� �����. � � ��� �

� ������. � � ��� ���� �� �� ��� ���, �� �� ��� �����.

-f ��� ���� �� ��, ���� STDIN�� ����. ���� DER �����. certadd ���

username ���� �� ���� �� ��, �� ��� �� � �� �� �� ���� ����

�.

-l ��� �� ���� ���. �� � ��� �� ����� � ���� � �� ����

�� �� ���� ���� ����� �����. � �� certcreate ��� ��� � � ���

��� �����.

-p ��� ���� �� ��, � �� file:/var/pki/security/keys/<username>���. ��� ����

�� ��, file:� ����. �� file: ��� URI�� �����. ��� � ���� ���� � �

� �� ���� ��� �� �� ��� �� ���� �����. ���� ���� certcreate �

��� �� ��, ��� �� � ��� � ���� ���. �� ����, ���� �����

�� ��, ���� ��� keyadd ��� ��� �� �� ��� ��� �� ��� � ����

�� � ���.

tag ���� ��� ��� ���� � �� ��� �� ���� ���� ���� � ����

��� ��� ��� �� ��� � ��� �� ������. tag ALL� ���� ���� � �

� ���� �� � �� certlist ��� �� �����, certadd ��� �� � ����. ��

���� auth_cert �� �� �� � � ���� ���� �� �����. �� ���� � ��

�� �� ��, ��� ���� ���� �� ���� � ��� � ���� �����. � �

288 �� ���, � 1 �

Page 305: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� � �� ��� ��� � ����� �� � ���. �����, �� ���� �� �� �

�� ��� ��� � ���� �� �� ���. ��� ��� �� ���� �� �, ���� �

� ����� �����.

��� �� � ��� crl ���� /usr/lib/security/ pki/policy.cfg �� ��� ���� ���. check

� � yes� � �� �� , �� �� CRL�� ���� . �� � � � �� �� �� � �

/usr/lib/security/pki/ca.cfg file� ��� �� � � ��� ��� �� � ���. � ����

���� CRL �� ��� �� � � crl��� ��� ���. ldap:, http: � file: �� ���

�����. � � ��� URI� �� ��, ���� � �� ���. ��� �� ���� �� �

��� ���� ���� ����.

���

-c �� ���� �����.

-r �� ���� �����.

-l label ���� � �� �� ���� ��� �� �� �����.

-p privatekeystore ��� � ���� �� �����.

-f file DER ���� ���� ��� ��� �����.

�� ��

0 ��� ���� ��� ���.

>0 ��� ������.

��

��� ��(set-UID root) �����.

�� � �� �� �� � ���� �� ���� �� ���� �� � ���. ��� �� �

��� �� �� ����� �� � ���.

� ��� �� �� ��� ��� �����.

CERT_Add <username>

��

cert.der� ��� ���� �� LDAP ���� ���� ��� Bob� ������, �� �� ���

���.

$ certadd -c -f cert.der -l signcert cert1 bob

��

$ certadd -c -l signcert cert1 bob < cert.der

�� ���(���) 289

Page 306: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� cert.der ���� DER ���� ���� ��� signcert� �� ���� cert1� ��

��� Bob� ���� LDAP� �����. � � ��� � ��� �� /var/pki/ security/keys/bob

���.

Bob� cert1 ���� � ���� �����, �� �� ������.

$ certadd -r -f newcert1.der -l newsigncert cert1 bob

��

/usr/lib/security/pki/acct.cfg

/usr/lib/security/pki/ca.cfg

/usr/lib/security/pki/policy.cfg

�� ��

certcreate, certdelete, certget, certlink, certlist, certrevoke, certverify, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

certcreate ��

��

certcreate� ��� ���� �� �� ���� �����.

��

certcreate [-S servicename] [-s startdate] [-e enddate] { -f file | [-b | -t] } [-p privatekeystore] -l label

[-a subject_alt_name] subject_distinguished_name [user-name]

��

certcreate ��� ��� � ��� � ������ ���� ���� ��� �� ��� �� ���

� ���� �����. �� ���� -S ���� �����. �� ��� ����

/usr/lib/security/pki/ca.cfg� ���� ���. -S �� �� ��� ���� �� ���� ��� �

���. /usr/lib/security/pki/ca.cfg ��� ��� �� ��� ��� ���� ��� �����. ca.cfg

��� � ��� ��� ��� �� CA� �����.

-s ��� ���� �� ��, �� �� ���� �����. -e ��� ���� �� ��, policy.cfg

��� �� �� �����. � �� �� ��, �� ���� 1�� �� � �� �����.

startdate � enddate �� chuser ��� ���� expires �� ��� �����. ��� MMDDhhmmyy

��� 10�� � ������. ( �� MM� �� ����, DD� �� ����, hh� �� ����, mm

� � ����, yy� 1939��� 2038���� ��� � ��� �����.) �� ��� �����.

290 �� ���, � 1 �

Page 307: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-f ��� �� ��, �� ���� DER ����� �� � � ��� 2� ���� �����. ��

� �� ��, DER ����� 2� �� �� 16� ���� stdout� �����. -b ��� �� ��

��� 2��� stdout� �����, ��� �� �� 16��� �����. -b �� -t� �� ���� �

� ��, 2� ��� �����.

���� ��� �� �� �� �� ������ ���� ��, ��� � ��� �� ��� ����

�. -p ��� �� ��, ��� �� ��� ��� � ���� �����. -p ��� ���� �� �

�, � ��

/var/pki/ security/keys/<username>���.

-l ��� ����� ���. �� � ���� � ��� �� �� ���� ���� � ���

�� ������.

subject_alt_name� �� ��� �� � ��(RFC2459� ��� rfc822Name�� �����)���. �

�� �����. ���� �� �� ��, ���� rfc822Name �� �� �� ��� �� ����.

Subject_distinguished_name� PKI ���� �� �� ��� ��� �����. ��� RFC2459� ��

X.501 �� ���� �����.

certcreate ��� ���� ��� ���� ��� � ���� ���� � �� ��� ���

���� ��� �����. ���� ��� � ���� ��� � ��, ����� ��� ����

��� � � �����. � ���� �� ��, � ���� ��� �� � ���� ��� ��

��� ���. �� ���� �� /dev/tty� � � �� ��, ��� �����.

���

-S servicename �� ��� ��� �����.

-s startdate ���� ���� �� �� �����.

-e enddate ���� ���� �� �� �� �����.

-f file ���� ���� ��� �����.

-p privatekeystore ��� � ���� �� �����.

-l label � ���� � ��� �� �� �����.

-a subject_alt_name ��� ���� �� �� ��� �����.

-b ��� ���� ��� 2��� �����.

-t ��� ���� ��� 16��� �����.

�� ��

0 ��� ���� ��� ���.

>0 ��� ������.

��

��� setuid �����.

�� ���(���) 291

Page 308: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� � �� �� �� � ���� �� ���� �� ���� � � ���. ��� �� �

��� � ��� ��� � ��� �� ����� �� �� ����� � � ���.

v ���� � � ��� � ���� �� � ���.

/var/pki/security/keys/<user-name>

v ���� �� ���� ��� � ��� � ���� �� � ���.

��� �� ���� � ���� �� ���� �� � ����.

� ��� �� �� ��� ��� �����.

CERT_Create <username>

��

$ certcreate -S local -s 0831112702 -e 1231235902 -f cert.der-p file:/home/bob/bob.priv -l signcert [email protected] ou=finance,cn=Bob%20James bob

� ����, ���� 2002� 8� 31� �� 11:27�� 2002� 12� 31� �� 11:59�� �����.

���� cert.der ��� ���� ��� �� bob.priv� signcert�� ���� �����.

� ��� �� �, � � � ��� � ���� �� � ��� �����.

$ certcreate -l signcert [email protected] ou=finance,cn=Bob James > cert.der

��

/usr/lib/security/pki/ca.cfg

/usr/lib/security/pki/policy.cfg

�� ��

certadd, certdelete, certget, certlink, certlist, certrevoke, certverify, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

certdelete ��

��

certdelete� ��� ��� ��� ��� ����� ���� ���� �� LDAP ����� ����

����.

��

certdelete tag [username]

292 �� ���, � 1 �

Page 309: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

certdelete ��� �� LDAP ����� ���� ��� ���� �����. �� ���� certadd

��� ��� �� �� � ���. certdelete ��� ���� ���� CA� LDAP ����

� ���� �� �� ���� � ������.

tag ���� ���� ���� ���� ����� ���� ���� �����. ���� auth_cert

�� �� �� � � ���� ���� ��� �����. ��(��) ��� �� �� �� ��

���� �� ��� �� �� � ��� ��� �� � ���.

username ��� �� ��� ��, certdelete ��� �� ���� ��� �����.

�� ��� ALL� ���� ���� ��� �� ���� �����. ��� ALL ��� ���� �

� �� � ��� ���� ����. ���� ���� ��� ���� ��� �� � � �"�

��. ## �� ��(LDAP ���� ��� � �� ��� ��)�� �� ��� ��, � certdelete

� ��� ���� ����. ���� ALL� � ��� certlist ��� ��� ��� �� ���

� �� �� �� ���.

�� ��

0 ����� ��� ���.

>0 ��� ������.

��

��� ��(set-UID root) �����.

�� � �� �� �� � ���� �� ���� �� ���� � � ���. ��� �� �

��� �� �� ����� � � ���.

� ��� �� �� ��� ��� �����.

CERT_Create <username>

��

1. � �� signcert�� Bob� ��� ���� �����, �� �� ������.

$ certdelete signcert bob

2. �� LDAP ���� � �� ���� ���� � �� ���� �����, �� �� ���

���.

$ certdelete ALL

��

/usr/lib/security/pki/acct.cfg

�� ���(���) 293

Page 310: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

certadd, certcreate, certget, certlink, certlist, certrevoke, certverify, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

certget ��

��

certget� �� LDAP ����� �� ���� �����.

��

certget {-f file | [-b | -t]}tag [username]

��

certget ��� �� LDAP ����� �� ���� �����. � ��� � �� � �� ���� ��

���. ���� ���� �� ���� �����, certlist ��� ��� � ��� ���� ���

� certget ��� ��� ���� �� �� � ���.

-f ��� �� ��, ���� ��� ��� 2� ���� �����. ��� �� ��, ���� 2� �

� 16��� stdout� �����. -b ��� ��� ��, 2� ��� �����(� �). -t ��� ���

��, 16� ��� �����. ���� DER ���� �����.

tag ���� ���� ��� � ��� ���� ����. username ���� �� AIX ���

� �����. username ��� �� ��� ��, certdelete ��� �� ���� ��� �����.

���

-f DER ���� ���� ���� ��� �����.

-b ��� ���� ��� 2��� �����.

-t ��� ���� ��� 16��� �����.

�� ��

0 ��� ��.

EINVAL ��� ��� ��� �� ��� ���� �� ��.

ENOENT a) ���� ���, b) �� ��� �� c) ��� �� ��.

EIO LDAP ��� �/�� � �� ��.

ENOCONNECT ���� �� � �� ��.

errno ��� ��� ��.

294 �� ���, � 1 �

Page 311: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

� ��� ��� ��� ���� �� ����� ���� � �� ���� �� � ���.

� ��� �� �� ��� ��� �����.

CERT_Get <username>

��

1. signcert� ��� cert.der� ��� Bob� ���� �����, �� �� ������.

$ certget -f cert.der signcert bob

2. Bob� ��� signcert� 16��� cert.der� �����, �� �� ������.

$ certget -t signcert > cert.der

��

/usr/lib/security/pki/acct.cfg

�� ��

certadd, certcreate, certdelete, certlink, certlist, certrevoke, certverify, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

certlink ��

��

certlink� �� ���� � ���� ��� ��� �����.

��

certlink [-c|-r] [-p privatekeystore] -l label -o option tag [username]

��

certlink��� �� ���� � ���� ��� ��� �����. certlink� certadd� ���� �

�� ��� ���� �� ���� �� ��� ����� � ���� �� � ���.

-c(� ��) ��� ��� ��, {username, tag} �� �� � � ���� � ���� ��� ���

��. ��� �� ��, �� ���� �� ���� �����. -r(�� ��) ��� ��� ��,

{username, tag} �� �� � � ���� � ���� ��� ��� �����. � � ��� ��

������. � � ��� ���� �� �� ��� ��� �� �� ��� �����.

-l ��� ���� ���. �� � ��� �� ����� � ���� � �� ���� ��

�� ���� ���� ����� �����.

�� ���(���) 295

Page 312: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-p ��� ���� �� ��, � �� /var/pki/security/keys/<username>���. keyadd ��� ���

�� �� ��� ��� �� ���� �� � ��� ���� �����. -l � -p ��� ���

�� ��� ��� certadd ��� ������. �� � ��� certlink ���� �����.

-o ��� ���� ��� URI���. �� LDAP URI� �����. ���� URI� RFC 2255� ��

� ���� ���� ���.

tag ���� username� ���� � �� ��� � ���� ���� ���� � ���� ��

� ��� ��� �� ��� � �� �� ������. ALL �� ���� ���� � �� �

��� �� � �� certlist ��� �� �����. �� ���� auth_cert �� �� �� �

� ���� ���� ��� �����.

�� ���� � ���� �� ��, ��� ���� ���� �� ���� � ��� � ���

� �����. � �� � �� ��� ��� � ����� �� � ���. ����� � ��

��� ��� ���� ���� ��� �� � ���� �� �� � ���.

��� ��� �� ���� �� �, ���� �� ���� �� � ���. ��� �� � ���

/usr/lib/security/ pki/policy.cfg �� ��� �����. ��� �� ���� ���� � ��� ��

� � ��� ��� �� � ���. ���� �� ��, /usr/lib/security/ pki/ca.cfg ���� �

�� � � ��� �����. ��� �� ���� �� � ��� ���� ���� ����.

���

-c �� ���� �����.

-r �� ���� �����.

-p ��� � ���� �� �����.

-l label ���� � �� �� ���� ��� �� �� �����.

-o option ���� ���� ���� URL� �����.

�� ��

0 ��� ��.

>0 ��� ������.

��

��� ��(set-UID root) �����.

�� � �� �� �� � ���� �� ���� � ���� �� � ���. ��� �� �

��� �� ��� ���� �� � ���.

��

�� ��� ���� ��� ���� ���� ��� Bob� ������, �� �� ������.

296 �� ���, � 1 �

Page 313: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

$ certlink -c -l signcert -p /home/bob/keystore.p12 -o ldap://cert.austin.ibm.com/o=ibm,ou=Finance,c=us?usercertificate??(cn=Bob James)?X-serial=1A:EF:54 cert1 bob

��

/usr/lib/security/pki/ca.cfg

/usr/lib/security/pki/policy.cfg

�� ��

certadd, certcreate, certdelete, certget, certlist, certrevoke, certverify, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

certlist ��

��

certlist� �� ��� ��� ��� �����.

��

certlist [-c] [-a attr [attr....] ]tag [username]

��

certlist ��� �� ��� ��� ��� �����. -c ��� ���� �� �� � �� ��

��� � ��� ���� � �� ���� � � ���� ����� ��� ������.

# name: attribute1: attribute2: ...User: value1: value2: ...

-f ��� ��� ��� �� ��� ���� ��� ��� �� ���� ������. ��=� �

� ��� �� �����.

user:attribute1=valueattribute2=valueattribute3=value

� ��� ��� �� ��� ��� ��, �� ��=� ��� �����.

-a ��� �� �� ��� ��� � ���� ����. � ��� ���� � �� ���

� �� � �� �� �� �����.

�� �� ����.

auth_user ���� ���.

distinguished_name ���� � ���� �� �� ��.

�� ���(���) 297

Page 314: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

alternate_name ���� � ���� �� �� ��.

validafter ���� ���� ���� �� �.

validuntil ���� ���� ���� �� �� �.

tag ���� ���� ���� ��.

issuer ��� ���� �� ��.

label ��� � ����� ���� ���� �.

keystore ���� ��� �� �� ��� � ��� �.

serialnumber ���� �� ��.

verified true� ���� ��� �� ���� � ����� �� �����.

���

-c ��� ���� � � �� �����.

-f ��� ���� �����.

-a attr �� �� ��� �� ����.

tag ���� ���� ��� � ���� ���� ����. ��� � ALL� ���� �� ����

����� �����.

username ���� �� AIX ���� ��� �����. username ��� �� ��� ��,

certdelete ��� �� ���� ��� �����.

�� ��

0 ��� ��.

EINVAL ��� ��� ��� �� ��� ���� �� ��.

ENOENT a) ���� ���, b) �� ��� �� c) ��� �� ��.

EACCES �� �� � �� ��(�� �, ���� ��� ������� �� read_access� �� ��).

EPERM ��� �� � ��� �� ��.

errno ��� ��� ��.

��

� ��� ���� �� ���� � �� ���� �� � ���. ��� ���� � ����

��� �� ���.

� ��� �� �� ��� ��� �����.

CERT_List <username>

298 �� ���, � 1 �

Page 315: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

$ certlist -f -a verified keystore label signcert bobbob:

verified=falsekeystore=file:/var/pki/security/keys/boblabel=signcert

$ certlist -c -a validafter validbefore issuer signcert bob#name:validafter:validuntil:issuerbob:1018091201:1018091301:c=US,o=xyz$ certlist -f ALL bobbob:

auth_cert=logincertdistinguished_name=c=US,o=xyz,[email protected]=0921154701validuntil=0921154801issuer=c=US,o=xyztag=logincertverified=truelabel=loginkeykeystore=file:/var/pki/security/keys/bobserialnumber=03

bob:auth_cert=logincertdistinguished_name=c=US,o=xyz,[email protected]=1018091201validuntil=1018091301issuer=c=US,o=xyztag=signcertverified=falselabel=signkeykeystore=file:/var/pki/security/keys/bobserialnumber=02

��

/usr/lib/security/pki/acct.cfg

/usr/lib/security/pki/policy.cfg

�� ��

certadd, certcreate, certdelete, certget, certlink, certrevoke, certverify, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

certrevoke ��

��

certrevoke� ��� ���� �����.

�� ���(���) 299

Page 316: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

certrevoke [-S servicename] { -f file -l label [-p privatekeystore] | tag [user-name]}

��

certrevoke ��� ��� ��� ��� �� ��� �� ��� ���� ����� �� � ��

�. -S ��� ���� �� � �� ���� �����. �� ��� ���� /usr/lib/security/pki/

ca.cfg� �����. -S �� �� ��� ���� �� ���� ��� ����.

/usr/lib/security/pki/ca.cfg ��� ��� �� ��� ��� �� �� ��� �����.

-f ��� � ��, ���� �� � � �� �� ��� ″-″�� stdin�� ����. ���� DER

����� ���. ���� -f ��� �� ��� �� �� ���� ��� �� �� �����

���. ���� ��� � ���� �� ���� �� ��, � � �� �����.

-f ��� ���� �� ��, ���� �� ���� � � � ���� ��� ��� ���� �

��. username ��� �� ��� ��, certrevoke ��� �� ���� ��� �����.

-l ��� �� ���� � �� �� ���� ��� �� ����� �����. ���� ����

�� �� ���� ��� �� ���� �� � �� �� certrevoke ��� �����. certrevoke

��� ��� ��� ��� ���� �� ����� ��� �����. �� ���� �� /dev/tty�

� � �� ��, ��� �����.

���

-S servicename �� ��� ��� �����.

-f file �� ���� ���� ��� �����.

-l label �� ���� ��� �� ��� �� �����.

-p privatekeystore ��� � ���� �� �����.

�� ��

0 ��� ���� ��� ���.

>0 ��� ������.

��

��� setuid �����.

�� � �� �� �� � ���� �� ���� ���� �� � ���. ��� �� �� �

�� ��� ���� �����. �� �� ��� /usr/lib/security/ pki/acct.cfg ��� ���� �

��.

��� �� ���� �� ���� ���� �� � ���. ���� �� ���� �� �� �

��� ��� �� ���� ���� ���.

300 �� ���, � 1 �

Page 317: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� �� �� ��� ��� �����.

CERT_Revoke <username>

��

Bob� ���� � signcert ���� �����, �� �� ������.

$ certrevoke signcert bob

�� cert.der� ���� �����, �� �� ������.

$ certrevoke cert.der

��

/usr/lib/security/pki/ca.cfg

�� ��

certadd, certcreate, certdelete, certget, certlink, certlist, certverify, keyadd, keydelete, keylist, keypasswd

� mksecpki ��.

certverify ��

��

certverify� ��� ���� �� ��� �� ���� ���� �����.

��

certverify [-S servicename] tag [user-name]}

��

certverify ��� ��� ���� �� ��� �� ���� ���� �����. ���� ��� ��

����� �� ���� ��� �, � ���� �� ��� ��� ���� �������. � ��

���� ��� �� ���� AIX� �� � � �� ���� ����.

-S ��� ���� �� � ���� ��� ��� � ������ �����. �� ��� ���

� /usr/lib/security/pki/ca.cfg� �����. -S �� �� �� ��, certverify� � � ���� �

� ���� �����. /usr/lib/security/pki/ca.cfg ��� ��� �� ��� ��� ���� ����

�. tag ���� ���� ��� � ��� ���� ����. username ���� �� AIX �

��� �����. certverify ��� �� ��� ���� ����� � ���� ��� �����

�����. �� ���� �� /dev/tty� � � �� ��, ��� �����.

�� ���(���) 301

Page 318: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-S servicename �� ��� ��� �����.

�� ��

0 ����� ��� ���.

>0 ��� ������.

��

��� setuid �����.

��� � ���� �� � � ���� � ��� �� ���� �� �� ��� ���� ���

� ���� ��� �� ���� ���� ���.

�� � �� �� �� � ���� �� ��� �� � ��, � ���� �� �� � ��

�� ��� � ��� ���� �� � ���.

��� �� ���� �� ���� ���� �� ��� �� ���� �� � ���.

� ��� �� �� ��� ��� �����.

CERT_Verify <username>

��

Bob� cert1 ���� �����, �� �� ������.

$ certverify cert1 bob

��

/usr/lib/security/pki/acct.cfg

�� ��

certadd, certcreate, certdelete, certget, certlink, certlist, certrevoke, keyadd, keydelete, keylist,

keypasswd � mksecpki ��.

cfgif ���

��

��� ��� ������� ��� �� �� �� ���� �����(IF) ����� ������

�����.

302 �� ���, � 1 �

Page 319: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cfgif [ -l InterfaceInstance ]

��

cfgif �� ��� ��� ������� ��� TCP/IP� �� �� �� IF ����� ����

�� �����. cfgif �� � ��� �����.

1. ��� ������� ����� ���� ��� �� �����. �� ���� ��, ����

���, � � � � �� ��� �� � ���.

2. ��� �� ��� IF ����� ��� ifconfig ��� �����. ifconfig ��� �� �

�� �� ��, ��� ����� ���� ����.

3. ����� ����� ��� ��� �� �� �� ���� ifconfig ��� �����.

4. ��� �������� ″AVAILABLE″� �� �� IF ����� � � �����. �� IF ���

�� ��� ��� �� ″DEFINED″� �����. cfgif �� �� � � �� ����� �

���, IF ����� �� ���� ���.

���

-l InterfaceInstance ����� ����� ����� �����. ���� ��� ��� ��, � �����

������ ������. � ��� ���� �� ��, ��� � � �� �����

����� ������.-2 16� �� �� �� ����� ����� IPL� � �� ���� ifconfig� ���� �

����. � ��� �� � �� ������ ���.

��

1. �� �� � IF ����� ������, � ��� ������. tr0� �� � IF ����� �

� ��� ���� ������. defif �� ��� �� � ���.

cfgif -l tr0

2. �� IF ����� ������ �� �� ��� ������.

cfgif

�� ��

chdev ��, defif �, definet �, ifconfig ��, mkdev ��.

cfginet �.

odm_run_method ���.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Object Data

Manager(ODM) Overview for Programmers.

�� ���(���) 303

Page 320: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Writing a Device

Method.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Network

Interfaces, TCP/IP Addressing.

cfginet ���

��

��� ���� � ��� IF ����� � � ������.

��

cfginet [ -2 ]

��

cfginet �� �� �� ��� ��� TCP/IP� ����(��� ����)� � � �����

�.

1. ��� �� ����.

2. �� �� �� � � � � ���� �� � � �� ��� ������.

3. ��� ����� � ��� AVAILABLE� �����.

4. ��� �� � �� ���� ���� hostname �� � route ��� �����. ��� �� � �

� �� ���� ��� �������� �����.

�: cfginet �� ��� ����� ����� ���� ���.

���

-2 IPL �� ���� � �� ��� �����. ��� ��� 16� �� �� ��� �����. � ��� � ���

�� � ������ ���.

��

���� ��� ����� ������, � ���� �� ������.

cfginet

�� ��

mkdev ��.

odm_run_method ���.

304 �� ���, � 1 �

Page 321: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Network

Interfaces.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Object Data

Manager(ODM) Overview for Programmers.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Writing a Device

Method.

cfgmgr ��

��

��� � ���� ��� ��� ���� ��� ��� �����, ���� �� ��

��� �����.

��

cfgmgr [ -f | -s | -p Phase ] [ -i Device ] [ -l Name ] [ -v ]

��

cfgmgr ��� ��� ����� ���� �� ����� ����� �����. ��� ��

� ��� � ���� ��� �� ����, �� ��� ������� � ���. ���

�� �� � �� ��� �����.

v �� �� �� ���� �� �� ��

v (� � ��)���� �� ��

v ���� �� ��

��� �� �, cfgmgr ��� ���� ���� � ��� �� ��� ������. ��� ��� �

�� ������. � �� ��� 1���� ��, ��� ���� ��� �� �� ���� ����

� 1��� �����. � �� �, cfgmgr ��� ����, -f ��� ��� 1���� �����.

cfgmgr ��� �� 1�� ��� �� ����� �� ��� ������. � �, 2�� ��

� ���� cfgmgr ��� -s ��� �� �����.

cfgmgr ��� ��� �� � � �� ��� �����.

v 1��

v 2��(� ��� �� � �� �� ��)

v 3��(��� ��� �� � �� �� ��)

����, cfgmgr ��� �� �� ��� ��� �� �� �(�� �, -f ��� �� 1��

�)� �����. ���, -l ��� ����, cfgmgr ��� �� � � �� � �� ���� ��

����.

�� ���(���) 305

Page 322: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cfgmgr ��� �� �� ��(�� �, -f,-s �� -p �� ��) ����, ��� 2�� �� ���

��. 3�� �� ���� ��� ��� -p ��� ���� ����.

��� �� ��� �� seq �� ��� �� ���� �����. � �� � ��� �� �

�� �� � �� ���� �� � ���� �����. seq �� ��� �� ���, �

� � ����. �� �, seq �� ��� � 1� � 10� �� � ��� �����. ��� ��

��, seq �� � 0� ″���″ ��� ���, seq �� 0�� �����. ����, seq

�� � 1� ( � ����)�� � �� ����.

��� ��� � �� ����� ���� �� ��� ���� cfgmgr ��� ���� �� ��

���� �� �� ��� ��� ���� �� �� ��� �����. �� ���� �� ��� ��

��, �� �� � �� ��� ����� �����. �� ��� ���� �� ��, ��� ��

� ��� �� � ���� �� �� �����. �� ��� ��� � �� ���� �� ��

��, ��� �� �� ��� ��� �� ���� ��� �� �����.

�� ����� �� ��� �� ��, ���� �� �� �� ��� �����.

cfgmgr: 0514-621 WARNING: The following device packages arerequired for device support but are not currentlyinstalled.

devices.pci.22100020devices.pci.14101800devices.pci.scsi:devices.pci.00100300:devices.pci.NCR.53C825

� ����, � ��� ����� �� �, cfgmgr ��� ����� �� ��� ��� ���

"���. � �� ��� ���� �� ��� ��� ��, � ����, cfgmr ��� � �� �

�� �� ��� ��� �����.

�� ��� ��� ��� ��� ��� �� ���� ��, ����� �� �� ���� ��� ��

��� �� ���� �����. ��� �� ������. ���, �� ����, �� � �� ��

� �� ��� �� �� ���� �����. � ��, �� ��� �� ��� ���� � �

��� ��� ����� ������. cfgmgr ��� -i ��� �� ��, � ���� ���

��.

i ��� �� cfgmgr ��� �� ��, ��� ����� �$� ��� ��� �� �� ��

��� ����� ���. -i ��� Device �� �� ��� � �� �����. �� ���

(�� �� ��� ���� ��) ��� ��, �� ��� ���� ����, �� �� ���

� ���.

�: ��� ������� ���� � cfgmgr ��� ���� � �� �� ���. ��

� ���� �� � ��� ���� ������� �� � ���.

���

-f cfgmgr ��� 1�� ��� �� ����� �����. � ��� �� � (��� �� �)� ���

� ����.

306 �� ���, � 1 �

Page 323: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-i Device �� ��� �� �����.-l Name �� � � ��� � � ��� �� ������ �����.-p Phase cfgmgr ��� ��� ��� ����� �����.-s cfgmgr ��� 2�� ��� �� ����� �����.-v ��� ��� �����. cfgmgr ��� �� ��� �� �� ��� �� ��� �����.

���� ��

phase � �� 1��, 2�� �� 3��(��� �� � �� �� ��)� ����� �����.seq � �� ��� �� � ��� �����.rule �� ���� �� �� ��� ���� ���(�� �� ��� �� � ��, � �� ���� �� ���

� ��� ��! ����� ��� ��� ��� ���.)

��

��� ��: ��� ��� �� � �� ����� � ��� �� ��(x) ��� ��� ��� ��

�.

�� ���:

��� ��

DEV_Configure �� �����.

��

� ��� �� ��� ���� ��� �� �����.

phase seq rule

1 10 /usr/lib/methods/defsys1 12 /usr/lib/methods/deflvm

2 10 /usr/lib/methods/defsys2 12 /usr/lib/methods/deflvm2 13 /etc/methods/startusb2 17 /etc/methods/cfgvlan -22 18 /usr/lib/methods/cfgrcnet2 19 /usr/lib/methods/ptynode2 20 /etc/methods/vconnode2 20 /usr/lib/methods/startlft2 22 /etc/methods/startrcm2 25 /usr/lib/methods/starttty2 27 /etc/methods/startsgio2 0 /usr/lib/methods/defaio2 0 /usr/lib/methods/def_posix_aio2 0 /usr/lib/perf/cfg_perfstat load2 0 /usr/lib/perf/load_blockset_ext

3 10 /usr/lib/methods/defsys3 12 /usr/lib/methods/deflvm

�� ���(���) 307

Page 324: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3 13 /etc/methods/startusb3 15 /usr/lib/methods/starttty3 19 /usr/lib/methods/ptynode3 20 /usr/lib/methods/startlft3 20 /etc/methods/vconnode3 22 /etc/methods/startrcm3 27 /etc/methods/startsgio

1. cfgmgr ��� -f ��� �� ��� �� � ��� phase = 1� �� ��� �� ��� �

�� �� ��� �����.

/usr/lib/methods/defsys/usr/lib/methods/deflvm

�: �� � �� -f ��� �� � ����.

2. cfgmgr ��� -s ��� �� ��� �� � ��� phase = 2� �� ��� �� ��� �

�� �� ��� �����.

/usr/lib/methods/defsys/usr/lib/methods/deflvm/etc/methods/cfgvlan -2/usr/lib/methods/cfgrcnet/usr/lib/methods/ptynode/etc/methods/vconnode/usr/lib/methods/startlft/etc/methods/startrcm/usr/lib/methods/starttty/etc/methods/startsgio/usr/lib/methods/defaio/usr/lib/methods/def_posix_aio/usr/lib/perf/cfg_perfstat load/usr/lib/perf/load_blockset_ext

3. cfgmgr ��� -p 3 ��� �� ��� �� � ��� phase = 3� �� ��� �� ���

� �� �� ��� �����.

/usr/lib/methods/defsys/usr/lib/methods/deflvm/etc/methods/startusb/usr/lib/methods/starttty/usr/lib/methods/ptynode/usr/lib/methods/startlft/etc/methods/vconnode/etc/methods/startrcm/etc/methods/startsgio

4. ���� cfgmgr ��� ���� � ��� -s ��� �� ��� ��� �� �����. ���

phase 2 �� �� �� ��� �����.

/usr/lib/methods/defsys/usr/lib/methods/deflvm/etc/methods/cfgvlan -2/usr/lib/methods/cfgrcnet/usr/lib/methods/ptynode/etc/methods/vconnode/usr/lib/methods/startlft/etc/methods/startrcm/usr/lib/methods/starttty

308 �� ���, � 1 �

Page 325: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/etc/methods/startsgio/usr/lib/methods/defaio/usr/lib/methods/def_posix_aio/usr/lib/perf/cfg_perfstat load/usr/lib/perf/load_blockset_ext

5. scsi0 ���� ��� ��� ��� ������ �� �� ������.

cfgmgr -l scsi0

6. (/usr/sys/inst.images ����� ��� ����� ��) ����� � �� ����� �

��� ����� �� �� ������.

cfgmgr -i /usr/sys/inst.images

��

/usr/sbin/cfgmgr �� ��� �����./usr/include/sys/cfgdb.h ��� � ���� ��� �� �� �� ��� ���.

�� ��

chdev ��, lsattr ��, lsdev ��, mkdev ��, rmdev ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Device Overview

for System Management��� �� ��, �, �� � ��� �� �����.

cfgqos ���

��

��� ��(QoS) ����� �, ��� � �����.

��

cfgqos

��

cfgqos �� � ��� ���� ���� TCP/IP ��� ��� �� QoS(��� ��)� �� �

����.

1. QoS �� � �

2. QoS ���� ���

3. TCP/IP ���� ��

�: cfgqos �� ��� ����, ����� ���� � �� ����.

�� ���(���) 309

Page 326: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

���� QoS� ������ � ��� ������.

cfgqos

�� ��

cfginet �� � ucfgqos �.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Quality of

Service(QoS).

cfgvsd ��

��

cfgvsd - �� �� ���� ������.

��

cfgvsd {-a | vsd_name ...}

��

� ��� ��� � ���� � �� �� ���� ���� � ��� � � ����. � �

�� �� �� ���� �� ���� �� ����.

���� ����� � ��� �� � ����. �� �� �� �� ��� ������ � ��� �

�� ��� ���� �� ���� �����. � ��� ���� �� ��� �� � ����.

SMIT(System Management Interface Tool)� ��� cfgvsd ��� �� � ���. SMIT� ��

��� �� ������.

smit vsd_mgmt

� � �� � ��� ���� ��� �����.

���

-a ��� �� �� ���� �� �����.

����

vsd_name ��� �� �� ���� �����.

��

� ��� ����� �� ��� �� ���.

310 �� ���, � 1 �

Page 327: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

���� ����� � ��� �� � ����. RVSD ������ � ��� ��� ��� ���

� �� ���� �����. � ��� ���� �� ��� �� � ����.

� ��� �� ���� ��� � � ��� ���� ���. �� ��� ��� � � ����

� startrpdomain ��� ������. ��� �� ���� �� �� ��� � � �����

startrpnode ��� ������. RSCT �� ��� � � ��� �� ��� ��� RSCT: ��

��� ������.

��

�� �� ��� vsd1vg1n1� ��� � �� ��� � � ��� �� ������.

cfgvsd vsd1vg1n1

��

/opt/rsct/vsd/bin/cfgvsd

�� ��

��: ctlvsd, lsvsd, preparevsd, resumevsd, startvsd, stopvsd, suspendvsd, ucfgvsd

cflow ��

��

�� ���� C � C++ �� �� ����.

��

cflow [ -d Number ] [ -I Directory ] [ -i _ ] [ -i p ] [ -i x ] [ -qOption ] [ -r ] [ -MA ]

[ -U Name ] [ -NdNumber ] [ -NlNumber ] [ -NnNumber ] [ -NtNumber ] [

-D Name[=Definition ] ] File ...

��

cflow ��� C, C++, yacc, lex, ��� � ���� ��� ��� � �� ���� ��� ��

��� �����.

�: cflow ��� ��� C++ ��� ����� IBM C Set++ Compiler/6000 ���� ����

���.

cflow ��� ��� � yacc ��, lex �� � cpp ��� .y, .l � .c ��� �� ��� ����

�. ��� ��� lint ��� � �� ��� yacc, lex � cpp �� �� .i ��� �����. cflow �

�� C Set++ ����� .C ��� �� ��� �����.

�� ���(���) 311

Page 328: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cflow ��� (.o ��� ��) �� ���� ��� ����, .s ��� �� ��� �����. �

����, cflow ��� �� ���� �� �� �� ��� �����.

�� �� ���� � ��� �� ��� �����.

v � ��� ��� �� ����� � � � ��� ���.

v ��, �� � � ��� ��.

��� �� ��� ���� �� ���� �� ��� ���� ����(-i_ � -i �� �� ��).

C � C++ �� ���� ��� ��� ��, ��� �� �� �(�� �, char *), ��� �� ��

�� ��, ��� ��� � ��� ������. ���� ���� ��� ��� .text �� .data� ��

��� ���� � ��� � �� ��� �����. cflow ��� C �� �� ���� ��� ��

��� ����.

cflow ��� � � ��� ���� ��� ��� �� ���� ��� � cflow � ��� �����.

���� �� ���� ��, cflow� < >(��)�� �����.

�� �� �� �� ��� ����� �� � ��, -e ��� ��� � �� � �� 8��

���� �� ��� cflow ���� pr ���� ��� �����.

�: cflow ���� �� � ��� lex � yacc ��� ����� ��� cflow ���� .l ��

.y ��� ���� ���.

���

-d Number �� �� �� ��� ��� 10��� �����. � ��, ��� � ����. �� ��� ���

�� ��� ���� ����.-i _ �� ��� ���� ��� ���. � ��� � ��(� -ix ��� ��� �� � ���)� ��

���.-i p ANSI �� ��� �� ������. � � ��� ���� �� ��� �� �� �� �� ��� ��

��.-i x �� � �� ��� ��� ���. � �� ���� �����.-r �� ���� �� ��� ���� ���� ��� ���� ����.-MA ANSI �� �����. cflow ��� � ��� ANSI C �� �����. ��� � � �� �

����.-NdNumber �� �� ��� Number ���� ����. Number� � � �� 2000���.-NlNumber �� �� �� Number ���� ����. Number� � � �� 8000���.-NnNumber �� �� ��� Number ���� ����. Number� � � �� 1500���.-NtNumber �� �� �� Number ���� ����. Number� � � �� 1000���.

�� cflow ��� pp ��(��� ����) �� �� ��� �����.

-D Name[=Definition] �� #define�� ��� ��! Name ���� �����. � � Definition� 1���.-qOption ����� -qOption� �����. �� �, -qmbcs� �� ���� ��� �� ��

�� ���� -qidirfirst� #includefile_name ����� ��� ��� �� ��� �

����.

312 �� ���, � 1 �

Page 329: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-I Directory cflow ����� #include ��� ���� ���� ���� ��� Directory� ����

�.-U Name Name ���� �� ��� �����. �� Name� �� ������ �� ���

��� �����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

1. ���� ��� ��� C ��� � � �� �� ����, �� �� ������.

cflow timeout.c kill.c error.c

2. ��� �� � ��� cflow �� ���� �� �� ������.

cflow -d1 resam.c pptp.c ptpt.c rrr.c whn.c

3. lex ���� cflow �� ���� �� �� ������.

cflow scan.l

4. yacc ���� cflow �� ���� �� �� ������.

cflow yaccfile.y

5. �� 2�� ��� C ��� ��� ���� ���� ��� ���� ����, �� �� �

�����.

cflow -r resam.c pptp.c ptpt.c rrr.c whn.c

��

/usr/ccs/bin/cflow cflow ��� ���./usr/ccs/lib/cflow1 cflow ��� �� �� ��./usr/ccs/lib/dag cflow ��� �� �� ��./usr/ccs/lib/flip cflow ��� �� �� ��./usr/ccs/lib/lpfx cflow ��� �� �� ��./usr/ccs/lib/nmf cflow ��� �� �� ��./var/tmp/cf.* cflow ���� �� �� ��.

�� ��

as ��, cpp ��, lex ��, lint ��, nm ��, pr ��, yacc ��.

�� ���(���) 313

Page 330: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cfsadmin ��

��

�� �� ���(CacheFS)� �� �� ���� ���� � ��� ��� �� �����.

��

cfsadmin -c cache_directory

cfsadmin -d [ all ] cache_directory

cfsadmin -l [ all ] cache_directory

cfsadmin -o [ param=n ] cache_directory

cfsadmin -s [ all ] cache_directory

cfsadmin -u cache_directory

��

cfsadmin ��� � ��� �����.

v �� �

v ��� �� ���� �

v �� �� � �� ���

v �� ���� �� �� �� �� ��� ��

��� ��� ��, -u ��� ���� �� ��, ���� �� ���� , ��� �� ��� �

���� ��� � ���. �� �� ���� �� ��� �� ����� �����. -s ��� �

�� ��, �� � � ���� ���.

���� CacheFS� �� ���� �� ��, �� ID� �����, ���� ���� � ��

�� � ���. -l ��� � �� ���� �� ID� ���� ���. �� �� ����

���� �� ID� ��� ���.

���

-c cache_directory cache_directory� ��� ���� �� ��� ����. � ����� �� �

��� ����� ���.-d ���� ��� � ��� ��� �� ID� �� ���� �����

cache_directory� ��� ��� � �� �� ���� �����. �� ���

� ���� �� �, ��� ��� ��� �� �� ��� ��� � ���.-l cache_directory �� ���� �� ���� ��� ��� ��� ��� �� ���� �����.

�� �� ���� �� ID�� �����. �� �� �� ��� � �� ��

���.

314 �� ���, � 1 �

Page 331: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-o [ param=n ]cache_directory �CacheFS �� ����� ��� ��� ��� � �� �����.-s cache_directory ��� �� ���(�� �� cachefs ��� �� ���)� �� ��� ���

��. �� �� ���� �� �� demandconst� ��� ���� -s ���

�����. ��� �� �� ���� ��� � �� ����� � ����

��� �����. �� ��� ��� ��� � �� � � �����. ��

� ����� ���, ��� ���� ����. � ��� ����� �� ���

� �� ��� ��� ����. � ��� CacheFS��� -s �� ��

� ���� ����.-u cache_directory ��� �� ����� �� ���� ����. ��� �� �� �� �

��. �� ������, ��� ���� �� �� � ���. ���� � ��

� �� ��, �� ����� �� �� ���� �� ����� ���. �

� �� �� ����� �� ���� �� �� �� �����.

�: -o ��� ���� �� -u ��� �� ���� � � ��� ����

�.

CacheFS �� ����

��� �� cacheFS �� ���� -o ��� �� � ���. �� ���� ��� ���

��.

maxblocks=n �� �� ���� � � �� ���� ���, CacheFS� �� � � ���� ��

��. CacheFS� �� �� ���� ����� ���� �� ��, maxblocks ���� ��

�� �� �� �� ��� �� � ����. � �� 90���.minblocks=n CacheFS� �� �� ��� �� �� �� � � �� �� ���� � � �� ��

�� ���, ���� �� ��. CacheFS� �� �� ���� ����� ���� �� �

�, minblocks ���� ����� �� �� �� ��� �� � ����. � �� 0��

�.threshblocks=n �� � � ��� minblocks� ��� �� ���� CacheFS� ��� �� � �� ���

�� �� ���� � �� � �. � �� 85���.maxfiles=n �� �� ���� � � �� ���� ���, CacheFS� �� � � ��� ��.

CacheFS�� �� �� ���� ����� ���� �� �� maxfiles ����� ���� �

� �� ��� �� � ����. � �� 90���.minfiles=n CacheFS� �� �� ��� ���� �� � � �� �� ���� � i � �� ��

�� ���, ��� ��. CacheFS�� �� �� ���� ����� ���� �� �� minfiles

����� ���� �� �� �� ��� �� � ����. � �� 0���.threshfiles=n �� � � ��� minfiles� ��� �� ���� CacheFS� i �� �� � �� ���

�� �� ���� � i �� ���. � �� 85���.maxfilesize==n CacheFS� ��� ���� � �� � � ��� � �� ��. � �� 30���.

�: ��� �� ��� inode � ���� � ����. �� ��� ������, ��� ���

� ���� �� �� � ���.

��

1. cache� �� � � �� ����� ���� �� �� ������.

cfsadmin -c /cache

2. �� �� ���� � �� � 60%� �� � � /cache1�� �� � � �� ����

� ����, CacheFS �� �� ���� ���� �� �� ��� �� 40%� �� �

�� ���(���) 315

Page 332: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ���� 50%� ����. ���� CacheFS� ��� ��� ��� �, �� �� ����

� �� 50%� � ��� ��, � �� �� �� � �� �����.

cfsadmin -c -o maxblocks=60,minblocks=40,threshblocks=50 /cache1

3. �� ���� /cache2� �� maxfilesize ���� 2MB � � ���� �� �� �����

�.

cfsadmin -u -o maxfilesize=2 /cache2

4. /cache3�� �� � � �� ����� ��� ���� �� ���� �� ��� ����� �

� �� ������.

cfsadmin -l /cache3

5. �� ID 23� �� �� �� ���� �� ���� /cache3�� ���� ��(�� ID� ��� �

�� ��)� ����� �� �� ������.

cfsadmin -d 23 /cache3

6. �� �� �� ���� /cache3 ������ ����� �� �� ������.

cfsadmin -d all /cache3

7. ��� �� �� �� demandconst� ��� �� �� ���� �����. demandconst �

� ���� ���� �� �� ��� ���� ����. �� �� ������.

cfsadmin

�� ��

mount �� � fsck_cachefs ��.

chargefee ��

��

�� ���� ��� ��� ��� �� ����� �����.

��

/usr/sbin/acct/chargefee User Number

��

chargefee ��� Number ���� ��� � � ��� �� �� User ���� ��� ���

� �� ��� ��� �� ��� �� �����. Number �� �� �� 10�� �� � ���.

chargefee ��� �� /var/adm/fee ��� �����. � ��� acctmerg ���� � ����

�� ���� �� ���� ����.

�: �� ��� � � ���� ��� ����� ���. �� � ���� ��� �

� � ��� ��� ���.

316 �� ���, � 1 �

Page 333: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

��� ��: � ��� adm ��� ����� ��(x) ��� ��� � ���.

��

�� ���� �� � 10 � ��� �� smith�� ������, �� �� ������.

/usr/sbin/acct/chargefee smith 10

/var/adm/fee ��� �� ��� acctmerg ��� � ���� ��� �� � �� ��

� �� ���� ����.

��

/usr/sbin/acct ���� ��� �� ��

/var/adm/fee ��� ��� ��� ��� ����.

�� ��

acctmerg ��.

�� ���, �� ��� � � ���� ��, ���� ��� �� ��� ��� AIX 5L Version 5.2

System Management Concepts: Operating System and Devices� Accounting Overview� ������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ���� � �� ��� �� �����.

chauthent ��

��

���� ���� �� �� ����.

��

chauthent [ -k5 ] [ -k4 ] [ -std ]

��

chauthent ��� ���� ��� ��� ��� ��� ���� �����. �� �� ��

� ��� ���� ��� �����. �� ��� ���� ���, rcmds� ���� ����. -std �

�� ��� ��, ��� ����� ��� ��� ��� �����.

�: �� �� �� ��� �� ����� ���. �� ��� �� � � ��� �� �

�� ���� ����.

���� ��� �� �� ��� ��� ���.

�� ���(���) 317

Page 334: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chauthent ��� ��� ��� ��� libauthm.a� set_auth_method �� �����.

chauthent ��� stderr� �� ��� �� set_auth_method� ��� �� -1� �����.

���

-k5 Kerberos 5 �� �� �����.-k4 Kerberos 4 �� �� �����.-std �� ��� �� �� �����.

��

1. �!���� �� �� �����.

chauthent -k5 -k4 -std

2. � ��� Kerberos 4� �� �� �����.

chauthent -k4 -k5 -std

3. �� �� �#��.

chauthent

�� ��

ftp ��, lsauthent ��, rcp ��, rlogin ��, rsh ��, telnet, tn �� tn3270 ��.

get_auth_method � set_auth_method �.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network Overview.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � Rcmds.

chC2admin ��

��

���� �� �� ��� ��� ����.

��

chC2admin [ -a address ] hostname

��

chC2admin ��� /etc/filesystems� ���� � �� NFS �� � � ��� �� ��� ��

C2 ��� �� ��� ��� �����.

�� ���� ��� ��� /etc/filesystems� ��� NFS �� ���� ���

/etc/security/admin_host� ��� �����.

318 �� ���, � 1 �

Page 335: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� �� � ��� hostname� ����� ���. hostname� �� � �� ��, ��� ��

���. -a ��� ��� ��� ��� IP ��� �� � ���. -a ��� ��� ��, /etc/hosts

��� hostname � address� �����.

���

-a address

����

hostname ��� ��� �����.

�� ��

0 �� ���� ���� �� ���.

1 � C2 ����� ��� ��� ���.

2 �� ���� ��� � ��� ������.

��

/usr/sbin/chC2admin chC2admin ��� �����.

�� ��

isC2host ��, lsC2admin ��, mkC2admin ��, rmC2admin ��.

chCCadmin ��

��

���� �� �� �� �� ��� �� ���� ��� ����.

��

chCCadmin [ -a address ] hostname

��

chCCadmin ��� /etc/filesystems� ���� � �� NFS �� � � ��� �� ��� ��

�� �� �� �� ��� �� ��� ��� �����.

�� ���� ��� ��� /etc/filesystems� ��� NFS �� ���� ���

/etc/security/admin_host� ��� �����.

�� ���(���) 319

Page 336: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� �� � ��� hostname� ����� ���. hostname� �� � �� ��, ��� ��

���. -a ��� ��� ��� ��� IP ��� �� �� ���. -a ��� ��� ��, /etc/hosts

��� hostname � address� �����.

���

-a address

����

hostname ��� ��� �����.

�� ��

0 �� ���� ���� �� ���.

1 ��� �� �� �� ����� ��� ��� ���.

2 �� ��� � � ��� ������.

��

/usr/sbin/chCCadmin chCCadmin ��� �����.

�� ��

isCChost ��, lsCCadmin ��, mkCCadmin ��, rmCCadmin ��.

chclass ��

��

��� �� ��� � � �� �� ��� ����.

��

chclass -a Attribute=Value {[-a Attribute=Value]...} [ -c | -m | -b | -C | -B | -P | -T | -L | -A

KeyWord=Value] [ -d Config_Dir] [ -S SuperClass] Name

��

chclass ��� Name ���� ��� ��� �� ����. ��� � ���� �� ��

�. �� ���� Attribute=Value ���� � �� � �� �� ������. �� �� ��

�� ���� min, softmax , hardmax �� shares� �� �� �� CPU� �� -c, ��� ��

-m � ��� ��� ���� �� -b ��� ������. ��� ��( �� ���� ���

� ��)� ����� ���� hardmax� � , -C(totalCPU), -B(totalDiskIO) �� -A(totalConnectTime)

320 �� ���, � 1 �

Page 337: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� ��� ��� ������. �� ��(�� ��� ���� ��)� �����, hardmax

� �� �� ��

-P(totalProcesses), -T(totalThreads) �� -L(totalLogins) � �� ��� ��� ������. �� �

�� ������, Value� ″-″� ������. ���, �� �� ��� ��� WLM(wlmcntrl

�� ��) �� �� � � �� ����� �� ���.

�: �� ���� ����� �� � � ���. ��� ID �� �� ID� �����

adminuser � admingroup �� ��� ��� �� �� �� ��� ���� �� �� ���

� � ���� � ����� ���� �� � � ���.

�� chclass� �� WLM � ��� �� �� ���, ��� wlmcntrl ��� ��� WLM �

�� ��� �� ��(� ��)�� �����.

� ���� -d ��� �� ��� ��(Config_dir)�� �� �� ���� ��� �� ��

� ���� � ��� ��� ���� ���� ������. WLM� ��� � �� �����

���� ��� �� ���� �����.

�: � ��� � �� ��� ��� �� � ����. (-d ��� ��� ���� ����.) ��

���� ��� ��, -d ��� ��� ��� ���� �� ���� ���� ���.

�� �� �� � � ���.

��� ��

tier tier �� �����. ��� � �� �� ��� �� �� �� � � �� ���� ��

����. � �� � �� �� ��� � �����. tier �� 0� 9 ��� �����. �

�� 0���.inheritance inheritance� �� ��� �� � ��� � ���� � � �� �� � ��� ����

exec ��� ��� �� ���. inheritance� ���� ��� �� �� �� ����� �

����. ���� �� �� � �� ������.localshm � ��� ����� ���� �� ���� �� ��� ��� ���� � ��

� �� ���� �� ��� ����� �� �����. ��� �� � �� �����

�. �� ���� �� �� � �� ������.authuser � ��� ���� �� � � ���� ��� ��� �����. �� ���� �� �

� � �� �����.authgroup � ��� ���� �� � � ��� ��� �� ��� �����. � � �� ����.rset ��� ���� ��� ��� � �� ��� ��� �����. � �� ��� ����

�� ��� �� ��� ��� ���.adminuser � ����� ����� �� � � ���� ��� ��� �����. � �� ���

�� ���� �����. �� ���� �� �� � �� �(null) ����� � �� ��� �

���� �� � ���.

�: �� �� ���(�� �� �� ��� ���)� �� � ����� �� adminuser �

� admingroup� �� ��, ���� �� �� ���� ���� �� WLM �� ��

�� ���. ��� �� ��, � ���� ���� �� �� ��� �� ���� ��

� ���.

�� ���(���) 321

Page 338: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

admingroup � ����� ����� �� � � ��� ��� �� ��� �����. � �� ��

��� ���� �����. �� ���� �� �� � �� �(null) ��� , �� ����

� ����� �� � ����.

�: �� �� ���(�� �� �� ��� ���)� �� � ����� �� adminuser �

� admingroup� �� ��, ���� �� �� ���� ���� �� WLM �� ��

�� ���. ��� �� ��, � ���� ���� �� �� ��� �� ���� ��

� ���.

CPU, ��� �� ��� ��� ��� �� ��� �� � ��

min �� � �� ���� �� ��� � ���� �����. � ���� ����� �� �� ��� ���

� �����. ��� �� � � 0 - 100���(� �� 0).shares ��� � �� �� �� ��� � ��� �����. � ���� ����� �� �� ��� shares

� �����. ��� �� ��� �� � ��� �#� ���� �����. ��� �� �� ���

� ��� ���, ��� ���� �����. ��� 1� 65535 ��� �� ����. ��� ���(‘-’)�� �

�� �� ��� �� ��� � ��� ��� WLM� �� � � � ��(�� ��� ��)�� �

��� ��� �����. ��� �� ��� ���� �� �� ��� � ����.softmax ��� � �� �� �� ��� � ���� �����. ��� �� � � 1 - 100���(� �� 100).

��� �� ��� �� �� ��� ��� ��� �� ��� �� � ���.hardmax ��� �� ���� �� �� ��� � ���� �����. ��� �� � � 1 - 100���(� �� 100).

��� �� � � �� 100 ��� �� ���� � ��� �� ���� � �� � ���, ��

�� ���� ���� �� � �� � � ���.max ��� �� ���� �� �� ��� � ���� �����. ��� �� � � 1 - 100���(� �� 100).

��� �� � � �� 100 ��� �� ���� � ��� �� ���� � �� � ���, ��

�� ���� ���� �� � �� � � ���.

�: ��� � � �� lsclass -D� ��� �� � ��, � � ���� �� � ��

classes, shares �� limits� ���� ��� � � ���. ����� AIX 5L Version 5.2

Files Reference� ��� �� ��� ������.

��� ��

description �� �� ��� ��� �� ASCII ��, �� ��(:) � ��(,)� � � ���.

���

-A hardmax=Value ��� � ��� ��� � � � �� � � � � � �����. �� � � �� �

�� ��� �����. (s� �, m� , h� �, d� � ��� w� ���, � �� ����.) ����

� �� � ��� ����, WLM� �� ��� �� ��� �����. ��� �� �, ����

��� �� �� ����� SIGTERM �� ����, � �� � � ��� ����(SIGKILL).-b KeyWord=Value ��� ��� ���� �� �� �� �� ����. ��� KeyWord� min, softmax, hardmax ��

shares���.-B hardmax=Value ��� � ���� ���� ��� ���� �� �����. �� � � �� � �� �

�� �����. (KB� �� ��, MB� � ��, TB� �� ��, PB� �� �� � EB� $�

����, � �� KB���.) ���� � �� ��� ���� ����, ���� SIGTERM �

� ����, �� � � ����(SIGKILL).-c KeyWord=Value CPU� �� �� �� �� ����. ��� KeyWord� min, softmax, hardmax �� shares���.

322 �� ���, � 1 �

Page 339: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-C hardmax=Value ��� � ���� ���� CPU � � �����. �� � � �� � �� ��� ��

���. (s� �, m� , h� �, d� � ��� w� ���, � �� ����.) ���� � �� �

� ����, ���� SIGTERM �� ����, �� � � ����(SIGKILL).-d Config_Dir /etc/wlm/Config_Dir ����� � ��� �� ����� �����. � ��� ���, /etc/wlm/current

� ��� ����� � �� ��� ��� �����. � ���� ��� ��(-d ″″)�� ��� �

� ��� ��� �� ���� �� �� ��� ��� ���� ����.-L hardmax=Value ���� ��� �� ��� ��� ��� �� �����. ���� ���� ��� ��� �� �

�� �� ��� ��� ��� ��� ��, ��� ��� �����.-m KeyWord=Value ��� �� �� �� �� ����. ��� KeyWord� min, softmax, hardmax �� shares���.-P hardmax=Value ���� ���� ���� � �� �����. ��� ��� � ���� � �� ����

� ��� � ��, ��� �����.-S SuperClass ���� �� � � ����� ��� �����. ���� Super ����� Sub ����

� ����� ���� ��� � �����.

1. -S� ���� �� ����� �� ��� Super.Sub� ������.

2. -S ��� ��� ���� ��� ���� ����� ��� ��� ������.

chclass options -S Super Sub

-T hardmax=Value ���� ���� � � � �� �����. ��� ��� � � � � �� ���� �

��� � ��, ��� �����. � ��� ��� ��� �� ��� ���� ��

���. ��� � ��� �� ��� ��� ��� �� ��, ��� ��� �

��� �����.

��

classes ��� �� � ��� ���.limits ��� �� ��� �� ��� ���.shares ��� �� �� �� ���.

�� ��

wlmcntrl ��, lsclass ��, mkclass �� � rmclass ��.

chcod ��

��

Capacity Upgrade on Demand� �����.

��

chcod [ -r ResourceType -n NbrResources ] [-c CustomerInfo ] [ -m MailAddr ] [-h ]

��

chcod ��� Capacity Upgrade on Demand �� CUoD� �����. CUoD� ���� �� ���

� ResourceTypes� �� �� � � ��� � �� ��� � ���. ���� �� ���� ��

��� � ResourceType� �� CUoD� �� �� �� ��� �� ���� � ���. � ��

�� ���(���) 323

Page 340: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ResourceType� �� � ���. ResourceTypes �� �� � ��� �� ��� �����.

�� CUoD ���� CUoD�� ���� �� ResourceType � ��, ���� ResourceType � ���

� � �� � ��� �����. ��� �� � NbrResources� ��� �����.

��� �� �� � ���� �� � ��� ��� ����. �� � ��� ResourceType�

��� ��� �� ��� ����� ����. CustomerInfo ��� �� ��� �����. MailAddr

� �� � ��� ��� �� ��� MailAddr� ���� �� �� ���� �����. CustomerInfo

��� �� ��� �����. CustomerInfo � MailAddr ��� ��� �� �� �� � ��

�� �� ��� �� � ���.

��� ���� �� ��, chcod� CustomerInfo, MailAddr, ���� �� �� � �� ��� ��

�� CUoD�� ���� �� ResourceType� �� NbrResources� �� �� �����.

���

-c CustomerInfo �� ��� �� �� ���� �����. �� � ���

� ��� �� � ��� ���� �����. CustomerInfo

� 255�� �� � ����. ���� ��� �� � ���

�. �� CustomerInfo� ���� �� chcod� -c ��� �

� ��� ��� � ��� � ��� ��� .

CustomerInfo� �� ��� .(���), ,(��), -(���), ((�

� ��), �� )(�� ��)� � � ���.-h ��� ��� �����.-m MailAddr �� �� �� �� � ��� �����. MailAddr� 255

�� �� � ����. ″″(� ���)� ��� MailAddr� �

��� �� �� ��� CUoD�� ���� ��� �����

�. � �� � ��� ��� ����� � ����� ��

�� ����� ���.-n NbrResources ����� ��� � ResourceTypes� �� �����. �

��� 0 ����� ���. � �� 0�� ��� ResourceType

� �� CUoD� �� �������. -n� ��� �� -r� �

��� ���.-r ResourceType ResourceType� �����. �� �, ����� �� ����

��� ��� ���� �� proc� �����. ����

� ResourceType� �� CUoD� ���� ���. -r� ���

�� -n� ���� ���.

��

1. ���� �� CUoD� ������ �� �� ������.

chcod -r proc -n 10 -m"[email protected]"-c"Jane_Doe-Customer_Number_999999-(111)111-1111"

2. CustomerInfo� ���� �� �� ������.

chcod -c"Jane_Doe-Customer_Number_999999-(222)222-2222"

3. ��� �� � ��� ����� �� �� ������.

chcod -m""

324 �� ���, � 1 �

Page 341: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

4. CUoD� ���� ��� �� �� ��� �� �� ������.

chcod

�� �� ��� �����.

Current CustomerInfo = Jane_Doe-Customer_Number_999999-(222)222-2222Current MailAddr = [email protected] model and serial number = IBM,7043-150 000974934C00Current number of authorized processors = 10 of 12 installed on system

chcomg ��

��

�� ��� ��� ��� � ��� ����.

��

� ��� �� ���� �� �� ������.

chcomg [-s sensitivity] [-p period] [-t priority] [-b] [-r] [-x br] [-e NIM_path] [-m NIM_parameters]

[-h] [-TV] communication_group

����� ��� � ��� � � ���� ����, �� �� ������.

chcomg [−i n:network_interface1[:node1] [,network_interface2[:node2]...] │ −S

n:″network_interface_selection_string″] [−h] [−TV] communication_group

��

chcomg ��� �� � �� ��� ��� �� ��� communication_group ���� ���� �

��� ����. � ��� � �� ���� ���� ���� ��� ���� ���� ��

� �� �� ����� �����. � ��� �� ���� ����� ���� ��� ����

�.

chcomg ��� � ��� ��� �� ��� � �� ��� � � ��� ���� ���. chcomg

���� �� ��� �� � � ��, ��� ��� ��� ���.

-e � -m ��� ���� ����� ��(NIM) �� � ���� ����� �����. NIM ��

� � ���� ���� ��� ��� ���� NIM� �� �����. ���� NIM ���� NIM

�� �����.

�� chcomg ��� ����� ��� � ��� ����� �� � ���. -i ��� ���

�� ����� �� ��� � ��� ������. ����� ��� �� ��� � �� �� �

���. �� -S �� � � ���� ��� ����� ��� �� � ���. ��� ���

�� �� ��� ���� ���� �� �� �����. � ��� ���� ��, � ��� ��

�� �� ����� ��� ����� ���.

�� ���(���) 325

Page 342: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� � � ��� ���� � ���� �� ��� � ��� ���.

���

-s sensitivity

���� ���� �����. �� ��� ���� �� ����� ����. ���� 2 ��

� �����.

-p period

� � �����. �� ���� ��� �� ����. � � 1� ��� 1�� � �����.

-t priority

�� � �����. �� � � � ��� �� � � ��� ���� �����. �

��� ��� ��� ���� �����. ��� �� �� �� � ����. �� �� �

� � 1���.

-b �� ��� �� ��, ������ ����� �� �����. -x b� �� � -b �

�� �� � ����.

-r �� ��� �� ��, �� ���� ����� �� �����. -x r� �� � -r ��

� �� � ����.

-x ���� ���� �� ��� ������. �� ��� ������ ���� ���� �

� �� ��� ��� �� � ��� �� �����. �� ���� � ���.

b �� ��� ������ ������ ���� ��� �� �����.

r �� ��� ������ �� ���� ���� ��� �� �����.

� � ��� ��� ������ �� �� ��� ����� ������(-x br).

-i n:network_interface1[:node1] [,network_interface2[:node2]...

���� ����� �� �� � ���� ��� �� � ���� ��� ���� ���

�� ��� � � ��� �����.

-i� ��� ��, -S� �� � ����.

-S n: ″network_interface_selection_string″

���� ����� � ���� ��� ������ � � ��� �����.

-S� ��� ��, -i� �� � ����.

-e NIM_path

���� ����� ��(NIM) �� ��� �����. � ���� � ��� � ��� ��

� ���� NIM� �� �� ��� �����.

-m NIM_parameters

NIM �� ���� �����. ��� �� � NIM�� ���� ������.

326 �� ���, � 1 �

Page 343: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-h �� ��� ��� ���� �����.

-T �� ��� ��� �� ��� �����. ���� ��� �� �����.

-V �� ��� ��� ��� ��� �����.

����

communication_group

�� ���� � �� � ��� ��� �����.

��

chcomg ��� ���� IBM.CommunicationGroup �� ��� �� �� ��� �����.

IBM.NetworkInterface �� ��� �� �� ��� ���� ����� ��� �� � ��� �

���� �����. � ��, �� ��� � �� �� ��� ��� �� ���� �� ���

�� ��� �� �� � �� ���� ��� ���.

�� ��

0 ��� ���� ��� ���.

1 RMC� ��� ������.

2 ��� ����� ����� ��� ������.

3 ���� ��� ��� �"���.

4 ���� ��� ���� �"���.

5 ��� ��� �� ��� ��� ������.

�� ��

CT_CONTACT

RMC(Resource Monitoring and Control) �� ���� ��� ���� ���� �����.

CT_CONTACT� ��� �� �� IP ��� ��� ��, ��� ��� ���� RMC ��

�����. CT_CONTACT� ���� �� ��, ��� ��� ���� �� ���� RMC �

� �����. RMC � ��� �� � �� ��� � ���� �� �� � ��� ��

���.

��

� ��� � ��� ��� �� ��� ���� ��� � � ��� ����� ���.

�� ��

-f ″-″ ��� ��� ��, � ��� �� ���� �� ��� � ��� ����.

�� ���(���) 327

Page 344: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

-h ��� ��� ��, � ��� ���� �� ��� �����. �� �� ��� �� ��� ��

���.

�� ��

�� �� ��� �� ��� �����.

��

� ����, nodeA �� ApplDomain �� ��� �� ���� ��� � ���.

1. ApplDomain� �� ComGrp1 � ��� ��� 1 � � 3�� ���� � ��� nodeA�

� ������.

chcomg -s 1 -p 3 ComGrp1

2. ApplDomain� �� ComGrp1 � ��� ��� ������ ����� � ��� nodeA

�� ������.

chcomg -b ComGrp1

3. ApplDomain� �� ComGrp1 � ��� ��� � �� �� ���� ���� ���� �

��� nodeA�� ������.

chcomg -x r ComGrp1

4. ApplDomain� �� ComGrp1 � ��� ���, /usr/sbin/rsct/bin/hats_nim� NIM ��� �

���, -l 5 NIM ���� ��� �� �� ����� � ��� nodeA�� ������.

chcomg -e /usr/sbin/rsct/bin/hats_nim -m "-l 5" ComGrp1

5. ApplDomain� �� ComGrp1 � ��� nodeB� eth0�� ���� ����� ��� ����

� � ��� nodeA�� ������.

chcomg -i n:eth0:nodeB ComGrp1

6. ApplDomain� �� ComGrp1 � ��� 9.123.45.678 ���� ���� ���� ����� �

�� ����� � ��� nodeA�� ������.

chcomg -S n:"Subnet == ’9.123.45.678’" ComGrp1

��

/usr/sbin/rsct/bin/chcomg chcomg ��� �����.

�� ��

��: lscomg, lsrpdomain, lsrpnode, mkcomg, preprpnode, rmcomg

328 �� ���, � 1 �

Page 345: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chcondition ��

��

��� ��� �� �� ����.

��

��� �� ���� �� ������.

chcondition [-r resource_class] [-e event_expression]

[-E rearm_expression] [-d event_description] [-D rearm_description]

[-m l │ m │ p ] [-n node_name1[,node_name2...]] [-s ″selection_string″]

[-S c │ w │ i ] [-h] [-TV] condition[:node_name]

��� ��� ��� �� ������.

chcondition -c new_condition [-h] [-TV] condition[:node_name]

��� �� ����� ���� �� ������.

chcondition {-U | -L} [-h] [-TV] condition[:node_name]

��

chcondition ��� ��� ��� �� ��� ��� ����. -c ��� ��� ��� ���

�� ��, ��� �� ��� ��� �� ���.

��� ����� ��� ���� � �� ��� ��� �� � ��� �� � ���. � �

�� � �� � � ����� ����� �� � ���. chcondition ��� ��� ��� �"

�� � ��� ���� ���, � � ����� �� �� ��� �����. ��� �� ��

��� -U �� � ���� ���. ��� ��� ��� ����� ��� ���� � �����

��� ����� �" ��, ��� � ��� ��� �� ���� ���. ��� �� � ��

� ���� -L �� � ������.

���

-c new_condition

��� �� ��� �����. �� ��� �� ��� �����. new_condition ��� �

�� ���� ������. ��� ��� ��, ��� �� ��� �� ���. ��� ��

�����, �(null)��� �� ��� �� ����� �� � ����.

-r resource_class

� ��� ����� �� ��� �����. lsrsrcdef ��� ���� �� �� ��� �

� � ���.

�� ���(���) 329

Page 346: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-e event_expression

��� ���� �����. ��� ����� ��� �� ��� �����. ��� > �� <

� �� ��� �� ��� ��� � resource_class� �� �� �����. � ���� �

�� ���� ���� ����.

-E rearm_expression

��� ���� �����. event_expression� ��� ���� ���� ��� ��� ���

�� event_expression� �� ����� �� ���� ��� �����. �����, ��� �

��� �� ��� ��� �� � �� ���� ��� �� �����. ��� ����� >

� �� ��� �� ��� ��� � resource_class� �� �� �����.

-d event_description

��� ���� ���� ��� �� ��� �����.

-D rearm_description

��� ���� ���� ��� �� ��� �����.

-s ″selection_string″

��� event_expression ��� ���� � �� resource_class �� �� � ����

�����. � �� resource_class � �� ��� ����� ����. � ���� ���

� � ���� ��� �� ��� � �����(-m �� ). � ���� �� �� �� �

� �� �� ��� ��� ���. � ��� �� ��� �� ��� RSCT �� ��� �

�����.

-S c │ w │ i

���� ��� �����.

c ��

w ��

i ��(� �)

-m l │m│ p

��� ���� �� ��� � �����. �� ��� � ��� ���� �� � � ���

� �� ��� �����. ��� � �� ���� �� � �� ��� ��� � ���

��� ����� �� � ����. ��� �� �� ����.

l �� ��� � �����. ��� �� �(��� ��� �)�� �����. �� �

� � ���� ����� �����.

m �� �� ��� � �����. ��� ��� ��� �� �� � �� ���

�����. � ���� ����� �� ��� � �� �� �����. �� �

� ��� � ����� ��� ��� �� �� �� � ���.

p �� �� ��� � �����. ��� ��� ��� �� �� � �� ���

�����. � ���� ����� �� ��� � �� �� �����.

-n node_name1[,node_name2...]

� ��� ����� �� ��� ��(�� �� �� ��, ��� � � ��� ��� ��

330 �� ���, � 1 �

Page 347: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�)� �����. -m ��� m �� p ��� ����� -n ��� �� � ���. �

��� ���� �� �� � �� �� ��� ��� � ���.

-h �� ��� ��� ���� �����.

-T �� ��� ��� �� ��� �����. ���� ��� �� �����.

-V �� ��� ��� ��� ��� �����.

-U ��� ����� �� � �� �� �����. ��� ��� ����� ��� ����

� ����� ��� ����� �" ���. ��� ��� � ��� ��� �� ����

���. -U ��� ��� ��� �� �� �� � ���� � ��� �� � ���

�.

-L ��� ����� �� � ��� ����. -L ��� ��� ��� �� �� � ����

� ��� �� � ����.

����

condition node_name� ��� �� ��� ��� �����.

node_name ��� ��� ��� �� �����. node_name� ���� ���, �� �� �

����. node_name�

CT_MANAGEMENT_SCOPE �� �� �� ��� ��� �� � ����.

��

chcondition ��� ���� ��� ��� �� � IBM.Condition �� ��� �� �� ���

��� ���. ��� ��� ���� � ��� �� ���(ACL) ��� ���� ���. ACL �

� � �� ��� �� ��� ��� RSCT Administration Guide� ������.

�� ��

0 ��� ���� ��� ���.

1 RMC� ��� ������.

2 ��� ����� ����� ��� ������.

3 ���� ��� ��� �"���.

4 ���� ��� ���� �"���.

5 ��� ��� �� ��� ��� ������.

�� ��

CT_CONTACT

RMC(Resource Monitoring and Control) �� ��� ���� ���� �����.

CT_CONTACT� ��� �� �� IP ��� ��� ��, ��� ��� ���� RMC ��

�� ���(���) 331

Page 348: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�����. CT_CONTACT� ���� �� ��, ��� ��� ���� �� ���� RMC �

� �����. RMC � ��� �� � �� ��� � ���� �� �� � ��� ��

���.

CT_MANAGEMENT_SCOPE

ERRM(Event Response Resource Manager)� ��� ����� RMC ��� ��� ����

�� ��� � �����. �� ��� � ��� �� � � ��� �� � ��� ��

���. ��� �� �� ����.

0 �� ��� � �����.

1 �� ��� � �����.

2 �� �� ��� � �����.

3 �� �� ��� � �����.

� �� �� ���� �� ��, �� ��� � �����.

�� ��

-h ��� ��� ��, � ��� ���� �� ��� �����. �� �� ��� �� ��� ��

���.

�� ��

�� �� ��� �� ��� �����.

��

� ��� ��� ���� �����.

1. �� ��� ″FileSystem space used″�� ″Watch FileSystem space″� ���� � ��� ���

���.

chcondition -c "Watch FileSystem space" "FileSystem space used"

2. ″tmp space used″ ���� ��� ��� � ��� �� ��� ��� ���� �� �� ���

������.

chcondition -E "PercentTotUsed < 80"\-D "Start monitoring tmp again after it is less than 80 percent full" \"tmp space used"

�� ��� ���� � ����, ��� ���� �� �� ��� ���.

1. �� ��� � ″FileSystem space used″ ��� ��� 95% ��� � ���� ���� �

���, � ��� ������.

chcondition -e "PercentTotUsed > 95" "FileSystem space used"

2. NodeB� � ″NodeB FileSystem space used″ ��� ��� 95% ��� � ���� ����

����, � ��� ������.

332 �� ���, � 1 �

Page 349: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chcondition -e "PercentTotUsed > 95" \"NodeB FileSystem space used":NodeB

� ��� �� ��� �����.

1. NodeA� ���� � ″FileSystem space used″ ��� ��� 95% ��� � ���� ���

� ����, � ��� ������.

chcondition -e "PercentTotUsed > 95" \"FileSystem space used":NodeA

��

/usr/sbin/rsct/bin/chcondition chcondition ��� �����.

�� ��

��: lscondition, lscondresp, mkcondition, rmcondition

��: rmccli

��: ERRM ��� ��� � � ��� �� ��� �� ��� ��� RSCT �� ��� ����

��.

chcons ��

��

��� ��� ��� � � ��� �� � ��� ��� ��� ��� ������.

��

chcons [ -a login { =disable | =enable} ] [ -a console_logname=file ] [ -a console_logsize=size ]

[ -a console_logverb=number ] [ -a console_tagverb=number ] PathName

��

chcons ��� ��� ��� � ��� �� �� ����� ����. ��� ��� �� ���

�� �� ����.

PathName ���� ��� ��� �� �� ��� ��� �� ����� ���.

PathName ���� ���� �� ��� �� ��, chcons ��� � ��� �� � ��� �

���. ��� �� chcons ��� ��� �� �� ��� �����. � ��� ��, ���� �

�� ���� ���� ����.

�� �� ��� �� ��� ��, ���� ��� ��� ���� �����. ���� �� ��

��� ��� �� �� �����. ���� ��� �� �� -a login=disable ��� �����

�.

�� ���(���) 333

Page 350: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��: ��� ���� ��� ��� ��� ��, -a login=disable ��� ����, � ���

�� �� ���� � ����.

�� ��

chcons ��� ��� ��� ������� ��� �� ��� �� � �� �� �����.

� �� ��� �� �� ��� �� �� �� ����� �����. �� �� ��� ����

���� �� ��, �� �� ��� ��� ��� ���, ��� �����. �� �� ��� �� �

� ��� ��, �� ��� �� ��� ���� �� ��� ���� �� �������� ��

��� ��� ���. ��� ����, �� �� �, ��� ��� �����.

� �� ���� ��� ��� �� �� ���� �� ��, �� ��� �� ��� � �� �

��� ��� ���� �� ��� �� �����. � ��, �� � ���� � S1 ���

tty� ��� �����. S2 �� � ��� �� ��� ����� /etc/consdef ��� ���

� ���.

��� ��, �� ���� enable ���� ����� ��� �� ���� ����� �� ID� ��

inittab ��� ��� respawn ��� �����. ��� ���� �� �� ��� �� ���� ��

�. �� ���� disable ���� ��� �� ��� ��� ��� ��, inittab ��� �� ���

OFF ��� ����, ���� �� �� �� �� ���� �� ������.

���

-alogin= [ disable | enable ] � ��� �� �� �� �� �� �� ��� ����

�� �� �� ����� ���.-a console_logname=file �� �� �� ��� �� �� �� ��� �����.-a console_logsize=size �� �� �� ��� ��� �� � � �����.-a console_logverb=number �� �� ��� ���(verbosity)� �����. 0� ���� �

��� ��, 1 - 9 ��� �� ���� ��� �����.-a console_tagverb=number �� �� � ��� ���� �����. 0� ���� � �

�� �����, 1 - 9 ��� �� ���� �� �� �

���.

��

1. ��� ��� /tmp ����� console.out ��� ����, �� �� ������.

chcons /tmp/console.out

2. ��� ��� tty3 ��� ��� �� ��� ����, �� �� ������.

chcons /dev/tty3

3. ��� ��� /dev/tty3 ��� ��� ��� ��� ��� ���� ����, �� �� �

�����.

chcons -a login=enable /dev/tty3

4. ��� ��� tty0 ��� ��� �� ��� ��� ��� ���� �� ����� ���, �

� �� ������.

334 �� ���, � 1 �

Page 351: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chcons -a login=disable /dev/tty0

5. � � �� LFT ����� ��� ���� �� �� ������.

chcons /dev/lft0

��

/dev/console ��� �� ���� �� �� ��� �����./etc/consdef � � ��� �� ���� � � � ���./usr/sbin/chcons �� ��� �����.

�� ��

init ��, lscons ��, swcons ��.

inittab ��, consdef ��.

console �� ��.

chdev ��

��

��� �� ����.

��

chdev -l Name [ -a Attribute=Value ... ] [ -f File ] [ -h ] [ -p ParentName ] [ -P | -T ] [

-q ] [ -w ConnectionLocation ]

��

chdev ��� ��� ��� ��� ��(-l Name ��)�� ��� ��� �� ����. ��� �

��, ��� �� �� ��� � � � � ���. �� �� ��� �� ��� � � �� ��

� ����. �� �� � ��, ��� �� ��� File ����� ��� �� � ��

�.

-P �� -T �� � �� �� ���� �� ��, chdev ��� ��� �� ���� ���� ��

����� �� ���� ����. -P ��� ��� ��, ���� ��� � �����

��� ��� �� ��� ��� �� �� ����. ��� �� �� � ��� � � �� �

�� � ��� �����. � ��, -P ��� ������� � � �� ���� ����

�� �� � ��� �����. -T ��� �������� ��� � �� ���� �� ��

�� ��� � �����. ���� ��� � ��� �������� ��� ��� �����

�� ������. �� ��� -P � -T ��� ����� ����. ��� � � � ��� ���

���� ���� ����� �� � ���.

�� ���(���) 335

Page 352: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�: ��� ������� ���� � chdev ��� ���� � �� �� ���. ���

���� �� � ��� ���� ������� �� � ���.

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� ��

� �� ����� �� ���(SMIT)� smit chdev �� ��� ��� ��� ��� �� � ��

� �� � ���.

���

-a Attribute=Value �� ��� ��� � ���� �� �� �� �����. Attribute=Value �

��� -a ��� � �� � �� �� �� �� �� � ���. ��

�� �� �� -a ��� �� ��, ����� � ��� ��� � �� �

�� � ���. �� �, -a Attribute=Value� ���� �� � �

� �� ����� -a ‘Attribute1=Value1

Attribute2=Value2’� ���� �� �� �� �� �����.-f File File ����� �� ��� ����.-h �� ��� ��� �����.-l Name �� � ��� �� ���� ���� Name ���� ��� ��� ��

� ��� �����.-P ��� �� ��� �� ��� �� ���� ��� �� ���� ����

����. ��� �� ����� � �� �� �� � � � � � �

�� ��� �����. -P ��� ������� � � ���. ���� �

��� , ���� ��� �����. � ��� -T ��� �� �� � �

���. �� ��� -P ��� ����� ����.-p ParentName ��� �� ���� ���� ParentName ���� ��� � ��� ��

��� �� ��� �����. � ��� � ��� � ���� �� ���

��. �� ��� -p ��� ����� ����.-q �� �� � �� ������ �� �� ��� �����.-T ���� �� ���� � ��� �� ���� ��� ��� �� �����

��� �� ����. � ��� -P ��� �� �� � ����. �� �

�� -T ��� ����� ����.-w ConnectionLocation � � �� �� �� �����. � ��� ��� �� �� � ���

� �����. �� ��� -w ��� ����� ����.

��

��� ��: �� ���� � �� ���� � ��� �� ��(x) ��� ��� ��� ���.

� ��� ��

DEV_Change cfgmgr ���� ��� �� ���.

��

1. 4mm SCSI �� ��� rmt0� �� ���� ����(��� � �� ��� ��� �

��� ��� ����, ��� ���, �� ���� �� � ��� �� �) �� �� ��

����.

chdev -l rmt0 -a ret=no

���� �� ��� ��� �����.

336 �� ���, � 1 �

Page 353: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

rmt0 changed

2. �� � ��� tok0� �� ��� �� changattr ��� � � �� �� ��� ���� �

� �� ������.

chdev -l tok0 -f changattr

���� �� ��� ��� �����.

tok0 changed

3. ��� �� �� ��� ��� ��� �� ����� �� � ��� � � �� �� ��

SCSI ��� scsi0� SCSI ID� ���� �� �� ������.

chdev -l scsi0 -a id=6 -P

���� �� ��� ��� �����.

scsi0 changed

���� �� ���� �����, ���� ��� �������.

4. ��� tty �� tty11� � �� ��� sa5� �� 0�� ����� �� �� ������.

chdev -l tty11 -p sa5 -w 0

���� �� ��� ��� �����.

tty11 changed

5. ���� ���� � ��� �� 100�� ���� �� �� ������.

chdev -l sys0 -a maxuproc=100

���� �� ��� ��� �����.

sys0 changed

��

/usr/sbin/chdev �� ��� �����.

�� ��

lsattr ��, lsconn ��, lsdev ��, lsparent ��, mkdev �� � rmdev ��.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Devices�� �� �

�, �, �� � ��� �� ��� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview��� SMIT ������ �� �����.

�� ���(���) 337

Page 354: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chdisp ��

��

chdisp ��� � �� �� ������� ���� � � � ����� ����.

��

chdisp { -d DeviceName | -p DeviceName }

��

chdisp ��� � �� ��(LFT) ������ ��� ����� ����.

�� �� ���� � � � ���� ID� �� ���� ����, lsdisp ��� ������.

��� ���� ��� lsdisp �� �� ���� ������.

�: chdisp ��� LFT��� �� � ���.

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� SMIT(�

�� �� ����� ��) smit chdisp �� ��� ��� ��� ��� �� � ��� �� �

���.

���

-d DeviceName LEF� ���� � �� � � ����� � � ���. ��� �� ���� ���

��, � ����� ����� ���� � � ����� �� ���.-p DeviceName � � ����� � ��� �� ��� ����� ����. ��� ���� � � ����

� �� � ��� ��� �����. ���� � ��� �� � � �� ��� ��� �

�� ��� ���.

��

1. � � ����� �� �� ppr0� �� ����� �� ����, �� �� ������.

chdisp -d ppr0

2. � ���� ���� � � ����� �� �� gda1� �� ����� �� ����, ��

�� ������.

chdisp -p gda1

��

/bin/chdisp chdisp ��� �����.

338 �� ���, � 1 �

Page 355: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

lsdisp ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� LFT Subsystem

Component Structure Overview.

chdoclang ��

��

����� ���� � � � �� ��� �����.

��

chdoclang [ -d ] [ -u UID | Uname ] Language

��

chdoclang ��� /etc/environment �� ���� .profile ��� �� � ��� ��� ��� ��

���� �� � � �� ��� �����. ���� �� ������ ��, ��� � ��� ���

� ���� � � �� ��� �����.

� ��� CDE ������ �� ����� ��� �� docsearch ��� ��� �� ����� �

����� �� � ���� �����.

���

-d ��� � � �� �� ��� �����.-u ��� ���� "� �����.

��

1. � � �� ��� �� ���� �� ������.

chdoclang en_US

2. ��� fred� � � � �� ��� ���� ���� �� ������.

chdoclang -u fred Ja_JP

3. ��� ID� 201� ���� � � � �� ��� ���� ���� �� ������.

chdoclang -u 201 de_DE

�� ���(���) 339

Page 356: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/chdoclang �� �� ��� ����./etc/environment �� ���� �� �� ��� �����.$HOME/.profile �� ���� ��� �� ��� �����.

�� ��

environment ��, profile �� ��.

AIX 5L �� 5.2 � ��� ��� �� ��

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Documentation Library

Service.

AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs� Documentation

Library Service.

checkeq �� checkmm ��

��

� ���� ���� ��� ����.

��

{ checkeq |checkmm } [ File... ]

��

checkeq ��� neqn �� eqn ��� � �� ��� ��(File)� �� ��� �� � ����

�. checkeq ��� � �� � � ���� .EQ � .EN ��� �� �����.

checkeq ��� checkmm ��� ����� �����.

checkmm(�� ��� ��) ��� mm �� �� mmt ��� � �� ��� �� ��� ��

� �����. �� �, checkmm ��� �� .DS(�� ��) ���� ���� .DE(�� �) ���

� ��� ����. File� checkeq �� checkmm ���� � ��� �����.

checkmm ��� �� ��� �� � � � ��� ��� ���� �� ��� ������.

�� ��

eqn ��, mm ��, mmt ��, mvt ��, neqn ��, tbl ��.

.DE � .DS ���, .EN � .EQ ���, mm ��� ���.

340 �� ���, � 1 �

Page 357: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

checknr ��

��

nroff � troff ��� ����.

��

checknr [ -a.Macro1.Macro2 ... ] [ -c.Command1.Command2 ... ] [ -f ] [ -s ] [ File ... ]

��

checknr ��� ���� �� � �� ���� �� ��� ���� ��� ��� �� nroff �

� troff �� �� ���� ����. ��� ���� �� �� checknr ��� �� ��� ���

�.

�� ���� �� ����.

v \fNewfont� ��� �� � ...\fP.

v \sNewsize� ��� �� � ...\s0.

v �� ���� �� �� �� ��� ���(.TS � .TE ���)

checknr ��� ms � me ��� ��� �� ��� �� � ���.

checknr ��� lint ��� �� ����� checknr ���� �� ��� �����. checknr ���

����� \f � \s ��� � ���� ��� �� ��� ���� ��� \fNewfont� \fP� ��

� �� \sNewsize� \s0�� ��� ���. � ��� ����� � �� �� ��� ����

� ����� � ��, ��� checknr ���� �� ��� ����.

File� nroff �� troff �� ��� ���� �� � �� ��� � �� ��� ���� ��� �

� �����. � �� �� �����.

���

-a.Macro1.Macro2 ��� �� ���� �����. � �� �� 6��� ��, ��� �� ���� �

�� �� ���. 6 ��� ���, Macro1, � ��� � Macro2���. �� �, � .BS

� .ES� �����, -a.BS.ES� ������.

�: -a ��� ����� 1 �� ��� ��� �� � ����.-c.Command1.Command2

checknr ���� �� ��� �� ���� �� � ��� �����.-f checknr ���� \f �� �� ���� ���.-s checknr ���� \s �� �� ���� ���.

�: checknr ��� ���� �� ���� �� ��� ��� ���� ����.

�� ���(���) 341

Page 358: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

checkeq ��, lint ��, nroff ��, troff ��.

me ��� ���, ms ��� ���.

chfilt ��

��

�� �� ����.

��

chfilt -v 4|6 -n fid [ -a D|P] [ -s s_addr] [ -m s_mask] [ -d d_addr] [ -M d_mask] [ -g Y|N] [ -c

protocol] [ -o s_opr] [ -p s_port] [ -O d_opr] [ -P d_port] [ -r R|L|B] [ -d I|O|B] [ -l Y|N] [ -f

Y|N|O|H] [ -t tid] [ -i interface][ -D description]

��

�� � ���� �� �� ��� ���� chfilt ��� ������. � ���� �� � �

� � � �� �� �� � � ���. �� �� �� �� chfilt� �� ����, �� �

� �� ���.

���

-a ��. Deny(D)� �� � � ���� Permit(P)� �� � � �����.-c protocol ���. ��� �� udp, icmp, icmpv6, tcp, tcp/ack, ospf, ipip, esp, ah � all���.

all �� �� �� �� ���� �� ���� �� �����. ��� ��(1-252)

� �����.-d d_addr � ��. IP ��� ��� ��� � ���. ��� ��� ����, ���� �� ���

��� � �� IP ��� �����. �� ��� ���� �� � �� IP ��� �� ��

� �����.-f ��� ��. � ��� � �� �� ���(Y), �� �� � ����

� �� ����(H), �� � �� ����(O) �� ����� �� ��

��(N) �� ��� �����.-g �� ��� ��? Y(�) �� N(���)� ���� ���. Y� ����, � �� �� �

� ���� ���� IP ��� �� � ���.-i interface �� �� ���� IP �����()� ��. ��� all, tr0, en0, lo0 � pp0���.-l �� ��. Y(�) �� N(���)� ���� ���. Y�� ��� ��, � �� �� ���

� ��� �� ��� �����.-M d_mask � ��� ���. ��� IP ��� �� ��� �� � �� ��(-d ��)� ����

�.-m s_mask �� ��� ���. ��� IP ��� �� ��� �� � �� ��(-s ��)� ����

�.-n fid ���� �� �� ID. �� � ��� �� �� IP �� 4���, 1� � ����.

(� 1� ��� ���� �� � ������.)-O d_opr � �� �� ICMP � ��. ��� � ��� ICMP �(-P ��)� � ��� �

� ��/ICMP � � ���� �� �����. ��� �� lt, le, gt, ge, eq, neq � any

���. � �� -c ��� ospf� � any��� ���

342 �� ���, � 1 �

Page 359: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-o s_opr �� �� �� ICMP �� ��. ��� � �� �� ��� �� ��� ICMP ��(-p �

�)� � ��� �� ��/ICMP ��� ��� ���� �����. ��� �� lt, le,

gt, ge, eq, neq � any���. � �� -c ��� ospf� � any��� ���

-P d_port � ��/ICMP �. IP ��� �� ��(�� ICMP �)� �� �/����.-p s_port �� �� �� ICMP ��. IP ��� �� ��(�� ICMP ��)� �� �/����.-r ���. ��� �� �� ��(R), �� ����� ����� ��� ��(L) �� ��(B)

� ���� �����.-s s_addr �� ��. IP ��� ��� ��� � ���. ��� ��� ����, ���� �� ���

��� � �� IP ��� �����. �� ��� ���� �� � �� IP ��� �� ��

� �����.-t tid � �� �� ��� �� ID. � �� �� ���� ��� �� �� ��� �����.-v �� �� �� IP ��.-w ��. �� � ��(I), � ��(O) �� ��(B)� ��� �� �����.-D �� ��. �� �� �� �� �� ��.

chfn ��

��

���� gecos ��� ����.

��

chfn [ -R load_module ] [ Name ]

��

chfn ��� ���� gecos ��� ����. Gecos ��� /etc/passwd ��� ��� �� �����.

� ��� ���� ���� ����. � �� ���� �� ��� ����� �� ���. �� �

�� ���� ���� �� ��, ���� � ��� ��� �� ��� �����.

chfn ��� ������. ���� ��� ��� �, ���� �� gecos ��� ����, ��� ��

�� �����. ��� ��� ��, chfn ��� ����, Enter �� ����.

� ���� :(��)� ���� gecos �� ���� �� ��� ��� �� � ���.

� ��, chfn ��� ��� ���� ���� gecos ��� ����. ��, � ��� ��� �

���� gecos ��� � � ���. ���, � ���� �� gecos ��� ���� chuser �

�� �� �� ��� ��� ���.

�� ID � �� ���(I&A)� ��� �� ���� ��, -R ��� ��� ���� �

� ��� I&A � ��� �� � ���. � ��� /usr/lib/security/methods.cfg ��� ���

� ���.

���

-R ���� gecos ��� � � ��� ��� I&A ��� �����.

�� ���(���) 343

Page 360: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

��� ��: ���� ��� ��� ��� ����� �� ���� � ��� �� ��(x) ��� �

�� ��� ���. � ��� �� ����(TCB)� ����� ���� ���. setgid(SGID) �

� ��� �� � ���� � ��� ���� ���.

����� ��:

�� ��

x /usr/bin/chuserrw /etc/passwd

���

�� ��� I&A ���� ���� gecos �� �� ����� ����. ��� I&A ��� ��

�� gecos ��� ��� � �� ��� �����.

��

1. ��� ��� John Smith�� ���� gecos ��� ���� �� �� ������.

chfn

�� gecos ���� ��� �� �� ��� �� ����.

current gecos:"John Smith;555-1746;room 74"

change (y/n)? >

� ��� 74�� 36�� ���� y� ��� �� ������. > ��� ���� ��

��� ������.

current gecos:"John Smith;555-1746;room 74"

change (y/n)? > yto? > John Smith;555-1746;room 36

2. ��� ��� John Smith�� ���� gecos ��� ���� �� ��� ��� �� �� ��

������.

chfn

�� gecos ���� ��� �� �� ��� �� ����.

current gecos:"John Smith;555-1746;room 74"

change (y/n)? >

��� ��� ���� change (y/n)? �� n� ������. Enter �� ����.

current gecos:"John Smith;555-1746;room 74"

change (y/n)? > n

344 �� ���, � 1 �

Page 361: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ��� ��� �� ���� �����. y� ���� �� ���� ����� � ��

� ����. ��� ���� ���� Enter �� ��� ���� �(null)� ������. Enter

�� ��� y ��� ���� �� �� ���� �� ������.

3. ����� chuser ��� �� ��(x) �� ��� �� johns ���� �� gecos ��� ��

�� �� �� �� ������.

chfn johns

�� gecos ��� � ��� Example1��� �� ����.

4. davis ���� �� ��� LDAP I&A � ��� gecos� ���� �� �� ������.

chfn -R LDAP davis

��

/usr/bin/chfn chfn ��� ��� �����./usr/bin/chuser ��� ��� ����./etc/passwd �� ��� �� ���.

�� ��

chgroup ��, chgrpmem ��, chuser ��, lsgroup ��, lsuser ��, mkgroup ��, mkuser ��,

passwd ��, pwdadm ��, rmgroup ��, rmuser ��, setgroups ��, setsenv ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Security Administration

��� ��� ID � ��, �� ��� ��, �� ���� � ��� �� �����.

chfont ��

��

�� � �� � � ��� ����.

��

chfont [ FontID ]

��

chfont ��� ��� ��� �� ����� ��� ��� ����.

�� ID, �� ��, ��(glyph) �� � �� ��� �� �� �� �� ���� ���, lsfont �

�� ������. ��� ���� ��� lsfont �� �� ���� ������.

� ��� ����� �� ��� �� ���.

�: � ��� LFT(� �� ��)�� �� � ���.

�� ���(���) 345

Page 362: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� SMIT(�

�� �� ����� ��) smit chfont �� ��� ��� � ��� �� � ���.

����

FontID �� ��� �� id

��

� ����� ��� ��� �� � �� � �� ��� ����, �� �� ������.

chfont 2

��

/bin/chfont chfont ��� ���./usr/lpp/fonts �� ����� ���.

�� ��

lsfont ��, mkfont ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� LFT Subsystem

Component Structure Overview.

chfs ��

��

�� ���� �� ����.

��

chfs [ -n NodeName ] [ -m NewMountPoint ] [ -u MountGroup ] [ -A { yes | no } ] [ -p { ro |

rw } ] [ -t { yes | no } ] [ -a Attribute=Value ] [ -d Attribute ] FileSystem

��

chfs ��� �� ���� �� ����. �� �� � , �� ��, �� �� � �� ���

��� ����� � � ���. FileSystem ���� �� � �� ��� �� ���� ���

�����.

346 �� ���, � 1 �

Page 363: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� ��� �� �� ���� � � ���� � � ����. �� �� ���(JFS)� �

�, �� ��, � ��, i � �� �, �� � � �� ��� ��� �� �����.

� �� �� ���(JFS2)� �� � ��� � � ����.

� �� ��� ����� �� ������ ��� �� ��� �� � � ���. ��

SMIT(��� �� ����� ��) smit chfs �� ��� ��� � ��� �� � ���.

�: ����� ��� ���� �� ���� ��� �� �� ��� chlv ��� 371 ���� ��

���� ��� ��� �� ����� ������.

���

-a Attribute=Value

�� �� ��� ��� �� Attribute=Value �� �����. Attribute=Value �� �� ��

�����, -a Attribute=Value ���� � � ������.

� �/� �� �� �� ���(JFS)� ��� ����.

-a Size=NewSize

�� �� ���� ��� �����. ��� 512 �� �, MB �� GB � � ��

� ���. Value� M ��� � ��, MB� �����. Value� G ���

� ��, GB� �����. �� +� ���� ��� ��� �� ��� ��� ���

��� ���� �����. ���� ��� ��� ��� ��� ��� �� ��

��, ��� ��� � � �� �� ��� ��!���.

JFS �� ���� � ��� �� ��� nbpi �� �����. � �� �� �

� �� ��� ����.

nbpi ����� ��(���) 512��� �� �

�� �� ��

MB ��� ��

��

GB ��� ��

��

512 512, 1024, 2048, 4096 16777216 8192 8

1024 512, 1024, 2048, 4096 33554432 16384 16

2048 512, 1024, 2048, 4096 67108864 32768 32

4096 512, 1024, 2048, 4096 134217728 65536 64

8192 512, 1024, 2048, 4096 268435456 131072 128

16384 512 268435456 262144 256

16384 1024, 2048, 4096 536870912 524288 512

32768 512 268435456 1048576 1024

32768 1024 536870912 2097152 2048

32768 2048, 4096 1073741824 4194304 4096

6 5 5 3 6 ,

131072

512 268435456 8388608 8192

6 5 5 3 6 ,

131072

1024 536870912 16777216 16384

�� ���(���) 347

Page 364: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

nbpi ����� ��(���) 512��� �� �

�� �� ��

MB ��� ��

��

GB ��� ��

��

6 5 5 3 6 ,

131072

2048 1073741824 33554432 32768

6 5 5 3 6 ,

131072

4096 2147483648 67108804 65536

AIX 4.3���, ���� � �� ��� ��� ��� 512 - 128K� NBPI �� ��

� ���.

�� ���� ���� �� ��� � ��� �� ��� ���� �� ��� ���

�����.

-a Log=LVName

���� ��� �� ��� �� �� ��� �� �� ��� �����. � �� ��

�� �� �� ��� �� ���� ��� �� ��� ���� ���.

-a splitcopy=NewMountPointName

�� ���� � ��� � �� �� � � �� ���� �����. �

�� � � ���� �� � � ��� JFS � ���� �� �� ���� �

�� �����. ��� ���� ��� ���� ����, � ��� ���� � �

� ��� ��� �� �� �����. � ��� ���� ��� � ����

�����.

-a copy=Copy#

splitcopy �� �� ���� � ��� �����. � � ��� � �� ��

���. ��� �� 1, 2 �� 3���.

� �/� �� � �� �� ���(JFS2)� �����.

-a size=NewSize

� �� �� ��� ��� 512 �� �, � �� �� �� ��� �����.

Value� M ��� � ��, MB� �����. Value� G ��� � ��, GB�

�����. �� +� ���� ��� ��� �� ��� ��� ������ ���� �

����. ���� ��� ��� ��� ��� ��� �� �� ��, ��� �

�� � � �� �� ��� ��!���. �� ���� � �� ���

� ��� �� ��� ���� �� ��� ��� �����.

�: JFS2� �� nbp �� �� �� �� �� ���� �� ��� �� �� �

���.

-a logname=LVName

���� ��� �� ��� �� �� ��� �� �� ��� �����. � �� ��

�� �� ��� �� ���� �� �� ��� �� ���. �� INLINE� ���

� JFS2 �� ���� ��� ��� ��� ��� �� � ���. � ��� ���

348 �� ���, � 1 �

Page 365: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� ���� INLINE ��� �� ��� ���. � ��� �� ���� ���

��� ��� ��� ���� ��� ����� /etc/filesystems ��� ����.

-a logsize=Value

INLINE ��� ��� � �� � � �����. INLINE ��� ���� �� �

��� �����. �� ��� �� ��� ��� 10% ��� �� � ����.

-A �� ��� �� �� �����.

yes �� ���� ��� ��� � ���� �����.

no �� ���� ��� ��� � ���� ����.

-d Attribute

��� �� ���� /etc/filesystems ���� ��� �� ����.

-m NewMountPoint

�� �� � � �����.

-n NodeName

��� �� ���� �� � ��� �����. /etc/filesystems ��� � �� �� ��

��� �� ����. � �� �� ���� �� ���(NFS) �� �� ��� ���

�� ��� �� �� �� ��� ��� �����.

-p �� ���� �� �� ��� �����.

ro �� �� �� ��� �����.

rw �� �� �� ��� �����.

-t �� �� ��� �� ���� �� ���� �� �����.

yes ���� ������ �� ��� ����(accounting)� �����.

no ���� ������ �� ��� ����(accounting)� ���� ����.

-u MountGroup

�� ��� �����. �� ��� �� ��� ���� , ����� ���� �

��� �� � � ���. �� �, � �� ��� ��� �� ��� ���� �

� �� ����� �� ��, �� ���� test �� ��� �� � ���. �

��� mount -t test ��� �� �� ���� �� �� � ���.

��

��� ��: �� ���� � ��� �� � ���.

��

1. /test �� �� ���� �� ��� ��� ���� �� �� ������.

chfs -a size=24576 /test

�� ���(���) 349

Page 366: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� /test �� �� ��� ��� 24576 512 �� � �� 12MB(�� ��� � ����

�� �� ��)� ����.

2. /test �� �� ���� ��� ����� �� �� ������.

chfs -a size=+8192 /test

� ��� /test �� �� ���� ��� 8192 512 �� � �� 4MB�� �����.

3. �� ���� �� � � ����, �� �� ������.

chfs -m /test2 /test

� ��� �� ���� �� � � /test��/test2� ����

4. ���� �� �� ����� ����, �� �� ������.

chfs -d account /home

� ��� /home �� ����� ���� �� �����. ���� �� /etc/filesystems ���

/home: ����� ����.

5. � �� ���� ��� � ��� ��� ���� � �� ���� ����� ��

�� ������.

chfs -a splitcopy=/backup -a copy=2 /testfs

��� �� /testfs� �� �� ��� /backup� �����.

6. /test �� �� ���� �� ��� ��� ���� �� �� ������

chfs -a size=12M /test

� ��� /test �� �� ��� ��� 12MB(�� ��� � ���� �� �� ��)� ����.

��

/etc/filesystems ��� �� ���� ���� � �� �����.

�� ��

crfs ��, mkfs ��, mklv ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Accounting Overview

��� �� ��� ���� ������ �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� ��, ��, �� � ����� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

350 �� ���, � 1 �

Page 367: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool��� SMIT ��, �� � � ���� �� �����.

chgif ���

��

���� ������ ����� �������.

��

chgif [ -d | -T ] -l InterfaceInstance -a ″Attribute=Value ...″

��

chgif �� � ������� ��� � ��� ���� ����� ����(InterfaceInstance)�

ifconfig ���� ��� �������. �� �� � ������� �� � �� �� �

�� �� ���� ���. � �� ����� ���� ���� ����. �� � � ���

�� �����.

�: chgif �� ��� ����� ����� ��� ���.

���

-a″Attribute=Value ...″ ����� ����� ����� �� �� �� �����. AttributeValue �� �� ��

� �� ���.

��� ��� �� ����.

netaddr ���� ������ ��� ��� �����.

state(up/down)

up �� down�� ������ �����.

trailers(on/off)

� �� �� � ���� ����� �����.

arp(on/off)

�� �� ���� �� ����� �� ����� ���.

allcast(on/off)

��� �� �� � ���� �� �� �� � ������ ����� �� �

����. � �� �� � ������ �����.

hwloop(on/off)

��� �� �� �� ����� �� ����� ���.

�� ���(���) 351

Page 368: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

netmask

� 10�� ��� ���� ���� �����.

security SecurityLevelKeyword

(inet�) ������ ��� � �� �����.

SecurityLevelKeyword � �� � � ��� � ���.

v none

v unclassified

v confidential

v secret

v top_secret

� �� none �� unclassified� �� ��, IP �� ��� IP ��� ���� ���

�.

authority AuthorityLevelKeyword

(inet�) ������ ��� � �� �� �����. AuthorityLevelKeyword

� �� � � � �� ��� � ���.

genser Defense Communications Agency

siop Department of Defense Organization of the Joint Chiefs of Staff

dsccs-spintcom

Defense Intelligence Agency

dsccs-criticom

National Security Agency

�� ��� �� �� �� ��, �� �� �� �� ��� ����.

mtu � ���� �� � IP �� ��

broadcast

����� ������ ���� � �� ��� �����.

dest � ��� �� �� ��� �����.-d ��� ��������� ���� �����. � ��� ��� �� �� ��� �

��.-l InterfaceInstance ���� ������ ����� ������� �����.-T ������� ���� ��� �� ���� �� ���� ����. ���� ���

� ��� ������� � � ��� �� �� �� ������.

�� ��

chdev ��, ifconfig ��.

chginet �.

odm_run_method ���.

352 �� ���, � 1 �

Page 369: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Protocols,

TCP/IP Addressing, TCP/IP Network Interfaces.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Object Data

Manager (ODM) Overview for Programmers.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Writing a Device

Method.

chginet ���

��

��� ����� �������.

��

chginet [ -d ] [ -a″Attribute=Value ...″ ]

��

chginet �� ��� ����� ������ HostName � � ��� �� �� ���� �

� ���. chginet �� hostname ��� ��� ��� ��� ����. chginet �� �

� route ��� ��� �� ��� ����. chdev ��� �� �����.

�: chginet �� ��� ����� ���� �� � ����.

���

-a″Attribute=Value ...″ ��� ����� ��� �� �����. �� �� ��� �� ���.

hostname

��� ��� �����.

gateway

� � ���� �����.

route ��� �����. Route �� Value � ��� route=destination, gateway,

[metric]���.

delroute

���� ��� �����. �� ��� route=destination, gateway, [metric]��

�.-d ��� ��������� ���� �����. �� � IPL� ��� ���.

�� ���(���) 353

Page 370: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

��� ����� ��� ��� �����, �� �� �� ���� ������.

chginet -a″route=192.9.200.0,bcroom″

� ��� �� ���� �����. �� ���� ���� 192.9.200.0, bcroom ������ ��

���.

�� ��

chdev ��, hostname ��, mkdev ��, route ��.

odm_run_method ���.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Network

Interfaces.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Object Data

Manager(ODM) Overview for Programmers.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Writing a Device

Method.

chgroup ��

��

��� �� ����.

��

chgroup [ -R load_module ] Attribute=Value ... Group

��

��: ���� �� ���(NIS) ������� ���� ���� ��� ��, �� ��� ���

��� ���� ���� � ���, chgroup ��� ���� ����.

chgroup ��� Group ���� ��� ��� �� �� ����. �� ��� 8 �� ��� �

��� � ��� � ���. �� ���� Attribute=Value ����� � ��� �� ��

�� �� ������.

�� ID � ��(I&A) ���� ��� �� ��� �� ���� -R ��� ��� I&A

� ��� �� � ���. � ��� /usr/lib/security/methods.cfg ��� ���� ���.

� �� ��� ���(wsm)�� ��� ������ ��� ��� �� � � ���. ��,

SMIT(��� �� ����� ��) smit chgroup �� ��� ��� � ��� �� � ���.

354 �� ���, � 1 �

Page 371: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��� �� ���

�� ��� �� ��� �� � chgroup �� ��� �� ����� ���. �� ��� ��

UserAdmin ��� � ���� chgroup ��� ��� �� ��� � � ���. � ���

�� �� �����.

v admin �� ��� ��� ��� �� ���� ������.

v �� ��� �� �����.

v ���� �� ��� ��� ��� ���� ������.

�� ��� admin �� ��� ��� �����. security ��� ��� ��� ��� ���� ��

� ��� ��� ��� ��� �� � � ���.

���

-R ���� �� � � ��� ��� I&A ��� �����.

Attribute=Value ���� ��� �� ����. ���� ��� ��� �� ��, �� �� �

� �� �� � ���.

adms �� � ��� ��� ��� ��� �� ��� �� �� ���� �� � � ���� �����. �� ���

� ��� ��� ��� � � ��� admin=true�� � �� �����. Value ���� ��� �� �

�� ��� �� ������. ���� Value ���� ���� �� ��, �� ��� ���� �����.admin ��� �� � � �����. ��� �� �� ����.

true ��� ��� �����. �� ����� ��� ��� ��� �� � � ���.

false �� ��� �����. ��� ��� �� �� ���� security ��� ��� �� � � ��

�. ��� � � ����.id �� ID. Value ���� ��� �� ������. � �� ��� �� ��� �� $� ��, � ���

� �� ���� ���.users �� ��� ��� ��� ��� User1,User2,...,Usern���. �� �� ��� ��� �����. ���� ��

���� ��� ��� ����� ���. �� ���� ���� �� � ����.

adms � admin �� /etc/security/group ���� �����. ��� �� /etc/group ���� ��

���. chgroup ���� ��� ��� �� ���� �� �� � ��� ���� ��� ����.

��

��� ��: �� ��� � security ���� � ��� �� ��(x) ��� ��� ����. � ���

�� ����(TCB)� ����� ���� ���. setuid(SUID) �� ��� � �� ���� �

��� ���� ���.

����� ��:

�� ��

rw /etc/group

�� ���(���) 355

Page 372: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

rw /etc/security/groupr /etc/passwd

�� ���:

��� ��

GROUP_Change ��, �

���

�� ��� I&A ���� ��� � �� ����� ����. ��� I&A ��� ��� ��

��� � �� ��� �����.

��

1. �� frank� ��� finance ��� sam � carol� ����� �� �� ������.

chgroup users=sam,carol,frank finance

2. finance ���� frank� ����� sam � carol� ���� finance ��� ��� ���� �

���� �� �� ������.

chgroup users=sam,carol adms= finance

� ����, � �� ��� �� ���. frank ��� �� ����� �� � adms ��

�� ���� �� ���.

3. LDAP I&A ��� �� �� ���� �� ���� �� �� ������.

chgroup -R LDAP users=sam,frank monsters

��

/usr/bin/chgroup chgroup ��� ��� �����./etc/group ��� �� �� ���./etc/security/group ��� � �� ���./etc/passwd ���� �� �� ���.

�� ��

chfn ��, chgrpmem ��, chsh ��, chuser ��, lsgroup ��, lsuser ��, mkgroup ��, mkuser

��, passwd ��, pwdadm ��, rmgroup ��, rmuser ��, setgroups ��, setsenv ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

��� ID � ��, �� ��� ��, �� ���� � ��� ���� AIX 5L Version 5.2 System

Management Concepts: Operating System and Devices� Security Administration� ������.

356 �� ���, � 1 �

Page 373: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chgrp ��

��

���� ����� �� ���� ����.

��

chgrp [ -f ] [-h ] [-R ] Group { File ... | Directory ... }

chgrp -R [ -f ] [ -H | -L | -P ] Group { File... | Directory... }

��

chgrp ��� ��� �� �� ����� ��� ��� ��� �� �� �� �� ID ��� ���

�. �� ��� �� ���� -h �� -P ��� ���� �� �� chgrp ��� �� ��� ��

���� �� ��� ��� �� �� ����� �� ���� ����.

-H, -L � -P ��� �� ������, � ��� ���� �� ��� ��� ����. ���� �

�� ��� ��� ���� ��� �����.

���

-f ��� ��� ��� �� �� ��� �����.-h ��� �� ��� �� ���� ���� �� ��� �� ��� ���� ����� ���� ��� ��

��.

���� -h �� � -R �� �� ��� �� ��, chgrp ��� ��� ����� ����� ����, �

� ��� ����, ��� �� ��� ���� ����� �� ���� �� �� ��� �� ���� ���

�.-H -R ��� ���� �� ����� ��� ���� �� ��� ���� ��� �� chgrp� �� ��� ���

����� �� � � �� � �� ��� �� ��� ����.-L -R ��� ���� �� ����� ��� ���� �� ��� ���� ����� �� ��� ��� � ��

� ��, chgrp� �� ��� ��� ����� �� � � �� � �� ��� �� ��� ����.-P -R ��� ���� �� ��� ���� ����� �� ��� ��� � ��� �� chgrp� ���� � �

�� ���� �� �� ��� �� ID� ����. chgrp ����� �� ��� � � � �� �� ���

��� ����.-R ��� �� ��� �� ID� ����, ����� ����� ����. �� ��� ���� ��� �����

�� ��, � ����� �� ���� ���� ����� � �� ���� ����. -h, -H, -L �� -P

��� ���� �� ��, �� ��� ���� ��� ����� �� � � ����� �� ���� ��

�� ����� � �� ����� ����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

�� ���(���) 357

Page 374: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. proposals to staff�� �� �� ����� �� ���� ���� �� �� ������.

chgrp staff proposals

�� proposals� �� ��� ��� staff ��� �����.

2. proposals � � �� � �� �� � ������� �� ���� staff� ���� �

� �� ������.

chgrp -R staff proposals

proposals � � �� �� � ������� �� ��� �� ��� �� staff ��� �����.

��

/usr/bin/chgrp chgrp ��/etc/group ��� �� ��� ���� ��

�� ��

chown ��, groups ��.

chown ���, fchown ���.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Security Administration

��� ��� �� �� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��� � ��� ����� �� �

��� �� � ����� �� ��� ��� �����.

chgrpmem ��

��

��� ��� ���� ��� ����.

��

chgrpmem [ { { -a | -m } { + | - | = } User ... } ] Group

��

chgrpmem ��� Group ���� ��� ��� ��� ��� �� ��� ����. ��� ���

��� ��� ���� ��, � �� ����� � ��� ������. �� ���� ���� ��

� ����. ���� �� ��� /etc/passwd ��� �����. chgrpmem ���� ���� ����

��, ��� ��� �� � ��� ���� �����.

358 �� ���, � 1 �

Page 375: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� �� ��� ���� ��, ���� �����, -a ��� ������. � ��, ����

�� ��� ��, ���� �����, -m ��� ������. ��� �� � �� � ���� �

�� ���� �� �� ��� �� � ���. ���� �� �����.

+ ��� ���� �����.- ��� ���� ����.= ��� ��� �� �� ���� ��� ���� �����.

� �� User ���� �� �� �� � ���. ��� ���, ��� ��� ��� �� ���

� ������.

�� �� �� ���� ����� ���� chgroup ��� ������.

���

-a ��� ��� ��� ���� ����.-m ��� �� ���� ����.

��

��� ��: �� ��� ��� ��� ����� �� ���� � ��� �� ��(x) ��� ��� �

�� ���. � ��� �� ����(TCB)� ����� ���� ���. setgid(SGID) �� ��

� �� security ��� � ��� ���� ���.

����� ��:

�� ��

x /usr/bin/chgroupr /etc/passwdr /etc/grouprw /etc/security/group

��

1. f612 ��� ��� ���� jones� ����� �� �� ������.

chgrpmem -a - jones f612

2. �� davis � edwards� �� f612� �����, �� �� ������.

chgrpmem -m + davis,edwards f612

3. �� staff� �� � ��� ���� �����, �� �� ������.

chgrpmem staff

��

/usr/bin/chgrpmem chgrpmem ��� ��� �����.

�� ���(���) 359

Page 376: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/etc/passwd ���� �� �� �����./etc/group ��� �� �� ���./etc/security/group ��� � �� ���.

�� ��

chfn ��, chgroup ��, chsh ��, chuser ��, lsgroup ��, lsuser ��, mkgroup ��, mkuser

��, passwd ��, pwdadm ��, rmgroup ��, rmuser ��, setgroups ��, setsenv ��.

��� ID � ��, �� ��� ��, �� ���� � ��� ���� AIX 5L Version 5.2 System

Management Concepts: Operating System and Devices� Security Administration� ������.

chhwkbd ��

��

���� ��� ���(ODM) ������� ��� �� �� ����.

��

chhwkbd [ -d Delay ] [ -r Repetition ] [ -c ClickerVolume ] [ -a AlarmVolume ] [

-m [ ″KR″ | ″JP″ | ″TW″ ] ] [ -t [ ″nonum″ ] ]

��

chhwkbd ��� ODM ������� ��� �� �� �� �� ����.

v �� ��

v ���

v �� �� ��

v �� ��

v ���, ��� � ��� �� ID

v �� ��/��� �� � �� ��

�� �� �� �� ��� ��� � ��� �����.

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� SMIT(�

�� �� ����� ��) smit chgkbd �� ��� ��� � ��� �� � ���.

360 �� ���, � 1 �

Page 377: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-a AlarmVolume �� ��� ��� ��� �����. AlarmVolume �� �� �

� �� �� �����.

0 off

1 �

2 �

3 �

-c ClickerVolume �� �� ��� ��� ��� �����. ClickerVolume ��

�� �� �� �� �����.

0 off

1 �

2 �

3 �

-d Delay �� �� ��� ��� ��� �����. Delay �� 250, 500,

750 �� 1000 msec� � ���. � � �� 500 msec���.-m [″KR″ | ″JP″ | ″TW″] �� �� ��� �� �� ��� �����.

″KR″ ��� ��

″JP″ ��� ��

″TW″ ��� ��

�� ���� �� -m ��� ��� �� �� ��� ��

����.

�: � ��� IBM RS/6000 106-key �� �� IBM PS/2

�� �� ��� ��� ������� �� ���� �

����.

-m ��� ���� SMIT� ��� � �� ����� �

����.-r Repetition ���� ��� ��� �����. Repetition �� 2� 30 ���

�����. � � �� 11 CPS(Character Per Second)���.-t [″nonum″] �� � �� ��� �� ����� �� ����� ���. �

� � �� ��� �� ���� ���, ″nonum″ ���� �

�����. �� ���� �� -t ��� ��� �� � ��

��� �� � �� ����.

�:

1. � ��� IBM PS/2 �� �� ��� ��� ������� �� ���� �����.

2. ″nonum″� �� � �� ��� ����.

�� ���(���) 361

Page 378: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. �� �� ���� 250 msec� ����, �� �� ������.

chhwkbd -d 250

2. �� �� ���� � 30 CPS� ����, �� �� ������.

chhwkbd -r 30

��

/usr/bin/chhwkbd chhwkbd ��� ���.

�� ��

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Low Function

Terminal(LFT) Subsystem Overview.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

chitab ��

��

/etc/inittab ��� � �� ����.

��

chitab { [ Identifier ] : [ RunLevel ] : [ Action ] : [ Command ] }

��

chitab ��� /etc/inittab ���� �� ����. Identifier:Run Level:Action:Command ���

���� /etc/inittab ��� �� �� �����. ���� ��� ���� Identifier � � ��

��� ��� �� �� � ���. ��� ��� Identifier� � � �� ����.

�: chitab ��� /etc/inittab ���� ��� ��� � ����.

����

Identifier:Run Lever:Action:Command ��� ���� �� ���� ���� /etc/inittab ���

�� �����.

362 �� ���, � 1 �

Page 379: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

Action init ��� ���� ��� Command ��� ���� ���� 20� ���. init ��� �� ��

��� �����.

boot ���� ���� /etc/inittab ��� �� ��� � �� �����. init ��� ���

� �����. � ���� ����� ���� ��, ���� ���� ������ ����.

� ���� �� �� � ����, �� �� init ��� ��� �� �� ��� � �

��.

bootwait

���� ���� /etc/inittab ��� �� ��� � �� �����. init ��� ���

� �����. � ���� ����� ����, ���� ���� ������ ����.

hold � ��� ��� ���� �� ��, �� ���� ���� ����. hold ���

phold ��� ���� �� � ���.

initdefault

init ��� � ��� ����, � ��� ��� ���� ������. init ��� �

�� ��� � ��� �� �� �����. �� � �� ��� � �� ��

��� �� � � ��� �����. RunLevel ���� ��� ��, 0123456789�� ��

��, init ��� 9� �� �� �����. init ��� /etc/inittab ���� initdefault ��

���� � ��, �� ��� �(IPL)�� ������ �� �� �� �����.

off � ��� ��� ���� �� �� �� ��, �� � SIGTERM� ��� �

� SIGKILL� ��� �� 20� � ������. ���� �� ���� � �� ���

���.

once init ��� � �� ��� �� �� �� �, ���� ��� �, ���� ���

���� ����. ���� �� ��, ���� ����� ����. ���� ����

�, ���� �� �� �� ����, ���� ����� ����.

ondemand

����� respawn� ����. � ��� ��� ���� �� ��, � ���� ��

����. �� � ���� �� ��, � �� ���� �� /etc/inittab ��� ���

�����. a, b �� c �� �� �� � � ��� ��� respawn ��� �����

�.

powerfail

init ��� SIGPWR �� �� �� ��� ����, � ��� ��� ���� ��

����.

powerwait

init ��� SIGPWR �� �� �� ��� ���� � ��� ��� ���� ��

��, ���� /etc/inittab ��� ���� ��, � ���� �� ��� ������.

�� ���(���) 363

Page 380: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

respawn

� ��� ��� ���� �� ��, � ���� ������. �� � ���� ��

��, � �� ���� �� /etc/inittab ��� ��� �����.

sysinit init ��� ��� ����� ��, � ��� ��� ���� ������. �� �, �

���� ��� ��� ��� � ���.

wait init ��� � �� ��� �� �� �� ��, ���� ��� �, ����� ���

���. init ��� �� �� �� � � /etc/inittab ��� �� �� �� ����� �

����� �����. ��� �� ���� ���� ��, wait ��� ���� ���� �

� ���� ���.Command � ��� ���� 1024�� �.Identifier ����� ���� ���� 14� ���. Identifier� ���� ���. Identifier� ���� �� ��

��� �����. Identifier� � � ����. � ���� ��� �� ��� �����.RunLevel Identifier� �� � � �� �� ���� 20�� ���. �� ��� �� ��� �� �� init

���� ���� � ���� �� � ���.

��

tty2 �� �� �� ���� �� �� ������.

"chitab tty002:23:respawn:/usr/sbin/getty /dev/tty"

�� ��� ���� �� �� �� �� �� � �����.

��

/etc/inittab init ���� ��� ���� �����.

�� ��

init ��, lsitab ��, mkitab ��, rmitab ��.

chkbd ��

��

� � IPL(�� ��� �)�� ���� � ���� �� �� ����.

��

chkbd KeyMapPathName

��

chkbd ��� ��� IPL� �� � � ���� �� �� ����. KeyMapPathname ���

� ���� �� ��� �� �����. � �� ��� ������ ��� �� ��� � ��

�. �� ���� ��� �� � ��� � � ���� /usr/lib/nls/loc�� ��� ���.

364 �� ���, � 1 �

Page 381: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�: � ��� LFT ������� �� � ���.

�� ��� �� �� � ���� ��, lskbd ��� ������.

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� SMIT(�

�� �� ����� ��) smit chkbd �� ��� ��� � ��� �� � ���.

����

KeyMapPathName ���� �� ��� �� �����.

��

/bin/chkbd chkbd ��� ���./usr/lib/nls/loc �� ����� ���.

�� ��

Keyboard Technical Reference.

AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts� Low Function

Terminal(LFT) Subsystem Overview.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

chkey ��

��

���� ��� �� ����.

��

/usr/bin/chkey

��

chkey ��� ���� ���� � ��� ��� �� ��� �� ������. �� �� ��

���, ypupdated �� /etc/publickey ��� ����.

�� ��

keylogin ��, newkey ��.

keyserv �, ypupdated �.

�� ���(���) 365

Page 382: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/etc/publickey ��.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide� Network Information

Service(NIS).

NIS ���.

chlang ��

��

����� ���� � �� ��� ����.

��

��� �� �� ��� �� �� ���� �� �����:chlang [ -u UID | Uname ] [ -m MsgTransLst | -M ] Language

��� �� �� ���� �� �� ���� �� �����:chlang [ -u UID | Uname ] -m MsgTransLst | -M

�� �� ���� ���� NLSPATH �� ����:chlang -d [ -u UID | UName ]

��

chlang ��� �� ��� �� �� ���� � �� ��� ��� � � � �����. ���

� �� id� ���� -u ��� ���� ���, �� ��� /etc/environment ��� �� ���� �

� ����. ���� �� ID� ��� ���� -u ��� ���� �� ��, �� ���� .profile

���� �� ���� �� ����.

chlang� �� � �� �� �� ��, LANG �� �� ��� ��� �����.

chlang� -m ���� �� ��, LANG � NLSPATH �� �� �����. �� Language ��

�� ��� Language ����� ��� �� �� �� ��� �� LC_MESSAGES �� -m

��� MsgTransLst� ��� � �� ��� �����.

chlang� -d ���� �� ��, NLSPATH �� �� �����.

�:

366 �� ���, � 1 �

Page 383: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

1. /etc/environment �� ���� .profile� ��� �� chlang� �� NLS ��� ����

� ���� ����. /etc/environment� �� �� ��� �� � �����. ���� .profile

� �� �� �� ����� ��� .profile �� ��� �����.

2. ���� ��� ��� �� � ���� C �(/usr/bin/csh)� �� ��, .profile ����

.cshrc ��� �����.

���

-d NLSPATH �� �� �� � �����. � ��� /etc/environment �� ����

.profile�� NLSPATH� �����. NLSPATH� �� ���� ���� � �� �

�, �� ��� �����.-m MsgTransLst NSLPATH �� �� �� � �����. MsgTransLst� ����� ����� ��

� �� � ��� ���� ���� �� �� �(��� ��) ������. �

��� � �� ��� Language ���� ��� Language ���� ��� ��

� ��� � �� LC_MESSAGES �� �� � �� ��� �����. ���� �

�� �� �� ���� ��� �� ��, LC_MESSAGES �� �� �����. �

��� �� ��� NLSPATH ���� � ��� ����� ���.-M LC_MESSAGES �� �� ����� NLSPATH �� �� �� �� � � �

���� �� � �����.

/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:

-u UID �� UName �� ���� �� ��� �� � ��� ���. ���� ��� id �� �� ���

��� ���� �� � ���. chlang � �� id� ����, -u ���� ���

�� ��� ��� (��� �� -u ���� ��� .profile �� /etc/environment� �

�� ����.) ��� ��� ID� �� �� ��� �� � ���. �� ID� ��

� �� �� -u ���� ���� ����. ��� ��, ���� �� id� ��� �

���.Language LANG �� �� �� ��� ��� �� �(��� ��)���.

�� ��

0 ��� ��� �����.>0 �� ��� �����.

��

1. � ���� �������, �� � �� �� ����, ���� � ��� �����. amcleod

���� �� �� �� �� �� ���� ��� �� ����.

chlang -u amcleod -m no_NO:sv_SE:en_US no_NO

amcleod ���� .profile� �� �� ���� ����. Language ���� �� �� �

���� � �� ��� �������

LC_MESSAGES� chlang� ���� ����. LC_MESSAGES� ��� ��, �����.

LANG=no_NO

NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/no_NO/%N:

�� ���(���) 367

Page 384: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/usr/lib/nls/msg/sv_SE/%N:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/no_NO/%N.cat:/usr/lib/nls/msg/sv_SE/%N.cat:/usr/lib/nls/msg/en_US/%N.cat

2. � ���� ����, �� �� �� � ��, ��� � � ��� �����. ��� ��

���� �� ��� ����, �� �� ������.

chlang -m fr_CA:en_US fr_FR

chlang� ��� ���� .profile ��� �� �� ���� ����. �� � ���� �

�� ��� ��� �(���)� �� ��

LC_MESSAGES� chlang� �����.

LANG=fr_FR

LC_MESSAGES=fr_CA

NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/fr_CA/%N:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/fr_CA/%N.cat:/usr/lib/nls/msg/en_US/%N.cat

3. �� ����� ��� ���(�� ��)� � ��� ���� ����� ���� �� �

�� ��� ����� �� � � � �� ��� ��� ��� �����. /etc/environment �

��� � �� ���� �� �� ������.

chlang -m es_ES es_ES

/etc/environment ��� �� �� ���� ����.

LANG=es_ES

NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/es_ES/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/es_ES/%N.cat

��

/usr/bin/chlang �� ��� ����./etc/environment �� ���� �� �� ��� �����.$HOME/.profile �� ���� ��� �� ��� �����.

�� ��

environment ��, profile �� ��.

AIX 5L Version 5.2 National Language Support Guide and Reference� National Language Support

Overview.

368 �� ���, � 1 �

Page 385: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Understanding Locale

Environment Variables.

chlicense ��

��

���� � ���� � � �� ����� �� ����.

��

chlicense [ [ -D | -I ] -u FixedUsers] ] [ [ -v ] -f FloatingStatus ]

�: chlicense ��� ��� �� �� ���� ���.

��

�� �� �� � �� � �� ��� ��� ����� ���. �� ����� �� �� ���

� ����� �� chlicense ��� -u ��� ��� � � ���. � ����� -f ��

� ��� �� �� �� ����� �����.

���

�: chlicense ��� ��� �� �� ���� ���.

-D -D ��� login.cfg ����� �� �� ���� �� ���� ���. -I ��� ���� ��

�� ��� �����.-f FloatingStatus ���� � ���� � � ����. � � on �� off���. on � � � ����� �� ��

�� �� off� � ����� �� ����� ���. -f ��� �����.-I -I ��� chlicense ��� login.cfg ��� � �� ���� ��� �� ���� �� ����� �

� �� ����� ���.-u FixedUser ���� �� ����� �� ����. FixedUser� �� 0 ��� �� � ���. -u ��� �

����.

��

1. ���� �� � ����� �� ���� ���, �� �� ������.

chlicense -f on

2. ���� �� � ����� �� ����� ���, �� �� ������.

chlicense -f off

3. �� ���� �� 125� ��� ����� � ����� �� ���� ����� �� ��

������.

chlicense -u 125 -f on

4. �� ���� �� 5� � ���� �� �� ������.

chlicense -I -u 5

�� ���(���) 369

Page 386: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

lslicense � monitord �.

chlv ��

��

��� ��� ��� ����.

��

��� ��� �� ����� ��

chlv [ -a Position ] [ -b BadBlocks ] [ -d Schedule ] [ -e Range ] [ -L label ] [ -o Y / N ] [ -p

Permission ] [ -r Relocate ] [ -s Strict ] [ -t Type ] [ -u Upperbound ] [ -v Verify ] [ -w

MirrorWriteConsistency ] [ -x Maximum ] [ -U Userid ] [ -G Groupid ] [ -P Modes ] LogicalVolume

...

��� ��� � ����� ��

chlv -n NewLogicalVolume LogicalVolume

�: �� ��� ��� ��� ���� � ��� ���� �� ����� chfs -a Log=LVName

� ���� ���.

��

��: �� ��� �� �� � ��, � ��� �� � ��� ���� ����.

chlv ��� �� ��� �� ��� ��� �� ����. LogicalVolume ���� ��� ��

����� ��� �� ID���. ��� �� ���� ��� �� ����� ��� �� ��

��� �� ���.

-a, -e, -s � -u ��� ���� �� ��� ��� ��� � ��� �����. � �

�� � �����.

��� ��� ��� ����, -n ��� ���� NewLogicalVolume ���� ��� �� �

�� �� ��� ������. � ��� � ��� �� ���� ����.

� �� ��� ��� � volume group� ��� big vg� �� U, G � P ��� ���� ��

�� ��� ���, �� � �� ��� � �� � ���. �� ����� � �� ����

� �����. volume group� ���� importvg ��� �� R ��� ��� �� �� � � �

� �� � ���.

370 �� ���, � 1 �

Page 387: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�:

1. �� ����� ��� ��� ��� ��� ����. �� ��� �� ����, chfs ���

������.

2. � ��� �����, ���� �� ��� ��� ��� system ��� ����� ���.

� �� ��� ���(wsm)�� �� ������ ��� ��� �� �� � � ���. �

� SMIT(��� �� ����� ��) smit chlv �� ��� ��� � ��� �� � ���.

����� ��� ��� �� ��

chfs� �� � �� ����� ��� ��� �� ���� ��� ����� �� ����. �� �

��� ����� ��� ���� ��� �� �� ���� � ��� ����� ��� ��� �

�� �� �� � ����� ��� ���� �� ����� ��� ��� ��� � ��

�� �� �� ����.

���

�:

1. ����� ��� ��� �� � ��, -d, -e � -u ��� ���� ����.

2. ��� �� �� �� ��� �� ��� ��� � �� ��� � ��� ��� �� �

��, -a, -b, -r, -t, -v, -w, -x, -U, -G, -P, -o, -d, -e, -u � -s ��� ���� ����.

-a Position �� ��� �� ��(��� ���� ��� ��� �)� ����

�. Position �� � � ��� �����.

m � ��� ��� �� � ��� ��� ��� ���.

��� � � ����.

c � ��� ��� �� ��� ��� ��� ���.

e � ��� ��� �� ��� ��� ��� ��� ��

�.

ie � ��� ��� �� � ��� ��� ��� ���.

im � ��� ��� �� � ��� ��� ��� ���.-b BadBlocks �� ��� � � ��� ��� �����. BadBlocks �� � �

��� �����.

y �� ��� � � ���� ������.

n �� ��� � � ���� ��� �����.

�� ���(���) 371

Page 388: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-d Schedule �� ��� ��� ��� �� �, ��� ��� �����. ����

� lv� ����� �� �� ��� ���� ���. Schedule �� �

� ��� �����.

p �� ��� ��� ����.

ps �� �� ���� ��� �����. �� �� ��� ���

�� � �� �� �� ��� ���� �� � �� ���

����.

pr � �� �� ��� �����. � ��� �� ��� �

��� �� �� �� � ��� ��� ��� ��� ���

��.

s �� ��� ��� ����.

�� �� �� �� ��� �� �, ���(super) ��� �

�� s� �����.-e Range ��� �� ��( �� � ���� ��� ��� , ���

� ��� ��� �)� �����. Range �� �� Upperbound �

� ����, -u ��� ���� � � ��� �����.

x �� ��� �� ��� ��� ��� ���.

m �� ��� �� ��� ��� ��� ���.-G Groupid ��� �� �� ��� �� ID� �����.-L Label ��� �� �� �����. Label �� � ��� 127����.-n NewLogicalVolume ��� ��� ��� NewLogicalVolume �� ��� ���� ���

�. ��� �� ��� ��� ���� ��� ����� ��, � � 1-15

����.-oY / N ���� ���� ���� ��/�����. ���� ��� ��, � �

� ���� ���� ���� ��� ��� � � � �� ����

�����. �� � ������ �� ��� � ������ ����

���� ���� ����� ���. � ��� ��� �� � �� off

���.-p Permission ��� �� ��� �� �� �� �� ���� �����. Permission

�� � � ��� �����.

w ��� �� ��� �� ��� �����.

r ��� �� ��� �� ���� �����.-P Modes ��� �� �� ��� �� ��(�� �)� �����.-r Relocate �� ��� ��� ������ � ��� ��� � ����

����� �����. Relocate �� � � ��� �����.

y ���� �� ��� �� �� ���� ���� ���. �

�� ��� ���� ��, chlv ��� ���� � ���

��� y� ��� ��� ���.

n ���� �� ��� �� �� ����� ��� ���.

372 �� ���, � 1 �

Page 389: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-s Strict ��� ��� �����. ��� ��� ��� ����� ���� �

�� ��� ��� ��� � ���. Strict �� � � ��

� �����.

y ��� ��� ��� , ��� ��(LP)� ��� �� ��

� ��(PV)� �� � ����.

n ��� ��� ���� ���, ��� ��(LP)� ��� �

� ��� ��(PV)� �� � ���.

s � �� �� � ���� � �� ��� ��� ���

�� � ��� ��� ��� ��� �����.

�: ���� �� ��� ��� ���� ��� ��� ���� � �

� -u ��� ���� ���.-t Type ��� �� ��� �����. � ��� 31�����. ��� ��� �

����� Type� �� �� � ����.-U Userid ��� �� �� ��� ��� ID� �����.-u Upperbound �� � � ��� ��� � �� �����. Upperbount �

� �� 1� ��� ��� � ��� �� ���. ����� ��

� �� �� ��� ��� �� �, ��� � ��� ���� �

�� ��� � �� �����.-v Verify ��� ��� �� �� �� � � �����. ��� ��� �� ��

��� � ��� ����� � ��� ���� �� ���. Verify

�� � � ��� �����.

y ��� ��� �� �� ��� � ��� ���� ���.

n ��� ��� �� �� ��� � ��� ���� �� ��

�.-w MirrorWriteConsistency y �� a

�� ��� �� � ��� ��� �� �� ��� ��� �

�� ���� � � �� ��� �����.

p ��� ���� � �� �� ��� � �� �� ��� ��

� ��� ���� �� � �� ��� �����.

�: � ��� � �� ����� �� �����.

n � �� ��� ����. syncvg ��� -f ��� ����

��.-x Maximum ��� ��� � � ��� ��� � �� �����. ���

�� ��� ��� � �� 32,512���.

��

1. ��� �� lv01� ��� �� ��� ����, �� ������.

chlv -e mlv01

��� �� ��� �� �����.

2. ��� �� lv03� ��� ���� �� �� ������.

chlv -t copy lv03

�� ���(���) 373

Page 390: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. ��� �� lv03� �� ��� �� ���� ���� �� �� �����.

chlv -p r lv03

��� �� lv03� �� �� �� ��� ���.

4. ��� paging � ��� �� lv03� �� ��� ��� � �� ���� �� �� ����

��.

chlv -t paging -u 10 lv03

��� ��� ��� �� �� � ����� ��� ��� � �� �� �� �� �

���� � �����.

5. ��� �� lv07� �� ����, �� �� ������.

chlv -a e -e x -r y -s n -u 5 lv07

��

/usr/sbin chlv ��� � ����.

�� ��

chfs ��, extendlv ��, lslv ��, mklv ��, mklvcopy ��, reorgvg ��, rmlvcopy ��, syncvg

��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Logical Volume

Storage Overview��� ��� �� ���, ��� ��, ��� ��, �� ��, ��, ��� �� �

� � �� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview��� ��, �� � � SMIT� ���� ���� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

chlvcopy ��

��

� ��� �� ����� ��� �����.

��

chlvcopy [ -f ] { -B [ -s ] } | { -b [ -c copy ] [ -f ] [ -P ] [ -l newlvname ] [ -w ] }

LV name

374 �� ���, � 1 �

Page 391: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�:

1. � ��� ����� ���� �� ��� ��� ��� ��� ��� ����� ���.

2. -P ��� ����� -l �� ���� � � ��� �� ��� �� ��� ��� �

� AIX 4.3.2 ����� �� ��� �� �����. �� � ��� �� � � � ��� �

�� � �� ��� ��� ��� �������.

3. �� �� �� ���� chlvcopy� ���� �� �� �� AIX 4.3.2 ��� �� ���.

4. ��� ��� ��� �� ��� ��� � �� ��� �� ��� �� ��� � ��, chlvcopy

��� ���� ����.

chlvcopy�� � ��� �� ����� �� ��� �� ��� ���� ���. � ��� �

��� ��� � ���� �����.

chlvcopy ���� �� � ��� ��(��� �� ���� � � ��� ��� ���)� �

��� � ��� �� � ��, � ��� �� ���� � � ������ ���

� � � ��� ����� ���� ����. chlvcopy ��� �� � � ��� �����

�����, �� ����� ��� ��� ��� ����� ������ ��� � � �� �� �

�� ��� � �� ��� ��� �����. �� ��� ��� �� �, ���� ����

� �����. �� ��� � �� ��� ��� ��� � ��� ���� �� ��� �

�� ��� ���.

� ��� ��� ���� � �� ��� ���� �� �� ���� �� ��� ��� �� �

�� ���� �� ���� ��� �� ����� ��� varyonvg� �� -n ��� ���� ��

�. �� ��(-P)� ��� �� �� �����. ��� ��� � �( � � � �)

��� ��� �� ��� ��� ���� ��� � ��� �����.

���

-b � ��� � ���� �����.-c copy � ���� �� � ��. ���� �� �� 1, 2 �� 3���. � ��� ���

� �� �� ��� � �� ��� ��� � �����.-B � ���� ��� �� ��� �����. -l ���� � � ��� ��� �

� �� � ��� ��� ���� �����.-f ���� ��� ��� � ��� �� �����. -B ���� ��� ��, -l ��

�� �� � � ��� ��� force ���� �����.-l newlvname � ��� ��� �� ��. -l ��� ���� �� ��� ����� ������

� newlvname� �� � ��� ��� � ���.-P ��� � ��� � ��� ��� �� ��� ���� (�� � ���) � �

��� ��� � ��� ��� �� � �� ���.-s ��� ��� �� ��� syncvg� �����.-w � ��� �� ���� ��� �����(� �� � ��� �� ���� �

�� ����).LV name �� �� ��� ��.

�� ���(���) 375

Page 392: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

readlvcopy � chfs ��.

chmaster ��

��

chmaster ��� ypinit ��� ���� NIS �� ���� ��� ��� ����.

��

/usr/etc/yp/chmaster [ -s HostName [ , HostName ... ] ] [ -O | -o ] [ -E | -e ] [ -P | -p ]

[ -U | -u ] [ -C | -c ] [ -I | -B | -N ]

��

chmaster ��� ypinit ��� ��� �� ���� �� ��� ��� ��� ���, �� ��

� �� NIS �� ����. ypinit ��� ���� chmaster ��� ypserv ��, yppasswdd ��,

ypupdated �� � ypbind ��� �� /etc/rc.nfs ��� ����� ���� ����� �� ��� �

����.

� �� ��� ���(wsm)�� ���� ������ ��� ���� �� � � ���. �

� SMIT(��� �� ����� ��) smit chmaster �� ��� ��� � ��� �� � ��

�.

���

-B /etc/rc.nfs ��� �� � �� ����, ypinit ��� ����,

�� �����.-C ypbind �� �� ypserv �� �����. � ��� � ����.-c ypbind �� ��� �����.-E ��� �� �� ypinit �� � chmaster ��� ����. � ��

� � ����.-e ��� �� �� ypinit �� � chmaster ��� �� �����.-I chmaster ��� /etc/rc.nfs ��� �� � ��� ��� � �

�� ����� �����. � ��� ���� ypinit ��� �����.-N ypinit ��� ���� � �� �����. /etc/rc.nfs ��� ���

����.-O � ��� �� �� !����.-o NIS � !���� �����. � ��� � ����.-P yppasswdd �� �� ypserv �� �����.-p yppasswdd �� ��� �����. � ��� � ����.-s HostName [, HostName ] � ��� ��� �� �� � ��� ��� �����. chmaster �

�� �� ���� � ���� �� �����.-U ypupdated �� �� ypserv �� �����.-u ypupdated �� ��� �����. � ��� � ����.

376 �� ���, � 1 �

Page 393: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

ypinit ��� ��� �� ��� �� NIS �� ������, �� ������.

chmaster -s chopin -O -p -u -B

� ���, chmaster ��� �� �� !��� yppasswdd � ypupdated �� ���� ����. �

�� �� chopin� � ��� �����.

��

/etc/rc.nfs NFS � NIS �� �� �� ����� �����./var/yp/domainname NIS ��� �� NIS �� �����.

�� ��

mkclient ��, rmyp ��, smit ��, ypinit ��.

ypbind �, yppasswdd �, ypserv �, ypupdated �.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview.

AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide� Network Information

Service(NIS).

NIS ���.

chmod ��

��

�� �� ����.

��

�� ��� ��� ��(��)chmod [ -R ] [ -h ] [ -f ] [ [ u ] [ g ] [ o ] | [ a ] ] { { - | + | = } [ r ] [ w ] [ x ] [ X ] [

s ] [ t ] } { File ... | Directory ... }

�� ��� ��� ��(��)chmod [ -R ] [ -h ] [ -f ] PermissionCode { File ... | Directory ... }

�� ���(���) 377

Page 394: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

chmod ��� ��� ���� ����� � ��� �� ���(ACL) � � ��� �����. �

� ��� ��(�� �)� �� � ���.

�� ��� ���� -h ��� ���� �� ��, chmod ��� �� �� �� �� ��� ���

���� ���� �� ����. -h ��� ��� ��, chmod ��� � �� �� ����

�.

-h �� � -R �� �� ��� �� ��, chmod ��� ��� ����� ����� ���, �

� ��� �� ��, ��� ��� �� �� ����� �� ��� ����.

���

-f ���� �� �� �� � ��� ���� ���� �� ���� ��� �����.-h ��� �� ��� ��� ���� ����� �� � �� �����.

�: � ��� � ��� �� ���� �� � ����, chgrp � chown ��� �� -h ��� ��

� �� ����.-R File...|Directory... ���� ��� ������ ����� �!���� �����. -R ��� ��� ��� �

��� �� �� � ����� �� � ��� ����. �� 6� ������.

�� ��� ���� ��� ����� �� ��, � ����� �� � ��� ���� ����� � �

� ���� ����.

�� ��

�� ���� �� �����, � � �� �� ��� ���� ���.

�: ���� ��� ��� ����.

��� � �� ��� ��� �� ��� � ��� � �� �� ��� �� �� �����.

u �� ���

g �� � �� ��� ��� � ACL ��o �� � 3�a ���, �� � �� � 3�. a ��� ugo ��� �� ���� �� �� ��� ����. � ��� �

��� �� �� � �� a ���� �� � ���(umask)� �����.

� �� �� ��� �� ��� ��, �� �� ���� �����.

- ��� �� ��� �����.+ ��� �� ��� �����.= �� �� �� �� ��� �� ��� �� ���� ������. = �� �� ��� ���� �� ��

chmod ��� � ��� �� �� ��� �����.

� �� �� ��� ��, �� �� �� �� ��� �����.

r �� �� ��

w �� �� ��

378 �� ���, � 1 �

Page 395: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

x ��� ���� �� �� ��; ����� ���� �� �� ��.X ��(���� ��) � ��� �� � ��� ���, ���� � �� �� ��� �� ��, ��� ���

� �� �� ��. File ���� ����� �� � ���� �� �� ��� ���� �� �� X ���

�����.

����� ���� �� �� ��

s u ��� ����� ���� �� �� ��� �� ��� ID� �����. g ��� ����� ���� �

� �� ��� �� �� ID� �����.t ����� �� , �� ����� ��� ������ ��� ����� �� �� � � �����. ��

� ��, save-text �� �����.

�� �� �� ��

chmod ��� �� ���� �� �� 8� ���� �� � � ���. �� �� �� ���

� �� �����.

4000 �� � ��� ID� �����.2000 �� � �� ID� �����.1000 ����� �� �� �� ��� ����� ��� �� 6save-text �� �����.0400 ����� ��� �����.0200 ����� ��� �����.0100 ����� ���� ��� �����.0040 ���� ��� �����.0020 ���� ��� �����.0010 ���� ���� ��� �����.0004 � 3�� ��� �����.0002 � 3�� ��� �����.0001 � 3�� ���� ��� �����.

�:

1. �� �� ���� �� � ACL� �� ����� ���. ��� ��� AIX 5L �� 5.2

��� ��� ��: ��� � ��� ��� �� ���″� ������.

2. �� ��� ��� ��� �� ��� � ACL ��� �� ����. ��� �� ���

�� ACL� �� ��� ��� ��� �� ��� �� �����. ��� ��� ″��� �

� ���″� ������.

3. � �� �� �� ��� �� �� � ���. ��� ���� � ��� ����

� �����.

4. �� � �� ID �� �� ��� ������ �� �� �� ��� ����� 0�� ��

�� 4��� 8��(�: 0755)� ���� ���.

��

��� ��: � ���� �� ����(TCB)� �� ��� ����� ����� ���.

��� ���� �� ����� ��� �� � � ���.

�� ���(���) 379

Page 396: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ��� � ��� �� �� �������.>0 ��� ������.

��

1. �� ��� ��� � �� ��� �����, �� �� ������.

chmod g+w chap1 chap2

��� �� ��� �� �� ��� chap1 � chap2 ��� �����.

2. # �� �� ��� � �� ���� �� �� ������.

chmod go-w+x mydir

��� �� �� � � ���� mydir�� ��� ���� � ��� ����(go-w), ��

�� � � ����� mydir� ����� �� ���� � ����� �� ��� �����

(go+x). ��� � ���� ��� ��� �����.

chmod g-w mydirchmod o-w mydirchmod g+x mydirchmod o+x mydir

3. ���� � ���� ���� �� � � ��� �� �� ������.

chmod u=rwx,go= cmd

��� ��� ��� ����� ��, �� � �� ��� �����(u=rwx). ��, �� �����

�� � � ���� cmd� ��� � � ��� �����(go=).

����� cmd � �� ��� �� ��� � �� �� �� ��� ��� �� � ��

�.

cmd

�: PATH � �� �� cmd ��� �� �� ��� ���� � ���.

4. ID � ��� ����� �� �� ������.

chmod ug+s cmd

cmd ��� ���� �� ��� � �� ID� cmd ��� ��� ID� �����. cmd ��� ���

� � ���� ��� �� ID�� ����. � ��� �� ID� ��� �� �� ���.

� ��� ���� ��� ��� ��� � � ���. cmd ���� �� �� ��� ID ��

�� �� dbms�� ���� ����� �����. ��� dbms� �� ��� ����, ����

�� �� ���� �� � ���. ��� betty� dbms� ��� ��� ��� �� ��� �

380 �� ���, � 1 �

Page 397: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ����. ��� cmd ��� �� �� ��� ���. ��� ���� �� ��� ID� ��

dbms� ���� cmd ����� dbms ���� ��� ��� ��� ��� � ���.

� ���� betty ���� cmd ��� ��� ��� ��� ��� � �� ��� �� �

���� ��� ��� ���� �� ����.

5. chmod ��� �� � ��� ����� �� �� ������.

chmod 644 text

���� �� �� � �� �� ��� ����, �� � � 3�� �� �� �� �� ����

�. �� ��� ��� �� � ACL� �����.

6. ����� ���� �!���� ��� � �� ��� ��� �� � ���� �� ��� ���

� �� �� ������.

./dir1/dir2/file1

./dir1/dir2/file2

./dir1/file1

� ���� ������.

chmod -R 777 f*

./dir1/file1� �� �� ��� ����.

� � � �� ��� �� ����.

./dir1/fdir2/file1

./dir1/fdir2/file2

./dir1/file3

���� �� ����.

chmod -R 777 f*

�� �� �� ��� ����.

./dir1/fdir2

./dir1/fdir2/file1

./dir1/fdir2/file2

./dir1/file3

��

/usr/bin/chmod chmod ��� �����.

�� ���(���) 381

Page 398: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

acledit ��, aclget ��, aclput ��, chown ��, chgrp ��, ls ��.

chmod ���, fchmod ���.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��� � ��� ����� �� �

��� �� � ����� �� ��� ��� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Security Administration

��� ��� �� �� �����.

AIX 5L �� 5.2 � ��� TCB �� � ���.

chnamsv ��

��

����� TCP/IP �� �� ��� ���� ����.

��

chnamsv [ -a″Attribute=Value ...″ | -A FileName ]

��

chnamsv � � ��� ����� TCP/IP �� �� ��� ���� ����. � ���

/etc/resolv.conf ���� ����. � ��� �� �� ������� ��� ����.

������ �� �� ��� ���� � ��, chnamsv ��� namerslv � � ��� ��

� resolv.conf ��� ��� ���� ����.

� �� ��� ���(wsm)�� ���� ������ ��� ���� �� � � ���. �

� SMIT(��� �� ����� ��) smit namerslv �� ��� ��� � ��� �� � ��

�.

���

-A FileName �� � � �� ��� ��� ���� �� ��� �����.-a″Attribute=Value ...″ � ��� � ���� �� ��� ������� �� � � �� ���

��� ��� � �����.

�� � � �����.

domain �� �� ��� �� ��

nameserver

�� �� ��� ��� ��

382 �� ���, � 1 �

Page 399: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. �� �� ��� ��� ����, �� ��� ��� ������.

chnamsv -a″domain=austin.century.com nameserver=192.9.200.1″

� ����� �� ��� �� �� ��� ����. �� ��� �� ��� !����.

2. � ��� ��� �� �� �� ��� ��� ���� � ���� ��� ������.

chnamsv -A namsv.file

� ����, �� ��� � ��� namsv.file���.

��

/etc/resolv.conf �� �� �� DOMAIN �� �� ��� ���.

�� ��

namerslv ��.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Name Resolution.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Reference.

chnlspath ��

��

� NLSPATH ��� ��� �� �� �����.

��

chnlspath NlspathValue

��

chnlspath ��� � NLSPATH ��� ��� �� ����� �����.

���

NlspathValue chnlspath� � NLSPATH ��� ��� �� �� �.

�� ���(���) 383

Page 400: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

lsnlspath ��.

chnfs ��

��

��� ���� �� ��� �� biod � nfsd �� �����.

��

/usr/sbin/chnfs [ -n NumberOfNfsd ] [ -b NumberOfBiod ] [ -I | -B | -N ]

��

chnfs ��� ��� �� biod � nfsd �� �����. chnfs ��� SRC ������� �����

�� �� �����. �� ��� �� � � � ��� �� ������.

���

-B ����� �� �� �� �� ����� ����, SRC ������ �� ���

�� �� ���, ��� �� ������. � ��� � ����.-b NumberOfBiod ����� �� biod �� �� �����.-I ��� �� �� � ��� ��� �� ����� SRC ������� �����

����.-N ����� �� �� �� �� ����� ���� ��� �� �� ������.-n NumberOfNfsd ����� �� nfsd �� �� �����.

��

nfsd � �� 10, biod � �� 4� �����, �� �� ������.

chnfs -n 10 -b 4 -I

� ��� ��� �� � �� ������.

�� ��

mknfs ��, rmnfs ��.

biod �, nfsd �.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� NFS Installation and

Configuration.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� List of NFS Commands

384 �� ���, � 1 �

Page 401: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Resource

Controller Overview.

chnfsexp ��

��

NFS ������ ����� �� �� ��� ��� ����.

��

/usr/sbin/chnfsexp -d Directory [ -f Exports_file ] [ -t [ { rw | ro | rm -h HostName [ ,HostName

... ] } ] ] [ -a UID ] [ -r HostName [ , HostName ... ] ] [ -c HostName, HostName ... ] ]

-s | -n ] [ -I | -B | -N ] [ -P | -p ]

��

chnfsexp ��� NFS ������ �� ��� ����� ���� �� � ����� ���� �

��� ��� ����. ���� ��� ��� �� �� �� ��� �����.

���

-a UID ���� �� ������ ��� � ���� UID �

��� �� ��� ID� �����. � ��� �

� �� -2���.

�: �� ���� �� ��� ���� �� ��, NFS

��� �� ���(uid 0)� �� ″unknown″�� �

���. UID� �� -1� ���� "��� ��� �

����.-B /etc/exports ��� ��� ��� � �� �

exportfs ��� ���� ����� �� �����.-cHostName [ ,HostName ] ... ��� � ������ �� ��� ��� ���

��. ������ ���� ���� � ��� � �

��. � �� �� ��� ��� ��� ���� ��

��.-d Directory � �� ����� �����.-f Exports_file /etc/exports �� �� ��� �� �� �� ���

�� �� ��� �����.-hHostname [ ,HostName ] ... ����� �� �� �� ��� ��� �� ����

�����. � ��� ����� �� �(read-

mostly)� ���� ���� �����.-I �� exportfs ��� �� � �� ��� ��� �

� ����� ����� /etc/exports ��� ��� �

����.-N /etc/exports ��� ��� ���� ��� ��� �

��� � ���� exportfs ��� �����.-n �� �� ���� ���� � ������ �

��� ����. � ��� � ����.

�� ���(���) 385

Page 402: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-P ��� ����� �� ����� ��� �����. �

��� AIX 4.2.1 ���� �����.-p ��� ����� �� ����� �� ��� ����

�. � ��� AIX 4.2.1 ���� �����.-r HostName [ , HostName ] ... ��� ���� �� ����� ����� �� ���

��� � ���. � �� �� ��� ��� � �

� ���� �� �����.-s ����� ��� ��, �� �� ���� ��

��� ������ �����.-t Type ������� ��� �� ���� �� �� ��

� ��� �����.

rw �� �� �� ���� ����� �����.

��� � ����.

ro �� �� �� ���� ����� �����.

rm �� � �� ���� ����� �����.

� ��� � ��, �� �� �� ���

�� ���� ����� -h ��� ���

� ���.

��

1. ��� ����� ��� ��� �� ��� ���� ��� � � ���� ���� � �

� �� ���� ���, �� �� ������.

chnfsexp -d /usr -t rw -c host1,host3,host29,grp3,grp2 -B

� ����, chnfsexp ��� /usr ����� �� �� host1, host3 � host29 ���� grp3

� grp2 ���� �� � �� ��� �����.

2. ��� ����� ��� ��� �� ��� ���� ���, �� ��� �� ��� ����,

� � ���� ���� � � � �� ���� ���, �� �� ������.

chnfsexp -d /usr -t rw -c host1,host3,host29,grp3,grp2-f /etc/exports.other -B

� ����, chnfsexp ��� /usr ����� �� �� host1, host3 � host29 ���� grp3

� grp2 ���� �� � �� ��� ���� �� ��� �� ��� /etc/exports.other� ��

���.

��

/etc/exports ��� �� � � ����� �����.

�� ��

exportfs ��, mknfsexp ��, rmnfsexp ��.

386 �� ���, � 1 �

Page 403: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

NFS �� ���

chnfsmnt ��

��

NFS(���� �� ���) ���� ����� ���� � ��� ��� ����.

��

/usr/sbin/chnfsmnt -f PathName -d RemoteDirectory -h RemoteHost [ -t { rw | ro } ] [ -m

MountTypeName ] [ -w { fg | bg } ] [ -X | -x ] [ -S | -H ] [ -Y | -y ] [ -Z | -z ] [ -e | -E ] [ -a

| -A ] [ -j | [ -J ] [ -q | [ -Q ] [ -g | [ -G ] [ -s | -n ] [ -I | -B | -N ] [ -r TimesToRetry ] [ -R

NumRetrans ] [ -b ReadBufferSize ] [ -c WriteBufferSize ] [ -o TimeOut ] [ -P PortNumber ] [ -u

AcRegMin ] [ -U AcRegMax ] [ -v AcDirMin ] [ -V AcDirMax ] [ -T AcTimeO ] [ -p NumBiods ]

[ -K { any | 2 | 3 } ] [ -k { any | tcp | udp } ]

��

chnfsmnt ��� �� ��� �� ���� �� ��� ����. ��� �� �� ����

/etc/filesystems ��� �� ���� �� ��� �� �� ���� �� NFS ���� ����

�� ���. � ��� ����� ���� ���, ��� ��� ���, ����� �� ����

�����.

���

-A � �� ���� �� /etc/filesystems ��� ���� ��� � ���� �� ���� ��

��� �� �����.-a � �� ���� �� /etc/filesystems ��� ���� ��� � ���� �� ���� ��

�� �� �����. ��� � ����.-B /etc/filesystems ��� ��� ��� � ��� �� � ���� ��� �� ���� ��

�����. � ��� � ����.-b ReadBufferSize �� ��� ��(N ��)� �����.-c WriteBufferSize �� ��� ��(N ��)� �����.-d RemoteDirectory �� �� ��� �� ����� �����.-E � ���� �� ����� �����.-e � ��� �� ����� �����. � ��� � ����.-f PathName ����� �� �� � � �����.-G � ����� �� ID� ���� � �� ����� �� ���� ����� ���� ��

��.-g � ����� �� ID� ���� � �� ����� �� ���� ����� ���� ��

��. ��� � ����.-H ��� � ���� ��, ��� �� ��� ������ �� ���� ���.-h RemoteHost ����� ���� NFS ��� �����.-I /etc/filesystems ��� ��� ���� ����� �� ����� ����.

�� ���(���) 387

Page 404: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-J acl� � ��� ���� �����.-j acl� � ��� ���� �� �����. ��� � ����.-K � NFS ��� ���� NFS ��� �����. � ��� AIX 4.2.1 ���� �����. �

�� �� ����.

any mount ��� ��� , �� ��� � NFS ��� � ��� � �� ����

���� �����.

2 NFS 2 ��� �����.

3 NFS 3 ��� �����.-k ��� ���� �� ���� �����. � ��� AIX 4.2.1 ���� �����. ���

�� ����.

any mount ��� ��� �� ���� ����. TCP ���� ��� ���

���.

tcp TCP ���� �����.

udp UDP ���� �����.-m MountTypeName /etc/filesystems �� ��� ���� � �� �� ����. mount -t �� MountTypeName

� ��� �� � ��� ���� �� �� �� ��� �� �� ���� �����.-N /etc/filesystems ��� � ��� �� ��� �����. ����� �� �� ��, ��

�� ���, ��� ��� ���� �� �����.-n �� �� ���� ���� ��� ��� �����. � ��� � ����.-o TimeOut NFS � � ��(N/10�)� �����.-P PortNumber ��� IP �� ��� �����.-p NumBiods �� �� ����� ����� ��� biod �� �� �����. � �� 6���.-Q posix pathconf ��� ���� NFS �� 2 ���� �� ���� �� ��� �����. NFS

����� �� �� 2 rpc.mountd� �����.-q NFS �� 2 ���� ��� �� posix pathconf ��� ���� ��� �����. ��� �

����.-r TimeToRetry ��� ��� �� �����. � �� 1000���.-R NumRetrans �� ��� ��, ��� ��(ACK)�� ��� ��� �� �� �����. NumRetrans

�� ��� ��� ���� ���, ������ ��� �����. � ��� ���� �� �

�, � � � 3� �����.-S ��� �� ���� ��, ��� ���� �� ��, ���� ��� ����� ����.-s �� �� ���� ����� ��� �����.-TAcTimeO �� �� � ����� ��� � � � � � AcTimeO�� �����. � ��� ��� �

�, � ��� � � � �����.-t ����� �� �� �� �� ���� ���� �����.

rw ����� �� ��� �����. � ��� ���� � ����.

ro ����� �� ���� �����.-U AcRegMax �� �� � AcRegMax� � ���� �� �����.-u AcRegMin �� �� � � AcRegMin� � ���� �� �����.-V AcDirMax ���� � � AcDirMax� � ���� �� �����.-v AcDirMin ���� � � � AcDirMin� � ���� �� �����.-w { fg | bg } ��� ����(fg) �� ���(bg)�� ���� � �����. bg� ���� ���

�� ����� ��� �� ��, ����� ��� ������. fg ���� � ��

��.-X ��� �� ��� ����� �����. ��� � ����.-x ��� �� ��� ���� ��� �����.-Y � �� ����� suid � sgid ���� ��� ���� �����. ��� � ����.-y � �� ����� suid � sgid ���� ��� ���� �� �����.-Z � ��� �� �� ���� ���� �����. ��� � ����.

388 �� ���, � 1 �

Page 405: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-z � ��� �� �� ���� ���� �� �����.

��

��� �� ���� ����, �� �� ������.

chnfsmnt -f /usr/man -d /usr/man -h host1 -t ro

� ����, chnfsmnt ��� ��� ����� �� �� ���� ����.

��

/etc/filesystems ���� ����� � �� �� �� ���� �����.

�� ��

mknfsmnt ��, mount ��, rmnfsmnt ��.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� How to Mount an

NFS File Explicitly.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� List of NFS Commands

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Network File

System(NFS) Overview for System Management.

chown ��

��

��� ��� ���� ��� ����.

��

chown [ -f ] [ -h ] [ -R ] Owner [ :Group ] { File ... | Directory ... }

chown -R [ -f ] [ -H | -L | -P ] Owner [ :Group ] { File ... | Directory ... }

��

chown ��� File ���� ��� ��� ���� Owner ���� ��� ���� ����. Owner

���� �� /etc/passwd ���� � ��� ID �� ���� � ���. ��� �� ��� �

� � ���. Group ���� �� �� ID �� /etc/group ��� �� ��� � ���.

�� ����� ��� ���� � � ���. �� ������ ��� �� ���� ��� �

�� � � ���. ��� ����� �� ���� �� ��, ���� ��� ����� �

� ���.

�� ���(���) 389

Page 406: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-H, -L � -P ��� �� ������, � ��� ���� �� ��� ��� ����. ���� �

�� ��� ��� ���� ��� �����.

���

-f ��� ��� ��� �� �� ��� �����.-h ��� �� ��� ���� ���� �� ��� ��� ���� ����� ���� ��� ����.

�� ��� ���� ���� -h ��� ���� �� ��, chown ��� �� ��� ���� �� ��� �

�� �� �� ����� ���� � � ���.

-R ��� �� ��, chown ��� ��� ����� ����� ����.-H -R ��� ���� �� ����� ��� ���� �� ��� ���� ���� �� chown ��� �� ���

��� ����� ��� ID(� ��� �� �� ID) � � �� � �� ��� �� ��� ����.-L -R ��� ���� �� ����� ��� ���� �� ��� ���� ����� �� ��� ��� � ��

� ��, chown ��� �� ��� ��� ����� ��� ID(� ��� �� �� ID) � � �� � ��

��� �� ��� ����.-P -R ��� ���� �� ��� ���� ����� �� ��� ��� � ��� �� chown ��� ����

� ��� ���� �� �� ��� ��� ID(� ��� �� �� ID)� ����. chown ��� �� ���

� � � �� �� ��� ��� ����.-R ��� �� ���� ��� ����� ����� ����. �� ��� ���� ��� ����� ��

��, � ����� ���� ���� ����� � �� ���� ����. -h, -H, -L �� -P ��� ��

�� �� ��, �� ��� ���� ��� ����� �� � � ����� �� ���� ���� ����

� � �� ����� ����.

��

��� ��: � ���� �� ����(TCB)� �� ��� ����� ����� ���.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ��� � ��� �� �� �������.>0 ��� ������.

��

1. �� program.c� ���� ���� �� �� ������.

chown jim program.c

program.c� �� ��� ��� ��� �� jim� �����. ���� jim� chmod ��� ��

� program.c� �� � ��� ���� ����� �� � ���.

2. /tmp/src ����� �� ��� �� ��� � ��� john ��� � build ���� ����

�� �� ������.

chown -R john:build /tmp/src

390 �� ���, � 1 �

Page 407: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/chown chown ��/etc/group �� ID� ���� ��

/etc/passwd ��� ID� ���� ��

�� ��

chgrp ��, chmod ��.

chown ���, fchown ���.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��� � ��� ����� �� �

��� �� � ����� �� ��� ��� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Security Administration

��� ��� �� �� �����.

chpath ��

��

��� �� � � MPIO(MultiPath I/O) �� ��� ����, ��� ��� �� MPIO �� ��

� ����.

��

chpath -l Name -s OpStatus [ -p Parent ] [ -w Connection ]

chpath -l Name -p Parent [ -w Connection ] [ -P ] -a Attribute=Value [ -a Attribute=Value ... ]

chpath -h

��

chpath ��� ��� �� � � ��� ��(-l Name ��)� ���� �� ��� ��� �� �

�� �� ��� ��� ����. ��� ��� ���� �� � ����.

� ��� � ��� �� ��� ��� �� � � �� ��� ����. � �� ��� � �

�� ���� �� ��� ���� �� � ���.

v �� ��� ��� ��� �����.

v � � ��� ��, � ��� ��� � � �����(-p Parent).

v ��� ��� ��, ��� ��� ��� �����(-w Connection).

v �� � � PATH_AVAILABLE���.

�� ���(���) 391

Page 408: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �� � � MPIO �� �� ��� �� ��� ����. enable� �� ��� �� ��

� ���� �� disable� ��� ���� �� ��� �����. ��� disable� ���� �� ��

�� ���� �� �� ���� �� ��� ��� ���� ���. ��� � �� �� �� ��

�� �� ��� ��� �� ����� �� � �� � ���� �� �� ���� ��

�. ��� �� -s disable� ����� ���� ���� �� �� �� � ��� �����.

��� �� ����� �� �� ��� �� �� �� �� ���. �� ��� ������

� � ��� path_status� ��� ����. ��� �� �� � � ��� lspath ��� ����

���.

� ��� � �� ��� �� ��� ��� �� ��� �� �� �� �� ��� ����. �

�� chpath �� ��� ��� �� � � ��, �� �� � �� ��� ����� ���.

, � �� chpath �� ��� ��� ��� � �� � � ����. �� ��� � ��

����, ��� chpath ��� �����(� ��� �� ���).

���

-aAttribute=Value �� �� �� �� � �� �����. Attribute� �

� �� �� �����. Value� Attribute� �� �� ��

�� ����. � � ��� �� ��� � � � ���

-a Attribute=Value ����� �� � ���.-h �� ��� ��� �����.-l Name ����� �� �� ��� �� �� ��� ��� �� �

�� �����. � ��� �� ��� �����.-p Parent � ��� ��� �� � ��� ��� �� ��� �

����. � ��� �� � �� ����� �� �

� � �� �����.-P ��� ��� ��� �� ��� �� ���� ODM �

��� ���� ����. ���� � �� ��� �

�� ���� �� ��� �(��� � � �� �) ��

� �����.-w Connection � ��� ��� �� �� ��� �����. � �

�� �� � � � � �����. � � �, ���

��� � � �� ��� ��� � �� �����. �

�� ���� � �� ��� � ��, ��� �� ���

���� � � ��� �����.

392 �� ���, � 1 �

Page 409: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-s OpStatus ��� ��� � �� � � �����. ��� �� �

� �� ��� �� �����. ��� �� �� ��

� ��� �� ���� �� �����. � ��� ��

� � �� �� ����.

enable MPIO �� �� �� �� � � enabled� ���

��. � � � ��� �� �� �� � �� �

�� �����. failed ��� ��� ���� ���

��� �� ��� � � �� ����.

disable MPIO �� �� �� �� � � disabled� ��

���. � � � ��� �� �� �� � ��

��� ���� ����.

� ��� �� � � � � �����. -a Attribute=Value

��� �� �� ��, �� ��� �����.

��

�� ��: �� ��� � ��� ��� ��� � ��� �� �� ���� ����.

�� ���:

��� ��

DEV_Change chpath ���.

��

1. scsi0� hdisk1 ��� �� ��� ��� �� ����� ����� �� �� ������.

chpath -l hdisk1 -p scsi0 -s disable

����� � � ��� �� ��� �����.

paths disabled

��

some paths enabled

� �� ��� scsi0�� hdisk1��� �� PATH_AVAILABLE ��� ���� �� �� �

� � � �����. � �� ��� scsi0�� hdisk1��� �� PATH_AVAILABLE �� �

��� ���� �� ��� � � � � �����.

��

/usr/sbin/chpath chpath ��� ���.

�� ��

lspath ��, mkpath ��, rmpath ��.

�� ���(���) 393

Page 410: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chprtsv ��

��

����� �� �� ��� �� �� ��� ���� ����.

��

chprtsv -c | -s [ -d | -i ] [ -h″HostName...″ | -H FileName ] [ -x″HostName...″ | -X FileName ]

[ -q″QEntry″ -v DeviceName -a″Attribute =Value...″ -b″Attribute =Value...″ | -A FileName ]

��

chprtsv � � ��� ����� �� �� ��� �� �� ��� ���� ����.

������ �� �� ���� ��� � chprtsv ��� �� �����.

1. chque � chquedev ���� ����� �� ����� �� ����� �����.

2. chque � chquedev ���� /etc/qconfig ��� � ��� ����.

3. ����� �� ����� chque � chquedev ��� ��� �� ���� ���.

��� �� �� ���� ��� � chprtsv ��� �� �����.

1. ��� �� ruser � ��� ��� �� ���� ���� �� ���� ����.

2. ��� �� chque � chquedev ��� ��� �� ���� � qconfig ��� ��� ����.

3. SRC refresh ��� ��� lpd � qdaemon ��� �� �����.

����� �� ����, ���� �� � ����� ��� �� ��� � ���. ���� ��

� �� ����, ���� ��, ���� �� �� � ���� ��� ��� �� ��� � ��

�.

chprtsv -i ���� � �� ��� ������ � �� �� �� ���� ��� �����.

�� ���� �� �� ���� ���� �� � ���� ���� ��� chprtsv-d ��� ��

� ��� ��������� TCP/IP � ��� ���� ������ �����.

���

-A FileName qconfig �� �� ��� � ��� ��� �����.

394 �� ���, � 1 �

Page 411: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-a ″Attribute=Value...″ �� �� �� � ���� ��� ��� qconfig �� �� ���� ��� �

�� � �����. ���� �� ��� �� ���. ��� � ��� �� ��

��.

acctfile(true/false)

print ���� ��� ���� � ���� ��� �����. false � �

�� ����� �����. �� � � ��� �� ��, ����� ����

����.

device �� ���� ���� �� ��� �����.

discipline

���� �� ����� �����. � �� fcfs� ����� ����.

sjn� �� �� ����(SJN)� ����.

host �� ��� ��� �����. (� ���� ��� HostName �� ���

��� ��� ���.)

l_statfilter

� AIX ���� AIX ���� ���� � ��� ����.

s_statfilter

�AIX ���� AIX ���� � ���� � ��� ����.

up(true/false)

����� � � �����. � �� true� ����� �� ��� ����

�. false �� ����� �� �� ��� �����.

�� ���(���) 395

Page 412: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-b″Attribute=Value...″ �� �� �� � ���� ��� ��� qconfig �� �� ���� ��� �

�� � �����. ���� �� ��� �� ���. ��� � ��� �� ��

��.

access(write/both)

��� ��� ��� file �� ��� ��� �����. access ��� �

�� ��� �� ��� ��� �� �� write �� ���, ��� ��

� �� ��� ��� �� �� both �� ����. �� �� false �� �

� �� � �� �����.

align(true/false)

��� �� � � ��, � �� ���� �� ��� �� � ��

� �� �� �����. � �� false���.

backend

��� �� ��� ���� ���� �� �� ��� �� ��

��� �����.

feed ��� �� � � ���, ��� � �� ���� ���� �� ���

� never �� � ��, �� � �� ���� �� �����.

file ��� ��� ��� �� ��� �����. � � � false� �����

�� �����. � ��, ��� �� ��� %��.

header(never/always/group)

�� ���� �� ��� �� � �� ��� �� �����. � �

�� never�� �� ���� �� �����. �� � �� �� ����

���, always �� ������. ��� ���� �� � �� ���

���, group �� ������.

trailer(never/always/group)

� �� ���� �� ��� �� � ��� ��� �� �����.

never� � � �� � �� ���� �� �����. �� � �� �

�� ���� ��� always �� ������. ��� ���� �� �

�� � �� ���� ���, group �� ������.-c chprtsv ��� ��� ����� ��� �� �� ���� �������.-d � ��� �� �� ��� �����, ��� �������� �� ��� ���

��.-H FileName ��� �� ���� ���� �� ��� ����� �����.-h″HostName...″ ��� �� ���� �� ��� �� � � �� ���� �� ���� �����

�����. ���� ���� �� �� ��� ��� ���� �� ������.-i �������� �� ��� �� �� �� ����� �� � �� �����.-q″QEntry″ �� qconfig �� ��� �����.-s �� ��� �� �� ��� ���� ����� �����.-v DeviceName �� ��� ���� ���� �����.-X FileName ��� �� ���� ���� �� ��� ����� �����.-x″HostName...″ ��� �� ���� �� ��� �� �� �� ���� �� ���� �� ����

� �����.

396 �� ���, � 1 �

Page 413: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�� ��� ����, � �� �� ��� ����� ����, ��� ��� ���� ��� ���

�, �� � ���� �����, �� �� ������.

chprtsv -s -d -H ruser.inc -x "host1,host2,host3"

��

/etc/qconfig �� ���� ���� ��� ��� ���./etc/hosts.lpd �� ����� �� ��� �� ���� �����.

�� ��

chque ��, chquedev ��, ruser ��.

lpd �, qdaemon �.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Reference.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Daemons.

chps ��

��

��� � � �� ����.

��

chps [ -s LogicalPartitions | -d LogicalPartitions ] [ -a { y | n } ] PagingSpace

��

chps ��� ��� � � �� ����. PagingSpace ���� ��� � � ���� ����

�.

���� �� ���(NFS) ��� � � ����, ��� ���� ��� ��� � �� � ��

� � � �� �� ������� ����� swapon ��� �����.

� �� ��� ��� �� �����(�� �� ��)� ��� �� �� � � ���. ��,

SMIT(��� �� ����� ��) smit chps �� ��� ��� � ��� �� �� ���.

�: 1� ��� � � �� �� � �����. ����, 1� ��� � � ���� ���

�� �� �����. chps ��� 1� ��� � � ��� � ����.

�� ���(���) 397

Page 414: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-a � ��� ��� � ��� � � ����� �����.

y ��� � � � ��� ��� �� ����� �����.

n ��� � � � ��� ��� �� ������ �����.-d LogicalPartitions � ��� ��� �� �����.-s LogicalPartitions ��� ��(LP)� �� ����� �����.

��

1. myvg ��� � � ��� ���� �� �� ������.

chps -s4 myvg

� ���� myvg ��� � � � �� ��� ��� �����.

2. �� ��� ��� � ����� ���� PS02 ��� � � ����� �� �� �����

�.

chps -a y PS02

� ���� PS02 ��� � � �� ��� ��� � ����� �����.

��

/etc/swapspaces swapon -a ���� ���� ��� � ��� �����.

�� ��

lsps ��, mkps ��, rmps ��, swapon ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Paging Space

Overview��� ��� � � ��� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� ��� �� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool��� ��, �� � � SMIT� ���� ���� �� �����.

398 �� ���, � 1 �

Page 415: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chpv ��

��

�� ��� � ��� ��� �� ����.

��

chpv [ -h Hotspare ] [ -a Allocation ] [ -v Availability ] [ -c ] PhysicalVolume ... [ -C HDiskName

]

��

��: �� ��� �� ��� �� � ���� � ��� �� � ����.

chpv ��� ����� � ����� ������ ���� �� ��� �� �� �� ��

��� ��� �� ��� ��� ��(PV)� � � ����. � ��� ��� ��� ��� ��

�� �� ��� ��� �� � ���. �� ��� ����� ��� �� ��, ���

��� �� �� ��� �� ���.

�: � ��� �����, ���� �� ��� ��� ��� system ��� ����� ���.

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� SMIT(�

�� �� ����� ��) smit chpv �� ��� ��� � ��� �� �� ���.

���

-a Allocation PhysicalVolume ���� ��� ��� ��� �� ��� ���� �� ��� �

����. ��� ��(PV)� �� �� ��� ���� � ��(yes)���, ��� ��

(PV)� �� �� ��� ���� � ��(no)���. Allocation �� � � ���

��.

y ��� ��(PV)� �� ��� ��� � �����.

n ��� ��(PV)� �� ��� ���� � �����. ��� ��� ���

� ��� ��� ��� � ���.-c ��� ��� ��� �� �� �#��.-C HDiskName ����� �� �� ���� �#��. � ��� �� ���� �� �� �����.

���� ��� LVM �� ��� ��� �� � ��� �� �� ���� LVM� ��

�� �����.

�� ���(���) 399

Page 416: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-h Hotspare ��� ��� ���� �� � �� ��� ��� ��� �� �����. ��

PhysicalVolume ���� ��� ��� ��� ��� ���� �� ��� ����

�. ���� �� ��� ���� � ��� �� �� ����. Hotspare �� �

� ��� � ���.

y ���� �� �� �� �� ��� ���� ���� ��� ��� ��

�� ��� ��� � �����. � ���� ��� ��� � ����

��� ���� ���� � ���.

n ���� � �� ��� �� ��� ��� ���� ��� � ��� ��

��� ��� ��� � �����.

�: �� �� �� ��� �� � ��� ���� ����.-v Availability ��� ��(PV)� �� ��� �����. �� ��� ���� ����, ��� ��

(PV)� ��� ���� �����. ��� ��(PV)� ���� �� �� ��� ��(PV)

� ��� ���. �� ��� �� �� �� ���� ��� ��(PV)� �� ����

�����, ��� �� ��� �� �� � ���. Availability �� � � ���

� ���.

a ��� ���� �� ��� ��(PV)� �� ���� ���.

r ��� ���� �� ��� ��(PV)� �� ����� ���. �� �� �!�

������ � ��� ��(PV)� ��� ��, ��� ���� ��� ��(PV)

� �� � ���.

��

1. ��� �� hdisk03� ���� �� �� ������.

chpv -v r hdisk03

-v a ��� �� ��� ��� ��� ��� ���� �� �����.

2. ��� �� hdisk03� ��� �� �� ������.

chpv -v a hdisk03

��� ���� �� ��� ��(PV)� �� �� ���.

3. ��� ��(PV) hdisk03� � �����, �� �� ������.

chpv -a n hdisk03

-a y ��� �� ��� ��� ���� � ����.

4. ��� �� hdisk3� �� �� ���� �� �� ������.

chpv -c hdisk3

��

/usr/sbin chpv ��� � ����./tmp ��� ���� � �� ��� ���� ����

400 �� ���, � 1 �

Page 417: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

lspv ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Logical Volume

Storage Overview��� ��� �� ���, ��� ��, ��� ��, �� ��, ��, ��� �� �

� � � ��� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview��� ��, �� � � SMIT� ���� ���� �� �����.

chque ��

��

���� ��� ����.

��

chque -q Name [ -a ‘Attribute=Value’ ... ]

��

chque ��� -q ��� ��� qconfig ��� ���� �� ���� ��� ����. � �

�� ���, ���� ��� Attribute = Value � � ��� ���� �� ���� � ��� �

����. ��� �� ��, Attribute=Value �� ��� �� �����. �� �� � � ����.

� �� ��� ���(wsm)�� �� ���� ������ ��� �� ���� �� �

� ���. �� SMIT(��� �� ����� ��) smit chque �� ��� ��� � ��� ��

� ���.

�: ��� ������ �� �� qconfig ��� ���� ����. ���� �� ��� chque,

mkque, rmque, mkquedev, rmquedev �� chquedev ��� ��� �����. qconfig ���

�� �� ���� � ��� ��� ���� �����. ���, �� ��� ��� ��,

� enq -G ��� ��� ���� ���� ���� �� �� ��� �� qdaemon� ��

� ������. � � qconfig ��� ��� � �� ����� qdaemon� �� ����

��.

���

-a‘Attribute=Value’ ���� ��� ���� ����� ��

‘Attribute=Value’� �����. ��� � ���� �

��� /etc/qconfig ��� ������.

�� ���(���) 401

Page 418: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-q Name � qconfig ��� ��� � ����� �� Name

� �����.

��

���� ��� lp0 ����� fred� ���� �� �� ������.

chque -qlp0 -a ‘host = fred’

��

/usr/bin/chque chque ��� �����./etc/qconfig ��� ��� ���.

�� ��

chquedev ��, lsque ��, mkque ��, rmque ��.

qconfig ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 Guide to Printers and Printing� Changing / Showing Queue Characteristics.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Overview for System Management.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer-Specific Information.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Support.

AIX 5L Version 5.2 Guide to Printers and Printing� Spooler Overview for System Management.

AIX 5L Version 5.2 Guide to Printers and Printing� Virtual Printer Definitions and Attribute.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Colon File Conventions.

chquedev ��

��

��� ��� ���� �� ��� ����.

��

chquedev -qName -dName [ -a‘Attribute = Value’... ]

402 �� ���, � 1 �

Page 419: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

chquedev ��� -d � -q ��� ��� qconfig ��� �� ���� �� �� �� ��� �

��� ��� ����. � ��� ���, ���� ��� ‘Attribute=Value’ �� � ��� ���

� �� ���� ��� ��� �����. ��� �� ��, ‘Attribute = Value’� ��� �� �

����.

� �� ��� ���(wsm)�� �� ���� ������ ��� �� ���� �� �

� ���. �� SMIT(��� �� ����� ��) smit chquedev �� ��� ��� � ��� �

� � ���.

�: ��� ������ �� �� qconfig ��� ���� ����. ���� �� ��� mkque,

rmque, chque, mkquedev, rmquedev �� chquedev ��� ��� �����. qconfig ��� �

� �� ���� � ��� ��� ���� �����. ���, �� ��� ��� ��, �

enq -G ��� ��� ���� ���� ���� �� �� ��� �� qdaemon� ���

������. � � qconfig ��� ��� � �� ����� qdaemon� �� �����

�.

���

-a‘Attribute=Value’ ��� �� ���� ����� ������. ��� � ���� �� ,

qconfig ��� ������.-d Name � ����� �� Name� �����.-q Name �� ���� � ���� Name� �����.

��

lp0 ������ ps �� ���� backend = ‘piobe -x -y’ �� ����� ����, �� ��

����.

chquedev -qlp0 -d ps -a backend = ’piobe -x -y’

�: � �� -x �� � -y ��� piobe ��� �� �����.

��

/usr/bin/chquedev chquedev ��� ���./etc/qconfig ��� ��� ���.

�� ��

chque ��, lsquedev ��, mkquedev ��, rmquedev ��, piobe ��.

qconfig ��.

�� ���(���) 403

Page 420: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 Guide to Printers and Printing� Changing / Showing Queue Characteristics.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Overview for System Management.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Specific Information.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Support.

AIX 5L Version 5.2 Guide to Printers and Printing� Spooler Overview for System Management.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Colon File Conventions.

chresponse ��

��

�� ��� ����� ���� ��� ��� ����.

��

��� ��� �����, �� �� ������.

chresponse -a -n action [ -d days_of_week[,days_of_week...]]

[-t time_of_day[,time_of_day...]] [-s action_script] [-r return_code]

[-e a │ r │ b] [-o] [-E env_var=value[,env_var=value...]]

[-u] [-h] [-TV] response[:node_name]

���� ��� ���� �� �� ������.

chresponse -p -n action [-h] [-TV] response[:node_name]

��� ��� ��� �� �� ������.

chresponse -c new_response [-h] [-TV] response[:node_name]

��� �� ����� ���� �� ������.

chresponse {-U | -L} [-h] [-TV] response[:node_name]

��

chresponse ��� ��� ��� ����� ���� ��� ����. ��� ��� ��� �� ��

�� � ��� ���� ���� ��� �����. chresponse ��� �� ��� ��� ��� ��

� ���.

404 �� ���, � 1 �

Page 421: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ����� ��� ���� � �� ��� ��� �� � ��� �� � ���. � �

�� � �� � � ����� ����� �� � ���. chresponse ��� ��� ��� �"

�� � ��� ���� ���, � � ����� �� �� ��� �����. ��� �� ��

��� -U �� � ���� ���. ��� ��� ��� ����� ��� ���� � �����

��� ����� �" ��, ��� � ��� ��� �� ���� ���. ��� �� � ��

� ���� -L �� � ������.

���

-a response� �� ��� �����.

-p response�� action� ����.

-c new_response

��� �� �� ��� �����. �� ��� ��� �� ����� ���. �� �

�� �� ��� �����. new_response ��� ��� ���� ������. ��� ���

��, ��� �� ��� �� ���. ��� �� �����, �(null)��� �� ��� �

� ����� �� � ����.

-n action

��� ��� �����. -a ��� �� ��, � ��� �� �� ��� �����. -p �

�� �� ��, � ��� � ��� �����. �� ��� �� �� ���� ��

�. � �� � ��� �� � ���.

-d days_of_week[,days_of_week...]

�� �� ��� �� ��� �����. days_of_week � time_of_day� �� ��� ��

�� �����.

�� ��� ��� ��(+)� �� ����� ���(-)�� �� �� � � ������.

days_of_week ���� �� �� �� � �� �� ���� ��(,)� ��� ���.

��� days_of_week ���� �� ��� time_of_day ���� �� ���� ���. �

�� �� ���. �� ���� ���� ��� ��� �� � � �� �����. �� ��

� �� ����.

1 ���

2 ���

3 ���

4 ���

5 ���

6 ���

7 ���

�� ���(���) 405

Page 422: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-t time_of_day[,time_of_day...]

action� �� � � � �����. � � � � �� � � � � � � � � �

�� ����� ����. days_of_week � time_of_day� �� ��� �� �� ����

�.

� � 24� ��(HHMM)� ��� �� � � ��� �� ���� ��� � ��� � �

����. � � ��� ����� �� � � � � �� ��� ���. time_of_day ��

�� �� �� �� � �� �� ���� ��(,)� ��� ���. ��� days_of_week

���� �� ��� time_of_day ���� �� ���� ���. � �� 0000-2400���.

�� ���� ���� ��� ��� �� � � �� �����.

-s action_script

�� �� ��� �� �� ���� �� ��� ��� ��� �����. ������ ��

��� �� ��� �� ����� �� ��� displayevent, logevent, notifyevent � wallevent

� man ���� ������.

-r return_code

action_script� �� �� �� �����. action_script� �� �� �� �� �� �� �

����. �� �� ���� ��� �� ��� �����. -r ��� ���� �� ��

�� �� �� �� ��� ���� ��� ���� ����.

-e a │ r │ b

�� �� ��� ��� ���� ��� ��� �����.

a ���� �����. ��� � ����.

r ��� ���� �����.

b ��� � ��� ���� �� �����.

-o action_script�� �� ��� �� �� ��� �����. � �� �� �� �� ����.

�� ��� �� �� ��� �����.

-E env_var=value[,env_var=value...]

action_script� ���� �� ���� �� �� �� �����. ��� env_var=value ��

�� ��, ��� � �� ���.

-u ����� ��� ���� �� �� ��� ����� �����.

-h �� ��� ��� ���� �����.

-T �� ��� ��� �� ��� �����. ���� ��� �� �����.

-V �� ��� ��� ��� ��� �����.

-U ��� ����� �� � �� �� �����. ��� ��� ����� ��� ����

� ����� ��� ����� �" ���. ��� ��� � ��� ��� �� ����

���. -U ��� ��� ��� �� �� �� � ���� � ��� �� � ���

�.

406 �� ���, � 1 �

Page 423: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-L ��� ����� �� � ��� ����. -L ��� ��� ��� �� �� � ����

� ��� �� � ����.

����

response � ��� ��� �����.

node_name ��� ���� �� �����. node_name� ���� ���, �� �� �����.

node_name� CT_MANAGEMENT_SCOPE �� �� �� ��� ��� �� �

����.

��

chresponse ��� ���� ��� ��� �� � IBM.EventResponse �� ��� �� �� �

�� ��� ���. ��� ��� ���� � ��� �� ���(ACL) ��� ���� ���. ACL

�� � �� ��� �� ��� ��� RSCT Administration Guide� ������.

�� ��

0 ��� ���� ��� ���.

1 RMC� ��� ������.

2 ��� ����� ����� ��� ������.

3 ���� ��� ��� �"���.

4 ���� ��� ���� �"���.

5 ��� ��� �� ��� ��� ������.

�� ��

CT_CONTACT

RMC(Resource Monitoring and Control) �� ��� ���� ���� �����.

CT_CONTACT� ��� �� �� IP ��� ��� ��, ��� ��� ���� RMC ��

�����. CT_CONTACT� ���� �� ��, ��� ��� ���� �� ���� RMC �

� �����. RMC � ��� �� � �� ��� � ���� �� �� � ��� ��

���.

CT_MANAGEMENT_SCOPE

ERRM(Event Response Resource Manager)� ��� ����� RMC ��� ��� ����

�� ��� � �����. �� ��� � ��� �� � � ��� �� � ��� ��

���. ��� �� �� ����.

0 �� ��� � �����.

1 �� ��� � �����.

2 �� �� ��� � �����.

�� ���(���) 407

Page 424: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3 �� �� ��� � �����.

� �� �� ���� �� ��, �� ��� � �����.

�� ��

-h ��� ��� ��, � ��� ���� �� ��� �����. �� �� ��� �� ��� ��

���.

�� ��

�� �� ��� �� ��� �����.

��

� ��� ��� ���� �����.

1. � ���� ″E-mail root″�� ��� ��� ��� � ����. ″E-mail root″� ″E-mail root any

time″��� ���� ����, � ��� ������.

chresponse -p -n "E-mail root" "E-mail root any time"

2. � ����, ″E-mail root″� ����� ����� �� 8��� �� 6��� ����,

/usr/sbin/rsct/bin/notifyeventroot ��� ����, �� ��� �� ��� ����, ����� �

� � 5� �����. ″E-mail root″� ″E-mail root any time″��� ��� �����, � ��

� ������.

chresponse -a -n "E-mail root" -d 2-6 -t 0800-1800 \-s "/usr/sbin/rsct/bin/notifyevent root" -o -r 5 \"E-mail root any time"

3. ″E-mail root any time″ ��� ″E-mail root and admin any time″�� ��� ��� � ���

������.

chresponse -c "E-mail root and admin any time" "E-mail root any time"

� ��� �� ��� �����.

1. ″E-mail root″�� ��� �� ��� ���� � ″E-mail root anytime″��� ���� ���

�, �� ���� � ��� ������.

chresponse -p -n "E-mail root" "E-mail root any time"

2. � ����, ″E-mail root″� ����� ����� �� 8��� �� 6��� ����,

/usr/sbin/rsct/bin/notifyeventroot ��� ����, �� ��� �� ��� ����, ����� �

� � 5� �����. ″E-mail root″� �� ��� ���� � ″E-mail root any time″ ��� �

����, �� ���� � ��� ������.

chresponse -a -n "E-mail root" -d 2-6 -t 0800-1800 \-s "/usr/sbin/rsct/bin/notifyevent root" -o -r 5 \"E-mail root any time"

3. ″E-mail root″�� ��� nodeB �� �� ���� � ″E-mail root anytime″��� ����

����, �� ���� � ��� ������.

408 �� ���, � 1 �

Page 425: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chresponse -p -n "E-mail root" "E-mail root any time":nodeB

� ��� �� ��� �����.

1. � ����, ″E-mail root″� ����� ����� �� 8��� �� 6��� ����,

/usr/sbin/rsct/bin/notifyeventroot ��� ����, �� ��� �� ��� ����, ����� �

� � 5� �����. ″E-mail root″� ��� nodeA �� ���� � ″E-mail root anytime″

��� �����, ��� ��� ��� � ��� ������.

chresponse -a -n "E-mail root" -d 2-6 -t 0800-1800 \-s "/usr/sbin/rsct/bin/notifyevent root" -o -r 5 \"E-mail root any time":nodeA

2. ″E-mail root″�� ��� ��� nodeA �� ���� � ″E-mail root anytime″��� ���

� ����, ��� ��� ��� � ��� ������.

chresponse -p -n "E-mail root" "E-mail root any time":nodeA

��

/usr/sbin/rsct/bin/chresponse chresponse ��� �����.

�� ��

��: lscondresp, lsresponse, mkcondresp, mkresponse, rmresponse

��: rmccli

��: ERRM ��� �� ��� ��� RSCT �� ��� ������.

chrole ��

��

� �� ����. � ��� AIX 4.2.1 ���� �����.

��

chrole Attribute=Value ... Name

��

chrole ��� Name ���� ���� �� �� �� ����. � ��� � ���� ��

�. �� ���� Attribute=Value ���� � �� � �� �� ������.

chrole ���� � �� �� �� � � ��� �� ��, ��� �� ��� ����.

� �� ��� ���(wsm)�� ��� ������ ��� ��� �� � � ���. ��

SMIT(��� �� ����� ��) smit chrole �� ��� ��� � ��� �� � ���.

�� ���(���) 409

Page 426: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��� �� ���

� ��� �� ��� �����, RoleAdmin ��� �� ����� � �� �� � ��

�.

��� ��� �� ��, �� �� ��� �� �� � ���.

authorizations rolelist �� �� ��� �� �� �� ��� �� �� ���. Value ���� ���

�� �� �� ������

groups � �� ����� ���� � , ���� ��� �� �� ���. � �� ����� �

��� ���� �� ���� ��� �� ����. Value ���� ��� �� �� ��

������.msgcat ��� �� �� � �� ��� ��� �� ���� �� ��� �����. Value ��

�� ������.msgnum ��� � ��� �� �� ���� �����. Value ���� �����.rolelist � �� ���� �� �����. Value ���� ��� �� � �� ������.screens �� � � SMIT ���� ��� SMIT �� ID� �����. Value ���� ���

�� SMIT �� ID ������.visibility �� �� � � ����� �����. Value ���� �����. ��� �� �� �

���.

1 �� �� ���� ��� � � ���. � �� ��� ��� �����

�����. �� ���� �� �� �� ��, � � �� 1���.

0 � �� �� ���� ���� ��� ����� �� ������ ��� �

�� ����. � �� ��� ��� ����� �����.

-1 �� �� ������. � �� ��� ��� ����� ���� ����.

��

����� ��:

�� ��

rw /etc/security/rolesr /etc/security/user.roles

�� ���:

��� ��

ROLE_Change �, �

��

1. � ManageUserBasic� ��� PasswdAdmin�� ����, �� �� ������.

chrole authorizations=PasswdAdmin ManageUserBasic

410 �� ���, � 1 �

Page 427: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/etc/security/roles � �� ���./etc/security/user.roles ���� � �� ���.

�� ��

lsrole ��, mkrole ��, rmrole ��, chuser ��, lsuser ��, mkuser ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L �� 5.2 � ��� ��� ��� �.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Administrative Roles

Overview.

chroot ��

��

��� �� ����� ����.

��

chroot Directory Command

��

��: �� �� ����� �� ��� �� �� ����� � � �� �� � � �� ���

�� ��, �� ���� !��� �� �����.

chroot ��� �� ��� ��� ���� ���� �� �����. �� ��� ��� �� ��, chroot

��� Command� �� � Directory ���� ��� ����� �� ����� ����. �� �

�� � /(��)� ��� Command � � � �� Directory� ����.

Directory �� ��� �� �� ��� ��� ���. chroot ��� �� �����, Directory ��

��� �� �� ���� �� ��� ��� ���.

�� � ���� chroot ��� ��� � ���� ���� �� � ���. �� �, �� ���

��� �� �� �� ���� � �� �� �� ������ ���� ��� ����� ����

����. �� ����� ���� �� ������ /usr/ccs/lib/libc.a ��������.

�� �� �� /etc/passwd ��� �� � �� ��, ls -l ��� ��� ��� � �� ����

����� ����. ��, �� ��(/usr/lib/nls/*)� �� � ����� ��� ��� �� �� �

�� ���(���) 411

Page 428: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ���� � �� ��, ����� � ����. �� �� ��� ��� �� �� �� ����

���� ��� ��� ����� �� ��� ��� �� ��� �� ���� �����.

����

Command chroot ���� �� ��� �����.Directory �� �� ����� �����.

��

��: �� ��� �� ������ �� �� � ���. chroot ��� ���� �� ��

�� �� ���� �� ������ �� �����.

1. �� �� ���� /usr/bin ����� pwd ��� ����� �� �� ������.

mkdir /usr/bin/lib

cp /usr/ccs/lib/libc.a /usr/bin/lib

chroot /usr/bin pwd

2. �� �� ����� � �� ���� �� Korn � ���� �����, �� �� ������.

chroot /var/tmp /usr/bin/ksh

� ���� /usr/bin/ksh �� � ���� �� /(��)�� /var/tmp� ����� ���. ��

� �� �� ���� ��� ����� ����. /var/tmp ��� �� ���� �� �� ���

� �� ����� �����. ��, �� /var/tmp �� ���� /bin � /usr/bin ���� ��

� ���.

/usr/bin/ksh ��� ���� ���� � ��� �� ���� ���� ���� ����.

END OF FILE(Ctrl-d) �� �� ���� ��� � �� ��� ������. ��� .(�� ��

��) � /(�� ����)� �� ���� � �� ��� �����.

3. �� ��� �� � ��� �� ��� ���� �� �� ������.

chroot directory Command > file

��

/etc/passwd �� ��� �� ���� ��� �����./usr/ccs/lib/libc.a �� ��� ������ �� C ������ �����./usr/ccs/lib/libcurses.a curses ������ �����./usr/lib/liblvm.a LVM(��� �� ���) ������ �����./usr/ccs/lib/libm.a math ������ �����./usr/lib/libodm.a ODM(���� ��� ���) ������ �����./usr/sbin/chroot chroot ��� ���.

412 �� ���, � 1 �

Page 429: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

ksh ��, ls ��.

chdir ���, chroot ���.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� ��, ��, �� � ����� �� �����.

chrsrc ��

��

�� �� �� ��� �� ��� ����.

��

��� �� ��� ��� � ���� ���� �� ����.

v ���� ��� ���:

chrsrc -s ″selection_string″ [-v] [-a] [-h] [-TV] resource_class attr=value...

chrsrc -r [-v] [-a] [-h] [-TV] resource_handle attr=value...

v �� ��� �� ��� ���:

chrsrc -f resource_data_input_file -s ″selection_string″ [-v] [-a] [-h] [-TV] resource_class

chrsrc -f resource_data_input_file -r [-v] [-a] [-h] [-TV] resource_handle

�� ��� �� ��� ��� � ���� ���� �� ����.

v ���� ��� ���:

chrsrc -c [-v] [-a] [-h] [-TV] resource_class attr=value...

v �� ��� �� ��� ���:

chrsrc -f resource_data_input_file -c [-v] [-a] [-h] [-TV] resource_class

��

chrsrc ��� �� �� �� ��� �� ��� ����. � ��, � ��� ��� �� �

�� ����. -r ��� ��� resource_handle� ���� ��� �� ��� �����.

-s ��� ��� selection_string� ���� �� ��� �� ��� �����. �� ���

�� ��� ���� -c ��� ������.

read_only� ��� �� �� � � ����. -v ��� ��� ��� ��

resource_data_input_file� ��� � ��� ��� ��� �� ��� �� ��� ���� �

�� read_only �� ��� ������. -v �� � �� chrsrc� �� �� ��� ��

��� ����. chrsrc -v� �� � �� ″��″�� ��� � �� � � � ����

�� ���(���) 413

Page 430: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� ����. ��� ��� ���� �� �� ���� chrsrc ���� � � � �� �

����. -v ��� ���� �� chrsrc ��� �� ��, ��� �� � � ��� �� �

�� �����.

���

-a � ��� ����� �� �� ���� �����. CT_MANAGEMENT_SCOPE �� ��

���� ��� � �����. CT_MANAGEMENT_SCOPE� ���� �� ��, ��� ��

� � �� ��� �� �� ��� � ���(���� ��) � �� �� �� ��

� (���� ��), �� ��� � �#� ����. ��� ��� � �� ��� � �� �

�� �����. �� �, �� ��� �� ��� �� �� ��, ���� ��

CT_MANAGEMENT_SCOPE� chrsrc -a� �� ��� ����. � ��, �� ���

���� CT_MANAGEMENT_SCOPE� 2� ������.

-c resource_class� �� ��� ����.

-f resource_data_input_file

�� � ��� � ��� ��� �����.

-r resource_handle� ���� �� ��� �� ��� ����.

-s ″selection_string″

selection_string� ���� �� ��� �� ��� ����. selection_string� �� ��

�� �� ��� �� ���. selection_string� �� �� ��� �� � � ���� �

� �� ��� ����. �� �, �� ����.

-s ’Name == "testing"’

-s ’Name ?= "test"’

�� �� � ���� �� � ���. � ���� ���� ��� �� ��� RSCT

�� ��� ������.

-v ��� �� �� ��� ��� �� � ��� �� ��� ��� �� read_only� ��

�� ���� �����. � ��� �� �� chrsrc ��� �� �� ��� ���

����.

-h �� ��� ��� ���� �����.

-T �� ��� ��� �� ��� �����. ���� ��� �� �����.

-V �� ��� ��� ��� ��� �����.

����

attr=value...

�� ��� � � �� �� �� �����. -f ��� ��� ��, ���� attr=value �

���� ��� ���. attr� ��� �� � �����. lsrsrcdef ��� ��� �

414 �� ���, � 1 �

Page 431: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� � ��� � ��� ��� �� ��� ��� ������. ��� �� ��� �

� �� �� ��� ����� ���. �� �, NodeNumber� Uint32 ��� ����

���� �� �� �� �� ������.

resource_class

�� �� ��� �����. ��� �� �� �� ���� ����� lsrsrcdef ��� �

�����.

resource_handle

���� ��� ��� �� ��� �����. ��� �� �� ���� ����� lsrsrc �

�� ������. �� ��� �� �� ��� �� ���. �� �, �� ����.

"0x4017 0x0001 0x00000000 0x0069684c 0x0d4715b0 0xe9635f69"

��

���� chrsrc� ����� chrsrc� ���� � resource_class� �� �� ��� �����. ��

� ��� ���� � ��� �� ���(ACL) ��� ���� ���. ACL �� � �� ��� �

� ��� RSCT �� ��� ������.

�� ��

0 ��� ����� ��� ���.

1 RMC� ��� ������.

2 CLI(��� �����) ����� ��� ������.

3 ���� ��� �� � ��� ���.

4 ���� ��� ���� ��� ���.

5 ��� ��� ��� ��� RMC ��� ������.

6 � ���� ���� ��� ���� �����.

�� ��

CT_CONTACT

CT_CONTACT �� �� ��� �� �� IP ��� ��� ��, ��� ��� ���� �

RMC(Resource Monitoring and Control) �� �����. �� �� ���� �� ��, ��

� ��� ���� �� ���� RMC �� �����. ��� �� ����� ���� ��

�� �� ��� ��� ��� ���� ���.

CT_MANAGEMENT_SCOPE

�� � �� ��� ����� ���� � RMC ��� ��� ���� �� ��� �

�����. �� ��� � �� � �� ��� ����� �� � � ��� �� �� �

�� �����. ��� �� �� ����.

0 �� ��� � �����.

�� ���(���) 415

Page 432: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

1 �� ��� � �����.

2 �� �� ��� � �����.

3 �� �� ��� � �����.

� �� �� ���� �� ��, �� ��� � �����.

�� ��

-h ��� ��� ��, � ��� ���� �� ��� �����. �� �� ��� �� ��� ��

���.

�� ��

�� �� ��� �� ��� �����.

��

1. Name� c175n05� ��� �� �� �� IBM.Foo�� Int32, Uint32 � SD �� �� ��

���� �� �� ������.

chrsrc -s ’Name == "c175n05"’ IBM.Foo \Int32=-9999 Uint32=9999\SD=’["testing 1 2 3",1,{2,4,6}]’

2. c175n�� ���� Name� ��� �� IBM.Foo �� ���� Int32, Uint32 � SD �� �

� ��� � ���� Resource_Data_Input ���� � ��� �����.

PersistentResourceAttributes::resource 1:

Int32 = -9999Uint32 = 9999SD = ["testing 1 2 3",1,{2,4,6}]

�� �� ������.

chrsrc -f /tmp/IBM.Foo.chrsrc\-s ’Name ?= "c175n"’ IBM.Foo

3. �� ��� ″0x0001 0x4005 0x35ae868c 0x00000000 0xfeef2948 0x0d80b827″� ��� Name

�� �� �� ���� �� ������.

chrsrc -r "0x0001 0x4005 0x35ae868c 0x00000000 0xfeef2948 0x0d80b827" Name="c175n05"

��

/usr/sbin/rsct/bin/chrsrc chrsrc ��� �����.

�� ��

��: lsrsrc, lsrsrcdef, mkrsrc, rmrsrc

��: rmccli

416 �� ���, � 1 �

Page 433: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��: RMC ��� ��� � � ��� �� ��� �� ��� ��� RSCT �� ��� �����

�.

�� ���(���) 417

Page 434: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chsec ��

��

� ��� ��� � �� ����.

��

chsec [ -fFile] [ -s Stanza] [ -a Attribute = Value ... ]

��

chsec ��� � ��� ��� ��� ��� �� ����. � � ��� ��� ����

Attribute= Value ���� �� � � �� ���.

v /etc/security/environ

v /etc/security/group

v /etc/security/lastlog

v /etc/security/limits

v /etc/security/login.cfg

v /usr/lib/security/mkuser.default

v /etc/security/passwd

v /etc/security/portlog

v /etc/security/user

/etc/security/environ, /etc/security/lastlog, /etc/security/limits, /etc/security/passwd � /etc/security/user

���� �� ��� �� Stanza ���� ��� ��� ��� ��� ��� �� �� default

� ���. /etc/security/group ��� �� ��� �� Stanza ���� ���� ��� ��� ��

� �� ����� default � ���. /usr/lib/security/mkuser.default ��� �� ��� �� Stanza

���� admin �� user � ���. /etc/security/portlog ��� �� ��� �� Stanza ���

� ��� �� ����� ���. /etc/security/login.cfg ��� �� ��� �� Stanza ���� �

�� �� ��, � �� �� usw ���� ���.

� ��� ���� /etc/security/login.cfg �� /etc/security/portlog ��� � �� ��� �� chsec

���� ���� ���� ����.

chsec ��� ��� /etc/security/passwd ��� password �� �� � ����. � passwd �

�� ������.

��� ��� �� �� ���� ���� �� �� � � ���. �� �, �� �� ����

�����, ���� ����� GroupAdmin ��� �� ���.

418 �� ���, � 1 �

Page 435: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-a Attribute=Value �� �� � �� �� � �� �����. �� ���� �� ��, �� ��� �

���� �����.-f File �� ��� ��� ��� �����.-s Stanza �� ���� ��� �����.

��

��� ��: � ��� �� �� ��� � � ���� �� ��� ��� ���. � ��� �

� ���� �� � ��� setuid ��� ��� �� ���� � ������� ��� �

�� ���.

����� ��:

�� ��

rw /etc/security/environrw /etc/security/grouprw /etc/security/lastlogrw /etc/security/limitsrw /etc/security/login.cfgrw /usr/lib/security/mkuser.defaultrw /etc/security/passwdrw /etc/security/portlogrw /etc/security/user

�� ���:

��� ��

USER_Change ��� ��, �

GROUP_Change �� ��, �

PORT_Change ��, �

��

1. 60� � ��� ��� 5� ���� ��� ���� ���� /dev/tty0 ��� ����, ��

�� ������.

chsec -f /etc/security/login.cfg -s /dev/tty0 -a logindisable=5 -a logininterval=60

2. ����� /dev/tty0 ��� ��� � � ��� �� ����� �� �� ������.

chsec -f /etc/security/portlog -s /dev/tty0 -a locktime=0

3. �� ���� �� �� 8��� �� 5��� ���� �����, �� �� ������.

chsec -f /etc/security/user -s default -a logintimes=:0800-1700

4. joe ���� �� CPU � ��� 1� (3600�)�� ���� �� �� ������.

chsec -f /etc/security/limits -s joe -a cpu=3600

�� ���(���) 419

Page 436: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/bin/chsec chsec ��� ��� �����./etc/security/environ ���� �� �� ���./etc/security/group ��� � �� ���./etc/security/lastlog ���� ��� ��� �� �����./etc/security/limits �� �� ���� � ���� �� �����./etc/security/login.cfg �� ��� ��� ���./usr/lib/security/mkuser.default �� ���� � � �� ���./etc/security/passwd �� ��� ���./etc/security/portlog ��� �� ��� ��� �� ��� ���./etc/security/user ���� �� �� ���.

�� ��

chgroup ��, chuser ��, grpck ��, login ��, lsgroup ��, lssec ��, lsuser ��, mkgroup �

�, mkuser ��, passwd ��, pwdck ��, rmgroup ��, rmuser ��, su ��, usrck ��.

getgroupattr ���, getportattr ���, getuserattr ���, getuserpw ���, putgroupattr �

��, putportattr ���, putuserattr ���, putuserpw ���.

chsensor ��

��

RMC(Resource Monitoring and Control) ��� �� ����.

��

chsensor [-a │ -n host1[,host2...]] [ -v │ -V ] [-h] name attr=value [attr=value...]

��

chsensor ��� name� �� ���� ��� �� ��� �� ����. value� �� �� � �

� ��� ���� ���� ��, value� �� ��� �� ���. � ��� �� RMC(Resource

Monitoring and Control) �� chrsrc� �� �� � � � � �����.

chsensor ��� �� ��� ��� �� ��� ����, CT_CONTACT� ���� � �� �

���� �� ��� ����� �����. chsensor� ��� � �� ��� �����,

CT_MANAGEMENT_SCOPE �� �� ������. ��� ��� �� �� ��� ������.

RMC ��� �� �� ��� ��� mksensor ��� ������.

���

-a ��� � �� ��� ��� ��� ���� ��� ����.

420 �� ���, � 1 �

Page 437: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-n host1[,host2...]

��� ��� �� �� �����. � ��, ��� �� ��� ����. � ���

�� �� �� �� ����� �����.

-v │ -V

�� ��� ��� ��� ��� �����. � ��� ��� �� �� �� RMC ���

������. �� ��� �� ��� ����� ��� � ���.

-h ��� ���� �� ��� �����.

����

name � ��� ��� �����.

attr=value

� �� �� �� ��� �����.

��

���� chsensor� ����� IBM.Sensor �� ��� �� �� ��� �����. ��� ���

���� � ��� �� ���(ACL) ��� ���� ���. ACL �� � �� ��� �� ���

��� RSCT Administration Guide� ������.

�� ��

0 ��� ���� ��� ���.

1 ��� �� � ���� ��� �"���

6 ��� ���� �����.

RMC ���� ��� �� ��, RMC �� �� � � � �����.

�� ��

CT_CONTACT

CT_CONTACT �� �� ��� �� �� IP ��� ��� ��, ��� ��� ����

� RMC(Resource Monitoring and Control) �� �����. � �� �� ���� �� �

�, ��� �� �� �� ���� RMC �� �����. ��� �� ����� ���� �

� �� �� ��� ��� ��� ���� ���.

CT_MANAGEMENT_SCOPE

��� RMC � ��� ���� �� ��� � �����.

��� �� �� ����.

0 �� ��� � �����.

1 �� ��� � �����.

2 �� �� ��� � �����.

�� ���(���) 421

Page 438: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3 �� �� ��� � �����.

� �� �� ���� �� ��, �� ��� � �����.

��

1. NumLogins ��� ��� Numlog� ����, �� �� ������.

chsensor NumLogins Name=NumLog

��

/usr/sbin/rsct/bin/chsensor chsensor ��� �����.

�� ��

��: chrsrc, lssensor, mksensor, rmsensor

��: attr=value ��� �� ��� rmccli man ���� ������.

��: ACL �� �� � � ��� ��� �� ��� RSCT Administration Guide� ������.

chserver ��

��

���� ���� ��� � ���� ��� ����.

��

chserver -t OldSubserver [ -c CodePoint ] [ -s NewSubsystem ] [ -t NewSubserver ]

��

chserver ��� ���� ���� ��� � �� ���� ��� ����. � ��� ���� �

�, �� ����� �� ���� � ���� � � ���.

���

-c CodePoint ����� ���� CodePoint ��� �����. � ��� ����� ���� � ��

���� ���� ����. �� ����� ��� �� CodePoint� � �� ��

����� ��� ���� �� �� chserver ��� �����. �� NewSubsystem �

� � ���� CodePoint� ���� ���� ��� � ���� �����. CodePoint

����� ��� ��� ��� ����(1�� 32,768��).

422 �� ���, � 1 �

Page 439: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-s NewSubsystem � ����� NewSubsystem� ���� ���� ��� �����. � � ��� ��

�� chserver ��� �����.

v NewSubsystem ��� ����� ���� ��� ���� �� ��

v NewSubsystem ��� ����� ���� ��� ����� � ��� �� �

� ��

v ���� �� ���� ��� �� ���� CodePoint �� �� NewSubsystem ��

� � �� ���� CodePoint �� ���� �� ��

v �� ���� CodePoint� ��� �� NewSubsystem �� � ���� CodePoint�

���� ���� �� ��� � � ��

-t NewSubserver NewSubserver� ���� ���� ��� �����. chserver ��� NewSubsystem ��

� ���� ���� ��� � ��� ��, �����.-t OldSubserver �� ����� ���� ���� ��� �����. ���� ���� ��� OldSubserver

��� ���� �� �� chserver ��� �����.

��

�� ���: �� ������ ���� ���� � �� ��� ��, chserver ��� �� ���

� �� �(���)� ����.

��� ��

SRC_Chserver �� ��� �� ������ ��� �� �����.

�� ���� ��� ���, �� ��� ��� ��� ��� ��� �� ��� ��� AIX 5L �

� 5.2 � ��� ″� ��″� ������.

��

1. ����� ��� ���� �� �� ������.

chserver -t old -t new

� ��� ���� ��� old�� new� ����.

2. ���� � ������ ����, �� �� ������.

chserver -t old -s srctest

� ��� �� ������ srctest� ����.

3. ���� ��, ����� � ���� � ���� ����, �� �� ������.

chserver -t old -t new -s srctest -c 1234

� ��� ���� ��� old�� new� ���, �� ������ srctest� ���, ����

� ���� 1234� ����.

�� ���(���) 423

Page 440: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/etc/objrepos/

SRCsubsys

SRC(��� �� ���) ����� ��� ���� ��� �����.

/etc/objrepos/

SRCsubsvr

SRC ���� ��� ���� ��� �����.

�� ��

auditpr ��, mkserver ��, rmserver ��, startsrc ��, stopsrc ��, traceson ��, tracesoff �

�.

AIX 5L �� 5.2 � ��� �� ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Resource

Controller Overview.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Defining

Your Subsystem to the SRC.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� System

Resource Controller(SRC) Overview for Programmers.

chservices ��

��

/etc/services ��� ��� ����.

��

� �� �� ������ ��

chservices [ -a ] -v ServiceName -p protocol -n port [ -u ″Alias ...″ ]

� ����� ��

chservices -c -v ServiceName -p protocol -n port [ -V NewServiceName ] [ -P NewProtocol ] [

-N NewPort ] [ -u ″Alias ...″ ]

� ������� ��

chservices -d -v ServiceName -p protocol -n port [ -V NewServiceName ] [ -u Alias ...″ ]

��

chservices ��� /etc/services ��� ��� ����� � �� ����. � ��� DARPA �

���� ���� ��� ���� ���� �� inetd ���� ���� ��� �����. inetd ���

��� ���� ��� ��� �� �� ��� �����.

424 �� ���, � 1 �

Page 441: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chservices ��� ��� ���� �� � ��� �����.

v ServiceName �� ��� �� ��� ��� ��.

v port �� ��� �� ���� ���� �����.

v protocol �� ��� �� ����� ���� �����.

v Alias �� ��� ��� ��� ����� ���� �����.

���

-a /etc/services ��� ��� ����� �����. ��� ��� ���� � �� -a ��

� �� �� ��� �����. �� �� �� -a ��� ��� �� �����. ��� � �

�����.-c /etc/services ��� ��� ����.-d ��� �� ���� ��� /etc/services ��� ��� ������.-N NewPort �� �� ��� �����.-n port �� �� ��� �����.-P NewProtocol �� ��� ��� �� � ��� ��� �����.-p protocol ���� �����.-V NewName � ��� ��� �����.-v ServiceName ��� ��� �����.-u ″Alias...″ �� ���� �����.

�: chservices ���� ��� �� ��� ����� ���� ����.

��

��� ��: �� ��� � system ��� ���� � ��� �� � ���.

��

1. ��� gregsapp� �� 1423� udp ����� �����, �� �� ������.

chservices -a -v gregsapp -p udp -n 1423

2. ��� gregsapp� fredsapp� ��� �� �� 1423� udp ����� �����, �� �� �

�����.

chservices -a -v gregsapp -p udp -n 1423 -u"fredsapp"

3. udp ���� 1456� gregsapp� ��� ���� ��� ���� �� �� ������.

chservices -c -v gregsapp -p udp -N 1456

4. �� ��� ��� udp �� 1456�� gregsapp ���� ������ �� �� ������.

chservices -d -v gregsapp -p udp -n 1456

��

/usr/sbin/chservices chservices ��� ���./etc/services inetd �� �� ��� ��� ���.

�� ���(���) 425

Page 442: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

chsubserver ��.

inetd �, fingerd �, ftpd �, rexecd �, rlogind �, rshd �, syslogd �, talkd �,

telnetd �, tftpd �.

inetd.conf �� ��, protocols �� ��, services �� ��.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Daemons.

chsh ��

��

���� ��� �� ����.

��

chsh [ -R load_module ] [ Name [ Shell ] ]

��

chsh ��� ���� ��� � �� ����. � �� ���� ���� ���� �� ����

�� ���� �����. � �� /etc/passwd ��� �����. � �� ��, chsh ��� ���

���� ���� ��� �� ����.

chsh ��� ������. chsh ��� ���� ����� �� ��� �� ��� � shell �� ��

�� �����. � �, �� ���� �����. �� ��� �� �� �� ��� ����

���.

chuser ��� �� ��� ��� �� � ���� �� ��� �� � � ���. � ����

�� ��� �� ���� Name ���� ������. ��� �� /etc/security/login.cfg ��� usw

���� ���� ���. ��� �� � � ���� /usr/bin/ksh, /usr/bin/sh, /usr/bin/bsh, /usr/bin/csh

��� ��� ���� � ���� � ���.

�� ID � �� ���(I&A)� ��� �� ���� ��, -R ��� ��� ���� �

� ��� I&A � ��� �� � ���. � ��� /usr/lib/security/methods.cfg ��� ���

� ���.

���

-R load_module ���� �� � � ��� ��� I&A ��� �����.

426 �� ���, � 1 �

Page 443: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

��� ��: ���� ��� ��� ��� ����� �� ���� � ��� �� ��(x) ��� �

�� ��� ���. � ��� �� ����(TCB)� ����� ���� ���. setgid(SGID) �

� ��� �� security ��� � ��� ���� ���.

����� ��:

�� ��

x /usr/bin/chuserr /etc/security/login.cfgrw /etc/passwd

���

�� ��� I&A ���� ���� � �� ����� ����. ��� I&A ��� ���� ��

��� � �� ��� �����.

��

1. ���� ���� � ���� �� ���� �� �� ������.

chsh

�� ��� ��� �����.

current available shells:/usr/bin/sh/usr/bin/bsh/usr/bin/csh/usr/bin/ksh:current login shell:/usr/bin/kshchange (y/n)? >

(y/n)? � � y� ��� ��� �� �����. �� �� send� ������. � �

, � ����� �� to? ��� �� � ��� �� ��� ������.

change (y/n)? > yto? > /usr/bin/csh

�� ��� � /usr/bin/csh �� ����.

2. kim� �� /usr/bin/ksh� �� ���� �� �� ������.

chsh kim /usr/bin/ksh

3. davis ���� �� ��� LDAP I&A � ��� �� ���� �� �� ������.

chsh -R LDAP davis

��

/usr/bin/chsh chsh ��� ��� �����.

�� ���(���) 427

Page 444: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/usr/bin/chuser ��� ��� ����./etc/passwd �� ��� �� ���./etc/security/

login.cfg

��� ��� ��� ���.

�� ��

chgroup ��, chgrpmem ��, chuser ��, lsgroup ��, lsuser ��, mkgroup ��, mkuser ��,

passwd ��, pwdadm ��, rmgroup ��, rmuser ��, setgroups ��, setsenv ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Security Administration

��� ��� ID � ��, �� ��� ��, �� ���� � ��� �� �����.

chslave ��

��

ypinit ��� �� ��� ��� ���� �� ��� � ypserv �� �� ��� � ���

����.

��

/usr/etc/yp/chslave [ -C | -c] [ -O | -o ] [ -I | -B | -N ] Master

��

chslave ��� ypinit ��� ���� ���� ��� ��� ���� �� �����. ypinit ���

���� ypserv �� �� �����. Master ���� ��� ��� ��� ��� �����. ��

� ��� ��� �� ���� ��� �� �� ����� �� �� �� ��� ��� � ��

�.

� �� ��� ���(wsm)�� ���� ������ ��� ���� �� � � ���. �

� SMIT(��� �� ����� ��) smit chslave �� ��� ��� � ��� �� �� ��

�.

���

-B ypinit ��� ���� ypserv �� �����. ypserv �� � �� �� ��, � ��� ���� ypinit ��

� �� ��� � ������. � ��� � ����.-C -n ��� ��� ypinit ��� �����. chslave ��� ��� ���� �����. � ��� � ����.-c ��� �� ��, ��� ������.-I ypinit ��� � ����� ypserv �� ����� �� ����� ����.-O ��� � ��� �� !����.-o ��� ���� � � !���� �����. � ��� � ����.-N ypinit ��� ���� ypserv �� �� �����.

428 �� ���, � 1 �

Page 445: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

host91 ��� ���� �� ����� �� �� ������.

chslave -O -B host91

� ��� �� ��� �� ��� �� �� �� !����.

��

/etc/rc.nfs NFS � NIS �� �� �� ����� ���./var/yp/domainname NIS ��� �� NIS �� ���.

�� ��

chmaster ��, mkclient ��, mkslave ��, rmyp ��, smit ��, ypinit ��.

ypbind �, yppasswdd �, ypserv �, ypupdated �.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview.

AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide� Network Information

Service(NIS).

NIS ���.

chssys ��

��

����� ���� ��� � ����� ��� ����.

��

chssys -s OldSubsystem [ -a Arguments ] [ -e StandardError ] [ -i StandardInput ] [ -o StandardOutput ]

[ -p Path ] [ -s NewSubsystem ] [ -t Synonym ] [ -u UserID ] [ -O | -R ] [ -d | -D ] [ -q | -Q

] [ -K | [ -I MessageQueue -m MessageMtype | -f StopForce -n StopNormal -S] [ -E Nice ] [

-G Group ] [ -w Wait ]

��

chssys ��� ����� ���� ��� � �� ����� ��� �����. �� ����� �

�� ����, ���� �� ���� �� � �� ���� ��� �� ����� ��� ��

�� �����.

�� ���(���) 429

Page 446: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�: ������ �� ��� �� � ��� �� ���(SRC)� ��� �� ���, mkssys �

�� ��� ������ �� ���� ��� ID� �� �����. �� �, ���� ��

��� ��� �� ���� ��, ������ �� ����� �� ��� ��� �����.

���

-a Arguments �������� ���� ����� ���� �� ��� �����. � ��

Arguments� �� ���� �� �� �� ��� SRC� �� ������� �����.

�� ��� � ���� ��� ���� ����, �� ��� � ��� �� ��� �

� ��� ����. �� �� ��� �� �� ��� �� � ���.-d lssrc -a �� ��(� ��) �� lssrc -g �� ��(� ��)� � � �� ����

����� �����.-D �� � �� � �� ��� ���� �, �� ������ ���� ��� ����

�.-e StandardError ����� �� �� ���� ���� �� �����.-E Nice Nice �� �����. Nice ���� ������ �� �� � ����. ��� ��

0 - 39���(�� Nice �� �� ��� �����). -E ��� �� ��, ������

� � �� � 20���. 0� 19 ��� �� �� ��� �� ���� � �����.-f StopForce ������ �� ��� ��� ��, � �� ������� ���� �����. ���

��� �� � �� ���� ���� � ��� ������. StopForce ����

� ���� �� �� ��� �� chssys ��� �����. -n � -S ��� � ��

�� �� ���.-G Group Group ���� ��� ��� ������ ��� ��� �� �� ��� ����� ��

���.-i StandardInput StandardInput ������ ����� �� �����. ������ �� � ��� �

� ��, � �� �����.-K ������ � �� ��� ����� �����.-I MessageQueue ������ � �� �� ����� ����� �����. MessageQueue ���

� ������ �� �� ���� �� � �� ���� �� �����. ����

� �� ��� �� ftok ���� ���� ��� �� �� �����. -m ���

� �� �� �� ���.-m MessageMtype SRC�� ������� ��� ���� ������ ��� MessageMtype �� �����.

������ �� � �� ����� ���� ���� � ��� ������.

MessageMtype� 0�� �� ���. � �� ��� -l ��� �� ���.-n StopNormal ���� ����� ��� ��� ��, ������� � �� ���� �����. ��

���� �� � �� ���� ���� � ��� ������. StopNormal ��

��� ���� �� �� ��� �� chssys ��� �����. � �� ��� -f �

�� �� �� � ��� -S ��� �� ���.-o StandardOutput StandardOutput ������ � �� �����.-O ������ ������ ��� ��, ������ ����� ��� �����.-p Path ����� ���� �� Path� �����.-q ������� �� ����� ��� �� � � �����.-Q ������� �� ����� �� ��� ���� �� �����.-R ������ ������ ��� ��, ������ ������ �����.-s NewSubsystem ������ ���� ���� � ��� �����. �� ������ ��� �� ��� �

� ���� �� �� �� NewSubsystem ��� �� ������. NewSubsystem ��

� ����� ���� ��� � ��� �� chssys ��� �����.-s OldSubsystem ������ ���� ���� �� ��� �����. OldSubsystem ��� ����� ��

�� ��� ���� �� �� chssys ��� �����.

430 �� ���, � 1 �

Page 447: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-S ������ � �� �� ����� �����. � �� �� ��, ����

� ��� �� ����� �� � ����. ������ �� ����� ���� ��, �

��� ��� ���� ���� ���� ����. � �� ��� -f � -n ���

�� ���.-t Synonym ������ �� ��� �����. Synonym ��� ����� ���� ��� � ��

� �� chssys ��� �����.-u UserID ������ ��� ID� �����. ������ �� UserID� � ������ � �

�� �����.-w Wait �� ��(SIGTERM) �� �� SIGKILL � ��� ��� �� � (�)� �����.

��� ��� �� � ����� �����. ������ Wait ��� ��� � �� �

� � � �� ������ �� ��, ���� ����� ����.

��

�� ���: �� ������ ���� ���� � �� ��� ��, chssys ��� �� ��� �

�� �(���)� ����.

��� ��

SRC_Chssys �� ��� �� ������ ��� �� �����.

�� ���� ��� �� ����� �� � �� ��� ��� �� ��� ��� ���� AIX

5L �� 5.2 � ��� ″� ��″� ������.

��

1. ����� ��� ���� �� �� ������.

chssys -s srctest -s inetd

� ��� ����� ��� srctest�� inetd� ����.

2. � ��� ���� ����, �� �� ������.

chssys -s srctest -K

� ��� ������ � ��� ���� ����.

3. � ��� �� ����� ����, �� �� ������.

chssys -s srctest -l 123456 -m 789

� ��� ������ � ��� �� ����� ���, �� �� ���� �� 123456��

����� �� ��� 789���.

4. � ��� �� ����, �� ������.

chssys -s srctest -S -n 30 -f 31

� ��� ������ � ��� �� ���, �� �� �� �� 30�� �� �� ��

31���.

�� ���(���) 431

Page 448: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

5. ��� ��� ����, �� ������.

chssys -s srctest -a ″-a 123 -b \″4 5 6\″ -c ‘7 8 9’″

� ��� -a� srctest� � �� ���, 123� � �� ���, -b� � �� ���, 4 5 6� � �

� ���, -c� �� �� ���, 7 8 9� � �� ��� �����.

��

/etc/objrepos/

SRCsubsys

SRC(��� �� ���) ����� ��� ���� ��� �����.

/etc/objrepos/

SRCsubsvr

SRC ���� ��� ���� ��� �����.

/etc/objrepos/

SRCnotify

SRC �� � ���� ��� �����.

/dev/SRC AF_UNIX �� ��� �����./dev/.SRC-unix �� �� ��� �� �� �����.

�� ��

auditpr ��, lssrc ��, mkssys ��, rmssys ��.

AIX 5L �� 5.2 � ��� �� ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Resource

Controller Overview.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� Defining

Your Subsystem to the SRC.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� System

Resource Controller(SRC) Overview for Programmers.

chsubserver ��

��

/etc/inetd.conf �� �� � � ��� ��� ��� ��� ����.

��

�� �� ���� � �� �� ���� � ���� �� ��

chsubserver [ -a ] -v ServiceName -p protocol [ -t socket_type ][ -w WaitIndicator ] [ -u user ] [

-g program ] [ -r server ] [ -C ConfigFile ] [ program ] [ args ]

432 �� ���, � 1 �

Page 449: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� � ��� � ���� �� ��

chsubserver -c -v ServiceName -p protocol [ -t SocketType ] [ -w WaitIndicator ] [ -u user ] [ -g

program ] [ -V NewServiceName ] [ -P NewProtocol ] [ -T NewSocketType ] [ -W NewWaitIndicator

] [ -U NewUser ] [ -G NewProgram ] [ -r server ] [ -C ConfigFile ] [ program ] [ args ]

�� � �� inetd ���� � ����� � ���� �� ��

chsubserver -d -v ServiceName -p protocol [ -t SocketType ] [ -w WaitIndicator ] [ -u user ] [ -g

program ] [ -r server ] [ -C ConfigFile ] [ program ] [ args ]

��

chsubserver ��� � �� /etc/inetd.conf ��� ��� �� �� � � ��� ��� �����

���� ����. � ��� DARPA ����� ���� ��� ���� ���� �� inetd �

��� ���� ��� �����. inetd ��� ��� ���� ��� ��� �� �� ��� ����

�.

chsubserver ��� -r ��� ��� ��� � �� ���. ��� ��� SIGHUP �� �

��� ��� ��� �� ����. ����� ��� ��� ��� � ���� � ����

� ���.

��� ���� ��� ���� �� ��� inetd ���� ���� ��� � ���. chsubserver

��� ��� ��� � inetd ��� �� �� � ���� ��� �����.

v ServiceName �� ��� �� ��� ��� ��.

v protocol �� ��� �� ����� ���� �����.

v SocketType �� ��� �� ���� ���� �����. ���� ���� �� ��� ��! �

� �� ����� ��� � ���. ��! ��� ���� nowait ���� ������. ���

�� ��� ���� wait �� nowait ��� ������.

v WaitIndicator �� ��� wait �� nowait ��. wait �� nowait ��� ���� ��� �

��� �� ����� ��� ��� ����� inetd ��� ���� �� �����.

v user �� ��� ��� ���� inetd ���� ����� �� � �����.

� �� ��� ���(wsm)�� ��� ������ ��� ��� �� � � ���. ��

SMIT(��� �� ����� ��) smit inetdconf �� ��� ��� � ��� �� �� ���.

���

-a ��� ��� ��� ����� �����. ��� ���� ��� ��� �

��, -a ��� ��� ��� �����. �� �� �� -a ��� ��� ��

� �� �����. ��� � � �����.-c ��� ��� � ��� ����.-C /etc/inetd.conf� � � ��� ��� �����.-d ��� � �� ���� ��� ��� ��� � ��� ������.-G NewProgram �� �� ���� �����.-g Program �� ���� �����.

�� ���(���) 433

Page 450: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-P NewProtocol �� ��� ��� �� � ��� ��� �����.-p protocol ���� �����.-r server ��� ��� SIGHUP� �����.-T NewSocketType ��! ��� �� stream � �� ����� ��� �� dgram �� �� �� �

�� �����.-t SocketType ��! ��� �� stream � �� ����� ��� �� dgram �� �� ��� �

����.-U NewUser �� ��� ��� �����.-u user ��� ��� �����.-V NewName � ��� ��� �����.-v ServiceName ��� ��� �����.-W NewWaitIndicator �� WaitIndicator� �����.-w WaitIndicator wait �� �� �� � ��� �� nowait �� �� $�� �� ���� �

����.

��

��� ��: �� ��� � system ��� ���� � ��� �� � ���.

��

1. /etc/inetd.conf ��� � uucp ��� ��� �����, �� �� ������.

chsubserver -a -v uucp -p tcp

2. gregserv ���� � �� ��! ��� ftpd ��� ���� UDP ���� ��

/usr/sbin/gregserv ���� ��� ���� � �� /etc/inetd.conf ��� ����� �� �

��� ������.

chsubserver -a -r inetd -v gregserv -p udp -t stream -w nowait -uroot -g /usr/sbin/gregserv ftpd

inetd� ��� � ���� ����. ��� �� ���� inetd ���� SIGHUP �� ��

���.

3. /tmp/inetd.conf ����, stream �� ���� dgram �� ���� �� ���� ���� ��

� ��� ������.

chsubserver -c -v gregserv -p udp -t stream -T dgram -C /tmp/inetd.conf

4. /etc/inetd.conf�� UDP� �� gregserv ���� ���� ����� �� �� ������.

chsubserver -d -v gregserv -p udp

��

/usr/sbin/chsubserver chsubserver ��� �����./etc/inetd.conf inetd �� �� ��� ��� �����.

�� ��

chservices ��.

434 �� ���, � 1 �

Page 451: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

inetd �, fingerd �, ftpd �, rexecd �, rlogind �, rshd �, syslogd �, talkd �,

telnetd �, tftpd �.

inetd.conf �� ��, protocols �� ��, services �� ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� TCP/IP Daemons.

chtcb ��

��

��� ���� ��� �� ���� �����.

��

chtcb { on | off | query } File ...

��

chtcb ��� File ���� ��� ��� ���� ���(TCB) �� ���� �����. ��

�� ���� �����.

on ���� ��� �� ���� �����.off ���� � �� ���� ��� �� �� ����� �����.query ���� ��� ��� �����.

� ��� �� ����� ���� ���.

��

��� ��: �� ���� security ��� ���� � ��� �� ��(x) ��� ��� ���. �

���� ���� ��� � �� �� ���.

��

1. �� ����(TCB)� ��� plans ��� ����� �� �� ��� ���� ��� �

� on�� ������.

chtcb on plans

plans ��� �� �� ���� �� � ���.

2. plans ��� �� ����(TCB)� ���� ����� �� �� ������.

chtcb query plans

�� ���(���) 435

Page 452: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� � ���� � TCB �� on ��� ���� �� plans ��� �� ����� ���

� � � ���.

3. �� ����(TCB)�� plans ��� �����, �� �� ������.

chtcb off plans

��

/usr/sbin/chtcb chtcb ��� �����.

�� ��

tsh ��, tsm ��, tvi ��.

chmod ���.

��� ID � ��, �� ��� ��, �� ���� � ��� ���� AIX 5L Version 5.2 System

Management Concepts: Operating System and Devices� Security Administration� ������.

chtun ��

��

�� ��� ����.

��

chtun -t tunnel_ID -v {4|6} [ -s src_host_IP_address] [ -d dst_host_IP_address] [ -m pkt_mode] [ -f

fw_address [ -x dst_mask]] [ -e src_esp_algo] [ -a src_ah_algo]] [ -p src_policy] [ -E dst_esp_algo]

[ -A dst_ah_algo]] [ -P dst_policy] [ -l lifetime] [ -k src_esp_key] [ -h src_ah_key] [ -K dst_esp_key]

[ -H dst_ah_key] [ -n src_esp_spi] [ -u src_ah_spi] [ -N dst_esp_spi] [ -U dst_ah_spi] [ -b

src_enc_mac_algo] [ -c src_enc_mac_key] [ -B dst_enc_mac_algo] [ -C dst_enc_mac_key]

��

chtun ��� ��� �� ���� �� �� ��� ��� �� ��� �����. ��� ���

� �� ��, gentun ��� ��� �� � �� ��� �����. gentun ��� ��� ���

� �� �� � �� �� � �� ���.

���

-A dst_ah_algo] (�� ��� ���) IP �� ���� � ��� ���� �� ����. -A� ��� �

� ���� ��� �� ����� �����. ipsecstat -A ��� ��� �� �� ��

��� ���� �� � ���.

436 �� ���, � 1 �

Page 453: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-a src_ah_algo] IP �� ��� � �� ���� ���� �� ����. -a� ��� �� ���� ��

� �� ����� �� �����. ipsecstat -A ��� ��� �� �� ����� ��

�� �� � ���.-B dst_enc_mac_algo (�� �� ��) �� ESP �� ����(�� �� ����). -B� ��� �� ����

��� �� ����� �� �����. ipsecstat -A ��� ��� �� �� �����

���� �� � ���.-b src_enc_mac_algo (�� �� ��) �� ESP �� ����(�� �� ����). -b� ��� �� ����

��� �� ����� �� �����. ipsecstat -A ��� ��� �� �� �����

���� �� � ���.-C dst_enc_mac_key (�� �� ��) �� ESP �� �(�� �� ����). � �� ″0x″� ���� 16� �

����� ���.-c src_enc_mac_key (�� �� ��) �� ESP �� �(�� �� ����). � �� ″0x″� ���� 16� �

����� ���.-d dst_host_IP_address �� ��� IP ��. ���-��� ��� ��, � �� ��� ���� �� ��� ��

���� IP �����. ���-���-��� ��� ���� ��� �� �� ���� IP

�����. ��� ��� ���� ��� ��� �� �� ��� ���� � �� IP ��

� �����.-E dst_esp_algo (�� �� ��) IP �� ���� � ��� ���� ��� ����. -E� ��� ��

���� ��� �� ����� �����. ipsecstat -E ��� ��� �� ��� ��

��� ���� �� � ���.-e src_esp_algo IP �� ���� � �� ���� ���� ��� ����. -e� ��� �� ����

��� ��� ����� �� �����. ipsescstat -E ��� ��� �� ��� ���

�� ���� �� � ���.-f fw_address ��� �� ��� ��� � ���� IP ��. �� ���� ��� ��� ��� ��

���. ����, ��� ���� ���� �� ��� ��� ���. � ��� ���

�� ��� ��� �� � �, ��� ��� �� �� ��� ���� � �� IP �

�� �����.

-f� ��� �� -m ��� � � �(tunnel)� ����� �����.-H dst_ah_key �� AH� � � ���. ″0x″� ���� 16� ���� ���� ���.-h src_ah_key �� AH� � � ���. ″0x″� ���� 16� ���� ���� ���.-K dst_esp_key �� ESP� � ���. ″0x″� ���� 16� ���� ���� ���.-k src_esp_key �� ESP� � � ���. � ���� ���� ��� � � �����. ″0x″� �

��� 16� ���� ���� ���.-l lifetime � ��. � � �����.

�� ��� ��, � ��� �� ��� ���� � �� � � �����.

�� ��� ��� �� 0-44640���. 0 �� �� ��� ���� �� �����.-m pkt_mode � �� �. � �� tunnel �� transport�� ���� ���.-N dst_esp_spi (�� �� ��) �� ESP� �� � ��� ��.-n src_esp_spi (�� �� ��) �� ESP� �� � ��� ��. � SPI� �� IP ��� ��� ESP

� �� � ��� �����.-P dst_policy (�� �� ��) �� �����, ���� IP �� �� �/�� ���� ���� ����

�. � ��� �� ea� ����, IP ��� ���� �� ������. e �� a� ��

�� IP ��� ���� �� ��� �� ��, ae� ���� ��� ��� �� �����

�.-p src_policy �� ��. ��� IP �� ���/�� ���� �� ��� �����. � ��� ��

ea� ���� IP ��� ���� �� ������. e �� a�� ���� IP ��� ��

�� �� ��� �� ��, ae� ����, ��� ��� �� ������.-s src_host_IP_address �� ��� IP ��, ��� ���� �� ��� ������ IP ��. ��� ��� �

��� ��� ��� �� �� ��� ���� � �� IP ��� �����.-t tunnel_ID �� �� ��� �� ����� ��� �� ID� �� ID(ID). � �� �� �� ��

ID� ���� ���.

�� ���(���) 437

Page 454: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-U dst_ah_spi (�� �� ��) �� AH� �� � ��� ��.-u src_ah_spi (�� �� ��) �� AH� �� � ��� ��. � SPI� �� IP ��� ��� AH

� �� � ��� �����.-v ��� �� IP ��. IP �� 4 ��� ��, � 4� ������. IP �� 6� ��, � 6

� ������.-x dst_mask � ��� ���-���-��� ��� �����. � �� ��� �� � � ����

� ���� ������. -d ��� ��� �� ���� � ����� �����. -d

� -x ��� �� ���� �� ��� ��� �� � ����� �� ���� ��

���� �� �����(�� �� �� �).

-f� ��� ���� � ���� �����.-y (�� �� ��) �� �� ��. �� ��� ESP �� AH ��� �� �� ��� �

� ���� �����(-z �� ��). -y ��� �� ��� �� Y(�)� N(���)�

��.-z (�� �� ��) �� �� �� ��. �� �� ��� �� ��� � ESP �� AH

���� �� ���� �� ESP ��� �����. �� �� �� ��(-y)� Y� �

� ��� �����. ��� �� Y(�)� N(���)���.

�� ��

exptun ��, gentun ��, imptun ��, lstun ��, mktun �� � rmtun ��.

chtz ��

��

/etc/environment ��� � TimeZoneInfo(TZ) �� �� ����.

��

chtz TimeZoneInfo

��

chtz ��� /etc/environment ���� TZ �� �� ��� � � �����. chtz ��� ��

�� ���� � 0�, ���� 0� �� �� �����.

��

/etc/environment �� ���� �� �� ��� ���� �� ���.

�� ��

date ��.

environment ��.

438 �� ���, � 1 �

Page 455: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chuser ��

��

��� �� ����.

��

chuser [ -R load_module ] Attribute=Value ... Name

��

��: ���� �� ���(NIS) ������� ���� ���� �� chuser ��� ���� ���

�.

chuser ��� Name ���� ��� ���� �� ����. ��� ��� 8 �� ��� ��

���� � �� ���. �� ���� Attribute=Value ���� � �� � �� �� ��

����. � ���� � ���� ��� �� ��� �� ���.

v /etc/passwd

v /etc/security/environ

v /etc/security/limits

v /etc/security/user

v /etc/security/user.roles

v /etc/security/audit/config

v /etc/group

v /etc/security/group

�� ID � ��(I&A) ���� ��� �� ��� �� ���� -R ��� ��� ���

� ��� I&A � ��� �� � ���. -R ��� ���� �� �� chuser ��� ����

�� ���� �����. � ��� /usr/lib/security/methods.cfg ��� ���� ���.

��� �� � �� ��� ��� chuser ��� ���� ��� � ��� �� �� ���

����.

� �� ��� ���(wsm)� ��� ����� �� System Management Interface Tool(SMIT) smit

chuser �� ��� ��� ��� �� � � ���.

��� ��� �� ���

��� ��� ��� ���� �, chuser �� ��� ��� �����. �� ��� �� UserAdmin

��� � ���� chuser ��� ��� �� �� ���� �� � ���.

v admin �� true� ��� ���� �� ���� ������.

v �� ���� �� ����.

�� ���(���) 439

Page 456: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v �� ��� ���� �����.

�� ��� admin �� true� ��� �����. security ��� ��� ��� ���� �� �

�� ���� ��� ��� �� � ���.

chuser ��� �� ��� ����� �����. � ��� ��� NIS � DCE� �� ���� �

�� � ���� � � ����.

���

-R load_module ���� �� � � ��� ��� I&A ��� �����.

��� ��� �� ��, �� �� ��� �� �� � ���.

account_locked ��� ��� ���� �� �����. ��� �� �� ����.

true ���� ��� ����. � yes, true � always� �����. ���� ���� ��

� � ����.

false ���� ��� ��� ����. � no, false � never� �����. ���� ����

��� � ���. ��� � � ����.admin ���� �� � � �����. ��� �� �� ����.

true ���� ��� ������. �� ����� ��� ���� ��� ���� ��

� � ���.

false ���� ��� ���� ����. ��� � � ����.admgroups ���� ���� ��� �����. Value ���� ��� �� �� ��� ������.auditclasses ���� �� ��� �����. � ���� ��� �� �� ��� �� �� �� �

�� ���� ���� ALL���.auth1 ���� ���� � �� �� �����. Value ���� ��� �� Method;Name

�� ������. Method ���� �� �� �����. Name ���� �� ���

���. Name ���� ���� �� ��, �� ��� ��� ��� �����.

��� �� �� /etc/security/login.cfg ��� �����. � �� ��, SYSTEM ��

�� �� ��� �����. NONE �� 1� �� ��� ����� ��� �����.auth2 ���� ���� � ���� �� �� �����. Value ���� ��� ��

Method;Name �� ������. Method ���� �� �� �����. Name ����

�� ������.

� �� ���� ���, � �� NONE��, �� �� ��� ����� �� �����.

��� �� �� /etc/security/login.cfg ��� �����. Name ���� ���� �� �

�, �� ��� ��� ��� �����.

440 �� ���, � 1 �

Page 457: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� login �� su ��� �� ����� � � ��� ��(�)� �����. ��� ��� ��

����.

CAP_PROPAGATE

�� �� � ���� �� ����.

CAP_NUMA_ATTACH

���� �� ��� �� � � ���.

CAP_BYPASS_RAC_VMM

���� VMM �� ��� ��� ��� � ���.

�� � � �� � ��� �� ������.core ���� ���� � � � �� � �� ��� �� �� ��� �����. Value �

��� 512 �� �� �� ���� �����.core_hard ���� ���� � � � �� � �� ��� �����. Value ���� 512 ��

�� �� ���� �����.cpu ���� ���� �� � � � ��� � � (� � )� �� �� ��� ����

�. Value ���� �����. � � �� -1��, � ��� �����.cpu_hard ���� ���� �� � � � ��� � � (� � )� �����. � ���� �

����. � � �� -1��, � ��� �����.daemon name ���� ��� ���� cron � �� src(��� �� ���) �� ��� ��

�� �� � �� �� �����. ��� �� �� ����.

true ���� cron � src ��� ��� � ���. ��� � ����.

false ���� cron � src ��� ��� � ����.data ���� ���� �� �� � ��� ���� �� �� ��� �����. Value ��

�� 512 �� �� �� ���� �����. � �� �� ��� ��� 1272���.data_hard ���� ���� �� �� � ��� ���� �����. � ���� 512 �� ��

�� ���� �����. � �� �� ��� ��� 1272���.dictionlist � ��� � � �� ��� �� ���� �� ��� �����.

�� ��� ��� �� ��� �� �� �� ���� ���� � � ���� �����.

�� �� �� � ����� ��� ��� �� ���� �� �� ����� ���. �� ��

� � �� � ��� ������. ��� � �� ��� ���� � �� ��� ����.

��� �� 7�� ASCII ���� �����. ���� �� ��� ��� �� �� �� ��

� /usr/share/dict/words �����.expires ��� ����� �����. Value ���� MMDDhhmmyy ��� 10� ����, ��

MM = month, DD = day, hh = hour, mm = minute � yy = 1939 - 2038 ��� ��� � �

����. �� ��� �����. Value ���� 0�� ��� ���� ����. � �� 0�

��. ��� ��� date ��� ������.fsize ���� ���� � �� � � � �� � ��� �� �� ��� �����. Value

���� 512 �� �� �� ���� �����. 2G�� � ��� ��� -1 ��

unlimited� ������. � �� �� ��� 8192���.fsize_hard ���� ���� � �� � � � �� � ��� �����. � ���� 512 ��

�� �� ���� �����. 2G�� � ��� ��� -1 �� unlimited� ������.

� �� �� ��� 8192���.gecos name ���� ��� ���� �� �� ��� �����. Value ���� �� :(��) �

�� �� ����� �� ‘#!’�� � � ����.groups ���� ��� ��� �����. Value ���� ��� �� �� ��� ������.histexpire ���� � ��� ��� � �� � (� � )� �����. �� 10� �� ������. �

�� 0��, � ��� ���� �� �����. �� ����� � �� � � ��

�.histsize ���� ��� � �� �� ��� �� �����. �� 10� �� ������. � �� 0

���. �� ����� � �� � � ���.

�� ���(���) 441

Page 458: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

home �� ���� ��� ���� ����� �����. Value ���� �� �� �����.id ��� ID� �����. Value ���� ��� �� ������. � �� ��� �� ��

� �� $� ��, � ��� � �� ���� ���.login login ���� ���� ���� ��� � �� �� �����. ��� �� �� ��

��.

true ���� ���� ��� � ���. ��� � ����.

false ���� ���� ��� � ����.loginretries ���� ��� ��� �� ����� �� ��� �� ���� �� ��� ��� �� �

����. �� 10� �� ������. 0 �� �� ��� �� �����. �� ���� �

�� ���, ��� ���� /etc/security/lastlog ��� � ���� unsuccessful_login_count

�� loginretries � ��� ��� ��� ���� ��� � ����. ��� �����,

�� �� ������.

chsec -f /etc/security/lastlog -s username -a \unsuccessful_login_count=0

442 �� ���, � 1 �

Page 459: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

logintimes ���� ��� ���� ���� �� � �� �����. �� � �� � ��� � ��

� ��� �� ��� ������.

[!]:<time>-<time>

[!]<day>[-<day>][:<time>-<time>]

[!]<month>[<daynum>][-<month>[<daynum>]][:<time>-<time>]

<day>� ��� �� mon, tues, w, THU, Friday, sat � SUNDAY���. � ��� � ���

� day �� ������. ���, ��� ‘��’ � ‘�’ �� ��� �� ���� ���. ���

� � Tuesday-Monday� �� �� � ���. ���� ����� ���� ����.

<time>� �� ��� �� 24� �� ���� ���� � � �����. � � �� :(��)

� �� 4��� ���� ������. ��� 0� ������. ���, 0800(8am)� ���

�� 800� ���� ����. ��� � � ��� ��� ��� �� ��� �����. �

� � � �� � � �� ��� ���. � � � � � �� � ����.

�� �� � �� ���� ‘�’ �� ������. ���, ��� ‘��’ � ‘�’ �� ��� �

� ���� ���. ‘�’� � � September-June� �� �� � ���. ‘�’ ��� ���

�� ���� ����.

<daynum> � �� ��� �� � �� �� ��� 1-31�� �����. � �� ��� �� �

� ����. 1 �� 2 ���� ‘�’ �� ������. ‘� �’ � �� ���� ‘�’� � ��

�� �� ��� � �����, �� ��� �� ����� �� ����� �� �

����.

!(� �)� ���� �� ��� ���� �� ���� ���� DENY ����� ����. �

��� �� ��� ���� ���� ACCESS ����� ���. ���� �� ��� ���

� ��� ���� ����� ���. ��, ���� � ����� 200�� ��� �����.

� �� ����� ���� ����. ‘�’ � ‘��’ ��� ���� �� ��� ��� ��

�� ���� ��� �� � �� � ���. ‘�’ � ‘��’ �� ���� ��� �����

�����. , <month><daynum> � <daynum><month> ��� �����.

���� � ��� ��� �����.

1. �� DENY ��. � ��� ��� � � ���� ��, ���� ���� ���� �� �

�� ���� ����.

2. ���� DENY� �� ��, �� �� ��. � �� ��� ��� � � ���� ��, �

�� ���� �����. � �� ��� ��� � � ���� �� ��, ��� ����

�����. �� ��� ���� �� ��, ���� ��� � ���.maxage ��� � � (� � )� �����. ��� ��� � �� ���� ���. �� 10� ��

������. � � �� 0��, � � �� �����. � � 0-52���.maxexpired ���� ��� ��� � � � maxage � ��� � � � � � � �����. � �

�� � ��� �� ����� ��� � � ���. �� 10� �� ������. � �

� -1��, ��� ���� �����. maxexpired �� 0� ��, maxage �� ���� ��

� �����. maxage �� 0�� maxexpired �� �����. � : 0 - 52(�� ����

maxexpired��� �����.)maxrepeats � ���� � ��� �� � � � �� �����. � 0� �� ����, � � �

� 8� � �� �� �����. �� 10� �� ������. � � 0-8���.

�� ���(���) 443

Page 460: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

minage ��� � � � ��� ��� � �� � (� � )� �����. �� 10� �� ���

���. � � �� 0��, � � �� �����. � � 0-52���.minalpha � ��� �� �� ��� � ��� �����. �� 10� �� ������. � � ��

0��, � �� �� �����. � � 0-8���.mindiff �� ��� � � � ���� ���� ��� � �� �����. �� 10� �� ����

��. � � �� 0��, � �� �� �����. � � 0-8���.minlen ��� � ��� �����. �� 10� �� ������. � � �� 0��, � �� ��

�����. ��� ��� 8���. � �� minlen � ‘minalpha + minother’ � �� � �

�� �� �����. ‘minalpha + minother’� 8�� � � ����. ‘minalpha + minother’

� 8�� � ��, minother� �� �� ‘8 - minalpha’� �����.minother � ��� �� �� ��� �� ��� � �� �����. �� 10� �� ������.

� � �� 0��, � �� �� �����. � � 0-8���.nofiles ��� ���� � �� � � � �� ��� �� �� �� ��� �����. Value �

��� �����.nofiles_hard ��� ���� � �� � � � �� ��� �� �� � ��� �����. Value ��

�� �����. � � �� -1��, ����� ���� ��� �� ��� �����.pgrp ���� �� ��� �����. Value ����� ��� �� ��� �� �� � ���

� �(null) �� � ����.pwdchecks � ��� ���� �� �� �� �����. �� � ��� ��� �� ���

���� ���� � ��� �����. � ��� �� �� �� �� �� �� � ��

/usr/lib� �� ���� �� �����.pwdwarntime �� �� ����� ��� ���� ���� �� ��� �����. �� 10� �� ����

��. 0 �� �� ��� ���� �� �����. � �� maxage� minage � ���

��� ���. � ���� � � �� ����, minage �� ���� ��� �����.rlogin telnet �� rlogin ���� �� ���� ��� �� ���� �����. ��� �� ��

����.

true ��� ��� ���� ��� � ���. ��� � � rlogin ����.

false ���� ���� ��� � ����.roles � ���� �� �� �� �����. Value ���� ��� � � � �� ������.rss ��� ����� � � ��� ��� � �� �� �� ��. Value ����

512 �� � � � ��� 10� �� ������. ����� �� � �� ���� � ��

��.rss_hard ��� ����� � � ��� ��� � �. � ���� 512 �� � � �

���� 10� �� ������. ����� �� � �� ���� � ����. � �� AIX

4.2 ��� �����.shell ��� �� � ���� � ���� ���� �����. Value ���� �� �� ��

���.stack ���� ���� �� �� � ��� �� ���� �� �� ��� �����. Value

���� 512 �� �� �� ���� �����. � �� �� ��� ��� 49

���.stack_hard ���� ���� �� �� � ��� �� ���� �����. � ���� 512

�� �� �� ���� �����. � �� �� ��� ��� 49���. 32�� ��

���� �� 523264 512 �� �� �����. 64�� ������ �� 4GB� ��

� 8388608 512 �� ��� �����. ��� ��� ��� -1�� ����� ��� � �

� � ���. � �� AIX 4.2 ��� �����.su su ���� � ���� ��� ��� ���� �� � �� �� �����. ��� �

� �� ����.

true � ���� ��� ���� �� � ���. ��� � ����.

false � ���� ��� ���� �� � ����.

444 �� ���, � 1 �

Page 461: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

sugroups su ��� ��� ��� ��� ���� �� � � ��� �����. Value ���� �

�� �� �� ��� ������ �� ��� ���� ALL ����. �� �� �� !(�

�)� �� � ��� �����. � �� ���� �� ��, �� ��� su ��� ���

� ��� ���� �� � ���.sysenv ��� � (���) ��� �����. Value ���� /etc/security/environ ��� ����

� ��� �� Attribute=Value �� �����.tpath ���� �� �� � � �����. ��� �� �� ����.

always ���� �� ����� �� � ���. ��� ���� �� ����

�� � �� �� � �� ���� � �����.

no tsh ���� �� ���� �� �� �� � ����. ���� ���� � �

�� �(SAK)� ���� ��, ��� ��� ����.

nosak � �� �(SAK)� ���� �� ���� �� ���� �� �� �������.

���� SAK ��� �� � � 2� ���� ���� �� � �� ������.

��� � � ����.

on ���� ���� �� �� �� ��� � �� �(SAK)� �� �� ��

� ��(�� �� ��) � ���.ttys Name ���� ��� ��� ��� � � ��� �����. Value ���� ���

�� �� �� ��� ������ �� ��� ���� ALL ����. �� �� �� !(�

�)� �� � ��� �����. � �� ���� �� ��, �� ��� ��� ���

� �� � ���.umask �� �� ��� �����. � �� ��� � �� ��� �� ��� � � ��� �

� ��� �����. � �� 022���.usrenv ��� � (���) ��� �����. Value ���� /etc/security/environ ��� ����

� ��� �� Attribute=Value �� �����.

��

��� ��: �� ��� � security ���� � ��� �� ��(x) ��� ��� ����. � ���

�� ����(TCB)� ����� ���� ���. setuid(SUID) �� ��� � �� ���� �

��� ���� ���.

����� ��:

�� ��

rw /etc/passwdrw /etc/security/userrw /etc/security/user.rolesrw /etc/security/limitsrw /etc/security/environrw /etc/security/audit/configrw /etc/grouprw /etc/security/group

�� ���:

��� ��

USER_Change ���, �

�� ���(���) 445

Page 462: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

�� ��� I&A ���� ���� � �� ����� ����. ��� I&A ��� ���� �

� ��� � �� ��� �����.

��

1. smith ���� � ���� ���� ��� � � ��� �� �� ������.

chuser rlogin=true smith

2. davis ��� ��� �� �� 1995� 5� 1� �� 8�� ���� �� �� ������.

chuser expires=0501080095 davis

3. finance � accounting ��� davis� ����� �� �� ������.

chuser groups=finance,accounting davis

4. LDAP � ��� �� ��� davis�� �� ���� ���� ��� ���� �� �� �

�����.

chuser -R LDAP rlogin=false davis

��

/usr/bin/chuser chuser ��� �����./etc/passwd ���� �� �� �����./etc/group ��� �� �� ���./etc/security/group ��� � �� ���./etc/security/user ���� �� �� ���./etc/security/user.roles ���� �� � �� ���./etc/security/lastlog ���� ��� �� ���./etc/security/limits �� �� ���� � ���� �� �����./etc/security/audit/config �� ��� ��� ���./etc/security/environ ���� �� �� ���.

�� ��

chfn ��, chgroup ��, chgrpmem ��, chsh ��, lsgroup ��, lsuser ��, mkgroup ��, mkuser

��, passwd ��, pwdadm ��, rmgroup ��, rmuser ��, setgroups ��, setsenv ��, su ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� �� � �

�� ����� ������.

AIX 5L �� 5.2 � ��� ��� ��� �.

446 �� ���, � 1 �

Page 463: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chvfs ��

��

/etc/vfs ��� � ��� ����.

��

chvfs VFSEntry

��

chvfs ��� VFSEntry ��� �� � �� ��� /etc/vfs �� ��� ����. VFSEntry

���� � �� ����.

VFSName:VFSNumber:MountHelper:FileSystemHelper.

VFSEntry� � �� ��� �(null)(�� )� � �(VFSName �� ��), ���� �� ��

� ����. �� ��� ���� ��, /etc/vfs ��� � ��� ����.

����

VFSEntry �� �� ��� ���: VFSName:VFSNumber:MountHelper:FileSystemHelperVFSName �� �� ��� ��� ��� �����.VFSNumber ��� �� ���� �� �� �� ��� ��� �� ��� �����.MountHelper � ��� �� ���� ���� � ���� ��� ��� �����.FileSystemHelper �� ��� �� ���� ��� ���� � �� �� ��� �� ��� ���� ��� ��� �

����.

��

newvfs�� vfs ��� �� FileSystemHelper� ���� �� �� ������.

chvfs "newvfs:::/etc/helper/testhelper"

��� ���� ��� ����.

��

/etc/vfs �� �� ��� ��� ��� ���.

�� ��

crvfs ��, lsvfs ��, mount �� � rmvfs ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� ��, ��, �� � ����� �� �����.

�� ���(���) 447

Page 464: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chvg ��

��

�� ��� �� �����.

��

chvg [ -s Sync { y | n }] [ -h Hotspare {y | Y | n | r }] [ -a AutoOn { n | y } ] [ -c | -l ] [ -L

LTGSize ] [ -Q { n | y } ] [ -u ] [ -x { n | y } ] [ -S | -R] [ -t [factor ] ] [ -B ] [ -C ] [-g] [

-b { n | y } ] VolumeGroup

��

chvg ��� ��� �� �� �� ��� ���� ����� �� �����. �� ���� ��

�� ��� ��� �� � ���� ��� �� �� �� ��(��)� ��� � �� ���

�.

MAXPVS 32(-B ��� �� ��� 128)

�: � ��� �����, ���� �� ��� ��� ��� system ��� ����� ���.

� �� ��� ����� �� ������ ��� �� �� � � ���. ��, SMIT(��

� �� ����� ��) smit chvg �� ��� ��� � ��� �� �� ���.

�: AIX 5.2 � ����� -c �� -C ��� �� �� ��� �� �� �� �� ��� ���

�.

���

�:

1. ��� �� ��� ��� � �� ��� �� � ��, -c, -C, -Q, -l, -x, -b, -t, -L � -s �

�� ���� ����.

2. ��� �� ��� �� � ��, -c, -C, -Q, -l, -x, -b, -t, -L, -s � -h ��� ���� ��

��.

-a AutoOn �� ��� ��� �� �� ���� ����� �� �����. AutoOn �� �

� ��� � ���.

n �� ��� ��� �� �� ���� ���� ����.

y �� ��� ��� �� �� ���� �����.-b �� ��� �� ��� � � ��� ��� �����. � � �� �(yes)���.

y �� ��� �� ��� � � ��� ��� �����.

n �� ��� �� ��� � ��� ��� �����.

448 �� ���, � 1 �

Page 465: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-B �� ��� � vg ���� ����. � ��� 128�� ��� ��� 512�� ��� �

�� �� � ���.

�:

1. �� ��� ���� ��� ��� �� ��� ��� ��� � ���� -B �

�� �� � ����.

2. �� ��� �� ���, AIX 4.3.1 �� ���� �� � ����.

3. �� ��� �� ��� �� � ���� -B ��� �� � ����.

4. ��� �� ��� VGDA �� � � ��� � � � ����.

5. VGDA� ���� �� � ���� ���� � � �����, ���� �� � �

�� �� ���. � ��� ���� ����� ��, � ��� �� ���

� � � ���� �� ����. ��� ��� ��� VGDA ��� ��� ���

�� ��� �� �� ����. � �� �� � VG� �� PV��� ���

� ��� ��� ��� ����. ���� �� ��� � LV� ��� ���� �

�, � ��� ��� �� �� �� ��� ���. ��, VG� �� � ��� �

�� ����� � �� �� ����� ��, � ��� ��� (��� �� ) � �

� ���� ���� �� �� ����� ����. �� ��� �� �� ��

���, � ��� �� ��� � � �� �� ����. VGDA � � ��� �

��� ���, �� VGDA � ��(LV �, LV �, PV �� �)� �� � � �

� ��� � ���.

6. big VG� ��� �� ��� �����.

7. VGDA � � ��� ���� ���, ����� �� VGDA � ��(��� �� �

, ��� �� �, ��� �� �� �)� �� ��� � ���.-c -C ��� �����. AIX 5.2 � ����� ��� �� �� �� �� ��� ���

�.-C ��� �� �� �� ���� �� ��� ����. ��� ��� �� �� �� �

�� ��� �� ���� ����. �� ��� �� ��� ����� � � �

� ��� �� ��� �� ���� ���. �� ��� �� �� �� ��� ���

�� � �� ���� ����. HACMP ES�� -C ��� ������. � ��

� HACMP ��� ���� �� ��� � �� ���� �� �� ����.

��� �� �� ��� �� ���� �����. �� ���� HACMP ES� �� ���

�, � ��� �� ��� ����� � �� ���� ����� ���.

� ��� ��� �� ��� ��� �� �� �� ���� �����.

�:

1. ��� �� �� ��� �� ���� �����. �� ���� HACMP ES� �� �

���, � ��� �� ��� ����� � �� ���� ����� ���.

2. 64�� ��� �� ��� ��� �� �� �� ��� �����. 64�� ��� �

� ��� �� �� �� ��� ���� ����.

�� ���(���) 449

Page 466: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-g �� ��� � �� ���� ��� ���� �����. ��� �� ���� � ��,

PV� �� PP� ����� �����. ��� �� ��� 1016 ��� � bigvg�� �

� �����.

�:

1. ���� ���� �� �� �� � LVM� �� ���� varyoffvg� ���� �

� varyonvg� ���� �� ���.

2. �� ��� �� �� ��� �� �� ��� � ��� �� ���� ����

����.

3. rootvg� �� �� ���� ���� ����.-h Hotspare VolumeGroup ���� ��� �� ��� ��� �� �����. ��� ���� ��

��� �����(y) ��� ���� �� ��� �����(n). ���� �� ��� �

��� � ��� �� �� ����.

y ��� ����� � ��� ����� � � � ��� ��� ��� ��� �

��� �� ��� �����. �� �� ��� ��� � � � ��� � � �

�� � ���� �����.

Y ����� ��� � ��� � ��� ��� ��� ���� �� ��� ��

��, ��� ���� �� ��� ��� �����.

n ��� ���� �� ��� �����. ��� �� ��� �� � � ����.

r �� ��� �� Hotspare ��� ���� �� �����.

�: �� �� �� ��� �� � ��� ���� ����.-l �� ��� ��� �� �� ���� ����. � ��� ��� ���� �� ��� �

� ��� ��� �� ���� ���. � ��� AIX 4.3 ���� �����.-L �� ��� ��� �� �� ��(�� ��)� ����. LTGSize ���� �� 128,

256, 512 �� 1024 � ���. ��, � �� �� ��� � �� ���� � �� �

��� ��� ��� ���. � � ��� 128 �� �����.

�:

1. �� ��� �� ��� �� � ���� -L ��� �� � ����.

2. ��� �� �� ��� ���� �� ��� �� ��� �� � ����� ��

�. �� �� ��� ��� �����.-Q �� ��� ���� ��� ��(PV) �� !� � ���� �� � ����� �� �

����. � � �� �(yes)���. ���� �� ��� �� �� � ��� ��

���.

n �� ��� �� ��� ��(PV)� !� ��� �� ��� ����.

y �� ��� ��� ��� �!� !� � ���� �� � �����.

�: �� ��� ��� chvg -Q n �� chvg -Q y �� �� bosboot �

� savebase ��� ������.-R �� ��� �� �� ��� ��� �����.

450 �� ���, � 1 �

Page 467: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-s Sync VolumeGroup ���� ��� �� ��� ��� �� �����. ���� ��� ��

���� �����(y) ���� ��� �� ���� �����(n). ���� �� ���

���� � ��� �� �� ����.

y ���� ��� ���� ����� ���.

n ���� ��� �� ���� �����. ��� �� ��� �� � � ���

�.

�: �� �� �� ��� �� � ��� ���� ����.-S � �� ��� �� ���� ���(drain)�� � ���� �� �����.-t [factor] factor� ��� ��� �� ��� ��� �� �� ��� ����. factor� 32 ��

� �� ��� �� 1 - 16 ����, 128 ��� �� ��� ���� 1 - 64 �� � �

��.

factor� ���� �� �� �� ���� � ���� ��� ��� �� factor x 1016

�� ���� ���� �����.

factor� ����, � �� ��� �� ��� �� ��� ��� � �� factor x 1016

�� ����.

�:

1. ��� �� �� 1016 ��� ��� �� AIX 4.1.2�� �� ��� �� ��

� ��� ��� �� ��� ���� � � � � ���. �� ��� �

�� stale/fresh ��� � ���.

2. �� ��� ���� ��� ��� � ���� factor� � � ����.

3. �� ��� �� ���, AIX 4.3 �� ���� �� � ����.

4. �� ��� �� ��� �� � ���� � ��� �� � ����.

5. � �� ��� �� � � ��� ��� � ��

(MAXPVS/factor)� �����.-u �� ��� �� �����. � ��� �� ��� � LVM ��� �� �(�� ��

� �� ��� �� �)� �� �� � � �� ��� �����.

�: -u ��� ���� �� � LVM ���� �� ��� ���� ��� ����

�.-x �� �� �� ��� �� �(vary on)�� �� ����. � ��� ��� ����

�� ��� �� ��� ��� �� ���� ���.

�: ��� �� �� �� ��� �� ��� ����� ����. AIX 5.2 � �����

��� �� �� �� �� ��� ����.

y �� ��� �� ��� �� �� ����.

n ��� ��� �� ��� �� �� ����.

�: �� ��� �� ���� ��� �� ��, � ��� �� ��� �� ��� ���

�.

�� ��� ���� �� �� � ��� �� ���, /etc/inittab ��� � ��

���� ���.

rc_clvmv:2:wait:/usr/sbin/clvm_cfg 2>&1

��: � ��� �� srcmstr� ���� � ���� �� �� ���� ���.

--

�� ���(���) 451

Page 468: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. ��� �� � �� �� vg03� ���� ���� ��� �� �� ������.

chvg -a y vg03

2. ��� �� �� 1016 ��� ��� �� �� �� �� �� vg03� �� � � ����

�� �� ������.

chvg -t vg03

3. ��� �� ��� ��� � �� 2032� ��� vg03 �� ��� ��� �� � �� 16

�� ���� �� �� ������.

chvg -t 2 vg03

��

/usr/sbin chvg ��� � ����.

�� ��

��: bosboot, lsvg, mkvg, savebase, varyonvg.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Logical Volume

Storage Overview��� ��� �� ���, ��� ��, ��� ��, �� ��, ��, ��� �� �

� � �� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview��� ��, �� � � SMIT� ���� ���� �� �����.

chvirprt ��

��

�� ��� ��� ����.

��

chvirprt -d QueueDeviceName -q PrintQueueName -a Attribute=Value ...

��

chvirprt ��� PrintQueueName � QueueDeviceName� ��� �� ��� ��� ����.

452 �� ���, � 1 �

Page 469: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�: qprt ��� ��� � � �� �� � ��� �� ��� ��� �� � ���.

�� � -w ��(��� �)� �� � � �� 132� ����, w=132� ������. � �

� ��� 2�� � ���.

� �� ��� ���(wsm)�� �� ���� ������ ��� �� �� � � ��

�. �� SMIT(��� �� ����� ��) smit chvirprt �� ��� ��� � ��� �� ��

���.

���

-a Attribute=Value Value� Attribute� �� �����. Value� �� ��� ��� ���� ��, �� ��� ��

���(‘Value’). ���� chvirprt ��� �� �� ��� �����.-d QueueDeviceName �� ��� ���� ���� �� ��� �����.-q PrintQueueName �� ��� ���� �� ������ �����.

��

� � ��� �� 132�(w �)� ��� mary ���� proq �� ���� � mypro ���� ��

� ��� �� ��� �� ″�� ��″ ��� ���(si �) ����� �� �� ������.

chvirprt -q proq -d mypro -a si=mary w=132

��

/etc/qconfig ��� ��

/usr/sbin/chvirprt chvirprt ��� �����./var/spool/lpd/pio/@local/custom/* �� �� � ��

/var/spool/lpd/pio/@local/ddi/* ��� �� �� � ��

�� ��

lsvirprt ��, mkvirprt ��, qprt ��, rmvirprt ��, smit ��.

qconfig ��.

AIX 5L Version 5.2 Guide to Printers and Printing� Changing or Showing Characteristics of a Virtual

Printer.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Colon File Conventions.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Specific Information.

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Support.

AIX 5L Version 5.2 Guide to Printers and Printing� Virtual Printer Definitions and Attributes.

AIX 5L Version 5.2 Guide to Printers and Printing� Adding a Printer Using the Printer Colon File.

�� ���(���) 453

Page 470: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Version 5.2 Guide to Printers and Printing� Printer Code Page Translation Tables.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

chvmode ��

��

�� �� �� � X ��� �� � ��� ����.

�: � ��� X ��� �� �� ��� �� �����.

��

chvmode [ { + | - } l ] [ { + | - } c ] [ -vsize WidthxHeight [ @ VSync ]

��

chvmode ��� �� �� �� � X ��� �� ���� ��� ��� ����.

��� �� ��� CRT ����� ���� �� ���� � ���� (��)� ��� ����.

� �� ��� ���(wsm)�� �� ������ ��� �� �� � � ���. �� SMIT(�

�� �� ����� ��)� ��� � ��� �� �� ���.

���

+/-c CRT(��) ��� �� �� �� �� ����� ���.+/-l LCD ��� �� �� �� �� ����� ���.-vsize WidthxHeight[ @VSync ] CRT(��) ����� ��� ��� �� ���(Hz(���)

� � ���� ��)� �����. @VSync� ���� �� �

�, �� �� ��� ���� �����.

��

��� ��: �� ���

�� ���: �

�� ��

�� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

454 �� ���, � 1 �

Page 471: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. LCD ��� �� ����� ��, CRT(��) ����� �� ���� ���, �� �� ��

����.

chvmode -l +c

2. �� CRT(��) �� �� 1024x768� ����, �� �� ������.

chvmode -vsize 1024x768

3. 75Hz� �� ���� ��� �� VGA �� �����, �� �� ������.

chvmode -vsize 640x480@75

��

/usr/bin/X11/chvmode chvmode ��� ���.

�� ��

lsvmode ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

chypdom ��

��

���� �� �� ��� ����.

��

/usr/sbin/chypdom [ -I | -B | -N ] DomainName

��

chypdom ��� ���� �� ��� ����. DomainName ���� ���� �� �� �

� ��� �����.

� �� ��� ���(wsm)�� ���� ������ ��� ���� �� � � ���. �

� SMIT(��� �� ����� ��) smit chypdom �� ��� ��� � ��� �� �� �

��.

���

-I /etc/rc.nfs ���� �� ��� ���� �����. � ��� �� ��� � ��� ��� � ����.-B �� �� ��� ��� /etc/rc.nfs ��� ��� ���� ���� �����.

�� ���(���) 455

Page 472: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-N �� ��� �� ���� �����. /etc/rc.nfs ���� �� ����� ����. domainname ��� ����

���� �� ��� ����.

��

/etc/rc.nfs ��� ��� � ��� ��� � �� ��� mydomain�� �����, �� ��

������.

chypdom -I mydomain

��

/etc/rc.nfs NFS � NIS �� �� �� ����� �����.

�� ��

domainname ��, mkclient ��, mkmaster ��, mkslave ��, smit ��.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview.

AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide� Network Information

Service(NIS).

NIS ���.

ckpacct ��

��

��� ����� � ��� �� ��� �����.

��

/usr/sbin/acct/ckpacct [ BlockSize ]

��

ckpacct ��� �� �� ��� ��� /var/adm/pacct� ��� �����. ��, cron �� � ��

� �����. � ��� ��� ��� BlockSize ���� ��� � �� ���� ckpacct ���

� turnacctswitch ��� ��� ��� ����� �� �����. BlockSize ���� 1000�

��.

456 �� ���, � 1 �

Page 473: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/var �� ���� �� �� ��� � �� 500 ��� ckpacct ���� turnacct off ��� ��

� ���� ��� ����� �� �����. 500 �� �� �����, ����� �� ��

���. � ��� ckpacct ��� ���� ��� �����.

MAILCOM �� �� mail root adm�� �� �, ��� ���� � ��� ��� adm ��

��� ����.

��

��� ��: adm ��� ���� � ��� �� ��(x) ��� ��� ����.

��

/var/adm/pacct ��� ��� ��� ���� �����, /var/spool/cron/crontabs/root ��� ��

������.

5 * * * * /usr/sbin/acct/ckpacct

� ��� cron ��� �� ��� � ���� �����. ckpacct ��� �� �� 5 (5 *)� �

����. � ��� ����� cron �� ���� ���� ��� � �����. �� cron ����

��� ���� AIX 5L Version 5.2 System Management Guide: Operating System and Devices� ″Setting

Up an Accounting System″� ������.

��

/usr/sbin/acct ���� ��� �� ��

/var/adm/pacct ��� ����� �� �� ��.

�� ��

acctcom ��, acctprc1, acctprc2, �� accton ��, turnacct ��.

cron �.

acct ���.

���� ���, �� ��� � � ���� ��, ���� ��� �� �� ��� ��� AIX 5L

Version 5.2 System Management Concepts: Operating System and Devices� Accounting Overview�

������.

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Setting Up an Accounting

System��� ���� ���� ��� � ��� ��� �� �����.

�� ���(���) 457

Page 474: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ckprereq ��

��

����� �� �� ����� �� ���� ��� �� ��� �����.

��

ckprereq [ -v ] [ -O { r | u | s } ] [ -f PrereqFile | -l FilesetName [ Level ] ]

��

ckprereq ��� ��� �� �� �� � ���� ��� �� ����� �����.

ckprereq ��� ���� ��� ������ ����� �� ���.

ckprereq� -f ��� �� �� �, PrereqFile ���� ���� �� ��� ��� �����.

� ��� � ��� �� ���� ���� � ��� �� �� ��� �� ��� � �

��.

ckprereq� -l ��� �� �� �, ���� ��� ���� �� �� ���(SWVPD) �����

�� � ProductName ����� �����.

PrereqFile ���� -f ��� ����, ckprereq ���� �� ��� ����. �� ��� ��

��� !��� � ����� �����. �� �� � �� �� �� �����. �� ckprereq �

�� ��� ���� ��� �� ckprereq ��� �� �� �����.

��� � �� �� ���� prereq, coreq, ifreq � instreq���.

prereq� �� ��� ��� �� �� ��� ��� ���� ������. ��� ��� ����,

���� ��� SWVPD ��� APPLIED, APPLYING, COMMITTED �� COMMITTING � �

�� ���. prereq� �� �� ��� ���� �� ��� ��� �� ���� ����.

coreq ���� ��� ���� �� � � ��, prereq ���� �� ��� ��� ��� � �

����, coreq ���� prereq ���� � ���. !�� �� ���� ��� �� ���� ��

��, ���� ���� ���� ��� �� ��� ���� ��� �� �� ���� ����.

coreq ���� ckprereq ��� �� �����. (installp ��� �� �� ���� �� ���� �

� ����.)

ifreq ���� �� ��� ���� �� �� �� �� ����� � ����� coreq� ����

�. �� ��� ���� �� ��, ifreq ���� �����.

instreq ���� ckprereq ��� �� prereq ����! �����. instreq� ��� �� installp

��� �� �� ��� ���� �����.

458 �� ���, � 1 �

Page 475: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

installp ��� �� ��� corequisite � if-requisite �� ��� ��� � ���� �� �� coreq

�� ifreq ��� �� ��� �����. if-requisite ��� ����� ��� �� �� ���� �

� ��, if-requisite ��� ���� ����.

���

-f PrereqFile ���� ��� ��� �� ��� �����.-l FilesetName[ Level ]

SWVPD �������� ���� ��� � �� �� �� �� �� �

� ��� �����.-O {r|u|s} �� ���� ��� �� ��� ��� �����. � ��� ���

� �� �� ckprereq ��� INUTREE �� �� �� ��� ��

� � �����. INUTREE �� �� installp ��� �� �����.

r ��� /(��) � � ��� �����. u ��� ���� ���

/usr � � � ��� �����. s ��� ��� ���� ���

/usr/share � � � ��� �����. � �� � � � � �

���.-v �� ��� ��� � ��� �� �� ��� �� ��� ����

�.

���

ckprereq ��� SWVPD�� ���� �� ��, ���, ��(modification) �, ��(fix) � � ��

ID� ����� ���� ���� �� �� ���� ���� �� � �� �� � � � ���

�����.

f ��(fix) �� �� ���� ������.m ��(modification) �� �� ���� ������.n �� ��� ���� ��� broken�� �����.p �� ID� �� ���� ������.r ���� �� ���� ������.s PrereqFile ���� �� ��� ������.v ��� �� ���� ������.

���� ��� ��� ���� �� ��� �� �� ��� �� �� ��� ���� ��, ckprereq

��� �� �� �� 255���. ��� ��� �� �� ��� ���� ��� ���� ����

�.

��

��� ��: � ��� ����� �� ��� �� ���.

��

1. �� �� ��� � �� /tmp/prq.test� �� ��� ��� �� ����, �� �����

�.

*prereq bos.rte 4.1.0.0*prereq X11.base.rte 4.1.0.0

�� ���(���) 459

Page 476: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ����� ����� �� �� ������.

ckprereq -vf /tmp/prq.test

2. �� � � �� /usr/lpp/snaserv/prereq2 ��� ���� �� �� ����� ����, �

� �� ������.

ckprereq -f /usr/lpp/snaserv/prereq2 -Or

3. � 4.1.0.1� � ��� �� �� � bos.net.tcp.client� ����� ������ ����, �

� �� ������.

ckprereq -l bos.net.tcp.client 4.1.0.1

��

/etc/objrepos/product �� ���� /root � � ��� ����� �� ���

� ������./usr/lib/objrepos/product �� ���� /usr � � ��� ����� �� ���

� ������./usr/share/lib/objrepos/product �� ���� /usr/share � � ��� ����� �� �

�� � ������.

�� ��

installp ��.

cksum ��

��

��� ���� �� �� �����.

��

cksum [ File ... ]

��

cksum ��� File ���� ��� ��� �� ��� �� 32�� ��� CRC(�� �� ��) �

�� �� �����. ��� ��� �� ��, cksum ��� �� ��� ����. ���, �� �

� �� ��� �� ��� �����. �� ��� �� ��, �� ��� � � � �����.

cksum ��� �� �� �� �� �� �� �� �� ��� ��� �� ��� �� �

�� ���� � �� � ���. cksum ���� �� ��� ��� � � ����. ���,

��� ��� ��� � ��� �� ���� ���� ����.

460 �� ���, � 1 �

Page 477: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cksum ��� sum ��� � ����� ��� 32 �� ��� CRC� �����. cksum ���

��� �� � ��� ��� �� CRC ����� �����. ��� ��� ���� AIX 5L

Version 5.2 Communications Programming Concepts� ″Understanding DLCETHER Protocol Support″

� ������.

�: cksum ��� POSIX 1003.2� ���� �� ���� �� POSIX 1003.2 �� �����

���� �����.

� � ���� CRC(�� �� ��) ��� ���� �����.

G(x) = x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1

� ���� ��� ��� ���� CRC(�� �� ��) �� ����� �����.

1. �� n ��� n-1� mod 2 ��� M(x)� ��� ����. � n ��� ���� �� ���

��. �� ��� ��� ��� �� ��� � 8� �����. ��� ��� 8� ��� ��

� 0��� �(��� ��) ���� �� �� ��� 8� ����, � ���� �� �� 8� �

�� � ��� �� ��� ��� 2� ��� ���� �� ��� 8�� �� ���. � ���

��� � � 8�� � �� �� ��� �����.

2. M(x)� x32� ���(, 32�� ���� ����) mod 2 ���� ��� G(x)� ���, 31�

� ��� R(x)� ����.

3. R(x)� ��� 32�� ���� ��� ����.

4. �� ���� ����, � ��� CRC(�� �� ��)���.

�� ��

� ��� �� �� ��� �����.

0 �� ��� ���� ��� ���.>0 ��� ������.

��

file1 � file2� ���� ��� �� � � �����, �� �� ������.

cksum file1 file2

file1 ��� ���� 3995432187�� � ��� 1390 ���� file2 ��� ���� 3266927833�

� � ��� 20912 ��� �� cksum ��� �� �����.

3995432187 1390 file13266927833 20912 file2

��

/usr/bin/cksum cksum ��� ���.

�� ���(���) 461

Page 478: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

sum ��, wc ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� � �� ��� �� ��� �� �����.

AIX 5L Version 5.2 Communications Programming Concepts� Understanding DLCETHER Protocol

Supportl��� ��� ��� �� ��� �����.

clear ��

��

�� ��� �#��.

��

clear

��

clear ��� ��� �#��. clear ��� � �� ��� �� TERM ��� ����. � �

, �� �� ��� � � /usr/share/lib/terminfo ����� �� �� ��� ��� ���

��. TERM �� �� ���� �� ��, clear ��� �� ��� ��� �� � ����.

��

��� ��� ����, �� �� ������.

clear

��

/usr/share/lib/

terminfo

�� �� ������� ���.

�� ��

tput ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ����� ���

� ��� ���� ��� � �� �� ���� �� �����.

462 �� ���, � 1 �

Page 479: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

clsnmp ��

��

AIX clsnmp ��� ���� �� ��� �� SNMP ����� �� � �� AIX ��� SNMP

��� ��� �����.

��

clsnmp [ -d DebugLevel ] [ -h TargetHost ] [ -c Community ] [ -t TimeOutValue ] [ -r RetryNumber

] [ -n NonRepeaters ] [ -m MaxRepetitions ] [ -p PortNumber ] [ -v ] [ -f ConfigurationFile ] [ -?

] Function [ MIBVariable [ VariableType ] [ Value ] [ ... ] ]

��

����� SNMP ��� ���� ����� ���� SNMP ��� ����� clsnmp ��� ���

���. AIX clsnmp ��� SNMPv1, SNMPv2c � SNMPv3 ��� ��� �����.

SNMP �� ��

findname

�� ASN.1 �� �� � ���� �� ASN.1 �� ��� � ��� MIBVariable ��� �

� �� ��� ���� � ��� ����� ��� �����. ��� � /etc/mib.defs �

�� ��� ���� �� ��� �� ��, ���� ���� MIB� ����. clsnmp

findname ��� ��� � � �� MIBVariable� �����.

get �� MIB(Management Information Base) �� �� SNMP ����� ��� �����. �

�� �� clsnmp� �� �� � �� �����.

getbulk

OID �� MIB � ���� ��� MIB ��� � �� �� �����. ��� getbulk�

clsnmp ��� SNMP ���� � �� �� �� ���� ��� � �� getnext� ��

� ��� �� � ���.

getnext

�� ��� ��� MIBVariable �� ��� � MIB �� �� ��� SNMP ����� �

����. ��� �� clsnmp� �� �� � �� �����.

set �� MIB �� ����� SNMP ����� ��� �����. ��� �� clsnmp� �� �

� � �� �����.

trap SNMP ��� ���� ���� �� ��� �����. � ��, � ��� �� 162 �� -p

���� ��� �� ��� �����. clsnmp �� ��� ���� ���� �� ���

��� �� �����.

walk ��� ���� �� getnext ��� ��� �, ��� ���� ���� �� � � ���

� getnext ��� �����. ���� ��� ���� ID� ��� � � � � ���.

�� ���(���) 463

Page 480: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

�� MIB ������ set ��� ���� ����. MIB ����� ���� ���� �� �����

�� SET� ���� ��� set ��� �� � ���.

getbulk� SNMPv2 �����. �� ����� SNMPv1� �� ��, �� ����� ��� ���

��. �����, ��� � ����.

�� ��� ����� � �� ����. ��, � �� � �� ����� � ���.

NetView SNMP � AIX clsnmp� �� ��� ��� ����� -p PortNumber ���� clsnmp �

��� ������. IP ��� � ��� �� ������� � �� ��� ��� �� � ��

�. -p� clsnmp �� ��� ���� � ��� �� 162 �� � ��� ����� ���. � ��

�� ���� �� ���� ������ ���.

���� �� clsnmp ��(� ��� ��� �� �� ��� ��� ��� )� � ����.

clsnmp ��� �� �� � �� ��� ��� �����. /etc/mib.defs � clsnmp.conf �� ��

� /usr/samples/snmpdv3 ����� �����.

clsnmp ��� SNMPv1, SNMPv2c � SNMPv3 ��� ��� �����. clsnmp� SNMPv1,SNMPv2c

�� SNMPv3 ��� ���� �� ����� ���� ��� clsnmp.conf �����. -h ���

� ��� ��� clsnmp.conf ��� � winSNMP ��� �� ��, clsnmp� ��� ��� ��

�� ��� ��� �����. -h ���� ���� �� ��, ��� SNMPv1request� ����

�.

���

-c Community �� SNMP ����� ��� �� ������ ���� �

�� ��� �����. ��� ��� ���� ��� � � �

�� public���. ��� �� � ��� �� �� ���

��� ���� ����.

�: ��� ��� ����� � ���.-d DebugLevel ��� �� �����. � � �� (0)��, �� ���

� ���� �� ����. ��� �� ����, ����

��� �� ����. ��� �� 0-4���.-f ConfigurationFile ��� ��� �� �� � �� ��� �����.-h TargetHost ��� ����� �� ���� �����. ��� ��� �

� , ��� �� �� clsnmp.conf ��� ��� �

winSNMP ��� � ���. ���� ���� �� ��, �

�� �� ������.-m MaxRepetitions getbulk�� �����. �� ��� getbulk� ��� ����

�. � �� �� � �� ″-n number″ ��� �� �

�� �� �� ���� �� ��� ���� ����. ��

�, ″-n number″+1 ����� ���� � �� ��

�� ��� ″-m number″ �� �����. � �� 10���.

464 �� ���, � 1 �

Page 481: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-n NonRepeaters getbulk ���� �����. �� ��� getbulk� ��� �

����. NonRepeaters� � ���� ��� � � �� ��

�� ���� � �� �(name/value)� ����. � ��

0���.-p PortNumber ��� ���� ��� �� �����. �� ��� ���� �

��, clsnmp �� ��� clsnmp ��� � � ��� � �

�� �� 162� �����.-r RetryNumber � �� �� ��� ����� � �� �����. � �

� 2���.-t TimeOutValue clsnmp ��� SNMP ������� ��� ���� � (��

)� �����. � �� 3���.-v ��� ��� ��� ��� ��� ����� �����. (�

� �, MIB ���� ID �� �� ��� �����.)-? ��� ��� �����.

����

Function � � ��� �� SNMP ��/��� �����.

get, getnext, getbulk, set, walk, trap, findname.MIBVariable ���� ���(�� ��), ASN.1 ���� ���� ID ��

� �� ��� ��� MIB(Management Information Base) �

���� �����. walk� �� ����, ��� MIB ���

� ������. ���� ��� ���� ID� ��� � �

� � ���. findname� �� ����, ��� ASN.1 �

��� ���� ID���.Value SET ���� ���� �� �����. �� �� ��� ��

��, �� �� �� ��� �� ���. �� ����

� � ��� ����� ��� ���� ���.

�� ���(���) 465

Page 482: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

VariableType ���� �� ��� �����. SNMP SET ��� �����

SMI_type� �� �� ���. ��� ��� �� ��, clsnmp

� ��� ���� � � /etc/mib.defs ��� ���� �

�� ���� MIB� �����. �� � � ���, ��

� �����. VariableType� ��� ��, VariableType� MIB

� ��� �� ��� �� �� � ����. VariableType

� �� �� ���� ���. �� �, ″number″ ��� ″foo″

�� �� ��, ″foo″� ��� ���� ��� �����.

VariableType� ����� � �� ����. ��� � ��

� �� ����.

v bitstring

v counter

v counter32

v counter64

v display �� displaystring

v gauge

v gauge32

v integer

v integer32

v ipaddress

v nsapaddress

v null

v objectidentifier �� OID

v octetstring

v opaque

v opaqueascii

v timeticks

v uinteger

��

1. MIB � ����

a. �� MIB object sysName.0� �����.

clsnmp get sysName.0

� ��� ��� �� �����.

1.3.6.1.2.1.1.5.0 = hostname.austin.ibm.com

b. �� MIB object myName.0� �����. �� myName� sysName.0� �� ���� ��

��� ��� ����� /etc/mib.defs ��� �����.

clsnmp get myName.0

466 �� ���, � 1 �

Page 483: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� ��� �� �����.

1.3.6.1.2.1.1.5.0 = myhostname.austin.ibm.com

2. � MIB � ����

a. �� ��� � � ��� MIB ����� �����.

clsnmp getnext udp

� ��� ��� �� �����.

1.3.6.1.2.1.7.1.0 = 653

b. �� ��� �� ���� ID �� �� ���� ����� -v ��� ��� � � �

�� ����� �����.

clsnmp -v getnext udp

� ��� ��� �� �����.

udpInDatagrams.0 = 653

3. MIB � ��

a. �� MIB object sysName.0� ‘hostname.austin.ibm.com’ ��� �����.

clsnmp set sysName.0 "hostname.austin.ibm.com"

� ��� �� ��� ��� ����.

1.3.6.1.2.1.1.5.0 = hostname.austin.ibm.com

b. MIB object sysName.0� �� � ��� ��, ���� �� ��� ���� VariableType �

��� ��� �� �� ���.

clsnmp set sysName.0 displayname "hostname.austin.ibm.com"

� ��� �� ��� ��� ����.

1.3.6.1.2.1.1.5.0 = hostname.austin.ibm.com

4. MIB �� ��

�� ��� ���� ID ���� �����, clsnmp �� � SNMP ���� � �� �� ��

��� ���� ���� �� ����� ����� �����.

clsnmp -h loopback -v -m 10 bulkwalk udp

� ��� ��� �� �����.

clsnmp -v walk udpudpInDatagrams.0 = 653udpNoPorts.0 = 22udpInErrors.0 = 0udpOutDatagrams.0 = 678udpLocalAddress.0.0.0.0.7 = 0.0.0.0udpLocalAddress.0.0.0.0.9 = 0.0.0.0udpLocalAddress.0.0.0.0.13 = 0.0.0.0udpLocalAddress.0.0.0.0.19 = 0.0.0.0udpLocalAddress.0.0.0.0.37 = 0.0.0.0

�� ���(���) 467

Page 484: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

udpLocalAddress.0.0.0.0.161 = 0.0.0.0udpLocalAddress.0.0.0.0.5020 = 0.0.0.0udpLocalPort.0.0.0.0.7 = 7udpLocalPort.0.0.0.0.9 = 9udpLocalPort.0.0.0.0.13 = 13udpLocalPort.0.0.0.0.19 = 19udpLocalPort.0.0.0.0.37 = 37udpLocalPort.0.0.0.0.161 = 161udpLocalPort.0.0.0.0.5020 = 5020

5. �� MIB � ����

�� getbulk �� ��� ��� �� MIB ����� �����. getbulk �� ��� ��� �

�� �� ��� MIB ����� �� � � ��� ����� �����. � ���� -n ��

� � �� � �(sysLocation � ifTable)� �� � � ��� ����� � �� ����� ��

�����. ���� � � �� ����(tcp, udp � icmp)� ��, -m ��� 5� ��� ���

�� �� �����.

�: getbulk �� ��� SNMPv2 �����. -h ���� clsnmp.conf ��� SNMPv2 ��

SNMPv3� ���� ����� ��� ���(��)� �����.

clsnmp -h loopback -v -n 2 -m 5 getbulk sysLocation ifTable tcp udp icmp

� ��� �� ��� ��� ����.

sysLocation.0 = Research Triangle Park, NCifIndex.1 = 1tcpRtoAlgorithm.0 = 4udpInDatagrams.0 = 782icmpInMsgs.0 = 22tcpRtoMin.0 = 0udpNoPorts.0 = 22icmpInErrors.0 = 0tcpRtoMax.0 = 120udpInErrors.0 = 0icmpInDestUnreachs.0 = 22tcpMaxConn.0 = -1udpOutDatagrams.0 = 807icmpInTimeExcds.0 = 0tcpActiveOpens.0 = 1udpLocalAddress.0.0.0.0.7 = 0.0.0.0icmpInParmProbs.0 = 0

6. ASN.1 �� �� �

�� �� ASN.1 �� �� � ���� �� ASN.1 �� ��� � ��� MIBVariable ���

�� �� ��� ���� � ��� ����� ��� �����. ��� /etc/mib.defs ����

����, � ��� ���� MIB� �� �����. clsnmp findname �� � � ��

MIBVariable�� �����. �� �, �� �� ��� ���� �� � ���.

clsnmp findname 1.3.6.1.2.1.6.13.1.2

� ��� �� ��� ��� ����.

1.3.6.1.2.1.6.13.1.2 found as: tcpConnLocalAddress

468 �� ���, � 1 �

Page 485: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ��� �� ����.

clsnmp findname 1.3.6.1.2.1.6.13.1.2.0

� ��� �� ��� ��� ����.

1.3.6.1.2.1.6.13.1.2.0 found as: tcpConnLocalAddress.0

�� ��� ��� �� ����.

clsnmp findname 1.3.6.1.2.

� ��� �� ��� ��� ����.

1.3.6.1.2. found as: mgmt

7. SNMPv3 �� ��

a. ��� ���� /etc/clsnmp.conf ��� winSnmpName ��� �� �� ���� ����

�(�� � ��),

target1 9.3.149.26 snmpv3 u1 - - AuthNoPriv HMAC-SHA76784e5935acd6033a855df1fac42acb187aa867 - -

snmpd ���� �� 9.3.149.26, ��� u1� � �� ���� ��, ��� ���� ���

�� � ���.

clsnmp -v -h target1 get sysName.0

� ��� �� ��� ��� ����.

sysName.0 = somehostname.austin.ibm.com

b. �� �� ��� �� �� ����.

clsnmp trap

�: �� ��� � ��� SNMPv3� ��, ��� ���� �� ����� ��� ���

� etc/clsnmp.conf ��� � �� ����� �� �����.

��

/etc/clsnmp.conf clsnmp ��� �� ��� ��./etc/mib.defs SNMP ���� � ���� ���� ���� ��

MIB(Management Information Base) �� �����.

�� ��

pwchange ��, pwtokey ��, snmpdv3 �.

/etc/clsnmp.conf ��, /etc/snmpdv3.conf ��.

�� ���(���) 469

Page 486: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cmp ��

��

� ��� �����.

��

cmp [ -l | -s ] File1 File2

��

cmp ��� File1 � File2 ���� ��� ��� ��� � �� ��� ��� �����. File1 ��

File2 ���� �� -(�� ��)� ��� �� cmp ��� � ��� �� �� ��� ����. ��

���� � �� ��� �� � ���. � � �� ��� ��� �� �� cmp ��� ����

���� ����. ��� �� ��, cmp ��� ��� ���� � �� ��� � ��� �����.

-l ��� ���� � ��� � ��� �� ��� ��(, cmp ��� �� ��� ���� ��

� ���� EOF ��� �� ��), cmp ��� ��� �����. �����, cmp ��� ��� �

�� ��� ���� diff ��� ��� �� ��� ������.

���

-l ��� L� ��� �� �� �� ��� 10��� ���� �� � �� �� 8��� �����.-s ���� �����. � 0� ��� ��� ����, � 1� �� � ��� ����, � 2� ��� ���� ��

�� �� �� �����.

�� ��

� ��� �� �� ��� �����.

0 ��� �����.1 ��� �� ����. � �� � ��� � ��� �� ��� ��(� ��� � ��� � � � ��)�� �

����.>1 ��� ������.

��

1. � ��� ���� �� �����, �� �� ������.

cmp prog.o.bak prog.o

� ��� prog.o.bak� prog.o� �����. ��� �� �� ��� ���� ����. ��

� �� � ��, � �� ��� �� �����.

�� �,

prog.o.bak prog.o differ: char 4, line 1

470 �� ���, � 1 �

Page 487: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� cmp: EOF on prog.o.bak� ���� ��, prog.o� � �� � � prog.o.bak� ����

�, prog.o� �� ���� ���.

2. � �� �� ����� �� �� ������.

cmp -l prog.o.bak prog.o

� ��� ��� ��� �, ��� �� �� ��(10��) � �� � ��(8��)� ���

��. �� �, �� �� ��� prog.o.bak�� 8� 101�� prog.o�� 141� �� cmp ��

� �� �����.

5 101 141

3. �� ��� ���� ���� � ��� ����� �� �� ������.

cmp -s prog.c.bak prog.c

� ��� � ��� �� �� 0� ��� ����, � ��� �� �� 1� � �� ��� ��

�� 2� �� �����. ��� ��� ��� ����� � ����� �����. �� �

�� ����.

if cmp -s prog.c.bak prog.c

then

echo No change

fi

� ��� �� �� �� �� � �� � ���� No change� �����.

��

/usr/bin/cmp cmp ��� �����.

�� ��

comm ��, diff ��, ksh ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ��.

col ��

��

��� � �� ��(LF)� ���/��� �� � �� ��(LF)� � �� �� ��� �����.

�� ���(���) 471

Page 488: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

col [ -b ] [ -f ] [ -p ] [ -x ] [ -T Name ] [ -l Number ]

��

col ��� �� ���� �� ��� �� �� ��� �����. � ��� hlf � hlr ��(, ��

� � ��� �� � �� ��(LF))�� ���, flr ��(��� � �� ��(LF))� �� ���� � �

�� �����. nterm �� �� ��� ��� � �� ��� �� ��� ���. nroff ��, .rt �

� � tbl ��� ���� �� �� � ��� ��� � col ��� ������.

��� � ��� �� � �� ��(�� � ��� ��)� �� nroff �� ���� col ��� �

�����. ��� ����� col ��� ��� tbl ��� ��, neqn �� �� .sp -10V ��� ��

�� ��� �� �� �� �� 2 � ��� ��� ������. � ��� �� col ���� nroff

��� ���� ����.

v hplj

v ibm4019

v ibm5577

v ibm5575

-x ��� ���� �� �, col ��� �� � � ���� � �� ��� ��� �� ��� �

�� ����.

col ��� -T37 ��� �� ���� ASCII �� ��, SO(\017) � SI(\016), �� �� ��� �

�� �� � �� �����. col ��� �� ��� �� �� ��� ����� ��� ��� SI

� SO� �� ��� � �� ��� ���� ���.

���, col ��� ��, ��, � � Return �; � �� ��(NL); SI, SO(-T37 ��� ��) � VT �

� ��; � ��� � �� ��(LF), ��� �� � �� ��(LF) � ��� �� � �� ��(LF)� �

� �� ���� ����. VT �� ��(\013)� � ��� �� �� ����� ��� � ��

�� �� ��� � �� ��(LF)� �� �����. col ��� �� � ��� ��� �����.

�����, col ��� ���� � �� � �� escape ���� �����. ���, -p ��� ��

�� col ��� � ��� �� ��� �� � �� ��� �� ��� � ���� !� ����

����. ���� escape ��� ����� �� ��� �� �� �� � ��� ���� ����.

�:

1. ��� �� � ��� �� � � ��� �� ��, �� �� ������.

nroff -Tppds File... | col -f -Tppds

� �� ���� �� �� ������.

nroff -Tlp File... | col -Tlp

2. � � � �� � �� 128���.

472 �� ���, � 1 �

Page 489: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. ��� ��� 800 ��� �� �� ���� ����.

4. � �� �� �� �� ���� �� �� ��� �����. ����� � �� �� ��

��� ����� ���.

���

-b �� �� �� ��� �� � ��� �����. � ���, � ��� ��� �� �� ����� �

� ��, ���� ��� ���� ��� �����.-f ��� � �� � ��� � � ��� �����. col ��� ����� ����� �� � ��� �

��� ��� � ��� ����� ����. � ��� ����, ��� ��� �� � �� ��(LF)(hlf)

� �� � �� ��� � �� ��(LF)(flr �� hlr)� �� � ����.-p ��� � ������ �� ���� ��� � � �� ���� ��� ��� �����. �����, col

��� ���� ��� �����.-x �� �� ��� ����.-TName Name �� ��� ������ ��� �����. ″���� �� �� � � ��� �� ��″�

Name �� nroff �� -TName ���� ����. � �� 37���.-l Number (��� L) ��� �� � ��� � ���� ��� ��� �� ��� �����.

�� ��

�� �� ��� �����.

0 ��� ��� �����.>0 �� ��� �����.

�� ��

hplj ��, mm ��, nroff ��, ps4014 ��, tbl ��.

nterm �� ��.

colcrt ��

��

��(CRT) �� ��� � nroff �� ��� �����.

��

colcrt [ - ] [ -2 ] [ File ... ]

��

colcrt ��� nroff ��� ��� ��� ��� CRT(��)��� � � � � ���. colcrt

��� ��� �� �� ��� �� �� � � ��� ��� � �� ���� �����. colcrt �

�� �� ��� ��� ��� � ��� � � ��� ���� �� � ��� � �� �����.

�:

�� ���(���) 473

Page 490: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

1. � ��� 37 �� ��� �� ������.

2. -(�� ��) ��� �� ��� ����� � �� ��� -(�� ��) ��� �� ����

����.

3. 102� ��� � � ����.

4. �� !���� �����. ��� ����, -(��) �� _(��) ��� !��� |(�� ���)

� +(��� ��)� ���.

5. �� � 132��� �����.

����

File CRT��� ��� � nroff ���� ��� ��� �����.

���

- �� ��� �����. � ��� tbl ���� ���� ��� ��� � �����.-2 �� ���� ����� � ��� ����� �� � � � ��� ����. ��� ���� ����� ����

�� � ��� ���� ��� �� �� � �����.

��

colcrt ��� ���� �� �� �� ����.

tbl exum2.n | nroff -ms -T37 | colcrt - | pg

�� ��

col ��, nroff ��, pg ��, tbl ��, troff ��, ul ��.

colrm ��

��

���� �� �����.

��

colrm First [Last]

��

colrm ��� ���� �� �� �����. ��� �� ��� �����. ��� �� ���� ��

���.

��� ���� �� ���� ��, ��� ����� �� �� �����. � ���� ���

���� ��, � �� ��� ���� �� �����.

474 �� ���, � 1 �

Page 491: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ����� � 1� �����.

��

text.fil ���� �� ����� �� �� ������.

colrm 6 < text.fil

text.fil ��� �� ���� ��,

123456789

colrm ��� �� �����.

12345

��

/usr/bin/colrm colrm ��� ���.

�� ��

cut ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ����� �� � ��� �� �

��� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ����� ���

� ��� ���� �� �����.

comb ��(SCCS)

��

SCCS(�� � �� ���) ��� �����.

��

comb [ -o ] [ -s ] [ -c List | -p SID ] File

��

comb ��� ��� SCCS ��(SID) �� �� ��� � ��� ���� � ���� �� ��� �

����. ��� � ���� ��� �� � �� ���(SCCS)� ��� �� � ���. ���

��� � �� ���, comb ���� -s ��� ��� ������. File �� ����� ���

�� comb ���� �� SCCS ��(, ���� s.�)� �� ��� ��� �����. -(�� ��)�

File �� �� ��, comb ��� �� ��� �� �� SCCS ��� ���� �����. comb

��� EOF ��� �� ��� �� ��� ����.

�� ���(���) 475

Page 492: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� ���� �� �� comb ��� � �� � ��� ���� � ��� � �� ����

�.

�: comb ��� �� ��� � � �� �� � ���. ��� ���� �� �� ���.

���, ��� ��� �� ���� � �� � ���.

���

�: �� �� �� ��� �� � � ��� ����� �����.

-c List � ����� ���� ��(SID)� ���� �����(get �� -i List �� ��). ���� �� �� �

�� �����.-o get �� -e ��� �� � �� ��� ��� ��� ������. ��� ��� �� �� � �

� ��� ��� ������. -o ��� ���� ��� SCSS ��� ��� �� � ���. ��, �

��� �� �� � � �� �� ���.-p SID �� �� ���� �� �� ��� SID� �����. �� � ��� ���� ��� �����.-s comb ���� � ���� ��� ���. � � ���� �� ��� , �� ��, �� � ��(

�), � ��(�) � ���� ��� ��� �� �� ���� ����.

100 * (original - combined) / original

�� ���� �� ��� �� � � ��� �� �� ����� SCSS ��� ���� �� � ���

��� comb ���� ��� � ���� ���� ���.

��

1. sccs �� s.test.c� SID 1.4�� �� �� ��� ��� ���� � � �� �� ����

���� �� �� ������.

comb -p1.4 -s s.test.c

� ��� ��� sh ���� ���� ���� ������.

2. ��� ��� ����� �� �� ������.

comb -p1.4 s.test.c

��

s.COMB ��� SCSS ��� ��.comb* �� ��.

�� ��

admin ��, delta ��, get ��, prs ��, sccshelp ��, sh ��.

sccsfile �� ��.

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� List of SCCS

Commands.

476 �� ���, � 1 �

Page 493: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� �� �

�� ���(SCCS) ��.

comm ��

��

�� � ��� ��� �� ���� �����.

��

comm [ -1 -2 -3 ] File1 File2

��

�: �� �� � ��� -(�� ��)� ����, comm ��� �� ��� ����.

comm ��� File1 � File2 ���� ��, � �� �� ��� � � ��� �����. �� ��

� ����.

v File1�� � �

v File2�� � �

v File1 � File2 ��� � �

File1 � File2 ��� �� ��� ���� ��� �� ��� �� ���� ���.

���

-1 � �� �(File1� �)� ��� �����.-2 � �� �(File2� �)� ��� �����.-3 � �� �(File1 � File2� ��� �)� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� �� ��� ���� ��� ���.>0 ��� ������.

��

1. ��� ��� �� ��� ��� �� �����, �� �� ������.

comm things.to.do things.done

things.to.do � things.done ��� �� �� ���� � ��,

�� ���(���) 477

Page 494: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

things.to.do

buy soapgroceriesluncheonmeeting at 3system updatetech. review

things.done

2nd revisioninterviewluncheonsystem updatetech. reviewweekly report

comm ��� �� �����.

2nd revisionbuy soapgroceriesinterviewluncheonmeeting at 3system updatetech. reviewweekly report

� �� ��� things.to.do�� � �� ���. � ��� ��� � �� �� things.done

�� � �� �����. � ��� ��� � �� �� � ��� ��� �� �����.

2. � ���� ���� �� ����� �� �� ������.

comm -23 things.to.do things.done

� ��� comm �� ���� � ��� � �� �� �����. ��� �� 1��� �� ��, �

� �����.

buy soapgroceriesmeeting at 3

��

/usr/bin/comm comm ��� �����.

�� ��

cmp ��, diff ��, sdiff ��, sort ��, uniq ��.

environment ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Understanding Locale.

478 �� ���, � 1 �

Page 495: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs� National

Language Support Overview for Programming.

command ��

��

�� ��� �����.

��

command [ -p ] CommandName [ Argument ... ]

command [ -v | -V ] CommandName

��

command ��� �� � �� ��� ����� ��� ��� ��� �� ���� ���� ���

�.

�����, /(��)� �� �� � �� �(�� ��� ���), �� � ��� ��� ���

���.

1. �� �� �

2. � ��

3. � �� �

4. PATH �� �

�� �, � ��� �� ��� �� ��� � ��, ���� � ��� �����. command �

�� ���� ��� �� ��� ��� ��� ��� ��� ��� � ���.

command -v � command -V ��� �� ��� ��� ���� �� �� � �� �� ��(��, �

�, �� �) �� ��� �����. -v � -V ��� �� � ��� ��� ��� ����,

command ��� Korn � �� POSIX � � �� ���� �����. /usr/bin/command ��� �

�� �� ��� �� �� ���� ���� ��� � ��� ���� �� � ���. � ��

�� �� ��, ��� �� �� � ��� �� � ����.

(PATH=foo command -v)nohup command -v

���

-p �� �� ��� � PATH �� �� � � �� ��� �� ��� �����.

�� ���(���) 479

Page 496: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-v � �� ���, ��� ��� ���� � �� �� ���� �� ��� �� ��� �����.

v ��, � �� ��, /(��)� ��� �� � PATH �� �� � � � �� �� �� ��� �� �� �

��� �����.

v � ��, �� �� ��, PATH �� � ��� ���� �� � �� �� � � ���� �� ���� ���

��.

v ��� ��� ����, �� ��� ���� �����.

��� �� ��� � � �� �� ��� ���� ���, � � � >0 �� �����.-V �� � ��� �� �� �� ��� �� ��� �����. � ��� ��� ���� ����, ��� ��� �

��� �� �� ����� �����.

v ��, � � �� � PATH �� �� ��� ���� �� �� �� ���� � ��� ���� �� ��

����� �����.

v �� � ��� ����� �����.

v ��� ��� ����, �� ��� ���� �����.

v �� �� ��� � ��� �����.

v PATH �� � ��� ���� �� � �� ��� � ��� �����.

v � ���� � ��� �����.

�� ��

-v �� -V ��� ���� �� �� ��� �����.

0 ����� ��� ���.>0 CommandName ���� ��� ��� � � ��� ��� ������.

-v �� -V ��� ���� �� �� �� �� ��� �����.

126 CommandName ���� ��� ��� �� �� � ����.127 command ���� ��� ����� CommandName ���� ��� ��� ����.

��� �� ��, command ��� CommandName ���� ��� ��� ��� ��� ����

�.

��

1. ���� ����� � ��� � � ����� ���� cd ��� ��� ���, �� �

� ������.

cd () {command cd "$@" >/dev/nullpwd

}

2. ����� � � ��� �� � � ����� ����� �� �� ������.

IFS=’’# The preceding value should be <space><tab><newline>.

480 �� ���, � 1 �

Page 497: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

# Set IFS to its default value

\unalias -a# Unset all possible aliases.# Note that unalias is escaped to prevent an alias# being used for unalias.

unset -f command# Ensure command is not a user function.

PATH="$(command -p getconf _CS_PATH):$PATH"# Put on a reliable PATH prefix.

# ...

�� PATH �� ��� ��� ����� �� � �� ��� ��� �� ������ �

�� ��� ��� ���� ��� ��� ���.

��

/usr/bin/ksh Korn � command �� ��� �����./usr/bin/command command ��� �����.

�� ��

ksh ��, type ��.

comp ��

��

��� ����.

��

comp [ +Folder ] [ -draftfolder +Folder | -nodraftfolder Folder ] [ Message | -draftmessage Message

] [ -file File ] [ -editor Editor | -noedit ] [ -form FormFile ] [ -use | -nouse ] [ -nowhatnowproc |

-whatnowproc Program ]

��

comp ��� �� � � ��� ��� �� ���� �����. comp ��� �� ����

/etc/mh/components ��� �����. � �� ��� ���� UserMhDirectory/draft ��� ��

��. draft ��� �� comp ��� �� ��� ����� �� � � �� ��� �� ��

� �����. ��� �� �� �� �� draft ��� �����, -use ��� ������.

�� ���(���) 481

Page 498: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ����, ���� ����� �� �� �� �� �� ����� �����. comp ���

�� �� �� UserMhDirectory/components ��� ��� �����. ��� �� ��,

/etc/mh/components ��� �����. -form �� +Folder ��� ��� �� �� ��� ��

� ���.

���� ����, Ctrl-D �� ������. ���� � �, comp ��� What now?�� ����

�. �� �� send� ������. � ���� whatnow �� ��� �� � ���. ��

�� �� �� ���� ���, Enter� ����. �� ��� ��� �� �� ��, �� �

� �� �� comp �� ��� � � ���.

�: �� � �� ��� �� ��� �� �� ��� ��� � �� �� �� ��� �

" ��� ���.

-file, -draftfolder � -draftmessage ��� �� � ��� �� � �����. -draftfolder +Folder

�� �� Message ���� ���� -draftmessage ��� ��� �� �� ��� �� ���.

� �� �� ���(MH) $HOME/.mh_profile ���� � � Draft-Folder: ��� �� �

���.

���

-draftfolder +Folder � ��� ���� �� �����. � ��� ��� ���� �� ��

� � ��� new���.-draftmessage Message � ��� �����. -draftfolder +Folder �� �� Message �� ���

� -draftmessage ��� ��� ��� �� ��� �� ���.-editor Editor �� �� � �� ���� �����. -editor ��� ���� ��� comp

��� $HOME/.mh_profile ��� Editor: ���� ��� � � ���� �

���.-file File ��� ��� � ��� ����. File �� �� �� �� ��� ���� �

��, comp ��� ���� MH ����� ��� �����. ��� ���� �

�, comp ��� ����� �� ��� �� �����.+Folder Message ��� �� � ��� �� ��� �����. �� ����� ��� ��

�� ���, comp ��� �� ��� � �� �����.-form FormFile FormFile �� ��� �� �� �����. comp ��� FormFile� �

�� �� ����� �����.-help �� ��, �� �� � �(��) � �� ��� �����.

�: MH� ��, � ��� ��� ��� ����� ���.Message ��� �����. � ��� ��� ��� ������.

Number �� ��.

cur �� .(��)

��� �����. ��� � ����.

first �� � �� �����.

last �� ��� �����.

next �� ��� � �����.

prev �� ��� �� �����.-nodraftfolder UserMhDirectory/draft ��� �� ����. ��� � ����.

482 �� ���, � 1 �

Page 499: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-noedit �� ��� �����. � ��� ����, What now? �� �� send� �

�����.-nouse � ��� ����.-nowhatnowproc ��� � What now?� �� ����� �����. �� �� send� ���

���.-use ��� �� � �� �����.-whatnowproc Program �� �� ���� � �� � � ��� ���� �����. Program �

��� whatnow ��� ����, comp ��� �� �� whatnow� �� ��

� �� �� whatnow ���� �����.

���� �

� ��� UserMhDirectory/.mh_profile ��� �����.

Draft-Folder: �� �� � � �� �����.Editor: � � �� ���� �����.fileproc: ��� ����� � ��� ���� �����.Msg-Protect: � �� ��� �� �� �� �����.Path: ���� MH ����� �����.whatnowproc: What now? �� �� � ���� ���� �����.

��

1. � ��� ����, �� �� ������.

comp

���� ����� �� �� �� ��� ����� �����. �� �����, Enter �

� ����. �� ��� � �, �� ��� �� ��� ������.

�� �� ��� ���� ����, Ctrl-D �� ����. ��� � ��� ����

�.

What now?

Enter �� �� whatnow �� ��� ���� �����. ��� ����� What now? �� send

�� ��� ������. �� �� send� ������.

2. vi ���� ��� �� ��� ���� �� �� ������.

comp -editor vi

3. schedules ��� 8 ��� ��� ��� ���� �� �� ������.

comp +schedules 8 -use

4. /home/mike/parts ���� �� �� ��� ��� ���� �� �� ������.

comp -file /home/mike/parts

���� ����� ��� ��� �����. �� ���� �� ��� ��� Enter �� �

���. ��� ��� �����.

�� ���(���) 483

Page 500: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

UserMhDirectory/components ���� � � �� ��� �����. (���� ��, ��� �

� �� ��� ������.)UserMhDirectory/draft �� � ��� ���.$HOME/.mh_profile ���� MH ���� �����./etc/mh/components ��� � � �� ��� �����./usr/bin/comp comp ��� ���.

�� ��

ali ��, dist ��, forw ��, refile ��, repl ��, send ��, whatnow ��, whom ��.

mh_alias �� ��, mh_profile �� ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

compare_report ��

��

�� ��� �� �� �� ���� ��� �� ��� ���� ����.

��

���� ��� �� ��� �� ���� ��� �� ��� �����, �� �� ������.

compare_report -s -i FixDir { [ -l ] [ -h ] [ -m ] [ -n ] } [ [ [ -t ReportDir ] [ -Z ] ] | -v ]

���� ��� �� ��� �� � ����� �� ��� �� ��� �����, �� �� ����

��.

compare_report -s -r ServiceReport { [ -l ] [ -h ] } [ [ [ -t ReportDir ] [ -Z ] ] | -v ]

�� ���� ��� �� ��� �� � ����� �� ��� �� ��� �����, �� �� �

�����.

compare_report -i FixDir -r ServiceReport [ [ [ -t ReportDir ] [ -Z ] ] | -v ]

�� ���� ��� ����� ���� � ���� �����, �� �� ������.

compare_report -b BaseList -o OtherList { [ -l ] [ -h ] [ -m ] [ -n ] } [ [ [ -t ReportDir ] [ -Z ]

] | -v ]

��

compare_report ��� ���� ��� �� ��� �� ����� �� �� �� ��� ���

�� ���� ��� ��� ���� �����. �� �� ���� ���� �� ���� ��

484 �� ���, � 1 �

Page 501: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��� ����� ��� ���. �� ����� lpp_source� �� �� ���� � ���.

��� ���� � ���� � ���� �� ��� ����� ����� eServer pSeries™

�� � ������ �� � ���. �� ���� ��� eServer pSeries �� � ����

�� ����� ���� � ���� �� � ���.

���

-b BaseList �� ���� ��� ����� ���� � ��� ���

��. (lslpp -Lc ���� �)-h �� �� �� �� �� ���� ��� �� �����.

� ��� ��� ��� �� ��� ��� �� �� ���

(higherlevel.rpt, higherthanmaint.rpt �� basehigher.rpt)�

����. � ��� -s� �� ����� -b � -o �� �

�� �� �� ���� �����.-i FixDir �� ��� ����� ��� �����. � ����� ���

��� �� �� �� ��� �����.-l �� �� �� �� �� ���� ��� �� �����.

� ��� ��� ��� �� ��� ��� �� �� ���

(lowerlevel.rpt, lowerthanlatest1.rpt, lowerthanmaint.rpt,

lowerthanlatest2.rpt �� baselower.rpt)� ����. -s� �

� ����� -b � -o �� ��� �� �� ���� �

����.-m ���� ��� �� �� ���� �� �� �� �� ��

����� ���� �� � ����� ���� � ��

�� ��� ���� �� �� ���� ��� �� ����

�. � ��� no_update_found.rpt �� baseonly.rpt ��

� ��� ����. � ��� -s � -i �� �� ���

�� -b � -o �� �� ��� � ���� �����.-n �� ���� �� ���� ���� �� �� �� �� �

����� ���� �� �� ����� ���� � �

� �� ��� ���� �� �� ���� ��� �� ��

���. � ��� notinstalled.rpt �� otheronly.rpt ���

��� ����. -s � -i ��� �� ��� �� -b � -o

��� �� ��� � ���� �����.-o OtherList �� ���� �� � ���� ��� ����� ���

� � ��� �����(lslpp -Lc ���� �).-r ServiceReport �� ��� ���� ��� ��� �����. � ��� �

� � ����� �� � ���.-s ��� � ���� ��� �� �� �� ���� �����

��� �� �����.-t ReportDir �� ���� �� �� ����� �����. -t ��� �

��� ���, ���� /tmp ����� �����. ��� �

���� � ��� ��� �� ��, ���� �� ��

��. � ��� -v ��� �� �� �� ���� ���

�.-v ���� ���� ��� ��� �� �����. � ���

-t �� -Z ��� �� �� �� ���� ����.-Z ��� ��� STDOUT� ���� �� �����. � ��

� -v ��� �� �� �� ���� ����.

�� ���(���) 485

Page 502: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

0 ��� ���� ��� ���.

>0 ��� ������.

��

1. ���� ��� �� ��� �� ���� ��� �� ��� �����, �� �� ������.

compare_report -s -i /tmp/imagedir -l -n

� ��� �� �� �� ���� � �� �� � ���� ���� ���� �� ����

� �� ��� ���� ���� ����. � �� ��� �� �� ���(-l, -h, -m, -n)� ��

� ��, �� �� ���� ����.

v lowerlevel.rpt(-l� ��)

v higherlevel.rpt(-h� ��)

v no_update_found.rpt(-m�� ��)

v notinstalled.rpt(-n�� ��)

2. ���� ��� �� ��� �� � ����� �� ��� �� ��� �����, �� �� ��

����.

compare_report -s -r /tmp/LatestFixData -l -Z

� ��� ��� �� �� ���� � �� �� � ���� ��� �� ��

�� ��� ���� ���� ����. ���� ���� ����� STDOUT� ����� ��

��. � �� ��� �� �� ���(-l, -h)� ��� ��, �� �� ���� ����.

v lowerthanlatest1.rpt(-l� ��)

v lowerthanmaint.rpt(-l� ��)

v higherthanmaint.rpt(-h� ��)

3. �� ���� ��� �� ��� �� � ����� �� ��� �� ��� �����, �� �

� ������.

compare_report -i /tmp/imagedir -r /tmp/LatestFixData

� ��� �� � ����� �� ��� ��� �� �� �� ���� � �� ���

���� ���� ����. lowerthanlatest2.rpt ���� � �� ���� ��� ��� ���

���.

4. �� ���� ��� ����� ���� � ���� ��� ����� ���� �����, �

� �� ������.

compare_report -b /tmp/base.lslpp.out -o /tmp/other.lslpp.out -l -h -m -n

� ��� �� ���� ���� ����.

v � ����� �� �� �� ���� � �� ��

486 �� ���, � 1 �

Page 503: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v � ����� �� �� �� ���� � �� ��

v �� ���� ��� �� � ���� ���� �� �� ��

v � ���� ��� �� �� ���� ���� �� �� ��

� �� ��� �� �� ���(-l, -h, -m � -n)� ��� ��, �� �� ���� ����.

v baselower.rpt(-l� ��)

v basehigher.rpt(-h� ��)

v baseonly.rpt(-m�� ��)

v otheronly.rpt(-n�� ��)

��

/usr/sbin/compare_report compare_report ��� �����.

compress ��

��

���� �����.

��

compress [ -c ] [ -C ] [ -d ] [ -F ] [ -f ] [ -n ] [ -q ] [ -v ] [ -V ] [ -b Bits ] [ File ... ]

��

compress ��� �� Lempel-Zev ��� ��� ���� ��� �� ��� ����. File ��

�� ��� � ��� �� ��� ��� ��� ����, � �� �� .Z� �����. ���

��� � ��� �� ���, � � �� � � �����. ��� ��� ��� 1023 ��� ��

�� ��� ���� ����. ��� ��� �� ��, �� ��� ���� �� ��� �����. �

� ���� ��� ��� �� ��� ��, �� ��� ��� ���� � ��� ���� ���

�.

�: ��� �� � �� ��� �� ���.

�� �� ��� ��, Bits �� ��� � �� � � �� ������ �� �� �����.

�����, �� � �� � ��� 50 - 60% �����. compress ��� �� � ��� �

� �� ��(pack ��� ��) �� �� �� �� ��� ��� ���� �� � � �� ����.

�� ���(���) 487

Page 504: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

-b Bits ��� � �� �� ���� ���� � �� � �� �� �����. Bits � �� 9 - 16���

� � �� ��, � �� 16�����. ���� �� �, ����� � �� 9�� �(257-512)�

��� ��� � �� �� ���� �����. � � 10 �� �� ���� ��� -b ���

��� ��� �� ��� �����.-c �� ��� �����. ��� ��� ����.-C ��� ���� �(BSD) �� 2.0� �� ��� ��� ����.-d compress ��� uncompress ��� �� �� ��� �� ���.-f �� -F ��� �����. -f � -F ��� ����� �����. � � �� File.Z ��� !����.

Bits � �� �� �, compress ��� ���� ����� ����. � �� �� ��, compress

��� �� �� � ��� �����. ���, ���� ���� ��, compress ��� �� ��� ��

� ��� �����. �� ���� ����� ��� � �� �� � � ���. .Z ��

� � �� -f ��� ���� ��� ���� ����� �� ��� �� �� �� .Z ���

!��� �� ��� ��� �����.-n �� ���� �� �� ��� �����.

�: � ��� ���� �� ��� ��� ���� � uncompress ��� �� � -n ��� ���

�� ���.-q -v ��� �� �� ��� ��� �����. # �� -v � -q ��� �� ���� � �� ��

� ��� ��� ��� ��� �����.-v ���� �����.-V �� ��� �� ��� ��� ��� �����.

����

File �� ��� �����.

���

compress ��� ��� ���� �� ��� ��, � 2� �� ����. ��� ���, compress

��� � 0� �� ����.

compress ��� � ��� � ��� ���� ��, ��� ���� � 1� �� ����.

v �� ��� � ��� ����.

v �� �� ��� �� ��� .Z ��� �� � ����.

v �� ��� �� � ��� �� ��� �� � ����.

�� ��

0 ����� ��� ���.1 ��� ������.2 ��� ��� ��� ���(�� -f ��� ���� �����) ��� �� �� ���� �����.>2 ��� ������.

488 �� ���, � 1 �

Page 505: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

foo ��� ���� ���� �� ��� �����, �� �� ������.

compress -v foo

foo ��� ���� foo.Z� ��� ���.

�� ��

pack ��, uncompress ��, unpack ��, zcat ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��.

comsat ��

��

����� �� �� �����.

��

/usr/sbin/comsat [ -d Directory ]

��

comsat �� � �� �� ��� ��, biff ���� � ���� �� ���� ��� ��� ��

��� ���� �����. inetd �� �� �����, comsat �� ���� ���� � �� �

���. comsat �� biff ��� ��� ��� ����� ���� ��� ����. ��� ���

��� �� ����.

user@mailbox-offset

��� ���� ���� ����� biff y ��� ��� ��, ��� � 7� �� 560��� ���

��� �����. From: �� Subject: � ��� �� ��� ��� ���� �� ��� ��

� ���� ����.

���

-d Directory ��� � ����� �� ���� ��� �����. -d ��� ���� �� ��,

comsat �� /var/spool/mail ����� � � ��� � ����� �����.

��

/etc/utmp ��� ��� ����� � ��� ���� ���.

/etc/services ��� ���� ��� ��� � ��� ��� ��� � ��� ��� ���.

�� ���(���) 489

Page 506: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

biff ��.

inetd �.

inetd.conf �� ��.

AIX 5L Version 5.2 System Management Guide: Communications and Networks� Mail Overview for

System Management.

configassist ��

��

��� �� ��� ���� �����.

��

/usr/websm/bin/configassist

��

��� �� ��� ���� ���� ��� �� ���� ���� ��� ���� �� �

����. �� �� ���� ���� � ���� �� � ���. � �� ��� ���� ��

���� ���� � HTTP ��� � ���� ������ ��� �� ���� �����

�. ��� ��� ��� 4� � ��% �� ������.

�: � ��� �� �� ��(/usr/websm/bin/configassist)� ���� ���.

���

��

N/A

�� ��

� �� ��� ��� ��� �� ��� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �

: �� � ��� ����� ������.

conflict ��

��

�� � �� ��� �����.

490 �� ���, � 1 �

Page 507: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

conflict [ -mail User ] [ -search Directory ... ] [ File ... ]

��

conflict ��� ���� �� � ���� �� ��� ���. conflict ��� ���� �� ����

����. conflict ��� ��� ����� ��� � ��� � cron ��� �����. ��� �

���� ����� �� ��� �� � /usr/lib/mh/conflict ��� �� �� ��� �� ���.

conflict ��� /etc/passwd ��� ��� ���� ��� �� ��� �� �� ��� ��� �

��� ����� �����. File ���� ��� �� ��� ��� �� ��� ���� ��

�� ��� ���. � ��, conflict ��� /etc/mh/MailAliases ��� �����.

�� conflict ��� ���� �� ��� �� � �� ��� ���� �� ���� �� �� ��

(/etc/group)�� ��� �����.

-mail ��� ���� ��� �� ��� ���� �����. -mail ��� ��� ����� ��

��� �����.

���

-help �� ��, �� �� � �(��) � �� ��� �����.

�: �� ��(MH)� ��, ��� ��� ��� ��� � ���.-mail User conflict ��� ��� User �� ��� ����� �����.-search Directory ���� �� ��� Directory �� ��� ����� �����. -search ��� �

� �� � ���. � � �� ����� /var/spool/mail���.

��

/etc/mh/MailAliases � � � �� ��� �����./etc/passwd ��� ���� �����./etc/group �� ���� �����./var/spool/$USER ��� $USER� �� ��� ���./$HOME/.mh_profile MH ��� ���� �����./etc/mh/mtstailor MH �� ��� ���.

�� ��

ali ��, whom ��.

mh_alias �� ��.

AIX 5L �� 5.2 ��� ��� ��: � � ����� � ��.

�� ���(���) 491

Page 508: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

confsetcntrl ��

��

� �� ��� ���(WLM) ��� �� ��.

��

confsetcntrl -C ConfigurationSet DefaultConfig

confsetcntrl { -D | -R } ConfigurationSet

confsetcntrl [ -d ConfigurationSet ] { -a | -r } Configuration TimeRange

confsetcntrl [ -d ConfigurationSet ] [ -l | -c ]

��

confsetcntrl ��� �� �� ��� �����.

v �� � � �� ����� �� ��� ��� ����.

v �� ��� �� ����. (�� ��� �� ����� ����� .times � description ���

�����, ��� �� ���� �� ��� ����.)

v ��� ���� ��� � ��� � � � �� �� �����.

v ��� ���� �� ��� � ��� � � � �����.

v ��� ��� ��� ����.

v ��� � �� ��� � ��� � � � �����.

�: �� ����� ��� ��� �, � �� � � �� �� ���� ��� ��� ��

��� � � ���.

�� ��

� � � WLM� ��� �, ���� � ��� � ��� ���� ���� �� � � �

����� �����.

� � � ��� � (0� ���� ���� 6� ���� ��) � � � (� � � ��� 24�

��)� �����. � � �� � � ��� � ���. � �� �� �� ��� � ��, �� �

� ���. (� �� �� � �� ��� � � ���.)

��� � � �� � �� �� � �� ��� ����. � � � � � �� �����. ��,

� ����� � � ���. 1� ���� 1-1� ����.

� � � � �� � �� �� ���� ����. � �� ��, �� � � � � ����

���. � � � �� �� �� � ���. � � � � � ��� ���� 24:00� ��� �

� ���, 12:00-12:00� � ��� ���� ����.

492 �� ���, � 1 �

Page 509: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� � �� � � � ��� ���� ���. �� �� ��� ��� � � �� ���

�����. �� � � � � �� �� ���� �� ��� � ��� � � � �� ���

�. �� �� � � ���� ��� ����(�: 0-6,00:00-24:00).

WLM� ���� �� ���� � � ���, ��� � �� � �� �� � � � � �

� ����� ���� ���. ��� � � ��� � � � � � ��� �� ��� ��

�� �� � � ��� �� � �����. �� � � � �� ���� ���.

� � ��:

1-4,8:00-17:00

����� �����, �� 8��� �� 5���

5-0,22:00-6:00

���, ���� ���, ���� �� 6��� ��� �� 10�� ����

3 ���

14:00-16:30

�� �� 2��� �� 4� 30 ��

- � � � �

���

-a Configuration TimeRange ��� TimeRange� �� Configuration� ��� ��� ��

���. Configuration� �� WLM �� ������ ���.

�� � � � � ��� ���� � � �� � ��

�.

�: � ���� �� � � � ��� �� ����, �

� �����. �� �� �� ���� ���� ��� ��

���.-c ��� �� ���/� � �� ����.-C ConfigurationSet DefaultConfig DefaultConfig �� ���� ��� , � � � � � �

� ConfigurationSet ��� ��� ����. (� � � �

� �� � �� ��� � � � �� ����. ���

� �� �����.) DefaultConfig� �� WLM �� ���

��� ���.-d ConfigurationSet �� ��� ��� �����. ���� ��� �� ���

��� ��� ��� ���.-D ConfigurationSet ConfigurationSet ��� ��� ����.-l ��� �� ���/� � �� ��� �����. ���

��� �� �� ��� � � �����.-r Configuration TimeRange ��� ���� Configuration � TimeRange �� �����.

� �� ��� ����� �����.

�: � ���� �� � � � ��� �� ����, �

� �����. �� �� �� ���� ���� ��� ��

���.

�� ���(���) 493

Page 510: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-R ConfigurationSet ConfigurationSet ��� ��� �#��. (�� ���/�

� �� ConfigurationSet�� �����.) � ��� ��� �

�� ��� �� � � ����� ��� �� �� ��

� �� ��� � ��� ���� ����.

��

� ��� lswlmconf ��, confsetcntrl ��, wlmcheck �� � wlmcntrl ��� ��� WLM �

��� ��, � � ���� ��� � ���.

1. WLM ���� ���, �� �� ������.

lswlmconf

� ��� ��� �� �� � ���.

standardtemplatefvtrulesfvtlimitsfvtregulfvtdfctfvtsyntfvtthreads

2. �� WLM ���� �����, �� �� ������.

lswlmconf -c

��� �� �� � ���.

fvtlimits

3. ��� ��� �����, lswlmconf� -s ��� �� ������.

lswlmconf -s

� �� ���� ��� ��� ����, � ��� ���� ���� � ���� ���

����.

4. ″standard″� � � ����� ��� ��� ��� ����, �� �� ������.

confsetcntrl -C confset1 standard

5. lswlmconf ��� ��� �� ��� ��� �����, �� �� ������.

lswlmconf -s

��� �� �� �� ��� ����.

confset1

6. � � � ��� ″confset1″� �� ″fvtlimits″ ���� ��(����� �����)� ����

�, �� �� ������.

confsetcntrl -d confset1 -a fvtlimits 1-5

494 �� ���, � 1 �

Page 511: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

7. � ���� ���� � �� ���. � � � � � ����. �� � � � ��

�� �� �� � � � ��� ���.

�, �� �� �� � � � ������. (confsetcntrl� ″locale day″ �� ″locale abday″

��� ��� �� ��� ����.)

confsetcntrl -d confset1 -r fvtlimits monday-friday

��� �� �� �� �� � � � �����.

confsetcntrl -d confset1 -a fvtlimits 1-5,8:00-12:00

8. ���� ″fvtregul″ ���� ���� � � � � � �����, �� �� ������.

confsetcntrl -d confset1 -a fvtregul 0

9. ″confset1″ ��� ��� �����, �� �� ������.

confsetcntrl -d confset1

� ��� ��, ��� �� �� ��� ����.

fvtlimits:time = "1-5,8:00-12:00"

fvtregul:time = "0"

standard:time = "-"

10. ″template″� � � ����� ��� ″confset2″�� ��� ��� ����, �� �� �

�����.

confsetcntrl -C confset2 template

�� � ″fvtsynt″ ���� ����� ″confset2″� ����, �� �� ������.

confsetcntrl -d confset2 -a fvtsynt 18:00-10:00

11. �� ���� ���� �����, �� �� ������.

lswlmconf -r

� ���� ��� �� �� ��� ����. (� ��� �� ��� ���� �� ��

� �����.)

standardtemplatefvtrulesfvtlimitsfvtregulfvtdfctfvtsyntfvtthreads

���, ����� � ��� � ��� �� ���� � ���� ���� �� �� ��

���.

�� ���(���) 495

Page 512: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

lswlmconf -s

� ���� ��� �� �� ��� ����.

confset1confset2

12. date ��� �� � � ″Tue Jul 16 18:55:10 EET 2002″� �� � ″confset2″ ��� ���

� �� ���� �� �� ��� �����, �� �� ������.

lswlmconf -d confset2 -l

� ��� ��, ��� �� �� ��� ����.

confset2/fvtsynt

�� � � � �� �� ���� �� �� ���. ���, �� 9�� �� �� ���

� �����, �� �� ������.

lswlmconf -l -t 0,9:00

� ���� ��� �� �� ��� ����.

standardtemplatefvtrulesfvtlimitsfvtregulfvtdfctfvtsyntfvtthreadsconfset1/fvtregulconfset2/fvtsynt

� ��� ��� ��� ���� �����, �� �� ������.

lswlmconf -s -l -t 0,9:00

� ���� ��� �� �� ��� ����.

confset1/fvtregulconfset2/fvtsynt

13. ″confset2″ ��� ��� �����, �� �� ������.

confsetcntrl -D confset2

� ���� lswlmconf -s� �� �� �� ��� ����.

confset1

14. wlmcheck ��� ��� ″confset1″ ���� ��� ����, �� �� ������.

wlmcheck -d confset1

� ���� ��� �� �� ��� ����.

496 �� ���, � 1 �

Page 513: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

WLM is not running.Checking classes and rules for ’confset1’ configuration...fvtlimits/Systemfvtlimits/Defaultfvtlimits/Sharedfvtlimits/loginfvtregul/Systemfvtregul/Defaultfvtregul/Sharedstandard/Systemstandard/Defaultstandard/Shared

15. � ���� ��� ″confset1″ ��� ��� ���� �����, �� �� ������.

wlmcntrl -a -d confset1

lswlmconf -c ��� �� �� �� ��� ����.

confset1

�� �� �� ���� ���� lswlmconf -cl ��� �� �� �� ��� ����.

confset1/standard

��

��� �� ��� ��� �� ���, /etc/wlm� ������� ���.

.times ��� �� ���/� � �� ���� �����.description ��� �� �� �� ��� �����.

�� ��

wlmcntrl ��, lswlmconf ��.

copycsmpkgs ��

��

copycsmpkgs - CSM ���� ����� Linux �� /csminstall ����� �����.

��

copycsmpkgs [-h] [-v | -V] -p pkg_path:...] [Attr=value ...]]

��

���� �� �� �� ��� �� ���� �� ��, copycsmpkgs ��� �����. ��

�, �� ���� CSM ��� �� ��� CSM ��� �� ��, � ��� ���� ���.

copycsmpkgs ��� -p ��� ���� ������ �� ���� �����. �� �� �� ��

�� �����.

�� ���(���) 497

Page 514: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

CSM ��� CSM �� ���� �� �����.

�� � ��� ���� ��� ���� CSM� �� ����� ���� �

� ����� �� ������.

� ��� ��� �� ���� ���� �� ����� �� ������. ���

RPM ��� � �� ���� ��� � CD-ROM� ���� �

�� �����.

���

-h �� ��� �� ��� �����.

-p pkg_path

CSM � RPM ���� ���� ���� � � ����� �� �� �����.

-v | -V

�� ��� �� ��� �����.

����

�� �� ���� ����� �� � ���. ��� �� ���� �� ��� �� �� �

�� ��� ���.

Attr=value...

���� � � Attr=value �� �� �� �����. Attr=value �� ���� ��� � � �

���� ���. ��� �� �� ����.

InstallCSMVersion

CSM ��

InstallOSName

���

InstallDistributionName

��� �

InstallDistributionVersion

��� ��

InstallPkgArchitecture

��� ��� ��

��

���� �� ��� ������ ��� �� ���� ��� ���.

�� ��

0 ��� ����� ��� ���.

498 �� ���, � 1 �

Page 515: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

1 ��� ������.

��

AIX �� ��� ����� � Linux �� CSM 1.3.2� �� ����� �� ������.

copycsmpkgs -p /images/csm:/images/rh80disk1:/images/rh80disk2 \InstallCSMVersion=1.3.2 InstallOSName=Linux

��

/opt/csm/bin/copycsmpkgs

�� ��

v updatenode man ���.

v nodeattributes man ���.

v IBM CSM for AIX 5L: Planning and Installation Guide.

v csm.core � csm.server �� ��.

cp ��

��

��� �����.

��

� ��� �� ����� ��

cp [ -E{force|ignore|warn} ] [ -f ] [ -h ] [ -i ] [ -p ][ -- ] SourceFile TargetFile

����� �� ����� ��

cp [ -E{force|ignore|warn} ] [ -f ] [ -h ] [ -i ] [ -p ] [[ -r | -R ] [ -H | -L | -P ]] [ -- ]

SourceFile ... TargetDirectory

����� ����� ����� ��

cp [ -E{force|ignore|warn} ] [ -f ] [ -h ] [ -i ] [ -p ] { -r | -R } [ -H | -L | -P ] [ -- ]

SourceDirectory ... TargetDirectory

��

cp ��� SourceFile ���� ��� �� ��� TargetFile ���� ��� �� ��� ����

�. �� ��� � �� cp�� ��� !���� ��� ��� �, ��� � ��� ��� ���

�. SourceFile� ��� ��� � � TargetFile� ��� �� � � ��� ��� � �� ����

�. TargetFile� �� �� cp� TargetFile��� �� ��� ����. � ��� �� ��� ��

�� ��� �� ���� �� ��� ���� ���, �� ��� ���� ��� TargetFile� ��

�� ���(���) 499

Page 516: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� � ��� ���� ��� � �����. TargetFile� � ��� ���� �� cp�� �� ��

� �� ��� ���� ���� TargetFile���� ��� ��� ���. �� cp ��� SourceFile

���� ��� �� ��(�� SourceDirectory ���� ��� ����)� TargetDirectory ��

�� ��� ����� �� � ���.

�: �� ��� � ��� ����� �� -r �� -R �� � ��� ���� ���.

�� ��� � cp ���� ����� �� �� �� �� ����� �� � �� �����

����.

��� �� ��� �� �� ���. � �� ���� ��� -R ��� ���� �� ���

�. -R� ���� �� �� ���� �� ��� �����. -r ��� ���� cp ���� �

��� �� ��� ���� �����.

���

-E -E ���� � �� � ��� �����. -E ��� ��

��, warn� � � �����.

force ��� � �� �� ��� � ��� �� � �

� ��, ��� �� cp ��� �����.

ignore � � ��� �� �� ��� �����.

warn ��� � �� �� ��� � ��� �� � �

� �� ��� �����.-f �� ��� �� ��� � � � �� ��� �� ��� �

�� �����. ��� cp ���� ���� ��� ����.-h cp ��� �� ��� ����� �����. � �� �� �

�� ��� ����. , �� ��� ���� #� ��� �

����.-H SourceFile ������ ��� �� ��� ��� ��� ��

� ��� ��� ��� ����.-i !��� �� ��� ����� �� �����.

TargetDirectory �� TargetFile ���� SourceFile ��

SourceDirectory ����� ��� ��� �� ��� ���

� �� � �� �����. y �� y� ��� ��� ��

���� ��, cp ��� �� �����. � �� �� ���

cp ��� ��� !��� ��� ���.-L SourceFile ������ ��� �� �� �� �� ��� �

�� � ��� �� ��� ��� ��� �� � ��� ��

� ��� ����.

500 �� ���, � 1 �

Page 517: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-p � TargetFile �/�� TargetDirectory��

SourceFile/SourceDirectory� �� �� �� �����.

v ��� �� � � ��� � . � ��� �� �

��� ���� cp ��� �� ��� �� ��� ���

��.

v ��� ID � �� ID. � ��� �� ���� ���� �

�, cp ��� �� ��� �� ��� �� � ���.

v �� �� �� ��� S_ISUID � S_ISGID ��. � ���

�� ���� ���� ��, cp ��� �� ��� ��

��� �����.

��� ID �� �� ID� �� � �� �� �� �� ��

�� S_ISUID � S_ISGID� �����.

��� ID � �� ID, �� �� �, �� � ��� � �

����� ����� � �� ��� ��� �� ���. ,

���� �� ������ �� ��� �� ��� ID� ��

� ���.

� �� �� � �� �� �� ��� ��� ����.

SourceFile� ��� ��� �� ���(ACL)� �����. ACL

� �� ��� ��� AIX 5L �� 5.2 ��� ��� ��:

��� � ��� ��� ��� ������.-P SourceFile ������ ��� �� �� �� �� ��� �

�� � ��� �� ��� �� ��� ����.-r SourceFile �� SourceDirectory ���� ��� �� �� �

��� �� �� ��� �����(�� ��). -r ��� �

� ��� �� ���� �� ��� �����.-R SourceFile �� SourceDirectory ���� ��� � �� �

���� �� �� ��� TargetDirectory ���� ���

����� �����. ���(FIFO) ��� � � �� �

� ��� �� �� �� ��� ���� � �����. -h

��� ���� �� �, �� ��� �����. (-R ��

� -r ��� ����.)

-H, -L �� -P ��� �� ���� �� �� �� ��� �

�� �� � ���� ����. �� ������.

v -H ��� ���� cp ��� SourceFile ������ ��

� �� ��� ��� ��� �� � ��� ��� ���

����.

v -L ��� ���� cp ��� SourceFile ������ ���

�� �� �� �� ��� ��� � ��� �� ��� �

�� ��� �� � ��� ��� ��� ����.

v -P ��� ���� cp ��� SourceFile ������ ���

�� �� � �� ��� ��� � ��� �� ��� �

��� �� �� ��� ���� ����.

�� ���(���) 501

Page 518: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-- --(��, ��) �� �� �� ���� �� ���� ��

��� �����. � �(null) ��� -(�� ��)� ����

�� ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 �� ��� ���� ��� ���.>0 ��� ������.

��

1. �� ����� � ��� ��� ���, �� �� ������.

cp prog.c prog.bak

� ��� prog.c� prog.bak� �����. prog.bak ��� �� ���� �� ��, cp ��� �

�� ����. ��� �� cp ��� � ��� prog.c ��� ���� �����.

2. �� ����� ��� � ����� ����� �� �� ������.

cp jones /home/nick/clients

� ��� jones ��� /home/nick/clients/jones� �����.

3. ��� � ��� ���� �� ��� ���� �� �, � � ��� �� ���(ACL)� ���

��, �� �� ������.

cp -p smith smith.jr

� ��� smith ��� smith.jr ��� �����. �� � � � ��� �� ��� ���

�, ���� smith.jr ��� smith ��� �� � � � � � ���. smith.jr ��� �

� smith ��� ��� �� ��� �����.

4. � ����� �� ��� �� ����� ����� �� �� ������.

cp /home/janet/clients/* /home/nick/customers

� ��� clients ����� ��� customers ����� �����.

5. �� �� � ������� ��� ����� � ����� ����� �� �� ������.

cp -R /home/nick/clients /home/nick/customers

�: ����� ���� ��� �� � ����.

� ��� �� �� , ������ � ������� ��� ��� clients �����

customers/clients ����� �����.

6. ��� �� ��� � ����� ����� �� �� ������.

cp jones lewis smith /home/nick/clients

502 �� ���, � 1 �

Page 519: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� �� � ����� jones, lewis � smith ���

/home/nick/clients ����� �����.

7. ��� �� �� ��� ��� ��� ����� �� �� ������.

cp programs/*.c .

� ��� .c� ��� programs ����� ��� �� .� ��� �� ����� �����. ( ).c

� ��� ��� ��� ���� ���.

��

/usr/bin/cp

cp ��� �����.

�� ��

cpio ��, link ��, ln ��, mv ��, unlink ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ��� � ���� ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� National Language

Support Overview for System Management.

cpio ��

��

��� ����� ����� �� � ��� ��� �����. � �� AIX cpio �� � System V

cpio ��� �����.

��

cpio -o [ a ] [ c ] [ -E{force|ignore|warn} ] [ v ] [ B | C Value ] <FileName >Output

cpio -i [ b ] [ c ] [ d ] [ -E{force|ignore|warn} ] [ f ] [ m ] [ M ] [ r ] [ s ] [ t ] [

u ] [ v ] [ S ] [ 6 ] [ B | C Value ] [ Pattern... ] <Input

cpio -p [ a ] [ d ] [ -E{force|ignore|warn} ] [ l ] [ m ] [ M ] [ u ] [ v ] Directory <FileName

��

cpio ��� cpio ���� �� ����� ��� �����. cpio ���� � �� ��� ��

� � ���. -i, -o � -p ��� �� ��� ����.

��: ��� cpio ���� �� ��(��)� ��� �� � ��� �� �� ��� �����

���. � ��� �� �� ������ ���� ���, �� �� ������ �� � ��

� ����.

�� ���(���) 503

Page 520: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�:

1. XPG/4 � POSIX.2 ��� � ���� ��� cpio ��� 2��� �� ��� �� � �

���.

2. cpio ��� ���� �� ��� ��� �� ���� ����. �� �� � ��

�� ��� �� ��� ��� ��� ���� � �� ���� ���.

cpio -o ��

cpio -o ��� �� ���� �� �� ��� ��, �� �� � � ��� �� � ��� �� �

�� �����. ���� ��� � ��� �� cpio �� �� ��� ���� ����. � ��

�� ���� ��� ���� � � ��� ���� �� ��� �����.

cpio -i ��

cpio -i ��� �� ���� cpio -o ���� �� ��� ��� �� � Pattern ���� ���

� ��� ��� �����. ��� ��� �� ���� ��� �����. ksh ��� � � �� ��

��� ��� Pattern ���� �� �� �� � ���. � ������� �� �� *(��),

?(��) � [...](���� �� ��)� ksh ��� � � �� �� �� ��� /(��)� �����.

Pattern ���� �� � �� *(��)��, ��� � �� ��� ����. [a-z]� �� ����

�, �� ��� �� �� ��� �� � �� ��� �� �� ����.

�� ��� �� � � �� �� ��� �� � ���.

cpio -p ��

cpio -p ��� �� ���� �� �� ��� �� � ��� Directory ���� ��� ����� �

����. ��� ����� � ���� ���. � �� ��� �� ���� �� ���� ���

� �� d ��� ��� ��� ����� ��� �� ���.

�: �� ��� ��� � ���� �� ��� �� � ���.

����

Directory ����� �����.<FileName ���� �� cpio ��� �� �� ���� �����.>Output ��� �� ��� �� �� ��� �����. �� �� ��� ���� rmt �� ��

� ������.<Input �� ��� �����. �� Input� cpio -o ���� �� Output �����. �� �

� ��� ���� rmt �� ��� ������

Pattern ��� �� �� ��(ksh ��� � � ��)� �����. Pattern ���� � �� *(�

�)� Input� �� ��� ����.

���

�� ��� ��� �� �� �� ��� �� ���� ���. � �� ��� -o, -i �� -p

��� �� �� � � �� ����.

504 �� ���, � 1 �

Page 521: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

a �� ��� ��� �� �� �� ������.b ��� ���� �� �����.

�: �� ��� �� �� ���� ��� � ��, ���� �� � ���.B 512 ��� ��� � �� � ��� �� �����.

�: B �� C ��� ��� �� ���� ����� � � � ��� �� ��� ���

� ��� �� � ���.

B �� C ��� ��� ���� ���� �� �� �� ��� ��� � ��� ���

� � ���.

B �� � C ��� �� ������. � ��� �� �� �� cpio ��� �� �����

��� ��� �����.c ASCII �� ���� �� ��� �� �����. cpio ���� c ��� ��� �� ��, �� �

� c ��� ���� ���.C Value Value ���� 512 ��� �� �� ��� �� � ���� �����. �� �, -C2 ���

�� �� � ��� ��� 1024 ��� ����.d ��� �� ����� ����.-E -E ���� � �� � ��� �����. -E ��� �� ��, warn� � � cpio �����.

force ��� �� �� �� � �� �� ��� �� �� �� �� ��� �����.

ignore �� � ��� �� �� ��� �����.

warn ��� � �� �� ��� �� ��� �� � �� �� ��� �����.��� � � ���

��.f Pattern ���� ���� ��� ��� �� ��� �����.l �� ���, ��� ���� � ��� �����. � ��� cpio -p ���� �� � ���.m �� �� �� � � �����. ����� �� �� � ��� ���� ����.M ����� �� ���� �� �� �� � � �����.r �� ��� ����� ���. �� ��� ��� ���� ���� �� ����� <Enter> �� ���

�. Enter �� �� ��, cpio ��� ��� ���� ����.s ��� � ���. � ��� cpio -i ���� �����.

�: ���� ��� ��� ��� � ��, ���� �� � ���.S ���� � ���. � ��� cpio -i ���� �� � ���.

�: ���� ��� ���� ��� � ��, ���� �� � ���.t ��� ����. � ��� �� ��� ���� ����.u ������ �����. �� ��� �� �� ��� �� � ��� �����.v �� ��� �����. � ��� t ��� �� ���� ��, ��� ls -l ��� ��� � �� ���

�.6 �� ��(�� �, UNIX � 6 � ���� ��� ��)� �����. � ��� cpio -i ���� �� �

���.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

�� ���(���) 505

Page 522: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. ��� ���� �����, �� ������.

cpio -ov <filenames >/dev/rfd0

� ��� filenames ��� ��� �� ��� ��� � ���� ���(>/dev/rfd0)�� ���

��. v ��� ���� cpio ��� ��� �� � ��� ��� �����. � ��� ��

� � ��� ��� � �����. ���� � �����, �� ���� ����� ����

��� ���.

�: 65535�� � uid � gid� �� ��� cpio ��� ��� ��� � ����. �

���, �� ��� ���� ���.

2. �� ������ ����� ��� ����� �� �� ������.

ls *.c | cpio -ov >/dev/rfd0

� ��� ��� .c� ��� �� ��� �� ������ �����.

3. �� ���� � �� ������� ����� ����� �� �� ������.

find . -print | cpio -ov >/dev/rfd0

� ���� �� ����(.)� ���� ���� ��� ���� ����� �� ������ � �

�� �����. �� �� ��� � ��� ������.

find . -cpio /dev/rfd0 -print

-print ��� ��� �� ��� ��� ��� �����.

4. cpio ���� ���� ��� ��� ����� �� �� ������.

cpio -itv </dev/rfd0

� ��� ��� cpio �� ���� /dev/rfd0 ��� ��� ���� ��� �����. � ���

� ls -l ���� ��� ���� ���� � ���. �� �� ���� �����, -it ��

� ������.

5. ����� cpio ���� ��� ��� ����� �� �� ������.

cpio -idmv </dev/rfd0

� ��� ��� cpio ���� /dev/rfd0 ��� ��� ��� �� �� ����� �����(-i

�� ��). d ��� ���� ���� ��� ��� �� cpio ���� � ����� �

� ���. m ��� ��� �� � ��� ��� � �����. v ��� ���� cpio

��� ��� �� � ��� ��� �����.

6. ����� �� ��� �����, �� ������.

cpio -i ″*.c″ ″*.o″ </dev/rfd0

506 �� ���, � 1 �

Page 523: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� ����� .c �� .o� ��� ��� �����. �� *(��)� �� �� ��� ���

� �� �� � �� ″*.c″ � ″*.o″� �� ��� �� �� ������. ��� cpio �� �

�� �� �� ��� ���� ��� �����.

7. ����� �� � �� ��� ��� �� �� ������.

cpio -ir </dev/rfd0

-r ��� ���� cpio ��� ����� ���� �� ��� ��� �� �� ����.

�� � �� �� ��� ���.

Rename <prog.c>

� ��� prog.c� ��� ��� �� � � ��� �� ��� ��� ����. ��� �

�� ���, � ��� ���� Enter �� ����. �� ��� �����, � ��� �� ��

�� ���. ��� ���� ����, Enter �� ����.

8. ���� � �� ������� ����� �� �� ������.

mkdir /home/jim/newdirfind . -print | cpio -pdl /home/jim/newdir

� ��� �� ����� �� �� �� ������ � ��� ��� �� ���� ��� ���

��. ��� �� /home/jim/newdir ����� ����. l ��� cpio ��� ��� �� �

�� ���� � ���� ���.

�: 9348 �� �� �� �� 12� �� cpio� �� � � � ��� �� � �

���. � ��� ����, ���� �� �� ������.

chdev -1 <device_name> -a block_size=32k

��

/usr/bin/cpio cpio ��� ���.

�� ��

find ��, ksh ��, ln ��, ls ��.

cpio �� ��, rmt �� ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Backup Overview

for System Management��� �, �� ���� � ��� �� �, � ��� � ��,

� ��� �� �� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ���� ����� ���� � �� ��

� �� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� ��, ��, �� � ����� �� �����.

�� ���(���) 507

Page 524: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ����� ��� �� �� ���

��.

System V cpio ��

��

��� ����� ����� �� � ��� ��� �����.

��

cpio -i [ -b ] [ -B ] [ -c ] [ -d ] [ -f ] [ -k ] [ -m ] [ -r ] [ -s ] [ -S ] [ -T ] [ -t ] [ -u ] [ -v

] [ -V ] [ -6 ] [ -C bufsize ] [ -E file ] [ -H hdr ] [ -I file [ -M message ] ] [ -R ID ] ] [ Patterns

...]

cpio -o [ -a ] [ -A ] [ -B ] [ -c ] [ -L ] [ -v ] [ -V ] [ -C bufsize ] [ -H hdr ] [ -K mediasize ]

[ -O file [ -M message ] ]

cpio -p [ -a ] [ -d ] [ -l ] [ -L ] [ -m ] [ -u ] [ -v ] [ -V ] [ -R ID ] Directory

��

cpio ��� ���� �� ����� ��� �����. -i, -o � -p ��� �� ��� ���

�. � ���� � ��� �����. -o, -p � -i ��� �� ������.

cpio -i(copy in)cpio -i ��� �� cpio -o� ���� ��� �� ���� ��� �����(-I� ���� �� �

�). Patterns� ��� ���� ��� ����. Patterns� ksh� �� �� � ����� ����

�����. Patterns��, ″?″, ″*″, � ″[ . . . ]″ � ��� ��(″/″) ��� ��� ���(″\″)�

���� �����. ″!″ � ��� not� ����. (�� �, ″[!abc]″ ��� a, b �� c� ��

�� �� ��� �����.) �� ��� �� � �� ��� ��� �� ��, Patterns� � ��

″*″(, �� �� �)���. ��� �� �� ��� �� ���. ��� �� ��, �� ����

� � ��� ��� �� � ���. ��� ��� ���� ��� �� ��� ��� ����

�� ���� ��� �����.

cpio -i ��� cpio -o ��� ���� �� ��� ��� �� ��� �� ��� pattern ���

� ���� ��� �����. pattern ���� ksh� �� ����� ���� �����. ���

��� �� ���� ��� �����. ksh ��� � � �� �� ���� ��� pattern ���

� �� �� �� � ���. ��� �� �� *(��), ?(�� ��), � [...](��� � �� ��)�

� ���. Pattern ���� �� � �� *(��)��, ��� � �� ��� ����. [a-z]� �

� �����, �� ��� �� �� ��� �� � �� ��� �� �� ����.

��� �� ��� �� cpio -o� �� �����. ��� � �� ��� �� ���� ��� ����

�. ��� �� ��, ��� � �� ��� �� cpio -o� ��� �� ��� �����. �� 512

�� � � �����.

508 �� ���, � 1 �

Page 525: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cpio -i� � ���� ��� ���� �� �� ��� ��� ����� � �� ��� ��, cpio

� �� ��� ���� ��� ���� ����. �� ���, ���� ��� cpio ���� �

���� �� ��, �� ��� ������ �� �� �����.

cpio -o(copy out)cpio -o� �� ��� ��� �� ��� ���� �� �� �� � � ��� �� � ��� �� �

�� �����.

cpio -p(copy pass)cpio -p� �� ��� ��� �� �� ��� ��� �� � ��� Directory ����� ��� ��

��� �����. ��� ����� � ���� ���. � �� ��� �� ���� �� ����

��� � ��, d ��� ��� ��� ����� ��� ���. � ��, ��� �� ���

(ACL)� � ���� ��� �� ����� �� ��� ��[��]���.

���

-a �� ��� ��� �� �� �� ������.-A ���� ��� �����. -A ��� -O ��� �����. �� �� -A� rmt �� �� � ����

�� ���� ����.-b ��� �� ��� ��� �����. � ��� -i ��� �� �� �� �����.-B � ���� -C ��� �� ���� �� ��, � � �� ��� 512 �����. ��� -B ��� �

� �� ��� ��� �� �� ��� 5120 �� ��� �����.-c ��� �� � ��� � �� ��� ASCII �� ���� ��� ���. -c ��� -H � -6�

�� ������. ��� �� ��� � ��� �� -c �� -H �� � ��� �� � ���.-C bufsize ��� ��� �� � ��� bufsize���. ( �� bufsize� �� ��� ��� �����.) -K� ��

�� ��, bufsize� 1K� ����� ���.-d ��� �� ����� ����.-E file ����� � � � �� �� ��� �� �� ��� ���� ��� �� ��(file)� �����.-f Pattern ���� ���� ��� ��� �� ��� �����.-H hdr hdr ��� �� ��� ��� �����. ��� �� ��� � ��� ��, -h �� -c �� � ���

�� � ���. � ��� -c � -6 ��� �� ������. � ��� ���� �� � ��

� �����. cpio ����� ASCII(-c), CRC(-Hcrc), tar(-Htar) �� ustar(-Hustar) ��� �� ��,

��� 2GB�� � ��� ���� �����. hdr� �� ��� �� �� ����.

crc CRC� �����. �� �� ���� � ASCII ��. crc �� ��� 2GB�� � ���

�����.

ustar USTAR� �����. IEEE/P1003 Data Interchange Standard �� � ��.

tar TAR� �����. Tar �� � ��. tar ��� tar ����� ��� � �����.

odc �� �� ��� ASCII ��.-I file file� ��� �� ���� ����. file� �� �� ���� �� ��� ��� � ��, ��� �

��� Enter �� ��� � ��� �� ������. � ��� -i ��� �� �� �� �����.-k �� �� � ��� �� �� � ��� ��� ����� �����. � ��� ��� ��� ���

��, ���� � ��� ��� �� � �� ���. � ��� -i ��� �� �� �� ����

�.-K mediasize �� ��� 1K� ��� �����. -C bufsize� �� �� ��, bufsize� 1K� ����� ���.-l �� ���, ��� ���� � ��� � �����. ��� �� � �� ��, �����. � �

�� -p ��� �� �� �� �����.

�� ���(���) 509

Page 526: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-L � ��� ��� �� �� ��� �����. �� ��� ��� �� ��� �� �����. -L �� -l

��� �� ��, �� ��� -p� � ���� �����.-m �� �� �� � � �����. ��� ��� �� � � ��� � � ��� �� � �� �� �

�� �����. ����� �� � � ���� ����.-M message ��� �� � ���� ��� �����. -O �� -I ��� �� ��� �� ��� cpio� ��,

� ��� ��� ��� �� ���� � ���� ��� �� � ���. ��� %d� ���

�� ����� ��� � ��� ��� �� � ���.-O file cpio� ��� file� ����. file� �� ���� �� ��� �� � ��, ��� ���� Enter �

� ��� � ��� �� ������. � ��� -o ��� �� �� �� �����.-r �� ��� ����� ���. ��� ����� Enter� ������. � �� ��� ����� .(��

�)� ������. � ��� -i ��� �� �� �� �����.-R ID ��� ��� � �� ��� ��� ��� ID� �� ������. � ��� �� ���� ���� �

����.-s � �� �� ��� � ���.

�: -s � -S ��� � �� �� �� ��� � �����.-S �� �� � ��� � ���.

�: -s � -S ��� � �� �� �� ��� � �����.-t ��� ����. � ��� �� ��� ��� ����. -t �� � -V ��� �� ������.-T long �� ��� 14�� �����. � ��� -i ��� �� �� �� �����.-u ���� �����. (�����, �� ��� ��� ��� �� ��� ���� ����.)-v ��� �� ��� ���� ����� �� �� �����. -t ��� �� �� ��, ��� ls -l ��

� ��� ���� �����.-V ��� � ��� �� � �� � ����� �� �� �� �����. �� �� ��� ���� �

� ����� cpio� � ���� �� ����� �����. -V� -v ��� �� ����� ����

� ��� ��� �� ���� � ��� �����.-6 UNIX System Sixth Edition ��� �� ��� �����. � ��� -c � -H ��� �� �����

�.

����

Directory ����� �����.Patterns ��� �� �� �� ��� ��(ksh ��� � � ��)� �����. Patterns ���� ��

� �� *(��)��, ��� � �� ��� ����.

�� ��

0 ��� ��� ���.

>0 ��� ������.

��

1. �� ����� �� ��� �� �� /dev/rmt0�� �����, �� �� ������.

find . | /usr/sysv/bin/cpio -oc >/dev/rmt0

-c ��� ��� � ���� �� ����� �����. find �� ls, cat, echo �� ���

�� ���� cpio� �� � ���. ��� �� �� �� �� cpio ��� �� ���

� ���.

2. cpio ���� �� ″arfile″��� cpio ��� ��� ����� �� ������.

510 �� ���, � 1 �

Page 527: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

/usr/sysv/bin/cpio -icdI arfile

��� cpio ����� �� ��� ���� �� �� -d ��� ��� ���� ��� �

��� �����.

3. �� cpio ��� ��� �� �� �� �� ���.

/usr/sysv/bin/cpio -icd < arfile

-d ��� ��� �� ����� �� ���� �� ���� �����. �� ��� -I ���

���� ��� ���� �� � ���.

4. ���� ″arfile″� � �� ��� ����� �� ������.

/usr/sysv/bin/cpio -icduI arfile

5. ��� ��� ��� � ��� �����, cpio� �� �� �� � ���.

/usr/sysv/bin/cpio -ickudI arfile

6. cpio� ��� ���� � � ���� ��� ��� � � ��� ��, �� �� �

��� cpio� ������.

ls | /usr/sysv/bin/cpio -oca > arfile

7. ″ar″ ����� ″a*″ ��� ���� ��� �����, �� ������.

cat ar | /usr/sysv/bin/cpio -ickud "a*"

� ��� ″a″ ��� ���� �� ��� �����.

8. ���� ��� ���� �����, �� �� ���� cpio� ������.

cat ar | /usr/sysv/bin/cpio -itv

�� ��(-v)� -t ���� ��� ���� ls -l ��� ��� ���� ����� �����.

9. cpio -p ��� �� �� ���� ��� �� ��� ����� �� � ���.

find . -print | /usr/sysv/bin/cpio -pd /home/user1/newdir

�� ������ �� ���� ��� /home/user1/newdir� �����. -d ��� �� � ��

��� ���� �����.

10. ���� ��� ���� � �� � � ��� �� ���(ACL)� �����, �� �� cpio

��� ������.

find . -name "*.o" -print | /usr/sysv/bin/cpio -pdlmv /home/user1/newdir

� ����� ���� �� �� � .o ��� /home/user1/newdir� �����.

11. �� ��� ���� �� ���� cpio ���� �����, �� ��� ��� ������.

ls d* | /usr/sysv/bin/cpio -oAO /tmp/ar

� �����, �� ����� ″d″� ���� �� ��� cpio ���� �����.

12. cpio ����� �� �� � ��� ��� ���� �����, � ��� ������.

cat ar | /usr/sysv/bin/cpio -i -E Efile

�� ���(���) 511

Page 528: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ����, cpio� ��� �� ��� ���� ����� �� �� ″Efile″ �� ��� ���

��� �����.

13. �� ��� ���� � � �����, �� ��� ��� ������.

ls d* | /usr/sysv/bin/cpio -pdl /home/user2/newdir

� ����, -l ��� ″d″ ��� ���� �� �� ��� ��� ����� /home/user2/newdir

� � ����� �����. �� ��� � � ��� ���� ����, �� ����� �

�� ���� � �� -l ��� �� � ����.

��

/usr/sysv/bin/cpio System V cpio ��� �����.

�� ��

/usr/bin/cpio ��, tar ��, dd ��, pax ��.

cplv ��

��

��� ��� ��� � ��� ��� �����.

��

� ��� ��� ����� ��

cplv [ -v VolumeGroup ] [ -y NewLogicalVolume | -Y Prefix ] SourceLogicalVolume

�� ��� ��� ����� ��

cplv -e DestinationLogicalVolume [ -f ] SourceLogicalVolume

��

��: ���� ���� � ��� ���� ��� �� ���� ���� ����. ��� �� �� �

��(�� � ��)� ���� �� ��� �� ���� �����. cplv�� �� ��� ��� �

�� �� ��� �� ��� �� � �� � ��� �����.

cplv ��� SourceLogicalVolume� ��� �� �� ��

DestinationLogicalVolume� ����. SourceLogicalVolume ���� ��� �� �� �� ���

�� ID� � ���. cplv ��� � � ��� ��� ��� � ��� �� �� ��� �

�� ����. ��� � ��� �����.

512 �� ���, � 1 �

Page 529: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�:

1. ���� ����� ��� ��� ���� �� �� ��� ��� ���� �� ��, ����

� � �� � �� ��� ��� ��� �� ��� ��� ��� �� � ���� �����.

2. ����� ��� ��� �� ��� � ��� � �� � ��� �� ��� mklv ����

�� ��� ��� ���� ��� ����� ��� ��� �� �� �� �� ���� �

� ��� ���� ���� �����.

3. � ��� �����, ���� �� ��� ��� ��� system ��� ����� ���.

4. cplv ��� ��� �� ���� ���� ����.

� �� ��� ����� �� ������ ��� �� �� � � ���. �� SMIT(��

� �� ����� ��) smit cplv �� ��� ��� � ��� �� �� ���.

���

-e DestinationLogicalVolume� ��� �� ��� ��� ��� ��� �����.

DestinationLogicalVolume� SourceLogicalVolume�� �� �� � ��� ���

���� ����. � ��� �� � DestinationLogicalVolume� � � ��

���� �����. � ���, -f ��� ���� �� �� ��� �� ���

��. DestinationLogicalVolume� Type �� ��� ���� !��� �� ����

copy � ���. Type �� ���� chlv ��� ������.-f ��� �� ���� �� �� ��� ��� �����.-v VolumeGroup � ��� ��� ���� �� ��� �����. � ��� ���� �� ��, � �

�� ��� SourceLogicalVolume� �� �� ��� �����.-y NewLogicalVolume � ��� ��� ��� ��� � �� �� �� ��� �����. ��� �

��� ��� ���� ��� ����� ��, 1-15��� � � �� � ���.-Y Prefix � ��� ��� �� ��� � ��� ��� �� ���� �����. � ���

� 13�� ����� ���. ��� � ��� �� �� ��� �������

� PdDv ���� � ��� ���� �� � ��, �� � ��� � ��

� ��� � ����.

��

1. ��� �� fslv03� ��� � ��� ��� �����, �� �� ������.

cplv fslv03

�� ��� ��� ��� fslv03� �� �� ��� ��� � ��� ����� �����.

2. ��� �� fslv03� ��� �� �� vg02� � � ��� ��� �����, �� �� ���

���.

cplv -v vg02

fslv03

�� ��� ��� ���, ��� � ��, vg02 �� ��� �����.

3. ��� �� lv02� ��� ��� �� ���� �� � �� �� ��� �� lvtes� ����

�, �� �� ������.

�� ���(���) 513

Page 530: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cplv -e lvtest -f lv02

��

/usr/sbin cplv ��� � ����.

�� ��

chlv ��, migratepv ��, mklv ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Logical Volume

Storage Overview��� ��� �� ���, ��� ��, ��� ��, �� ��, ��, ��� �� �

� � � ��� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool(SMIT): Overview��� ��, �� � � SMIT� ���� ���� �� �����.

cpp ��

��

C �� �� ��� �� �� � ��� ��� �����.

��

/usr/ccs/lib/cpp [ -C ] [ -P ] [ -qDBCS ] [ -IDirectory ] [ -UName ] [ -DName [ =Defin ition ] ]

[ -qlanglvl=Language ] [ InFile ] [ OutFile ]

��

cpp ��� C �� �� ��� ��� ������ ���� �����. � ��� Infile� �� OutFile

� �����(� �� �� �� �� � �� ��).

cpp ��� �� ″�� ���� � �� �� � - ��� �� C″(X3J11/88-159)� ��� �

� C ��� �� ���� ��� � ���� ����� ����.

cpp ���� �� �� �� ��� �����.

__LINE__ �� � ��.__DATE__ �� ��� � �.__TIME__ �� ��� � � .__STDC__ ���� ��� �����.__FILE__ �� �� ��.__STR__ ������ /usr/include/string.h� � � �� �� ��� ��� �� ��� �� ����.

514 �� ���, � 1 �

Page 531: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

__MATH__ ������ /usr/include/math.h� � � �� �� �� ��� �� ��� �� ����.__ANSI__ langlvl� ANSI� ��� � �����.__SAA__ langlvl� SAA� ��� � �����.__SAA_L2__ langlvl� SAAL2� ��� � �����.__EXTENDED__ langlvl� extended� ��� � �����.__TIMESTAMP__ �� ��� ��� � � � � �����.

�� cpp ��� �� #(� ��)� ���� ���. � ���� �� ����.

#define Name TokenString Name� �� ����� TokenString�� �����.#define Name(Argument,...,

Argument) TokenString

Name ��(Argument, . . . ,Argument)� �� ����� TokenString�� �����. �

� TokenString��� Argument ��� ��� ��� ���� � ���� ����

�. Name� �� �� ��� ��� ��� ��� �� ������.#undef Name ���� Name� �� ��� �����.#include ″File″ �� #include

<File>

�� File� ��� ��� � cpp� �����.

File� ″ ″(�� �� ��)� � �� cpp ��� � InFile�� ����, � ��� -I

��� ��� ��� ������ ��� � ����� �� ���� ������ ���

��.

<File> ��� �� �� cpp ��� �� ������� File� �����. InFile� �

����� ���� ����.#line Number [″File″] � ��� �� �� Number� ��� � ��� �� ��� ���� ��! �����.

File� ���� ��, ��� ��� ��� File� ����.#error TokenString TokenString� � �� ��� ����.#pragma TokenString ����� �� �� �� ���.#endif ��� ���(#if, #ifdef �� #ifndef)�� ��� �� ��� ����. ��� ���

� ���� #endif� �� ���.#ifdef Name � ���� ��� �� �� �����.

Name� �� #define�� ��� ���.

��

Name� -D ��� �� ��� ���.

��

Name� cpp ���� ���� �� �����.

���

Name� �� ��� � � #undef� ��� ���.

��

Name� �� ��� -U ��� ��� ���.

�� ���(���) 515

Page 532: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

#ifndef Name � ���� ��� �� �� �����.

Name� �� #define� �� ��� �� ����.

���

Name� cpp ���� ���� �� ��� ����.

��

Name� �� #define� �� ��� �� � � ��� #undef� �� ��� ��� �

��.

��

Name� cpp ���� ���� �� ����� -U ��� � ��� ��� ���.#if Expression Expression� ��� �� ��� �� ��� ��� �� �� �����. Expression�

�� 2� ��� C ���, ?: ���� -, ! � - �� ���� �� � ���. ����

�� C ���� ���� �� ����. ��, �� ��� defined� �� � ����

Expression�� �� �� � �� ���� �� � ���.

defined(Name) �� defined Name

�� �� ��� ���� #if ����� #ifdef � #ifndef� �� � ���.

� ���, �� �� � cpp� ��� ���� Expression� ���� ���.

sizeof ���� �� � ����.#elif Expression � #if �� #elif ���� ���� ����� ���� � ��� � Expression� ��

� �� ���� ��� �� �� �����.#else � #if �� #elif ���� ���� ����� ���� � �� ��(��� #if �� #else

� � � � ���)�� ��� �� �� �����

��� ���� ��� ���� ����. ��� ��(0)�� ���� ��, ��� �

��� ��� �����. ���� ��� ��� �� ���� �� ���� ����

��� ���� �����. ��� � � ���� ��� �����, ���� ����

��� ���� �����. �� ��� �(��� ��)�� ���� � ���� ����

�. �� ��� ���� ���� #else ���� � �� #else� ���� ��� ���

��. #else ���� ��� #endif��� �� ��� �����.

���

-C �� ���� �� ��� C �� ��� �����. � ��� ����, cpp ���

cpp ��� ��� ���� �� ��� �� C �� ��� �����.-DName[=Definition] #define ������ �� Name� �����. � � Definition� 1���.-IDirectory � Directory�� ��(/)� ���� �� ��� #include ��� � � �� �

��� ������ ���. �� #include ��� ������.-P C ����� � ��� � � �� ��� ��� �� ��� �������.-qDBCS 2 �� �� �� �� �����.-UName Name� �� �� ��� �����. �� Name� ����� �� ��� ��

���. �, � �� ���� � ���� __ANSI__, __EXTENDED__,__SAA__

� __SAA_L2__� �����. � ��� ANSI ��� ���� ����.-qlanglvl=Language ��� � �� �� ����. Language� ANSI, SAA, SAAL2 �� �� �

���. � �� ����.

�: Language� � �, _NO_PROTO� ���� ���� ����. /etc/xlc.cfg

��� -D ��� ��� � ��� �� � ���.

516 �� ���, � 1 �

Page 533: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. ����� C ����� ���� ��� �����, �� �� ������.

/usr/ccs/lib/cpp pgm.c

� ��� pgm.c� ������ �� ��� ������� �����. ���� ��� ���

� ��� � � ���� ��� �� � � ���.

2. � �� �� ��� ��� ������ � ��� ���� �� �� ������.

/usr/ccs/lib/cpp -P -C pgm.c pgm.i

��� pgm.c� ������ � ��� pgm.i� �����. � ��� C ����� � � ����

��� ����(-P), ��� ��� �����(-C).

3. ��� ID� �������, �� �� ������.

/usr/ccs/lib/cpp -DBUFFERSIZE=512 -DDEBUGpgm.cpgm.i

� ��� ���� �� 512 ��� BUFFERSIZE� ���� 1 ��� DEBUG� �����.

4. ��� ����� � #include ��� ����� �� �� ������.

/usr/ccs/lib/cpp -I/home/jim/includepgm.c

� ��� �� ������ ��� #include ��� � � /home/jim/include, �� ���� ��

� ��� ���. � ��� /home/jim/include�� ��� �� #include ��(< >)� � �

�� ������ ���.

5. ANSI ��� ������� �� �� ������.

/usr/ccs/lib/cpp -qlanglvl=ansi pgm.c

��

/usr/include #include ��� �� �� ����.

�� ��

m4 ��.

�� ���(���) 517

Page 534: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cpu_state ��

��

���� �� �� � �� ���� �� �� ���� �����.

��

cpu_state -l | { -d | -e } ProcessorNumber

��

cpu_state ��� ���� �� �� � $���� ����� �� ���� ���� ����

�. -d �� -e ��� � ProcessorNumber ���� ��� ���� �� �� �� �����

�����. -l ��� � �� � ���� �����.

Name procx ���� ��� ODM ��� ��. �� x� ��� ��� �����.Cpu ��� ��� ��.Status � ��� �� ��� � .Location ODM ��� � �. � �� AA-BB-CC-DD ���� �����. AA� �� 00���(� ���

���). BB� 0x��, �� x� � ��, � ��, � �� �� � �� ��� � ���� P, Q,

R �� S���. CC� �� 00��, DD� CPU �� ��� �� ���� 00 �� 01���.

ODM�� ���� �� ��� ��� ��� �� ��� �(CPU � � ��)� �

�� ���. ��� ��� �� ��� 0(��)�� ��� �� �� �� �� ���� ����

� ���� �����. ���, ��� 4� ��� 2�� ���� �� ���� ��� �� ��

� 0(��)� 1(�)� �����.

Status �� �� ��� � � ���� ��, � ��� �� � � �����. , �� ��

���� -d ��� ��� �� ����� ��� �� -l ��� ���� �� ����� ��

��� ��� ��� �����. ���� �����, ���� ���� �� � � �� �� ��

��� ���, ��� ��� ����. ��� � � � � ��� Status ��� no reply� ��

���. � � � �� �� ���� �� ��� ��� ��� ���� �� ��� ��� ��

��.

�:

1. ���� ������ cpu_state ��� �����.

2. cpu_state ��� �� ���� �� � ��, ��� ����, � �� � ���� �� ���

� � �����.

3. cpu_state ��� AIX 5.1 � � ��� Micro Channel ���� ��� $���� ������ �

����. IBM ���� ��, AIX 5.1 � ��� IBM 7012 �� G ���, IBM 7013 �� J ��

�, � IBM 7015 �� R ���� �����.

518 �� ���, � 1 �

Page 535: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

lsdev ��� �� $���� ����� ���� �� ��� ���� � �� � ���. �

�� ��� �� � � �� �� �� ��� �� �� $���� ����� ��� �

���. �� �� lsdev ��� �� ����.

lsdev -C -c processor -S Available

���

-d ��� ���� �� ����� ���.-e ��� ���� �� ���� ���.-l �� ���� � � �����.

��

1. ���� � ���� � � �����, �� �� ������.

cpu_state -l

�� ���� �� �� 4�� ���� �� �����, � ��� �� � � ���� ��

��.

Name Cpu Status Locationproc0 0 Enabled 00-0P-00-00proc1 1 Enabled 00-0P-00-01proc2 2 Enabled 00-0Q-00-00proc3 3 Enabled 00-0Q-00-01

2. ���� ��� � ��� �� 1� ���� ��� ��� �� �� ������.

cpu_state -d 1

� �� ��� ���� ��, cpu_state -l ���� �� �� ���� ����.

Name Cpu Status Locationproc0 0 Enabled 00-0P-00-00proc1 1 Disabled 00-0P-00-01proc2 2 Enabled 00-0Q-00-00proc3 3 Enabled 00-0Q-00-01

���� ����� ��, �� ��� � � ��� �� ��� 1� � �� ��� ��� ��

� �� �� ����. �� cpu_state -l� �� � � ���� ����.

Name Cpu Status Locationproc0 0 Enabled 00-0P-00-00proc1 - Disabled 00-0P-00-01proc2 1 Enabled 00-0Q-00-00proc3 2 Enabled 00-0Q-00-01

3. ��� �� 1� �� ����� ��� � �� ���� ����� �� �� ������.

cpu_state -e 1

�� ���(���) 519

Page 536: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� � �� ���� ��(��� 1� �� ����� ��� � ��)�� cpu_state -l �

�� �� �� ���� ����.

Name Cpu Status Locationproc0 0 Enabled 00-0P-00-00proc1 - Enabled 00-0P-00-01proc2 1 Enabled 00-0Q-00-00proc3 2 Enabled 00-0Q-00-01

��

/usr/sbin/cpu_state cpu_state ��� �����.

�� ��

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Starting the System,

AIX 5L Version 5.2 System Management Guide: Operating System and Devices� Stopping the System.

craps ��

��

�� ��� �����.

��

craps

��

craps ��� ������� �� �� � � �� ��� �����. craps ��� ���� � ���

�� �����. �� ��� � ��� ����� � ��� � ���� �� � ���.

�� �� ���� ��� �����. ���� bet?� �� �� �, ��� �� �� ��� �

� � ���. �� ���� �� ��� � ����. ��� �� � ����. ��� ��� �

�����.

� ���, 7 �� 11� ��� ���, 2, 3 �� 12� ���� ����. �� � ��� ���

� �� ���� �� �� � ����. �� ���, ��� ��� �����, ���� 7�� ���,

��� � ��� ��� �� � �� ����. �� � �� ����.

Your bankroll is $2000bet? 1005 3The point is 8

6 64 1

520 �� ���, � 1 �

Page 537: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2 12 5

You lose your bet of $100Your bankroll is $1900

� ���, �� �� ��� ��� �� $100� �����. � �� �� 8� ���. ��� ���

� ���� 8� � �� ��� ��� �� ��� ���� ���. �� �� 12, 5, 3 � 7� ��

�. ��� ���� ���� �� � ���� � 7�� ����. �� $100 ���� �����.

� ��� ��� �, ��� bet?� ���� ��� �����.

���� ��� �� !��, ��� marker?� �� ��� �� 2000��� ��� �� ���

�. Y(�)� ��� ��� ����. � �� � ��� �� ��� �����.

���� ��� �� �, ���� ���� ��� ��� ��� ����� ��� ���. ����

��� �� � ��� 2000 ��� �� �, ��� Repay marker?� ����. ��� �� �� �

�� $��� �� Y(�)� ������. ��� �� �� � �� craps ��� How many? ���

�����. �� � ���� � � �� ����, ��� �� �� ��� ��� �����. 10

��� ���( 20,000 �� ��), ��� �� ���� ����. ��� �� � �� 5� �� �

�� ��� �� ��, �� �� ���� $� ���.

�� �� ��� ��� ��� �����, ��� New game?� �����. ��� ����, ��

��(Ctrl-C) �� EOF(Ctrl-D) �� ����. ��� ���� � � �� �%��� ���� �

���.

��

/usr/games ����� ��� �.

�� ��

arithmetic ��, back ��, bj ��, fish ��, fortune ��, hangman ��, moo ��, number ��,

quiz ��, ttt ��, turnoff ��, turnon ��, wump ��.

createvsd ��

��

createvsd - ��� ��� ���� ��� �� �� ��� ��� ����.

��

createvsd -n {node_list | ALL} -s size_in_MB -g vg_name

[{-c vsds_per_node | -L}] [-A]

[{-m mirror_count | -p lvm_stripe_size_in_K}] [-v vsd_name_prefix]

[-l lv_name_prefix] [-T lp_size_in_MB] [ -k vsd_type] [-x]

�� ���(���) 521

Page 538: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

� ��� ��� ��� ���� �� ��� ���(�� ���� �� ��) � �� �� �� �

�� ��� �����. -s ��� ��� ��� �� ��� �����.

SMIT(System Management Interface Tool)� ��� � ��� �� � ���. SMIT� �����

�� ������.

smit vsd_data

� � �� � ��� �� ��� �����.

���

�: � ����� � �� �� � ��� �� � � �� � � ��� ���� � ����.

��� ��� ��� ���� ���� �� ��� ���� ���.

-n node_list �� �� ���� � �� �� ��� � ��� �����. � �� 1� �

� �� � ����. ��� �� �� ���� �� � ���� ��� �� ���

�.

[P/S] : disk_list1+disk_list2/

�� �� �� ���� �� � ���� ��� �� ����.

[S1/S2/...Sn] : disk_list1+disk_list2/

″P″� ����� ����� �� ���� 1� �� ��, ″S″� ����� �����

�� ���� �(2�) �� ��, S1 � S2� ��� ����� �� ���� �� �

� �����. disk_list1� 1� �� �� ��� ��� �� �� �� ��� ��

vpath� ������. , � ���� hdiskx, hdisky,... �� vpathx, vpathy,...� �

� ���.

�:

1. vpath� ″����� �� ���″� ���� � ���� �� � ���. vpath

� ��� ��� ��� �� ″�� ��″� �����.

2. hdisk� vpath� ��� ���� ��� �� � ����.

��� ��� ��� ��� �� ���� �� ��� � ��, disk_list1+disk_list2�

1� �� �� ��� � �� �� ��� �� vpath� ������. �� ����

��� �� �� ���� ��� ��� �����. �� �, �� ����.

createvsd -n 1,6,4 -v PRE

vsd_prefix PRE� ���� � 1� PRE1n1, � 6� PRE2n6 � � 4� PRE3n4 �

� �� ���� ����.

522 �� ���, � 1 �

Page 539: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� 3� � �� �� � 1� hdisk2, hdisk3 � hdisk4� ��� �� ��� �

��� �� ������.

createvsd -n 1/3:hdisk2,hdisk3,hdisk4/ -v DATA

� ���� ��� �� �� ���� �� ����.

v � 1�� DATA1n1b3 �� �� �� ��� �� ��� lvDATA1n1 ��� ���

� ��� � 3�� ���� DATA1n1 �� �� ���. ��� �� ���(LVM)

�� �� ��� DATA���. ��� ��� hdisk2, hdisk3 � hdisk4� ����.

���� � 1, 2 � 3� � �� �� �� ��� �� ���� 4, 5 � 6�� �

� �� ���� �� ������.

createvsd -n 1/4:hdisk1,hdisk2,hdisk3/,2/5:hdisk5,hdisk6, \hdisk7/,3/6:hdisk2,hdisk4,hdisk6/ -v DATA

�� � ��� � ��� ��� �� node_list �� ���� ��� �� ���� �

��.

� ���� ��� �� �� ���� �� ����.

v � 1�� DATA �� �� �� ��� �� ��� lvDATA1n1 ��� ���� �

�� � 4� ���� DATA1n1 �� �� ���. �� �� �� ��� DATAn1b4

���.

v � 2�� DATA �� �� �� ��� �� ��� lvDATA2n2 ��� ���� �

�� � 5� ���� DATA2n2 �� �� ���. �� �� �� ��� DATAn2b5

���.

v � 3�� DATA �� �� �� ��� �� ��� lvDATA3n3 ��� ���� �

�� � 6�� ���� DATA3n3 �� �� ���. �� �� �� ���

DATAn3b6���.

��� ��� �� ���� 2�� �� ������ ��� �� �� ���� ��

�� �� ������.

createvsd -n 1/3:hdisk1,hdisk2+hdisk3/ -v DATA

� ��� hdisk1, hdisk2 � hdisk3� ���� DATA �� ���� hdisk1 � hdisk2�

��� lvDATA1n1 ��� ��� DATA1n1 �� �� ���� ����. � �

DATA �� ��� �� �����.

�� ��� � ��� � ��� �� hdisk ���� ��� ��� ���� ��

���� ��, ��� hdisk� � �� ��� �����. �� ��� �� ���

�� �� createvsd ��� hdisk_list1+hdisk_list2� ��� �� ��� ����.

� �� 1� ��� �� �� ���� ���� � ���� �� �� �� ��

�� �� � ����.

�� ���(���) 523

Page 540: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ALL� RSCT �� ��� �� ��� �� �� ���� ���� �����. �

�� ����� �� �� � �� ���� ����. �� �� ���� node_list

� �� ���� � �� �� ���� ����(�� �� ���� �� � �

).

-s � �� �� ���� �� ��� MB � � �����.

-g ��� �� ���(LVM) �� �� ��� �����. ��� ��� � ��� ���

�� �� �� ��� ����. �� �, �� ����.

createvsd -n 6 -g VSDVG

� 6� �� VSDVG �� �� �� ��� VSDVG1n6 �� �� �� ��� �� �

�� ����. � �� �� ��� �� � ��� ���� �� ��� � �

��� � ��� �����. � �� ���� �� �� �� �� ��� 1� �

� ����� � � ��� �����. �� �, �� ����.

createvsd -n 6/3/ -g VSDVG

VSDVG �� �� �� ��� VSDVGn6b3 �� �� �� ��� �� ��� ���

�. 1� �� � 6�� � �� ��� � �� � 3���.

-c �� � �� �� ���� ��� �����. number_of_vsds_per_node� ��

�� ��� createvsd� ��� �� �� ��� �� �� ���� ����.

�� �� � � ��� �� �� ���� � �� ��� ��� ���. ��

�, �� ����.

createvsd -n 1,6 -c 2 -v DATA

� 1� DATA1n1, � 6� DATA2n6, � 1� DATA3n1, � 6� DATA4n6 �

� �� ���� ����.

-L ����� ����� �� �� ���� �� �� ��� ���� �� �� ��

� �� �� ���� � � ���.

-A �� �� �#� �� �� ��� ��� ��� �����. �� � ��

����.

createvsd -n 1,6 -c 2 -A DATA

� 1� DATA1n1 � DATA2n1, � 6� DATA3n6 � DATA4n6 �� �� ���

� ����.

-m LVM �� �� �����. �� �� ��� ���� � ��� ����

�� �����. � � 1�� 3����, � � �� 1���.

-p LVM ���� ��� �����. � ��� ���� ��� ��� ��� ����

�� ����. ������ ����� �� �� ���� ��� �� �� ����

� � �� �� ���.

524 �� ���, � 1 �

Page 541: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-v �� �� �� ���� ��� �� ���� �����. � ���� ���� �

� � ���� �� �� ��� ��, � �� � � � ��� �����. ��

�, � 1� �� �� �� ���� PRE ���� ���� ���� � ���� ��

�� 2�� �� �� ���� � � ��, �� �� �� ��� ��� PRE3n1�

���. -l ��� ���� �� ��, �� ��� ��� ���� ��� lvPRE3n1�

���. createvsd ��� PRE ���� ����� ��� �� �� ����� ����

� �� �� ��� ��� �� ����.

-v ��� ���� ��� vsd ���� �����.

�: vsd_name_prefix� ��� ��� ��� � ����. ��� �� �� PRE ��

�� ���� �� �� �� �� ���� PRE1 ���� ���� � �� �� �

� ���� ��� �����. �� ’.’� ���� ��� � � ���

vsd_name_prefix� �� � ����.

-l createvsd ���� � �� ��� ��� ���� lvx ���� ������. �� x

� vsd_name_prefix �� � �(vsd)� ���� �� �� ��� �� ������. �

� �, �� ����.

createvsd -n 1 -v DATA

� 1� lvDATA1n1 �� ��� ���� ��� DATA1n1��� ��� ��� ��

�� ���� ����. �� �� ��� ���.

createvsd -n 1 -v DATA -l new

� ��� ���� ��, � 1� � �� �� ���� ��� �� DATA1n1��

� �� ��� ��� ��� lvnew1n1� ���.

�� �� ��� ��� ��� �� ��� ���� �� �� ���� ��� ����

�� � � � ��� ��� -l ��� ���� �� �� �����.

-T ��� �� ���(LVM) ��� �� ��� ��� ��� ���� ��� ��� ��

� ��(�� �� � )� MB � � �����. 2-256 � �� 2� ���� ��

� ���. � �� 4MB���.

LVM� ��� ��� �� ��� 1016�� �����. 4GB� ���� ���� ��

��� ��� ��� ��� �� �� ��� �� � �� 4MB� ���� ���.

-k vsd_type �� �� ��� ��� �����. ��� �� ����.

v VSD - �� ��� �� ��� �� ���� �����.

v CVSD - �� ��� �� ���� �����.

� �� VSD���.

-x �� �� ��� 1� � 2� �� � �� �� ���� ����� � ��� ��

� ���� ��� �����.

v 1� �� �� varyoffvg

�� ���(���) 525

Page 542: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v 2� �� �� exportvg

v 2� �� �� importvg

v 2� �� �� chvg

v 2� �� �� varyoffvg

v 1� �� �� varyonvg

� ��� createvsd ��� ���� ���� ����. ��� �� �� ���� ���

1�/2� �� � �� ��� �� ��� �� ��� ��� ���� ��� �

� ���. ��� � ���� ��� ��� createvsd� -x ��� ����� � �

��� �� �� ��� ����� ���� ��� ���.

����

�.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ��� ����� ��� � �����.

-1 �� ��� �����.

���

1. � �� 1� �� �� � ����.

2. vsd_name_prefix� ��� ��� ��� � ����.

3. vsd_name_prefix� .’ ��� �� � ����.

� ��� �� ���� ��� � � ��� ���� ���. �� ��� ��� � � ����

� startrpdomain ��� ������. ��� �� ���� �� �� ��� � � �����

startrpnode ��� ������. RSCT �� ��� � � ��� �� ��� ��� RSCT: ��

��� ������.

�� ��

�� �� ��� ���.

createvsd -n 1/2:hdisk13/ -s 1024 -g testvg -v testvsd -T 16

�� ��� �� ��� �� �����.

createvsd: calls Getopts.createvsd: parsing node_list.createvsd: creates task tables.createvsd: calls checkclvm.perl on the nodes c164n11.ppd.pok.ibm.comcreatevsd: calls domkvglv.perl.

526 �� ���, � 1 �

Page 543: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

OK:1:mkvg -f -y testvg -s 16 hdisk13OK:1:mklv -a c -y lvtestvsd1n1 -e x testvg 64 hdisk13It took about 8 seconds in mkvglv.createvsd: calls dovaryoffvg.perl testvg on the primary node c164n11.ppd.pok.ibm.comOK:1:chvg -a n testvgOK:1:varyoffvg testvgcreatevsd: calls doimportvg.perl testvg on the nodes c164n12.ppd.pok.ibm.comwith 000048186b991a6fimportvg: testvgimportvg : OK:2:importvg -y testvg hdisk5importvg : OK:2:chvg -a n testvgimportvg: timestamp 2 testvg 3e036cb33403c8c8importvg : OK:2:varyoffvg testvgimportvg : It took about 10 seconds.It took about 12 seconds in importvg.createvsd: calls vsdvg.OK:1:vsdvg -g testvgn1b2 testvg 1 2It took about 12 seconds in vsdvg.createvsd: calls dovaryonvg.perl testvg on pri nodes c164n11.ppd.pok.ibm.comOK:1:varyonvg testvgcreatevsd: calls defvsd.OK:1:defvsd lvtestvsd1n1 testvgn1b2 testvsd1n1It took about 5 seconds in defvsd.

��

3�� 1� � � �� 4MB ��� �� �� ���� 2�� ����(� � ��� � �) �

� ������.

createvsd -n 3,4,7/8/ -c 2 -s 4 -g vsdvg -v TEMP

� ���� ��� �� �� ���� �� ����.

v � 3�� vsdvgn3 �� �� �� ��� �� ��� lvTEMP1n3 ��� ���� ��� TEMP1n3

v � 4�� vsdvgn4 �� �� �� ��� �� ��� lvTEMP2n4 ��� ���� ��� TEMP2n4

v � 7�� vsdvgn7b8 �� �� �� ��� �� ��� lvTEMP3n7 ��� ���� ��� �

8�� ���� TEMP3n7

v � 3�� vsdvgn3 �� �� �� ��� �� ��� lvTEMP4n3 ��� ���� ��� TEMP4n3

v � 4�� vsdvgn4 �� �� �� ��� �� ��� lvTEMP5n4 ��� ���� ��� TEMP5n4

v � 7�� vsdvgn7b8 �� �� �� ��� �� ��� lvTEMP6n7 ��� ���� ��� �

8�� ���� TEMP6n7

� 3� ��� ��� ��� �� ��� ��� ��� �� �� ���� ��� 3�� �� �

� ���� ���� �� ������.

createvsd -n 3,4/:hdisk1,hdisk2+hdisk3/,7/8/ -s 4 -g datavg -v USER

� ���� ��� �� �� ���� �� ����.

�� ���(���) 527

Page 544: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v � 3�� datavgn3 �� �� �� ��� �� ��� ��� lvUSER1n3 ��� ���� ���

USER1n3

v � 4�� datavgn4 �� �� �� ��� �� ��� ��� lvUSER2n4 ��� ���� ���

USER2n4. datavgn4� hdisk1, hdisk2 � hdisk3�� ���, lvUSER2n4� hdisk1 � hdisk2� �

���.

v � 8�� datavgn7b8 �� �� �� ��� �� ��� ��� lvUSER3n7 ��� ���� ��

� � 8�� ���� USER3n7

v ��� createvsd ��� ���� �� � 3 � 7� ��� �� ��� ���, �� �� ����

4MB ��� ��� datavgn3 � datavgn7b8 �� ��� ����.

��

/opt/rsct/vsd/bin/createvsd

�� ��

��: defvsd, vsdvg

crfs ��

��

�� ���� �����.

��

crfs -v VfsType { -g VolumeGroup | -d Device } [ -l LogPartitions ] -m MountPoint [ -n NodeName

] [ -u MountGroup ] [ -A { yes | no } ] [ -p {ro | rw } ] [ -a Attribute= Value ... ] [ -t {yes | no

} ]

��

crfs ��� ��� �� �� �� �� � ��� ��� �� ���� ����. -d� ��� �

� ��� ��� ��� ���� �� �, �� ���� �� � ��� ��� ����. �� ����

��� /etc/filesystems ��� ����.

�:

1. �� ���� �� �� setgid(�� �� ID)� ����. ��� � � �� �� ��� ����

�. �� �� ����� �� �� ����� ��� � � �� �� ��� ����.

2. ����� ��� ���� �� ���� ��� �� �� ��� mklv ��� ������ ��

� �� �� ���� ������.

528 �� ���, � 1 �

Page 545: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �� ��� ���(wsm)�� �� ��� ������ ��� �� ��� �� � � �

��. ��, SMIT(��� �� ����� ��) smit crfs �� ��� ��� � ��� �� ��

���.

���

-a Attribute=Value �� �� ��� �� �/� �� �����. �/� �� �� �� ����� -a

Attribute=Value ���� � � ������(�� ��).

� �/� �� �� �� ���(JFS)� ��� ����.

-a ag={ 8 | 16 | 32 | 64 }

�� ��� � �� � � �����. ��� BSD ��� ���

��� i � � ��� �� ����. � � ag �� 8���.

-a bf={ true | false }

�� ��� �� �� �� ���� �����. ��� ��� ″�� ��� �

� �� �� ���� ��″� ������. �� ��� �� �� �� ���

� ���� ���� � ��� false� ������. ��� � ����. bf=true

� ����� �� ��� 4096�� compress=no � ���.

-a compress={ no | LZ }

��� ��� �����. ���� ���� ���� ��, � ��� no� ��

����. ���� ���� ���� ��, � ��� no� ������. � �

�� �� no���.

-a frag={ 512 | 1024 | 2048 | 4096 }

JFS �� ��� �� � � �����. �� ��� ��� ��

� � � �� �� ��� ���� � ���. � � �� ��

� 4096 �����.

-a logname=LVName

�� ��� �� ��� �����. ��� ��� ��� � JFS� �� �� �

�� ����. LVName ��� ��� � �� ���. � � ��� �� �

� ��� � �� �� ��� ���� ����.

-a nbpi={ 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768 | 65536 | 131072 }

i � �� �(nbpi)� �����. nbpi� �� ����� i �� ��

�� ���. nbpi �� �� ����� i � �� ��#���. � � nbpi

�� 4096 �����.

-a size=Value

�� �� ���� ��� �����. ��� 512 �� �, MB �� GB �

� �� � ���. Value� M ��� � ��, MB� �����.

Value� G ��� � ��, GB� �����. ���� ��� ��� ���

��� ��� �� �� ��, ��� ��� � � �� ��

��� ��!���. � �� JFS �� ���� � � �����. ���

��� ″JFS �� ��� ��″� ������.

�� ���(���) 529

Page 546: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

JFS �� ���� � ��� �� ��� nbpi �� �����. � �� �� �

� �� ��� ����.

nbpi Fragment size in bytes Maximum size in Maximum size in Maximum size in512-byte blocks Megabytes Gigabytes

512 512, 1024, 2048, 4096 16777216 8192 81024 512, 1024, 2048, 4096 33554432 16384 162048 512, 1024, 2048, 4096 67108864 32768 324096 512, 1024, 2048, 4096 134217728 65536 648192 512, 1024, 2048, 4096 268435456 131072 12816384 512 268435456 262144 25616384 1024, 2048, 4096 536870912 524288 51232768 512 268435456 1048576 102432768 1024 536870912 2097152 204832768 2048, 4096 1073741824 4194204 409665536, 131072 512 268435456 8388608 819265536, 131072 1024 536870912 16777216 1638465536, 131072 2048 1073741824 33554432 3276865536, 131072 4096 2147483648 67108804 65536

���� � �� ��� ��� ��� 512 - 128K� NBPI �� �� � ���.�� ���� ���� �� ��� � ��� �� ��� ���� �� ��� ���

�����.

�:

1. ag, bf, compress, frag � nbpi �� �� ��� �� ���� �� ���� �

� ��� � � ����. size �� � �� ��� ��� ����� ��

���� �� ��� �� ���� �� � ����.

2. �� �� ���(/)� �� � ����.

3. �� nbpi �� �� ��� �� ������. ��� ��� ″JFS �� ���

��″� ������.� �/� �� � �� �� ���(JFS2)� �����.

-a agblksize={ 512 | 1024 | 2048 | 4096 }

JFS2 � ��� �� � � �����. �� ��� �� ��� �

� � ��� ���� � ���. � � � ��� 4096 �����.

-a logname=LVName

�� ��� �� ��� �����. ��� ��� ��� �� JFS2� �� �

����. LVName� ��� ��� ��� � ���� �� ���. � � �

�� �� �� ��� � �� �� ��� ���� ����. INLINE ��

� ���� JFS2 �� ���� ��� ��� ��� ��� �� � ���.

logsize� ���� �� �� INLINE ��� � � �� ��� �� ��� .4%

� �����.

-a logsize=Value

INLINE ��� ��� � �� � � �����. INLINE ��� ����

�� ���� �����. �� ��� �� ��� ��� 10% ��� �� �

����.

-a dense

��� �� ��� ��� �����. JFS2�� � �� �� ��� ��

�� 0�� �#��.

530 �� ���, � 1 �

Page 547: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-a size=Value

JFS2 ��� 512 �� ��� �����. ���� ��� ��� ��� ��

� ��� �� �� ��, ��� ��� � � �� �� ��

� ��!���. -d ��� ���� �� �� � �� JFS2 �� ����

� � �����. -d ��� ��� ��, �� ���� ��� ��� ��

���. �� ���� � �� ��� � ��� �� ��� ���� �� �

�� ��� �����.�: agblksize � dense �� �� ��� �� ���� �� ���� �� ���

� � ����. size �� � �� ��� ��� ����� �� ���� ��

��� �� ���� �� � ����.-A ��� ��� � �� ���� ����� �� �����.

yes �� ���� ��� ��� � ���� �����.

no �� ���� ��� ��� � ���� ����.-d Device �� ���� �� �� �� ��� ��� �� ��� �����. ��� � ���

� ��� ��� �� ���� ��� � �����.-g VolumeGroup �� ���� � �� �� ��� �����. �� ��� �� ��� ��� ��(PV)

� �����.-l LogPartitions ��� ��(LP)� ��� ���� �� ��� ��� ��� �����. � ��� ��

�� ��� �� JFS � JFS2 �� ����� �����.-m MountPoint �� ���� �� ���� ����� �� � � �����.

�: �� �� ��� ��� �� /etc/filesystems ��� ��� �� �� �� ����

����.-nNodeName �� ���� ���� �� ��� ��� �����. � ��� ���� �� ���

(NFS)� �� �� �� �� ���� ���� �����.-p �� ���� �� �� ��� �����.

ro �� �� �� ��

rw ��-�� �� ��

-t �� ���� ���� ������ �� ����� �� �����.

yes �� ����� ����� �� �����.

no �� ����� ����� �� ������(� � �).-u MountGroup �� ��� �����.-v VfsType �� �� ��� ��� �����.

��

��� ��: �� ���� � ��� �� � ���.

��

1. rootvg �� ���� � �� �� �� �� � � �� �� nbpi� JFS� ���� �

� �� ������.

crfs -v jfs -g rootvg -m /test -a \ size=32768 -a frag=512 -a nbpi=1024

� ��� rootvg �� ���� 512 ��� �� ��, 1024� i � �� �(nbpi) ��

� � 16MB� �� ��(512 * 32768)� /test �� ���� ����.

�� ���(���) 531

Page 548: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2. rootvg �� ���� � �� �� �� �� � � �� �� nbpi� JFS� ���� �

� �� ������.

crfs -v jfs -g rootvg -m /test -a size=16M -a frag=512 -a nbpi=1024

� ��� rootvg �� ���� 512 ��� �� ��, 1024� i � �� �(nbpi) ��

� � 16MB� �� ��� /test �� ���� ����.

��

/etc/filesystems ��� �� ���� ���� � �� �����.

�� ��

chfs ��, mkfs ��, mklv ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� ��, ��, �� � ����� �� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� System Management

Interface Tool��� SMIT ��, �� � � ���� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Understanding

Journaled File System Size Limitations.

cron ��

��

��� ���� �����.

��

cron

��

cron �� ��� �� � � � ��� �����. � ��� ��� cron ��� �����.

v crontab �� ���

v at �� ���

v batch �� ���

v sync ��� ���

532 �� ���, � 1 �

Page 549: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v ksh �� ���

v csh �� ���

� ���� ���� ��� /var/adm/cron/queuedefs ��� �� �����.

����� ��� ��� crontab ��� � ���� �� �� � ���. crontab ���� crontab

��� �� � ���. at ��� ��� � �� �� ��� ������. cron �� ���

���� � �� ���� ���.

cron �� cron �� ��� � crontab �� � at �� ��� � �� ����. crontab ��

� ��� crontab ��� ��� ���� cron ��� ��� �� ��� ����. ���

� �� �� �� ��� �� ����� ��� ��� ���� ��� ��� ���.

chtz ��, � �� ��� �� ������� �� SMIT� �� TZ �� �� � �, cron �

� ����� ���. �� ����� cron ��� �� TZ �� �� �� � � �� ��

�� �� �� � ���.

�:

v �� � �� 1:00�� �� 2:00 ��� �� ����� �����, ���� � �� �� �

� � �� �� � �� �� �� �� � � �����.

v �� � �� 2:01�� �� 2:59 ��� �� ����� ����� ���� � �� �� �

�� �� �� � �� �� �� �� ���� ����. � �� ���� � �

���� �� ���� ����� �� ���� ��� ��� � ���. cron ��

�� ��� ����. ��� TZ �� �� �� ���� cron �� ���� �� ��

�� �� TZ ���� ����� �� � �� �����.

cron �� /var/adm/cron/log ��� �� ��� ����.

��

�� ���: �� ������ ���� ���� � �� ��� ��, cron ��� �� ��� �

�� �(���)� ����.

��� ��

CRON_Start �� ��, �� at �� cron ���� ������ � � �� ���� � �

�����.CRON_Finish ���� ��, �� ��� ID � ��� ��� � � �����.

�� ���� ��� ���, �� ��� ��� ��� ��� ��� �� ��� ��� AIX 5L �

� 5.2 � ��� ″� ��″� ������.

�� ���(���) 533

Page 550: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/var/adm/cron/

FIFO

crontab �� at ��� ��� � �� �� � cron �� ��� ���� ��� ��� ��.

/var/adm/cron � cron � ����� �����./var/adm/cron/

log

���, pid, �� � , �� � cron �� � � � �� ��� ���� �� cron �� �� ����

��� �����./var/adm/cron

/queuedefscron � ��� ��� �����.

/var/spool/cron �� �� �����./usr cron ��� ����� �� � � ���� �����./usr/bin cron ��� ����� �� � � ���� �����./usr/lib cron ��� ����� �� � � ���� �����./etc cron ��� ����� �� � � ���� �����./tmp cron ��� ����� �� � � ���� �����.

�� ��

at ��, auditpr ��, batch ��, crontab ��, csh ��, ksh ��, rc ��.

sync ���.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

� �� ��� ��� ��� ���� AIX 5L �� 5.2 � �� ��� ��� �� ��� � 2 �: �

� � ��� ����� ������.

cronadm ��

��

crontab �� at �� ����� �����.

��

crontab �� ���� ���� ��

cronadm cron { { -l | -v } [ UserName ] ... | -r UserName }

at �� ���� ���� ��

cronadm at {-l [ UserName ] | -r { UserName | JobName } }

��

cronadm ��� �� ���� �� ��� crontab �� at �� ����� ���� � �����.

534 �� ���, � 1 �

Page 551: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cron �� UserName ���� �� ���� �����. �� ��� UserNames� �� � ��

�. �� cron �� ����� ���� ���� ����. at �� UserName�� ���� UserName

��� �� JobName ���� �� � ���.

crontab � ��� ��� crontab � � /var/spool/cron/crontabs ����� �� ��� ��� �

��� �����. at �� ��� at �� �� �� �� ���� at �� ��� ���� �

����.

���

cronadm cron

-l �� crontab ��� �����. UserName ���� ���� ��� crontab ��� �����.-r crontab ��� �����. ��� crontab ��� ����� UserName ���� ���� ���.-v �� crontab �� � � �����. UserName ���� ����, ��� crontab ���� �����.

cronadm at

-l UserName ���� ��� ���� �� at �� �����.-r UserName �� JobName ���� ��� at �� �����.

��

��� ��: �� ��� �� ����� �����.

�� ���: �� ������ ���� ����� �� ��� ��, cronadm ��� �� ��� �

�� �(���)� ����.

��� ��

AT_JobRemove crontab �� at �� �� �� ��� �����.

�� ���� ��� ���, �� ��� ��� ��� ��� ��� �� ��� ��� AIX 5L �

� 5.2 � ��� ″� ��″� ������.

��

1. �� crontab �� �����, �� �� ������.

cronadm cron -l

2. bob ���� �� �� ����� �� at �� ����� �� �� ������.

cronadm at -l bob

��

/usr/bin/cronadm cronadm ��� �����.

�� ���(���) 535

Page 552: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

at ��, auditpr ��, crontab ��.

cron �.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

crontab ��

��

cron �� ��, ��, �� �� �����.

��

crontab [ -e [UserName] | -l [UserName] | -r [UserName] | -v [UserName] | File ]

��

crontab ��� cron �� ��, ��, �� �� �����. cron �� cron �� ����� ���

��� ���� �����. cron �� �����, crontab ��� -e ��� �� ������.

crontab ��� crontab ��� � � � �� ��� �����. � ��� cron �� ��

��� ����. ��� cron �� "� ����� ���. �� �� ���� crontab �� �

� ��� ������.

��� �� ��� ��� crontab ��� /var/spool/cron/crontabs ����� ��� ��� � �

� ��� ��� � �� � � ��� ����. ��� ��� �� ��� crontabs ����� �

���� ��, crontab ��� �� �� � !����.

�� File ���� ��� crontab ��� � � ���. ��� �� ��, � ��� cron �

� ���� ����� ���. ��� ��� crontab ���� ���� �����. EDITOR ��

�� � ��, ��� ���� ���� �����. ��� ��� crontab ���� vi ���� ���

��.

crontab ��� ��� ����� -l ��� �� crontab ��� ������. �� ��� �����

-r ��� ������.

crontab ��� ��� �� �� ���� �� UserName ���� ��� ��� ���� ��

cron �� � � ����� ����� ����� �� � ���. UserName� ���� ��� �

� ��� ��� ���� ����.

�� UserName ���� ���� �� �� �� ��� � �� ���� crontab ��� ��

� ����.

536 �� ���, � 1 �

Page 553: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�� ��� �� crontab ��� ���� -e, -l, -r � -v �� �� UserName� ��� ��� ��

�� crontab ��� ��, ��, �� �� �� � ���.

cron �

cron �� crontab �� ��� �� ��� �����. cron �� ��� �� �� �� ��� ��

��� ��� cron �� �� �� �� �� ��� �� �����. crontab ���� cron ��

��� ���� �� �� cron �� �� ���� ����.

cron �� cron �� ��� ��� crontab ��� ����. crontab ��� ��� crontab

��� ��� ���� cron ��� ��� �� ��� ����. ���� �� �� ��

��� �� ����� ��� ��� ���� ��� ��� ���.

crontab �� ��� �� ��

/var/adm/cron/cron.allow � /var/adm/cron/cron.deny ���� crontab ��� �� � � ���

� �����. �� ���� � ��� �, �� �� � � ���. � ��� ��� � �� �

�� � � � ��� ��� �����. ���� ��� ID� � ��� ��� ��� ���� ��,

crontab ��� ���� ��� �� �� ��� ��� ���� /etc/passwd ��� � � �� ��

� ��� �����. ��, ���� cron �� ����� ���, /etc/security/user ��� � �

� chuser ��� ��� TRUE� ����� ���.

�� cron.allow ��� � ����.

rootnickdeesarah

cron.allow ��� �� ��� ��� � ��� ���� ���� crontab ��� �� � ���.

��� �� �� ���� �� ��� cron.allow ��� ���� ���. ��� ���� ���� �

�� ��� cron.deny ��� ��� � ���� crontab ��� �� � �� � ���.

cron.deny ���� ���� ��, ��� ���� �� �� ���� crontab ��� �� � ��

�.

� � ��� ��� ��, crontab ��� �� � ����.

v cron.allow �� � cron.deny ��� ����(�� ���� ��).

v cron.allow ��� �� � ��� ���� ��� ��� ���� � ����.

v cron.deny ��� �� � ��� ���� ��� ��� ���� ���.

cron.allow� cron.deny ��� �� ���� �� ��, �� ��� ��� �� ���� crontab ��

�� �� �� � ���.

�� ���(���) 537

Page 554: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

crontab �� � ��

crontab ���� cron �� �� ��� ���. ��� � �� ��� ����. crontab

�� ���� �� �� �� �� ��� �� � �� �� ���.

minute hour day_of_month month weekday command

� �� � �� ����.

minute() 0 - 59hour(�) 0 - 23day_of_month(�) 1 - 31month(�) 1 - 12weekday(��) ����� ������ ���� 0 - 6command(��) � ��

�� �� �� �� ���� ���. command �� ��� �� �� �� � ���.

v ��� � � ��. 5�� ��� �����, � �� 5� ������.

v � �� ��� �� � � ��� ���� � � ���� � ��. ����� ����� cron

�� �����, weekday �� 2-5� ������.

v ��� �� �� ���. 1�� � � ��� � ��� �����, � �� 1,31� �����.

v *(��), �� ��� �� �. � � �� �� �����, hour(�) �� ��� ������.

�: ���(% ��) �� �� �� ��� ��� ��� �����. �� ��� � �(��

��)� �� ���� � ���. � � ��� �� ��, �� ������. �� � ��

�� �����.

0 0 1,15 * 1 command

� ��� � ��� �� ��� �� 1�� 15�� command� �����. � ���� ��

� ����� � ��� *� ����� ���.

�� ��

cron �� �� �� � � � �� �� ��� ��� �����. � �� �� %(���

��)� ����, cron �� � �� �� �� �� �� ���� ����, ��� ��(\%) �� �

� � �� �� �� �� �� ��� �� ���� ����. �� �� � �� ��� ��� �� �

�(#)� �� �����. ��� �� ��� ���(’\’)� � ��, ��� �� �� ����

�� ���.

�: �� �� �� � �� ��� �����. �� � �� ��� �� ���� �� ���� ��

�.

cron �� ���� HOME ������ ���� �����. ����� �� ��� ����� ��

���, .profile ��� ��� ����� �� ���� .profile ��� ����� ��� ���.

538 �� ���, � 1 �

Page 555: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cron �� HOME, LOGNAME, SHELL(=/usr/bin/sh) � PATH(=/usr/bin)� ����� �� ��

�� � � ��� �����.

���

-e UserName ���� crontab �� ��� ����� ��� UserName� �� crontab ��� �� �� � ��� ��

�����. ��� ���� ��� ���� crontab ��� �� crontab ����� �����.-l UserName ���� crontab ��� �����.-r UserName crontab ������ ���� crontab ��� �����.- v

UserName

���� cron �� � � �����.

��

�� ���: �� ������ ���� ����� �� ��� ��, crontab ��� ��� �� �

�� � �� �(���)� ����.

��� ��

CRON_JobRemove cron �� ��� ���� � ��� �����.CRON_JobAdd cron� ��� ���� � ��� �����.

�� ���� ��� �� ����� �� � �� ��� ��� ��� ����� ��� ���

� AIX 5L �� 5.2 � ��� � ��� ������.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

1. /var/admn/cron/crontabs ����� mycronjobs ��� ����� �� �� ������.

crontab mycronjobs

2. � � �� ��� � � �����, �� �� ������.

0 * * * * echo The hour is `date` .>/dev/console

3. �� ���, ��� � ��� �� 6� 30 � calendar ��� �����, �� �� ������.

30 6 * * 1,3,5 /usr/bin/calendar

4. �� �� �� 6� 30 � calendar ��� �����, �� �� ������.

30 6 * * * /usr/bin/calendar

5. 8� � �� ��� maintenance�� ����� �����, �� �� ������.

0 0 * 8 * /u/harry/bin/maintenance

�� ���(���) 539

Page 556: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

6. ��� �� ��� �� ��� ����� �� �� ������.

0 16 * 12 5 /usr/sbin/wall%HAPPY HOLIDAY!%Remember toturn in your time card.

wall ��� �� ��� ���� %(��� ��) �� ��� �� ����.

HAPPY HOLIDAY!

Remember to turn in your time card.

��

/var/adm/cron/FIFO crontab �� at ���� �� �� �� � cron ��� ��

� ���� �� � � ��./var/spool/cron/crontabs crontab �� �� �����./var/adm/cron/cron.allow crontab ��� �� ���� ��� ��� ���� �����./var/adm/cron/cron.deny crontab ��� �� ���� ��� ��� ���� �����.

�� ��

auditpr ��, sh ��, wall ��.

cron �.

AIX 5L �� 5.2 � ��� �� ����� �� � �� ���� �� ��� �����.

crvfs ��

��

/etc/vfs ��� ��� ����.

��

crvfs VFSEntry

��

crvfs ��� VFSEntry ��� � �� ��� /etc/vfs �� ��� �����. VFSEntry ��

�� � �� ����.

VFSName:VFSNumber:MountHelper:FileSystemHelper.

VFSEntry ���� � �� �� ����� ��� ��� �� ��, MountHelper �

FileSystemHelper �� �� ��� ″none″� �� � ���. �� ��� ����� ���� ��

� VFSName � VFSNumber� � ���� �� ��, � ��� /etc/vfs ��� ����.

540 �� ���, � 1 �

Page 557: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����

VFSEntry � ��� ���� �����.

VFSName:VFSNumber:MountHelper:FileSystemHelper

VFSName

�� �� ��� ��� ��� �����.

VFSNumber

��� �� ���� �� �� �� ��� ��� �� ��� �����.

MountHelper

� ��� �� ���� ���� � ���� ��� ��� �����.

FileSystemHelper

�� ��� �� ���� ��� ���� � �� �� ��� �� ��� ���� ���

��� �����.

��

newvfs�� �� vfs ��� ���� �� �� ������.

crvfs "newvfs:4:none:/etc/helpers/newvfshelper"

� ��� newvfs ��� ����.

��

/etc/vfs �� �� ��� ��� ��� ���.

�� ��

chvfs ��, lsvfs ��, mount ��, rmvfs ��.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� File Systems��

� �� ��� ��, ��, �� � ����� �� �����.

AIX 5L Version 5.2 System Management Concepts: Operating System and Devices� Mounting Overview

��� �� �� � ����, �� � � �� ��� �� �����.

csh ��

��

C �� �����.

�� ���(���) 541

Page 558: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

csh [ -v | -V ] [ -x | -X ] [ -e ] [ -f ] [ -i ] [ -n ] [ -c String | -s | -t ] [ -b ]

[ File [ Parameter ] ]

��

C �� ��� �� ����� C ��� ��� � � ��� ���� �� ��� �����.

�� �� ����� ����� �� ����� ��� �����. csh ��� C �� �����.

csh ��� ����, ��� ���� ����� ��� .cshrc ��(��� ��� ��� ����

� ���)� ���� .cshrc ����� ��� ��� �����. csh ��� ��� �� �� ��,

� ��� .cshrc � .login ��� ��� �����.

�� �� ��� ��� � -i, -c, -s � -t ��� ���� �� File [Parameter]� ��� �� ��

��� ��� ���� ��� File [Parameter]� ��� ���� ��� �����. ��� ����

��� �� ��� �� ���. �� �� setuid � setgid ���� �����.

�: csh ��� -c �� -s ��� �� �� �� ���� ��� ��� ���.

���� ��� ��� �� ��� ��� �� $0(�� ��, ��)� ��� � � ���� �� �

�� �����. � � csh�� ����� �����. ��� ���� argv �� ������.

�:

1. C �� � �� �� �� source Pathname� ��� .cshrc� �� �� � ���. �

� Pathname ���� .cshrc ��� �����.

2. �� ���� �� �� � ��� �, .cshrc ��� �� ����� ��� $prompt �

� �� ����� �� � ��� ���� �� ��� ����� ���. ��� ���, �

� ���� �� ���� �� ��� ���� exec ��� �� ���, ��� �� �� �

����. �� �, exec csh rcp -tFilename� .cshrc ��� ���� ��� ��� ���

���� �����. if �� ��� $prompt �� � � ���.

���

�� � �� ��� -(�� ��)�� � �� ��� ����. C � ��� �� �� �����.

-b �� ��� ��� �� ��� , �� �� � ��� ��� ���� ����� ���. � ��� ��� � �

���� ��� �� � ���. �� � ��� ��� �� � �� ��� � �� ID� � ����� ��

� ����.-c �� ���� �� � �� ����� ��� ����. ��� ��� argv �� �����.-e ��� ��� ������ ���� ��� �� � � � �� �� ����.-f ����� .cshrc ���� ��� ����� ���� �� C �� �����.-i ��� ���������� �� �� ����, � � ��(��� �)� ���� ��� �����. ��� �

�� ������� ���� � ��, �� � �� �� ���� ���.-n ��� ����� ����� ����. � ��� � ���� ��� ��� � ��� ���.-s �� ���� �� ��� ����.

542 �� ���, � 1 �

Page 559: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-t ��� �� �� �� �����. \(���)� ��� �� �� �� � � �� ��� ������ � ��

� �� � ���.-V .cshrc ��� ���� �� verbose � �� �����.-v �� �� � �� ��� ����� verbose � �� �����.-X .cshrc ��� ���� �� echo � �� �����.-x �� �� �� ��� ���� � ��� ��� ����� echo � �� �����.

��

$HOME/.cshrc �� �� �� �� �� �����. .cshrc ��� ��� �����.$HOME/.login ���� ��� �� .cshrc �� �� �� �����.$HOME/.logout ���� ��� �� �� �����./usr/bin/sh � � ��� ��� �����./tmp/sh* <<� �� ��� �����./etc/passwd ~File ���� �� ����� ��� �����.

�� ��

bsh ��, chuser ��, ksh ��, sh ��.

environment ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� C �.

csplit ��

��

��(context)�� ��� ���.

��

csplit [ -f Prefix ] [ -k ] [ -n Number ] [ -s ] File Argument ...

��

csplit ��� ��� ��� ���� ��� ���� ���. ���� �� �� � �� �� �

�� �� �� ����� ���.

Argument ���� ��� �( ��� 99)� �� csplit ��� xx00 . . . xx99 ��� ����

�����. � ��, Argument ���� � � ��� �����. �� �� �� � �� � �

�� �� � �����.

v xx00 ���� � ��� ���� � �� Argument ���� ��� � ����(� � ��� �

�)� �� ���.

�� ���(���) 543

Page 560: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v �� xx01� � �� Argument ���� ��� �� ��� � �� Argument ���� ��� �

�� � ��(��� ��� �� ��)� �� �����. ���� ��� � ��� �� ���

��� �����.

v xxnn ��(����� �� ��)�� ��� Argument ���� ��� ���� �� ���� ��

���.

�� �, �� ��� 108�� �� �� ���� � ��� ����,

csplit orginal.txt 11 72 98

csplit ��� � �� ��� ����. xx00 ���� 1-10 �� �, xx01 ���� 11-71 �� �,

xx02 ���� 72-97 �� �, xx03 ���� 98-108 �� ���.

Argument ���� �� �� �� � �� ���� �� �� ���.

/Pattern/ �� ��� ��� ��� ���� � ����� ���� ���� ��� ����. ��� ���� �

� �� �� ���.%Pattern% ��� ��� ���� �� �� ��� �����, ���� � ��� ���� ����.+Number ��� ��� ��� ����� ��� � ��� ����� �����. �� �, /Page/+5� Page�

��� � 5 ��� ��� �����.-Number ��� ��� ���� ����� ��� � ��� �� �����. �� �, /Page/-5� Page� ��

� � 5 ��� �� �����.{Number} � ��� ��� ��� �����. � ��� ��� ���� � �� �� � � ���. �� ��

�� ��, csplit ��� ��� ��� ��� ������. � �� �� ��, csplit ��� � ��� �

� ��� � ���� � ��� ��� � �� �� ��� ���.

���� �� �� ��� ��� ���� �� ��� �� ��� ����. ��� �� � ��

��� �� � ����. [a-z]� �� �����, -(�� ��)� �� �� ��� ��� � �� ��

� �� �� ����. �� ��� �� � � �� �� ��� �� � ���.

���

-f Prefix �� �� ���� �� ���� �����. � �� �� � � �� xx���.-k ��� ��� �� �� ���� �� ��� ���.-n Number �� �� ��� ���� 10� ���� ����. � �� � ��� 10�� �� xx00. . . xx99��

�. �� �, -n 4 ��� ����, � ��� xx0000 . . . xx0099���.-s �� ��� ��� �����.

�� ��

� ��� �� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

544 �� ���, � 1 �

Page 561: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. book� ��� �� �� ��� ��� �� �� ������.

csplit book "/^ Chapter *[k.0-9]k./" {9}

� ��� xx00�� xx09�� 10�� ��� ����. xx00 ���� � ��� �� �� ���

� ���. xx01 - ���� xx09 �� �� ���. �� �� � ���� ���� ���

�����.

2. book�� �� ��� chap ���� ����� �� �� ������.

csplit -f chap book ″/^ Chapter *[k.0-9]k./″ {9}

� ��� book� chap00 - chap09 ��� ���.

��

/usr/bin/csplit csplit ��� ���.

�� ��

ed ��, regcmp ��, split ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ����� �� � ��� �� �

��� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� � ����� �, � ��� � � ��

� ���� ��� �� �� �� ��� �� �����.

ct ��

��

��� ��� ����� ��� ��� �����.

��

ct [ -h ] [ -sSpeed ] [ -v ] [ -wNumber ] [ -xNumber ] TelephoneNumber ...

��

ct ��� 3161� �� �� ���� ���� ��� �� � ��� ��� �� �� �� ��

����� � � � �� �� � ����(BNU) �����. �� �� ��� ���� �

������ ���� � � ���.

�� ���(���) 545

Page 562: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ���� ���� �� ��� ��� ��� ���� � ����� ct ��� �����. ��

� �� ct ���� �� ��� ���� ��� ��� �����. �� ��� ���� �

�� ��� ��� ���� �� �� %��. � � �� ��� ���� �� ���� ���

�� ������ �� �� � ���.

ct ��� � ���� �����.

v ��� �� �� ���� ���� ��� �� ��� �� ���� ��� �� �� ���

� ������� ����� ���� ��� � ���. �� ���� �� ��� ���� �

��, �� ���� �� ���� ����� � ��� ����. ���, ct ��� ���� �� ��

�� �� ���� �� ��� � ���.

v �� ��� �� ��� �� �� ������� �� ��� �����. �� ���� ��� ���

�� ��� �� ��� ���� �� ��� � � ��, � ���� �� ��� �� ���

�� � ���. �� ���� ��� �� ���� ����, �����, �� ��� �����

ct ��� ����� -h ��� ���� ����. �� ���� �� ��� �� �� ���

� ��� �� ��� �� � � �� ��� ��� ��� �� �����.

�� �� �� �� �� ct ��� ��� �� ��� ���� �� ���� 1 ��� � �

� ����. ��� no� ��, ct ��� ��� ���. �� ���� �� �� �� ���� ��

� ��, ct ��� �� � � � � ����� ��� �����. ct ���� ��� ��

��� �� ��� � � �� ��� ��� ����� �� ������ �� � ���.

ct ��� ���� ��, �� ���� �� �� ��� �� ���� ���� �� ����� ct �

�� �� �� �����. ���, � ��� ��� ����� ����� ���� ��, ��� ��

�� ��� �� ���� ��� �� � � �� ��� ��� ��� ���� ct ��� ���� �

��� BNU(�� � ����)� ���� �� �� ����.

�:

1. ct ��� ���� �� �� ��� ��� �� � � ��� ���� �� ����

�.

2. ct ��� ��� ����� �� ��� �� �� ��� ��� ��� �� �� �� � �

� � ���. ��� ���, �� ���� ����� ����. �� � �� � ��� ��

��� ��� pshare� pdelay ��� ������. ���, ct ��� �� �� �� � ��

�� ���� ���� ���, ��� ���� ���� ��� ��� � ���(UUCP)

��� ��� ����� ���.

ct ��� BNU cu ���� #� � ����. �� �, ct ��� �� �� ���� ���� �

��� �� ����� ��� �� � ����. ���, ct ��� cu ���� �� � �� � �

�� ���.

v ���� ��� ���� ��� � � �� ��� ��� ����� ��� �� ��� ct ���

� � ���.

546 �� ���, � 1 �

Page 563: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

v � �� � ��� ����� ��� ��� � � ���� �� ��� ��� �� ����

�� ct ��� �� � ���.

�� ���� ���� ��� �� �� ��� �� ���� ��� ��� �� ct ��� � ��

�� �� �� �� �� ��� �� �� ��� BNU Devices ��(� ��, /etc/uucp/Devices �

�)� ��� �� �����. �� �� �� �� ��, ct ��� ���� ���� ��, �� �

�, # ���� ���� ����. ct ��� ��� � � � ��� � ��� ��� ��

�� %��. �� ���� ��� �� � -wNumber ��� � � ��� � ��� ���

� ���.

���� ���� �, ct ��� ��� ��� �� �� ���� ���� �����. ����

� ��� ��� ����� �� � � ���.

���

-h ct ��� � ��� ���� � �� �� ���� ��� ���.-sSpeed ���� ���� ��� �����. � �� 1200 ��(baud)���.-v ct ��� �� �� ���� �� �� ��� ���� ���.-wNumber ct ��� �� ���� � � ( )� �����. ��� ����� ��� � � ��

��� ��� 1 ��� �� ��� ������.-xNumber ���� �����. ���� �� ����� �� �� ��� ��� ��� �� ���

��� �����. Number �� ��� �� ���� 0 -9 ��� �� �����. �

� ��� �� 9���.TelephoneNumber �� ��� ���� ��� ����� �����. TelephoneNumber �� 0�� 9�

�� ��, ��� ���� -(�� ��), �� ��� �� ���� =(��), *(��) � #(�

��)� �� � ���. ����� � 21�� �� � ���.

��

1. �� ����� �� ��� ��� ��� ������, �� �� ������.

ct 41589

4-1589�� �� ����� ������. -(���)� �� � ���. ���� �� �� ��

���.

Allocated dialer at 1200 baudConfirm hang_up? (y to hang_up)

2. �� ����� �� ��� ��� ��� ������, �� �� ������.

ct -w3 9=5553017

ct ��� 555-3017� �� ����� �����. �� ��� ��� ��� 9� ��� ���. ct

��� �� ���� � � ( )�� 3 ��� �����.

3. ��� ����� �� ��� ��� ��� ������, �� �� ������.

ct -w5 9=12345557003

�� ���(���) 547

Page 564: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� 1-234-555-7003� ��� ����� ��� &��. �� ��� ��� ��� 9� ��

� ���. ct ��� �� ���� � � ( )�� 5 ��� �����.

��

/usr/bin/ct ct ��� �����./etc/uucp/Devices �� �� ��� �� ��� �����./etc/uucp/Dialcodes ���� � ��� ���./etc/uucp/Dialers �� ��� ���� �����./etc/uucp/Systems ��� ��� �� ���� �����./etc/uucp/Sysfiles Systems, Devices � Dialers ��� �� �� ��� �����.

�� ��

cu ��, pdelay ��, pshare ��, tip ��.

ctags ��

��

�� ���� ����� � � ��� � ��� ����.

��

ctags [ -u | -x ] [ -B | -F ] [ -a ] [ -m ] [ -o ] [ -t ] [ -v ] [ -w ] [ -f TagsFile ] File...

��

ctags ��� ��� C, Pascal, FORTRAN, yacc, lex � LISP �� ���� ex� vi ���� �� �

� � ��� ����. � ��� �� �� ��� ��� �� �� ����(�: �� � �

� ��)� ���� ���� ���. ���� ���� ��, ��� �� � ���� �� ��� ��

� � �� ���� � ��� ��� ���. ���� ��� ���� ��� �� � �

� �� ���. � ��, ex � vi� ���� ��� ���� ��� � � � ���.

� �� �� ��� ctags ��� �� �����.

.c C �� �� ��� ���� C � � ��� ��� �����.

.h C �� �� ��� ���� C � � ��� ��� �����.

.f FORTRAN �� �� ��� �����.

.l � �� ��� ��� [(��� ��), ((�� ��) �� ;(���)� �� LISP �� �� �� �����. � ���

� lex-�� �� ��� �����.

�� � ��� ��� �� ��� � Pascal �� FORTRAN � ��� ����� ���

� �����. ���� �� ��, ��� C �� �� ��� �� �����. .( ) ��� �� �

�� C �� �� ��� �����.

548 �� ���, � 1 �

Page 565: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� ��� C ����� �����. � ��� �� ��� M ���� ����, � �� .c

� ��� � � �� �� ���� ��� ����. ��� � ��� ���� ������ ctags

� ��� ���� ���.

�:

1. �� function, subroutine� �� �� ��, FORTRAN � Pascal �� � procedure�

���� � ��� �����. ctags ��� ��� � Pascal ���� �� ��� �� �

��� �� � �� � ���� �� � ��� �� � ���.

2. ctags ��� #if � #ifdef�� ���� ����.

3. -B � -F ��� ��� �� ����� ��� ��� �� ����.

4. -x ��� �� ��(-a, -u �� -f)� ����. �� �� ��� �� ��� ����

� ��� ����.

5. -v ��� ��� �� -x ��� �����.

6. ctags ��� ��� �� ���� ID� �����.

���

-a � ��� �����. �� ���� ctags� � ��� �����.-B ctags� �� �� ��(?. . .?).-F ctags� ��� �� ��(/. . ./). ��� � � �� �����.-f TagsFile � �� tags ��� �� TagsFile� ��� ��� � ��� ����.-m ctags� ��� ��� �� �� ��� ��� ���.-o ctags� ���� �� ��� ���� �� �� � typedefs� � ��� ��� ��

�.-t typedefs� �� �� ����. � ��� �� ��� �� � �� ���.-u �� � ��� ��� ����. , �� �� �� ��� ��� � �� ���

�����. � ��� �� ��� ��� � � ���. (�� ��� � ��� ��

���� �� � ����.)-v �� ���� vgrind ���� ��� ��� ��� ����. � ���� �� ��, �

� �� � ��� ��(64� ���� ��)� ���� ���.-w ctags� �� �� ��� ���� ���.-x ctags ��� ���� ��� ���, ����� ��� � �� � �� ��� � ��

��� ���� ���. � ���� ��� �� � � �� ��� ����. � �

�� ����, ctags ��� � ��� ��, � �� ���� ���, �� ��� �

����.

��

1. C �� �� ��� x.c, y.c � z.c� �� ctags ��� ��� �� ��� �����, �� ��

������.

ctags -x x.c y.c z.c

2. �� ���� � � �� C �� �� ��� foo_tags � ��� ���� �� �� ���

���.

ctags -f foo_tags *

�� ���(���) 549

Page 566: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. C �� �� �� zip.c� �� foo_tags � ��� �� ��� ��� �� �� �����, �

� �� ������.

ctags -utf foo_tags zip.c

�� ��

�� �� ��� �����.

0 ����� ��� ���.>0 ��� ������.

��

tags �� � ��.

�� ��

ex ��, lex ��, vgrind ��, vi ��, yacc ��.

ctcasd ��

��

���� � ���� � UNIX �� �� �� ���� �����.

��

ctcasd [-b]

��

ctcasd �� ���� �� �� UNIX �� �� ��� ����� ��� �� ���� � ��

� ������ �� �����. ��� ��� � ��� ���� ���� ��� �� �� �� ��

� ���� � ���� � ���� ctcasd� �����. ��� ��� � ���� UNIX ��

��� �� �� ���� �� �� �� ��� ����� �� ctcasd� ���� ����.

��� ��� � ��� ���� ���� � ���� �� UNIX �� �� ��� ����� ���

�, ���� � ��� ������ ctcasd� ��� UNIX �� �� �����. ���� � �

��� ��� ������ �� � � �� �� ���� ������ ���� ����.

SRC(��� �� ���) ��� ��� ctcasd �� ����� �� � ���.

�� �, �� ctcasd.cfg ��� ���� �� ���� ����. �� � ��� /var/ct/cfg/ �

����� ��� �����. ��� ���� �� ��� "� �� ���� �� � ���.

� ��� � � �� ��, �� /usr/sbin/rsct/cfg/ctcasd.cfg� ��� � � ���� �����.

550 �� ���, � 1 �

Page 567: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

UNIX �� �� �� �� �� ��� � �� ��� ����. � �� ctcasd.cfg� ���� �

�� ���. � �� � �� �� �� ��� ������. ���� �� � �� �� �

� �� � ��� ��� ��� �����. � ��� � �� ctcasd.cfg ��� ��� ��

�� ���. � � ��� ���� ��� ���� �� ��, ���� ���� ���� ����

� �� ��� ���� �����.

�� �� �� � ��� � ��� �� ��� �� �� ��, ctcasd� � ��� ��� �

�� � � �� ��� ����. �� �� � �� �� �� � ��� ��� ��� ���

�. � ��� localhost� �� �� � �� �� � � �� AF_INET ���� ���� ���

��� ��(�� IP ��)� �����. �� �� ����� �� �� ����� �� � ��� �

��� ��� �� ����� �� �� ��� �� �� ��� ��� � ���. ctcasd� �

���� �� ��� �� ���� �� �� �� �� �� ����. UNIX �� �� ���

��� ��� � ��� �� ��, ��� ��� ��� � ���.

� �� ��� �� �� �� ��� ��� ��� �� ���� �����. AIX �� ���

��� �� AIX �� �� � ��� ��� ����.

���

-b �� ����� �� �����. �� ���� ���� ���� SRC(��� �� �

��)� �� ���� ����.

��

v ctcasd �� UNIX �� �� ����� ����.

v ���� � ���� �� �� ��, ��� � �� � �� � ���� �����. ���� �

���� �� �� � ��� ���� ����.

��

/usr/sbin/rsct/bin/ctcasd ctcasd �� �����.

��

/usr/sbin/rsct/cfg/ctcasd.cfg ctcasd �� �� � � ���

/var/ct/cfg/ctcasd.cfg ��� ���� �� � � ctcasd �� �� ���.

/var/ct/cfg/ct_has.pkf �� �� ���� � ��� �� � ��� � � �

/var/ct/cfg/ct_has.qkf �� �� ���� � ��� ��� � ��� � � �

/var/ct/cfg/ct_has.thl �� �� ���� � ��� � ��� ���� � � �

�� ���(���) 551

Page 568: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

��: ctskeygen, startsrc

��: ctcasd.cfg, ct_has.pkf, ct_has.qkf, ct_has.thl, unix.map

cthactrl ��

��

���� �� ������ �����.

��

cthactrl -i <init_opt> | -s | -k | -b | -r | -d | -z | -h

��

cthactrl ��� ���� ����� ��� ���� ���� � �� ��� � �� ���� ����

�.

���

-i <init_opt>

�� ��� � � �� ��� ������ ������. <init_opt>� �� �� �� �

���.

-c <cluster_name>

���� ��� �����.

-n <nodenum>

� ��� �����.

-e <environ>

���� ��� ��� ���� ������� �����.

[-p <portspec>]

�� ��� � � �� ���� �� UDP �� ��� �����.

�� � �� ����.

cthactrl -i -c filesys -n 1 -e filesys -p "cthats=12347,cthags=12348"

-s �� ��� � � �� ��� ������ �����.

-k �� ��� � � �� ��� ������ �����.

-b �� ��� � � �� ��� ����� ���(�: machines.lst)� ������.

-r �� ��� � � �� ��� ������ ����.

-d �� ��� � � �� ��� ������ ����.

552 �� ���, � 1 �

Page 569: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-z �� ��� � � �� ��� ������ �������.

-h ��� ���� �� ��� �����.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ����� ��� ���.

��� ��

��� ������.

��

� ��� cthags � cthats ������� �����.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����.

��

1. �� �� filesys1� �� ����� ��� ����� 12347� cthags� �� UDP �� ���

���� 12348� cthags� �� UDP �� ��� �����, �� �� ������.

cthactrl -i -c filesys1 -n 1 -p "cthats=12347,cthags=12348" -e filesys1

2. �� ��� � � �� ��� �����(cthags � cthats)� �����, �� �� ������.

cthactrl -s

3. �� ��� � � �� ��� �����(cthags � cthats)� �����, �� �� ������.

cthactrl -k

��

/usr/sbin/rsct/bin/cthactrl

�� ��

��: cthagsctrl, cthagstune, cthatsctrl, cthatstune, lssrc, nlssrc

cthagsctrl ��

��

�� ��� ������ �����.

�� ���(���) 553

Page 570: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cthagsctrl { -a [-p port-number ] -s │ -k │ -d │ -r │ -z │ -h │ -t │ -o }

��

cthagsctrl �� ��� SRC(��� �� ���)� �� �� � �� ��� �����(cthags)� ��

� �����.

�� ��� ������ ����� ����� �� ��� �����.

�� � ��, �� ��� ����� ��� �� �� ����.

����� �� ���

����� � cthags

SRC ����� cthags

cthags ������ hagsd �� �����.

�� ����� ��� cthags���. � � �� ������

�� ������ �� �� ����� �����.

�� hagsd

�� ��� ��� �����.

�����, cthagsctrl ��� ����� ���� ����. � ��� ����� ���� � � cthactrl

��� �� �����.

cthagsctrl ��� �� �� �� ��� ������ ��� �� ��� ��� �����.

v ������ ��, ��, �� � �

v ������ ��(������ �)

v ������ ������ ��� ��

v �� �� � ��

����� ��

-a ��� ����, �� ��� �� ��� ������ SRC� �����. �� ��� �� ���

��.

1. cthags ������ ��� �� ����.

2. ���� ����� cthags ������ �� �� ��� �����.

3. SRC�� cthags ������ �����(�� �� ��).

4. SRC� cthags ������ �����.

5. �� cthags ��� �� ��� /etc/inittab ��� ���� ����. ���, �� �� �� �

����� cthags� ���� ���.

554 �� ���, � 1 �

Page 571: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����� ��

-s ��� ����, �� ��� startsrc ��� ��� cthags �� ��� ������ �����.

����� ��

-k ��� ����, �� ��� stopsrc ��� ��� cthags �� ��� ������ �����.

����� �� �� ��

-d ��� ����, �� ��� rmssys ��� ��� SRC�� �� ��� ������ �����.

�� ��� �� �����.

1. cthags ������ ��� �� ����.

2. SRC�� rmssys ��� ��� cthags ������ �����.

3. /etc/services ���� �� ��� �����.

�� ��

-t ��� ����, �� ��� traceson ��� ��� hagsd �� �� ��� �����.

�� ��

-o ��� ����, �� ��� tracesoff ��� ��� hagsd �� �� ��� �����. (�

� �� ������.)

����� �

-r ��� cthags ������ ����.

��

���� �, �� ��� �� /var/ct/cluster_name/log/cthags ����� � � �� �� ���

��� ��� �� � ��� �� ��� �����. �� ��� �� ����.

v /var/ct/cluster_name/log/cthags_nodenum_instnum.cluster_name

v /var/ct/cluster_name/log/cthags_nodenum_instnum.cluster_name.long

v /var/ct/cluster_name/log/cthags.default.nodenum_instnum

�� ��� �� � hagsd �� ��� �����.

�� �� ��� �� �� �� �����.

v nodenum� �� �� �� � �����.

v instnum� �� ���� �����.

v cluster_name� �� �� �� ����� �����.

�� ���(���) 555

Page 572: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� �� ��� ��� ��� �� �� �����. � �� 5000����. ��� ���� ��

�� �� ��� ��� .bak ���� ���� �� ��� �����. .bak ��� � �� ��,

�� ��� ��� �� �� �����.

���

-a [-p port number]

������ �����.

-s ������ �����.

-k ������ �����.

-d ������ ����.

-t ������ �� ��� �����.

-o ������ �� ��� �����.

-r ������ ����.

-z cthags ������ �������.

-h ��� ���� �� ��� �����.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ��� ���� ��� � �����.

��� �� �

�� ��� �����.

��

� ��� �� ����� �����.

� ��� IBM �� ��� �� ���� ������.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����.

�� ��

� ��� ��� ��, �� ��� �� ��� �����.

556 �� ���, � 1 �

Page 573: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

1. �� ����� SRC� �� ��� ������ ����� �� �� ������.

cthagsctrl -a

2. �� ��� 12347� �� ��� ������ �����, �� �� ������.

cthagsctrl -a -p 12347

3. �� ������ �� ��� ������ ����� �� �� ������.

cthagsctrl -s

4. �� ������ �� ��� ������ ����� �� �� ������.

cthagsctrl -k

5. �� ����� SRC�� �� ��� ������ ���� �� �� ������.

cthagsctrl -d

6. �� ����� � �� ��� �� �� ��� �����, �� �� ������.

cthagsctrl -t

7. �� ����� � �� ��� �� �� ��� �����, �� �� ������.

cthagsctrl -o

��

/usr/sbin/rsct/bin/cthagsctrl cthagsctrl ��� �����.

�� ��

��: cthactrl, cthagstune, lssrc, nlssrc

cthagstune ��

��

�� � �� ��� ����� �� �� ���� ����.

��

cthagstune [-l log_length] [-d log_dirsize]

cthagstune [-h]

��

cthagstune ��� �� � �� ��� ����� �� �� ���� ����.

���

-l � �� �� ��� �����. �� 0��� �� ��, � � �� �� ��� �����.

�� ���(���) 557

Page 574: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-d � �� ���� ��� �� ��� �����. �� 0��� �� ��, � � �� ���

� ��� �����.

-h ��� ���� �� ��� �����.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ��� ���� ��� � �����.

��� � �

�� ��� �����.

��

� ��� �� ����� �����.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����.

�� ��

� ��� ��� �� �� ��� �� ��� �����.

��

�� �� ��� 6000��� ��� �� ���� ��� � 7MB� �����, �� �� ����

��.

cthagstune -l 6000 -d 7000

��

/usr/sbin/rsct/bin/cthagstune cthagstune ��� �����.

�� ��

��: cthactrl, cthagsctrl, lssrc, nlssrc

cthatsctrl ��

��

� �� ��� ������ �����.

558 �� ���, � 1 �

Page 575: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cthatsctrl { -a [ -p port-number ] │ -s │ -k │ -d │ -b │ -t │ -o │ -r │ -h }

��

cthatsctrl �� ��� � �� ��� ������ ��� �����. ������ SRC(��� �� �

��)� �� �� �� cthats�� ����� ��� �� ���. ������ � � �� �

���� ���� ��� �����.

� �� ��� ������ ����� ����� �� ��� �����.

����� ��

-a ��� ����, �� ��� mkssys ��� ��� SRC� � �� ��� ������ ����

�. �� ��� �� �����.

1. cthats ������ ��� �� ����.

2. ���� ����� �� ��� ���� �� ��� /etc/services ��� ���� �� ����.

/etc/services ��� ���� ��� ��� cthats���.

3. SRC�� cthats ������ �����(�� �� ��).

4. cthats ������ SRC� �����.

����� ��

-s ��� ����, �� ��� startsrc ��� ��� cthats � �� ��� ������ ����

�.

����� ��

-k ��� ����, �� ��� stoptsrc ��� ��� cthats � �� ��� ������ ����

�.

����� ��

-d ��� ����, �� ��� rmssys ��� ��� SRC�� � �� ��� ������ ���

��. �� ��� �� �����.

1. cthats ������ ��� �� ����.

2. SRC�� rmssys ��� ��� cthats ������ �����.

3. /etc/services ���� cthats �� ��� �����.

���� ��

-b ��� ����, �� ��� ���� ����� ��� ��� �� � �� ��� �� ��

machines.lst ��� ��� �����.

�� ���(���) 559

Page 576: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

-t ��� ����, �� ��� traceson ��� ��� � �� ��� �� �� ��� ����

�.

�� ��

-o ��� ���� �� ��� tracesoff ��� ��� � �� ��� �� �� ��� ����

�. (� � �� �����.)

����� �

-r ��� ����, �� ��� refresh ��� ��� ������ ����. -r ��� ���

�� ��� ��� ��� ��� ���.

���

-a [-p port-number]

������ �����.

-s ������ �����.

-k ������ �����.

-d ������ ����.

-t ������ �� ��� �����.

-o ������ �� ��� �����.

-b ���� ���� � ��� ���� � �� ��� ��� ��� ������.

-r ������ ����.

-h ��� ���� �� ��� �����.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ��� ���� ��� � �����.

��� � �

�� ��� �����.

��

� ��� �� ����� �����.

� ��� IBM �� ��� �� ���� ������.

560 �� ���, � 1 �

Page 577: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����.

�� ��

� ��� �� �� ��� �� ��� �����.

��

1. SRC� � �� ��� ������ �����, �� �� ������.

cthatsctrl -a

2. � �� ��� ������ �����, �� �� ������.

cthatsctrl -s

3. � �� ��� ������ �����, �� �� ������.

cthatsctrl -k

4. SRC�� � �� ��� ������ ����, �� �� ������.

cthatsctrl -d

5. � �� ��� �� �� ��� �����, �� �� ������.

cthatsctrl -t

6. � �� ��� �� �� ��� �����, �� �� ������.

cthatsctrl -o

7. ���� ���� � ��� ��� � �� ��� ��� ��� ������, �� �� �

�����.

cthatsctrl -b

8. ����� � �� � �� ��� �� �� ��� �� ��� ��� ��� ���, �

� �� ������.

cthatsctrl -r

9. �� ��� �� ��� �����, �� �� ������.

cthatsctrl -h

��

/usr/sbin/rsct/bin/cthatsctrl cthatsctrl ��� �����.

�� ��

��: cthactrl, cthagsctrl, cthatstune, lssrc

�� ���(���) 561

Page 578: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cthatstune ��

��

�� � � �� ��� ����� �� �� ���� ����.

��

cthatstune [-f [network]:frequency] [-s [network]:sensitivity] [-p priority] [-l log_length] [-m pin_object]

[-r] [-v]

cthatstune [-h]

��

cthatstune ��� �� � � �� ��� ����� �� �� ���� ����. � �� ���

������� �� �� � �� ��� �� ��� ���� ���.

subsystem-wide

� �� ��� ������ ��� �� ���. � ���� ��� �� �,

� �� �� �� � � ��� ���� ����� �����.

per-network ����� ��� �� ���. � ���� ���� �� � ��� �����.

cthatstune ��� ���� ���� � ���� ����. �� �� � �� �

�� �� ���� ����� �� �� �� ��� ���� ����. � ���

��� ���� ����� �� �� ��� � �� ��� �� ��� � ��

�. ����� � � � � ��� cthatsctrl -r �� �� cthatstune -r ��� �

�� � ��� �� � ���.

�� �� ���, � �� �� �(VIEW � DEFAULT)� ��� �� ��� ���

� ����� ���� � � �� �� � ���.

���� �� �� ���� ��, ���� ��� ��� � ���� �� �� ��

���� ��(ALL)� ��� ���� �� �� �� �� �� ����� �����

�� � ���.

���

-f [network]:frequency[,[network]:frequency[,[network]:frequency...]]

�� ���� �� �� ����� �� ���� � �(���� ��)� � � � ����

�. �� ����� ��(,)� � �� ���.

frequency� �� 1�� 30��� ��� � ���. � � �� 1���.

-h ��� ���� �� ��� �����.

-l log_length

� �� �� ��� �����(�� � � �).

562 �� ���, � 1 �

Page 579: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

log_length� �� 2000�� 1,000,000��� ��� � ���. � � �� 5000���.

-m pin_object [,pin_object...]

� ��� ���� ����� �����. ��� �� �� ����.

NONE

� ��� ����� ���� ����.

TEXT � ��� TEXT ����� ����� �����.

DATA

� ��� DATA ����� ����� �����.

STACK

� ��� STACK ����� ����� �����.

PROC

�� � � �� ����� � ��� ����� �����. ��� � � ���

�.

-p priority

��� �� �� �����. priority� �� 0���(���� �� �� ���� ��

� �) 1�� 80��� �����. � � �� 30���.

-r � �� �� ���� ��� �����.

-s [network]:sensitivity[,[network]:sensitivity[,[network]: sensitivity...]]

�� �� ����� �� �����. � ��� �� ��, � �� ��� �� ���

�� � � ����.

sensitivity� �� 4�� 40��� ��� � ���. � � �� 4���.

-v �� ��� �����.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ��� ���� ��� � �����.

��� � �

�� ��� �����.

��

� ��� �� ����� �����.

�� ���(���) 563

Page 580: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����. �� �� ��� �� ��� ���

��.

�� ��

� ��� �� �� ��� �� ��� �����.

��

1. � ��� � ���� �� ��� �� �� 40�� �� �, � �� �� ��� �� �

�� ����, � ��� � � ����� ������, �� �� ������.

cthatstune -p 40 -l VIEW -m DEFAULT

2. �� ��(cthatstune� �� ��� ��)� �����, �� �� ������.

cthatstune -r

3. ��� �� �� ���� ���, � ��� ��� � ��� ���� ��� �, ��

��� � �����, �� �� ������.

cthatstune -p 0 -m TEXT,DATA -r

4. filesys_net� ���� ��� 2� � �� ����� 4� ���, � �� ����� ����

� � ��� �� �, �� ���� � �����, �� �� ������.

cthatstune -f filesys_net:2,:4 -s :DEFAULT -r

5. filesys_net� ���� ��� � � ��� service_net� 3�� ���, �� ����� ����

8� �� �, � �� ��� ����� ��� � ��� ���� �, �� ���� � �

����, �� �� ������.

cthatstune -f filesys_net:DEFAULT,service_net:3 -s :8 -m PROC -r

�� � ��� ��� �� �� ���.

cthatstune -f filesys_net:DEFAULT,service_net:3cthatstune -s :8cthatstune -m PROCcthatstune -r

��

/usr/sbin/rsct/bin/cthatstune cthatstune ��� �����.

�� ��

��: cthatsctrl, lssrc

564 �� ���, � 1 �

Page 581: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ctlvsd ��

��

ctlvsd - �� �� �� ��� ������ �� �� ���� �����.

��

ctlvsd [-r node_number... | -R | -p parallelism |

-k node_number... | -t | -T | -v vsd_name ... |

-V | -C | -K | -M IP_max_message_size]

��

ctlvsd ��� �� �� ��� ������ ��� ��� ����. ��� ���� �� ��� �

� � ��� �� � � �� �� �, �� � �, pbuf � � �/ �/�� �� �� ��� ���

��.

�� ��� ����� ���� �� � ���. ����� ��� � ��� ����� ��� �� �

� ���� �� �� �� �� ��� ����� ��� �����.

���

-r ��� �� �� � � �� ��� ��� ���� �� ������. � ��

����� ��� ��� �� �� �� �� ���� � ��� ��� �� �

��� ������. �� ��� �� ��� ����.

�: � ��� IBM ��� ��� ���� ��� ���� ���� ���. ���� �

���� ���� ��� ���.

-R �� �� �� � � �� ��� ��� ���� �� ������. �� ���

� �� � ��� ������. �� �� ��� ����� �� �� ��� ���

�.

�: � ��� IBM ��� ��� ���� ��� ���� ���� ���. ���� �

���� ���� ��� ���.

-p �� �� ���� �� �� �� ��� �� �����. ��� � � 1�� 9���

��. � �� 9���. � � ��� �� ��� �� �� �� �� � � �� �

���. (�� �� ���� � ��� �� ��� ��� RSCT: �� ��� ���

������.)

� �� �� �� ��� IP �� ���� ���� ���� uphysio ��� buf_cnt

������. ��� ���� �� �� �� ����� statvsd� ������.

-k �� �� ��� � ��� ��� �����. �� �� ��� ��� �� ��

� �����. -r� ��� �� �� ��� �����.

�� ���(���) 565

Page 582: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�:

1. � ��� ���� �� �� ��� “����” ��� ������.

2. � ��� IBM ��� ��� ���� ��� ���� ���� ���. ���� ��

��� ���� ��� ���.

-t �� �� ��� ����� ��� �� ��� ��� mbuf ��� �����.

-T ��� �� ���� ���� �����.

-v vsd_name ...

��� �� �� ���� �� ��/�� �� �� ��� ������.

-V ���� �� �� �� ���� �� ��/�� �� �� ��� ������.

-C statvsd ���� ���� �� �� ���� �� ��� ���� ������. ��

���� �� � ��� � � �� �� ��� �����.

-K �� �� � �� �� ��� �����. �� ��� �� �����.

�:

1. � ��� ���� �� �� ��� “����” ��� ������.

2. � ��� IBM ��� ��� ���� ��� ���� ���� ���. ���� ��

��� ���� ��� ���.

-M �� �� ���� � IP �� ��� �����. � ��� ��� ��� �� ��

�� ���� ����� �� ���� �� � �� ������. �� ��� ���

�� �� �� ���� ��� � ��� �� ���. �� �� � � 512��

65024�� 512� ����� ���. � �� 61440���. �� �� ��� �� ��

�� ���.

����

�.

��

� ��� ����� �� ��� �� ���.

�� ��

0 ��� ��� � �����.

-1 �� ��� �����.

566 �� ���, � 1 �

Page 583: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

� ��� �� ���� ��� � � ��� ���� ���. �� ��� ��� � � ����

� startrpdomain ��� ������. ��� �� ���� �� �� ��� � � �����

startrpnode ��� ������. RSCT �� ��� � � ��� �� ��� ��� RSCT: ��

��� ������.

�� ��

�� �� ��� ���.

createvsd -n 1/2:hdisk13/ -s 1024 -g testvg -v testvsd -T 16

�� ��� �� ��� �� �����.

createvsd: calls Getopts.createvsd: parsing node_list.createvsd: creates task tables.createvsd: calls checkclvm.perl on the nodes c164n11.ppd.pok.ibm.comcreatevsd: calls domkvglv.perl.OK:1:mkvg -f -y testvg -s 16 hdisk13OK:1:mklv -a c -y lvtestvsd1n1 -e x testvg 64 hdisk13It took about 8 seconds in mkvglv.createvsd: calls dovaryoffvg.perl testvg on the primary node c164n11.ppd.pok.ibm.comOK:1:chvg -a n testvgOK:1:varyoffvg testvgcreatevsd: calls doimportvg.perl testvg on the nodesc164n12.ppd.pok.ibm.com with 000048186b991a6fimportvg : testvgimportvg : OK:2:importvg -y testvg hdisk5importvg : OK:2:chvg -a n testvgimportvg: timestamp 2 testvg 3e036cb33403c8c8importvg : OK:2:varyoffvg testvgimportvg : It took about 10 seconds.It took about 12 seconds in importvg.createvsd: calls vsdvg.OK:1:vsdvg -g testvgn1b2 testvg 1 2It took about 12 seconds in vsdvg.createvsd: calls dovaryonvg.perl testvg on pri nodes c164n11.ppd.pok.ibm.comOK:1:varyonvg testvgcreatevsd: calls defvsd.OK:1:defvsd lvtestvsd1n1 testvgn1b2 testvsd1n1It took about 5 seconds in defvsd.

��

1. �� ���� ����� �� ������.

ctlvsd

���� �� ��� ��� �����.

�� ���(���) 567

Page 584: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

The minimum buddy buffer size is 4096.The maximum buddy buffer size is 65536.The total buddy buffer size is 4 max buffers, 262144 bytes.

2. �� IP ��� ��� ����� �� ������.

ctlvsd -t

����� �� �� ��� �����.

Route cache information:

destination interface ref status direct/gateway min managed mbuf1 ml0 2 Up Direct 256

��

/opt/rsct/vsd/bin/ctlvsd

�� ��

��: lsvsd, statvsd

�� �� ���� � ��� �� ��� RSCT: �� ��� ��� ������.

ctmsskf ��

��

MSS(�� � ���) � ��� ��� ���� �����.

��

ctmsskf {-a │ -d │ -l │ -h} [-f key_file] [-t key_type] [-v key_version] [-k key_value]

��

ctmsskf ��� MSS(�� � ���) �� � ��� ��� ���� �����. � ��� ���

�� ����� �� ����, �� � ��� ��� ������.

� ��:

� ��� ��� � ��� � ��� �� � �� ���� ���.

v �� ���� � ��� ��

v �� �� ��

v ���� � ��� ���� �� ��

v �� 16�� �

��� � ��� ���� ��� ��� ����. ��� � ��� ���� ctmsskf ��� � ��

��� � ��� � �� �� � ��� �� ��� ��� ����� �����. �� ��� ���

568 �� ���, � 1 �

Page 585: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� � ��� �� � ���. �� ��� ���� �� � � �� � ��� � � ��

� ���. � ��� -v key_version ��� ��� ��� ��, key_version� � �� ���� ��

�� � ��� ���. key_version� ���� �� �� ��� � � �� ���� � � �� ��

��� �� �����.

��� � ��� �� � ����. ��� � ��� ����� �� ���� � � � ��� -d

��� ��� �� �, -a ��� ��� �� ���� ���. ��� ��� � �� ��� �

�� �� �� ��� ���� �� ����� �� �� ��� �����. ����� �� � ��

�� ��� �� � ��� �� � � ��� �� �� �� �� ���� ����� ���.

� ��� ���� � ��� �� � � ��� �� � �� ��� �� ��� � ��� �

� �� ���. -l ��� ��� � ��� ��� �� �� �� � �� ������.

� ��:

� ��� ��� � ��� � ���� � � �� ���� ���.

v �� ��� � ��� ��

v ����, � �� ��

v ����, � �� ��

��� �� �� �� ���� ��� � ��� ��� � �� ��, ��� ��� �����.

� ��� ��� � ��� � � ��� ���� �� ��, ��� ��� �����. � ��� ��

��, ��� ��� ��� ���� �� �� ���� �����. � �� �� ��, �

�� ��� �����. ��� � ��� �� ��, ��� �� � � ��� ��� �����.

� ��� �� ��:

� ��� ��� � ��� ��� �� � � ��� �����.

v � ��� ��

v � ��� � ���

�� �� � ��� �����.

– � �� � ��

– �� ��

– �� ��

– �� 16�� �

���

-a � ��� �� �����. �� -f, -k � -t ��� �� ���� ���.

-d � ����� �� ����. �� -f � -v ��� ���� ���. -t ��� ��� ��,

��� � ��� ��� ��� � ��� ���� ����.

�� ���(���) 569

Page 586: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-l � ��� ��� �����. -f ��� �� ���� ���. -v ��� ��� ��, ���

��� �� ��� ���� ��� �����.

-f key_file

� ��� ��� �����. � ��� MSS API �� � ��� �� �� ��� � ���

�� ���.

-t key_type

�� � ��� �����. ��� � ��� �� � �� ��, ��� ��� � ��� � �

�� ��� � � ��� ����� ����. ��� � �� �� �� ����.

3des_md5, aes256_md5, des_cbc, des_md5, rsa512_sha � rsa1024_sha.

-v key_version

� ��� �����.

-k key_value

�� 16�� �� �����.

-h �� ��� ��� ���� �����.

��

� ��� �� ��� �� ��� ��� ���� ������ �� �����. ���� ��� � �

� ��� ��� � ��� ��� �����.

�� ��

0 ��� ��� ���.

4 ���� �� �� � ���� ����� �� ���� ��� ��� ��� �� ��

����. � ��� ��� ���� �� ����.

6 � �� �� � �� ��� ������. ��� ��� ��� �� � ����.

9 -a ��� ��� �� ��� -v ��� ��� �� ��� �� ��� ��� � ��� ��

����. -d ��� ��� �� ��� -v ��� ��� �� ��� ��� � ��� �

� � � ����. � ��� ���� �����.

21 � ��� � � ����. -f ��� ��� � ��� �� �� ��� � � �����.

27 -t ��� ��� � ��� -f ��� ��� ��� ��� �� ��� ���� ����. �

�� ��� ���� �����.

30 ctmsskf� � ��� ��� ��� � � ����. � ��� � � ����� ���� �

� ��� ��� ���� ���� � � ��� ���� ���� ��� ���� �� �

���. ��� ��� �� �����.

36 �� ���� � ��� ��� ���� � � � ��� �� ����.

570 �� ���, � 1 �

Page 587: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

37 � ��� ���� �����. ��� ��� �� ���� -l ��� ��� ��� ���

��� ����. ��� �� ��� ���� �� ��� ��� �� �� ����� ���

��.

��

� ��� MSS ���� � ���� �����.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����. -i ��� ��� ��, �� ��� �

� ��� ���� �����. -l ��� ��� ��, � ����� �� ��� �� �����.

�� ��

��� �� �� ��� �� ��� ��� �� ��� �����.

��

1. � �� /my_key_file� ���� � �� ��� �� �� ������.

ctmsskf -l -f /my_key_file

2. � �� /my_key_file�� �� 9 �� �����, �� �� ������.

ctmsskf -l -v 9 -f /my_key_file

3. � �� /my_key_file� �� �����, �� �� ������.

ctmsskf -a -t des_cbc -f /my_key_file -k 16_digit_value

4. � �� /my_key_file�� �� ����, �� �� ������.

ctmsskf -d -f /my_key_file -v 10

5. � �� /my_key_file�� �� �� �� ����, �� �� ������.

ctmsskf -d -f /my_key_file

��

/usr/sbin/rsct/bin/ctmsskf ctmsskf ��� �����.

��

/usr/sbin/rsct/cfg/ctcasd.cfg ctcasd �� �� � � ���

/var/ct/cfg/ctcasd.cfg ��� ���� �� � � ctcasd �� �� ���.

/var/ct/cfg/ct_has.pkf �� �� ���� � ��� �� � ��� � � �

/var/ct/cfg/ct_has.qkf �� �� ���� � ��� ��� � ��� � � �

/var/ct/cfg/ct_has.thl �� �� ���� � ��� � ��� ���� � � �

�� ���(���) 571

Page 588: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

��: ctskeygen, startsrc

��: ctcasd.cfg, ct_has.pkf, ct_has.qkf, ct_has.thl, unix.map

ctsidmck ��

��

���� � ����� ID ��� �����.

��

ctsidmck -h │ -i │ { [ -dl │ -dm │ -dh ] -m security_mechanism network_ID }

��

��� ���� ctsidmck ��� ��� �� � ���� ID� �� ���� � �����(libct_sec)

� �� ��� �� � ���.

���� � ������ � ���� ������ � ��� �� � ��� �� � ��� �

����. � ��� � �, ���� � ������ ����� ������ � ���� ID�

�� �� � � � ��� ID�� ID� ����� �����. ���� � ������ ���

���� ��� �� ��� �� �� ��� ��� ID� �����. ����� ������ ���

�� ��� ID� ��� ��� �� ��� �� �� ID �� �� ��� �� � � �� ��

� �� � ����� ������ ���� � ID� ���� ��� �� �� �� �����.

v /usr/sbin/rsct/cfg/ctsec_map.global

v /var/ct/cfg/ctsec_map.local

v /var/ct/cfg/ctsec_map.global

� �� ��� ��� �� �����. ��� �� � ��� �� � �� �� ���� �

�����. �� �� �� �� ��� ��� � �� ��� �� �����. � �� � �

�� ��� ��� �� ��� ��, �� ��� ��� �� �� �� ���. �� ��� ��� �

���� ID� ���� �� � � � �� �� ��� � ��, �� ��� ��� �

� ��� �� � ���.

ctsidmck� ��� ���� � ���� ID� ���� � ���� � ������ ���� ID

�� ��� � � �� � ���. � ��� ��� �� �� ����� �����. ��� �

� � ���� ID� � ��� ��� , ���� � ���� � ���� ID� ��� ID� ��

��� � ��� �� �� ID �� �� ���� ��� ��� ����� �� � ���.

���

-h �� ��� ��� ���� �����.

572 �� ���, � 1 �

Page 589: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

-i ����� ���� � ���� ���� �����. ��� �� ���� � �����

���� ����, ���� � ���� ���� �� �, � ���� �����. ��

�� � ���� ���� � ���� � ������ ���� ������ �����.

-d �� ��� ���� �� �����. �� �� � �� ���� � � ��� �����.

1. � (l): ��� network_ID� �� ��� ID�� �����. ��� � � ���� ���

�.

2. � (m): ��� network_ID� �� ��� ID� �� �� ��� ID �� �� ��� ��

� �����.

3. � (h): ��� network_ID� �� ��� ID� � ��� �� �� ��� �� ���

��� ID �� �� ��� �� ��� �����.

-m security_mechanism

network_ID� ��� � ���� ID� ���� ��� � ���� �����.

security_mechanism� � � ���� ���� � ���� � ������ ���� �

�����. � ��� -h � -i ��� ���� ��� �� ���� ���.

-i ��� ��� ���� ���� � ���� ���� ������.

����

network_ID

�� � ���� ID� �����. �� � ���� ����� ������ �� � �

ID � ���.

��

� ��� �� ��� ��� � ��� ��� ��� ���� �� � ��, ���� � ���

���� ���� ��� �����. � ��� ��� ��� �� ����� ���� ��� ���

� ���� �� � ���, � ��� �� �� ��� ���� ���.

�� ��

0 � ��� network_ID� �� ��� ID� ���� ����.

3 ��� ��� � ���� ���� ���� � ����� MPM(��� ��� �� �

�)� ���� ��� ������. � ��, ctsidmck� network_ID� �� ��� ��� ID�

�� � ����. ��� �� MPM ��� ��� ���� ���� ��� � � ���.

��� ��� ��� �� ��� ������.

4 ���� �� �� � ���� ����� �� ���� ��� ��� ��� �� ��

����. ctsidmck� network_ID� �� ��� ID� � ��� �� �� ����.

6 � �� �� � �� ��� ������. � ��, ctsidmck� network_ID� �� ���

��� ID� �� � ����.

�� ���(���) 573

Page 590: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

21 � ��� �� ����� ID �� �� ��� � � ����. � ��, ctsidmck� network_ID

� �� ��� ��� ID� �� � ����. ���� ��� ��� ID �� �� ��� ��

��� ������.

22 ��� ��� � ���� ���� ���� � ����� MPM(��� ��� �� �

�)� ���� � � ����. ��� �� ��, ��� �� �� ��� ���� ��

����� � ��� �� �� ��� ���. � ��, ctsidmck� network_ID� �� ��

� ��� ID� �� � ����. ��� �� MPM ��� ��� ���� ���� ���

� � ���. ��� ��� ��� �� ��� ������.

37 ���� � ID �� �� �� � �� � �� ��� � � ���. � ��, ���

network_ID� �� ��� ��� ID� �� � ����. ID �� �� � ��� ��, ���

�� �� �� ��� ��� ��� �� ������.

38 ctsidmck� network_ID� �� ��� ID� � � ����. ID �� �� ��� �� �� �

�� � ���� ID� �� ��� ID� ���� ��� ����.

��

� ��� MSS ���� � ���� �����.

�� ��

ctsidmck ��� � ���� ID� �� ��� �� ��� ID� �� ��� �����. � �� �

�� ����� ��� ��, � ��� �� ��� �� �� �� �� ��� �����.

-h ��� ��� ��, ��� ���� �� ��� �����.

�� ��

��� �� �� ��� �� ��� ��� �� ��� �����.

��

1. ID �� ���� �� �� ����� ���� � ���� ���� ���� �� �� ��

����.

ctsidmck -i

2. UNIX ��� �� �� ���� � ���� ID [email protected]� �� �

�� ID� ���� �� �� ������.

ctsidmck -m unix [email protected]

3. UNIX HBA ���� � ���� ID [email protected]@endor� �� ��� ID�

���� � ��� �� �� �� ID �� ��� ��� �� �� ������.

ctsidmck -d h -m unix [email protected]@endor

574 �� ���, � 1 �

Page 591: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

/usr/sbin/rsct/bin/ctsidmck ctsidmck ��� �����.

��

/usr/sbin/rsct/cfg/ctsec_map.global

� � ID �� �� �����. � ���� ���� �� �� � �

��� � �� ���� � RSCT ���� � ����� ��� �

� ��� �����. ���� �� ID �� �� �� /var/ct/cfg/

ctsec_map.global� ���� ���� � ��� �����. ���� �

�� � �� ��� ��� �� ��, ���� �� ID �� �� �

��� ����� ���.

/var/ct/cfg/ctsec_map.local ���� �� ID �� ��� �� �� ���. � ��� � ��� �

��� �� � � ���� �� ��� �� ���.

/var/ct/cfg/ctsec_map.global ���� �� ID �� ��. � ���� ���� ��� ���� ID �

� ��� ����� �� ���. ���� � ��� ���� � � ID

�� �� ��� �����. ���� � ��� �� ��, � � ID �

� �� ���� � � � �� ��� ���� ���.

�� ��

��: ctskeygen, startsrc

��: ctcasd.cfg, ct_has.pkf, ct_has.qkf, ct_has.thl, unix.map

ctskeygen ��

��

�� ���� �� ���� � ��� ��� � �� �� ��� � �� ����� ��� �

�� �����.

��

ctskeygen -n [-f] [ -m method ] [ -p public-file ] [ -q private-file ] │ -d │ -i │ -h

��

ctskeygen ��� UNIX �� �� ��� ���� � ��� �����(libct_sec)� �� ���� �

�� ID �(� �� ��� �� �� � �)� ����. ��� �� �� �� ��� �� ��

�, �� ��� ���� �� �� ��� �, � �� �� �� � ��� �����.

�� ���(���) 575

Page 592: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��� � �� �� �� ���, �� �� �� �� ���� �� � �� �� �

�� � �� � ��� ���� ��� ��� �� ��� ���� ���. ��� �� �� �

�, �� ��� � �� �� �� �� UNIX �� �� ��� ��� ����� � � �

� �� � ����.

���

-n ��� ID �(��� � �� �)� ����.

-f ��� �� ��� � �� � ��(� �� ��)� ����� ctskeygen� �� ����

�. � ��, ��� �� �� ���� � ���� �� ��� �����, ��� ����

��� � ��� !��� ����. � ��� �� � �� �� �� ��� �� �

��� ����� ���� � ���� UNIX �� �� ��� �����. � ���-h �

� -i ��� �� �� �� ���� ����.

-m method

��� ID �� � � ��� � � �� ����� ��� �����. � ��� ��

��� ���� -i ��� ��� �� � ���. � ��� -h � -i ��� �� �

� �� ���� ����.

-p public-file

�� ���� �� �� ����� ���� ��� ��� �� ��� �����. ��� ��

��, ��� -f ��� ���� �� � ��� ��� !��� ����. -p ��� ����

�� ��, ��� � �� /var/ct/cfg/ct_has.pkf ��� �����. � ��� -h � -i �

�� �� �� �� ���� ����.

-q private-file

�� ���� ��� �� ����� ���� ��� ��� �� ��� �����. � ���

�� ��, ��� -f ��� ���� �� � � ��� ��� !��� ����. -q ���

���� �� ��, ��� � �� /var/ct/cfg/ct_has.qkf ��� �����. � ��� -h � -i

��� �� �� �� ���� ����.

-d �� ���� �� �� �� � �� �����.

-i � �� ��� ���� � � �� �� ��� �����. ctskeygen� -m ��� �

� ��� �� ���� � � ��� -m ��� �� � � ���� ���� �� ����

��� �����.

-h ��� ���� �� ��� �����.

����

network_ID

�� � ���� ID� �����. ��� � ���� ����� ������ �� �

� ID��� ���.

576 �� ���, � 1 �

Page 593: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

ctskeygen ��� �� ��� ���� ��� �� � �� �����.

�� ��

0 ��� ��� ���.

4 ���� �� �� � ���� ����� �� ���� ��� ��� ��� �� ��

����. � ��� ��� ���� �� ����.

6 � �� �� � �� ��� ������. ��� ��� ��� �� � ����.

12 �� ���� � ��� ��� ��� ���� � � � ��� �� ����.

21 � ��� �� � � ����.

30 ctskeygen� �� �� ��� � ��� ��� ��� � � ����. � ��� � � �

���� ���� � �� ��� ���� ���� ctcasd �� ��� ��� ���� ��

� ���. ��� ��� �� �����.

37 �� �� ��� � ��� ���� �����. ��� ��� �� ���� -d ��� ��

� �� � �� ����. ��� �� ��� ���� �� ��� ��� �� �� ���

�� �����.

��

v ���� � ���� �� �� ��, ��� � �� � �� � ���� �����.

v � ��� ���� ctsthl ���� ��� �� � ���.

v ���� � ���� ������ � ��� ���� ���, ����, ���� ���� ���

�� ���� ����. � ���� ��� ��� �� ���� �� ����� ���� ���.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����. -d ��� ��� ��, �� � ���

��� �� � �� �� ��� �����.

�� ��

��� �� �� ��� �� ��� ��� �� ��� �����.

��

1. ���� � � � ���� ����, �� �� ������.

ctskeygen -i

2. � � ���� ��� �� ���� �� �� ��� ID �� ����, �� �� ����

��.

ctskeygen -n

�� ���(���) 577

Page 594: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

3. 512�� RSA ��� �� ��� �� ���� �� �� ��� ID �� ��� � �� �

� �� �� � �� �����, �� �� ������.

ctskeygen -n -m rsa512 -p /mysec/public -q /mysec/private

��

/usr/sbin/rsct/bin/ctskeygen ctskeygen ��� �����.

��

/usr/sbin/rsct/cfg/ctsec_map.global

� � ID �� �� �����. � ���� ���� �� �� ���

� � �� ���� � RSCT ���� � ����� ��� �� �

�� �����. ���� �� ID �� �� �� /var/ct/cfg/ctsec_map.

global� ���� ���� � ��� �����. ���� � ��� �

�� ��� ��� � ��� �� ��, ���� �� ID �� ��

���� ����� ���.

/var/ct/cfg/ctsec_map.local ���� �� ID �� ��� �� �� ���. � ��� � ��� �

��� �� � � ���� �� ��� �� ���.

/var/ct/cfg/ctsec_map.global ���� �� ID �� ��. � ���� ���� ��� ���� ID �

� ��� ����� �� ���. ���� � ��� ���� � � ID

�� �� ��� �����. ���� � ��� �� ��, � � ID �

� �� ���� � � � �� ��� ���� ���.

�� ��

��: ctsthl

�: ctcasd

��: ct_has.pkf, ct_has.qkf, ct_has.thl

ctsnap ��

��

RSCT(Reliable Scalable Cluster Technology) ���� �� ���, �� � �� ��� �����.

��

ctsnap [-d output_directory] [-h]

578 �� ���, � 1 �

Page 595: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

ctsnap ��� �� ���(BOS) � �� ��� RSCT ���� �� ���, �� � �� ��

� �����. ctsnap ��� ctsnap� ���� �� �� ���� ���� �����. ��� ���

�� � ���� �� � ���.

v �� �� �� ���(IBM.AuditRM)

v ���� � ���(ctsec)

v ��� �� ���(IBM.ConfigRM)

v � �� �� �� ���(IBM.DMSRM)

v ��� ��(ha_em)

v ��� �� �� ���(IBM.ERRM)

v �� ��� �� ���(IBM.FSRM)

v � �� ��� ��(ct_ffdc)

v �� ���(cthags)

v ��� �� ���(IBM.HostRM)

v � � API(application programming interface)

v �� ���� � ��(ctrmc)

v �� �� ���(IBM.SensorRM)

v � �� ���(cthats)

v �� �� ���(vsd) (??)

v �� �� �� �� ���(rvsd) (??)

� ��� �� � ���� �� � �� �� ���� ��� ��� ��� ���� � ��

���.

ctsnap� ��� ��� tar ��(ctsnap.host_name.nnnnnnnn.tar.Z) � �� ��

(ctsnap.host_name.nnnnnnnn.log, �� nnnnnnnn� ctsnap ��� ��� � �� � ���� host_name

� ��� ���� ���� ��)���. ���� ��� ��� � ��� �� ���� ���. �

��, � ��� /tmp/ctsupt ����� ���.

���

-doutput_directory

�� ����� �����. � � ����� /tmp/ctsupt���.

-h �� ��� ��� ���� �����.

��

�� ��: �� ���� � ��� �� � ���.

�� ���(���) 579

Page 596: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

0 ��� ������.

1 ��� ������.

���

� ��� cthags � cthats ������� �����.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����.

�� ��

�� ��� �� ��(� ctsnap.host_name.nnnnnnnn.log ��)� �����.

��

1. RSCT �� ��� ����� �� �� ������.

ctsnap

2. RSCT �� ��� ��� /tmp/mydir ����� ���� �� �� ������.

ctsnap -d /tmp/mydir

��

/usr/sbin/rsct/bin/ctsnap ctsnap ��� �����.

��

/tmp/ctsupt �� ��� ��� � � ����� �.

/tmp/ctsupt/ctsnap.host_name.nnnnnnnn.log

�� ��� �� �� ��� �( �� nnnnnnnn� � ����

host_name� ��� ���� ���� ��)���.

tmp/ctsupt/ctsnap.host_name.nnnnnnnn.tar.Z

��� ���� ��� ��� tar ��� �( �� nnnnnnnn� � �

��� host_name� ��� ���� ���� ��)���.

�� ��

��: lssrc

580 �� ���, � 1 �

Page 597: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ctsthl ��

��

���� � ��� � ��� ��� ��� ��� ���� �����.

��

ctsthl {-a | -d | -h | -l | -s } [ -f trusted_host_list_file ] [ -n host_name ] [ -m method ] [ -p

identifier_value ]

��

� ��� ���� � ��� � ��� ��� ��� ��� ���� �����. -f ��� ���

� �� �, ��� � � � ��� ��� �� /var/ct/cfg/ct_has.thl� �� ��� �����. ctsthl

� �� ���� �� ���� � ��� ���� � ��� ����, ���� �� � �� �

��. ���� ����� ����, �� ���� �� �� ��� ���� ���.

v ���� ID(�� �, zathras.ibm.com �� 129.34.128.54)

v ID� 16�� �� ���� ��� ��� � ���� �� �� ��� ID �(�� �, b87c55e0)

v ��� ID� ���� ��� �(ctskeygen -i ��� �� �� ��)

��� � � ��� �����, ��� ��� 2� ���� ��� � ���� � ��� ��

� �� �� �� ��� ����. �����, ��� ID �� � ���. �� �, RSA 1024��

� ID� �� �� ��� 256� �����. �� ��� ��� �� �� ��� ���� AIX� ��

������ ��� ��� � ���. ��� �� � ���� �, � ������ ctsthl -a ���

����� xargs ��� �� ������.

� ��� ��� ��� ��� �� � ctsthl� ��� �� �� �� ��� �����.

v ���� ���� ID

v � ���� ��� ID �(���� ��)

v ��� ID� ���� ��� �

���

-a � ��� ���� ��� ��� ����� �����. -n, -m, � -p ��� ���� ��

�. ��� ���� � � ��� ��� ��� �� ��, � ���� ��� � ����

��� ��� ����� �����.

-d � ��� ��� ���� ���� ��� �����. ���� ���� ���� � -n �

�� ���� ���.

-h �� ��� ��� ���� �����.

-l � ��� ���� ��� ����� ��� �����. � ��� -a �� -d ��� ��

�� ���(���) 581

Page 598: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��, ��� � ��� ��� �� �����.� ��� -s ��� ��� ��, �� �

��� ��� ��� �� � IP ��� �� ��� �� � ����� ��� ��� ��� �

� ��� �����.

-f trusted_host_list_file

��� ��� ��� � ��� ���� ����� ����� ��� �����. � ���

���� �� ��, � � � ��� ��� �� /var/ct/cfg/ct_has.thl� �����.

-n host_name

��� ���� ���� ID� �����. ��� ����� ������ ���� ���� ��

��� �� �� IP �� ����� ���.

-m method

��� ID �� � � ��� � � �� ����� ��� �����. ctskeygen -i �

�� ��� method� �� ��� �� �� � ���.

-p identifier_value

���� �� ���� ��� ID �� �����. �� � ID� �� ���� ��� ID� 16

�� �� ���� ������. �� �, ��� ID �� 0xB87C55E0� ��, � ��� -p

b87c55e0�� �����. �����, ��� ID �� ��� ���� �� �� ��� AIX� �

� �� ���� ��� ��� �� �� ���. ��� �� ���� �� � ��, xargs�

��� ���� � ������ ��� ������.

-s �� ���� ��� �� ��� IP �� � ��� ��� �� �� ���� ����. ��

���� � ��� ��� ���� ���� �� �� ���� ��� �� �� IP ��� �

��� ��� ���� � �� �� ���� �� � �� ������.

����

network_ID

�� � ���� ID� �����. �� �� ���� ����� ������ �� �

� ID��� ���.

��

ctsthl ��� �� ��� ���� ��� �� � �� �����.

�� ��

0 ��� ��� ���.

4 ���� �� �� � ���� ����� �� ���� ��� ��� ��� �� ��

����. � ��� ��� ���� �� ����.

6 � �� �� � �� ��� ������. ��� ��� ��� �� � ����.

10 -s ��� ���� � � ��� �� ���� �� ���� ����(AF_INET) ����

582 �� ���, � 1 �

Page 599: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� � � ����. �� ���� ��� � ��� ���� ���� ��� �� �

���. �� ��� AF_INET �� AF_INET6 ������ �� ����� �� ���� �

� �, ��� �� ������.

12 �� ���� � ��� ��� ��� ��� ��� ���� � � � ��� �� ���

�.

21 � ��� ��� ��� � � ��� � �� � �� ����� � � ����.

30 ctsthl� � ��� ��� ��� ��� ��� � � ����. � ��� � � ����

� ���� � �� ��� ���� ���� ctcasd �� ��� ��� ���� �� �

���. ��� ��� �� �����.

31 -p ��� ��� �� � �� �� �� ���� ��� ����. �� ��� �� ���

� ���.

37 � ��� ���� �����. ��� ��� �� ���� -d ��� ��� �� � ��

����. ��� �� ��� ���� �� ��� ��� �� �� ����� �����.

��

v ���� � ���� �� ��� ID �� � � ��� ��� �� ���� �����.

v � ��� ���� � ���� ��� �� � ���.

v ���� � ���� ������ � ��� ���� ���, ����, ���� ���� ���

�� ���� ����. � ���� ��� ��� �� ���� �� ����� ���� ���.

�� ��

-h ��� ��� ��, ��� ���� �� ��� �����. -l ��� ��� ��, � ��� �

�� ��� ��� �� ��� �����.

�� ��

��� �� �� ��� �� ��� ��� �� ��� �����.

��

1. /mythl ��� ��� � ���� ��� ����� �� �� ������.

ctsthl -l -f /mythl

2. ��� zathras.ibm.com� �� � � � ��� ��� ��� ��� ����� �� �� ��

����.

ctsthl -a -n zathras.ibm.com -m rsa1024 -p 120400a9...

� ��� �� ID �� ��� ���� �� ������.

3. ��� 129.23.128.76� �� � � � ��� ��� ��� ��� ����� �� �� ���

���.

�� ���(���) 583

Page 600: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

ctsthl -a -n 129.23.128.76 -m rsa1024 -p 120400a9...

� ��� �� ID �� ��� ���� �� ������.

4. � � � ��� ����� zathras.ibm.com� �� ��� ����� �� �� ������.

ctsthl -d -n zathras.ibm.com

��

/usr/sbin/rsct/bin/ctsthl ctsthl ��� �����.

��

/usr/sbin/rsct/cfg/ctsec_map.global

� � ID �� �� �����. � ���� ���� �� �� � �

��� � �� ���� � RSCT ���� � ����� ��� �

� ��� �����. ���� �� ID �� �� �� /var/ct/cfg/

ctsec_map.global� ���� ���� � ��� �����. ���� �

��� � �� ��� � ��� �� ��, ���� �� ID ��

�� ���� ����� ���.

/var/ct/cfg/ctsec_map.local ���� �� ID �� ��� �� �� ���. � ��� � ��� �

��� �� � � ���� �� ��� �� ���.

/var/ct/cfg/ctsec_map.global ���� �� ID �� ��. � ���� ���� ��� ���� ID �

� ��� ����� �� ���. ���� � ��� ���� � � ID

�� �� ��� �����. ���� � ��� �� ��, � � ID �

� �� ���� � � � �� ��� ���� ���.

�� ��

��: ctskeygen

�: ctcasd

��: ct_has.thl

cu ��

��

� ���� �� �� ���� �����.

��

�� ��� �� ���� ��

cu [ -d ] [ -h ] [ -m ] [ -TSeconds ] [ -n ] [ -sSpeed ] [ -t ] [ -e | -o ] TelephoneNumber

584 �� ���, � 1 �

Page 601: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �� ��� � ����� ��

cu [ -d ] [ -h ] [ -m ] [ -TSeconds ] [ -sSpeed ] [ -e | -o ] -lLine

��� �� �� � ����� ��

cu [ -d ] [ -h ] [ -m ] [ -TSeconds ] [ -e | -o ] SystemName

��

cu ��� � ���� UNIX �� �-UNIX ���� ��� ��� ���� �� � ����(BNU)

�����. ��� �� �� ��� ���� �� �� �� �� � ���.

�� ��� ����, ���� ��� � ���� ���� BNU(�� � ����) � ��� �

��� �� �� ��� ��� �� � ���. �� ���� UNIX��� �� �� ��, ����

� ��� ���� ASCII ��� �� � ���.

�� ����� cu ��� ��� �, �� Enter �� � �� ���� ����� ���. ��

� ��� �, cu ��� � �� �� ����� �����. , �� ���� ~(�� ��)� ���

� �� ���� �� ���� ���� ��� � ���� �� ��� �����.

� ���� �� ������� ���� ���, ~� ���� �� ��� ���� �� ����

�����. �����, ���� �� �������� �� ~> � �� � �� ���� ��� ��

���� ��� �� �����. � ~> � ���� �� �����. ��� ����� ���

�� ���� ��� ���� � cu ��� �� DC3/DC1(Ctrl-Q/Ctrl-S) ���� �����.

cu ��� � ���� ���� � ���� ��� ��� ���� �� � ���. �� �, ��

� X�� cu ��� ��� ��� Y� ��� � ��� Y�� cu ��� ��� ��� Z� ��

� ���. � ��, ��� X� �� �����, ��� Y� Z� �� ������.

���� ��� Z� ����� ��� ��� ��� Z�� ��� �� � ���. ��� ����

�� �� ��� ��� (~Command) ��� X�� ��� ����, ��� ���� � �� �� ��

� ��� (~~Command) ��� Y�� ��� �� � ���. �����, �� ��� �� ���

��� � �� ����� ����, �� ��� � � � ��� cu ��� ��� � ����� �

����.

�� �, � �� ���� ���� �� �� ��� Z, X � Y�� uname -n ��(� �� �

�)� �� � ���.

$ uname -nZ$ ~!uname -nX$ ~~!uname -nY

�:

1. cu ��� ���� ���� �� �� ��� ���� ����.

�� ���(���) 585

Page 602: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2. ��� cu ��� �� ��� �� ���� ���� �� � ���.

3. �� �� �� � �� 0��, � ���� -1���.

�� ����� � ��� �� � � �� ��� ~(�� ��) �� ��� cu �� �� ��� �

� � ���. ��� �� ��� ��� �� ����� ��� ���� � �� UNIX ��� �

�� ��� �� ���� ������. ~!, ~$, ~%, ~l �� ~t �� ��� ���� � ����� �

� ���� ��� �� �� ���� �����.

~[SystemName]/%

��� ���� �� ����� �� �� ��� �����.

���

-d �� ��� �����.-e � ���� �� ����� ���� ���� �� ���� �����.-h ��(local) ��� �� ��� , ��� ��� �� �� �� ���� � ���� �� ���

�����.-lLine �� � �� ��� ��� � ��� �� ��� ��� �����. � ��� ���� �� ���

� �� �� ��� �� ��� � ��� ����� � �����. -s ��� ���� �� -l �

�� �� �� Line� �� �� Devices ��(� ��, /etc/uucp/Devices ��)�� �����.

-l� -s ��� �� ���� cu ��� Devices ��� ��� ��� �� ��� ��� �� �

�� �� ����. ��� ��, ��� ��� ��� �����, ���� ���� �� ��� ��

��, ��� ����� ����.

��� ��� �� ��� ��� ��� �(�: /dev/tty2)�� � ���� TelephoneNumber ����

���� ����. ��� ��� ��� ����, ����� ���� ���. TelephoneNumber ����

�� SystemName ���� �� ��� ���� ��� ��� �� ����.

���� ����, ���� ��� ��� �� ��� �� ��� ����. BNU(�� � ���

�)� �� � ���� � �� � ���.-m �� �� � ��� ��� ��(DCD)� ����� cu ��� ����.-n ��� �� �, ����� ��� � ����� ��� ����� ����� �� �����.-o �� ����� ���� ���� �� �� ���� ���� �����.-sSpeed �� ����� ���� ���� ��(300, 1200, 2400, 4800, 9600 �� 19200 ��(baud))� �����.

� � �� Any ���� � �� � �(�� ���) �� �� �� ��� ����� ���� ��

���. �� �� ��� Devices ��(� ��, /etc/uucp/Devices ��)� �����. �� � �� 1200

��(baud) ���� ���� ��, �� � ��� 300, 1200 �� 2400 ��(baud)� �����. ���

�� ��� � ��� �� ���� �� �, ��� 300 ��(baud)� ��� �����. �� ��� �

�� ��� � ��� ����.-t �� ���� ��� ASCII ��� ����� � �����. ��� �� � ��� �� � �� �� �

�� ��� �����.-TSeconds � � ��� ���� � � (� � )� �����. � �� 45����.

�: �� Dialers ���� ���� ���� �� WAIT=n� �� �� ���. �� n� �

� �� ���� � (� � )���.

586 �� ���, � 1 �

Page 603: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����

SystemName ��� ����, BNU(�� � ����)� �� ���� �� ���� ��. ����

� ��� ��� �� �� ���. � ��, cu ��� BNU Systems ��(� �

� ��, /etc/uucp/Systems ��)��� ��� �� �� ����� ����. ��� �

�� �� ASCII �� �� ���.

�: -l �� � -s ��� �� SystemName ��� ���� ����. �� �

� ��, cu ��� ��� �� ��� ���� ��� ��� ��� �� � �

� �� �� ��� �����.TelephoneNumber ��� ��� �� ��� ���� � ���� ����. � ��� �� �� ��� ��

��� � ���.

� ��

cu �� �� ���� � ���� ~(�� ��)� ���� �� �����.

~! ���� �� ����� ��� �� ������. ~!(���� ���) � Ctrl-D(���� ���

�)� ��� ��� �� ��� ��� �����.~%break �� ����� � ���� �����. � � ~%b�� �� �� ���.~%cd DirectoryName �� ���� ����� �� ������ DirectoryName �� ��� ����� ����.~%debug -debug ��� � �� �� �����. � ���� ~%d� �� �� ���.~%nostop DC3/DC1 �� �� ���� �� �� � ���� �����. �� ���� DC3 � DC1

��� ��� ���� ��� ���� �� � ��� �����.~%put From [ To ] �� ���� From ��� �� ���� To ��� �����. To �� ���� �� ��� �

� ���� �� �� �� �� �����. ��� �� �� �, ���� � ����

�� ��� �����. ASCII ���� � �� ��� ��� �� � ���.

~%put �� ��� ���� stty ��� cat ��� �� ���� �����. �� �� ����

� �� ��� � � ��� �� ����� � �� �� ��� ���� ���. ��� ��

�� ���� ��� �� ����. ~%put �� �� cu ��� ���� ��� � ���

���� ��� ��� �� � ���.~%take From [ To ] �� ���� From ��� �� ���� To ��� �����. To �� ���� �� ��� �

� ���� �� �� �� �� �����. ��� �� �� �, ���� � ����

�� ��� �����. ASCII ���� � �� ��� ��� �� � ���. ~%take �

� ��� ����� �� ����� echo ��� cat ��� ���� ���. �� �� ���

���� �� ��� �� �� ����� sttytabs �� ���� ���.~. ���� �� ����� ����� �� ��� ����. �� ��� ���� �� ����

��� � ����. ���, � �� ���� �� ��� ����, ���� ��� ��

� ��� �� ~.� ��� �� ��� � ���.~!Command �� ����� Command �� �� ��� �����.~$Command �� ����� Command �� �� ��� ��� � ��� � ��� ��� �� ����

� �����.~l �� � ���� TERMIO �� �� �� �����. ��� ���� �����.~t ���� ����� TERMIO �� �� �� �����. ��� ���� �����.~~String String �� �� ���� �� ����� �����.

��

�� �� ���� ��� �� ����.

1. �� ���� �����, �� �� ������.

cu venus

�� ���(���) 587

Page 604: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ���, ���� venus �� ���� ���� ���. venus ���� Systems ��(� ��,

/etc/uucp/Systems �� �� /etc/uucp/Sysfiles ��� cu ��� �� ���� � Systems ��

� ��)� ���� �� ���.

2. �� ���� ��� �� �� ��� ����� �� �� ������.

cu -s1200 9=12015558391

� ����, ����� 1-201-555-8391� �� ����� ��� &��. �� ��� ��� ��

� 9� ��� ���. �� ��� 1200�� �����.

3. ��� �� ��� ��� ���� ������ �� �� ������.

cu -l /dev/tty2

cu ��� tty2 ��� ��� ���� �����.

4. ��� �� �� ��� �� ���� ������, �� �� ������.

cu -s 1200 -l tty3

� ��� 1200 ��(baud)� ��� tty3 ��� ��� ���� �����.

5. ��� ��� �� �� ��� �� ���� ������, �� �� ������.

cu -l cul4 9=12015558391

� ����, ����� 1-201-555-8391� �� ����� ��� &��. �� ��� ��� ��

� 9� ��� ���. cu ��� cul4 ��� ��� ��� �����.

1. �� ���� ���� � ��� ��� ����� �� �� ������.

~!pg /usr/msg/memos/file10

~! �� ��� �� ����� pg ��� ��� �� ����

/usr/msg/memos ����� � file10 ��� ��� �����.

2. ��� ��� ��� �� �� ����� �� ����� ��� �����, �� �� ����

��.

~%put /home/amy/file

/home/amy/file ��� ��� ��� ��� �� �� ����� �� ����� �����.

3. �� ����� �� ����� ��� ���� �� ��� ����, �� �� ������.

~%put /home/amy/file /home/amy/tmpfile

/home/amy/file ��� �� ����� �� ����� ���� �� ��� /home/amy/tmpfile

� ����

588 �� ���, � 1 �

Page 605: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

4. ��� ��� ��� �� �� ����� �� ����� ��� �����, �� �� ����

��.

~%take /home/jeanne/test1

/home/jeanne/test1 ��� ��� ��� ��� �� �� ����� �� ����� ����

�.

5. �� ����� �� ����� ��� ���� ��� ��� ����, �� �� ������.

~%take /home/jeanne/test1 /usr/dev/jeanne/tmptest

� ���, /home/jeanne/test1 ��� �� ����� �� ����� ���� �� ���

/usr/dev/jeanne/tmptest� ����.

��

/etc/locks ��� �� ��� �����./usr/bin/cu cu ��� �� ��� �����./bin/cu /usr/bin/cu ��� �� �� ��� �����./etc/uucp/Devices �� �� ��� �� ��� ���./etc/uucp/Dialcodes ���� � ��� ���./etc/uucp/Dialers ���� �� ��� ��� �����./etc/uucp/Permissions ��� �� �� �� ���./etc/uucp/Systems ��� ��� �� ���� �����./etc/uucp/Sysfiles Systems, Devices � Dialers ��� �� �� ��� �����.

�� ��

cat ��, ct ��, echo ��, rmail ��, stty ��, uname ��, uucp ��, uuname ��, uupick �

�, uustat ��, uuto ��, uux ��.

curt ��

��

CPU Utilization Reporting Tool(curt) ��� AIX �� ��� CPU �� � ���, � �� pthread

��� ��� �� ��� ����. ��� ��� �� ����� ��� ��� ���� ���. curt

� ����� � $���� AIX �� 4 � AIX �� 5 �� ��� ����.

��

curt -i inputfile [-o outputfile] [-n gennamesfile] [-m trcnmfile] [-a pidnamefile] [-f timestamp] [-l timestamp]

[-ehpstP]

�� ���(���) 589

Page 606: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

curt ��� AIX �� ��� ���� ���� ���(CPU) �� � ���/� /pthread ��� �

�� � �� ��� ����. ��� ��� � �� ���� ��, �� ����� � $��

�� AIX �� ���� �����.

trace ��� ��� ��� AIX �� ��� �� �� ��� �� ���(�� ��)� ����

���. �� curt� ��� �� � ���� ������.

HKWD_KERN_SVC, HKWD_KERN_SYSCRET, HKWD_KERN_FLIH, HKWD_KERN_SLIH,HKWD_KERN_SLIHRET, HKWD_KERN_DISPATCH, HKWD_KERN_RESUME, HKWD_KERN_IDLE,HKWD_SYSC_FORK, HKWD_SYSC_EXECVE, HKWD_KERN_PIDSIG, HKWD_SYSC__EXITHKWD_SYSC_CRTHREAD, HKWD_KERN_INITP, HKWD_DRHKWD_PTHREAD_VPSLEEP, HKWD_PTHREAD_GENERAL

�� ��� trace ��� -j ��� �� ��, curt� �� �� ��� ���� ���.

-j 100,101,102,103,104,106,10C,119,134,135,139,200,210,38F,465,605,609

�� -J curt� � �� � ���.

���

-i inputfile � �� AIX �� ��� �����.-o outputfile �� ��� �����(� �� stdout).-n gennamesfile gennames� �� �� �� ��� �����.-m trcnmfile trcnm� �� �� �� ��� �����.-a pidnamefile PID� ��� �� �� ��� �����.-f timestamp timestamp �� �� ��� �����.-l timestamp timestamp �� �� ��� �����.-e ��� �� � pthread ��� �� �� � ��� �����.-h ��� ��(� ��)� �����.-p ��� ��� ��� �����.-s ��� ��� �� ��� ��� �� ��� �����.-t ��� � ��� �����.-P ��� pthread ��� �����.

trace ��� �� ��� ��� ��� �� ���� ��� � ��, -a ��� ��� �

�� �� �� ��� PID� ������. ��� ��� ID(10��) �� �� � �� � �

��� ���� �� ASCII ���� �� ��� ���� �����.

�� ��

curt � AIX �� ��

curt ���� � �� curt ���� ��� � � curt� ����� ��� ���� �����. � �

�� curt� �� �� AIX �� ��� �� �� �� �����. ��, ��, �� � �� ���

�� � ��� ��.

590 �� ���, � 1 �

Page 607: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

���� � �� ��� ��� �����. � ��� ��� �� ��� �� ���(�� ���)�

��� � � �����. � �� �� ����.

APPLICATION

���(���) ��� �� ���� ��� � � �.

SYSCALL

��� ��� �� ���� ��� � � �. �� ���� ��� ���� �� ���

���� ���� �� �� ����� ��� � ���.

KPROC

IDLE ��� �� � �� ���� ����� �� ���� ��� � � �. � � �

���� �� �� ���� ��� �� � �� �� ���� ����� ��� �

���.

FLIH FLIH(1� � ���� ���)�� �� ���� ��� � � �.

SLIH

SLIH(2� � ���� ���)�� �� ���� ��� � � �.

DISPATCH

AIX � �� ��� �� ���� ��� � � �. � �� �� � � � �����

��� � � �����. (, IDLE ���� � ��� �����.)

IDLE DISPATCH

� ���� ���� IDLE ���� AIX � �� ��� �� ���� ��� �

� �. DISPATCH ��� IDLE DISPATCH ��� � � ���� ��� IDLE DISPATCH

��� � � CPU(s) busy time �� TOTAL� �� � ��� ���� ����(� ��

��).

CPU(s) busy time

�����, syscall, kproc, flih, slih � � �� ��� �� ���� ��� � � �.

IDLE IDLE ����� �� ���� ��� � � �.

TOTAL

CPU(s) busy time � IDLE� �. � �� ″total processing time″��� ����.

processing total time(msec)��� �� �� � �� ��� �� � � ���� ����

�. percent total time��� �� �� processing total time� TOTAL processing total time�

� �� �����. percent busy time�� �� �� processing total time� CPU busy time

processing total time� � �� �����. Avg. Thread Affinity� � � ��� ����

��� ���� � ���� ����.

�� ���(���) 591

Page 608: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ����� ��

�� ��� ��� ��� �� ��� � � ��� ���� ��� ����� �����. � �

�� ��� � � libpthread� ���� �� ���� �� ��� � � �����.

PTHREAD

��� libpthread ���� �� pthread� ��� � � �.

PDISPATCH

libpthread � �� ��� �� pthread� ��� � � �.

PIDLE

libpthreads vp_sleep ��� �� pthread� ��� � � �.

OTHER

��� libpthread �� �� ��� ��� �� � � ��� � � �.

APPLICATION ��

��� ��� �� ���� ��� � � �.

processing total time(msec)��� �� �� � �� ��� �� � � ���� ����

�. percent total time��� �� �� processing total time� ��� ��� TOTAL processing

total time� � �� �����. percent application time��� �� �� processing total time�

APPLICATION processing total time� � �� �����. Avg. Pthread Affinity� pthread�

��� � � �� � � � ���� ����.

���� ��

��� ����� �� �� �� �� ���� ����, �� ����� ��� ����� ���

�� �� ����. ��� ��� �� �� �, ″�� ���� ��� � � �″��� ��� ″�

���� ��� � ″�� �� � ���. ��� � ��� �� � ����� AIX� �

IDLE ���� � ��� �� ���, �� � ��� �� IDLE ��� � ��� ��

�����.

���� ����� ��

��� �� �� �� �� ��� ������ ����, �� ����� ��� ����� ��

� ��� ����� ����� �� ����.

pthread � ��� �� � ����� libpthread� pthread� � ��� �� ���, pthread

�� � ��� �� vp_sleep� �� �� �� �����.

����� ��

���� � �� �� ��� ����� �����. � ��� � � � � ��(Tid�) ���

�� � � �����. ��� ID(�� ��, ��� ��) � � ID� ���� � � ��,

��� application( � APPLICATION� ���) � syscall( � SYSCALL� ���) �� � � �

��� ���� �� �� �� ���� �� ��� �� � � � �� �����. ���, ��

�� � � � � �(�� �� � ��) � �� � � � �� �����.

592 �� ���, � 1 �

Page 609: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� � �� � � ��� ��� ��� ID��(Pid�) �����. � ��� � �� � � ��

� ��� ��� ����(��� ���) �����.

� ��� � �� � � �� ��� � � �� ��� ��� �����(Kproc ��). �� �

kprocs� �� �� ���� ����� �� � � operation � kernel � ��� ����, � �

��� �� �� ��� ���� ���� �� syscall � application� �� ����. kproc

� � ��, ��� ID, � ID � ��� �� kproc ���� �����. kproc ��� � ��

� �� ��� ��� ���� ���� ���.

� ��� �� �� � � Pthread ��� �����. � ��� $� � ����� ���

�� � � �����(PID�). ��� ID(�� ��, ��� ��)� ���� ���� �� ��

� �����, pthread � �� �� � � ���� ���� �� �� �� ���� �� �

���� � � � �� �����.

��� �� �� �� � ��� �� � �� � � � �� ��� �����.

�: Pid � Tid(��� ID � � ID)� �� 10��� �����.

�� �� ��

���� � �� �� ��� ��� �� �����. � ��� ��� ��� ��� �� � � ���

��. �� ��(�� �� ��� ��)� ���� ��� ��(SVC)� ��, ��� SVC� ���

�, �� ��� ��� � (���) � �� �� �� ���� �� ��� �� � � �

�� �����. ���, ���� SVC� �� ��� ��� �� � , � � � � � �����.

-e ��� �� ��, ��� SVC� �� �� ��� �� � � ��� ��� �� � , �

� � �� � � �����. �� � � ���� �� �� SVC�� ���� �� ���

���� ����� ��� �� �� ���� �� � ���. ��� � ��� � ��

� � � �� ��� �����. -s ��� �� ��, ��� ��� ��� �� �� �

(errno)� ��� �� �����.

� ��� � �� � � �� �� ��� �� �����. � � � ��� �� ���� �� ���

��� �����. ��� � � ��� � � ���� �� SYSCALL � � ���� SVC� ��

� � � ���� �� SYSCALL � � �����, � ��� � � � � ��� ��� ��

�� � �� ���� ����. �� �� �� �� � ��� � � �� ��� ���� ���� �

���.

�: ��� �� ��� �� 16��� �����. Pid � Tid� �� 10��� �����.

Pthread �� ��

���� � �� �� ��� Pthread �� �����. � ��� pthread � ��� ��� �� � �

�����. ���� ���� pthread �� ��, ��� pthread �� ��� �, �� ���

��� � (���) � �� �� �� ���� �� ��� �� � � � �� �����. ��

�, ���� pthread �� �� ��� ��� � , � � � � � �����. -e ��� ��

��, ��� pthread� �� �� ��� �� � � ��� ��� �� � , � � � �� �

�� ���(���) 593

Page 610: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� �����. �� � � ���� pthread �� ���� �� ��� libpthread �� � �

��� �� �� � ���. ��� � ��� � �� � � � �� ��� �����.

� ��� � �� � � �� �� Pthread �� �����. � � � ��� �� ���� �� Pthread

��� �����.

Flih ��

���� �� �� �� ��� Flih �����. � ��� Flih(1� � ���� ���)�� ��� �

� �����. ��� � � � ��� � Flih� �� ��� �� ���� �� �� �� �

��� �� �� Flih ��� ��� � � ���� �����. ���, ���� ��� ��� �

� � , � � � � � �����. Flih� ��� �� Flih �� � ��� ��, ��� Flih

���� �����.

� �� � � ��� ��� ����� �� ����. ���� ��� �� Flih� ���� �

� ���� �� � ���, �� Flih ���� ���� Flih ���� ���� �� �� ��

�.

� ��� � �� � � �� �� Flih ��� �� �� ���. ��� ����� ���� ��

Flih� ������. ��� � � ��� � �� �� ���� �� FLIH � � �����, � �

�� � � ��� � Flih� �� �� � �� ���� ����. �� �� �� Flih� � ���

� � ��� ��� ���� ���� ����.

Slih ��

���� �� �� �� ��� Slih �����. � ��� Slih(2� � ���� ���)�� ��� �

� �����. ��� � � � ��� � Slih� �� ��� �� ���� �� �� �� �

��� �� �� Slih ��� ��� � � ���� �����. ���, ���� ��� ��� �

� � , � � � � � �����. Slih� �� �� � ��� ��, Slih �� �� �� ���

� �����.

� �� � � ��� ��� ����� �� ����. ���� ��� �� Slih� ���� �

� ���� �� � ���, �� Slih ���� ���� Slih ���� ���� �� �� ��

�.

� ��� � �� � � Pending Slih Summary� �� �� ���. ��� ����� ���� �

� Slih� ������. ��� � � ��� � �� �� ���� �� SLIH � � �����, �

��� � � ��� � Slih� �� �� � �� ���� ����. �� �� Slih� � ��� �

� ��� ��� ���� ���� ����.

��� ���� ��

���� � ��� -p ��� �� � ����. � ��� ���� ��� ���� �� ��

� ��� �����. ��� �� ����.

1. � ���� ��� ID(Pid)� ��� ��, ��� ��.

594 �� ���, � 1 �

Page 611: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

2. � ���� �� � � ID(Tid)� ���.

3. � ���� �� � Pthread ID(PTid)� ���(��� ��).

4. �����(���) � � ��� �� ��� ��� � � �����. kprocs� ��, �� �

� �� ��� ��� � � � �����.

5. ����� ��� ��� � , pthread ���� ��� � , libpthread � ���� ��� �

� vp_sleep�� ��� � � ����. ��� ���� �� Ptid� � ���� �����.

6. � ���� pthread� �� ��� Pthread ��� ����� �� ��. -e �� �� � ���

�� ���.

7. � ���� � � �� ��� ��� ��� ����� �� ��. -e �� �� � ���

�� ���.

���� � ��� �� � syscall �� � �� � � � �� ��� �����.

��� ��� ��

���� � ��� -t ��� �� � ����. � ��� ���� ��� � � �� ���

��� �����. ��� �� ����.

1. � � � � ID(Tid) � ��� ID(Pid)� �� ��� ��, ��� ��.

2. �����(���) � � ��� �� ��� ��� � � �����. kprocs� ��, �� �

� �� ��� ��� � � � �����.

3. � � � �� ��� ��� ��� ����� �� �� � -s ��� ��� ��, ��� ��

� ��� ��� �� ��� �����. -e �� �� � ��� �� ���.

4. ��� �� � � �� � ��� �� � � ��� ���� ��� ����

� ���� ����.

5. � �� ���� ���� � CPU� � � � ��� �� �����.

6. � � � ��� �(� 7� ��� � ���� ���� ����).

7. �� ��� ����� �� � ���� �, �� � �� ��� � � ��� � � ��

�� ���� INTMAX� ���� ��� �� � ��� �� �����. � �� ��� �� �

��� �����.

8. � � �� �� � � � � � �� ��� � ����� � �� � (, � �

����� �� ��� � � ����� � �� � ).

9. � � � ���� � Flih� ��� ��� �. � ��� ��� � (DSI �� ISI�

��)� �� ��� � ��(IO� ��)� � � � ���� � ��� ��� ��� �

��� �� ��� �� �� �� ���.

� � � ��� ����� � syscall �� � �� � � � �� ��� �����.

��� Phread ��

���� � ��� -P ��� �� � ����. � ��� ���� ��� pthread� �� ��

� ��� �����. ��� �� ����.

�� ���(���) 595

Page 612: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

1. � pthread� Pthread ID(Ptid) � ���ID(Pid)� ��, ��� �� ��� ��.

2. �����(���) � � �� ��� ��� � � �����.

3. ����� � ����: pthread ���� ��� � , pthread � ��, vp_sleep(pthread ��)

� �� ����� � .

4. � pthread� �� ��� ��� ��� ����� �� �� � -s ��� ��� �� ��� ��

� ��� ��� �� ��� �����. -e �� �� � ��� �� ���.

5. � pthread� ��� Pthread ��� ����� �� ��. -e �� �� � ��� �� ���.

6. ��� �� pthread� �� � ��� �� pthread� ��� ���� ��� ���

� � ���� ����.

7. � � �� � �� ���� ���� � CPU� pthread� � ��� �� ���

��.

8. pthread� � ��� �(� 9� ��� � ���� ���� �).

9. �� ��� ����� �� � ���� �, �� � �� ��� pthread� ��� pthread�

���� ���� INTMAX� ���� ��� �� � ��� �� �����. � �� ��� �

� ���� �����.

10. � � �� �� � � pthread� �� ����� �� � �� ��� � ����� �

�� � (, pthread� ����� �� ��� � � ����� � �� � )���.

11. � �� pthread� �� � ��� �� pthread� ��� � � ��� � � �

���� ����.

12. pthread� �� � �� ���� ���� � � � pthread� � ��� �� ��

���.

13. pthread� libpthread� � ��� �.

14. � � �� �� � � � � libpthread ����� �� � �� ��� � ����

� � �� � (, � � ����� �� ��� � � ����� � �� � )���.

15. � � � ���� � Flih� ��� ��� �. � ��� ��� � (DSI �� ISI�

��)� �� ��� � ��(IO� ��)� � � � ���� � ��� ��� ��� �

��� �� ��� �� �� �� ���.

pthread� Pid-Ptid�� ���� �����.

��

/usr/bin/curt curt ��� �����. bos.perf.tools �� ��� ����.

�� ��

AIX 5L Version 5.2 Performance Tools Guide and Reference

AIX 5L �� 5.2 � �� ��

596 �� ���, � 1 �

Page 613: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

custom ��

��

���� X ������ �� � � ���.

��

custom [ -h | -e Browser | [ -s ResourceFile ] [ Application ] ]

��

custom ��� ������ � ��� ���� � ���� �� ��� �����.

�� ��� ������ ��� � � ���. ��� �� ����� �� ���� .Xdefaults

��� �� �� �� � ���. Resources� ��, �� � ����� ����� ��� ��

� � �� �� �� �� ��� �����. ������ ��� ��� ��, app-custom

��� �����. �� ��� ����� �� � � ��� � ��� �� �� �����.

���

-h ��� ���� �����.-e Browser ��� ���� � ��� �����. Browser� ��� �� color, font, cursor � picture

���.-s ResourceFile �� ����� �� ���� �� ��� �����. -s ��� ���� �� ��

� �� X ��� RESOURCE_MANAGER �� ��� �� �������� �� �

�� ����. � ������� ���� �� ���, $HOME/.Xdefaults� ����.

�� � �� X Toolkit ��� ��� custom ��� �� �����. � ��� �� ��� ���

�����.

custom ��� �� ��� ��

�� �� � ��

-bg *background � �� ���

-background *background � �� ���

-bd1 *borderColor � �� �� ��

-bordercolor1 *borderColor � �� ��� ��

-bw .borderWidth � �� �� � � �� �

-borderWidth .borderWidth � �� �� � � �� �

-display .display � �� �� ��

-fn2 *font � �� �� ��

-font2 *font � �� �� ��

-fg *foreground � �� ���

-foreground *foreground � �� ���

-geometry .geometry � �� �� � �

�� ���(���) 597

Page 614: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

custom ��� �� ��� ��

�� �� � ��

-iconic .iconic On ������ ��

-name .name � �� ������ ��

-reverse *reverseVideo On �� �

-rv *reverseVideo On �� �

+rv *reverseVideo Off �� � �

-selection-Timeout .selection- Timeout � �� � � �

-synchronous *synchronous On ��� ��� �

+synchronous *synchronous Off ��� ��� �

-title .title � �� ������ ��

-xrm ��� � � �� ��� ��

-xnllanguage .xnlLanguage � �� ���

�:

1. AIXwindows � ���� �� �� ��, � ��� AIXwindows ������ ���� �� �� ����.

2. Motif ������ ����� � ��� ���� ����.

3. *(��)� ���� ��� ������ � �� ��� ��� �� ��� �����.

4. ���(.)� ���� ��� ������ � � ��� ��� �����.

����

Application �� ������ ���� ��� �����.

��

1. �� ��� ���� ��� ��� �� ������ ����, �� �� ������.

custom

2. �� ��� ��� xcalc ������ app-defaults ��� ����� �� �� ������.

custom -s/usr/lib/X11/app-defaults/XCalc xcalc

598 �� ���, � 1 �

Page 615: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

�� ��� �� �� ����� ��� ����.

listOfApps � ��� �� ��(dialog)� ����� ��� ���� � �����. ����� �� �

� app-custom ��� � ��� �� ��� ���� �� ���.

Application:app-custom[,Application:app-custom]...

�� � �� ����.

Custom.listOfApps:xclock:XClock,custom:Custom

� 100�� ������ �� � ���.colorEditor*rgbtxtPath � ��� X ���� �� � � ��� ���� � ���� rgb.txt ��� �� �� ��

� �����. � � �� /usr/lib/X11/rgb.txt��, ���� �� ���� � ������

�� �� X ��� �����.windowSearchDepth �� ��� �� ������ � � �� ���� ���. �� �� �� ����, �

�� � �� ���� �� ��� �����. � � �� windowSearchDepth ��� ��

� � � ���.timeout ������� �� �� ��� � �� ���� �����. ������ �

� ��� ���� � ���� � � �� Custom*timeout ���� �����.resourceFile ���� �� �� ���� �� ��. � �� $HOME/.Xdefaults���. -s ��� ��

�� � �� ��� � ���.appCustomPath � ��� �� ��� app-custom ��� � �� �����. appCustomPath ����

���� ��� ��� ��� �� ���� ����. �� ���, �� �� ���

�� � ���.

%N app-custom ��� ��(�� ������ �� ��� ���).

%T ″app-custom″

%L custom� �� �� ���.

%l ���� �� � .

%t ���� �� � .

%c ���� ��� � .

%: A :(��).

%% A %(��� ��).

$envvar �� � � �� �� �.

${envvar}

�� � � �� �� �.

$$ A $(�� ��).

appCustomPath� � � �� �� ����.

$HOME/%L/%T/%N:\$HOME/%T/%N:\/usr/lib/X11/%L/%T/%N:\/usr/lib/X11/%T/%N

�� ���(���) 599

Page 616: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

topEditHighlight,

bottomEditHighlight,

foregroundEditHighlight,

backgroundEditHighlight

���� �� ����� �� � ������ ����� �� � ����� �����.

� ��� ���� �� �� , �� , �� � ��� �� �� � ��� ���

��.

pictureEditor*editor �! ���� ��� �! �� �� �� ��� �� ��� �� � ���. ���

� ��� ���� ���� ��� �������, ���� � �����.

Custom*pictureEditor*editor ��� � ��� ��� �����.

Custom*pictureEditor*editor ��� � ��� ��� �����. � ��� \n�� �

� ��� ����. ���� �� ��� � �� ���� ���� � �� ��� ��

���. � �! �� �� � �� ��� ���� ����� ���� �����. �

��� �� � � ���� �� ����.

Custom*pictureEditor*editor:/usr/dt/bin/dticon -f \n/usr/lib/X11/bitmap�: �� ���� ��(CDE)� ��� �� � � ���� /usr/dt/bin/dticon� ���. ��

�(�� ��)� ��(�� ��) ��� �����. dticon ��� XPM2(X Pixmap ��

2 Enhanced) �� �� XPM3(X Pixmap �� 3)�� ��� ���� ����. �� XPM2

��� AIXwindows �� 1.2.5� �� ��� X ����(xdt)�� ��� ����, XPM3�

CDE�� ���� �� XPG3 �� �����. ���, �� ��� XPM3 ���� �

���� ���. CDE� ��� XPM2�� XPM3 ���� � � � ���� ���

���./usr/bin/X11/bitmap ��� XPM2 �� XPM3 ���� � ���� ��� ��� ��

������. �� ��� ���� ����. bitmap ��� ���� ��

/usr/lib/X11/app-defaults ����� ��� app-defaults ��� ���� �� �����.

���� � ��� /usr/lpp/X11/Xamples/programs/bitmap ������ �� �� ���

������.

xmkmf;make install

600 �� ���, � 1 �

Page 617: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� ���� � � ���� ��(� �� �� ��)� �� � ���.

custom(Custom)startupDialog_popup(XmDialogShell)

startupDialog(XmSelectionBox)helpDialog_popup(XmDialogShell)

helpDialog(XmForm)saveDialog_popup(XmDialogShell)

saveDialog(XmSelectionBox)colorEditor_popup(XmDialogShell)

colorEditor(XibmColorEditor)fontEditor_popup(XmDialogShell)

fontEditor(XibmFontEditor)pictureEditor_popup(XmDialogShell)

pictureEditor(XibmPictureEditor)cursorEditor_popup(XmDialogShell)

cursorEditor(XibmCursorEditor)selectmanyEditor_popup(XmDialogShell)

selectmanyEditor(XibmSelectManyEditor)filenameEditor_popup(XmDialogShell)

filenameEditor(XmFileSelectionBox)mainWindow(XmMainWindow)

menubar(XmRowColumn)form(XmForm)

appClassLabel(XmLabel)appClass(XmLabel)groupMenuLabel(XmLabel)groupMenu(XmRowColumn)scrolledGroup(XmScrolledWindow)

scrolledGroupForm(XmForm)(XmLabelGadget)TypeField(XmTextField)TypeButton(XmPushButton)

� �, Type� color, font, picture, cursor, selectmany, filename, selectone, string �� number

��� �� � � ��� � ���.

�� ��

� ��� �� �� ��� �����.

0 ��� ��� �����.>0 �� ��� �����.

��

/usr/bin/X11 �� ���� ��� � custom ��� �� �����./usr/lib/X11/app-custom �� ������ �� ��� ��� ���./usr/lib/X11/locale/app-custom �� ���� �� ��� �� ������ ��� �� ��

� ���./usr/lib/X11/app-defaults/Custom �� ��� �� � � ���� ���./usr/lib/X11/locale/app-defaults/Custom ��� ���� ��� ����� �� ��� �� � � ���

� ���.

�� ��

AIX 5L Version 5.2 AIXwindows Programming Guide� How to Start the Customizing Tool.

�� ���(���) 601

Page 618: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cut ��

��

��� ��� �� ��, �� �� �� �����.

��

cut { -b List [ -n ] | -c List | -f List [ -s ] [ -d Character ] } [ File ... ]

��

cut ��� ��� ��� ��, �� �� �� ���� � ��, �� �� �� �� ���

�����. File ���� ���� �� �� cut ��� �� ��� ����.

-b, -c �� -f ��� ���� ���. List ���� ��� ��, �� �� ����� �� �

�(������)� ������. ��� � ��� � � �����. � ��� ��, �� �� �

� ���� List ���� # �� ����.

1,4,71-3,8-5,103-

�� -5� � ���� �� ����� �� ��� ���� 3-� � ���� ������ �� ���

�����.

�� cut ��� ���� ��, List ���� ���� �� ��� �� ��� ��� �� ��

� �� � ���. � ��� �� � ���� �� �� ��� �����.

�� grep ��� ��� �� ��� �� ���� �� paste ��� ��� ��� �� ���

� ���. ���� �� ��� ����, cut� paste ��� ������.

���

-b List �� �� �����. -n ��� ���� �� �� � �� �� �� �� �

� ��� �����.-c List �� �� �����. �� �, -c 1-72� ����, cut ��� ��� �� � 72�

� �����.-d Character ���� -f ��� �� � Character �� ��� ��� � ���� �����.

�� ��� �� �� ��� �� �� ��� �� ��� �� ���.-f List � �� ��� � ��� � ��� �� ���� � ��� ���� � ���� �

����. �� �, -f 1,7� ��� ��, cut ��� �� � ��� �� �� ���

�����. -s ��� ���� �� ��, �� � ���� ��� cut ��� ��� �

� �����(�� � ��� ��).-n �� �� ��� � �����. -b ��� ��� ������. ��� ��� ��

� -b ��� List �� �� � � ��� ��� �����. ��� �� �� �

�� �����.-s � ��� ���� �� �� �����. -f ��� ��� ������.

602 �� ���, � 1 �

Page 619: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

� ��� �� �� ��� �����.

0 �� �� ��� ���� ��� ���.>0 ��� ������.

��

1. ��� �� � �� �� �����, �� �� ������.

cut -f 1,5 -d : /etc/passwd

� ��� ��� �� ��� ��� �� � �� ��� �� �� �����. �� ����

��� (-d :) � �� � �� �� �(-f 1,5)���.

�� �, /etc/passwd ��� �� � � ��,

su:*:0:0:User with special privileges:/:/usr/bin/shdaemon:*:1:1::/etc:bin:*:2:2::/usr/bin:sys:*:3:3::/usr/src:adm:*:4:4:System Administrator:/var/adm:/usr/bin/shpierre:*:200:200:Pierre Harper:/home/pierre:/usr/bin/shjoan:*:202:200:Joan Brown:/home/joan:/usr/bin/sh

cut ��� �� ����.

su:User with special privilegesdaemon:bin:sys:adm:System Administratorpierre:Pierre Harperjoan:Joan Brown

2. ���� ��� ���� ��� �� ����� �� �� ������.

cut -f "1 2 3" -d : /etc/passwd

cut ��� �� ����.

su:*:0daemon:*:1bin:*:2sys:*:3adm:*:4pierre:*:200joan:*:202

��

/usr/bin/cut cut ��� ���.

�� ���(���) 603

Page 620: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

grep ��, paste ��, sh ��.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� �� ����� ���� ���� �

� � �� ��� �� �����.

AIX 5L �� 5.2 ��� ��� ��: ��� � ��� ��� �� ��� ����� ��� ��

���� �� �����.

cw �� checkcw ��

��

troff ��� �� �� �� ��� ����.

��

cw [ +t | -t ] [ -d ] [ -f Font ] [ -l Delimiter ] [ -r Delimiter ] [ File ... ]

checkcw [ -l Delimiter ] [ -r Delimiter ] [ File ... ]

��

cw ��� �� �(CW) ��� ��(typeset) � ��� ���� ��� troff ��� ������

�. ��� ���� ��� �� �� ��� ���� -(�� ��)� ���� ��, cw ��� �� ��

� ����. cw ��� �� ��� �����.

� ��� �� ��� � �� � ������� ��� ���� ���, � ��� ��� ���

��� � ��� ��� � ��� � ��� ��� ��� �����. cw ��� Times Roman

��� �� ���� � ��� ����.

CW ��� ��� �� ��� �����. � ��� ���� �� ��� �� ��� ���� ��

� �� � � �� ��� ���. ����, CW ��� ���� ��� ������� �� cw

��� ���� ���.

CW ��� �� 94� ASCII �� ��� ���.

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!$%&()`’*+@.,/:;=?[]|-_^~"<>{}#\

� ��� �� 4�� troff ���(�� ��� � ���� ��� � � ���)� �� ���� 11�

� � ASCII ��� �����.

cw ��� ��� �� ���� ��� 5�� �� �� �����. �� �� troff ��� ���! �

���. cw ��� � � ��� ��� �����. ���, ��� troff ����� �� � ���. �

604 �� ���, � 1 �

Page 621: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��, .CW � .CN ���� ��� �����. 5�� ��� �� ����.

.CW CW ���� �� ��� ��� �����. � ��� � � �����. ��� cw

����� �� ��� �� �� ���(�� ����) �� � ���..CN CW ���� �� ��� �� �����. � ��� � � �����. ��� cw �

���� �� ��� �� �� ���(�� ����) �� � ���..CD � ��� ��� � ���� ����. ��� cw ����� �� ��� �� �

� ��� �� ����) �� � ���. � ��� ��� ��� ����� �� �

�� �� ���� ����..CP Option-list �� ��(troff ��� ��� �� ��)� CW ��� ��� �� ��� ��� �� �

�� ��� � ��� ��� �����..PC Option-list .CP ���� �� ��� ���. � � ��� ��� CW ��� ���� �� ���

��� �� ��� �����.

.CW � .CN ��� CW ��� ��� � ��� ���� ��� �� � ���. �����, cw

��� �� �� �����. � ���, .CW� .CN �� � ��� �� ��� � ��� ���

��, .CD ��� ��� ��� �� 4� ��� �����. �� cw ��� �� �� � � �� .(��

�) � ’(������)� �� \(���) � fi �� ff� �� ��� troff ������ ����. -t �

�� ��� �� �� �� � ��, �� ���� troff �� �����. �� ��� cw

��� .CW � .CN ���� �� �� �� ��� ������ ����.

�� -l � -r ��� ��� .CW � .CN ��� �� ��� ���� �� � ���. ���

��� �� �� ���� CW ��� ��� ��� ��� � ����. cw ��� ��� ��

� ��� .CW/.CN ��� � ���! �����. �, � �� ��� ���. .CW/.CN � ��

� ��� � CW ��� �� �� �� ��, �� �� �� ��� �� ����� �� ��

��� ��� �� �� ����. ���� .CW/.CN ���� ��� �� �� ����.

checkcw ��� .CW/.CN �� �� �� � � � ���� �� "�� ����. � ��� ��

�� �� ���� �� �� � �� �� �� �����.

�:

1. .(���) �� \(���) ���� ����� ���.

2. �� CW ��� �� Times Roman ��� � ���� ����. �� �, CW &(���)

� � �� Times Roman ,(��) ��� � ��� � ��� ����. � ����, troff

�� � 1/4 �� ��� ���� �� ��� ���.

3. cw ���� �� troff �� �� �(���.

4. mm ��� ��� � mv ��� ����� �� � ����� ��� .CW � .CN ����

�� ��� ���. ���� ���� ���� ��, .CW ���� troff ��� �(.nf) �

� ������ .CN ���� �� �(.fi)� ����� �����.

5. �� �� ���� ���� CW ��� ��� ��� �� ��� ��� �����. ��

��� �� �, �� ��� ���� 1��� �� �� � ���. CW ��� 9����

�� �, � �� 12��� �� ��� �����.

�� ���(���) 605

Page 622: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

6. CW ��� � ��� ��� ��� � �� ���. � ��, �� ��� ��� cw

��, tbl ��, eqn �����. ��, ���� CW ��� ���� ��� �� �� ����

� ��� CW ��� ���� ����. cw ��� tbl �� �� ��� ���� ��� �

����. CW ��� ��� ���� �� �����.

7. CW ����, !���� Backspaces �� �� �� �� � ���. .CW/.CN � � �

�(, Backspaces �� ��� �� ��)� ��� ��� � ��� �����, ���

��� !����� Backspaces �� � � ���� ���.

8. IBM 3816 Pageprinter� �� �� ���� CW ��� ����. � ��� ��

troff can’t open /usr/lib/font/devNAME/CW.out ��� �� ���. troff ��� CW �

��� �� � 3� � ��� �����.

����

File �� ���� ��� ��� ��� ��� � cw ���� �� �� troff � �� ��� �����.File .CW � .CN � �� �� � � � �� ���� ��� � checkcw ���� �� �� troff � �

� ��� �����.

���

+t �� �� �����. (��� � ����.)-t �� �� �����.-d troff �� � ���� �� �� ��� �� �� ���� �����. � ��� ���� � ����.-fFont Font �� �� cw �� ��(� �� 3�� ���� ��)� �����. -f5 ��� �� � � ��� ��

�� ��� ���� ��� ���� �����.

�: � ��� ������ �� �����.

-lDelimiter �� ���� Delimiter �� ��� 1 �� 2� ���� �����. �� ���� �

�� �� ���� ����.-rDelimiter � � ���� Delimiter �� ��� ���� �����. � � ���� � ��

�� ���� ����. �� � � � ���� �� � ���. (�� � �� ��

��.)

�� ��

eqn ��, mmt ��, tbl ��, troff ��.

mm ��� ���, mv ��� ���.

cxref ��

��

C � C++ ��� �� �� ���� ����.

606 �� ���, � 1 �

Page 623: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

cxref [ -c ] [ -o File ] [ -qOption ] [ -s ] [ -t ] [ -w Number ] [ [ -D Name [ =Definition ] ]

[ -I Directory ] [ -U Name ] ] ... [ -NdNumber ] [ -NlNumber ] [ -NnNumber ] [ -NtNumber ]

File ...

��

cxref ��� C � C++ ��� File� ���, cpp ��� ���� �� ��� #define ����

��� �� �� ��� ����. �� ��� ���� ��� �� �� ���� ����� �

� ��� �����(-c ��). �� ��� � �� ���� �� �����. ��� ��� ��

� ��� ���� �� ��, ���� ���� ����. ��� �� ��� � ��� �� �, *(�

�)� � �� �����.

���

-c �� �� ��� � �� ��� ��� ���� �����.-o File ��� File� ��� �����.-s �� �� ��� ���� ����.-t ���� �� 80�� ����.-w Number ���� �� Number� ��� ��� �� ��, �� Number� 51 ��� 10� �����. Number

� 51 �� ��, ���� �� 80����.-NdNumber �� �� ��� Number� ����. � �� 2000���.-NlNumber �� �� �� Number� ����. � �� 8000���.-NnNumber �� �� ��� Number� ����. � �� 1500���.-NtNumber �� �� �� Number� ����. � �� 1000���.

�� , cxref ��� cpp ��(��� ����)� � ��� �����.

-D Name[=Definition] #define ������ �� Name� �����. � � ��� 1���.-I Directory � ������ ��(/)� ���� �� ��� #include ��� � � �� ����

������ ���(cpp �� ��).-U Name Name� �� �� �� ��� �����. �� Name� ������ �� ��� ��

� �����.-qOption ����� -qOption� �����. �� �, -qmbcs� �� ���� ��� �� ��

�� ����, -qidirfirst� #include file_name ����� ��� ��� �� ��� �

����.

��

��� �� 80�� ���, stdin1.c� stdin2.c� ��� �� �� ���� �����, �� ��

������.

cxref -c -t stdin1.c stdin2.c > output

��

/usr/ccs/lib/xpass C ���� first-pass� ��� ��./usr/ccs/bin/cxref cxref ��� ���.

�� ���(���) 607

Page 624: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

cpp ��.

608 �� ���, � 1 �

Page 625: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��. ����

� ��� ��� ���� �� � ������ �� ����.

IBM� � ���� � �� � � ��, ��� �� ��� ���� �� �� ���. �� ��

� � �� � ���� �� ��� �� IBM ���� ������. � ��� IBM ��, ���

�� ���� ����� �� � IBM ��, ��� �� ����� �� � �� �� ���

� ����. IBM� �� ���� ���� �� �, ��� ��� ��, ��� �� ���� � �

� �� ���. ��� �IBM ��, ��� �� ���� � �� �� � ��� ���� ��

���.

IBM� � ��� ��� � �� ��� �� ��� ���� �� �� �� �� �� � ���.

� �� ����� �� ��� �� ������ � �� �� ����. ����� �� ����� �

�� ������.

135-270

����� ��� ��� 467-12, ��������

�� ��.�.� ����

�����

����: 080-023-8080

�� ��� ���� ���� ���� �� ����� ���� ����. IBM� ��� �� ���, �

� � �� ���� ��� �� �� ��� ��� (�, �� ��� �) ���� �����

��� �� ���� � �� "�� ��" �����. �� ����� �� ��� ��� �� �

� ��� ����� ���� ����, � ��� ���� �� �� ���.

� ���� � ��� ��� ���� ���� ��� � � ���. � ��� ����� ��

�, � ���� �� �����. IBM� � ��� ��� �� �(��) ���� �� ����

���� � �(��) � � ���.

(1) ����� �� ���� �� ���(� ��� ��) � �� �� �

(2) ��� ��� �� ��� ���� ��� ��� ��� ���� ���� � ��� �����

�.

135-270

����� ��� ��� 467-12, ��������

�� ��.�.� ����

�����

��� ��� � �� � ��(�� �, ��� �� ��)� �� �� � ���.

© Copyright IBM Corp. 1997, 2003 609

Page 626: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

� ��� � � ����� � ��� � � ���� �� �� ��� �� ����� � ��

� IBM� IBM �� ��, IBM ��� ���� ��(IPLA) �� �� ��� ��� �� ��� ��

��.

2 ��(DBCS) ��� �� ���� ��� �� IBM ������ ����� � ��� �� ��

��� ���.

IBM World Trade Asia Corporation

Licensing

2-31 Roppongi 3-chome, Minato-ku

Tokyo 106, Japan

IBM� ��� ��� ���� �� � ��� ����� ��� ���� ��� ��� ��� ��

��� �� � ���.

�IBM ��� �� ��� � ��� ���, �� �� �� �� �� ����� �� ����. IBM

��� ��� ��� ����� �����, �IBM ��� ��� �� �, �� �� �� ��

� ���� � ����. �IBM ��� �� �� ����� � ��� ���� �����

�.

� ���� �IBM� � ���� �� ��� ��� ���, �� ����� � � ���� &���

� �� �� ����. � � ���� ��� � IBM �� ��� ��� ���� � � ��� �

��� �� �� ��� ��� ���� ���.

� ���� ��� ���� �� ���� �� � ���� �� ��� � ���. � ���

� ��� ��� ���� ���� � ��, ��, �� � ��� ��� �� � ���. � ��

� �� ��� ��� �� �� �� � ��� ������ �� ���� �����.

���:

� ���� � �%���� ��� ��� � �� ��� � �� ������ � �

��. ��� ��� �� ���� � ��� � �%�� ����� ��� �����(API)

� ���� ������ ��, ��, �� �� �� ���� �� ���� � �� ���� �

�� � �� ��, �� � �� � ���. ��� �� ���� �� ����� ��� ����

�� ����. ��� IBM� � �� ���� �, ��� �� �� ��� ����� ����

����. ��� IBM� ����� ��� �����(API)� ���� ������ ��, ��, �

� �� �� ���� �� ���� ��� �� ������ ��� � �� ��, �� � ��

� ���.

� ��� ��� �� � ���� ��� ���� ��� ����. ��� � ���� ���

��� �� �� � ���. �� �� �� � � � ����� ��� � � ��� ���

610 �� ���, � 1 �

Page 627: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���� ����� ���� � ������ ���� �� ����� �� � ����. ��, �

� �� ��� � �� ��� �� ��� �� � ���. � ��� ���� � ���� ��

�� �� ���� ���� ���.

��

�� � � �� ���� ���� IBM Corporation� �����.

AIX

AIX 5L

IBM

UNIX� � �� �� ���� ���� Open Group� �������.

�� ��, �� �� ��� ��� � ��� �� �� �������.

��. ���� 611

Page 628: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

612 �� ���, � 1 �

Page 629: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��

����� ��

�� � 452

�� � 137

���� � 142

�� 148

�� � 136

��� 140

�� � � 137

�� ���

�� � �� � 136

�� �

��� ����� �� �� 458

� �� 599

��

� 221

� �� ��� 94

�� 520

backgammon 173

�� ��� 214

��� ������

PS/2 ��� �� �� 32

��� ��

�� 432

��

�� �

chgrpmem �� �� 358

� �

chgroup �� �� 354

��� ��� �

chgrpmem �� �� 358

�� ���

�� ��

cthagsctrl 553

�� 557

�! ���

��� � �� �� 600

�� �� ��

�� 181

����� ��

��� ��

cplv �� �� 512

���� ���

autoconf6 150

��� ��

�� ��

cplv �� �� 512

� � 370

������� ����

����� �� 116

����

�� � �� 127

�� � 401

�� ��� �� 75

�� ���, �� 75

�� ��

�� 475

�� � 277

�� ��� ��� ���

bootp ��� dhcp ��� �

bootptodhcp �� 229

dhcp ���� bootp �� ��

bootptodhcp �� 229

����

�� ��� �

chgrp �� �� 357

�� � 411

� 275

�� 275

���� ��

NFS ������

chnfsexp �� �� 385

bootpd 227

ctcasd 550

��� ��� 25

��� � 314

© Copyright IBM Corp. 1997, 2003 613

Page 630: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� � �� 314

��� �� � �� 305

��������

�� �� 90

����� � 369

����, � 369

�� ��

� � �� 71

��� ���

���� �� �

checkeq �� 340

checkmm �� 340

��

��� ������ �� 202

� 481

��

��� ����� 202

�� 84

���� ��� 462

��� �� �� 68

�� �� �� 215

�� �� ��� 215

� ��

comsat 489

� ��

�� � � ����(MH) 86

��

� �� �� �� 479

���� �� 532

addrpnode 29

arp 95

as 99

at 105

attachrset 129

bosboot 230

bterm 248

chcomg 325

chcondition 329

�� (��)

chfs 346

chnfsexp 385

chresponse 404

chrsrc 413

chsensor 420

copycsmpkgs 497

cplv 512

cpu_state 518

cthactrl 552

cthagsctrl 553

cthagstune 557

cthatsctrl 558

cthatstune 562

ctmsskf 568

ctsidmck 572

ctskeygen 575

ctsnap 578

ctsthl 581

custom 597

�� �� �� 479

�� �� �� 3

�� ��

���

�� �� 105

��, ��

���

�� �� 105

� �

�� 52

���

�� ��� �� 181

������ � 212

� ��

�� � 205

�� ���, �

�� 251

� ��

�� �� �� 54

��

�� �� �� 69

614 �� ���, � 1 �

Page 631: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� ��

(MH) �� 490

� ��, � 418

�� �� ���

chpath �� 391

�� ��

��� �� � � 399

� �� 448

�� ��

bosboot �� �� 230

��� �� �(ATM) �����

�� �� �� � ��

arp �� �� 95

��� � �� ��

�! ��� 600

������

��� � � 426

� � 439

� � � 409

�� � 389

gecos �� �

chfn �� 343

��� ��� �� ���� �� 335

���� ���

��� ���� 11

� �� 13

�� �� ���� �� 13

����� �� 316

�� � �

�� 1

�� � �� 8

��

� 3

��� ����

acctcon �� �� 15

acctprc1 �� �� 15

acctprc2 �� �� 15

��� ���� ��

�� 5

utmp � �� 17

� ��

��� ���� �� ��� �� 186

� ��, ��� 235

����

SRC ���� �� �� 422

���� �� � �� 423

����� �� � �� 423

�����

�� ���

�� 557

�� ��

cthactrl 552

�� ��

cthagsctrl 553

cthatsctrl 558

� �� ���

�� 562

SRC ���� �� �� 429

����� �� � �� 431

� �� � �� 431

��� ��

�� 424

�� � �� ��� 33

�� ��

�� � ��

�� �� 99

�� ��, ���� � 548

� �

����� �� 489

� ��

� 599

Bourne 246

C 541

���

�� 52

� ��

�� �� 260

�� �� �� 261

� � � 438

� �, � 438

���

� ����� �� 584

��� ��

�� � �� 148

�� 615

Page 632: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

��� �� (��)

�� � �� � � 142

�� bin� �� 134

�� 130

��� � �

�� � � �� 183

��� ��

�� ��

��� 222

��� � �� 235

��� �� ��� 422, 429

��� ��

��� ��� ��� 333

��� ��� 333

�� ���� �

� 435

�� 435

�����

��

(MH) �� 490

��� ��

�� �� 20

��� �� �� 22

�� 18

��� �

�� �� ��

bterm �� �� 248

�� �� 366

�� � � 1

���� �� 474

���� � 548

�� ���

�� � 111

�� �� 111

�� �� ���� 111

ATE �� � 111

�� ���

ATE ���� �� �� 115

�� ��

� 42

��

�� �� 87

��� �� ��� ��

�� 227

�� � �

�� 31

����

�� ��

bosboot �� �� 230

� �� 212

��� ���(WLM)

� �� ��� �� 492

confsetcntrl �� 492

��

��� ��

bootlist 222

� � 335

�� ��� 305

�� ��� ������

�� �� ��� 305

��, ��� 305

����

��� ����

TCP/IP 353

��

� ��� � 254

��

�� ��� 557

� �� ��� 562

�� �� ���(ARP) 95

� �� ��(LF)

��� �� ��� 471

����� �� ������

� 27

� 27

�� �� � 454

�� ��, � 454

616 �� ���, � 1 �

Page 633: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

����� �� 314

�� �� �� 314

�� � 314

��

� 52

��

�� �

chhwkbd �� 360

��� �

chhwkbd �� �� 360

� �

chhwkbd �� �� 360

�� �� �� �

chhwkbd �� �� 360

�� �� �

chhwkbd �� �� 360

��� �� �� ��/�� ���

chhwkbd �� 360

�� �

� �� �� ������ �

chkbd �� �� 364

��

.Bidi-defaults 250

����� �� 436

�� �� � 436

��

�� ��� 462

dialing an attached 545

�� �� ��

��� 41

HFT � � 42

�� �� ��

BIDI �

bterm �� �� 248

��

��� � �� ��(LF)� �� ���� ��� 471

��� �� ��� � ��� �� � �� ��(LF)� �

�� 471

� �� ���

�� ��

cthatsctrl 558

� �� ��� (��)

�� 562

�����

�� 270

�� �� � �� �� 477

��� ��� � 389

�� ��� �

chgrp �� �� 357

����� �� ������ �� 503

��� 543

� 175

�� 270

��

�� 499

� � ��

cksum �� �� 460

��

� 470

� � ��� 602

�� �� � ��

�� �� 99

�� 208

��� ����� �� ������ �� 503

�� 487, 489

��� �� �� �� 22

��� �� �� �� 18

��� �� �� �� 20

� �� 474

�� ���� �� 311

�� ����� � 111

�� ���� �� 111

�� 208

� �� 205

�� ���� �� 273

�� �� �� 606

�� 201

��� ��

cksum �� �� 460

���� 270

FORTRAN �� 103

�� 617

Page 634: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

�� (��)

SCCS

� 33

�� 33

�� �

� 377

�� ���

� 528

�� ��

�� �� 181

�� �� 155

��� �

� � 397

��

� � �� �

chfont �� �� 345

� 200

����

� �� �� �

chdisp �� �� 338

�� ��� �� 597

�� ��

�� � �� 269

���

��� � �� 236

���

�� �� � �� ���

cpu_state �� 518

��� ��

��� �� � �� �

cpu_state �� �� 518

��� ��

��� �� � �� �

cpu_state �� �� 518

��� troff �� 267

��

�� �� 263

�� ����

�� � 402

��� ����

�� � 402

�� � 342

��, � 342

���� �� �� �����

� � �� � �

chkbd �� 364

� � ���� �

chdisp �� 338

��

�� �� 181

��� 462

��� �� 269

���� �� 269

� ��

�� �� 263

Aac �� 1

accounting ��

��� ��� �� �� 456

acctcms �� 3

acctcom �� 5

acctcon �� 8

acctdisk �� 11

acctdusg �� 11

acctmerg �� 13

accton �� 15

acctprc1 �� 15

acctprc2 �� 15

acctwtmp �� 17

acct/* ��

chargefee 316

ckpacct 456

acledit �� 18

aclget �� 20

aclput �� 22

adb �� 25

addbib �� 27

addrpnode �� 29

addX11input �� 31

adfutil �� 32

admin �� 33

aixmibd � 40

aixterm command

setting the defaults 64

aixterm �� 41

618 �� ���, � 1 �

Page 635: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

aixterm �� (��)

��� ��! �� 46

�� 52

��

�� 42

� 42

���� �� 42

COPY � �� 51

PASTE � �� 51

RE-Execute � �� 51

WINDOWID �� � 43

ali �� 68

alias �� 69

alog �� 71

alt_disk_install �� 75

anno �� 84

ap �� 86

apply �� 87

ar �� 90

arp �� 95

as �� 99

ASCII ��

�� ��� ��� �� 181

at �� 105

��� � �� 128

at �

��� 534

�� 534

ate �� 110

�� ��

alter 112

break 115

connect 115

directory 116

help 117

modify 118

perform 122

quit 122

receive 122

send 123

terminate 123

ate ��� alter �� �� 112

ate ��� connect �� �� 115

ate ��� directory �� �� 116

ate ��� help �� �� 117

ate ��� modify �� �� 118

ate ��� perform �� �� 122

ate ��� quit �� �� 122

ate ��� receive �� �� 122

ate ��� send �� �� 123

ate ��� terminate �� �� 123

ATE ��� 112

���� ���� �� 111

��� �� 117

�� � �� �� 122

�� 110

�� ���� �� 115

�� �� ���� 111

� 122

�� �� �� ��� �� 118

�� �� 111

alter �� �� 112

at �� 105

break �� �� 115

connect �� �� 115

directory �� �� 116

help �� �� 117

modify �� �� 118

perform �� �� 122

quit �� �� 122

receive �� �� 122

send �� �� 123

terminate �� �� 123

ATE(��� �� �� ��) ��� 112

atq �� 127

atrm �� 128

attachrset 129

audit �� 130

auditbin � 134

auditcat �� 136

auditconv �� 137

auditmerge

� �� �� � 139

auditpr �� 140

auditselect �� 142

auditstream �� 148

autoconf6 �� 150

automount � 151

autopush �� 154

�� 619

Page 636: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

awk �� 155

Bbacksnap �� 174

backup �� 175

batch �� 183

battery �� 184

bdftopcf �� 200

bdiff �� 201

bellmail �� 202

bffcreate �� 205

bg �� 212

bicheck �� 214

BIDI �

�� �� ��

bterm �� �� 248

biff �� 215

bin ��

�� 134

bindprocessor �� 217

biod �(NFS) 220

BNU

� ����� �� 584

communicating with another workstation 545

bootlist �� 222

bootparamd � 227

bootpd � 227

bootptodhcp �� 229

bosboot �� 230

bosdebug �� 235

Bourne �

�� 246

bsh �� 246

bterm �� 248

bugfiler ��

Mail 251

burst �� 254

CC �

�� 541

C ��� ��

�� �� �� 514

C ��� �� (��)

�� ���� �� 274

cancel �� 263

canonls �� 267

captoinfo �� 268

cdcheck �� 279

cdeject �� 281

cdmount �� 282

cdromd �� 283

cdumount �� 286

cdutil �� 287

certadd �� 288

certcreate �� 290

certdelete �� 292

certget �� 294

certlink �� 295

certlist �� 297

certrevoke �� 299

certverify �� 301

cfadmin �� 314

cfgif � 302

cfginet � 304

cfgmgr �� 305

cflow �� 311

character classes 52

charClass resource

default table 53

chargefee �� 316

chauthent ��

�� �

� 317

chC2admin �� 318

chCCadmin �� 319

chclass �� 320

chcomg �� 325

chcondition �� 329

chcons ��

�� 333

chdev �� 335

chdisp �� 338

checkcw �� 604

checkeq �� 340

checkmm �� 340

checknr �� 341

chfilt �� 342

620 �� ���, � 1 �

Page 637: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

chfn �� 343

chfont �� 345

chfs �� 346

chgif � 351

chginet � 353

chgroup �� 354

chgrp �� 357

chgrpmem �� 358

chhbd �� 364

chhwkbd �� 360

chitab �� 362

chkey �� 365

chlang �� 366

chlicense �� 369

chlv �� 370

chmaster �� 376

chmod �� 377

chnamsv �� 382

chnfs �� 384

chnfsexp �� 385

chnfsmnt �� 387

chnlspath �� 383

chown �� 389

chpath �� 391

chprtsv �� 394

chps �� 397

chpv �� 399

chquedev �� 402

chresponse �� 404

chrole �� 409

chroot �� 411

chrsrc �� 413

chsec 418

chsensor �� 420

chservices �� 424

chsh �� 426

chslave �� 428

chsubserver �� 432

chtcb �� 435

chtun �� 436

chtz �� 438

chuser �� 439

chvfs �� 447

chvg �� 448

chvirprt �� 452

chvmode �� 454

chypdom �� 455

ckpacct �� 456

ckprereq �� 458

cksum �� 460

clsnmp �� 463

cmp �� 470

col �� 471

colcrt �� 473

colrm �� 474

comm �� 477

command �� 479

comp �� 481

compare_report �� 484

compress �� 487

comsat ��

Mail 489

conflict �� 490

confsetcntrl �� 492

copycsmpkgs �� 497

cp �� 499

cpio �� 503

cplv �� 512

CPU

�� �� � �� ���

cpu_state �� 518

cpu_state �� 518

crfs �� 528

cron � 532

cron � ��

�� 536

�� 536

�� 536

cronadm �� 534

crontab �� 536

crontab �

��� 534

�� 534

crvfs �� 540

csh �� 541

csplit �� 543

ct �� 545

ctags �� 548

ctcasd � 550

cthactrl �� 552

�� 621

Page 638: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

cthagsctrl �� 553

cthagstune �� 557

cthatsctrl �� 558

cthatstune �� 562

ctmsskf �� 568

ctsidmck �� 572

ctskeygen �� 575

ctsnap �� 578

ctsthl �� 581

cu ��

�� 584

curt 589

custom �� 597

cut �� 602

cw �� 604

cxref �� 606

Iidacct 15

IPv6 ���� ��� 150

Kkeys

rebinding 54

MMail ��

bugfiler 251

man ���

�� �� 89

MH

ap �� 86

conflict �� 490

mksysb �� �� 75

NNFS �

automount 151

bootparamd 227

NFS ��

chnfs 384

chnfsexp 385

NFS �� (��)

chnfsmnt 387

NFS �����

���� �� �� �� �

chnfsexp �� �� 385

NFS(���� �� ���) �

biod 220

NIS ��

chkey 365

chmaster 376

chslave 428

chypdom 455

NLSPATH,

�,

�� 383

nroff ��

CRT �� ��� � �� ��� 473

nroff ��

��

checknr �� 341

OOptions menu

�� 52

RRSCT(Reliable Scalable Cluster Technology)

��

cthactrl 552

SSCCS

�� ��

�� 475

�� � 277

��

� 33

�� 33

SCCS ��

admin 33

cdc 277

comb 475

smit �� 394

622 �� ���, � 1 �

Page 639: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

SNMP ����� MIB ������ 40

SRC

���� ���� �� �� 422

���� �� �� � 423

����� �� � �� 423

����� ���� �� �� 429

����� �� � �� 431

� �� � �� 431

SRC ��� ��

chserver 422

chssys 429

STREAMS ��

��

��� ��� 154

STREAMS ��

autopush 154

TTCP/IP

chginet 353

��� �� 424, 432

�� ���

��� � 382

�� ���

��� � 394

����

��� 302

� � ��� 304

�� 351

�� 302

�� �� �� � ��

arp �� �� 95

TCP/IP smit ��

chnamsv 382

chprtsv 394

TCP/IP �

cfgif 302

cfginet 304

chgif 351

TCP/IP ��

arp 95

chnamsv 382

chprtsv 394

termcap ��

terminfo ���� � 268

terminfo �� ��

termcap ���� � 268

translation bindings

default values 55

troff ��

��

checkcw �� �� 604

cw �� �� 604

troff ��, ��� 267

troff ��

��

checknr �� �� 341

XX �����

(���) �� ��

��� �� �� �� 597

��� ���(���) �� ��

��

��� �� �� �� 597

.Bidi-defaults �� 250

.Xdefaults file

overriding 58

/etc/filesystems ��

���� �

chfs �� �� 346

/etc/inittab ��

� �

chitab �� �� 362

/etc/vfs ��

���� � 447

���� � 540

�� 623

Page 640: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

624 �� ���, � 1 �

Page 641: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

IBM �� ��� �� ��

AIX 5L 5.2�� ���, � 1 �, a - c

SA30-0463-06

Page 642: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices
Page 643: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices
Page 644: AIX 5L 5 - h-polaris.tistory.comh-polaris.tistory.com/attachment/ek060000000005.pdfcpu_state .....518 craps ... AIX 5L Version 5.2 System Management Guide: Operating System and Devices

���

SA30-0463-06