Aix
Gestion User/Group
Section titled “Gestion User/Group”Créer un utilisateur
Section titled “Créer un utilisateur”mkuser id=uid pgrp='groupe_principal' home=/home/nom_utilisateur -m 'comment' shell=/usr/bin/ksh nom_utilisateur
Créer un groupe
Section titled “Créer un groupe”mkgroup id=gid nom_group
Installation package (smitty)
Section titled “Installation package (smitty)”Installation
Section titled “Installation”installp -aF -d /blabla all
Désinstallation
Section titled “Désinstallation”installp -ug tivoli.tsm.client*
Lister les package
Section titled “Lister les package”lslpp -L
Gestion des FileSystem
Section titled “Gestion des FileSystem”Agrandir ou diminuer un FS
Section titled “Agrandir ou diminuer un FS”chfs -a size=[+|-]1G /some/FS
lister les VG et FS associés
Section titled “lister les VG et FS associés”lsvg applivg
VOLUME GROUP: applivg VG IDENTIFIER: 00cef4a700004c0000000163d5ddb30fVG STATE: active PP SIZE: 128 megabyte(s)VG PERMISSION: read/write TOTAL PPs: 399 (51072 megabytes)MAX LVs: 512 FREE PPs: 7 (896 megabytes)LVs: 4 USED PPs: 392 (50176 megabytes)OPEN LVs: 4 QUORUM: 2 (Enabled)TOTAL PVs: 1 VG DESCRIPTORS: 2STALE PVs: 0 STALE PPs: 0ACTIVE PVs: 1 AUTO ON: yesMAX PPs per VG: 130048MAX PPs per PV: 1016 MAX PVs: 128LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: noHOT SPARE: no BB POLICY: relocatablePV RESTRICTION: none INFINITE RETRY: noDISK BLOCK SIZE: 512 CRITICAL VG: noFS SYNC OPTION: no CRITICAL PVs: nolsvg -l applivg
applivg:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINTlv_cmod jfs2 80 80 1 open/syncd /appli/CMODlv_cmodcache jfs2 160 160 1 open/syncd /appli/CMOD-cachelv_aen jfs2 80 80 1 open/syncd /appli/AENlv_logs jfs2 72 72 1 open/syncd /logsCréer un FS (avec son LV)
Section titled “Créer un FS (avec son LV)”crfs -v jfs2 -m /mountpoint -A yes -g datavg -a size=128M -p rw -a logname=INLINE
Supprimer un FS (et le LV associé)
Section titled “Supprimer un FS (et le LV associé)”rmfs -r 'FS'
Supprimer un LV
Section titled “Supprimer un LV”rmlv -f 'LV'
Renommer un LV
Section titled “Renommer un LV”chlv -n nouveau_nom ancien_nom
Divers
Section titled “Divers””watch like” pour AIX
Section titled “”watch like” pour AIX”while true; do date; COMMAND ; sleep 1; clear; done
Déterminer le type d’architecture (32 ou 64bits)
Section titled “Déterminer le type d’architecture (32 ou 64bits)”getconf KERNEL_BITMODE
Afficher les erreurs système UNIX
Section titled “Afficher les erreurs système UNIX”errpt [Option] [ -c : rapport court ] [ -A : rapport simple ] [ -a : rapport détaillé ]
Afficher les ports en écoute
Section titled “Afficher les ports en écoute”netstat -an -f inet | grep LISTEN