SMIT ou System Management Interface Tool est une application graphique (en mode console ou X11) qui permet d'administrer
de façon simple un serveur AIX, facilitant ainsi la tache de l'administrateur système.
smit est la version graphique sous X11 de smit. Si le programme X11 n'est pas disponible, il ouvrira une console avec
la version simtty, smit sous tty.
Il suffit de modifier le grep en fonction des chemins chercher, ou de le retirer si on désire tous les fastpaths
connus par smit, pour lister les fastpath.
En particulier la vitesse et le type de processeur, la mémoire primaire et secondaire disponible,
les caractéristiques réseaux...
#prtconf | head -n 27
System Model: IBM,7040-671
Machine Serial Number: 838000C
Processor Type: PowerPC_POWER4
Number Of Processors: 3
Processor Clock Speed: 1500 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 4 batman
Memory Size: 10240 MB
Good Memory Size: 10240 MB
Firmware Version: IBM,RG050215_d79e02_r
Console Login: enable
Auto Restart: true
Full Core: true
Network Information
Host Name: batman
IP Address: 176.247.2.1
Sub Netmask: 255.255.255.0
Gateway: 176.247.2.250
Name Server: 176.247.2.15
Domain Name: mondomain.fr
Paging Space Information
Total Paging Space: 23040MB
Percent Used: 1%
prtconf peut bien sur fournir davantages de renseignements.
On obtient avec lsconf le type de serveur, la mémoire utilisée, le nombre de CPU, les modes d'adressages utilisés,
la configuration réseaux et les cartes d'entrées-sorties utilisées.
lsconf
System Model: IBM,9117-MMA
Machine Serial Number: 65BEEE2
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6_Compat
Number Of Processors: 1
Processor Clock Speed: 3504 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 2 batgirl
Memory Size: 6144 MB
Good Memory Size: 6144 MB
Platform Firmware level: EM340_041
Firmware Version: IBM,EM340_041
Console Login: enable
Auto Restart: true
Full Core: false
Network Information
Host Name: batgirl
IP Address: 176.242.2.200
Sub Netmask: 255.255.255.0
Gateway: 176.242.2.246
Name Server:
Domain Name:
Paging Space Information
Total Paging Space: 512MB
Percent Used: 1%
Volume Groups Information
==============================================================================
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 546 497 109..73..97..109..109
==============================================================================
INSTALLED RESOURCE LIST
The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
* = Diagnostic support not available.
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
+ sys0 System Object
+ sysplanar0 System Planar
* vio0 Virtual I/O Bus
* vsa0 U9117.MMA.65B5E82-V2-C0 LPAR Virtual Serial Adapter
* vty0 U9117.MMA.65B5E82-V2-C0-L0 Asynchronous Terminal
* pci6 U7311.D20.652D9AC-P1 PCI Bus
* pci13 U7311.D20.652D9AC-P1 PCI Bus
+ fcs2 U7311.D20.652D9AC-P1-C02-T1 FC Adapter
+ fscsi2 U7311.D20.652D9AC-P1-C02-T1 FC SCSI I/O Controller Protocol Device
* fcnet2 U7311.D20.652D9AC-P1-C02-T1 Fibre Channel Network Protocol Device
* pci5 U7311.D20.652D92C-P1 PCI Bus
* pci12 U7311.D20.652D92C-P1 PCI Bus
+ sisscsia1 U7311.D20.652D92C-P1-C04 PCI-XDDR Dual Channel Ultra320 SCSI Adapter
+ scsi2 U7311.D20.652D92C-P1-C04-T1 PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ hdisk2 U7311.D20.652D92C-P1-C04-T1-L8-L0 16 Bit LVD SCSI Disk Drive (146800 MB)
+ ses5 U7311.D20.652D92C-P1-C04-T1-L15-L0 SCSI Enclosure Services Device
+ scsi3 U7311.D20.652D92C-P1-C04-T2 PCI-X Dual Channel Ultra320 SCSI Adapter bus
* pci4 U7311.D20.652D92C-P1 PCI Bus
* pci11 U7311.D20.652D92C-P1 PCI Bus
+ fcs1 U7311.D20.652D92C-P1-C06-T1 FC Adapter
* fcnet1 U7311.D20.652D92C-P1-C06-T1 Fibre Channel Network Protocol Device
+ fscsi1 U7311.D20.652D92C-P1-C06-T1 FC SCSI I/O Controller Protocol Device
* pci3 U789D.001.DQD51XB-P1 PCI Bus
+ ent1 U789D.001.DQD51XB-P1-C5-T1 10/100/1000 Base-TX PCI-X Adapter (14106902)
* pci0 U7311.D20.652DCDC-P1 PCI Bus
* pci7 U7311.D20.652DCDC-P1 PCI Bus
+ ent0 U7311.D20.652DCDC-P1-C01-T1 10/100/1000 Base-TX PCI-X Adapter (14106902)
* pci8 U7311.D20.652DCDC-P1 PCI Bus
+ fcs0 U7311.D20.652DCDC-P1-C02-T1 FC Adapter
* fcnet0 U7311.D20.652DCDC-P1-C02-T1 Fibre Channel Network Protocol Device
+ fscsi0 U7311.D20.652DCDC-P1-C02-T1 FC SCSI I/O Controller Protocol Device
* pci9 U7311.D20.652DCDC-P1 PCI Bus
+ sisscsia0 U7311.D20.652DCDC-P1-C04 PCI-XDDR Dual Channel Ultra320 SCSI Adapter
+ scsi0 U7311.D20.652DCDC-P1-C04-T1 PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ hdisk0 U7311.D20.652DCDC-P1-C04-T1-L8-L0 16 Bit LVD SCSI Disk Drive (146800 MB)
+ ses4 U7311.D20.652DCDC-P1-C04-T1-L15-L0 SCSI Enclosure Services Device
+ scsi1 U7311.D20.652DCDC-P1-C04-T2 PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ L2cache0 L2 Cache
+ mem0 Memory
+ proc0 Processor
lsdev -P
3dx 03000008 usbif USB 3D mouse
PCM fcpother friend AIX SCSI/FCP Disk Path Control Module
PCM scsiscsd friend AIX SCSI/FCP Disk Path Control Module
adapter AT97SC3201_r chrp N/A
#lsdev -CH
name status location description
L2cache0 Available L2 Cache
aio0 Defined Asynchronous I/O (Legacy)
en0 Available 05-08 Standard Ethernet Network Interface
en1 Defined 04-08 Standard Ethernet Network Interface
ent0 Available 05-08 10/100/1000 Base-TX PCI-X Adapter (14106902)
ent1 Available 04-08 10/100/1000 Base-TX PCI-X Adapter (14106902)
et0 Defined 05-08 IEEE 802.3 Ethernet Network Interface
et1 Defined 04-08 IEEE 802.3 Ethernet Network Interface
fc2 Defined 0A-08-02 Fibre Channel Network Interface
fcnet0 Defined 06-08-02 Fibre Channel Network Protocol Device
fcnet1 Defined 08-08-02 Fibre Channel Network Protocol Device
fcnet2 Available 0A-08-02 Fibre Channel Network Protocol Device
fcs0 Available 06-08 FC Adapter
fcs1 Available 08-08 FC Adapter
fcs2 Available 0A-08 FC Adapter
fscsi0 Available 06-08-01 FC SCSI I/O Controller Protocol Device
fscsi1 Available 08-08-01 FC SCSI I/O Controller Protocol Device
fscsi2 Available 0A-08-01 FC SCSI I/O Controller Protocol Device
hd1 Defined Logical volume
hd2 Defined Logical volume
hd3 Defined Logical volume
hd4 Defined Logical volume
hd5 Defined Logical volume
hd6 Defined Logical volume
...
lsresource affiche les attributs de bus associés au périphérique :
lsresource -l ent0
TYPE DEVICE ATTRIBUTE S G CURRENT
B ent0 busmem 0x0000000080120000 - 0x000000008013ffff
B ent0 rom_mem 0x00000000800c0000 - 0x00000000800fffff
I ent0 busintr 131241 (A1)
On peut rechercher par classe de périphérique (option -Cc.
# lsdev -Cc tape
rmt0 Available 0G-08-02 LTO Ultrium Tape Drive (FCP)
rmt1 Available 0G-08-02 LTO Ultrium Tape Drive (FCP)
rmt2 Available 0G-08-02 LTO Ultrium Tape Drive (FCP)
rmt3 Defined 0G-08-02 LTO Ultrium Tape Drive (FCP)
rmt4 Available 0G-08-02 LTO Ultrium Tape Drive (FCP)
rmt5 Available 0G-08-02 LTO Ultrium Tape Drive (FCP)
On peut retrouver les classes possibles ainsi:
lsdev -P -H
class type subclass description
3dx 03000008 usbif USB 3D mouse
PCM ds4k-ui fcp DS3/4K PCM User Interface
PCM ds4k-ui friend Active/Passive Disk Path Control Module
PCM fcpother friend AIX SCSI/FCP Disk Path Control Module
PCM iscsiother friend AIX SCSI/FCP Disk Path Control Module
PCM otherapdisk friend Active/Passive Disk Path Control Module
PCM sasother friend AIX SCSI/FCP Disk Path Control Module
PCM scsiscsd friend AIX SCSI/FCP Disk Path Control Module
PCM sisarray friend AIX SCSI/FCP Disk Path Control Module
PCM vscsi friend AIX SCSI/FCP Disk Path Control Mo
...
#lsdev -C -l lb2
lb2 Defined 0H-08-02 Library/MediumChange
# lsdev -C -l lb0
lb0 Available 0G-08-02 Library/MediumChanger
dans ce cas le périphérique est défini mais pas available. Il faut alors soit le reconfigurer avec cfgmgr
soit trouver la raison pour laquelle il n'est pas disponible.
On a choisi ici sys0. On obtient le type du système, la mémoire du système.
lsattr -El sys0
SW_dist_intr false Enable SW distribution of interrupts True
autorestart true Automatically REBOOT system after a crash True
boottype disk N/A False
capacity_inc 1.00 Processor capacity increment False
capped true Partition is capped False
conslogin enable System Console Login False
cpuguard enable CPU Guard True
dedicated true Partition is dedicated False
ent_capacity 1.00 Entitled processor capacity False
frequency 2660000000 System Bus Frequency False
fullcore false Enable full CORE dump True
fwversion IBM,EM340_041 Firmware version and revision levels False
id_to_partition 0X800011DC24200002 Partition ID False
id_to_system 0X800011DC24200000 System ID False
iostat false Continuously maintain DISK I/O history True
keylock normal State of system keylock at boot time False
log_pg_dealloc true Log predictive memory page deallocation events True
max_capacity 2.00 Maximum potential processor capacity False
max_logname 9 Maximum login name length at boot time True
maxbuf 20 Maximum number of pages in block I/O BUFFER CACHE True
maxmbuf 0 Maximum Kbytes of real memory allowed for MBUFS True
maxpout 0 HIGH water mark for pending write I/Os per file True
maxuproc 128 Maximum number of PROCESSES allowed per user True
min_capacity 1.00 Minimum potential processor capacity False
minpout 0 LOW water mark for pending write I/Os per file True
modelname IBM,9117-MMA Machine name False
ncargs 6 ARG/ENV list size in 4K byte blocks True
nfs4_acl_compat secure NFS4 ACL Compatibility Mode True
pre430core false Use pre-430 style CORE dump True
pre520tune disable Pre-520 tuning compatibility mode True
realmem 6291456 Amount of usable physical memory in Kbytes False
rtasversion 1 Open Firmware RTAS version False
sed_config select Stack Execution Disable (SED) Mode True
systemid IBM,0265B5E82 Hardware system identifier False
variable_weight 0 Variable processor capacity weight False
Ou encore
lsattr -l lb2 -E -H
attribute value description user_settable
FCPORT_ID 0x48a400 FC Port ID True
LUNMAP_ID 0x0 Mapped LUN ID of the device True
PRODUCT_ID L700 Product ID of the device False
WW_NAME 0x2100001b32053482 WW Name of the Port False
lsdev -Ct power
hdiskpower0 Available 08-08-01 PowerPath Device
hdiskpower1 Available 08-08-01 PowerPath Device
hdiskpower2 Available 08-08-01 PowerPath Device
Pour retrouver le fils d'un périphérique on utilise lsdev -p, ce qui permet
de savoir ce qu'on risque de supprimer avec une commande rmdev -R:
#lsdev -p sissas0
sas0 Available 0A-08-00 Controller SAS Protocol
sata0 Available 0A-08-00 Controller SATA Protocol
# lsdev -p sas0
#hdisk0 Available 0A-08-00 SAS Disk Drive
ses0 Available 0A-08-00 SAS Enclosure Services Device
ses1 Available 0A-08-00 SAS Enclosure Services Device
ses2 Available 0A-08-00 SAS Enclosure Services Device
Pour retrouver le parent d'un périphérique on utilise lsparent:
lsparent -C -l cd0
sata0 Available 0A-08-00 Controller SATA Protocol
sata1 Available 01-08-00 Controller SATA Protocol
On peut ainsi remonter au slot pour retirer dynamiquement le périphérique quand on est
en lpar dynamique.
ou si l'on désire trouver le nom des processeurs d'un serveur
lsdev -Cc processor
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
proc4 Available 00-04 Processor
proc6 Available 00-06 Processor
proc8 Available 00-08 Processor
lsdev -Cc disk
hdisk0 Available Virtual SCSI Disk Drive
hdisk1 Available 01-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available Virtual SCSI Disk Drive
plus rien. sys0 est le dernier élément de la chaine.
Une utilisation courrante consiste à déterminer le pci associé au lecteur de bande ou de cdrom, afin de libérer la ressource
pour pouvoir effectuer un déplacement dynamique de celle-ci.
C'est lignes vont chercher les scripts se trouvant dans les répertoires /etc/rc.d/rc2.d etc .. ;
afin de les exécuter. On peut ainsi hiérarchiser les départs des démons, comme on le ferai sous sun ou sous linux.
Par exemple avec ssh dans /etc/rc.d/rc2.d on va trouver les scripts suivants:
# ls -ltr
total 16
-r-xr-xr-x 1 root system 308 Nov 14 16:49 Ssshd
-r-xr-xr-x 1 root system 307 Nov 14 16:49 Ksshd
# more Ksshd
#!/bin/ksh
##################################################
# name: Ksshd
# purpose: script that will start or stop the sshd daemon.
##################################################
case "$1" in
start )
startsrc -g ssh
;;
stop )
stopsrc -g ssh
;;
* )
echo "Usage: $0 (start | stop)"
exit 1
esac
lspv | head -2
hdisk1 00384f0c2dcfdd0b altinst_rootvg
hdisk0 00384f0c6b17258c rootvg active
# alt_disk_install -X
Bootlist is set to the boot disk: hdisk0
lspv | head -2
hdisk1 00384f0c2dcfdd0b None
hdisk0 00384f0c6b17258c rootvg active
#mksysb /datafs/mksysb_aix_53TL05_base
Creating list of files to back up.
Backing up 41166 files.....
41166 of 41166 files (100%)
0512-038 mksysb: Backup Completed Successfully.
lsmksysb -c -f old_mksysb_polux_220107_2330
New volume on old_mksysb_polux_220107_2330:
Cluster 51200 bytes (100 blocks).
Volume number 1
Date of backup: Mon Jan 22 23:30:46 2007
Files backed up by name
User root
5741 ./bosinst.data
9497 ./image.data
49722 ./tmp/vgdata/rootvg/backup.data
0 ./dgi
0 ./dgi/lost+found
311 ./dgi/.profile
239055351 ./dgi/CA.TDF2005.DEMAPERS.N01.GZ.gpg
1179729 ./dgi/fic_CC.gz.gpg
239054994 ./dgi/CA.TDF2005.DEMAPERS.N01.GZ
#/usr/bin/mksysb '-e' '-i' /dev/rmt27
Creating information file (/image.data) for rootvg..
Creating tape boot image......
bosboot: Boot image is 31747 512 byte blocks.
***** ATTENTION *****
The boot image you just created might fail to boot because
the size exceeds the system limit. For information about
fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
***** ATTENTION *****
.
Creating list of files to back up..
Backing up 70517 files.............
.....
70399 of 70517 files (99%)..
0512-003 mksysb may not have been able to archive some files.
The messages displayed on the Standard Error contained additional
information.
bosboot: Boot image is 31747 512 byte blocks.
Le mksysb généré se fait avec un format UDF. C'est ce qu'indique l'option -U.
Vous n'êtes pas obligé d'utiliser cette option. Par défaut le format est ISO9660.
Le format Uniniversal Disk Format (UDF) permet de manipuler directement les fichiers sur le support DVD-RAM.
En autre on peut changer facilement les fichiers bosinst.data, image.data ou
vgname.data.
/usr/sbin/mkcd -U -d '/dev/cd1' '-e' -V 'rootvg'
Initializing mkcd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating image.data file...
Creating temporary file system: /mkcd/mksysb_image...
Creating mksysb image...
Creating list of files to back up.
Backing up 70525 files.......................
70525 of 70525 files (100%)
0512-038 mksysb: Backup Completed Successfully.
Populating the CD or DVD file system...
Copying backup to the CD or DVD file system...
.............................................
.............................................
........................................
Building chrp boot image...
Removing temporary file system: /mkcd/mksysb_image...
#lsmksysb -f mksysb_batman_20110617 -L
Fileset Level State Type Description (Uninstaller)
----------------------------------------------------------------------------
BullSAN.ucode 1.0.6.9 C F Firmware for FC infrastucture
ECC.MAGENT 5.2.0.0 C F EMC SOFTWARE
EMC.CLARiiON.aix.rte 5.3.0.2 C F EMC CLARiiON AIX Support
Software
EMC.CLARiiON.fcp.rte 5.3.0.2 C F EMC CLARiiON FCP Support
Software
EMC.Symmetrix.aix.rte 5.3.0.2 C F EMC Symmetrix AIX Support
l'ODM (Object Data Manager) est une base de données qui contient
la configuration du système d'exploitation AIX . C'est un peu analogue à la base de registre de Windows.
Les principales informations stockées dans la base ODM sont:
la configuration réseau
la configuration LVM (Logical Volume Manager)
les logiciels installés
la configuration des pilotes de périphérique
la configuration matérielle
Cependant, l'ODM peut aussi contenir des informations propres à des programmes (arrêt/relance de
programmes), et de nouveaux menus qu'on aurait configurer pour se fabriquer un smit.
#getlvcb -AT hd5
AIX LVCB
intrapolicy = e
copies = 1
interpolicy = m
lvid = 00ccd2cd00004c000000010681212188.1
lvname = hd5
label = None
machine id = CD2CD4C00
number lps = 3
relocatable = n
strict = y
stripe width = 0
stripe size in exponent = 0
type = boot
upperbound = 32
fs =
time created = Sat Mar 24 00:28:22 2007
time modified = Sat Mar 24 00:28:22 2007
# lslpp -l|grep csm
csm.client 1.6.0.10 COMMITTED Cluster Systems Management
csm.core 1.6.0.12 COMMITTED Cluster Systems Management
csm.client 1.6.0.10 COMMITTED Cluster Systems Management
csm.core 1.6.0.12 COMMITTED Cluster Systems Management
Vérifiez que les services sont actifs.
lssrc -a |grep rsct
IBM.ERRM rsct_rm 614446 active
IBM.ServiceRM rsct_rm 565284 active
IBM.AuditRM rsct_rm 503910 active
ctrmc rsct 458770 active
IBM.CSMAgentRM rsct_rm 2232500 active
IBM.HostRM rsct_rm 2113706 active
IBM.DRM rsct_rm 2650154 active
ctcas rsct inoperative
ctcas n'est pas actif. C'est tout à fait normal c'est un "lazy service qui ne s'active qu'en cas de besoin.
La principale caractéristique d'AIX et en particulier pour son réseau, c'est que de nombreuses
informations sont stockées dans l'ODM ou Object Data Manager (l'équivalent de la base de registre sous windows) en plus ou en complément du
stockage standard UNIX (/etc/hosts, /etc/resolv.conf...).
Il est conseillé aux débutants ou aux administrateurs d'autres systèmes UNIX d'utiliser smit
(et les sous menus spécifiques au réseau smit chinet, smit tcpip, smit device) afin
d'assurer la cohérence du système.
Définissez l'ordre de recherche du DNS. Fixez l'ordre dans le fichier /etc/netsvc.conf.
hosts=local,bind
Ici local indique qu'on va en premier lieu chercher dans le fichier /etc/local puis bind que c'est le dns qui
est consulté. On peut évidement inverser cette ordre.
Ensuite, il faut définir dans le fichier /etc/ressolv.conf le nom ou les adresses IP des serveurs DNS, puis le nom de domaine.
Cela donne un fichier de ce type:
#no -L
--------------
General Network Parameters
--------------------------------------------------------------------------------
NAME CUR DEF BOOT MIN MAX UNIT TYPE
DEPENDENCIES
--------------------------------------------------------------------------------
fasttimo 200 200 200 50 200 millisecond D
--------------------------------------------------------------------------------
nbc_limit 768K 768K 768K 0 8E-1 kbyte D
thewall
--------------------------------------------------------------------------------
nbc_max_cache 128K 128K 128K 1 768M byte D
nbc_min_cache
nbc_limit
--------------------------------------------------------------------------------
nbc_min_cache 1 1 1 1 128K byte D
nbc_max_cache
--------------------------------------------------------------------------------
nbc_ofile_hashsz 12841 12841 12841 1 999999 segment D
--------------------------------------------------------------------------------
nbc_pseg 0 0 0 0 2G-1 segment D
--------------------------------------------------------------------------------
nbc_pseg_limit 1536K 1536K 1536K 0 3M kbyte D
--------------------------------------------------------------------------------
ndd_event_name {all} {all} {all} 0 128 string D
--------------------------------------------------------------------------------
ndd_event_tracing 0 0 0 0 64K-1 numeric D
--------------------------------------------------------------------------------
net_buf_size {all} {all} {all} 0 128 string D
tcp_pmtu_discover 1 1 1 0 1 boolean D
--------------------------------------------------------------------------------
udp_pmtu_discover 1 1 1 0 1 boolean D
--------------------------------------------------------------------------------
n/a means parameter not supported by the current platform or kernel
Parameter types:
S = Static: cannot be changed
D = Dynamic: can be freely changed
B = Bosboot: can only be changed using bosboot and reboot
R = Reboot: can only be changed during reboot
C = Connect: changes are only effective for future socket connections
M = Mount: changes are only effective for future mountings
I = Incremental: can only be incremented
Value conventions:
K = Kilo: 2^10 G = Giga: 2^30 P = Peta: 2^50
M = Mega: 2^20 T = Tera: 2^40 E = Exa: 2^60
Pour obtenir la même information à un format csv compatible excel, il faut utiliser l'option -x
les problèmes de reverse lookup retourne les codes suivants:
# mount batman:/home /mnt
nfsmnthelp: 1831-019 nas500: System call error number -1.
mount: 1831-008 giving up on:
batman:/home
System call error number -1.
Editez la table d'hotes sur le serveur distant en éditant le fichier /etc/hosts ou en utilisant smitty hostent.
showmount -e lassie
no exported file systems for lassie
root@artemis:/root# showmount -e artemis
export list for batman:
/export/MKSYSB/batman (everyone)
/export/MKSYSB/robin (everyone)
/export/MKSYSB/superman lois
/export/MKSYSB/wonderwoman (everyone)
/export/MKSYSB/catwoman batman
On remarquera que les exporatation peuvent être limitées (lois, batman).
#lsnim -l darkstar
phebe:
class = machines
type = standalone
connect = shell
platform = chrp
netboot_kernel = mp
if1 = network1 serveur 0
net_settings1 = 100 full
cable_type1 = N/A
Cstate = ready for a NIM operation
prev_state = ready for a NIM operation
Mstate = currently running
On suppose, que l'on à préparé un spot et un mksysb généréque à une version d'AIX donnée. Ici
on aura pour une version d'AIX 6.1 donnée un spot_aix61 et un mksysb_aix610.
Bien sur la version correspond à un TL (technical level) et à un SP (service pack) donné.
Je vous conseille de nommer les spots et les mksysbs sous la forme spot_aix61TL02SP03 etc.
nim -o bos_inst -a source='mksysb' -a spot='spot_aix610' -a mksysb='mksysb_aix610' -a accept_licenses=yes -a installp_flags=-cNgX darkstar
lsnim -l mksysb_darkstar
mksysb_darkstar:
class = resources
type = mksysb
Rstate = ready for use
prev_state = unavailable for use
location = /export/MKSYSB/darkstar/mksysb_darkstar_200307_0610
version = 5
release = 2
mod = 0
oslevel_r = 5200-08
alloc_count = 0
server = master
nim -o alt_disk_install -a source=mksysb -a mksysb=mksysb_darkstar -a disk=hdisk1 darkstar
#lsnim -a info -a Cstate darkstar
darkstar:
Cstate = alt_disk_install operation is being performed
info = Creating cloned rootvg volume group and associated logical volumes.
#lsnim -a info -a Cstate darkstar
darkstar:
Cstate = alt_disk_install operation is being performed
info = Restoring mksysb image to alternate disk(s).
#lsnim -a info -a Cstate ceto
ceto:
Cstate = ready for a NIM operation
lancez le raccourci smitty nim_mkres_lpp_only et répondez de lamanière suivante
Create an LPP_SOURCE
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Resource SERVER master
Input device for installation images [/livraison/AIX53TL08] +
(specify the device on the resource server)
* LPP_SOURCE Name [AIXTL08SP00]
* LPP_SOURCE Directory [/NIM/lpp_source] +
Architecture of Resource [] +
Show Progress [yes] +
Create new filesystem for LPP_SOURCE? [no] +
Filesystem SIZE (MB) [650] #
VOLUME GROUP for new filesystem [VG_NIM] +
Remove all newly added NIM definitions [no] +
and filesystems if any part of this
operation fails?
F1=Help F2=Refresh F3=Cancel F4=List
F5=Reset F6=Command F7=Edit F8=Image
F9=Shell F10=Exit Enter=Do
On peut modifier le paramètre ncargs. Ce paramètre controle la longeur maximum de la ligne de commande.
Elle inclue les variables d'environnement. Par défaut ce paramêtre est de 6 blocks de 4K soit 24K.
Les commandes suivantes permettent de lister et de modifier ce parametre.
lsattr -El sys0 -a ncargs
chdev -l sys0 -a ncargs=8
svmon -gS | pg
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
90820 - work s 6993 0 59731 64079
9002 - work kernel heap s 45702 10499 48012 60767
108646 - work s 59847 0 47074 63503
184a65 - work s 60291 0 45336 63503
2f98d - work s 2326 3 38340 40535
6c81f - work s 0 0 18640 18640
6461d - work s 12495 0 18499 21569
140954 - work s 16008 0 18374 21411
134cc9 - work s 1059 3 15549 16483
170658 - work s 13285 0 8704 14145
f893a - work s 13476 0 8362 14145
1b4ceb - work s 3028 3 7719 10358
...
svmon -gP -t 1
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
839856 ecs.guisrv 47084 8478 84636 128814 N Y N
PageSize Inuse Pin Pgsp Virtual
s 4 KB 16956 8478 84636 98686
m 64 KB 1883 0 0 1883
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
90820 3 work working storage s 6993 0 59731 64079
6c81f 4 work working storage s 0 0 18640 18640
0 0 work kernel segment s 9065 8425 5129 14156
40894 f work shared library data s 635 0 972 1545
1ac86f - work s 168 50 101 197
140bd4 2 work process private s 6 3 63 69
cc6b7 5 work working storage s 0 0 0 0
1888e6 7 work working storage s 0 0 0 0
30788 6 work working storage s 0 0 0 0
c46b5 8 work working storage s 0 0 0 0
158652 9 work working storage s 0 0 0 0
b30ad d work shared library text m 1883 0 0 1883
c0834 a work working storage s 0 0 0 0
5c913 - clnt /dev/lv_soft:119732 s 1 0 - -
54b91 - clnt /dev/lv_soft:119606 s 0 0 - -
168b5e - clnt /dev/lv_soft:119463 s 0 0 - -
2c90f - clnt /dev/lv_soft:119412 s 3 0 - -
6cc1f - clnt /dev/lv_soft:119408 s 0 0 - -
1d09f0 - clnt /dev/lv_soft:108883 s 1 0 - -
1cc03 1 clnt code,/dev/lv_soft:98486 s 84 0 - -
On peut filtrer les processus suivant une liste d'options avec les arguments qui nous conviennent.
Par exemple pour un utilisateur tous les PID et les arguments associés:
lslv -p hdisk0
hdisk0:::
USED FREE FREE FREE FREE FREE FREE FREE FREE FREE 1-10
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 11-20
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 21-30
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 31-40
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 41-50
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 51-60
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 61-70
FREE FREE FREE FREE FREE FREE FREE FREE FREE FREE 71-80
USED USED USED USED USED USED USED USED USED USED 81-90
USED USED USED USED USED USED USED USED USED USED 91-100
USED USED USED USED USED USED USED USED USED 101-109
USED USED USED USED USED USED USED USED USED USED 110-119
USED USED USED USED USED USED USED USED USED USED 120-129
USED USED USED USED USED USED USED USED USED USED 130-139
USED USED USED USED USED USED USED USED USED USED 140-149
USED USED USED USED USED USED USED USED USED USED 150-159
Ceci va permettre de choisir une politique de répartition des volumes logiques que vous allez créer (outer edge,outer middle,
center, inner middle, inner edge).
# lspv -p hdisk0
hdisk0:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-1 used outer edge hd5 boot N/A
2-110 free outer edge
111-111 used outer middle hd6 paging N/A
112-119 used outer middle lg_dumplv sysdump N/A
120-122 used outer middle hd6 paging N/A
123-138 free outer middle
139-141 used outer middle lv_dump sysdump N/A
142-149 used outer middle hd6 paging N/A
150-219 free outer middle
220-220 used center hd8 jfs2log N/A
221-221 used center hd4 jfs2 /
222-222 used center hd2 jfs2 /usr
223-223 used center hd9var jfs2 /var
224-224 used center hd3 jfs2 /tmp
225-225 free center
226-226 used center hd10opt jfs2 /opt
227-232 used center hd2 jfs2 /usr
233-235 used center hd4 jfs2 /
236-252 used center hd2 jfs2 /usr
253-267 used center hd3 jfs2 /tmp
268-270 used center hd10opt jfs2 /opt
271-328 free center
329-437 free inner middle
438-546 free inner edge
#
La commande lspv permet d'identifier l'état du volume physique. Pour cela, le disque doit être assigné à
un volume groupe. Les informations les plus utiles sont:
l'état (ctif ou inactif)
le nombre de copies PP "stale" (pas à jour)
le nombre total de PP
le nombre de PP libres
la distributions de l'espace libre dans le volume
exemple:
lspv hdiskpower0
PHYSICAL VOLUME: hdiskpower0 VOLUME GROUP: vctmapr01
PV IDENTIFIER: 005bb78fdac73c90 VG IDENTIFIER 005bb78f00004c00000001013d427f20
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 64 megabyte(s) LOGICAL VOLUMES: 3
TOTAL PPs: 159 (10176 megabytes) VG DESCRIPTORS: 2
FREE PPs: 154 (9856 megabytes) HOT SPARE: no
USED PPs: 5 (320 megabytes) MAX REQUEST: 1 megabyte
FREE DISTRIBUTION: 32..27..31..32..32
USED DISTRIBUTION: 00..05..00..00..00
Logical Volume Control Blocks (LVCB)
512 premier octet de chaque volume logique
Le logical volume control block (LVCB) est écrit dans les 512 premiers octets du volume logique.
Ce bloc contient des informations importantes comme la date de création du volume logique,
ne nombre de copies mirrorées, les points de montages possibles.
Il suffit d'importer un des disques constituant le volume groupe. Les pvid des disques constituant le volume groupe se trouvent sur le VGDA de chacun
des disques.
Exemple:
#importvg hdiskpower17
Le volume groupe est constitué de 5 disques sur une baie
#lsvg -p vdatawh01
hdiskpower19 active 1839 0 00..00..00..00..00
hdiskpower49 active 63 0 00..00..00..00..00
hdiskpower18 active 6799 200 00..00..00..00..200
hdiskpower50 active 23999 3 00..00..00..00..03
hdiskpower17 active 23999 0 00..00..00..00..0
Je prend deux disques au hassard, on retourve les mêmes pvid.
Le volume groupe est appsvg01, le volume logique est lapps0101, le point de montage /apps/websphere
, la taille de bloc est de 4096 et il est accessible en mode read/write (option-p'rw'), avec montage automatique au reboot
(option-A y).
#mklv -y lapps0101 -t jfs2 appsvg01 1
lapps0101
#crfs -v jfs2 -d lapps0101 -m /apps/websphere -A y -p'rw' -a agblksize='4096'
File system created successfully.
65328 kilobytes total disk space.
New File System size is 131072
#mount /apps/websphere
On peut alors tailler à la bonne dimension avec :
chfS -a size=4G /apps/websphere
Meme procedure pour un filesystem jfs:
#mklv -y lsystsy0111 -t jfs vsystsy01 1 lsystsy0111 -A y -p'rw' -a agblksize='4096'
Based on the parameters chosen, the new /root/test JFS file system
is limited to a maximum size of 134217728 (512 byte blocks)
New File System size is 65536
#mount /root/test
#chfs -a size=3G /root/test
Il faut utiliser reducevg en précisant le nom du volume groupe et du ou des hdisks.
#reducevg -df vg_save_data hdisk3
rmlv: Logical volume lv_save_data is removed.
rmlv: Logical volume loglv01 is removed.
ldeletepv: Volume Group deleted since it contains no physical volumes.
Si il s'agit d'une baie, vérifier qu'il n'est pas attaché à un hdiskpower
#powermt display dev=all |grep hdisk1
1 fscsi1 hdisk105 SP B0 active alive 0 0
1 fscsi1 hdisk102 SP B0 active alive 0 0
1 fscsi1 hdisk103 SP B0 active alive 0 0
1 fscsi1 hdisk104 SP B0 active alive 0 0
0 fscsi0 hdisk10 SP B1 active alive 0 0
1 fscsi1 hdisk101 SP B0 active alive 0 0
0 fscsi0 hdisk19 SP B1 active alive 0 0
0 fscsi0 hdisk11 SP B1 active alive 0 0
0 fscsi0 hdisk14 SP B1 active alive 0 0
0 fscsi0 hdisk13 SP B1 active alive 0 0
0 fscsi0 hdisk17 SP B1 active alive 0 0
1 fscsi1 hdisk100 SP B0 active alive 0 0
0 fscsi0 hdisk12 SP B1 active alive 0 0
0 fscsi0 hdisk16 SP B1 active alive 0 0
0 fscsi0 hdisk18 SP B1 active alive 0 0
0 fscsi0 hdisk15 SP B1 active alive 0 0
créons le volume groupe nommé datavg. L'option -f force la création car
le disque hdisk1 avait déjà un identifiant ou pvid ( 00ccd2cd26257aa4).
mkvg -s 128 -f -y datavg hdisk1
datavg
La taille d'un PP a été fixé à 128 Mo. On pourrait mettre une valeur plus petite, mais il faut tenir compte
de la taille du disque. En mettant 1Mo on obtiendrait ceci:
#mkvg -s 1 -f -y datavg hdisk1
0516-1208 mkvg: Warning, The Physical Partition Size of 1 requires the
creation of 70006 partitions for hdisk1. The system limitation is 16256
physical partitions per disk at a factor value of 16. Specify a larger
Physical Partition Size or a larger factor value in order create a
volume group on this disk.
0516-862 mkvg: Unable to create volume group.
Une option interessante de mkvg est l'option -B qui permet de créer des Big volume.
on verifie le vg
#lsvg data
0516-306 : Unable to find volume group data in the Device
Configuration Database.
root@ceto:/root #lsvg datavg
VOLUME GROUP: datavg VG IDENTIFIER: 00ccd2cd00004c0000000111925b7951
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes)
MAX LVs: 256 FREE PPs: 546 (69888 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 QUORUM: 2
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
Ensuite on crée le filesystem. Il existe deux methodes possibles:
créer un filesystem et laisser le sytème créer le volume logique qui lui est associé.
créér en donnant un nom de volume logique
mklv -y datalv -t jfs2 datavg 1
crfs -v jfs2 -d datalv -m data -A ''`locale yesstr | awk -F: '{print $1}'`'' -p'rw' -a agblksize='4096'
chfs -a size=40G /data
Filesystem size changed to 83886080
root@ceto:/ #lsfs data
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/datalv -- /data jfs2 83886080 rw yes no
cat /etc/swapspaces
* /etc/swapspaces
*
* This file lists all the paging spaces that are automatically put into
* service on each system restart (the 'swapon -a' command executed from
* /etc/rc swaps on every device listed here).
*
* WARNING: Only paging space devices should be listed here.
*
* This file is modified by the chps, mkps and rmps commands and referenced
* by the lsps and swapon commands.
hd6:
dev = /dev/hd6
vérifier que le disque de mirroir appartient au meme volume groupe que le disque déjà paginé. Etendre
le volume groupe sinon.
lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk1 active 542 133 00..00..00..94..39
hdisk0 active 542 134 00..00..00..95..39
Activation de tous les espaces de pagination définis dans le fichier /etc/swapspaces :
swapon -a
mirror du volume logique
mklvcopy paging00 2 hdisk1 hdisk0
vérifier que le nombre de PV pour paging00 est à 2.
#lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk93 rootvg 3072MB 1 yes no lv
hd6 hdisk93 rootvg 7680MB 98 yes yes lv
#chps -s 1 paging00
#lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk93 rootvg 3200MB 1 yes no lv
hd6 hdisk93 rootvg 7680MB 98 yes yes lv
lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk1 rootvg 2112MB 1 yes yes lv
hd6 hdisk0 rootvg 10240MB 2 yes yes lv
chps -d 1 paging00
shrinkps: Temporary paging space paging01 created.
shrinkps: Paging space paging00 removed.
shrinkps: Paging space paging00 recreated with new size.
lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk1 rootvg 2048MB 1 yes yes lv
hd6 hdisk0 rootvg 10240MB 2 yes yes lv
istat file
Inode 57549 on device 10/4 File
Protection: rw-r--r--
Owner: 0(root) Group: 0(system)
Link count: 1 Length 22 bytes
Last updated: Tue Jan 15 16:40:32 2008
Last modified: Tue Jan 15 16:40:32 2008
Last accessed: Tue Dec 2 09:11:01 2008
Vous obtiendrez les date de création, modification et d'access, les droits, le propriétaire et même son numéro d'ionde.
On voit ici avec Link count qu'il est unique. Si on fait un lin le count passe à 2.
ln file file2
root@artemis:/root# istat filee
Inode 57549 on device 10/4 File
Protection: rw-r--r--
Owner: 0(root) Group: 0(system)
Link count: 2 Length 22 bytes
Last updated: Tue Dec 2 16:21:56 2008
Last modified: Tue Jan 15 16:40:32 2008
/etc/security/environ lists environment attributes for each user
/etc/security/lastlog lists last login attributes for each user
/etc/security/limits lists process resource limits for each user
/etc/security/user lists extended user attributes for each user
/usr/lib/security/mkuser.default lists default attributes for new users
/usr/lib/security/mkuser.sys script that sets up the user's environment
/etc/passwd lists basic user attributes for each user
/etc/security/passwd contains password information for each user
/etc/security/login.cfg lists login security information for each user
/etc/utmp contains users that are logged into the system, used by the "who" command
/var/adm/wtmp contains connect time information for users
/etc/security/failedlogin contains unsuccessful login attempts
/etc/motd message of the day that is displayed when the user logs in.
/etc/environment Lists the default environment that new processes will use.
/etc/profile environment settings for all users
$HOME/.profile environment settings for a specific user
/etc/group lists attributes for each group
/etc/security/group lists extended attributes for each
account_locked true or false
expires Expiration time for a user account. MMDDHHMMYY, a value of 0 indicates no expiration
loginretires Number of invalid login attempts before a users is not allowed to login. A value of 0 indicates this attribute is disabled.
maxage Maximum number of weeks a password is valid, a value of 0 indicates unlimited
minage Minimum nuimber of weeks between password changes.
3001-654 The group gdb2adm has no stanza in /etc/security/group.
3001-654 The group gfence has no stanza in /etc/security/group.
3001-654 The group gipief01 has no stanza in /etc/security/group.
3001-654 The group gr6 has no stanza in /etc/security/group.
3001-654 The group mi_group has no stanza in /etc/security/group.
3001-654 The group sasgrp has no stanza in /etc/security/group.
3001-664 The account for user daemon has expired.
3001-664 The account for user bin has expired.
3001-664 The account for user sys has expired.
3001-664 The account for user nobody has expired.
3001-664 The account for user lpd has expired.
3001-612 User lp has a non-existent
or inaccessible home directory /var/spool/lp.
3001-648 The user lp has no stanza in /etc/security/user.
3001-648 The user lp has no stanza in /etc/security/user.
3001-612 User imnadm has a non-existent
or inaccessible home directory /home/imnadm.
3001-662 User sshd is locked.
3001-227 User name "printq" not found in password file.
3001-233 Invalid admin value in /etc/security/group for "gusasqta"
3001-239 Missing stanza for "gusasqta" in /etc/security/group.
3001-238 Missing stanza for "gusas" in /etc/group.
3001-402 The user "imnadm" has an invalid password field in /etc/passwd.
3001-414 The stanza for "imnadm" was not found in /etc/security/passwd.
3001-402 The user "invscout" has an invalid password field in /etc/passwd.
3001-414 The stanza for "invscout" was not found in /etc/security/passwd.
3001-402 The user "ipsec" has an invalid password field in /etc/passwd.
3001-414 The stanza for "ipsec" was not found in /etc/security/passwd.
3001-402 The user "lp" has an invalid password field in /etc/passwd.
3001-414 The stanza for "lp" was not found in /etc/security/passwd.
3001-421 The user "lp" does not have a stanza in /etc/security/user.
3001-402 The user "nuucp" has an invalid password field in /etc/passwd.
3001-414 The stanza for "nuucp" was not found in /etc/security/passwd.
3001-402 The user "snapp" has an invalid password field in /etc/passwd.
3001-414 The stanza for "snapp" was not found in /etc/security/passwd.
3001-402 The user "sshd" has an invalid password field in /etc/passwd.
3001-414 The stanza for "sshd" was not found in /etc/security/passwd.
pwdadm -q user
user:
lastupdate = 1188172800
flags = NOCHECK
les attibuts peuvent être:
NOCHECK pas de vérification
ADMIN password uniquement modifiable par l'utilisateur
ADMCHG le password devra etre changé par l'utilisateur à sa prochaine connection.
L'autre solution consiste à regarder le fichier /etc/security/passwd
Quand on est root, on peut forcer le mot de passe d'un utilisateur en utilisant la commande
chpasswd. Celle-ci présente l'avantage d'être exécutable à distance (ssh par exemple).
Avec finger on obtient en plus de l'identifiant du user, un descriptif plus omplet, la console utilisé,
depuis combien de temps on est conencté.
#finger
Login Name TTY Idle When Site Info
I4435543 jean BICQUELET - p0 19 Wed 10:08
root User root p1 Wed 11:33
dscream Admin projet CREAM p2 20: Wed 09:00
on peut obtenir la même chose en foramt long:
# finger -l
Login name: I4435543 In real life: jean BICQUELET
Directory: /home/I4435543 Shell: /bin/ksh
On since Jun 05 10:08:57 on pts/0, 24 minutes Idle Time
from workstations12.fr
No Plan.
Login name: root In real life: User root
Directory: /root Shell: /bin/ksh
On since Jun 05 11:33:26 on pts/1
from nimserv
No Plan.
Login name: dscream In real life: Admin projet CREAM
Directory: /home/dscream Shell: /usr/bin/ksh
On since May 29 09:00:55 on pts/2, 20 hours Idle Time
from workstations28.fr
No Plan.
On peut bien entendu ne sélectionner qu'un seul utilisateur:
# finger -l
Login name: I4435543 In real life: jean BICQUELET
Directory: /home/I4435543 Shell: /bin/ksh
On since Jun 05 10:08:57 on pts/0, 24 minutes Idle Time
from workstations12.fr
No Plan.
Normalement (sans 't') n'importe quel utilisateur qui a écrit que la permission à une liste d'adresses peut supprimer n'importe quels fichiers dans la liste d'adresses indépendamment de qui le possède, même si il ne peut pas lire ou écrire au fichier.
Avec 't' fixé, seul le propriétaire d'un fichier peut le supprimer.
Le programme ainsi fixé sera executé avec les droits du propriétaire du fichier. Dans l'exemple qui suit on rend la
commande ping utilisable par n'importe qui.
host-user[1] ping host
0821-067 ping: The socket creation call failed.: The file access permissions do not allow the specified action.
host-user[2] which ping
/usr/sbin/ping
host-user[3] ls -ltr /usr/sbin/ping
-rwxr-xr-x 1 root system 32566 Apr 23 2007 /usr/sbin/ping
On ne peut pas pinger avec le compte user pour de raison de droits. On fixe alors en tant que root
le set-ID bit.
host-root # chmod u+s /usr/sbin/ping
Le compte user peut maintenant pinger.
host-user [1] ls -ltr /usr/sbin/ping
-rwsr-xr-x 1 root system 32566 Apr 23 2007 /usr/sbin/ping
host-user [2] ping host
PING host: (192.168.2.66): 56 data bytes
64 bytes from 192.168.2.66: icmp_seq=0 ttl=255 time=0 ms
Les permissions Étendues permettent au propriétaire d'un fichier de définir l'accès
à ce fichier plus précisément. Les permissions Étendues modifient les permissions
de fichier de base (le propriétaire, le groupe, d'autres) en permettant, supprimant,
ou spécifiant des modes d'accès pour des individus spécifiques, des groupes, ou des
combinaisons de groupe et l'utilisateur. Les permissions sont modifiées à l'aide des
mots-clés.
les mots clés permit, deny, and specify sont définis comme ceci:
permit Accorde à l'utilisateur ou au groupe l'accès spécifié au fichier
deny empêche l'utilisateur ou le groupe d'utiliser l'accès indiqué au fichier
specify définit précisément l'accès au fichier pour l'utilisateur ou le groupe
Il suffit d'ajouter la ligne suivante dans le fichier .profile de root:
export EXTENDED_HISTORY=ON
On ajoute alors la date et l'heure à l'historique:
#fc -l
646 fc -l
647 fc -t
648 which fc
649 fc -l
#fc -t
647 2009/05/29 14:05:13 :: fc -t
648 2009/05/29 14:05:27 :: which fc
649 2009/05/29 14:05:30 :: fc -l
650 2009/05/29 14:05:52 :: fc -t
smtctl
This system is SMT capable.
SMT is currently enabled.
SMT boot mode is not set.
SMT threads are bound to the same physical processor.
proc0 has 2 SMT threads.
Bind processor 0 is bound with proc0
Bind processor 1 is bound with proc0
tctl status
rmt0 Available 0I-08-00-0,0 LVD SCSI 4mm Tape Drive
attribute value description user_settable
block_size 0 BLOCK size (0=variable length) True
compress yes Use data COMPRESSION True
density_set_1 71 DENSITY setting #1 True
density_set_2 38 DENSITY setting #2 True
extfm yes Use EXTENDED file marks True
mode yes Use DEVICE BUFFERS during writes True
ret no RETENSION on tape change or reset True
ret_error no RETURN error on tape change or reset True
size_in_mb 36000 Size in Megabytes False
On utilise tapechk qui vérifie la consistance d'une bande écrite au format backup. Cette commande attend un nombre
qui correspond au nombre de fichiers à vérifier. On mettra 2 ou 3 pour vérifier les premiers fichiers écrits sur la bande.
IL s'agit d'un AIX 5.2 TL 08 (car depuis cette version on parle de technical level).
Avec les technical level, pour connaitre le niveau de service pack, il faut utiliser l'option -s.
#oslevel -s
5200-09-CSP-0000
Une autre façon de faire est de chercher les ML:
instfix -i | grep -i ML
All filesets for 5.2.0.0_AIX_ML were found.
All filesets for 5200-01_AIX_ML were found.
All filesets for 5200-02_AIX_ML were found.
All filesets for 5200-03_AIX_ML were found.
All filesets for 5200-04_AIX_ML were found.
All filesets for 5200-05_AIX_ML were found.
All filesets for 5200-06_AIX_ML were found.
All filesets for 5200-07_AIX_ML were found.
All filesets for 5200-08_AIX_ML were found.
All filesets for 5200-09_AIX_ML were found.
Not all filesets for 5200-10_AIX_ML were found.
#lslpp -l
bos.txt.tfs.data 5.2.0.0 COMMITTED Text Formatting Services Data
devices.common.IBM.modemcfg.data
5.2.0.0 COMMITTED Sample Service Processor Modem
Configuration Files
mqm.man.en_US.data 5.3.0.13 APPLIED WebSphere MQ Man Pages - U.S.
English
Les packages peuvent être en mode COMMITTED ou APPLIED. En mode APPLIED, on peut faire un reject
pour revenir en arrière ou un commit pour valider l'instalaltion. Après une période de test et avant les montées de niveaux,
il vaut mieux faire un COMMIT.
lslpp -L | grep MQ
mqm.Client.Bnd 5.3.0.2 C F WebSphere MQ Client Bundle
mqm.Server.Bnd 5.3.0.2 C F WebSphere MQ Server Bundle
mqm.base.runtime 5.3.0.8 C F WebSphere MQ Runtime for
mqm.base.samples 5.3.0.8 C F WebSphere MQ Samples
mqm.base.sdk 5.3.0.8 C F WebSphere MQ Base Kit for
mqm.client.rte 5.3.0.8 C F WebSphere MQ Client for AIX
mqm.java.rte 5.3.0.8 C F WebSphere MQ Java Client and
mqm.keyman.rte 5.3.0.8 C F WebSphere MQ Support for GSKit
mqm.man.en_US.data 5.3.0.8 C F WebSphere MQ Man Pages - U.S.
mqm.msg.en_US 5.3.0.8 C F WebSphere MQ Messages - U.S.
mqm.server.rte 5.3.0.8 C F WebSphere MQ Server
Il faut utiliser instfix. On peut chercher les packages qui ne sont pas installés:
#instfix -ivk 5200-10_AIX_ML |grep not
On peut aussi chercher ceux qui sont inférieur au niveau de référence avec grep ":-:". Si on remplace le
signe - par + on trouve les packages d'un niveau supérieur au niveau de référence et si on utilise =
on trouve uniquement les packages à niveau.
#instfix -ciqk 5200-10_AIX_ML|grep ":-:"
Une autre manière de faire est d'utiliser l'option -l avec oslevel -s ou oslevel -r.
#errpt
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
C6ACA566 0711114407 U S syslog MESSAGE REDIRECTED FROM SYSLOG
C6ACA566 0711114407 U S syslog MESSAGE REDIRECTED FROM SYSLOG
C6ACA566 0711084607 U S syslog MESSAGE REDIRECTED FROM SYSLOG
A6DF45AA 0711084407 I O RMCdaemon The daemon is started.
C6ACA566 0711084407 U S syslog MESSAGE REDIRECTED FROM SYSLOG
C6ACA566 0711084407 U S syslog MESSAGE REDIRECTED FROM SYSLOG
B38E3397 0711084307 U S SYSDUMP Previous system dump information
C0AA5338 0711084307 U S SYSDUMP SYSTEM DUMP
9D035E4D 0711040007 P S SYSVMM DATA STORAGE INTERRUPT, PROCESSOR
9DBCFDEE 0711084307 T O errdemon ERROR LOGGING TURNED ON
C6ACA566 0711034907 U S syslog MESSAGE REDIRECTED FROM SYSLOG
Le format de la date est mmddhhmmyy. On utilise les flags -s pour le début et
-e pour la fin.
#errpt -s 0711084307 -e 0711084407
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
B38E3397 0711084307 U S SYSDUMP Previous system dump information
C0AA5338 0711084307 U S SYSDUMP SYSTEM DUMP
9DBCFDEE 0711084307 T O errdemon ERROR LOGGING TURNED ON
Par exemple pour lister les erreurs entre le 18 mai 2009 17h00 et le 19 mai 9h00 :
c0 The dump completed successfully. Go to Copying a System Dump.
0c1 An I/O error occurred during the dump. Go to System Dump Facility.
0c2 A user-requested dump is not finished. Wait at least 1 minute for the dump to complete and for the operator panel display value to change. If the operator panel display value changes, find the new value on this list. If the value does not change, then the dump did not complete due to an unexpected error.
0c4 The dump ran out of space . A partial dump was written to the dump device, but there is not enough space on the dump device to contain the entire dump. To prevent this problem from occurring again, you must increase the size of your dump media. Go to Increase the Size of a Dump Device.
0c5 The dump failed due to an internal error.
0c7 A network dump is in progress, and the host is waiting for the server to respond. The value in the operator panel display should alternate between 0c7 and 0c2 or 0c9. If the value does not change, then the dump did not complete due to an unexpected error.
0c8 The dump device has been disabled. The current system configuration does not designate a device for the requested dump. Enter the sysdumpdev command to configure the dump device.
0c9 A dump started by the system did not complete. Wait at least 1 minute for the dump to complete and for the operator panel display value to change. If the operator panel display value changes, find the new value on the list. If the value does not change, then the dump did not complete due to an unexpected error.
0cc An error occured dumping to the primary device; the dump has switched over to the secondary device. Wait at least 1 minute for the dump to complete and for the three-digit display value to change. If the three-digit display value changes, find the new value on this list. If the value does not change, then the dump did not complete due to an unexpected error.
c20 The kernel debugger exited without a request for a system dump. Enter the quit dump subcommand. Read the new three-digit value from the LED display.
dla
Component Dump Table Cache (10000 entries) OVERFLOW
Component Dump Table Cache resized from 10000 to 20000 entries
[kdb_read_mem] no real storage @ F10000E3206F3410
[kdb_read_mem] no real storage @ F10000E3208E6E30
[kdb_read_mem] no real storage @ F10000E3208E6E30
[kdb_read_mem] no real storage @ F10000E3208E6E30
[kdb_read_mem] no real storage @ F10000E3208E6E30
...
cdt
cdt
1) CDT head name dmp_minimal, len 00000108, entries 5
2) CDT head name proc entries 2473
3) CDT head name thrd entries 6833
4) CDT head name ldr, len 00000078, entries 2
5) CDT head name errlg, len 000000A8, entries 3
6) CDT head name lfs, len 00000048, entries 1
7) CDT head name bos, len 00000078, entries 2
8) CDT head name ipc, len 00000168, entries 7
9) CDT head name vmm, len 00000438, entries 22
10) CDT head name alloc entries 267
11) CDT head name rtastrc, len 00000198, entries 8
12) CDT head name sscsidd, len 00000048, entries 1
13) CDT head name aixpcm, len 00000108, entries 5
14) CDT head name efcdd, len 00000588, entries 29
15) CDT head name scdisk, len 00000228, entries 11
16) CDT head name lvm, len 00000078, entries 2
17) CDT head name tty, len 000000D8, entries 4
18) CDT head name efscsi, len 00000168, entries 7
19) CDT head name scsidisk, len 000030A8, entries 259
20) CDT head name netstat, len 000001F8, entries 10
21) CDT head name goent_dd, len 000000D8, entries 4
22) CDT head name jfs2, len 00000048, entries 1
(0)> cdt 5
5) CDT head name errlg, len 000000A8, entries 3
CDT 1 name errc addr 00000000002827A0, len 000009E8
CDT 2 name errc_io addr 0000000000DF46C8, len 00000048
CDT 3 name log addr F10000E3040E3000, len 00008000
A partir de ces fichiers, on peut générer un rapport à l'aide de la commande topasout.
Pa rexemple pour obtenir un rapport résumé dud fichier du 15 octobre 2009 (
091015) entre 8h du matin et 12h avec un intervale de 15 minutes (intervals possibles :
5, 10, 15, 30, ou 60 ).
Ending time of the report interval. Metric values are averaged out over this interval and printed in the report
InU
Memory that is used
Us
Percentage of processor time spent in the user mode
Sy
Percentage of processor time spent in the system mode
Wa
Percentage of processor time spent waiting for I/O
Id
Percentage of time that the processor is idle
PhysB
Number of physical processors that are busy
RunQ
The average number of threads that are ready to run but are waiting for a processor to become available
WtQ
The average number of threads that are waiting for paging to be completed
Cswitch
The number of context switches per second in the reporting interval
Syscall
The number of system calls executed per second in the reporting interval
PgFault
The number of I/O and other page faults
%don
Sum of %idle cycles donated and %busy cycles donated
%stl
Sum of %idle cycles stolen and %busy cycles stolen
Les rapports suivants sont possibles:
summary
resumé
detailed
détaillé
disk
disques
lan
réseau
poolinfo
pool processeur partagé
mempool
mémoire
adapter
cartes adapteurs
vadapter
cartes adapteurs virtuelles
vios
Virtual I/O Server/Client
vios_adapter
Virtual I/O Server/Client adapteurs et disques
Il est possible aussi possible d'exporter des données vers nmon ou de générer des fichiers csv pour générer des graphes ou exploiter dans excel ces données.
md5sum ne se trouve pas dans textutil mais dans coreutils. Il suffit de le recherchercher dans le CD AIX Toolbox ou de le
télécharger à l'adresse Open Source packages available for installation on AIX 5L
puis de l'installer pour qu'il soit disponible: