Divers : Différence entre versions

De Wiki-noulot
Sauter à la navigation Sauter à la recherche
 
(68 révisions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
=Differences Linux, Solaris, AIX=
 
=Differences Linux, Solaris, AIX=
  
−
== Tâches d\’installation et d\’upgrade==
+
== Tâches d'installation et d'upgrade==
  
 
{| class="wikitable centre" width="80%"
 
{| class="wikitable centre" width="80%"
−
|+ Tableau
 
 
|-
 
|-
 
! scope=col | Description
 
! scope=col | Description
Ligne 48 : Ligne 47 :
 
|-
 
|-
 
| width="25%" |
 
| width="25%" |
−
Vérifier l\’installation d\’un package
+
Vérifier l'installation d'un package
 
| width="25%" |
 
| width="25%" |
 
lppchk
 
lppchk
Ligne 77 : Ligne 76 :
  
 
== Information sur le Boot, sur le noyau==
 
== Information sur le Boot, sur le noyau==
−
Description AIX Linux Redhat Solaris
 
−
Localisation des modules /usr/lib/boot /usr/lib/drivers /boot /lib/modules /platform/sparc/kernel /kernel /usr/kernel
 
−
Déterminer le runlevel courant who -r runlevel who -r
 
−
Changer de runlevel telinit "runlevel_id" telinit "runlevel_id" halt, init, poweroff, reboot, shutdown telinit, uadmin (en fonction de ce que l\’on veut faire)
 
−
Localisation des scripts/liens de démarrage par runlevel /etc/rc /etc/rc.d/rc"runlevel".d /sbin/rc"runlevel"
 
−
Afficher les infos de boot bosboot lilo N/A
 
−
Rebooter la machine shutdown -Fr shutdown -r now shutdown -i 6
 
−
Arréter la machine shutdown halt poweroff ou halt
 
−
Commandes AIX
 
−
http://fr.scribd.com/doc/75770105/Aix-Commands
 
  
 +
{| class="wikitable centre" width="80%"
 +
|-
 +
! scope=col | Description
 +
! scope=col | AIX
 +
! scope=col | Linux Redhat
 +
! scope=col | Solaris
 +
|-
 +
| width="25%" |
 +
Localisation des modules
 +
| width="25%" |
 +
/usr/lib/boot /
  
 +
/usr/lib/drivers
 +
| width="25%" |
 +
/boot /lib/modules
 +
| width="25%" |
 +
/platform/sparc/kernel
  
 +
/kernel /usr/kernel
 +
|-
 +
| width="25%" |
 +
Déterminer le runlevel courant
 +
| width="25%" |
 +
who -r
 +
| width="25%" |
 +
runlevel
 +
| width="25%" |
 +
who -r
 +
|-
 +
| width="25%" |
 +
Changer de runlevel
 +
| width="25%" |
 +
telinit "runlevel_id"
 +
| width="25%" |
 +
telinit "runlevel_id"
 +
| width="25%" |
 +
halt, init, poweroff, reboot, shutdown telinit, uadmin (en fonction de ce que l’on veut faire)
 +
|-
 +
| width="25%" |
 +
Localisation des scripts/liens de démarrage par runlevel
 +
| width="25%" |
 +
/etc/rc
 +
| width="25%" |
 +
/etc/rc.d/rc"runlevel".d
 +
| width="25%" |
 +
/sbin/rc"runlevel"
 +
|-
 +
| width="25%" |
 +
Afficher les infos de boot
 +
| width="25%" |
 +
bosboot
 +
| width="25%" |
 +
lilo
 +
| width="25%" |
 +
N/A
 +
|-
 +
| width="25%" |
 +
Rebooter la machine
 +
| width="25%" |
 +
shutdown -Fr
 +
| width="25%" |
 +
shutdown -r now
 +
| width="25%" |
 +
shutdown -i 6
 +
|-
 +
| width="25%" |
 +
Arréter la machine
 +
| width="25%" |
 +
shutdown
 +
| width="25%" |
 +
halt
 +
| width="25%" |
 +
poweroff ou halt
 +
|-
 +
|}
 +
 +
Commandes AIX
 +
 +
http://fr.scribd.com/doc/75770105/Aix-Commands
  
 +
== Gestion des utilisateurs==
 +
{| class="wikitable centre" width="80%"
 +
|-
 +
! scope=col | Description
 +
! scope=col | AIX
 +
! scope=col | Linux Redhat
 +
! scope=col | Solaris
 +
|-
 +
| width="25%" |
 +
Gestion par Interface
 +
| width="25%" |
 +
smitty users
 +
| width="25%" |
 +
redhat-config-users
 +
| width="25%" |
 +
admintool
 +
|-
 +
| width="25%" |
 +
ajouter un utilisateur
 +
| width="25%" |
 +
mkuser
 +
| width="25%" |
 +
useradd
 +
| width="25%" |
 +
useradd
 +
|-
 +
| width="25%" |
 +
supprimer un utilisateur
 +
| width="25%" |
 +
rmuser
 +
| width="25%" |
 +
userdel
 +
| width="25%" |
 +
userdel
 +
|-
 +
| width="25%" |
 +
modifier un utilisateur
 +
| width="25%" |
 +
chuser
 +
| width="25%" |
 +
usermod
 +
| width="25%" |
 +
usermod
 +
|-
 +
| width="25%" |
 +
lister les utilisateurs
 +
| width="25%" |
 +
lsuser
 +
| width="25%" |
 +
awk -F ":" '\{print $1\}' /etc/passwd
 +
| width="25%" |
 +
listusers
 +
|-
 +
| width="25%" |
 +
Fichiers de passwd
 +
| width="25%" |
 +
/etc/password
 +
| width="25%" |
 +
/etc/security/passwd
  
 +
/etc/passwd
  
 +
/etc/shadow
 +
| width="25%" |
 +
/etc/passwd
  
−
== Gestion des utilisateurs==
 
−
Description AIX Linux Redhat Solaris
 
−
Gestion par Interface smitty users redhat-config-users admintool
 
−
ajouter un utilisateur mkuser useradd useradd
 
−
supprimer un utilisateur rmuser userdel userdel
 
−
modifier un utilisateur chuser usermod usermod
 
−
lister les utilisateurs lsuser awk -F ":" \’\{print $1\}\’ /etc/passwd listusers
 
−
Fichiers de passwd /etc/password
 
−
/etc/security/passwd /etc/passwd
 
−
/etc/shadow /etc/passwd
 
 
/etc/shadow
 
/etc/shadow
−
Fichiers de groupes /etc/group
+
|-
−
/etc/security/group /etc/group /etc/group
+
| width="25%" |
−
Définition des limites /etc/security/limits /etc/security/limits.conf N/A
+
Fichiers de groupes
−
Definition de l\’environnement du système /etc/profile
+
| width="25%" |
−
/etc/environment /etc/profile N/A
+
/etc/group
−
Configuration des informations d\’authentification /etc/security/user /etc/login.defs /etc/pam.conf
+
| width="25%" |
 +
/etc/security/group
 +
/etc/group
 +
| width="25%" |
 +
/etc/group
 +
|-
 +
| width="25%" |
 +
Définition des limites
 +
| width="25%" |
 +
/etc/security/limits
 +
| width="25%" |
 +
/etc/security/limits.conf
 +
| width="25%" |
 +
N/A
 +
|-
 +
| width="25%" |
 +
Definition de l'environnement du système
 +
| width="25%" |
 +
/etc/profile
 +
| width="25%" |
 +
/etc/environment
 +
/etc/profile
 +
| width="25%" |
 +
N/A
 +
|-
 +
| width="25%" |
 +
Configuration des informations d'authentification
 +
| width="25%" |
 +
/etc/security/user
 +
| width="25%" |
 +
/etc/login.defs
 +
| width="25%" |
 +
/etc/pam.conf
 +
|}
  
 +
==Umask Created Files Created Directories==
  
−
==Umask Created Files Created Directories
+
{| class="wikitable"
−
==
+
|-
−
Umask Created Files Created Directories
+
! Umask!! Created Files !!!! Created Directories!!
−
000 666 (rw-rw-rw-) 777 (rwxrwxrwx)
+
|-
−
002 664 (rw-rw-r--) 775 (rwxrwxr-x)
+
| 000 || 666 || (rw-rw-rw-) || 777 || (rwxrwxrwx)
−
022 644 (rw-r--r--) 755 (rwxr-xr-x)
+
|-
−
027 640 (rw-r-----) 750 (rwxr-x---)
+
| 002 || 664 || (rw-rw-r--) || 775 || (rwxrwxr-x)
−
077 600 (rw-------) 700 (rwx------)
+
|-
−
277 400 (r--------) 500 (r-x------)
+
| 022 || 644 || (rw-r--r--) || 755 || (rwxr-xr-x)
−
 
+
|-
 +
| 027 || 640 || (rw-r-----) || 750 || (rwxr-x---)
 +
|-
 +
| 077 || 600 || (rw-------) || 700 || (rwx------)
 +
|-
 +
| 277 || 400 || (r--------) || 500 || (r-x------)
 +
|}
  
 
== Configuration des périphériques==
 
== Configuration des périphériques==
−
Description AIX Linux Redhat Solaris  
+
{| class="wikitable centre" width="80%"
−
Gestion par interface smitty device N/A admintool
+
|-
−
Configurer un périphérique cfgmgr MAKEDEV drvconfig, devlinks, disks, tapes, ports
+
! scope=col | Description
−
Créer un périphérique mkdev mknod drvconfig, devlinks, disks, tapes, ports
+
! scope=col | AIX
−
Supprimer un périphérique rmdev MAKEDEV rem_drv
+
! scope=col | Linux Redhat
−
Modifier un périphérique chdev N/A N/A
+
! scope=col | Solaris
−
Lister les périphériques lsdev cat /proc/devices sysdef
+
|-
−
 
+
| width="25%" |
−
 
+
Gestion par interface
 +
| width="25%" |
 +
smitty device
 +
| width="25%" |
 +
N/A
 +
| width="25%" |
 +
admintool
 +
|-
 +
| width="25%" |
 +
Configurer un périphérique
 +
| width="25%" |
 +
cfgmgr
 +
| width="25%" |
 +
MAKEDEV
 +
| width="25%" |
 +
drvconfig, devlinks, disks, tapes, ports
 +
|-
 +
| width="25%" |
 +
Créer un périphérique
 +
| width="25%" |
 +
mkdev
 +
| width="25%" |
 +
mknod
 +
| width="25%" |
 +
drvconfig, devlinks, disks, tapes, ports
 +
|-
 +
| width="25%" |
 +
Supprimer un périphérique
 +
| width="25%" |
 +
rmdev
 +
| width="25%" |
 +
MAKEDEV
 +
| width="25%" |
 +
rem_drv
 +
|-
 +
| width="25%" |
 +
Modifier un périphérique
 +
| width="25%" |
 +
chdev
 +
| width="25%" |
 +
N/A
 +
| width="25%" |
 +
N/A
 +
|-
 +
| width="25%" |
 +
Lister les périphériques
 +
| width="25%" |
 +
lsdev
 +
| width="25%" |
 +
cat /proc/devices
 +
| width="25%" |
 +
sysdef
 +
|}
  
 
==Gestion du réseau==
 
==Gestion du réseau==
−
Description AIX Linux Redhat Solaris  
+
{| class="wikitable centre" width="80%"
−
Gestion par interface smitty tcpip redhat-config-network N/A
+
|-
−
Configurer TCP/IP mktcpip gérer les scripts dans /etc/sysconfig/network-scripts/ Editer les fichiers : /etc/hostname.\* /etc/inet.\* /etc/defaultrouter /etc/defaultdomain  
+
! scope=col | Description
−
Informations sur les interfaces ifconfig ifconfig ifconfig
+
! scope=col | AIX
−
Configurer une interface ifconfig ifconfig ifconfig
+
! scope=col | Linux Redhat
−
Modifier la résolution de noms chnamsv vi /etc/resolv.conf vi /etc/nsswitch.conf
+
! scope=col | Solaris
−
Supprimer la résolution de noms rmnamsv vi /etc/resolv.conf vi /etc/nsswitch.conf
+
|-
−
Afficher les infos de résolution de noms lsnamsv cat /etc/resolv.conf cat /etc/nsswitch.conf
+
| width="25%" |
−
Configurer l\’ordre des résolutions de noms vi /etc/netsvc.conf vi /etc/nsswitch.conf vi /etc/nsswitch.conf
+
Gestion par interface
−
Afficher les MAC Adresse Netstat –ia Ifconfig /sbin/ifconfig -a
+
| width="25%" |
−
+
smitty tcpip
−
 
+
| width="25%" |
−
 
+
redhat-config-network
−
 
+
| width="25%" |
−
 
+
N/A
−
 
+
|-
−
 
+
| width="25%" |
−
 
+
Configurer TCP/IP
−
 
+
| width="25%" |
−
 
+
mktcpip
−
 
+
| width="25%" |
−
 
+
gérer les scripts dans /etc/sysconfig/network-scripts/  
−
 
+
| width="25%" |
−
 
+
Editer les fichiers :  
−
 
+
/etc/hostname.\*  
 +
/etc/inet.\*  
 +
/etc/defaultrouter  
 +
/etc/defaultdomain  
 +
|-
 +
| width="25%" |
 +
Informations sur les interfaces
 +
| width="25%" |
 +
ifconfig
 +
| width="25%" |
 +
ifconfig
 +
| width="25%" |
 +
ifconfig
 +
|-
 +
| width="25%" |
 +
Configurer une interface
 +
| width="25%" |
 +
ifconfig
 +
| width="25%" |
 +
ifconfig
 +
| width="25%" |
 +
ifconfig
 +
|-
 +
| width="25%" |
 +
Modifier la résolution de noms
 +
| width="25%" |
 +
chnamsv
 +
| width="25%" |
 +
vi /etc/resolv.conf
 +
| width="25%" |
 +
vi /etc/nsswitch.conf
 +
|-
 +
| width="25%" |
 +
Supprimer la résolution de noms
 +
| width="25%" |
 +
rmnamsv
 +
| width="25%" |
 +
vi /etc/resolv.conf
 +
| width="25%" |
 +
vi /etc/nsswitch.conf
 +
|-
 +
| width="25%" |
 +
Afficher les infos de résolution de noms
 +
| width="25%" |
 +
lsnamsv
 +
| width="25%" |
 +
cat /etc/resolv.conf
 +
| width="25%" |
 +
cat /etc/nsswitch.conf
 +
|-
 +
| width="25%" |
 +
Configurer l’ordre des résolutions de noms
 +
| width="25%" |
 +
vi /etc/netsvc.conf
 +
| width="25%" |
 +
vi /etc/nsswitch.conf
 +
| width="25%" |
 +
vi /etc/nsswitch.conf
 +
|-
 +
| width="25%" |
 +
Afficher les MAC Adresse  
 +
| width="25%" |
 +
netstat –ia
 +
| width="25%" |
 +
ifconfig
 +
| width="25%" |
 +
/sbin/ifconfig -a
 +
|}
  
 
==Gestion du système de fichiers (FS)==
 
==Gestion du système de fichiers (FS)==
−
Description AIX Linux Redhat Solaris  
+
{| class="wikitable centre" width="80%"
−
Gestion par interface smitty fs N/A N/A
+
|-
−
Formatter un disque N/A fdisk format
+
! scope=col| Description || AIX || Linux Redhat || Solaris
−
Vérifier un FS fsck fsck fsck
+
|-
−
Monter un FS mount mount mount
+
| Gestion par interface || smitty fs || N/A || N/A
−
Démonter un FS umount umount umount
+
|-
−
Afficher l\’espace disponible d\’un FS df df df
+
| Monter un FS || mount || mount || mount
−
Partitionner un disk N/A fdisk format
+
|-
−
Lister la table des partitions lchangelv fdisk prtvtoc
+
| Démonter un FS || umount || umount || umount
−
Ajouter un FS crfs mkfs newfs ou mkfs
+
|-
−
Sauvegarde d\’un FS / fichier / répertoire backup dump ufsdump
+
| Lister la table des partitions || lchangelv || fdisk || prtvtoc
−
Restauration d\’un FS / fichier / répertoire restore restore ufsrestore
+
|-
−
Modification d\’un FS chfs resize2ext tunefs
+
| Ajouter un FS || crfs || mkfs || newfs ou mkfs
−
Supprimer un FS rmfs N/A N/A
+
|-
−
Affichier les informations d\’un FS lsfs ou cat /etc/filesystems cat /etc/fstab cat /etc/vfstab
+
| Modification d'un FS || chfs || resize2ext || tunefs
−
Affiche la table des FS montés mount mount ou cat /etc/mtab mount ou cat /etc/mtab
+
|-
−
 
+
| Supprimer un FS || rmfs || N/A || N/A
−
 
+
|}
−
 
 
−
 
 
−
 
 
  
 +
==Gestion du LVM (Logical Volume Management)==
 +
{| class="wikitable centre" width="80%"
 +
|-
 +
! scope=col|Description || AIX || Linux Redhat || Solaris
 +
|-
 +
|Structure de stockage || un disque est composé de partitions physiques (physical partitions). || ||
 +
|-
 +
|Un "physical volume" est un disque physique (idem. un disque) || || ||
 +
|-
 +
|Un "volume group" est composé de "physical volume" || || ||
 +
|-
 +
|Un "volume group" est divisé en "logical volumes" || || ||
 +
|-
 +
|Un "File system" est placé sur un "logical volume" || || ||
 +
|-
 +
|Un "Logical Volume" est extensible et peut résider sur un à plusieurs "physical volume" || Un groupe de disque est composé de un à plusieurs disques physiques || ||
 +
|-
 +
|Un "physical extent" est l'équivalent AIX des physical partitions || || ||
 +
|-
 +
|Un "logical extent" est l'équivalent AIX des partitions logiques (subdivision des logical volume). || || ||
 +
|-
 +
|Volume group et "logical volume" ont leur équivalent sur AIX et linux. || Un disque est composé de partitions ou slices || ||
 +
|-
 +
|Un "File System" est placé sur une partition || || ||
 +
|-
 +
|Une "sous unité de disque" (ou subdisk) est composé de partitions/slices (équivalent de la partition physique) || || ||
 +
|-
 +
|Un "Plex" est composé de "Subdisks" (équivalent de la "logical partition" AIX) || || ||
 +
|-
 +
|Un "Volume" (équivalent AIX du logical Volume) est composé de "plex" || || ||
 +
|-
 +
|Gestion par interface || smitty lvm || N/A || vxva
 +
|-
 +
|Déplacer un logical volume || migratepv || N/A || vxassist move
 +
|-
 +
|Créer un logical volume || mklv || lvcreate || vxassist make
 +
|-
 +
|Agrandir un logical volume || extendlv || lvextend || vxassist growto
 +
|-
 +
|Supprimer un logical volume || rmlv || lvremove || vxedit rm
 +
|-
 +
|Créer un Volume Group(VG) || mkvg || vgcreate || vxdg init
 +
|-
 +
|Supprimer un disque d'un VG || reducevg || vgreduce || vxdg rmdisk
 +
|-
 +
|Ajouter des disques à un gestionnaire de volumes || extendvg || vgextend || vxdiskadd
 +
|-
 +
|Administration des disques || reducevg/extendvg || vgreduce/vgextend || vxdiskadm
 +
|-
 +
|Configurer les disques || extendvg || vgextend || vxdisksetup
 +
|-
 +
|Modification d'un logical volume || chlv || vgchange || vxedit set
 +
|-
 +
|Gestion des VG/plex || chvg/mkvg || vgcreate/vgchange || vxplex
 +
|-
 +
|Affichage des VG || lsvg || vgdisplay || vxprint
 +
|-
 +
|Modifier la taille d'un logical volume || extendlv/chlv || lvextend || vxresize
 +
|-
 +
|Gestion des physical Volume/subdisk || chpv || pvchange || vxsd
 +
|-
 +
|Statistiques des structures de stockage || lspv/lsvg/lslv || lsvadm et lvmsar || vxstat
 +
|-
 +
|Gestion des volumes || chlv/mklv/rmlv || lvchange/lvcreate/lvremove || vxvol
 +
|}
  
 +
===Rezise===
  
 +
Dans un premier temps, il faut éditer la configuration de la VM et augmenter la taille du disque dure. Vous pouvez également ajouter un disque.
  
 +
Ensuite voici les commandes à taper sur la VM Centos :
  
 +
Rescanner la partition :
 +
Pour scanner un disque existant à chaud :
 +
echo 1 > /sys/class/scsi_device/device/rescan
 +
Si vous avez ajouter un nouveau disque :
 +
echo "- – -" > /sys/class/scsi_host/host0/scan
 +
On peut checker les changements avec la commande dmesg :
 +
exemple :
 +
sda: detected capacity change from 32212254720 to 53687091200
 +
Cette commande vous permettra également d’identifier le disque modifié. (Ici : /dev/sda)
 +
 +
Lister les partition
 +
fdisk –l
 +
Créer une nouvelle partition
 +
fdisk /dev/sda
 +
taper n pour nouvelle partition
 +
puis p pour partition primaire
 +
choisir le numéro de la nouvel partition : exemple : 3 pour créer sda3
 +
puis appuyez sur “Entrée” deux fois
 +
Mettre la partition en Linux LVM :
 +
taper “t”
 +
puis “3” pour la partition 3
 +
puis “8e”
 +
puis faites “p” pour vérifier que la partition est bien créé puis “w” pour sauvegarder.
 +
 +
Appliquer les modifications sur les partitions physiques à chaud.
 +
partprobe
 +
Maintenant, la procédure peut suivre sont court :
 +
Convertir la nouvelle partition en volume group:
 +
pvcreate /dev/sda3
  
 +
Etendre le volume logique :
 +
vgextend VolGroup00 /dev/sda3
  
 +
Voir la nouvelle taille du volume group :
 +
vgdisplay VolGroup00 | grep "Free"
  
 +
Etendre le volume logique (On étend le LVM de 10G dans cet exemple :
 +
lvextend -l+100%FREE -r /dev/VolGroup00/LogVol00
  
 +
Vérification
 +
df -h /
  
−
==Gestion du LVM (Logical Volume Management)==
+
Cette procédure fonctionne très bien pour étendre les volumes group mais je n’ai pas encore réussi à étendre un volume physique à chaud…
−
Description AIX Linux Redhat Solaris
 
−
Structure de stockage un disque est composé de partitions physiques (physical partitions).
 
−
Un "physical volume" est un disque physique (idem. un disque)
 
−
Un "volume group" est composé de "physical volume"
 
−
Un "volume group" est divisé en "logical volumes"
 
−
Un "File system" est placé sur un "logical volume"
 
−
Un "Logical Volume" est extensible et peut résider sur un à plusieurs "physical volume" Un groupe de disque est composé de un à plusieurs disques physiques
 
−
Un "physical extent" est l\’équivalent AIX des physical partitions
 
−
Un "logical extent" est l\’équivalent AIX des partitions logiques (subdivision des logical volume).
 
−
"Volume group" et "logical volume" ont leur équivalent sur AIX et linux. Un disque est composé de partitions ou slices
 
−
Un "File System" est placé sur une partition
 
−
Une "sous unité de disque" (ou subdisk) est composé de partitions/slices (équivalent de la partition physique)
 
−
Un "Plex" est composé de "Subdisks" (équivalent de la "logical partition" AIX)
 
−
Un "Volume" (équivalent AIX du logical Volume) est composé de "plex"
 
−
Gestion par interface smitty lvm N/A vxva
 
−
Déplacer un logical volume migratepv N/A vxassist move
 
−
Créer un logical volume mklv lvcreate vxassist make
 
−
Agrandir un logical volume extendlv lvextend vxassist growto
 
−
Supprimer un logical volume rmlv lvremove vxedit rm
 
−
Créer un Volume Group(VG) mkvg vgcreate vxdg init
 
−
Supprimer un disque d\’un VG reducevg vgreduce vxdg rmdisk
 
−
Ajouter des disques à un gestionnaire de volumes extendvg vgextend vxdiskadd
 
−
Administration des disques reducevg/extendvg vgreduce/vgextend vxdiskadm
 
−
Configurer les disques extendvg vgextend vxdisksetup
 
−
Modification d\’un logical volume chlv vgchange vxedit set
 
−
Gestion des VG/plex chvg/mkvg vgcreate/vgchange vxplex
 
−
Affichage des VG lsvg vgdisplay vxprint
 
−
Modifier la taille d\’un logical volume extendlv/chlv lvextend vxresize
 
−
Gestion des physical Volume/subdisk chpv pvchange vxsd
 
−
Statistiques des structures de stockage lspv/lsvg/lslv lsvadm et lvmsar vxstat
 
−
Gestion des volumes chlv/mklv/rmlv lvchange/lvcreate/lvremove vxvol
 
−
 
 
  
 
==Ajout de volume disque.==
 
==Ajout de volume disque.==
 +
===AIX===
 
- Ajouter un disque  
 
- Ajouter un disque  
 +
 
- echo "- - -" > /sys/class/scsi_host/host0/scan ( Rescan des contrôleurs SCSI ).
 
- echo "- - -" > /sys/class/scsi_host/host0/scan ( Rescan des contrôleurs SCSI ).
 +
 
- pvcreate /dev/sdX (Creation du PV avec X = Nouveau Volume)
 
- pvcreate /dev/sdX (Creation du PV avec X = Nouveau Volume)
 +
 
- vgs (affiche les VG)
 
- vgs (affiche les VG)
 +
 
- vgextend « nom du VG a étendre » /dev/sdX (Etendre le VG)
 
- vgextend « nom du VG a étendre » /dev/sdX (Etendre le VG)
 +
 
- lvs (Liste les LV)
 
- lvs (Liste les LV)
 +
 
- lvextend -L « Taille ex. :30g »  « /dev/chemin du LV »
 
- lvextend -L « Taille ex. :30g »  « /dev/chemin du LV »
  
 +
===Centos===
  
−
 
+
+ Disk VM
−
 
+
echo 1>/sys/block/sdb/device/rescan
−
 
+
dmesg
−
 
+
pvresize /dev/sdb
−
 
+
vgs (vg agrandi)
−
 
+
lvresize -l +100%FREE /dev/mapper/VG_FRCCEISSUP06-LV_VAR
−
 
+
resize2fs /dev/mapper/VG_FRCCEISSUP06-LV_VAR
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
  
 
==Divers==
 
==Divers==
−
Description AIX Linux Redhat Solaris  
+
{| class="wikitable centre" width="80%"
−
Change le nom d\’hôte chdev -l inet0 -a hostname=xxxx hostname Modification dans les fichiers : /etc/nodename /etc/hosts /etc/hostname.\* /etc/net/\*/hosts
+
|-
−
Liste des services /etc/services /etc/services /etc/services
+
! scope=col| Description || AIX || Linux Redhat || Solaris  
−
Liste des protocoles /etc/protocols /etc/protocols /etc/protocols
+
|-
−
Status du réseau netstat netstat netstat
+
| Change le nom d'hôte || chdev -l inet0 -a hostname=xxxx || hostname || Modification dans les fichiers : /etc/nodename /etc/hosts /etc/hostname.\* /etc/net/\*/hosts
−
Statistiques NFS/RPC nfsstat nfsstat nfsstat
+
|-
−
Affichage du status de la mémoire virtuelle svmon cat /proc/meminfo N/A
+
| Liste des services || lssrc -a || /etc/services || /etc/services
−
Statistiques de la mémoire virtuelle vmstat vmstat vmstat
+
|-
−
Affichage de la mémoire physique bootinfo -r prtconf cat /proc/meminfo prtconf
+
| Liste des protocoles || /etc/protocols || /etc/protocols || /etc/protocols
−
Statistiques d\’entrées/sorties iostat iostat ìostat
+
|-
−
Rapport d\’activité du système sar sar sar
+
| Status du réseau || netstat || netstat || netstat
−
Etat des verrous du système lockstat /var/lock N/A
+
|-
−
Rapport d\’état CPU topas/tprof top prstat
+
| Statistiques NFS/RPC || nfsstat || nfsstat || nfsstat
−
Affichage des erreurs système errpt -a dmesg dmesg
+
|-
−
Affichage des informations de swap lsps -a swapon -s swap -l
+
| Affichage du status de la mémoire virtuelle || svmon || cat /proc/meminfo || N/A
−
Configuration de l\’enregistreur d\’evenements système /etc/syslog.conf /etc/syslog.conf /etc/syslog.conf
+
|-
−
Backup du système mksysb (bande ou disque) ou mkcd (disque optique) N/A nwadmin
+
| Statistiques de la mémoire virtuelle || vmstat || vmstat || vmstat
−
Restauration du système mksysb (bande ou disque) ou mkcd (disque optique) N/A nwadmin, nwrecover
+
|-
−
Localisation des scripts de démarrage /etc /etc/init.d /etc/init.d
+
| Affichage de la mémoire physique || bootinfo -r prtconf || cat /proc/meminfo || prtconf
−
Répertoire des périphériques système /dev /dev /devices
+
|-
−
Afficherconfig Mat lscfg -vp
+
| Statistiques d'entrées/sorties || iostat || iostat || ìostat
−
Lien Symbolique Ln –s source destination
+
|-
−
 
+
| Rapport d'activité du système || sar || sar || sar
−
 
+
|-
 +
| Etat des verrous du système || lockstat || /var/lock || N/A
 +
|-
 +
| Rapport d'état CPU || topas/tprof || top || prstat
 +
|-
 +
| Affichage des erreurs système || errpt -a || dmesg || dmesg
 +
|-
 +
| Affichage des informations de swap || lsps -a || swapon -s || swap -l
 +
|-
 +
| Configuration de l'enregistreur d'evenements système || /etc/syslog.conf || /etc/syslog.conf || /etc/syslog.conf
 +
|-
 +
| Backup du système || mksysb (bande ou disque) ou mkcd (disque optique) || N/A || nwadmin
 +
|-
 +
| Restauration du système || mksysb (bande ou disque) ou mkcd (disque optique) || N/A || nwadmin, nwrecover
 +
|-
 +
| Localisation des scripts de démarrage || /etc || /etc/init.d || /etc/init.d
 +
|-
 +
| Répertoire des périphériques système || /dev || /dev || /devices
 +
|-
 +
| Afficherconfig Mat || lscfg -vp || N/A || N/A
 +
|-
 +
| Lien Symbolique || Ln –s source destination || N/A || N/A
 +
|}
  
 +
==Qu'est-ce que le menu SMS? ==
  
−
==Qu\’est-ce que le menu SMS? ==
 
  
−
 
+
Le menu SMS peut être appelé pendant la phase de boot via la commande F1. Ce menu vous permet d'effectuer des opérations en dehors de l'OS. Il est spécifique aux environnements Power d'IBM. Dans ce menu, vous pouvez modifier la séquence de démarrage (disque, réseau, cdrom..). De plus vous pouvez effectuer une pré configuration réseau, afin de démarrer sur le réseau et joindre un serveur NIM, qui lancera une installation automatique.  
−
Le menu SMS peut être appelé pendant la phase de boot via la commande F1. Ce menu vous permet d\’effectuer des opérations en dehors de l\’OS. Il est spécifique aux environnements Power d\’IBM. Dans ce menu, vous pouvez modifier la séquence de démarrage (disque, réseau, cdrom..). De plus vous pouvez effectuer une pré configuration réseau, afin de démarrer sur le réseau et joindre un serveur NIM, qui lancera une installation automatique.  
 
  
  
Ligne 299 : Ligne 668 :
  
  
−
==Ou se trouve le fichier des variables d\’environnement? ==
+
==Ou se trouve le fichier des variables d'environnement? ==
  
  
−
dans le fichier /etc/environnement, vous avez l\’ensemble des variables d\’environnement commun à tous les utilisateurs.  
+
dans le fichier /etc/environnement, vous avez l'ensemble des variables d'environnement commun à tous les utilisateurs.  
  
  
  
  
−
==Comment faire une vérification des médias d\’installations?==
+
==Comment faire une vérification des médias d'installations?==
  
  
Ligne 317 : Ligne 686 :
  
  
−
==Comment vérifier une incohérence dans l\’installation des filesets?==
+
==Comment vérifier une incohérence dans l'installation des filesets?==
  
  
Ligne 345 : Ligne 714 :
  
  
−
Pour gérer votre boot, inutile de repasser chaque fois dans le SMS. La commande suivante vous permet de modifier l\’ordre de démarrage normal de votre serveur.
+
Pour gérer votre boot, inutile de repasser chaque fois dans le SMS. La commande suivante vous permet de modifier l'ordre de démarrage normal de votre serveur.
 
bootlist -m normal cd0 hdiskX
 
bootlist -m normal cd0 hdiskX
 
où hdiskX est un disque système.
 
où hdiskX est un disque système.
Ligne 385 : Ligne 754 :
 
"1″ au demarrage lsof
 
"1″ au demarrage lsof
  
−
==Restoration GRUB:==
+
=Gestion de la date et l'heure sous Linux=
 +
 
 +
==CentOS==
 +
Sur le hote, vérifier
 +
/etc/sysconfig/clock
 +
ZONE="Europe/Paris"
 +
UTC=false
 +
ARC=false
 +
 
 +
Si la zone n'est pas bonne, lancer setup et changer le fuseau horaire, ou modifier le fichier directement.
 +
Ensuite, vérifier l'heure du bios
 +
hwclockSynchro
 +
bios -> système
 +
hwclock --hctosys
 +
Synchro système -> bios
 +
hwclock --systohc
 +
Mise à l'heure du système
 +
date MMJJhhmmCCCC
 +
 
 +
=Restoration GRUB:=
 +
 
 
1. Boot from CentOS installation disc (for example, CD \#1 or DVD).  
 
1. Boot from CentOS installation disc (for example, CD \#1 or DVD).  
 +
 
2. For CentOS-4 or CentOS-5 type "linux rescue" at the "boot:" prompt. For CentOS-6 pick "Rescue installed system" from the boot menu.  
 
2. For CentOS-4 or CentOS-5 type "linux rescue" at the "boot:" prompt. For CentOS-6 pick "Rescue installed system" from the boot menu.  
 +
 
3. Mount all filesystems in read-write mode.  
 
3. Mount all filesystems in read-write mode.  
−
4. Change root to real root (\’/\’) on your hard disk:
+
 
 +
4. Change root to real root ('/') on your hard disk:
 +
 
 
5. \# chroot /mnt/sysimage
 
5. \# chroot /mnt/sysimage
 +
 
6. Re-install bootstrap code (GRUB).  
 
6. Re-install bootstrap code (GRUB).  
−
o If you wish to re-install GRUB to the MBR on a SCSI or SATA disk (/dev/sda):
 
−
o \# grub-install /dev/sda
 
−
o If you wish to re-install GRUB to the PBR of Partition \#2 on a SCSI or SATA disk (/dev/sda2):
 
−
o \# grub-install /dev/sda2
 
−
o If you wish to re-install GRUB to the MBR on an IDE disk (/dev/hda):
 
−
o \# grub-install /dev/hda
 
−
o If you wish to re-install GRUB to the MBR on a HP Smart Array disk (/dev/c0d0):
 
−
o \# grub-install /dev/cciss/c0d0
 
  
−
== Utilisation chkconfig :==
+
* If you wish to re-install GRUB to the MBR on a SCSI or SATA disk (/dev/sda):
−
1. chkconfig est un utilitaire qui permet de gérer les services réseaux linux en ligne de commande sur Redhat ou Centos. Il se révèle pratique dans le sens ou il permet par exemple de gérer des services dans un script ou d\’ajouter un service dans certain runlevel par exmple. Pour cela il faut que le script du service soit correctement remplit (voir un déjà existant), car les informations sur celui-ci ( runlevel par défaut pour lequel le script doit être activé, description ) sont directement intégrées au début de celui-ci.
+
 
 +
* \# grub-install /dev/sda
 +
 
 +
* If you wish to re-install GRUB to the PBR of Partition \#2 on a SCSI or SATA disk (/dev/sda2):
 +
 
 +
* \# grub-install /dev/sda2
 +
 
 +
* If you wish to re-install GRUB to the MBR on an IDE disk (/dev/hda):
 +
 
 +
* \# grub-install /dev/hda
 +
 
 +
* If you wish to re-install GRUB to the MBR on a HP Smart Array disk (/dev/c0d0):
 +
 
 +
* \# grub-install /dev/cciss/c0d0
 +
 
 +
= Utilisation chkconfig :=
 +
1. chkconfig est un utilitaire qui permet de gérer les services réseaux linux en ligne de commande sur Redhat ou Centos. Il se révèle pratique dans le sens ou il permet par exemple de gérer des services dans un script ou d'ajouter un service dans certain runlevel par exmple. Pour cela il faut que le script du service soit correctement remplit (voir un déjà existant), car les informations sur celui-ci ( runlevel par défaut pour lequel le script doit être activé, description ) sont directement intégrées au début de celui-ci.
 +
 
 
2. Obtenir des informations sur les services :
 
2. Obtenir des informations sur les services :
 +
 
3. chkconfig --list
 
3. chkconfig --list
 +
 
4. Fournit la liste de tous les services reconnus et précise pour chaque runlevel si ceux-ci sont lancés au démarrage.
 
4. Fournit la liste de tous les services reconnus et précise pour chaque runlevel si ceux-ci sont lancés au démarrage.
 +
 
5. chkconfig --list nom-service  
 
5. chkconfig --list nom-service  
 +
 
6. Fournit la configuration actuelle du service nommé nom-service pour tous les runlevels.
 
6. Fournit la configuration actuelle du service nommé nom-service pour tous les runlevels.
 +
 
7. Activer/Désactiver un service :
 
7. Activer/Désactiver un service :
 +
 
8. chkconfig --level 35 nom-service on  
 
8. chkconfig --level 35 nom-service on  
 +
 
9. Spécifie que service doit être lancé au démarrage pour les runlevel 3 et 5.
 
9. Spécifie que service doit être lancé au démarrage pour les runlevel 3 et 5.
 +
 
10. chkconfig --level 35 nom-service off
 
10. chkconfig --level 35 nom-service off
 +
 
11. spécifie que nom-service ne doit pas être lancé au démarrage pour les runlevels 3 et 5.
 
11. spécifie que nom-service ne doit pas être lancé au démarrage pour les runlevels 3 et 5.
 +
 
12. chkconfig --add nom-service  
 
12. chkconfig --add nom-service  
 +
 
13. Ajouter nom-service comme étant un service pouvant être géré par chkconfig ( comme je le disais plus haut script doit être correctement remplit ).
 
13. Ajouter nom-service comme étant un service pouvant être géré par chkconfig ( comme je le disais plus haut script doit être correctement remplit ).
 +
 
14. chkconfig --del nom-service
 
14. chkconfig --del nom-service
 +
 
15. Suppression de nom-service.
 
15. Suppression de nom-service.
 +
 
16. chkconfig nom-service reset  
 
16. chkconfig nom-service reset  
 +
 
17. Remet la configuration à celle par défaut définie dans le script.
 
17. Remet la configuration à celle par défaut définie dans le script.
  
Ligne 425 : Ligne 843 :
  
 
===Présentation===
 
===Présentation===
−
Une expression régulière (en anglais Regular Expression ou RE) sert à identifier une chaîne de caractère répondant à un certain critère (par exemple chaîne contenant des lettres minuscules uniquement). L\’avantage d\’une expression régulière est qu\’avec une seule commande on peut réaliser un grand nombre de tâche qui seraient fastidieuses à faire avec des commandes UNIX classiques.  
+
Une expression régulière (en anglais Regular Expression ou RE) sert à identifier une chaîne de caractère répondant à un certain critère (par exemple chaîne contenant des lettres minuscules uniquement). L'avantage d'une expression régulière est qu'avec une seule commande on peut réaliser un grand nombre de tâche qui seraient fastidieuses à faire avec des commandes UNIX classiques.  
 
Les commandes ed, vi, ex, sed, awk, expr et grep utilisent les expressions régulières.  
 
Les commandes ed, vi, ex, sed, awk, expr et grep utilisent les expressions régulières.  
−
L\’exemple le plus simple d\’une expression régulière est une chaîne de caractères quelconque toto par exemple. Cette simple expression régulière va identifier la prochaine ligne du fichier à traiter contenant une chaîne de caractère correspondant à l\’expression régulière.  
+
L'exemple le plus simple d'une expression régulière est une chaîne de caractères quelconque toto par exemple. Cette simple expression régulière va identifier la prochaine ligne du fichier à traiter contenant une chaîne de caractère correspondant à l'expression régulière.  
−
Si l\’on veut chercher une chaîne de caractère au sein de laquelle se trouve un caractère spécial (/, \*, $, ., \[, \], \{, \}, !, entre autres) (appelé aussi métacaractère), on peut faire en sorte que ce caractère ne soit pas interprété comme un caractère spécial mais comme un simple caractère. Pour cela vous devez le faire précéder par \ (backslash). Ainsi si votre chaîne est /dev, pour que le / ne soit pas interprété comme un caractère spécial, vous devez tapez \ /dev pour l\’expression régulière.  
+
Si l'on veut chercher une chaîne de caractère au sein de laquelle se trouve un caractère spécial (/, \*, $, ., \[, \], \{, \}, !, entre autres) (appelé aussi métacaractère), on peut faire en sorte que ce caractère ne soit pas interprété comme un caractère spécial mais comme un simple caractère. Pour cela vous devez le faire précéder par \ (backslash). Ainsi si votre chaîne est /dev, pour que le / ne soit pas interprété comme un caractère spécial, vous devez tapez \ /dev pour l'expression régulière.  
  
 
===Le métacaractère .===
 
===Le métacaractère .===
−
Le métacaractère . remplace dans une expression régulière un caractère unique, à l\’exception du caractère retour chariot (\ n). Par exemple chaine. va identifier toutes les lignes contenant la chaine chaine suivit d\’un caractère quelconque unique. Si vous voulez identifier les lignes contenant la chaîne .cshrc, l\’expression régulière correspondante est \ .cshrc  
+
Le métacaractère . remplace dans une expression régulière un caractère unique, à l'exception du caractère retour chariot (\ n). Par exemple chaine. va identifier toutes les lignes contenant la chaine chaine suivit d'un caractère quelconque unique. Si vous voulez identifier les lignes contenant la chaîne .cshrc, l'expression régulière correspondante est \ .cshrc  
  
 
===Les métacaractères \[ \]===
 
===Les métacaractères \[ \]===
−
Les métacaractères \[\] permettent de désigner des caractères compris dans un certain intervalle de valeur à une position déterminée d\’une chaîne de caractères. Par exemple \[Ff\]raise va identifier les chaînes Fraise ou fraise, \[a-z\]toto va identifier une chaîne de caractère commençant par une lettre minuscule (intervalle de valeur de a à z) et suvi de la chaîne toto (atoto, btoto, ...., ztoto).  
+
Les métacaractères \[\] permettent de désigner des caractères compris dans un certain intervalle de valeur à une position déterminée d'une chaîne de caractères. Par exemple \[Ff\]raise va identifier les chaînes Fraise ou fraise, \[a-z\]toto va identifier une chaîne de caractère commençant par une lettre minuscule (intervalle de valeur de a à z) et suvi de la chaîne toto (atoto, btoto, ...., ztoto).  
−
D\’une manière plus générale voici comment \[\] peuvent être utilisés.  
+
D'une manière plus générale voici comment \[\] peuvent être utilisés.  
 
\[A-D\] intervalle de A à D (A, B, C, D) par exemple bof\[A-D\] donne bofA, bofB, bofC, bofD  
 
\[A-D\] intervalle de A à D (A, B, C, D) par exemple bof\[A-D\] donne bofA, bofB, bofC, bofD  
 
\[2-5\] intervalle de 2 à 5 (2, 3, 4, 5) par exemple 12\[2-5\]2 donne 1222, 1232, 1242, 1252  
 
\[2-5\] intervalle de 2 à 5 (2, 3, 4, 5) par exemple 12\[2-5\]2 donne 1222, 1232, 1242, 1252  
Ligne 442 : Ligne 860 :
 
\[1-3-\] intervalle de 1 à 3 et - (1, 2, 3, -) par exemple \[1-3-\]3 donne 13, 23, 33, -3  
 
\[1-3-\] intervalle de 1 à 3 et - (1, 2, 3, -) par exemple \[1-3-\]3 donne 13, 23, 33, -3  
 
\[a-cI-K1-3\] intervalle de a à c, I à K et 1 à 3 (a, b, c, I, J, K, 1, 2, 3)  
 
\[a-cI-K1-3\] intervalle de a à c, I à K et 1 à 3 (a, b, c, I, J, K, 1, 2, 3)  
−
On peut utiliser \[\] avec un pour identifier le complèment de l\’expression régulière. En français pour identifier l\’opposé de l\’expression régulière. Vous avez toujours pas compris ? Voici un exemple: \[\^0-9\]toto identifie les lignes contenant une chaîne toto, le caractère juste avant ne doit pas être un chiffre (exemple atoto, gtoto mais pas 1toto, 5toto). Autre exemple \[\^a-zA-Z\] n\’importe quel caractère sauf une lettre minuscule ou majuscule. Attention à la place de \^, si vous tapez \[1-3\^\], c\’est équivalent aux caractères 1, 2, 3 et \^.  
+
On peut utiliser \[\] avec un pour identifier le complèment de l'expression régulière. En français pour identifier l'opposé de l'expression régulière. Vous avez toujours pas compris ? Voici un exemple: \[\^0-9\]toto identifie les lignes contenant une chaîne toto, le caractère juste avant ne doit pas être un chiffre (exemple atoto, gtoto mais pas 1toto, 5toto). Autre exemple \[\^a-zA-Z\] n'importe quel caractère sauf une lettre minuscule ou majuscule. Attention à la place de \^, si vous tapez \[1-3\^\], c'est équivalent aux caractères 1, 2, 3 et \^.  
  
 
===Les métacaractères \^ et $===
 
===Les métacaractères \^ et $===
−
Le métacaractère \^ identifie un début de ligne. Par exemple l\’expression régulière \^a va identifier les lignes commençant par le caractère a.  
+
Le métacaractère \^ identifie un début de ligne. Par exemple l'expression régulière \^a va identifier les lignes commençant par le caractère a.  
−
Le métacaractère $ identifie une fin de ligne. Par exemple l\’expression régulière a$ va identifier les lignes se terminant par le caractère a.  
+
Le métacaractère $ identifie une fin de ligne. Par exemple l'expression régulière a$ va identifier les lignes se terminant par le caractère a.  
−
L\’expression régulière \^chaine$ identifie les lignes qui contiennent strictement la chaîne chaine.  
+
L'expression régulière \^chaine$ identifie les lignes qui contiennent strictement la chaîne chaine.  
−
L\’expression régulière \^$ identifie une ligne vide.  
+
L'expression régulière \^$ identifie une ligne vide.  
  
 
===Le métacaractère \*===
 
===Le métacaractère \*===
 
Le métacaractère \* est le caractère de répétition.  
 
Le métacaractère \* est le caractère de répétition.  
−
L\’expression régulière a\* correspond aux lignes comportant 0 ou plusieurs caractère a. Son utilisation est à proscrire, car toutes les lignes, même celles ne contenant pas le caractère a, répondent aux critères de recherche. x\* est une source de problèmes, il vaut mieux éviter de l\’employer.  
+
L'expression régulière a\* correspond aux lignes comportant 0 ou plusieurs caractère a. Son utilisation est à proscrire, car toutes les lignes, même celles ne contenant pas le caractère a, répondent aux critères de recherche. x\* est une source de problèmes, il vaut mieux éviter de l'employer.  
−
L\’expression régulière aa\* correspond aux lignes comportant 1 ou plusieurs caractères a.  
+
L'expression régulière aa\* correspond aux lignes comportant 1 ou plusieurs caractères a.  
−
L\’expression régulière .\* correspond à n\’importe quelle chaîne de caractères.  
+
L'expression régulière .\* correspond à n'importe quelle chaîne de caractères.  
−
L\’expression régulière \[a-z\]\[a-z\]\* va chercher les chaînes de caractères contenant 1 ou plusieurs lettres minuscules (de a à z).  
+
L'expression régulière \[a-z\]\[a-z\]\* va chercher les chaînes de caractères contenant 1 ou plusieurs lettres minuscules (de a à z).  
−
L\’expression régulière \[\^ \]\[\^ \]\* est équivalent à tout sauf un blanc.  
+
L'expression régulière \[\^ \]\[\^ \]\* est équivalent à tout sauf un blanc.  
  
 
===Les métacaractères \ ( \)===
 
===Les métacaractères \ ( \)===
−
Pour le traitement complexe de fichier, il est utile parfois d\’identifier un certain type de chaîne pour pouvoir s\’en servir dans la suite du traitement comme un sous programme. C\’est le principe des sous chaînes, pour mémoriser une sous chaîne, on utilise la syntaxe \ (expression régulière)\, cette sous chaîne sera identifié par un chiffre compris par 1 et 9 (suivant l\’ordre de définition).  
+
Pour le traitement complexe de fichier, il est utile parfois d'identifier un certain type de chaîne pour pouvoir s'en servir dans la suite du traitement comme un sous programme. C'est le principe des sous chaînes, pour mémoriser une sous chaîne, on utilise la syntaxe \ (expression régulière)\, cette sous chaîne sera identifié par un chiffre compris par 1 et 9 (suivant l'ordre de définition).  
 
Par exemple \ (\[a-z\]\[a-z\]\*)\ est une sous chaîne identifiant les lignes contenant une ou plusieurs lettres minuscules, pour faire appel à cette sous chaîne, on pourra utiliser \ 1. Voir dans le paragraphe sed pour un exemple.  
 
Par exemple \ (\[a-z\]\[a-z\]\*)\ est une sous chaîne identifiant les lignes contenant une ou plusieurs lettres minuscules, pour faire appel à cette sous chaîne, on pourra utiliser \ 1. Voir dans le paragraphe sed pour un exemple.  
  
Ligne 465 : Ligne 883 :
  
 
===Présentation===
 
===Présentation===
−
sed est éditeur ligne non interactif, il lit les lignes d\’un fichier une à une (ou provenant de l\’entrée standard) leur applique un certain nombre de commandes d\’édition et renvoie les lignes résultantes sur la sortie standard. Il ne modifie pas le fichier traité, il écrit tout sur la sortie standard.  
+
sed est éditeur ligne non interactif, il lit les lignes d'un fichier une à une (ou provenant de l'entrée standard) leur applique un certain nombre de commandes d'édition et renvoie les lignes résultantes sur la sortie standard. Il ne modifie pas le fichier traité, il écrit tout sur la sortie standard.  
−
sed est une évolution de l\’éditeur ed lui même précurseur de vi, la syntaxe n\’est franchement pas très conviviale, mais il permet de réaliser des commandes complexes sur des gros fichiers.  
+
sed est une évolution de l'éditeur ed lui même précurseur de vi, la syntaxe n'est franchement pas très conviviale, mais il permet de réaliser des commandes complexes sur des gros fichiers.  
 
La syntaxe de sed est la suivante:  
 
La syntaxe de sed est la suivante:  
−
sed -e \’programme sed\’ fichier-a-traiter
+
sed -e 'programme sed' fichier-a-traiter
 
ou  
 
ou  
 
sed -f fichier-programme fichier-a-traiter
 
sed -f fichier-programme fichier-a-traiter
−
Vous disposez de l\’option -n qui supprime la sortie standard par défaut, sed va écrire uniquement les lignes concernées par le traitement (sinon il écrit tout même les lignes non traitées). L\’option -e n\’est pas nécessaire quand vous avez une seule fonction d\’édition.  
+
Vous disposez de l'option -n qui supprime la sortie standard par défaut, sed va écrire uniquement les lignes concernées par le traitement (sinon il écrit tout même les lignes non traitées). L'option -e n'est pas nécessaire quand vous avez une seule fonction d'édition.  
 
La commande sed est une commande très riche, ne vous sont présentées ici que les fonctions les plus courantes, pour plus de détails faites un man sed et/ou man ed.  
 
La commande sed est une commande très riche, ne vous sont présentées ici que les fonctions les plus courantes, pour plus de détails faites un man sed et/ou man ed.  
  
 
===La fonction de substitution s===
 
===La fonction de substitution s===
−
La fonction de substitution s permet de changer la première ou toutes les occurences d\’une chaîne par une autre. La syntaxe est la suivante:  
+
La fonction de substitution s permet de changer la première ou toutes les occurences d'une chaîne par une autre. La syntaxe est la suivante:  
 
sed "s/toto/TOTO/" fichier va changer la première occurence de la chaîne toto par TOTO (la première chaîne toto rencontrée dans le texte uniquement)  
 
sed "s/toto/TOTO/" fichier va changer la première occurence de la chaîne toto par TOTO (la première chaîne toto rencontrée dans le texte uniquement)  
 
sed "s/toto/TOTO/3" fichier va changer la troisième occurence de la chaîne toto par TOTO (la troisième chaîne toto rencontrée dans le texte uniquement)  
 
sed "s/toto/TOTO/3" fichier va changer la troisième occurence de la chaîne toto par TOTO (la troisième chaîne toto rencontrée dans le texte uniquement)  
Ligne 491 : Ligne 909 :
 
Cette commande supprime les lignes contenant la chaîne toto. Si au contraire on ne veut pas effacer les lignes contenant la chaîne toto (toutes les autres sont supprimées), on tapera:  
 
Cette commande supprime les lignes contenant la chaîne toto. Si au contraire on ne veut pas effacer les lignes contenant la chaîne toto (toutes les autres sont supprimées), on tapera:  
 
sed "/toto/!d" fichier
 
sed "/toto/!d" fichier
−
En fait les lignes du fichier d\’entrée ne sont pas supprimées, elles le sont au niveau de la sortie standard.  
+
En fait les lignes du fichier d'entrée ne sont pas supprimées, elles le sont au niveau de la sortie standard.  
  
 
===Les fonctions p, l, et ====
 
===Les fonctions p, l, et ====
−
La commande p (print) affiche la ligne sélectionnée sur la sortie standard. Elle invalide l\’option -n.  
+
La commande p (print) affiche la ligne sélectionnée sur la sortie standard. Elle invalide l'option -n.  
 
La commande l (list) affiche la ligne sélectionnée sur la sortie standard avec en plus les caractères de contrôles en clair avec leur code ASCII (deux chiffres en octal).  
 
La commande l (list) affiche la ligne sélectionnée sur la sortie standard avec en plus les caractères de contrôles en clair avec leur code ASCII (deux chiffres en octal).  
 
La commande = donne le numéro de la ligne sélectionnée sur la sortie standard.  
 
La commande = donne le numéro de la ligne sélectionnée sur la sortie standard.  
Ligne 502 : Ligne 920 :
  
 
===Les fonctions q, r et w===
 
===Les fonctions q, r et w===
−
La fonction q (quit) va interrompre l\’exécution de sed, la ligne en cours de traitement est affichée sur la sortie standard (uniquement si -n n\’a pas été utilisée).  
+
La fonction q (quit) va interrompre l'exécution de sed, la ligne en cours de traitement est affichée sur la sortie standard (uniquement si -n n'a pas été utilisée).  
−
La fonction r (read) lit le contenu d\’un fichier et écrit le contenu sur la sortie standard.  
+
La fonction r (read) lit le contenu d'un fichier et écrit le contenu sur la sortie standard.  
 
La fonction w (write) écrit la ligne sélectionnée dans un fichier.  
 
La fonction w (write) écrit la ligne sélectionnée dans un fichier.  
 
sed "/\^toto/w resultat" fichier
 
sed "/\^toto/w resultat" fichier
Ligne 528 : Ligne 946 :
 
On exécute la commande en tapant:  
 
On exécute la commande en tapant:  
 
sed -f prog.sed fichier-a-traiter
 
sed -f prog.sed fichier-a-traiter
−
prog.sed a pour effet d\’inscrire avant la première ligne (1i) le texte "début de traitement", et après la dernière ligne ($a) le texte "fin du traitement (retour à la ligne) de notre fichier".  
+
prog.sed a pour effet d'inscrire avant la première ligne (1i) le texte "début de traitement", et après la dernière ligne ($a) le texte "fin du traitement (retour à la ligne) de notre fichier".  
  
 
===sed et les sous chaînes===
 
===sed et les sous chaînes===
Ligne 535 : Ligne 953 :
 
La sous expression (sous chaîne) \ (\[0-9\]\[0-9\]\*\) désigne un ou plusieurs chiffres, chacun sera entouré des caractères aa. La chaîne to2to deviendra toaa2aato.
 
La sous expression (sous chaîne) \ (\[0-9\]\[0-9\]\*\) désigne un ou plusieurs chiffres, chacun sera entouré des caractères aa. La chaîne to2to deviendra toaa2aato.
  
−
==Du==
+
=Du=
−
du -h . --max-depth=1
+
du -h . --max-depth=1
 +
 
 +
Solution Yilmas
 +
find /var -xdev -ls| sort -n -k 7
 +
 
 +
Trouver les fichier du -i
 +
find /var -printf '%h\n' | sort | uniq -c | sort -k 1 -n
 +
 
 +
=Kill=
 +
ps -ef | grep  'Chaine Cherchée' | grep -v grep | awk '{print $2}' |  xargs -I {} -t kill -9 {}
 +
 
 +
=tail (Unix)=
 +
 
 +
tail est une commande UNIX qui permet d'afficher les dernières lignes de texte d'un fichier ou de l'entrée standard.
 +
 
 +
===Syntaxe===
 +
 
 +
La syntaxe est la suivante : 
 +
tail [options] <fichier>
 +
 
 +
Par défaut, tail affiche les 10 dernières lignes de son entrée sur la sortie standard.
 +
Le nombre de lignes affichées et l'unité utilisée (lignes, blocs, octets) peuvent être changés avec une option fournie sur la ligne de commande.
 +
L'exemple suivant affiche les 20 dernières lignes de fichier : 
 +
 
 +
tail -n 20 ''fichier''
 +
 
 +
Cet exemple affiche les 15 derniers octets de tous les fichiers commençant par foo : 
 +
 
 +
tail -c 15 ''foo*''
 +
 
 +
Cet exemple affiche toutes les lignes de fichier à partir de la seconde ligne :
 +
 +
tail -n +2 ''filename''
 +
 
 +
En utilisant une ancienne syntaxe (encore utilisée sur Sun Solaris car l'option -n n'y est pas gérée), les 20 dernières lignes et les 50 derniers octets de fichier peuvent être affichés avec la commande suivante :
 +
 
 +
tail -20 ''fichier'' tail -50c ''fichier''
 +
 
 +
Suivi de fichier en temps réel
 +
 
 +
tail a une option spéciale -f qui permet à un fichier d'être surveillé.
 +
Au lieu d'afficher les dernières lignes et de quitter, tail affiche les dernières lignes et surveille le fichier. Quand des nouvelles lignes sont ajoutées au fichier par un autre processus, tail met à jour l'affichage. C'est particulièrement utile pour surveiller des fichiers journaux. La commande suivante va afficher les 10 dernières lignes de messages ainsi que les nouvelles lignes ajoutées ensuite à messages : 
 +
 
 +
tail -f /var/adm/messages
 +
 
 +
Pour interrompre tail lors d'un monitoring, il suffit d'interrompre le processus en appuyant sur Ctrl+C.
 +
Cette commande peut être exécutée en arrière plan avec &.
 +
Pour surveiller le résultat d'une commande (et non un fichier), il existe la commande watch qui exécute régulièrement la commande fournie en argument et affiche le résultat.
  
−
==Rescan des contrôleurs SCSI==
 
−
echo "- - -" > /sys/class/scsi_host/host0/scan
 
  
 +
=NTPD=
 +
ntpdate -b <server host name>
  
 +
=Rescan des contrôleurs SCSI=
 +
echo "- - -" > /sys/class/scsi_host/host0/scan
  
 
=SNMP – Nagios=
 
=SNMP – Nagios=
Ligne 566 : Ligne 1 033 :
 
==NRPE sur AIX==
 
==NRPE sur AIX==
 
1.Extract the pacage in /usr/local
 
1.Extract the pacage in /usr/local
 +
 
2. create user nagios and group nagios
 
2. create user nagios and group nagios
 +
 
3. chown -R nagios.nagios /usr/local/nagios
 
3. chown -R nagios.nagios /usr/local/nagios
 +
 
4. If not exists create /var/run and make sure user nagios can write inside
 
4. If not exists create /var/run and make sure user nagios can write inside
 +
 
5. edit /usr/local/nagios/nrpe.cfg according your needs. Usually you should change the IP
 
5. edit /usr/local/nagios/nrpe.cfg according your needs. Usually you should change the IP
 
addresses there and probably edit or add additional check commands
 
addresses there and probably edit or add additional check commands
 +
 
6. add in /etc/inittab the following row
 
6. add in /etc/inittab the following row
 
nrpe:2:once:/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
 
nrpe:2:once:/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
 +
 
7. make sure that there is no firewall which will stop the nagios server to communicate
 
7. make sure that there is no firewall which will stop the nagios server to communicate
 
with the aix machine on port 5666
 
with the aix machine on port 5666
 +
 
8. execute this command (can be root...nrpe will switch to user nagios)
 
8. execute this command (can be root...nrpe will switch to user nagios)
 
/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
 
/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
 +
 
9. check if you have the process running
 
9. check if you have the process running
−
ps -fe\|grep nrpe
+
ps -fe|grep nrpe
 +
 
 
10. Login on the nagios server and test it with this command
 
10. Login on the nagios server and test it with this command
 
/usr/local/nagios/libexec/check_nrpe -n -H aix_ip_address -c check_aix_users
 
/usr/local/nagios/libexec/check_nrpe -n -H aix_ip_address -c check_aix_users
 +
 +
 +
  PMS
 +
  /usr/bin/nrpe -c /etc/nrpe.cfg -d
  
 
==Relance SNMP AIX==
 
==Relance SNMP AIX==
 +
 
stopsrc -s snmpd
 
stopsrc -s snmpd
−
stopsrc -s snmpd
+
 
 +
 
 
startsrc -s snmpd
 
startsrc -s snmpd
 +
 +
==Fichier conf AIX SNMP==
 +
 +
/etc/snmpdv3.conf
 +
 +
  VACM_GROUP group1 SNMPv1  public  -
 +
  VACM_GROUP group1 SNMPv1  publivac  -
 +
 
 +
  VACM_VIEW defaultView        internet                  - included -
 +
 
 +
  # exclude snmpv3 related MIBs from the default view
 +
  VACM_VIEW defaultView        snmpModules                - excluded -
 +
  VACM_VIEW defaultView        1.3.6.1.6.3.1.1.4          - included -
 +
  VACM_VIEW defaultView        1.3.6.1.6.3.1.1.5          - included -
 +
 
 +
  # exclude aixmibd managed MIBs from the default view
 +
  VACM_VIEW defaultView        1.3.6.1.4.1.2.6.191        - excluded -
 +
 
 +
  VACM_ACCESS  group1 - - noAuthNoPriv SNMPv1  defaultView - defaultView -
 +
 
 +
  NOTIFY notify1 traptag trap -
 +
 
 +
  TARGET_ADDRESS Target1 UDP 127.0.0.1      traptag trapparms1 - - -
 +
 
 +
  TARGET_PARAMETERS trapparms1 SNMPv1  SNMPv1  public  noAuthNoPriv -
 +
 
 +
  COMMUNITY public    public    noAuthNoPriv 0.0.0.0    0.0.0.0        -
 +
  COMMUNITY publivac    publivac    noAuthNoPriv 0.0.0.0    0.0.0.0        -
 +
 
 +
  DEFAULT_SECURITY no-access - -
 +
 
 +
  logging        file=/usr/tmp/snmpdv3.log      enabled
 +
  logging        size=100000                    level=0
 +
 
 +
  smux            1.3.6.1.4.1.2.3.1.2.1.2        gated_password  # gated
 +
 
 +
  smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd
  
 
==Relance SNMP Solaris==
 
==Relance SNMP Solaris==
Ligne 604 : Ligne 1 123 :
  
  
−
=  
+
=Automator=
−
AS400 Procédures=
+
==OPSADM==
 +
Suppression instance:
 +
 +
./opsadm delinst -name "Instance" -onlyms 1 -pserver "Pserver" -port "PortNBR"
  
−
== Affichage d\’un profil utilisateur==
+
==OPSCMD==
  
−
Commande : WRKUSRPRF « login user »
+
===Modifier le statut d’un objet : opscmd dspsts===
 +
''Description Défaut (options non obligatoires)''
 +
{| class="wikitable"
 +
|-
 +
! Option  !! Description !! Défaut (options non obligatoires)
 +
|-
 +
| obj || Nom de l'objet ||
 +
|-
 +
| action || Action sur l‟objet : ||
 +
|-
 +
|  || "restart" : redémarrer ||
 +
|-
 +
|  || "hold" : retenir en pause ||
 +
|-
 +
|  || "release" : relâcher ||
 +
|-
 +
|  || "request" : demander ||
 +
|-
 +
|  || "cancel' Kill ||
 +
|-
 +
|  || "f_tobedone" futur ||
 +
|-
 +
|  || "f_running" : démarré ||
 +
|-
 +
|  || "f_finished" : terminé ||
 +
|-
 +
|  || "f_failed" : en erreur ||
 +
|-
 +
|  || "f_desched" : déplanifié ||
 +
|-
 +
|  || "f_notsched" : Non planifié ||
 +
|-
 +
| || "f_tobedoneheld": À venir retenu ||
 +
|-
 +
| || "f_etqcur" : Passer étiquette ||
 +
|-
 +
| ||"f_tobedoneheld": À venir retenu ||
 +
|-
 +
| ||"f_etqcur" : Passer étiquette ||
 +
|-
 +
|inst  || Nom de l'instance ||
 +
|-
 +
|number || Numéro de l'instance (jobs duplicateurs AS/400) ||1
 +
|-
 +
|date || date de l'instance || date du jour
 +
|-
 +
|etqsrt ||Etiquette de début (juste pour les actions f_tobedone et f_running)||
 +
|-
 +
|etqend ||Etiquette de fin (juste pour les actions f_tobedone et f_running)||
 +
|-
 +
|etqcur ||Etiquette courante (seulement pour l'action f_etqcur)||
 +
|-
 +
|pserver ||Serveur de production ||serveur où est lancé l'opscmd
 +
|-
 +
|mserver ||Serveur de modélisation ||serveur où est lancé l'opscmd
 +
|-
 +
|port ||Port du serveur (modélisation ou production) ||10500 (opt mserver) 10510 (opt pserver)
 +
|}
  
 +
'''Remarque''' : selon le type ou le statut de l'objet au moment où vous lancez la commande, toutes les actions
 +
ne sont toutes utilisables (ex : il est impossible de faire une requête (action "request") sur l'objet horloge seuls
 +
les jobs et les applications peuvent être l'objet d?une requête).
 +
''Exemple'' : (Relancer un job)
 +
...\Automator\MServer\bin\>opscmd object -obj JOB_0_C1 -action restart -inst inst_n_1 Action on object JOB_0_C1 registered
 +
Si vous obtenez le message "action on object registered", l’action a bien été prise en
 +
compte mais n’est pas forcément exécutée (voir la note ci-dessus).
 +
''Remarque'' : s'il y a plusieurs objets qui ont le même nom mais des niveaux graphiques différents, il convient de préciser
 +
dans l'option obj, l'application qui contient l'objet :
 +
-obj APPLICATION/OBJET
  
−
== Réactivation d\’un profil utilisateur==
+
=OPUS=
  
−
Commande : WRKUSRPRF « login user » => 2 => ligne « état » \*ENABLED
 
−
 
−
 
−
==Réinitialisation mot de passe utilisateur==
 
−
 
−
Commande : WRKUSRPRF « login user » => 2 => ligne « mot de passe » tapez « pw1 » => ligne « Forcer péremption mot de passe » tapez \*yes
 
−
 
−
 
−
==Formatage de cartouche==
 
−
Commande : INZTAP => F4 => Tape02 (1er ligne) => PVT (2ème ligne) => \*no (5ème ligne) => Entrée
 
−
 
−
 
−
==Sauvegarde d\’une bibliothèque==
 
−
Commande : SAVLIB => F4 => Nom bibliothèque a SVG (1er ligne) => nom du lecteur (3ème ligne) => F10 => \*Unload (10ème ligne) => Entrée.
 
−
 
−
==Restauration bibliothèque==
 
−
 
−
Commande : SBLJOB =>F4=>RSTLIB=>F4=>nom de la lib à restaurer =>nom du lecteur =>F10=> option membre base de données =>\*all =>admettre différences d\’objet =>\*all
 
−
 
−
 
−
==Occupation HDD + ram==
 
−
Commande HDD: WRKSYSSTS
 
−
Commande HDD wrkshrpool
 
−
 
−
 
−
==Vérification job + CPU (Gestion des travaux  actif) ==
 
−
Commande : WRKACTJOB
 
−
 
−
 
−
==Gestion des fichiers en spoule==
 
−
Commande : WRKSPLF
 
−
 
−
 
−
== Relance impression ==
 
−
Commande : STRPRTWTR
 
−
 
−
==Pb sur interface ethernet==
 
−
 
−
Commande : Go tcpadm => 1 => 1 vérifier la ligne avec l\’adresse ip du srv => F11 pour voir son statut
 
−
Si statut = RCYPND => wrkcfgsts \*lin lineth => vérifier état => mettre hors fonction (2) => puis en fonction (1).
 
−
Si marche pas faire 1  =>F4 => \*yes sur reset
 
−
Revenir sur interface (ip srv) et faire un start.
 
−
 
 
−
 
−
==Demande de catalogue par internet(Dispo)==
 
−
 
−
Sur menu de démarrage de Bigboss : 1406
 
−
Pw minitel
 
−
Faire H/2006
 
−
Attendre fin  du traitement.
 
−
Strpdm => 3 => fichier QCLSRC
 
−
Bibliothèque SRCPROD
 
−
Membre HMDISP2
 
−
Type \*ALL
 
−
=> 8 => vérifiez date de modification  => 5 => vérifiez si transmission OK
 
−
 
−
 
−
==Gestion alerte MSG==
 
 
 
−
Commande : dspmsg qsysopr
+
Voici où se trouve les différentes logs des composants OPUS quel que soit l’environnement.  
−
Donne les messages en attente de réponse.  
 
  
 +
Pour tous les composants, le répertoire initial où sont les logs est /var/log
  
 +
On trouve ensuite des sous-répertoires par type de composant selon les serveurs :
  
 +
/var/log/jboss50/<env>_<xxx> : contient toutes les logs des instances jboss du composant xxx pour l’environnement env qui se trouve sur le serveur
  
 +
Exemple : /var/log/jboss50/p1opus_bws pour les logs de l’instance bws de P1
  
−
==Agent de supervision ==
+
/var/log/esb/<env>_<xxx> : contient toutes les logs des instances mule xxx pour l’environnement env du serveur
  
−
Commande :  
+
Exemple : /var/log/esb/p1opus_int contient les logs de l’instance esb internal de P1
−
Montez la librairie : addlible op_monitor
 
−
Stoppez les agents : monendsbs
 
−
Attendre que les process colector et  monagt disparaisse (F10 pour rafraîchir le wrkactjob).
 
−
Démarrez les agents : monstrsbs
 
−
Vérifiez la remonter des process, si ils ne remontent pas ensemble refaire l\’opération.
 
  
 +
/var/log/accovia/<env>_<xxx> : contient toutes les logs des composants batch, event et lockmanager  fournies par Accovia
  
−
==Gestion des carte de crédit==
+
Exemples : p1opus_lockmgr pour le lock manager de P1
−
Sur Picsou
 
−
Commande :  
 
−
MPCOMBAC => 5 => 1 => saisir code selon le jour :
 
−
Lun et Jeu : AE01 et CF01 et DN01 et CL01
 
−
Mar et Mer : AE01 et CL01
 
−
Vérifiez que pas d\’erreur, si erreur => 4 => choisir ligne en erreur => E
 
−
A la fin du traitement vérifiez si ACR :
 
  
 +
p1opus_batch pour la composante batch de P1
  
−
==Impression Etat de Remplissage==
+
p1opus_event pour la composante event de P1
−
Sur Bigboss
 
−
Commande :
 
−
Wrksplf desnoyers => vérifiez si job Remp-simpl (\~120 pages) => 2 (devant ligne) => sur ligne de commandes OUTQ (prt03)
 
−
Sur Picsou
 
−
Commande :
 
−
Wrkwtr prt03\* => 8 =>sur ligne du job => 7 => 7 =>I
 
  
−
Si le job Remp-simpl n\’est pas présent voir annexe 1
+
/var/log/sips/traces : contient toutes les logs du comosant SIPS
  
 +
/var/log/activemq : contient toutes les logs des active MQ présent sur le serveur
 +
                    Le fichier wrapper1.log et activemq1.log se referent à l’activemq1
 +
                    Le fichier wrapper2.log et activemq2.log se referent à l’activemq2
 +
                  Ceci est valable pour les 2 serveurs où sont hebergés 2 activemq
  
 +
/var/log/talend/<env>_t<yyy> : contient toutes les logs du composant talend yyy
  
 +
Exemples : p1opus_tap pour le talend ap de P1
  
−
NB :
+
=Recouvrement=
−
Sur BigBoss
 
−
Commande : WRKSPLF desnoyers => outq (prt03) => WRKWTR PRT03\* => 8 sur ligne « prt03 »
 
−
Sur Picsou
 
−
Commande : WRKWTR prt03\* => 8 =>retrouver le job => si HLD alors 6 devant => dans MSG faire G.
 
  
 +
==Deloocker des sessions SQL sur la base Recouvrement_PPD/PRD :==
 +
Noter les « verrous » dans Entreprise Manager/Gestion/Activité en cours.
 +
Dans un analyseur de requêteSQL faire :
 +
exec sp_who2;  Vérifier le n° de Spid correspondant.
 +
Puis faire : kill « N°SPID »
  
−
==Gestion des messages de QSYSOPR ==
+
=SSH: copier un fichier avec la commande scp=
  
−
Commande :
 
−
DSPMSG QSYSOPR
 
−
 7 devant la ligne en MSGW => F16 => R (relancer) si la relance ne marche pas faire un DUMP (D) puis un Cancel (C).
 
  
 +
==1. Définition==
 +
La commande scp permet de copier un fichier ou un répertoire (-r) du client vers le serveur ou du serveur vers le client. Le chemin du serveur peut être indiqué en absolu (/home/dupont/Repertoire par exemple) ou relatif à partir du répertoire de base Repertoire. Pour utiliser scp, vous devez connaître l'arborescence exacte des répertoires de la machine distante. Il est impératif que SSH soit installé sur les deux machines devant communiquer pour effectuer votre transfert.
 +
Attention: il sera nécessaire de donner votre mot de passe car au Centre de Calcul, il n'est pas possible de faire une authentification par échange de clés SSH (voir [se connecter au Centre de Calcul avec SSH-http://cc.in2p3.fr/docenligne/228]).
  
 +
==2. Usage==
 +
scp \[-pqrvBC1246\] \[-F ssh_config\] \[-S program\] \[-P port\] \[-c cipher\]
 +
    \[-i identity_file\] \[-l limit\] \[-o ssh_option\] \[\[user@\]host1:\]file1
 +
    \[...\] \[\[user@\]host2:\]file2
  
−
==Vérification du traitement Sologne Routage==
+
==3. Syntaxe==
−
 
+
• Copie d'un fichier d'une machine serveur1 vers une autre machine serveur2:
−
Sur Picsou
 
−
Commande :
 
−
MPCOMBAC => 5 => 1 => SR01 => Vérifier que Fichier ESR015R01 envoyé.
 
−
 
 
  
−
==Voir une file d\’attente ==
+
> scp Login1@Serveur1:Chemin1/NomFichier1 Login2@Serveur2:Chemin2/NomFichier2
  
−
Commande :
 
−
WRKJOBQ =>F4=> nom de la file d\’attente => entrée
 
  
 +
• Copie d'un fichier depuis le répertoire courant vers un répertoire du serveur:
  
−
==Holder une file d\’attente==
+
> scp Fichier login@serveur:Chemin
  
−
hldjobq « nom de la file »
 
  
 +
• Copie d'un répertoire, avec éventuellement ses sous-répertoires, vers un répertoire du serveur:
  
 +
> scp -r Repertoire login@serveur:Chemin
  
  
 +
• Copie d'un fichier du serveur vers le répertoire courant:
  
−
==Arrêter et démarrer les intégrateurs (harpege) ==
+
> scp login@serveur:Chemin/Fichier .
−
Sur Picsou
 
−
Commande :
 
−
GO EXPLOIT=> choisir le menu adéquat
 
−
Commande d\’arrêt / relance des intégrateurs :
 
−
CALL PGM(OBJPROD/STRHARPEGE) PARM(\’AXFILE\’ \’AXFI309\’)
 
−
CALL PGM(OBJPROD/ENDHARPEGE) PARM(\’AXFILE\’ \’AXFI309\’)
 
  
  
−
==Libérer une file d\’attente==
+
• Copie d'un répertoire du serveur vers le répertoire courant:
  
−
Commande :
+
  > scp -r login@serveur:Chemin/Repertoire .
−
RLSjOBQ => F4 => nom de la file d\’attente.
 
−
 
 
−
 
 
−
==Nombre de cession dépassé==
 
−
 
 
−
Commande :
 
−
WRKUSRjob => F4 nom du profif
 
−
 
 
−
 
 
−
==Relance Interface Site ==
 
−
 
 
−
Sur BigBoss :
 
−
Dans le menu de démarrage :
 
−
94 => 16 (pour vérifier si interface OK)
 
−
2 => pour E mettre date extrac. : « J-1 » au 080511
 
−
Saison : E
 
−
Données précédentes écrasées : O
 
−
Pour H mettre date extrac. : « j-1 »  au 211111
 
−
Saison : H
 
−
Données précédentes écrasées : N
 
−
Validez (entrée)
 
−
6 => 21 => WRKJOBQ nuit1 => RLSJOBQ NUIT1 => Attendre fin envoie puis => SBMJOB => F4 => HLDJOBQ => F4 => NUIT1 => QGPL => dans « File d\’attente de travaux » NUIT1 => Validé.
 
−
 
−
 
 
−
==Relance pour un site ou plusieurs :==
 
−
Dans le menu de démarrage :
 
−
94 => 23 => choisir le(s) site(s) et faire transfère site.
 
−
Faire de même sur tous les sites
 
−
Une fois tous les sites générés :
 
−
WRKJOBQ nuit1 => RLSJOBQ nuit1 => une fois la liste en attente vide => HLDJOBQ nuit1
 
−
Valider avec le site pour qu\’ils régénèrent leurs interfaces.
 
−
 
 
−
==Déblocage saison ==
 
−
 
 
−
Sur Bigboss :
 
−
Commande : wrkactjob sbs(qinter) => chercher l\’utilisateur => 4 => F4 => \*IMMED
 
−
 
 
−
==Commandes  AS400 :==
 
−
 
 
−
Petit PDF ou vous pouvez trouver des commandes AS400 avec leurs descriptions
 
−
[\\swiext0001\WIKI\CMD_AS400.pdf-CMD_AS400.pdf]
 
−
Vous pouvez aussi taper la commande :
 
−
go cmd « début commande »
 
−
pour trouver la commande utile.
 
−
 
 
−
 
 
−
==Gestion des imprimantes==
 
−
 
 
−
Commande :
 
−
Wrkoutq « nom de l\’imprimante » .
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
==Changer une ip d\’imprimante==
 
−
 
 
−
WRKCFGSTS CFGTYPE(\*DEV) CFGD(« Nom de l\’imprimante »)
 
−
Faire « 2 » devant la ligne de l\’imprimante
 
−
Faire « F14 » puis paginer jusqu\’à la ligne avec l\’IP.
 
−
Faire « 2 » devant la ligne de l\’imprimante
 
−
La modifier et valider puis « F12 ».
 
−
Faire « 1 » devant la ligne de l\’imprimante, puis « F5 » pour voire passer en ACTIVE.
 
−
Faire « F3 » pour sortir.
 
−
WRKwtr « nom de l\’imprimante »\*  NE PAS OUBLIER LE « \* ».
 
−
Faire « 1 » devant la ligne de l\’imprimante.
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
=Automator =
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
=
 
−
OPUS=
 
−
 
 
−
 
−
Voici où se trouve les différentes logs des composants OPUS quel que soit l\’environnement.
 
−
Pour tous les composants, le répertoire initial où sont les logs est /var/log
 
−
On trouve ensuite des sous-répertoires par type de composant selon les serveurs :
 
−
/var/log/jboss50/<env>_<xxx> : contient toutes les logs des instances jboss du composant xxx pour l\’environnement env qui se trouve sur le serveur
 
−
Exemple : /var/log/jboss50/p1opus_bws pour les logs de l\’instance bws de P1
 
−
/var/log/esb/<env>_<xxx> : contient toutes les logs des instances mule xxx pour l\’environnement env du serveur
 
−
Exemple : /var/log/esb/p1opus_int contient les logs de l\’instance esb internal de P1
 
−
/var/log/accovia/<env>_<xxx> : contient toutes les logs des composants batch, event et lockmanager  fournies par Accovia
 
−
Exemples : p1opus_lockmgr pour le lock manager de P1
 
−
p1opus_batch pour la composante batch de P1
 
−
p1opus_event pour la composante event de P1
 
−
/var/log/sips/traces : contient toutes les logs du comosant SIPS
 
−
/var/log/activemq : contient toutes les logs des active MQ présent sur le serveur
 
−
            Le fichier wrapper1.log et activemq1.log se referent à l\’activemq1
 
−
            Le fichier wrapper2.log et activemq2.log se referent à l\’activemq2
 
−
            Ceci est valable pour les 2 serveurs où sont hebergés 2 activemq
 
−
/var/log/talend/<env>_t<yyy> : contient toutes les logs du composant talend yyy
 
−
Exemples : p1opus_tap pour le talend ap de P1
 
−
 
 
−
 
 
−
=
 
−
Recouvrement=
 
−
 
 
−
 
 
−
==Deloocker des sessions SQL sur la base Recouvrement_PPD/PRD :==
 
−
Noter les « verrous » dans Entreprise Manager/Gestion/Activité en cours.
 
−
Dans un analyseur de requêteSQL faire :
 
−
exec sp_who2;  Vérifier le n° de Spid correspondant.
 
−
Puis faire : kill « N°SPID »
 
−
 
 
−
 
 
−
=SSH: copier un fichier avec la commande scp=
 
−
 
 
−
 
 
−
==1. Définition==
 
−
La commande scp permet de copier un fichier ou un répertoire (-r) du client vers le serveur ou du serveur vers le client. Le chemin du serveur peut être indiqué en absolu (/home/dupont/Repertoire par exemple) ou relatif à partir du répertoire de base Repertoire. Pour utiliser scp, vous devez connaître l\’arborescence exacte des répertoires de la machine distante. Il est impératif que SSH soit installé sur les deux machines devant communiquer pour effectuer votre transfert.
 
−
Attention: il sera nécessaire de donner votre mot de passe car au Centre de Calcul, il n\’est pas possible de faire une authentification par échange de clés SSH (voir [se connecter au Centre de Calcul avec SSH-http://cc.in2p3.fr/docenligne/228]).
 
−
 
 
−
==2. Usage==
 
−
scp \[-pqrvBC1246\] \[-F ssh_config\] \[-S program\] \[-P port\] \[-c cipher\]
 
−
    \[-i identity_file\] \[-l limit\] \[-o ssh_option\] \[\[user@\]host1:\]file1
 
−
    \[...\] \[\[user@\]host2:\]file2
 
−
 
 
−
==3. Syntaxe==
 
−
• Copie d\’un fichier d\’une machine serveur1 vers une autre machine serveur2:
 
−
> scp Login1@Serveur1:Chemin1/NomFichier1 Login2@Serveur2:Chemin2/NomFichier2
 
−
• Copie d\’un fichier depuis le répertoire courant vers un répertoire du serveur:
 
−
> scp Fichier login@serveur:Chemin
 
−
• Copie d\’un répertoire, avec éventuellement ses sous-répertoires, vers un répertoire du serveur:
 
−
> scp -r Repertoire login@serveur:Chemin
 
−
• Copie d\’un fichier du serveur vers le répertoire courant:
 
−
> scp login@serveur:Chemin/Fichier .
 
−
• Copie d\’un répertoire du serveur vers le répertoire courant:
 
−
> scp -r login@serveur:Chemin/Repertoire .
 
  
 
==4. Exemple==
 
==4. Exemple==
Ligne 929 : Ligne 1 293 :
 
Voici la procédure pour générer un rapport DSET :
 
Voici la procédure pour générer un rapport DSET :
  
−
==Lien vers l\’utilitaire :  ==
+
==Lien vers l'utilitaire :  ==
 +
 
 
Version 32 bits : http://ftp.dell.com/FOLDER00481746M/1/dell-dset-3.2.0.141_x86_A01.bin
 
Version 32 bits : http://ftp.dell.com/FOLDER00481746M/1/dell-dset-3.2.0.141_x86_A01.bin
 +
 
Version 64 bits : http://ftp.dell.com/FOLDER00481758M/1/dell-dset-3.2.0.141_x64_A01.bin
 
Version 64 bits : http://ftp.dell.com/FOLDER00481758M/1/dell-dset-3.2.0.141_x64_A01.bin
−
Lien vers l\’utilitaire si la version 3.2 ne passe pas:  
+
 
 +
Lien vers l'utilitaire si la version 3.2 ne passe pas:  
 +
 
 
Version 32 bits : ftp://ftp.us.dell.com/diags/delldset_v2.2.125_x86_A01.bin (41,3 Mo)
 
Version 32 bits : ftp://ftp.us.dell.com/diags/delldset_v2.2.125_x86_A01.bin (41,3 Mo)
 +
 
Version 64 bits : ftp://ftp.us.dell.com/diags/delldset_v2.2.125_x64_A01.bin (36,3 Mo)
 
Version 64 bits : ftp://ftp.us.dell.com/diags/delldset_v2.2.125_x64_A01.bin (36,3 Mo)
  
 
==Procédure à suivre :==
 
==Procédure à suivre :==
−
i. Télécharger l\’utilitaire
+
i. Télécharger l'utilitaire
 +
 
 
ii. Ouvrir le terminal et se positionner dans le répertoire du fichier DSET
 
ii. Ouvrir le terminal et se positionner dans le répertoire du fichier DSET
 +
 
iii. Lancer la commande : ./dell-dset-3.2.0.141_x86_A01.bin
 
iii. Lancer la commande : ./dell-dset-3.2.0.141_x86_A01.bin
 +
 
iv. Appuyer sur la touche "q"
 
iv. Appuyer sur la touche "q"
 +
 
v. Taper "y" pour accepter la License:
 
v. Taper "y" pour accepter la License:
−
vi. Sélectionner l\’option 2 : "Create the DSET Report Only"
+
 
 +
vi. Sélectionner l'option 2 : "Create the DSET Report Only"
 +
 
 
vii. Renseigner les informations : company name et email
 
vii. Renseigner les informations : company name et email
−
viii. L\’utilitaire va se lancer et créer un fichier zip, répondre "n" quand il demande l\’upload sur un site FTP  
+
 
 +
viii. L'utilitaire va se lancer et créer un fichier zip, répondre "n" quand il demande l'upload sur un site FTP  
 +
 
 
ix. Quitter le terminal
 
ix. Quitter le terminal
  
 
Le rapport est sauvegardé dans : " /tmp/dset/report ", merci de nous le renvoyer par mail.
 
Le rapport est sauvegardé dans : " /tmp/dset/report ", merci de nous le renvoyer par mail.
  
−
=Network=
+
=Utiliser le LiveCD pour effectuer un Dset=
−
 
 
−
===Trouver une mac Adresse sur switch===
 
−
show fdb ports
 
−
 
 
−
 
 
−
==Utiliser le LiveCD pour effectuer un Dset==
 
 
Objectif:
 
Objectif:
−
Ce tutoriel vous permettra de générer des logs (Dset) sur un serveur qui possède un système d\’exploitation non pris en charge par Dell (Tels qu\’Ubuntu ou Debian par exemple)
+
Ce tutoriel vous permettra de générer des logs (Dset) sur un serveur qui possède un système d'exploitation non pris en charge par Dell (Tels qu'Ubuntu ou Debian par exemple)
 
Ce tutoriel se fera via un LiveCd basé sur une distribution Linux Centos.
 
Ce tutoriel se fera via un LiveCd basé sur une distribution Linux Centos.
−
Un LiveCd est un CD bootable qui permet de lancer un système d\’exploitation à la volée sans toucher au disque dur.
+
Un LiveCd est un CD bootable qui permet de lancer un système d'exploitation à la volée sans toucher au disque dur.
−
Le LiveCd proposé est développé par une communauté d\’utilisateurs Linux dans le but d\’aider les utilisateurs à faire des diagnostics leurs serveurs.
+
Le LiveCd proposé est développé par une communauté d'utilisateurs Linux dans le but d'aider les utilisateurs à faire des diagnostics leurs serveurs.
−
Ce LiveCd n\’est pas développé par le support technique Dell.
+
Ce LiveCd n'est pas développé par le support technique Dell.
−
Pour plus d\’informations sur ce LiveCD, merci de lire le fichier readme [disponible ici.-http://linux.dell.com/files/openmanage-contributions/omsa-64-live/OMSA64-CentOS55-README.txt]
+
Pour plus d'informations sur ce LiveCD, merci de lire le fichier readme [disponible ici.-http://linux.dell.com/files/openmanage-contributions/omsa-64-live/OMSA64-CentOS55-README.txt]
 
   
 
   
 
Pré-requis:
 
Pré-requis:
Ligne 968 : Ligne 1 339 :
 
Le LiveCD contiendra tous les éléments nécessaire à ce tutoriel.  
 
Le LiveCD contiendra tous les éléments nécessaire à ce tutoriel.  
 
Information:
 
Information:
−
Ce tutoriel a été réalisé avec la version 6.5 du LiveCd. Il est possible que certains points soient légèrement différents sur d\’autres versions.
+
Ce tutoriel a été réalisé avec la version 6.5 du LiveCd. Il est possible que certains points soient légèrement différents sur d'autres versions.
 
Procédure:
 
Procédure:
 
Téléchargez le fichier .iso du LiveCd et gravez le fichier image.
 
Téléchargez le fichier .iso du LiveCd et gravez le fichier image.
 
Insérez le CD dans le lecteur CD/DVD de votre serveur.
 
Insérez le CD dans le lecteur CD/DVD de votre serveur.
−
ou via la console de votre Idrac, indiquez l\’emplacement du fichier iso à attacher.
+
ou via la console de votre Idrac, indiquez l'emplacement du fichier iso à attacher.
−
Démarrez votre serveur. lorsque le logo Dell s\’affiche, appuyez sur la touche F11 pour lancer le "Boot Manager"
+
Démarrez votre serveur. lorsque le logo Dell s'affiche, appuyez sur la touche F11 pour lancer le "Boot Manager"
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/3527.live1.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/3527.live1.jpg]
−
Sur l\’écran de sélection de périphérique de démarrage, sélectionnez "Optical Drive" et appuyez sur entrée.
+
Sur l'écran de sélection de périphérique de démarrage, sélectionnez "Optical Drive" et appuyez sur entrée.
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/1273.live2.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/1273.live2.jpg]
 
Le LiveCd va démarrer automatiquement.
 
Le LiveCd va démarrer automatiquement.
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/0447.live3.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/0447.live3.jpg]
−
Une fois le bureau lancé, vous noterez que l\’outil Dset est déja préinstallé.
+
Une fois le bureau lancé, vous noterez que l'outil Dset est déja préinstallé.
−
Double cliquez sur l\’icone afin de lancez la collecte des logs.
+
Double cliquez sur l'icone afin de lancez la collecte des logs.
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/7802.live4.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/7802.live4.jpg]
−
Une fenêtre va s\’ouvrir et la collecte va commencer.
+
Une fenêtre va s'ouvrir et la collecte va commencer.
 
Information: le processus peux prendre une dizaine de minute. Ne fermez pas la fenêtre sinon le processus stoppera.
 
Information: le processus peux prendre une dizaine de minute. Ne fermez pas la fenêtre sinon le processus stoppera.
−
Un message vous indique le succès de la procédure, ainsi que le nom et l\’emplacement du fichier Dset.
+
Un message vous indique le succès de la procédure, ainsi que le nom et l'emplacement du fichier Dset.
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/6560.live5.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/6560.live5.jpg]
 
Récupérer le fichier log sur une clé USB :
 
Récupérer le fichier log sur une clé USB :
Ligne 992 : Ligne 1 363 :
 
Lancez une fenêtre de terminal ("gnome-terminal", voir image ci-dessous) et tapez la commande :
 
Lancez une fenêtre de terminal ("gnome-terminal", voir image ci-dessous) et tapez la commande :
 
system-config-keyboard
 
system-config-keyboard
−
Et appuyez sur entrée. Le système vous demande d\’entrer le mot de passe administrateur : dell
+
Et appuyez sur entrée. Le système vous demande d'entrer le mot de passe administrateur : dell
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/8244.live6.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/8244.live6.jpg]
−
Vous accédez désormais à l\’outil de sélection de langue du clavier:
+
Vous accédez désormais à l'outil de sélection de langue du clavier:
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/5661.live7.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/5661.live7.jpg]
 
Insérez la clé USB dans votre serveur.
 
Insérez la clé USB dans votre serveur.
−
Toujours dans le terminal, lancez la commande dmesg afin d\’identifier la clé USB.
+
Toujours dans le terminal, lancez la commande dmesg afin d'identifier la clé USB.
−
Exemple de résultat d\’une commande dmesg:
+
Exemple de résultat d'une commande dmesg:
 
2165634.791468\] scsi 5:0:0:0: Direct-Access              USB DISK 2.0    PMAP PQ: 0 ANSI: 0 CCS
 
2165634.791468\] scsi 5:0:0:0: Direct-Access              USB DISK 2.0    PMAP PQ: 0 ANSI: 0 CCS
 
\[2165634.802119\] sd 5:0:0:0: Attached scsi generic sg3 type 0
 
\[2165634.802119\] sd 5:0:0:0: Attached scsi generic sg3 type 0
Ligne 1 011 : Ligne 1 382 :
 
Dans cet exemple, nous voyons la un disque amovible (removable disk) reconnu en tant que périphérique nommé sdc.
 
Dans cet exemple, nous voyons la un disque amovible (removable disk) reconnu en tant que périphérique nommé sdc.
 
Créez un répertoire pour monter la clé usb en entrant la commande : mkdir /mnt/clef
 
Créez un répertoire pour monter la clé usb en entrant la commande : mkdir /mnt/clef
−
Montez la clé afin qu\’elle soit disponible (par exemple sur sdc1) : mount /dev/sdc1/ mnt/clef
+
Montez la clé afin qu'elle soit disponible (par exemple sur sdc1) : mount /dev/sdc1/ mnt/clef
 
Copiez le fichier dset sur la clé: cp /tmp/data/le_nom_du_fichier /dev/sdc1/mnt/clef
 
Copiez le fichier dset sur la clé: cp /tmp/data/le_nom_du_fichier /dev/sdc1/mnt/clef
 
Démontez la clé afin de pouvoir la retirer proprement. Entrez la commande : umount /dev/sdc1
 
Démontez la clé afin de pouvoir la retirer proprement. Entrez la commande : umount /dev/sdc1
−
Information: Si vous retirez la clé sans la démonter du système, le fichier copié risque d\’être absent ou corrompu.
+
Information: Si vous retirez la clé sans la démonter du système, le fichier copié risque d'être absent ou corrompu.
−
Il ne vous reste qu\’à transmettre ce fichier au support technique pour analyse.
+
Il ne vous reste qu'à transmettre ce fichier au support technique pour analyse.
 
   
 
   
 
   
 
   
 
Récupérer le fichier log via FTP :
 
Récupérer le fichier log via FTP :
 
Le LiveCd est déja configuré avec un serveur FTP.
 
Le LiveCd est déja configuré avec un serveur FTP.
−
Il suffit d\’attribuer une adressse IP à la carte réseau afin d\’y accéder.
+
Il suffit d'attribuer une adressse IP à la carte réseau afin d'y accéder.
 
Allez dans "System", "Preferences", puis sélectionnez "Network Connections" (voir image ci-dessous)
 
Allez dans "System", "Preferences", puis sélectionnez "Network Connections" (voir image ci-dessous)
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/3036.live8.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/3036.live8.jpg]
−
Sélectionnez la carte réseau de votre choix (dans notre exemple nous n\’en avons qu\’une), puis cliquez sur "Edit".
+
Sélectionnez la carte réseau de votre choix (dans notre exemple nous n'en avons qu'une), puis cliquez sur "Edit".
−
Cliquez sur l\’onglet "IPv4 Settings", puis sélectionnez "Manual" dans le menu déroulant.
+
Cliquez sur l'onglet "IPv4 Settings", puis sélectionnez "Manual" dans le menu déroulant.
−
Entrez l\’adresse IP souhaitée, puis cliquez sur appliquer.
+
Entrez l'adresse IP souhaitée, puis cliquez sur appliquer.
 
Le mot de passe administrateur vous sera demandé : dell
 
Le mot de passe administrateur vous sera demandé : dell
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/8750.live9.jpg]
 
[ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/8750.live9.jpg]
−
Vous pouvez vérifier que l\’adresse IP a bien été prise en compte en lancant la commande ifconfig sur le terminal.
+
Vous pouvez vérifier que l'adresse IP a bien été prise en compte en lancant la commande ifconfig sur le terminal.
−
Le rapport Dset ainsi que tous les fichiers présents dans le dossier /tmp/data sont désormais accessible via FTP en entrant l\’ip que vous avez choisi.
+
Le rapport Dset ainsi que tous les fichiers présents dans le dossier /tmp/data sont désormais accessible via FTP en entrant l'ip que vous avez choisi.
−
Il ne vous reste qu\’à transmettre ce fichier au support technique pour analyse
+
Il ne vous reste qu'à transmettre ce fichier au support technique pour analyse
−
 
−
   
 
−
 
 
−
 
−
 
 
−
 
 
−
=
 
−
VBA/Excel…=
 
−
 
 
−
 
 
−
==VBA de suppression de PW Excel :==
 
−
Sub enleve_protection()
 
−
    Dim a, b, c, d, e, f, g, h, i, j, k, l As Integer
 
−
      On Error Resume Next
 
−
      For a = 65 To 66
 
−
      For b = 65 To 66
 
−
      For c = 65 To 66
 
−
      For d = 65 To 66
 
−
      For e = 65 To 66
 
−
      For f = 65 To 66
 
−
      For g = 65 To 66
 
−
      For h = 65 To 66
 
−
      For i = 65 To 66
 
−
      For j = 65 To 66
 
−
      For k = 65 To 66
 
−
      For l = 32 To 126
 
−
              ActiveSheet.Unprotect Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e) & Chr(f) & Chr(g) & Chr(h) & Chr(i) & Chr(j) & Chr(k) & Chr(l)
 
−
              If ActiveSheet.ProtectContents = False Then
 
−
              MsgBox "La protection a été enlevée - Un mot de passe satisfaisant est :" & Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e) & Chr(f) & Chr(g) & Chr(h) & Chr(i) & Chr(j) & Chr(k) & Chr(l)
 
−
              Exit Sub
 
−
              End If
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
      Next
 
−
End Sub
 
  
 
=AIX=
 
=AIX=
−
uptime : commande qui sert à visualiser l\’utilisation de la machine.
+
uptime : commande qui sert à visualiser l'utilisation de la machine.
  
 
lsps -a : commande pour voir les espaces de pagination.
 
lsps -a : commande pour voir les espaces de pagination.
  
−
lsof -i : à peu près l\’équivalent de netstat -ntlp sous linux.
+
lsof -i : à peu près l'équivalent de netstat -ntlp sous linux.
  
 
smit spooler : commande pour gérer les imprimantes.
 
smit spooler : commande pour gérer les imprimantes.
Ligne 1 089 : Ligne 1 416 :
 
Sauvegarde sur bande : normalement le péripherique se nomme rmt0int.
 
Sauvegarde sur bande : normalement le péripherique se nomme rmt0int.
  
−
date 03301656 : Changement d\’heure, exemple : 30 mars 16h56 commande.
+
date 03301656 : Changement d'heure, exemple : 30 mars 16h56 commande.
  
−
errpt -aD : logs d\’erreur.
+
errpt -aD : logs d'erreur.
  
−
oslevel : afficher la version d\’AIX.
+
oslevel : afficher la version d'AIX.
  
 
lspv : voir les groupes de disques.
 
lspv : voir les groupes de disques.
Ligne 1 101 : Ligne 1 428 :
 
lscfg -vp : information systeme aix.
 
lscfg -vp : information systeme aix.
  
−
smit fs : rajouter de l\’espace disque.
+
smit fs : rajouter de l'espace disque.
  
 
lscfg : information sur la configuration.
 
lscfg : information sur la configuration.
Ligne 1 109 : Ligne 1 436 :
 
lspv : voir les disques.
 
lspv : voir les disques.
  
−
top ou monitor : moniteur de performance (visiblement sur les versions plus ressente c\’est : topas)
+
top ou monitor : moniteur de performance (visiblement sur les versions plus ressente c'est : topas)
  
 
alog -o -t boot ou errpt : log de démarrage et système.
 
alog -o -t boot ou errpt : log de démarrage et système.
Ligne 1 131 : Ligne 1 458 :
 
lsattr -E -l mem0 : information mémoire Dans tous les menus pour revenir en arrière et annuler faire F3.
 
lsattr -E -l mem0 : information mémoire Dans tous les menus pour revenir en arrière et annuler faire F3.
  
−
fc -l : afficher l\’historique des commandes.
+
fc -l : afficher l'historique des commandes.
  
 
Gérer les services réseaux :
 
Gérer les services réseaux :
Ligne 1 143 : Ligne 1 470 :
 
ifconfig -a : visualiser toutes les interfaces réseaux.
 
ifconfig -a : visualiser toutes les interfaces réseaux.
  
−
ifconfig en4 : (pas eth0 chez aix mais en0), voir la config de l\’interface en4.
+
ifconfig en4 : (pas eth0 chez aix mais en0), voir la config de l'interface en4.
  
 
netstat -C ou -r : afficher les routes.
 
netstat -C ou -r : afficher les routes.
Ligne 1 171 : Ligne 1 498 :
 
Impressions :
 
Impressions :
  
−
Le service qdaemon gère les files d\’attente du spooleur AIX, alors que le service lpd surveille les demandes provenant d\’autres serveurs externes.
+
Le service qdaemon gère les files d'attente du spooleur AIX, alors que le service lpd surveille les demandes provenant d'autres serveurs externes.
  
−
Suppression de tous les travaux d\’impression : /var/spool/lpd/qdir /var/spool/qdaemon.
+
Suppression de tous les travaux d'impression : /var/spool/lpd/qdir /var/spool/qdaemon.
  
 
Liens intéressants :
 
Liens intéressants :
Ligne 1 189 : Ligne 1 516 :
 
Excellent lien mais il vous faudra du temps pour tout lire ! :[http://www.linux-france.org/\~mdecore/aix/memo-aix/memo-aix.html-http://www.linux-france.org/~mdecore/aix/memo-aix/memo-aix.html]
 
Excellent lien mais il vous faudra du temps pour tout lire ! :[http://www.linux-france.org/\~mdecore/aix/memo-aix/memo-aix.html-http://www.linux-france.org/~mdecore/aix/memo-aix/memo-aix.html]
  
−
Si vous en avez d\’autres n\’hésitez pas (commandes et liens).
+
Si vous en avez d'autres n'hésitez pas (commandes et liens).
  
 
Documentation sur les services réseaux
 
Documentation sur les services réseaux
Ligne 1 199 : Ligne 1 526 :
 
bootinfo -K  
 
bootinfo -K  
  
−
Afficher les informations d\’un compte :
+
Afficher les informations d'un compte :
  
 
logins -xml <user>
 
logins -xml <user>
Ligne 1 214 : Ligne 1 541 :
 
                         /home/<user>
 
                         /home/<user>
 
                         /usr/bin/ksh
 
                         /usr/bin/ksh
−
                         PS 061110 0 56 5
+
                         PS 061110 0 56 5061110 0 56 5
  
  
 
La dernière ligne est intéressante :
 
La dernière ligne est intéressante :
 
• Dernière date à laquelle le mot de passe a été changé.
 
• Dernière date à laquelle le mot de passe a été changé.
−
• Nombre de jours qui doivent d\’écouler entre les changements.
+
• Nombre de jours qui doivent d'écouler entre les changements.
−
• Nombre de jours avant changement, période d\’avertissement.
+
• Nombre de jours avant changement, période d'avertissement.
  
 
Le statut de mot de passe est affiché sous forme abrégée :
 
Le statut de mot de passe est affiché sous forme abrégée :
Ligne 1 229 : Ligne 1 556 :
 
Afficher les comptes lockés :
 
Afficher les comptes lockés :
  
−
logins -xo \| awk \’\{ FS=":" \} \{print $1":"$8\}\’ \| grep LK
+
logins -xo \| awk '\{ FS=":" \} \{print $1":"$8\}' \| grep LK
 +
 
 +
=Robocopy=
 +
 
 +
'''Syntaxe'''
 +
 
 +
Robocopy <Source><Destination>[<File> [...]] [<Options>]
 +
 
 +
'''Paramètres'''
 +
{| class="wikitable"
 +
|-
 +
! Paramètree !! Description
 +
|-
 +
| <Source> || Spécifie le chemin d'accès au répertoire source.
 +
|-
 +
| <Destination> || Spécifie le chemin d'accès au répertoire de destination.
 +
|-
 +
| <File> || Spécifie l'ou les fichiers à copier. Vous pouvez utiliser des caractères génériques (* ou ?), si vous le souhaitez. Si le paramètre de fichier n'est pas spécifié,*. * est utilisée comme valeur par défaut.
 +
|-
 +
|<Options> || Spécifie les options à utiliser avec la commande robocopy .
 +
|}
 +
 +
 
 +
'''Options de copie'''
 +
 
 +
{|class="wikitable"         
 +
|-         
 +
!  Option  !!  Description   
 +
|-           
 +
|  /s  ||  Sous-répertoires de  copies. Notez que cette option exclut les répertoires vides.   
 +
|-           
 +
|  /e  ||  Sous-répertoires de copies. Notez  que cette option inclut les répertoires vides. Pour plus d'informations,  consultez la section Notes.   
 +
|-           
 +
|  /Lev : <N>  ||  Copie uniquement les n premiers niveaux de l'arborescence du répertoire source.   
 +
|-           
 +
|  /z  ||  Copie les  fichiers en mode redémarrage.   
 +
|-           
 +
|  /b  ||  Copie les  fichiers en mode de sauvegarde.   
 +
|-           
 +
|  /ZB  ||  Utilise le mode de  redémarrage. Si l'accès est refusé, cette option utilise le mode de  sauvegarde.    *
 +
|-           
 +
|  /EFSRAW  ||  Copie  tous les fichiers cryptés en mode EFS RAW.   
 +
|-           
 +
|  / copie : <CopyFlags>  ||  Spécifie  les propriétés du fichier à copier. Les valeurs valides pour cette  option sont les suivantes :    Données D    A attributs    Horodateurs T    S NTFS contrôle liste accès (ACL)    Informations relatives au propriétaire o    Informations d'audit u    La valeur par défaut pour indicateurscopie est DAT (données, les attributs et les horodateurs).   
 +
|-           
 +
|  / DCOPY: t  ||  Copies  répertoire horodateurs.   
 +
|-           
 +
|  / s  ||  Copie les fichiers avec sécurité (équivaut à/Copy : DAT).   
 +
|-           
 +
|  /COPYALL  ||  Copie toutes les informations de fichier (équivalentes  à /copy:DATSOU).   
 +
|-           
 +
|  /NoCopy  ||  Ne copie aucune information de fichier (utile avec/purge).   
 +
|-           
 +
|  /secfix  ||  Sécurité  des fichiers correctifs sur tous les fichiers, même ignoré ceux.   
 +
|-           
 +
|  /TIMFIX  ||  Heures  des fichiers correctifs sur tous les fichiers, même ignoré ceux.   
 +
|-           
 +
|  / Purge  ||  Supprime les fichiers de destination et  les répertoires qui n'existent plus dans la source. Pour plus  d'informations, consultez la section Notes.   
 +
|-           
 +
|  /MIR  ||  Met en miroir une arborescence de  répertoires (équivaut à /e plus/purge plus/purge ). Pour  plus d'informations, consultez lasection Notes.   
 +
|-           
 +
|  /mov  ||  Déplace les fichiers et les supprime de la source une fois  qu'ils sont copiés.   
 +
|-           
 +
|  /Move  ||  Déplace les fichiers et répertoires et les supprime de la  source une fois qu'ils sont copiés.   
 +
|-           
 +
|  / a +: [RASHCNET]  ||  Ajoute  les attributs spécifiés pour les fichiers copiés.   
 +
|-           
 +
|  / a-: [RASHCNET]  ||  Supprime  les attributs spécifiés dans les fichiers copiés.   
 +
|-           
 +
|  / créer  ||  Crée  une arborescence de répertoires et fichiers de longueur nulle uniquement.   
 +
|-           
 +
|  / fat  ||  Crée des fichiers de destination à l'aide de caractères  8.3 nom FAT uniquement.   
 +
|-           
 +
|  / 256  ||  Désactive la prise en charge des chemins d'accès très  longs (plus de 256 caractères).   
 +
|-           
 +
|  / LUN : <N>  ||  Surveille la source et s'exécute à nouveau lorsque plus  de n modifications  sont détectées.   
 +
|-           
 +
|  /mot : <M>  ||  Surveille la source et s'exécute dans m minutes si des modifications  sont détectées.   
 +
|-           
 +
|  / RH : hhmm  ||  Spécifie  le temps d'exécution lorsque les nouvelles copies peuvent être lancées.   
 +
|-           
 +
|  /PF  ||  Vérifications  exécutent sur une base par fichier (pas par-pass).   
 +
|-           
 +
|  /IPG:n  ||  Spécifie l'intervalle de besoins pour libérer de la bande  passante sur les lignes lentes.   
 +
|-           
 +
|  /SL  ||  Copie  le lien symbolique plutôt que de la cible.   
 +
|}
 +
 
 +
''Important''
 +
Lorsque vous utilisez l'option de copie /SECFIX , spécifiez le type d'informations de sécurité que vous souhaitez copier
 +
également l'une de ces options de copie supplémentaire :
 +
/ COPYALL
 +
/COPY:O
 +
/COPY:S
 +
/COPY:U
 +
/ S
 +
 
 +
'''Options de sélection de fichier'''
 +
{|class="wikitable"
 +
|-
 +
! Option !! Description
 +
|-
 +
| /a || Copie uniquement les fichiers dont l'attribut Archive est défini.
 +
|-
 +
| /IA: [RASHCNETO] || Inclut uniquement les fichiers dont les attributs spécifiés sont définies.
 +
|-
 +
| /xf <FileName> [...] || Exclut les fichiers qui correspondent aux chemins d'accès ou les noms spécifiés. Notez que nom de fichier peut inclure des caractères génériques (* et ?).
 +
|-
 +
| /xct || Exclut les fichiers modifiés.
 +
|-
 +
| /xo || Exclut les fichiers plus anciens.
 +
|-
 +
| /XL || Exclut les répertoires et fichiers "là".
 +
|-
 +
| /IT || Inclut les fichiers « modifié ».
 +
|-
 +
| /min: <N> || Spécifie la taille de fichier minimale (pour exclure des fichiers de taille inférieures à n octets).
 +
|-
 +
| /MINAGE : <N> || Spécifie l'âge minimal de fichiers (exclure les fichiers plus récents que n jours ou date).
 +
|-
 +
| /MINLAD : <N> || Spécifie la date de dernier accès (exclut les fichiers utilisés depuis N) au minimum si n est inférieur à 1900, N Spécifie le nombre de jours. Sinon, N spécifie une date au format AAAAMMJJ
 +
|-
 +
| /FFT || Suppose que les fichiers FAT times (précision de deux secondes).
 +
|-
 +
| /XJD || Exclut les points de jonction de répertoires.
 +
|-
 +
|}
 +
 
 +
=DOC CMD=
 +
 
 +
ASSOC          Affiche ou modifie les applications associées aux extensions de fichiers.
 +
 
 +
ATTRIB        Affiche ou modifie les attributs d'un fichier.
 +
 
 +
BREAK          Active ou désactive le controle étendu de CTRL+C.
 +
 
 +
BCDEDIT        Définit les propriétés dans la base de données de démarrage pour le controle du chargement d'amorçage.
 +
 
 +
CACLS          Affiche ou modifie les listes de controles d'accès aux fichiers.
 +
 
 +
CALL          Appelle un fichier de commandes à partir d'un autre fichier de commandes.
 +
 
 +
CD            Modifie le répertoire ou affiche le répertoire actif.
 +
 
 +
CHCP          Modifie ou affiche le numéro de la page de code active.
 +
 
 +
CHDIR          Modifie le répertoire ou affiche le nom du répertoire actif.
 +
 
 +
CHKDSK        vérifie un disque et affiche un rapport d'état.
 +
 
 +
CHKNTFS        Affiche ou modifie la vérification du disque au démarrage.
 +
 
 +
CLS            Efface l'écran.
 +
 
 +
CMD            Exécute une nouvelle instance de l'interpréteur de commandes de Windows.
 +
 
 +
COLOR          Modifie les couleurs du premier plan et de l'arrière-plan de la console.
 +
 
 +
COMP          Compare les contenus de deux fichiers ou groupes de fichiers.
 +
 
 +
COMPACT        Modifie ou affiche la compression des fichiers sur une partition NTFS.
 +
 
 +
CONVERT        Convertit des volumes FAT en volumes NTFS. Vous ne pouvez pas convertir le lecteur en cours d'utilisation.
 +
 
 +
COPY          Copie un ou plusieurs fichiers.
 +
 
 +
DATE          Affiche ou définit la date.
 +
 
 +
DEL            Supprime un ou plusieurs fichiers.
 +
 
 +
DIR            Affiche la liste des fichiers et des sous-répertoires d'un répertoire.
 +
 
 +
DISKCOMP      Compare les contenus de deux disquettes.
 +
 
 +
DISKCOPY      Copie le contenu d'une disquette sur une autre.
 +
 
 +
DISKPART      Affiche ou configure les propriétés d'une partition de disque.
 +
 
 +
DOSKEY        Modifie les lignes de commande, rappelle des commandes Windows, et crée des macros.
 +
 
 +
DRIVERQUERY    Affiche l'état et les propriétés du pilote de périphérique en cours d'utilisation.
 +
 
 +
ECHO          Affiche des messages ou active/désactive l'affichage des commandes.
 +
 
 +
ENDLOCAL      Stoppe la localisation des modifications d'environnement dans un fichier de commandes.
 +
 
 +
ERASE          Supprime un ou plusieurs fichiers.
 +
 
 +
EXIT          Quitte l'interpréteur de commandes (CMD.EXE).
 +
 
 +
FC            Compare deux fichiers ou groupes de fichiers et affiche les différences.
 +
 
 +
FIND          Recherche une chaŒne de caractères dans un ou plusieurs fichiers.
 +
 
 +
FINDSTR        Cherche des chaŒnes dans les fichiers.
 +
 
 +
FOR            Exécute une commande sur chaque fichier d'un ensemble de fichiers.
 +
 
 +
FORMAT        Formate un disque devant être utilisé avec Windows.
 +
 
 +
FSUTIL        Affiche ou configure les propriétés du systême de fichiers.
 +
 
 +
FTYPE          Affiche ou modifie les types de fichiers utilisés dans les associations d'extensions.
 +
 
 +
GOTO          Indique l'exécution d'un fichier de commandes pour une ligne identifiée par une étiquette.
 +
 
 +
GPRESULT      Affiche les informations de stratégie de groupe pour un ordinateur ou un utilisateur.
 +
 
 +
GRAFTABL      Permet à Windows d'afficher un jeu de caractères en mode graphique.
 +
 
 +
HELP          Affiche des informations sur les commandes de Windows.
 +
 
 +
ICACLS        Afficher, modifier, sauvegarder ou restaurer les listes de controle d'accès pour les fichiers et les répertoires.
 +
 
 +
IF            Effectue un traitement conditionnel dans un fichier de commandes.
 +
 
 +
LABEL          Crée, modifie ou supprime le nom de volume d'un disque.
 +
 
 +
MD            Crée un répertoire.
 +
 
 +
MKDIR          Crée un répertoire.
 +
 
 +
MKLINK        Créer des liens symboliques et des liens réels
 +
 
 +
MODE          Configure un périphérique du système.
 +
 
 +
MORE          Affiche la sortie écran par écran.
 +
 
 +
MOVE          Déplace un ou plusieurs fichiers d'un répertoire à un autre.
 +
 
 +
OPENFILES      Affiche les fichiers partagés ouverts à distance par les utilisateurs.
 +
 
 +
PATH          Affiche ou définit le chemin de recherche des fichiers exécutables.
 +
 
 +
PAUSE          Interrompt l'exécution d'un fichier de commandes et affiche un message.
 +
 
 +
POPD          Restaure la valeur précédente du répertoire actif enregistrée par PUSHD.
 +
 
 +
PRINT          Imprime un fichier texte.
 +
 
 +
PROMPT        Modifie l'invite de commande de Windows.
 +
 
 +
PUSHD          Enregistre le répertoire actif puis le modifie.
 +
 
 +
RD            Supprime un répertoire.
 +
 
 +
RECOVER        récupère l'information lisible d'un disque défectueux.
 +
 
 +
REM            Insère un commentaire dans un fichier de commandes ou CONFIG.SYS.
 +
 
 +
REN            Renomme un ou plusieurs fichiers.
 +
 
 +
RENAME        Renomme un ou plusieurs fichiers.
 +
 
 +
REPLACE        Remplace des fichiers.
 +
 
 +
RMDIR          Supprime un répertoire.
 +
 
 +
ROBOCOPY      Utilitaire avancé pour copier les fichiers et les arborescences de répertoires
 +
 
 +
SET            Affiche, définit ou supprime des variables d'environnement Windows.
 +
 
 +
SETLOCAL      Commence la localisation des modifications d'environnement dans un fichier de commandes.
 +
 
 +
SC            Affiche ou configure les services (processus en arrière-plan).
 +
 
 +
SCHTASKS      Planifie les commandes et les programmes à exécuter sur l'ordinateur.
 +
 
 +
SHIFT          Modifie la position des paramètres remplaçables dans un fichier de commandes.
 +
 
 +
SHUTDOWN      Permet un arrêt local ou distant correct de l'ordinateur.
 +
 
 +
forcer un logoff: shutdown /l /f
 +
 
 +
SORT          Trie les entrées.
 +
 
 +
START          Ouvre une fenêtre séparée pour l'exécution d'un programme ou d'une commande spécifique.
 +
 
 +
SUBST          Associe un chemin d'accès à une lettre de lecteur.
 +
 
 +
SYSTEMINFO    Affiche les propriétés et la configuration spécifiques de l'ordinateur.
 +
 
 +
TASKLIST      Affiche toutes les tâches en cours d'exécution, y compris les services.
 +
 
 +
TASKKILL      Termine ou interrompt un processus ou une application en cours d'exécution.
 +
 
 +
TIME          Affiche ou définit l'heure du système.
 +
 
 +
TITLE          définit le titre de la fenêtre pour une session CMD.EXE.
 +
 
 +
TREE          Affiche le graphisme de la structure de répertoire d'un lecteur ou d'un chemin d'accès.
 +
 
 +
TYPE          Affiche le contenu d'un fichier texte.
 +
 
 +
VER            Affiche la version de Windows.
 +
 
 +
VERIFY        Demande à Windows de vérifier si vos fichiers sont correctement écrits sur le disque.
 +
 
 +
VOL            Affiche le nom et le numéro de série d'un volume de disque.
 +
 
 +
XCOPY          Copie les fichiers et les arborescences de répertoires.
 +
 
 +
WMIC          Affiche les informations WMI dans l'interface de commande interactive.
 +
 
 +
 
 +
=Commande utile=
 +
 
 +
==watch==
 +
 
 +
Imaginons que vous attendez un fichier dans un répertoire spécifique pour X ou Y raison.
 +
 
 +
watch ls -lah
 +
 
 +
Cette commande répétera la commande ls -lah toute les 2 secondes.
 +
 
 +
watch -n 4 ls
 +
 
 +
Cette commande répetera la commande ls toutes les 4 secondes.
 +
 
 +
==chkconfig==
 +
 
 +
Commande de configuration des démarrage serveur/application
 +
 
 +
=CURL=
 +
CURL: Décortiquez vos temps de réponse
 +
Pour ceux qui voudraient analyser en profondeur les temps de réponse serveur, voici une commande bien utile !
 +
 
 +
En effet, en une seule ligne de commande, vous pouvez avoir pas mal d’informations sur le temps que met le serveur à réponse et cela détaillé par étape clé de la création de votre page. Ainsi, vous pouvez savoir le temps que met la résolution DNS, le temps de connexion, le temps jusqu’au TTFB (time to first byte)…
 +
 
 +
Pour cela, rien de plus simple ! il suffit d’utiliser Curl. En effet, en spécifiant quelques variables vous pourrez récupérer des informaitons biens utiles. Voici un example de varaibles que vous pouvez passer en paramètres:
 +
 
 +
%{content_type}:  le type de contenu du document renvoyé (s’il y’a un document)
 +
%{http_code}: le code HTTP renvoyé par le serveur (tous les code http)
 +
%{num_connects}: nombre de nouvelles connexion effectuées
 +
%{num_redirects}: nombre de redirections suivies au moment de la connexion
 +
%{size_download}: poids du document reçu (en bytes)
 +
%{size_request}:  total en bytes envoyé lors de la requête HTTP
 +
%{speed_download}: vitesse de téléchargement moyenne mesurée par curl jusqu’à la reception totale du document (bytes par seconde)
 +
%{time_connect}: le temps, en secondes, depuis le début jusqu’à ce que la connexion TCP avec le serveur distant soit effective
 +
%{time_namelookup}: le temps, en secondes, jusqu’à ce que la résolution DNS soit effective
 +
%{time_starttransfer}:  le temps, en secondes, jusqu’à ce que le premier byte soit envoyé
 +
%{time_total}: le temps total, en secondes, nécessaire jusqu’à la fin de l’opération
 +
Voici un lien qui vous enmène sur la page d’aide où sont référencées l’ensemble des variables acceptées par Curl.
 +
 
 +
En formatant la sortie dans le terminal (flag -w), on peut obtenir des choses assez sympas :
 +
 
 +
view sourceprint?
 +
 
 +
curl -w '\nDNS lookup:\t%{time_namelookup}\nConnexion to host:\t%{time_connect}\nTTFB:\t%{time_starttransfer}\n\n--------------------\nTotal response time:\t%{time_total}\n' -o /dev/null -s
 +
http://www.le-geek.com/
 +
 +
DNS lookup: 0,024
 +
Connexion to host: 0,040
 +
TTFB: 0,081
 +
--------------------
 +
Total response time: 0,124
 +
 
 +
=Opérateurs de comparaison=
 +
Un opérateur de comparaison binaire compare deux variables ou quantités. Notez que la comparaison entre entiers et chaînes utilisent un différent ensemble d'opérateurs.
 +
 
 +
==comparaison d'entiers==
 +
 
 +
-eq
 +
est égal à
 +
 +
if [ "$a" -eq "$b" ]
 +
 
 +
-ne
 +
n'est pas égal à
 +
 +
if [ "$a" -ne "$b" ]
 +
 
 +
-gt
 +
est plus grand que
 +
 +
if ["$a" -gt "$b" ]
 +
 
 +
-ge
 +
est plus grand ou égal à
 +
 +
if [ "$a" -ge "$b" ]
 +
 
 +
-lt
 +
est plus petit que
 +
 +
if [ "$a" -lt "$b" ]
 +
 
 +
-le
 +
est plus petit ou égal à
 +
 +
if [ "$a" -le "$b" ]
 +
 
 +
<
 +
est plus petit que (à l'intérieur de parenthèses doubles)
 +
 +
(("$a" < "$b"))
 +
 
 +
<=
 +
est plus petit ou égal à (à l'intérieur de parenthèses doubles)
 +
 +
(("$a" <= "$b"))
 +
 
 +
>
 +
est plus grand que (à l'intérieur de parenthèses doubles)
 +
 +
(("$a" > "$b"))
  
−
=Windows System Error Codes (exit codes)=
+
>=
−
OS affected Windows
+
  est plus grand ou égal à (à l'intérieur de parenthèses doubles)
−
Description The Command and WinCommand task sometimes do not return any error messages, when your batch files fail. These task return error codes, which do not mean much to the user. The table below describes these Error codes
+
−
Causes Windows does not return error messages all the time.
+
(("$a" >= "$b"))
−
Code Description
 
−
0 The operation completed successfully.
 
−
1 Incorrect function.
 
−
2 The system cannot find the file specified.
 
−
3 The system cannot find the path specified.
 
−
4 The system cannot open the file.
 
−
5 Access is denied.
 
−
6 The handle is invalid.
 
−
7 The storage control blocks were destroyed.
 
−
8 Not enough storage is available to process this command.
 
−
9 The storage control block address is invalid.
 
−
10 The environment is incorrect.
 
−
11 An attempt was made to load a program with an incorrect format.
 
−
12 The access code is invalid.
 
−
13 The data is invalid.
 
−
14 Not enough storage is available to complete this operation.
 
−
15 The system cannot find the drive specified.
 
−
16 The directory cannot be removed.
 
−
17 The system cannot move the file to a different disk drive.
 
−
18 There are no more files.
 
−
19 The media is write protected.
 
−
20 The system cannot find the device specified.
 
−
21 The device is not ready.
 
−
22 The device does not recognize the command.
 
−
23 Data error (cyclic redundancy check).
 
−
24 The program issued a command but the command length is incorrect.
 
−
25 The drive cannot locate a specific area or track on the disk.
 
−
26 The specified disk or diskette cannot be accessed.
 
−
27 The drive cannot find the sector requested.
 
−
28 The printer is out of paper.
 
−
29 The system cannot write to the specified device.
 
−
30 The system cannot read from the specified device.
 
−
31 A device attached to the system is not functioning.
 
−
32 The process cannot access the file because it is being used by another process.
 
−
33 The process cannot access the file because another process has locked a portion of the file.
 
−
34 The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.
 
−
36 Too many files opened for sharing.
 
−
38 Reached the end of the file.
 
−
39 The disk is full.
 
−
50 The request is not supported.
 
−
51 Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator.
 
−
52 You were not connected because a duplicate name exists on the network. Go to System in the Control Panel to change the computer name and try again.
 
−
53 The network path was not found.
 
−
54 The network is busy.
 
−
55 The specified network resource or device is no longer available.
 
−
56 The network BIOS command limit has been reached.
 
−
57 A network adapter hardware error occurred.
 
−
58 The specified server cannot perform the requested operation.
 
−
59 An unexpected network error occurred.
 
−
60 The remote adapter is not compatible.
 
−
61 The printer queue is full.
 
−
62 Space to store the file waiting to be printed is not available on the server.
 
−
63 Your file waiting to be printed was deleted.
 
−
64 The specified network name is no longer available.
 
−
65 Network access is denied.
 
−
66 The network resource type is not correct.
 
−
67 The network name cannot be found.
 
−
68 The name limit for the local computer network adapter card was exceeded.
 
−
69 The network BIOS session limit was exceeded.
 
−
70 The remote server has been paused or is in the process of being started.
 
−
71 No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
 
−
72 The specified printer or disk device has been paused.
 
−
80 The file exists.
 
−
82 The directory or file cannot be created.
 
−
83 Fail on INT 24.
 
−
84 Storage to process this request is not available.
 
−
85 The local device name is already in use.
 
−
86 The specified network password is not correct.
 
−
87 The parameter is incorrect.
 
−
88 A write fault occurred on the network.
 
−
89 The system cannot start another process at this time.
 
−
100 Cannot create another system semaphore.
 
−
101 The exclusive semaphore is owned by another process.
 
−
102 The semaphore is set and cannot be closed.
 
−
103 The semaphore cannot be set again.
 
−
104 Cannot request exclusive semaphores at interrupt time.
 
−
105 The previous ownership of this semaphore has ended.
 
−
106 Insert the diskette for drive %1.
 
−
107 The program stopped because an alternate diskette was not inserted.
 
−
108 The disk is in use or locked by another process.
 
−
109 The pipe has been ended.
 
−
110 The system cannot open the device or file specified.
 
−
111 The file name is too long.
 
−
112 There is not enough space on the disk.
 
−
113 No more internal file identifiers available.
 
−
114 The target internal file identifier is incorrect.
 
−
117 The IOCTL call made by the application program is not correct.
 
−
118 The verify-on-write switch parameter value is not correct.
 
−
119 The system does not support the command requested.
 
−
120 This function is not supported on this system.
 
−
121 The semaphore timeout period has expired.
 
−
122 The data area passed to a system call is too small.
 
−
123 The filename, directory name, or volume label syntax is incorrect.
 
−
124 The system call level is not correct.
 
−
125 The disk has no volume label.
 
−
126 The specified module could not be found.
 
−
127 The specified procedure could not be found.
 
−
128 There are no child processes to wait for.
 
−
129 The %1 application cannot be run in Win32 mode.
 
−
130 Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
 
−
131 An attempt was made to move the file pointer before the beginning of the file.
 
−
132 The file pointer cannot be set on the specified device or file.
 
−
133 A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
 
−
134 An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
 
−
135 An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
 
−
136 The system tried to delete the JOIN of a drive that is not joined.
 
−
137 The system tried to delete the substitution of a drive that is not substituted.
 
−
138 The system tried to join a drive to a directory on a joined drive.
 
−
139 The system tried to substitute a drive to a directory on a substituted drive.
 
−
140 The system tried to join a drive to a directory on a substituted drive.
 
−
141 The system tried to SUBST a drive to a directory on a joined drive.
 
−
142 The system cannot perform a JOIN or SUBST at this time.
 
−
143 The system cannot join or substitute a drive to or for a directory on the same drive.
 
−
144 The directory is not a subdirectory of the root directory.
 
−
145 The directory is not empty.
 
−
146 The path specified is being used in a substitute.
 
−
147 Not enough resources are available to process this command.
 
−
148 The path specified cannot be used at this time.
 
−
149 An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.
 
−
150 System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
 
−
151 The number of specified semaphore events for DosMuxSemWait is not correct.
 
−
152 DosMuxSemWait did not execute; too many semaphores are already set.
 
−
153 The DosMuxSemWait list is not correct.
 
−
154 The volume label you entered exceeds the label character limit of the target file system.
 
−
155 Cannot create another thread.
 
−
156 The recipient process has refused the signal.
 
−
157 The segment is already discarded and cannot be locked.
 
−
158 The segment is already unlocked.
 
−
159 The address for the thread ID is not correct.
 
−
160 The argument string passed to DosExecPgm is not correct.
 
−
161 The specified path is invalid.
 
−
162 A signal is already pending.
 
−
164 No more threads can be created in the system.
 
−
167 Unable to lock a region of a file.
 
−
170 The requested resource is in use.
 
−
173 A lock request was not outstanding for the supplied cancel region.
 
−
174 The file system does not support atomic changes to the lock type.
 
−
180 The system detected a segment number that was not correct.
 
−
182 The operating system cannot run %1.
 
−
183 Cannot create a file when that file already exists.
 
−
186 The flag passed is not correct.
 
−
187 The specified system semaphore name was not found.
 
−
188 The operating system cannot run %1.
 
−
189 The operating system cannot run %1.
 
−
190 The operating system cannot run %1.
 
−
191 Cannot run %1 in Win32 mode.
 
−
192 The operating system cannot run %1.
 
−
193 %1 is not a valid Win32 application.
 
−
194 The operating system cannot run %1.
 
−
195 The operating system cannot run %1.
 
−
196 The operating system cannot run this application program.
 
−
197 The operating system is not presently configured to run this application.
 
−
198 The operating system cannot run %1.
 
−
199 The operating system cannot run this application program.
 
−
200 The code segment cannot be greater than or equal to 64K.
 
−
201 The operating system cannot run %1.
 
−
202 The operating system cannot run %1.
 
−
203 The system could not find the environment option that was entered.
 
−
205 No process in the command subtree has a signal handler.
 
−
206 The filename or extension is too long.
 
−
207 The ring 2 stack is in use.
 
−
208 The global filename characters, \* or ?, are entered incorrectly or too many global filename characters are specified.
 
−
209 The signal being posted is not correct.
 
−
210 The signal handler cannot be set.
 
−
212 The segment is locked and cannot be reallocated.
 
−
214 Too many dynamic-link modules are attached to this program or dynamic-link module.
 
−
215 Cannot nest calls to LoadModule.
 
−
216 The image file %1 is valid, but is for a machine type other than the current machine.
 
−
230 The pipe state is invalid.
 
−
231 All pipe instances are busy.
 
−
232 The pipe is being closed.
 
−
233 No process is on the other end of the pipe.
 
−
234 More data is available.
 
−
240 The session was canceled.
 
−
254 The specified extended attribute name was invalid.
 
−
255 The extended attributes are inconsistent.
 
−
258 The wait operation timed out.
 
−
259 No more data is available.
 
−
266 The copy functions cannot be used.
 
−
267 The directory name is invalid.
 
−
275 The extended attributes did not fit in the buffer.
 
−
276 The extended attribute file on the mounted file system is corrupt.
 
−
277 The extended attribute table file is full.
 
−
278 The specified extended attribute handle is invalid.
 
−
282 The mounted file system does not support extended attributes.
 
−
288 Attempt to release mutex not owned by caller.
 
−
298 Too many posts were made to a semaphore.
 
−
299 Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
 
−
300 The oplock request is denied.
 
−
301 An invalid oplock acknowledgment was received by the system.
 
−
302 The volume is too fragmented to complete this operation.
 
−
303 The file cannot be opened because it is in the process of being deleted.
 
−
317 The system cannot find message text for message number 0x%1 in the message file for %2.
 
−
487 Attempt to access invalid address.
 
−
534 Arithmetic result exceeded 32 bits.
 
−
535 There is a process on other end of the pipe.
 
−
536 Waiting for a process to open the other end of the pipe.
 
−
994 Access to the extended attribute was denied.
 
−
995 The I/O operation has been aborted because of either a thread exit or an application request.
 
−
996 Overlapped I/O event is not in a signaled state.
 
−
997 Overlapped I/O operation is in progress.
 
−
998 Invalid access to memory location.
 
−
999 Error performing inpage operation.
 
−
1001 Recursion too deep; the stack overflowed.
 
−
1002 The window cannot act on the sent message.
 
−
1003 Cannot complete this function.
 
−
1004 Invalid flags.
 
−
1005 The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted.
 
−
1006 The volume for a file has been externally altered so that the opened file is no longer valid.
 
−
1007 The requested operation cannot be performed in full-screen mode.
 
−
1008 An attempt was made to reference a token that does not exist.
 
−
1009 The configuration registry database is corrupt.
 
−
1010 The configuration registry key is invalid.
 
−
1011 The configuration registry key could not be opened.
 
−
1012 The configuration registry key could not be read.
 
−
1013 The configuration registry key could not be written.
 
−
1014 One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful.
 
−
1015 The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system\’s memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted.
 
−
1016 An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system\’s image of the registry.
 
−
1017 The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.
 
−
1018 Illegal operation attempted on a registry key that has been marked for deletion.
 
−
1019 System could not allocate the required space in a registry log.
 
−
1020 Cannot create a symbolic link in a registry key that already has subkeys or values.
 
−
1021 Cannot create a stable subkey under a volatile parent key.
 
−
1022 A notify change request is being completed and the information is not being returned in the caller\’s buffer. The caller now needs to enumerate the files to find the changes.
 
−
1051 A stop control has been sent to a service that other running services are dependent on.
 
−
1052 The requested control is not valid for this service.
 
−
1053 The service did not respond to the start or control request in a timely fashion.
 
−
1054 A thread could not be created for the service.
 
−
1055 The service database is locked.
 
−
1056 An instance of the service is already running.
 
−
1057 The account name is invalid or does not exist, or the password is invalid for the account name specified.
 
−
1058 The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
 
−
1059 Circular service dependency was specified.
 
−
1060 The specified service does not exist as an installed service.
 
−
1061 The service cannot accept control messages at this time.
 
−
1062 The service has not been started.
 
−
1063 The service process could not connect to the service controller.
 
−
1064 An exception occurred in the service when handling the control request.
 
−
1065 The database specified does not exist.
 
−
1066 The service has returned a service-specific error code.
 
−
1067 The process terminated unexpectedly.
 
−
1068 The dependency service or group failed to start.
 
−
1069 The service did not start due to a logon failure.
 
−
1070 After starting, the service hung in a start-pending state.
 
−
1071 The specified service database lock is invalid.
 
−
1072 The specified service has been marked for deletion.
 
−
1073 The specified service already exists.
 
−
1074 The system is currently running with the last-known-good configuration.
 
−
1075 The dependency service does not exist or has been marked for deletion.
 
−
1076 The current boot has already been accepted for use as the last-known-good control set.
 
−
1077 No attempts to start the service have been made since the last boot.
 
−
1078 The name is already in use as either a service name or a service display name.
 
−
1079 The account specified for this service is different from the account specified for other services running in the same process.
 
−
1080 Failure actions can only be set for Win32 services, not for drivers.
 
−
1081 This service runs in the same process as the service control manager. Therefore, the service control manager cannot take action if this service\’s process terminates unexpectedly.
 
−
1082 No recovery program has been configured for this service.
 
−
1083 The executable program that this service is configured to run in does not implement the service.
 
−
1084 This service cannot be started in Safe Mode.
 
−
1100 The physical end of the tape has been reached.
 
−
1101 A tape access reached a filemark.
 
−
1102 The beginning of the tape or a partition was encountered.
 
−
1103 A tape access reached the end of a set of files.
 
−
1104 No more data is on the tape.
 
−
1105 Tape could not be partitioned.
 
−
1106 When accessing a new tape of a multivolume partition, the current block size is incorrect.
 
−
1107 Tape partition information could not be found when loading a tape.
 
−
1108 Unable to lock the media eject mechanism.
 
−
1109 Unable to unload the media.
 
−
1110 The media in the drive may have changed.
 
−
1111 The I/O bus was reset.
 
−
1112 No media in drive.
 
−
1113 No mapping for the Unicode character exists in the target multi-byte code page.
 
−
1114 A dynamic link library (DLL) initialization routine failed.
 
−
1115 A system shutdown is in progress.
 
−
1116 Unable to abort the system shutdown because no shutdown was in progress.
 
−
1117 The request could not be performed because of an I/O device error.
 
−
1118 No serial device was successfully initialized. The serial driver will unload.
 
−
1119 Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened.
 
−
1120 A serial I/O operation was completed by another write to the serial port. (The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
 
−
1121 A serial I/O operation completed because the timeout period expired. (The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.)  
 
−
1122 No ID address mark was found on the floppy disk.
 
−
1123 Mismatch between the floppy disk sector ID field and the floppy disk controller track address.
 
−
1124 The floppy disk controller reported an error that is not recognized by the floppy disk driver.
 
−
1125 The floppy disk controller returned inconsistent results in its registers.
 
−
1126 While accessing the hard disk, a recalibrate operation failed, even after retries.
 
−
1127 While accessing the hard disk, a disk operation failed even after retries.
 
−
1128 While accessing the hard disk, a disk controller reset was needed, but even that failed.
 
−
1129 Physical end of tape encountered.
 
−
1130 Not enough server storage is available to process this command.
 
−
1131 A potential deadlock condition has been detected.
 
−
1132 The base address or the file offset specified does not have the proper alignment.
 
−
1140 An attempt to change the system power state was vetoed by another application or driver.
 
−
1141 The system BIOS failed an attempt to change the system power state.
 
−
1142 An attempt was made to create more links on a file than the file system supports.
 
−
1150 The specified program requires a newer version of Windows.
 
−
1151 The specified program is not a Windows or MS-DOS program.
 
−
1152 Cannot start more than one instance of the specified program.
 
−
1153 The specified program was written for an earlier version of Windows.
 
−
1154 One of the library files needed to run this application is damaged.
 
−
1155 No application is associated with the specified file for this operation.
 
−
1156 An error occurred in sending the command to the application.
 
−
1157 One of the library files needed to run this application cannot be found.
 
−
1158 The current process has used all of its system allowance of handles for Window Manager objects.
 
−
1159 The message can be used only with synchronous operations.
 
−
1160 The indicated source element has no media.
 
−
1161 The indicated destination element already contains media.
 
−
1162 The indicated element does not exist.
 
−
1163 The indicated element is part of a magazine that is not present.
 
−
1164 The indicated device requires reinitialization due to hardware errors.
 
−
1165 The device has indicated that cleaning is required before further operations are attempted.
 
−
1166 The device has indicated that its door is open.
 
−
1167 The device is not connected.
 
−
1168 Element not found.
 
−
1169 There was no match for the specified key in the index.
 
−
1170 The property set specified does not exist on the object.
 
−
1171 The point passed to GetMouseMovePointsEx is not in the buffer.
 
−
1172 The tracking (workstation) service is not running.
 
−
1173 The Volume ID could not be found.
 
−
1175 Unable to remove the file to be replaced.
 
−
1176 Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name.
 
−
1177 Unable to move the replacement file to the file to be replaced. The file to be replaced has been renamed using the backup name.
 
−
1178 The volume change journal is being deleted.
 
−
1179 The volume change journal is not active.
 
−
1180 A file was found, but it may not be the correct file.
 
−
1181 The journal entry has been deleted from the journal.
 
−
1200 The specified device name is invalid.
 
−
1201 The device is not currently connected but it is a remembered connection.
 
−
1202 The local device name has a remembered connection to another network resource.
 
−
1203 No network provider accepted the given network path.
 
−
1204 The specified network provider name is invalid.
 
−
1205 Unable to open the network connection profile.
 
−
1206 The network connection profile is corrupted.
 
−
1207 Cannot enumerate a noncontainer.
 
−
1208 An extended error has occurred.
 
−
1209 The format of the specified group name is invalid.
 
−
1210 The format of the specified computer name is invalid.
 
−
1211 The format of the specified event name is invalid.
 
−
1212 The format of the specified domain name is invalid.
 
−
1213 The format of the specified service name is invalid.
 
−
1214 The format of the specified network name is invalid.
 
−
1215 The format of the specified share name is invalid.
 
−
1216 The format of the specified password is invalid.
 
−
1217 The format of the specified message name is invalid.
 
−
1218 The format of the specified message destination is invalid.
 
−
1219 Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
 
−
1220 An attempt was made to establish a session to a network server, but there are already too many sessions established to that server.
 
−
1221 The workgroup or domain name is already in use by another computer on the network.
 
−
1222 The network is not present or not started.
 
−
1223 The operation was canceled by the user.
 
−
1224 The requested operation cannot be performed on a file with a user-mapped section open.
 
−
1225 The remote system refused the network connection.
 
−
1226 The network connection was gracefully closed.
 
−
1227 The network transport endpoint already has an address associated with it.
 
−
1228 An address has not yet been associated with the network endpoint.
 
−
1229 An operation was attempted on a nonexistent network connection.
 
−
1230 An invalid operation was attempted on an active network connection.
 
−
1231 The network location cannot be reached. For information about network troubleshooting, see Windows Help.
 
−
1232 The network location cannot be reached. For information about network troubleshooting, see Windows Help.
 
−
1233 The network location cannot be reached. For information about network troubleshooting, see Windows Help.
 
−
1234 No service is operating at the destination network endpoint on the remote system.
 
−
1235 The request was aborted.
 
−
1236 The network connection was aborted by the local system.
 
−
1237 The operation could not be completed. A retry should be performed.
 
−
1238 A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.
 
−
1239 Attempting to log in during an unauthorized time of day for this account.
 
−
1240 The account is not authorized to log in from this station.
 
−
1241 The network address could not be used for the operation requested.
 
−
1242 The service is already registered.
 
−
1243 The specified service does not exist.
 
−
1244 The operation being requested was not performed because the user has not been authenticated.
 
−
1245 The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist.
 
−
1246 Continue with work in progress.
 
−
1247 An attempt was made to perform an initialization operation when initialization has already been completed.
 
−
1248 No more local devices.
 
−
1249 The specified site does not exist.
 
−
1250 A domain controller with the specified name already exists.
 
−
1251 This operation is supported only when you are connected to the server.
 
−
1252 The group policy framework should call the extension even if there are no changes.
 
−
1253 The specified user does not have a valid profile.
 
−
1254 This operation is not supported on a Microsoft Small Business Server.
 
−
1255 The server machine is shutting down.
 
−
1256 The remote system is not available. For information about network troubleshooting, see Windows Help.
 
−
1257 The security identifier provided is not from an account domain.
 
−
1258 The security identifier provided does not have a domain component.
 
−
1259 AppHelp dialog canceled thus preventing the application from starting.
 
−
1260 Windows cannot open this program because it has been prevented by a software restriction policy. For more information, open Event Viewer or contact your system administrator.
 
−
1261 A program attempt to use an invalid register value. Normally caused by an uninitialized register. This error is Itanium specific.
 
−
1262 The share is currently offline or does not exist.
 
−
1263 The kerberos protocol encountered an error while validating the KDC certificate during smartcard logon.
 
−
1264 The kerberos protocol encountered an error while attempting to utilize the smartcard subsystem.
 
−
1265 The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you.
 
−
1266 The smartcard certificate used for authentication has been revoked. Please contact your system administrator. There may be additional information in the event log.
 
−
1267 An untrusted certificate authority was detected while processing the smartcard certificate used for authentication. Please contact your system administrator.
 
−
1268 The revocation status of the smartcard certificate used for authentication could not be determined. Please contact your system administrator.
 
−
1269 The smartcard certificate used for authentication was not trusted. Please contact your system administrator.
 
−
1270 The smartcard certificate used for authentication has expired. Please contact your system administrator.
 
−
1271 The machine is locked and cannot be shut down without the force option.
 
−
1273 An application-defined callback gave invalid data when called.
 
−
1274 The group policy framework should call the extension in the synchronous foreground policy refresh.
 
−
1275 This driver has been blocked from loading.
 
−
1276 A dynamic link library (DLL) referenced a module that was neither a DLL nor the process\’s executable image.
 
−
1300 Not all privileges referenced are assigned to the caller.
 
−
1301 Some mapping between account names and security IDs was not done.
 
−
1302 No system quota limits are specifically set for this account.
 
−
1303 No encryption key is available. A well-known encryption key was returned.
 
−
1304 The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string.
 
−
1305 The revision level is unknown.
 
−
1306 Indicates two revision levels are incompatible.
 
−
1307 This security ID may not be assigned as the owner of this object.
 
−
1308 This security ID may not be assigned as the primary group of an object.
 
−
1309 An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client.
 
−
1310 The group may not be disabled.
 
−
1311 There are currently no logon servers available to service the logon request.
 
−
1312 A specified logon session does not exist. It may already have been terminated.
 
−
1313 A specified privilege does not exist.
 
−
1314 A required privilege is not held by the client.
 
−
1315 The name provided is not a properly formed account name.
 
−
1316 The specified user already exists.
 
−
1317 The specified user does not exist.
 
−
1318 The specified group already exists.
 
−
1319 The specified group does not exist.
 
−
1320 Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member.
 
−
1321 The specified user account is not a member of the specified group account.
 
−
1322 The last remaining administration account cannot be disabled or deleted.
 
−
1323 Unable to update the password. The value provided as the current password is incorrect.
 
−
1324 Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.
 
−
1325 Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirement of the domain.
 
−
1326 Logon failure: unknown user name or bad password.
 
−
1327 Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.
 
−
1328 Logon failure: account logon time restriction violation.
 
−
1329 Logon failure: user not allowed to log on to this computer.
 
−
1330 Logon failure: the specified account password has expired.
 
−
1331 Logon failure: account currently disabled.
 
−
1332 No mapping between account names and security IDs was done.
 
−
1333 Too many local user identifiers (LUIDs) were requested at one time.
 
−
1334 No more local user identifiers (LUIDs) are available.
 
−
1335 The subauthority part of a security ID is invalid for this particular use.
 
−
1336 The access control list (ACL) structure is invalid.
 
−
1337 The security ID structure is invalid.
 
−
1338 The security descriptor structure is invalid.
 
−
1340 The inherited access control list (ACL) or access control entry (ACE) could not be built.
 
−
1341 The server is currently disabled.
 
−
1342 The server is currently enabled.
 
−
1343 The value provided was an invalid value for an identifier authority.
 
−
1344 No more memory is available for security information updates.
 
−
1345 The specified attributes are invalid, or incompatible with the attributes for the group as a whole.
 
−
1346 Either a required impersonation level was not provided, or the provided impersonation level is invalid.
 
−
1347 Cannot open an anonymous level security token.
 
−
1348 The validation information class requested was invalid.
 
−
1349 The type of the token is inappropriate for its attempted use.
 
−
1350 Unable to perform a security operation on an object that has no associated security.
 
−
1351 Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied.
 
−
1352 The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation.
 
−
1353 The domain was in the wrong state to perform the security operation.
 
−
1354 This operation is only allowed for the Primary Domain Controller of the domain.
 
−
1355 The specified domain either does not exist or could not be contacted.
 
−
1356 The specified domain already exists.
 
−
1357 An attempt was made to exceed the limit on the number of domains per server.
 
−
1358 Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk.
 
−
1359 An internal error occurred.
 
−
1360 Generic access types were contained in an access mask which should already be mapped to nongeneric types.
 
−
1361 A security descriptor is not in the right format (absolute or self-relative).
 
−
1362 The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process.
 
−
1363 Cannot start a new logon session with an ID that is already in use.
 
−
1364 A specified authentication package is unknown.
 
−
1365 The logon session is not in a state that is consistent with the requested operation.
 
−
1366 The logon session ID is already in use.
 
−
1367 A logon request contained an invalid logon type value.
 
−
1368 Unable to impersonate using a named pipe until data has been read from that pipe.
 
−
1369 The transaction state of a registry subtree is incompatible with the requested operation.
 
−
1370 An internal security database corruption has been encountered.
 
−
1371 Cannot perform this operation on built-in accounts.
 
−
1372 Cannot perform this operation on this built-in special group.
 
−
1373 Cannot perform this operation on this built-in special user.
 
−
1374 The user cannot be removed from a group because the group is currently the user\’s primary group.
 
−
1375 The token is already in use as a primary token.
 
−
1376 The specified local group does not exist.
 
−
1377 The specified account name is not a member of the local group.
 
−
1378 The specified account name is already a member of the local group.
 
−
1379 The specified local group already exists.
 
−
1380 Logon failure: the user has not been granted the requested logon type at this computer.
 
−
1381 The maximum number of secrets that may be stored in a single system has been exceeded.
 
−
1382 The length of a secret exceeds the maximum length allowed.
 
−
1383 The local security authority database contains an internal inconsistency.
 
−
1384 During a logon attempt, the user\’s security context accumulated too many security IDs.
 
−
1385 Logon failure: the user has not been granted the requested logon type at this computer.
 
−
1386 A cross-encrypted password is necessary to change a user password.
 
−
1387 A new member could not be added to or removed from the local group because the member does not exist.
 
−
1388 A new member could not be added to a local group because the member has the wrong account type.
 
−
1389 Too many security IDs have been specified.
 
−
1390 A cross-encrypted password is necessary to change this user password.
 
−
1391 Indicates an ACL contains no inheritable components.
 
−
1392 The file or directory is corrupted and unreadable.
 
−
1393 The disk structure is corrupted and unreadable.
 
−
1394 There is no user session key for the specified logon session.
 
−
1395 The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept.
 
−
1396 Logon Failure: The target account name is incorrect.
 
−
1397 Mutual Authentication failed. The server\’s password is out of date at the domain controller.
 
−
1398 There is a time and/or date difference between the client and server.
 
−
1399 This operation cannot be performed on the current domain.
 
−
1400 Invalid window handle.
 
−
1401 Invalid menu handle.
 
−
1402 Invalid cursor handle.
 
−
1403 Invalid accelerator table handle.
 
−
1404 Invalid hook handle.
 
−
1405 Invalid handle to a multiple-window position structure.
 
−
1406 Cannot create a top-level child window.
 
−
1407 Cannot find window class.
 
−
1408 Invalid window; it belongs to other thread.
 
−
1409 Hot key is already registered.
 
−
1410 Class already exists.
 
−
1411 Class does not exist.
 
−
1412 Class still has open windows.
 
−
1413 Invalid index.
 
−
1414 Invalid icon handle.
 
−
1415 Using private DIALOG window words.
 
−
1416 The list box identifier was not found.
 
−
1417 No wildcards were found.
 
−
1418 Thread does not have a clipboard open.
 
−
1419 Hot key is not registered.
 
−
1420 The window is not a valid dialog window.
 
−
1421 Control ID not found.
 
−
1422 Invalid message for a combo box because it does not have an edit control.
 
−
1423 The window is not a combo box.
 
−
1424 Height must be less than 256.
 
−
1425 Invalid device context (DC) handle.
 
−
1426 Invalid hook procedure type.
 
−
1427 Invalid hook procedure.
 
−
1428 Cannot set nonlocal hook without a module handle.
 
−
1429 This hook procedure can only be set globally.
 
−
1430 The journal hook procedure is already installed.
 
−
1431 The hook procedure is not installed.
 
−
1432 Invalid message for single-selection list box.
 
−
1433 LB_SETCOUNT sent to non-lazy list box.
 
−
1434 This list box does not support tab stops.
 
−
1435 Cannot destroy object created by another thread.
 
−
1436 Child windows cannot have menus.
 
−
1437 The window does not have a system menu.
 
−
1438 Invalid message box style.
 
−
1439 Invalid system-wide (SPI_\*) parameter.
 
−
1440 Screen already locked.
 
−
1441 All handles to windows in a multiple-window position structure must have the same parent.
 
−
1442 The window is not a child window.
 
−
1443 Invalid GW_\* command.
 
−
1444 Invalid thread identifier.
 
−
1445 Cannot process a message from a window that is not a multiple document interface (MDI) window.
 
−
1446 Popup menu already active.
 
−
1447 The window does not have scroll bars.
 
−
1448 Scroll bar range cannot be greater than MAXLONG.
 
−
1449 Cannot show or remove the window in the way specified.
 
−
1450 Insufficient system resources exist to complete the requested service.
 
−
1451 Insufficient system resources exist to complete the requested service.
 
−
1452 Insufficient system resources exist to complete the requested service.
 
−
1453 Insufficient quota to complete the requested service.
 
−
1454 Insufficient quota to complete the requested service.
 
−
1455 The paging file is too small for this operation to complete.
 
−
1456 A menu item was not found.
 
−
1457 Invalid keyboard layout handle.
 
−
1458 Hook type not allowed.
 
−
1459 This operation requires an interactive window station.
 
−
1460 This operation returned because the timeout period expired.
 
−
1461 Invalid monitor handle.
 
−
1500 The event log file is corrupted.
 
−
1501 No event log file could be opened, so the event logging service did not start.
 
−
1502 The event log file is full.
 
−
1503 The event log file has changed between read operations.
 
−
1601 The Windows Installer service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed. Contact your support personnel for assistance.
 
−
1602 User cancelled installation.
 
−
1603 Fatal error during installation.
 
−
1604 Installation suspended, incomplete.
 
−
1605 This action is only valid for products that are currently installed.
 
−
1606 Feature ID not registered.
 
−
1607 Component ID not registered.
 
−
1608 Unknown property.
 
−
1609 Handle is in an invalid state.
 
−
1610 The configuration data for this product is corrupt. Contact your support personnel.
 
−
1611 Component qualifier not present.
 
−
1612 The installation source for this product is not available. Verify that the source exists and that you can access it.
 
−
1613 This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
 
−
1614 Product is uninstalled.
 
−
1615 SQL query syntax invalid or unsupported.
 
−
1616 Record field does not exist.
 
−
1617 The device has been removed.
 
−
1618 Another installation is already in progress. Complete that installation before proceeding with this install.
 
−
1619 This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
 
−
1620 This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
 
−
1621 There was an error starting the Windows Installer service user interface. Contact your support personnel.
 
−
1622 Error opening installation log file. Verify that the specified log file location exists and that you can write to it.
 
−
1623 The language of this installation package is not supported by your system.
 
−
1624 Error applying transforms. Verify that the specified transform paths are valid.
 
−
1625 This installation is forbidden by system policy. Contact your system administrator.
 
−
1626 Function could not be executed.
 
−
1627 Function failed during execution.
 
−
1628 Invalid or unknown table specified.
 
−
1629 Data supplied is of wrong type.
 
−
1630 Data of this type is not supported.
 
−
1631 The Windows Installer service failed to start. Contact your support personnel.
 
−
1632 The Temp folder is on a drive that is full or inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder.
 
−
1633 This installation package is not supported by this processor type. Contact your product vendor.
 
−
1634 Component not used on this computer.
 
−
1635 This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
 
−
1636 This patch package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package.
 
−
1637 This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
 
−
1638 Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
 
−
1639 Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
 
−
1640 Only administrators have permission to add, remove, or configure server software during a Terminal Services remote session. If you want to install or configure software on the server, contact your network administrator.
 
−
1641 The requested operation completed successfully. The system will be restarted so the changes can take effect.
 
−
1642 The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch.
 
−
1643 The patch package is not permitted by software restriction policy.
 
−
1644 One or more customizations are not permitted by software restriction policy.
 
−
1700 The string binding is invalid.
 
−
1701 The binding handle is not the correct type.
 
−
1702 The binding handle is invalid.
 
−
1703 The RPC protocol sequence is not supported.
 
−
1704 The RPC protocol sequence is invalid.
 
−
1705 The string universal unique identifier (UUID) is invalid.
 
−
1706 The endpoint format is invalid.
 
−
1707 The network address is invalid.
 
−
1708 No endpoint was found.
 
−
1709 The timeout value is invalid.
 
−
1710 The object universal unique identifier (UUID) was not found.
 
−
1711 The object universal unique identifier (UUID) has already been registered.
 
−
1712 The type universal unique identifier (UUID) has already been registered.
 
−
1713 The RPC server is already listening.
 
−
1714 No protocol sequences have been registered.
 
−
1715 The RPC server is not listening.
 
−
1716 The manager type is unknown.
 
−
1717 The interface is unknown.
 
−
1718 There are no bindings.
 
−
1719 There are no protocol sequences.
 
−
1720 The endpoint cannot be created.
 
−
1721 Not enough resources are available to complete this operation.
 
−
1722 The RPC server is unavailable.
 
−
1723 The RPC server is too busy to complete this operation.
 
−
1724 The network options are invalid.
 
−
1725 There are no remote procedure calls active on this thread.
 
−
1726 The remote procedure call failed.
 
−
1727 The remote procedure call failed and did not execute.
 
−
1728 A remote procedure call (RPC) protocol error occurred.
 
−
1730 The transfer syntax is not supported by the RPC server.
 
−
1732 The universal unique identifier (UUID) type is not supported.
 
−
1733 The tag is invalid.
 
−
1734 The array bounds are invalid.
 
−
1735 The binding does not contain an entry name.
 
−
1736 The name syntax is invalid.
 
−
1737 The name syntax is not supported.
 
−
1739 No network address is available to use to construct a universal unique identifier (UUID).
 
−
1740 The endpoint is a duplicate.
 
−
1741 The authentication type is unknown.
 
−
1742 The maximum number of calls is too small.
 
−
1743 The string is too long.
 
−
1744 The RPC protocol sequence was not found.
 
−
1745 The procedure number is out of range.
 
−
1746 The binding does not contain any authentication information.
 
−
1747 The authentication service is unknown.
 
−
1748 The authentication level is unknown.
 
−
1749 The security context is invalid.
 
−
1750 The authorization service is unknown.
 
−
1751 The entry is invalid.
 
−
1752 The server endpoint cannot perform the operation.
 
−
1753 There are no more endpoints available from the endpoint mapper.
 
−
1754 No interfaces have been exported.
 
−
1755 The entry name is incomplete.
 
−
1756 The version option is invalid.
 
−
1757 There are no more members.
 
−
1758 There is nothing to unexport.
 
−
1759 The interface was not found.
 
−
1760 The entry already exists.
 
−
1761 The entry is not found.
 
−
1762 The name service is unavailable.
 
−
1763 The network address family is invalid.
 
−
1764 The requested operation is not supported.
 
−
1765 No security context is available to allow impersonation.
 
−
1766 An internal error occurred in a remote procedure call (RPC).
 
−
1767 The RPC server attempted an integer division by zero.
 
−
1768 An addressing error occurred in the RPC server.
 
−
1769 A floating-point operation at the RPC server caused a division by zero.
 
−
1770 A floating-point underflow occurred at the RPC server.
 
−
1771 A floating-point overflow occurred at the RPC server.
 
−
1772 The list of RPC servers available for the binding of auto handles has been exhausted.
 
−
1773 Unable to open the character translation table file.
 
−
1774 The file containing the character translation table has fewer than 512 bytes.
 
−
1775 A null context handle was passed from the client to the host during a remote procedure call.
 
−
1777 The context handle changed during a remote procedure call.
 
−
1778 The binding handles passed to a remote procedure call do not match.
 
−
1779 The stub is unable to get the remote procedure call handle.
 
−
1780 A null reference pointer was passed to the stub.
 
−
1781 The enumeration value is out of range.
 
−
1782 The byte count is too small.
 
−
1783 The stub received bad data.
 
−
1784 The supplied user buffer is not valid for the requested operation.
 
−
1785 The disk media is not recognized. It may not be formatted.
 
−
1786 The workstation does not have a trust secret.
 
−
1787 The security database on the server does not have a computer account for this workstation trust relationship.
 
−
1788 The trust relationship between the primary domain and the trusted domain failed.
 
−
1789 The trust relationship between this workstation and the primary domain failed.
 
−
1790 The network logon failed.
 
−
1791 A remote procedure call is already in progress for this thread.
 
−
1792 An attempt was made to logon, but the network logon service was not started.
 
−
1793 The user\’s account has expired.
 
−
1794 The redirector is in use and cannot be unloaded.
 
−
1795 The specified printer driver is already installed.
 
−
1796 The specified port is unknown.
 
−
1797 The printer driver is unknown.
 
−
1798 The print processor is unknown.
 
−
1799 The specified separator file is invalid.
 
−
1800 The specified priority is invalid.
 
−
1801 The printer name is invalid.
 
−
1802 The printer already exists.
 
−
1803 The printer command is invalid.
 
−
1804 The specified datatype is invalid.
 
−
1805 The environment specified is invalid.
 
−
1806 There are no more bindings.
 
−
1807 The account used is an interdomain trust account. Use your global user account or local user account to access this server.
 
−
1808 The account used is a computer account. Use your global user account or local user account to access this server.
 
−
1809 The account used is a server trust account. Use your global user account or local user account to access this server.
 
−
1810 The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain.
 
−
1811 The server is in use and cannot be unloaded.
 
−
1812 The specified image file did not contain a resource section.
 
−
1813 The specified resource type cannot be found in the image file.
 
−
1814 The specified resource name cannot be found in the image file.
 
−
1815 The specified resource language ID cannot be found in the image file.
 
−
1816 Not enough quota is available to process this command.
 
−
1817 No interfaces have been registered.
 
−
1818 The remote procedure call was cancelled.
 
−
1819 The binding handle does not contain all required information.
 
−
1820 A communications failure occurred during a remote procedure call.
 
−
1821 The requested authentication level is not supported.
 
−
1822 No principal name registered.
 
−
1823 The error specified is not a valid Windows RPC error code.
 
−
1824 A UUID that is valid only on this computer has been allocated.
 
−
1825 A security package specific error occurred.
 
−
1826 Thread is not canceled.
 
−
1827 Invalid operation on the encoding/decoding handle.
 
−
1828 Incompatible version of the serializing package.
 
−
1829 Incompatible version of the RPC stub.
 
−
1830 The RPC pipe object is invalid or corrupted.
 
−
1831 An invalid operation was attempted on an RPC pipe object.
 
−
1832 Unsupported RPC pipe version.
 
−
1898 The group member was not found.
 
−
1899 The endpoint mapper database entry could not be created.
 
−
1900 The object universal unique identifier (UUID) is the nil UUID.
 
−
1901 The specified time is invalid.
 
−
1902 The specified form name is invalid.
 
−
1903 The specified form size is invalid.
 
−
1904 The specified printer handle is already being waited on
 
−
1905 The specified printer has been deleted.
 
−
1906 The state of the printer is invalid.
 
−
1907 The user\’s password must be changed before logging on the first time.
 
−
1908 Could not find the domain controller for this domain.
 
−
1909 The referenced account is currently locked out and may not be logged on to.
 
−
1910 The object exporter specified was not found.
 
−
1911 The object specified was not found.
 
−
1912 The object resolver set specified was not found.
 
−
1913 Some data remains to be sent in the request buffer.
 
−
1914 Invalid asynchronous remote procedure call handle.
 
−
1915 Invalid asynchronous RPC call handle for this operation.
 
−
1916 The RPC pipe object has already been closed.
 
−
1917 The RPC call completed before all pipes were processed.
 
−
1918 No more data is available from the RPC pipe.
 
−
1919 No site name is available for this machine.
 
−
1920 The file cannot be accessed by the system.
 
−
1921 The name of the file cannot be resolved by the system.
 
−
1922 The entry is not of the expected type.
 
−
1923 Not all object UUIDs could be exported to the specified entry.
 
−
1924 Interface could not be exported to the specified entry.
 
−
1925 The specified profile entry could not be added.
 
−
1926 The specified profile element could not be added.
 
−
1927 The specified profile element could not be removed.
 
−
1928 The group element could not be added.
 
−
1929 The group element could not be removed.
 
−
1930 The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
 
−
1931 The context has expired and can no longer be used.
 
−
2000 The pixel format is invalid.
 
−
2001 The specified driver is invalid.
 
−
2002 The window style or class attribute is invalid for this operation.
 
−
2003 The requested metafile operation is not supported.
 
−
2004 The requested transformation operation is not supported.
 
−
2005 The requested clipping operation is not supported.
 
−
2010 The specified color management module is invalid.
 
−
2011 The specified color profile is invalid.
 
−
2012 The specified tag was not found.
 
−
2013 A required tag is not present.
 
−
2014 The specified tag is already present.
 
−
2015 The specified color profile is not associated with any device.
 
−
2016 The specified color profile was not found.
 
−
2017 The specified color space is invalid.
 
−
2018 Image Color Management is not enabled.
 
−
2019 There was an error while deleting the color transform.
 
−
2020 The specified color transform is invalid.
 
−
2021 The specified transform does not match the bitmap\’s color space.
 
−
2022 The specified named color index is not present in the profile.
 
−
2108 The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.
 
−
2109 The network connection was made successfully using default credentials.
 
−
2202 The specified username is invalid.
 
−
2250 This network connection does not exist.
 
−
2401 This network connection has files open or requests pending.
 
−
2402 Active connections still exist.
 
−
2404 The device is in use by an active process and cannot be disconnected.
 
−
3000 The specified print monitor is unknown.
 
−
3001 The specified printer driver is currently in use.
 
−
3002 The spool file was not found.
 
−
3003 A StartDocPrinter call was not issued.
 
−
3004 An AddJob call was not issued.
 
−
3005 The specified print processor has already been installed.
 
−
3006 The specified print monitor has already been installed.
 
−
3007 The specified print monitor does not have the required functions.
 
−
3008 The specified print monitor is currently in use.
 
−
3009 The requested operation is not allowed when there are jobs queued to the printer.
 
−
3010 The requested operation is successful. Changes will not be effective until the system is rebooted.
 
−
3011 The requested operation is successful. Changes will not be effective until the service is restarted.
 
−
3012 No printers were found.
 
−
3013 The printer driver is known to be unreliable.
 
−
3014 The printer driver is known to harm the system.
 
−
4000 WINS encountered an error while processing the command.
 
−
4001 The local WINS cannot be deleted.
 
−
4002 The importation from the file failed.
 
−
4003 The backup failed. Was a full backup done before?
 
−
4004 The backup failed. Check the directory to which you are backing the database.
 
−
4005 The name does not exist in the WINS database.
 
−
4006 Replication with a nonconfigured partner is not allowed.
 
−
4100 The DHCP client has obtained an IP address that is already in use on the network. The local interface will be disabled until the DHCP client can obtain a new address.
 
−
4200 The GUID passed was not recognized as valid by a WMI data provider.
 
−
4201 The instance name passed was not recognized as valid by a WMI data provider.
 
−
4202 The data item ID passed was not recognized as valid by a WMI data provider.
 
−
4203 The WMI request could not be completed and should be retried.
 
−
4204 The WMI data provider could not be located.
 
−
4205 The WMI data provider references an instance set that has not been registered.
 
−
4206 The WMI data block or event notification has already been enabled.
 
−
4207 The WMI data block is no longer available.
 
−
4208 The WMI data service is not available.
 
−
4209 The WMI data provider failed to carry out the request.
 
−
4210 The WMI MOF information is not valid.
 
−
4211 The WMI registration information is not valid.
 
−
4212 The WMI data block or event notification has already been disabled.
 
−
4213 The WMI data item or data block is read only.
 
−
4214 The WMI data item or data block could not be changed.
 
−
4300 The media identifier does not represent a valid medium.
 
−
4301 The library identifier does not represent a valid library.
 
−
4302 The media pool identifier does not represent a valid media pool.
 
−
4303 The drive and medium are not compatible or exist in different libraries.
 
−
4304 The medium currently exists in an offline library and must be online to perform this operation.
 
−
4305 The operation cannot be performed on an offline library.
 
−
4306 The library, drive, or media pool is empty.
 
−
4307 The library, drive, or media pool must be empty to perform this operation.
 
−
4308 No media is currently available in this media pool or library.
 
−
4309 A resource required for this operation is disabled.
 
−
4310 The media identifier does not represent a valid cleaner.
 
−
4311 The drive cannot be cleaned or does not support cleaning.
 
−
4312 The object identifier does not represent a valid object.
 
−
4313 Unable to read from or write to the database.
 
−
4314 The database is full.
 
−
4315 The medium is not compatible with the device or media pool.
 
−
4316 The resource required for this operation does not exist.
 
−
4317 The operation identifier is not valid.
 
−
4318 The media is not mounted or ready for use.
 
−
4319 The device is not ready for use.
 
−
4320 The operator or administrator has refused the request.
 
−
4321 The drive identifier does not represent a valid drive.
 
−
4322 Library is full. No slot is available for use.
 
−
4323 The transport cannot access the medium.
 
−
4324 Unable to load the medium into the drive.
 
−
4325 Unable to retrieve status about the drive.
 
−
4326 Unable to retrieve status about the slot.
 
−
4327 Unable to retrieve status about the transport.
 
−
4328 Cannot use the transport because it is already in use.
 
−
4329 Unable to open or close the inject/eject port.
 
−
4330 Unable to eject the media because it is in a drive.
 
−
4331 A cleaner slot is already reserved.
 
−
4332 A cleaner slot is not reserved.
 
−
4333 The cleaner cartridge has performed the maximum number of drive cleanings.
 
−
4334 Unexpected on-medium identifier.
 
−
4335 The last remaining item in this group or resource cannot be deleted.
 
−
4336 The message provided exceeds the maximum size allowed for this parameter.
 
−
4337 The volume contains system or paging files.
 
−
4338 The media type cannot be removed from this library since at least one drive in the library reports it can support this media type.
 
−
4339 This offline media cannot be mounted on this system since no enabled drives are present which can be used.
 
−
4340 A cleaner cartridge is present in the tape library.
 
−
4350 The remote storage service was not able to recall the file.
 
−
4351 The remote storage service is not operational at this time.
 
−
4352 The remote storage service encountered a media error.
 
−
4390 The file or directory is not a reparse point.
 
−
4391 The reparse point attribute cannot be set because it conflicts with an existing attribute.
 
−
4392 The data present in the reparse point buffer is invalid.
 
−
4393 The tag present in the reparse point buffer is invalid.
 
−
4394 There is a mismatch between the tag specified in the request and the tag present in the reparse point.
 
−
4500 Single Instance Storage is not available on this volume.
 
−
5001 The cluster resource cannot be moved to another group because other resources are dependent on it.
 
−
5002 The cluster resource dependency cannot be found.
 
−
5003 The cluster resource cannot be made dependent on the specified resource because it is already dependent.
 
−
5004 The cluster resource is not online.
 
−
5005 A cluster node is not available for this operation.
 
−
5006 The cluster resource is not available.
 
−
5007 The cluster resource could not be found.
 
−
5008 The cluster is being shut down.
 
−
5009 A cluster node cannot be evicted from the cluster unless the node is down.
 
−
5010 The object already exists.
 
−
5011 The object is already in the list.
 
−
5012 The cluster group is not available for any new requests.
 
−
5013 The cluster group could not be found.
 
−
5014 The operation could not be completed because the cluster group is not online.
 
−
5015 The cluster node is not the owner of the resource.
 
−
5016 The cluster node is not the owner of the group.
 
−
5017 The cluster resource could not be created in the specified resource monitor.
 
−
5018 The cluster resource could not be brought online by the resource monitor.
 
−
5019 The operation could not be completed because the cluster resource is online.
 
−
5020 The cluster resource could not be deleted or brought offline because it is the quorum resource.
 
−
5021 The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource.
 
−
5022 The cluster software is shutting down.
 
−
5023 The group or resource is not in the correct state to perform the requested operation.
 
−
5024 The properties were stored but not all changes will take effect until the next time the resource is brought online.
 
−
5025 The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class.
 
−
5026 The cluster resource could not be deleted since it is a core resource.
 
−
5027 The quorum resource failed to come online.
 
−
5028 The quorum log could not be created or mounted successfully.
 
−
5029 The cluster log is corrupt.
 
−
5030 The record could not be written to the cluster log since it exceeds the maximum size.
 
−
5031 The cluster log exceeds its maximum size.
 
−
5032 No checkpoint record was found in the cluster log.
 
−
5033 The minimum required disk space needed for logging is not available.
 
−
5034 The cluster node failed to take control of the quorum resource because the resource is owned by another active node.
 
−
5035 A cluster network is not available for this operation.
 
−
5036 A cluster node is not available for this operation.
 
−
5037 All cluster nodes must be running to perform this operation.
 
−
5038 A cluster resource failed.
 
−
5039 The cluster node is not valid.
 
−
5040 The cluster node already exists.
 
−
5041 A node is in the process of joining the cluster.
 
−
5042 The cluster node was not found.
 
−
5043 The cluster local node information was not found.
 
−
5044 The cluster network already exists.
 
−
5045 The cluster network was not found.
 
−
5046 The cluster network interface already exists.
 
−
5047 The cluster network interface was not found.
 
−
5048 The cluster request is not valid for this object.
 
−
5049 The cluster network provider is not valid.
 
−
5050 The cluster node is down.
 
−
5051 The cluster node is not reachable.
 
−
5052 The cluster node is not a member of the cluster.
 
−
5053 A cluster join operation is not in progress.
 
−
5054 The cluster network is not valid.
 
−
5056 The cluster node is up.
 
−
5057 The cluster IP address is already in use.
 
−
5058 The cluster node is not paused.
 
−
5059 No cluster security context is available.
 
−
5060 The cluster network is not configured for internal cluster communication.
 
−
5061 The cluster node is already up.
 
−
5062 The cluster node is already down.
 
−
5063 The cluster network is already online.
 
−
5064 The cluster network is already offline.
 
−
5065 The cluster node is already a member of the cluster.
 
−
5066 The cluster network is the only one configured for internal cluster communication between two or more active cluster nodes. The internal communication capability cannot be removed from the network.
 
−
5067 One or more cluster resources depend on the network to provide service to clients. The client access capability cannot be removed from the network.
 
−
5068 This operation cannot be performed on the cluster resource as it the quorum resource. You may not bring the quorum resource offline or modify its possible owners list.
 
−
5069 The cluster quorum resource is not allowed to have any dependencies.
 
−
5070 The cluster node is paused.
 
−
5071 The cluster resource cannot be brought online. The owner node cannot run this resource.
 
−
5072 The cluster node is not ready to perform the requested operation.
 
−
5073 The cluster node is shutting down.
 
−
5074 The cluster join operation was aborted.
 
−
5075 The cluster join operation failed due to incompatible software versions between the joining node and its sponsor.
 
−
5076 This resource cannot be created because the cluster has reached the limit on the number of resources it can monitor.
 
−
5077 The system configuration changed during the cluster join or form operation. The join or form operation was aborted.
 
−
5078 The specified resource type was not found.
 
−
5079 The specified node does not support a resource of this type. This may be due to version inconsistencies or due to the absence of the resource DLL on this node.
 
−
5080 The specified resource name is supported by this resource DLL. This may be due to a bad (or changed) name supplied to the resource DLL.
 
−
5081 No authentication package could be registered with the RPC server.
 
−
5082 You cannot bring the group online because the owner of the group is not in the preferred list for the group. To change the owner node for the group, move the group.
 
−
5083 The join operation failed because the cluster database sequence number has changed or is incompatible with the locker node. This may happen during a join operation if the cluster database was changing during the join.
 
−
5084 The resource monitor will not allow the fail operation to be performed while the resource is in its current state. This may happen if the resource is in a pending state.
 
−
5085 A non locker code got a request to reserve the lock for making global updates.
 
−
5086 The quorum disk could not be located by the cluster service.
 
−
5087 The backup up cluster database is possibly corrupt.
 
−
5088 A DFS root already exists in this cluster node.
 
−
5089 An attempt to modify a resource property failed because it conflicts with another existing property.
 
−
5890 An operation was attempted that is incompatible with the current membership state of the node.
 
−
5891 The quorum resource does not contain the quorum log.
 
−
5892 The membership engine requested shutdown of the cluster service on this node.
 
−
5893 The join operation failed because the cluster instance ID of the joining node does not match the cluster instance ID of the sponsor node.
 
−
5894 A matching network for the specified IP address could not be found. Please also specify a subnet mask and a cluster network.
 
−
5895 The actual data type of the property did not match the expected data type of the property.
 
−
5896 The cluster node was evicted from the cluster successfully, but the node was not cleaned up. Extended status information explaining why the node was not cleaned up is available.
 
−
5897 Two or more parameter values specified for a resource\’s properties are in conflict.
 
−
5898 This computer cannot be made a member of a cluster.
 
−
5899 This computer cannot be made a member of a cluster because it does not have the correct version of Windows installed.
 
−
5900 A cluster cannot be created with the specified cluster name because that cluster name is already in use. Specify a different name for the cluster.
 
−
6000 The specified file could not be encrypted.
 
−
6001 The specified file could not be decrypted.
 
−
6002 The specified file is encrypted and the user does not have the ability to decrypt it.
 
−
6003 There is no valid encryption recovery policy configured for this system.
 
−
6004 The required encryption driver is not loaded for this system.
 
−
6005 The file was encrypted with a different encryption driver than is currently loaded.
 
−
6006 There are no EFS keys defined for the user.
 
−
6007 The specified file is not encrypted.
 
−
6008 The specified file is not in the defined EFS export format.
 
−
6009 The specified file is read only.
 
−
6010 The directory has been disabled for encryption.
 
−
6011 The server is not trusted for remote encryption operation.
 
−
6012 Recovery policy configured for this system contains invalid recovery certificate.
 
−
6013 The encryption algorithm used on the source file needs a bigger key buffer than the one on the destination file.
 
−
6014 The disk partition does not support file encryption.
 
−
6015 This machine is disabled for file encryption.
 
−
6016 A newer system is required to decrypt this encrypted file.
 
−
6118 The list of servers for this workgroup is not currently available.
 
−
6200 The Task Scheduler service must be configured to run in the System account to function properly. Individual tasks may be configured to run in other accounts.
 
−
7001 The specified session name is invalid.
 
−
7002 The specified protocol driver is invalid.
 
−
7003 The specified protocol driver was not found in the system path.
 
−
7004 The specified terminal connection driver was not found in the system path.
 
−
7005 A registry key for event logging could not be created for this session.
 
−
7006 A service with the same name already exists on the system.
 
−
7007 A close operation is pending on the session.
 
−
7008 There are no free output buffers available.
 
−
7009 The MODEM.INF file was not found.
 
−
7010 The modem name was not found in MODEM.INF.
 
−
7011 The modem did not accept the command sent to it. Verify that the configured modem name matches the attached modem.
 
−
7012 The modem did not respond to the command sent to it. Verify that the modem is properly cabled and powered on.
 
−
7013 Carrier detect has failed or carrier has been dropped due to disconnect.
 
−
7014 Dial tone not detected within the required time. Verify that the phone cable is properly attached and functional.
 
−
7015 Busy signal detected at remote site on callback.
 
−
7016 Voice detected at remote site on callback.
 
−
7017 Transport driver error
 
−
7022 The specified session cannot be found.
 
−
7023 The specified session name is already in use.
 
−
7024 The requested operation cannot be completed because the terminal connection is currently busy processing a connect, disconnect, reset, or delete operation.
 
−
7025 An attempt has been made to connect to a session whose video mode is not supported by the current client.
 
−
7035 The application attempted to enable DOS graphics mode. DOS graphics mode is not supported.
 
−
7037 Your interactive logon privilege has been disabled. Please contact your administrator.
 
−
7038 The requested operation can be performed only on the system console. This is most often the result of a driver or system DLL requiring direct console access.
 
−
7040 The client failed to respond to the server connect message.
 
−
7041 Disconnecting the console session is not supported.
 
−
7042 Reconnecting a disconnected session to the console is not supported.
 
−
7044 The request to control another session remotely was denied.
 
−
7045 The requested session access is denied.
 
−
7049 The specified terminal connection driver is invalid.
 
−
7050 The requested session cannot be controlled remotely. This may be because the session is disconnected or does not currently have a user logged on.
 
−
7051 The requested session is not configured to allow remote control.
 
−
7052 Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number is currently being used by another user. Please call your system administrator to obtain a unique license number.
 
−
7053 Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number has not been entered for this copy of the Terminal Server client. Please contact your system administrator.
 
−
7054 The system has reached its licensed logon limit. Please try again later.
 
−
7055 The client you are using is not licensed to use this system. Your logon request is denied.
 
−
7056 The system license has expired. Your logon request is denied.
 
−
7057 Remote control could not be terminated because the specified session is not currently being remotely controlled.
 
−
7058 The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported.
 
−
8001 The file replication service API was called incorrectly.
 
−
8002 The file replication service cannot be started.
 
−
8003 The file replication service cannot be stopped.
 
−
8004 The file replication service API terminated the request. The event log may have more information.
 
−
8005 The file replication service terminated the request. The event log may have more information.
 
−
8006 The file replication service cannot be contacted. The event log may have more information.
 
−
8007 The file replication service cannot satisfy the request because the user has insufficient privileges. The event log may have more information.
 
−
8008 The file replication service cannot satisfy the request because authenticated RPC is not available. The event log may have more information.
 
−
8009 The file replication service cannot satisfy the request because the user has insufficient privileges on the domain controller. The event log may have more information.
 
−
8010 The file replication service cannot satisfy the request because authenticated RPC is not available on the domain controller. The event log may have more information.
 
−
8011 The file replication service cannot communicate with the file replication service on the domain controller. The event log may have more information.
 
−
8012 The file replication service on the domain controller cannot communicate with the file replication service on this computer. The event log may have more information.
 
−
8013 The file replication service cannot populate the system volume because of an internal error. The event log may have more information.
 
−
8014 The file replication service cannot populate the system volume because of an internal timeout. The event log may have more information.
 
−
8015 The file replication service cannot process the request. The system volume is busy with a previous request.
 
−
8016 The file replication service cannot stop replicating the system volume because of an internal error. The event log may have more information.
 
−
8017 The file replication service detected an invalid parameter.
 
−
8200 An error occurred while installing the directory service. For more information, see the event log.
 
−
8201 The directory service evaluated group memberships locally.
 
−
8202 The specified directory service attribute or value does not exist.
 
−
8203 The attribute syntax specified to the directory service is invalid.
 
−
8204 The attribute type specified to the directory service is not defined.
 
−
8205 The specified directory service attribute or value already exists.
 
−
8206 The directory service is busy.
 
−
8207 The directory service is unavailable.
 
−
8208 The directory service was unable to allocate a relative identifier.
 
−
8209 The directory service has exhausted the pool of relative identifiers.
 
−
8210 The requested operation could not be performed because the directory service is not the master for that type of operation.
 
−
8211 The directory service was unable to initialize the subsystem that allocates relative identifiers.
 
−
8212 The requested operation did not satisfy one or more constraints associated with the class of the object.
 
−
8213 The directory service can perform the requested operation only on a leaf object.
 
−
8214 The directory service cannot perform the requested operation on the RDN attribute of an object.
 
−
8215 The directory service detected an attempt to modify the object class of an object.
 
−
8216 The requested cross-domain move operation could not be performed.
 
−
8217 Unable to contact the global catalog server.
 
−
8218 The policy object is shared and can only be modified at the root.
 
−
8219 The policy object does not exist.
 
−
8220 The requested policy information is only in the directory service.
 
−
8221 A domain controller promotion is currently active.
 
−
8222 A domain controller promotion is not currently active
 
−
8224 An operations error occurred.
 
−
8225 A protocol error occurred.
 
−
8226 The time limit for this request was exceeded.
 
−
8227 The size limit for this request was exceeded.
 
−
8228 The administrative limit for this request was exceeded.
 
−
8229 The compare response was false.
 
−
8230 The compare response was true.
 
−
8231 The requested authentication method is not supported by the server.
 
−
8232 A more secure authentication method is required for this server.
 
−
8233 Inappropriate authentication.
 
−
8234 The authentication mechanism is unknown.
 
−
8235 A referral was returned from the server.
 
−
8236 The server does not support the requested critical extension.
 
−
8237 This request requires a secure connection.
 
−
8238 Inappropriate matching.
 
−
8239 A constraint violation occurred.
 
−
8240 There is no such object on the server.
 
−
8241 There is an alias problem.
 
−
8242 An invalid dn syntax has been specified.
 
−
8243 The object is a leaf object.
 
−
8244 There is an alias dereferencing problem.
 
−
8245 The server is unwilling to process the request.
 
−
8246 A loop has been detected.
 
−
8247 There is a naming violation.
 
−
8248 The result set is too large.
 
−
8249 The operation affects multiple DSAs
 
−
8250 The server is not operational.
 
−
8251 A local error has occurred.
 
−
8252 An encoding error has occurred.
 
−
8253 A decoding error has occurred.
 
−
8254 The search filter cannot be recognized.
 
−
8255 One or more parameters are illegal.
 
−
8256 The specified method is not supported.
 
−
8257 No results were returned.
 
−
8258 The specified control is not supported by the server.
 
−
8259 A referral loop was detected by the client.
 
−
8260 The preset referral limit was exceeded.
 
−
8261 The search requires a SORT control.
 
−
8262 The search results exceed the offset range specified.
 
−
8301 The root object must be the head of a naming context. The root object cannot have an instantiated parent.
 
−
8302 The add replica operation cannot be performed. The naming context must be writable in order to create the replica.
 
−
8303 A reference to an attribute that is not defined in the schema occurred.
 
−
8304 The maximum size of an object has been exceeded.
 
−
8305 An attempt was made to add an object to the directory with a name that is already in use.
 
−
8306 An attempt was made to add an object of a class that does not have an RDN defined in the schema.
 
−
8307 An attempt was made to add an object using an RDN that is not the RDN defined in the schema.
 
−
8308 None of the requested attributes were found on the objects.
 
−
8309 The user buffer is too small.
 
−
8310 The attribute specified in the operation is not present on the object.
 
−
8311 Illegal modify operation. Some aspect of the modification is not permitted.
 
−
8312 The specified object is too large.
 
−
8313 The specified instance type is not valid.
 
−
8314 The operation must be performed at a master DSA.
 
−
8315 The object class attribute must be specified.
 
−
8316 A required attribute is missing.
 
−
8317 An attempt was made to modify an object to include an attribute that is not legal for its class
 
−
8318 The specified attribute is already present on the object.
 
−
8320 The specified attribute is not present, or has no values.
 
−
8321 Multiple values were specified for an attribute that can have only one value.
 
−
8322 A value for the attribute was not in the acceptable range of values.
 
−
8323 The specified value already exists.
 
−
8324 The attribute cannot be removed because it is not present on the object.
 
−
8325 The attribute value cannot be removed because it is not present on the object.
 
−
8326 The specified root object cannot be a subref.
 
−
8327 Chaining is not permitted.
 
−
8328 Chained evaluation is not permitted.
 
−
8329 The operation could not be performed because the object\’s parent is either uninstantiated or deleted.
 
−
8330 Having a parent that is an alias is not permitted. Aliases are leaf objects.
 
−
8331 The object and parent must be of the same type, either both masters or both replicas.
 
−
8332 The operation cannot be performed because child objects exist. This operation can only be performed on a leaf object.
 
−
8333 Directory object not found.
 
−
8334 The aliased object is missing.
 
−
8335 The object name has bad syntax.
 
−
8336 It is not permitted for an alias to refer to another alias.
 
−
8337 The alias cannot be dereferenced.
 
−
8338 The operation is out of scope.
 
−
8339 The operation cannot continue because the object is in the process of being removed.
 
−
8340 The DSA object cannot be deleted.
 
−
8341 A directory service error has occurred.
 
−
8342 The operation can only be performed on an internal master DSA object.
 
−
8343 The object must be of class DSA.
 
−
8344 Insufficient access rights to perform the operation.
 
−
8345 The object cannot be added because the parent is not on the list of possible superiors.
 
−
8346 Access to the attribute is not permitted because the attribute is owned by the Security Accounts Manager (SAM).
 
−
8347 The name has too many parts.
 
−
8348 The name is too long.
 
−
8349 The name value is too long.
 
−
8350 The directory service encountered an error parsing a name.
 
−
8351 The directory service cannot get the attribute type for a name.
 
−
8352 The name does not identify an object; the name identifies a phantom.
 
−
8353 The security descriptor is too short.
 
−
8354 The security descriptor is invalid.
 
−
8355 Failed to create name for deleted object.
 
−
8356 The parent of a new subref must exist.
 
−
8357 The object must be a naming context.
 
−
8358 It is not permitted to add an attribute which is owned by the system.
 
−
8359 The class of the object must be structural; you cannot instantiate an abstract class.
 
−
8360 The schema object could not be found.
 
−
8361 A local object with this GUID (dead or alive) already exists.
 
−
8362 The operation cannot be performed on a back link.
 
−
8363 The cross reference for the specified naming context could not be found.
 
−
8364 The operation could not be performed because the directory service is shutting down.
 
−
8365 The directory service request is invalid.
 
−
8366 The role owner attribute could not be read.
 
−
8367 The requested FSMO operation failed. The current FSMO holder could not be reached.
 
−
8368 Modification of a DN across a naming context is not permitted.
 
−
8369 The attribute cannot be modified because it is owned by the system.
 
−
8370 Only the replicator can perform this function.
 
−
8371 The specified class is not defined.
 
−
8372 The specified class is not a subclass.
 
−
8373 The name reference is invalid.
 
−
8374 A cross reference already exists.
 
−
8375 It is not permitted to delete a master cross reference.
 
−
8376 Subtree notifications are only supported on NC heads.
 
−
8377 Notification filter is too complex.
 
−
8378 Schema update failed: duplicate RDN.
 
−
8379 Schema update failed: duplicate OID
 
−
8380 Schema update failed: duplicate MAPI identifier.
 
−
8381 Schema update failed: duplicate schema-id GUID.
 
−
8382 Schema update failed: duplicate LDAP display name.
 
−
8383 Schema update failed: range-lower less than range upper
 
−
8384 Schema update failed: syntax mismatch
 
−
8385 Schema deletion failed: attribute is used in must-contain
 
−
8386 Schema deletion failed: attribute is used in may-contain
 
−
8387 Schema update failed: attribute in may-contain does not exist
 
−
8388 Schema update failed: attribute in must-contain does not exist
 
−
8389 Schema update failed: class in aux-class list does not exist or is not an auxiliary class
 
−
8390 Schema update failed: class in poss-superiors does not exist
 
−
8391 Schema update failed: class in subclassof list does not exist or does not satisfy hierarchy rules
 
−
8392 Schema update failed: Rdn-Att-Id has wrong syntax
 
−
8393 Schema deletion failed: class is used as auxiliary class
 
−
8394 Schema deletion failed: class is used as sub class
 
−
8395 Schema deletion failed: class is used as poss superior
 
−
8396 Schema update failed in recalculating validation cache.
 
−
8397 The tree deletion is not finished.
 
−
8398 The requested delete operation could not be performed.
 
−
8399 Cannot read the governs class identifier for the schema record.
 
−
8400 The attribute schema has bad syntax.
 
−
8401 The attribute could not be cached.
 
−
8402 The class could not be cached.
 
−
8403 The attribute could not be removed from the cache.
 
−
8404 The class could not be removed from the cache.
 
−
8405 The distinguished name attribute could not be read.
 
−
8406 A required subref is missing.
 
−
8407 The instance type attribute could not be retrieved.
 
−
8408 An internal error has occurred.
 
−
8409 A database error has occurred.
 
−
8410 The attribute GOVERNSID is missing.
 
−
8411 An expected attribute is missing.
 
−
8412 The specified naming context is missing a cross reference.
 
−
8413 A security checking error has occurred.
 
−
8414 The schema is not loaded.
 
−
8415 Schema allocation failed. Please check if the machine is running low on memory.
 
−
8416 Failed to obtain the required syntax for the attribute schema.
 
−
8417 The global catalog verification failed. The global catalog is not available or does not support the operation. Some part of the directory is currently not available.
 
−
8418 The replication operation failed because of a schema mismatch between the servers involved.
 
−
8419 The DSA object could not be found.
 
−
8420 The naming context could not be found.
 
−
8421 The naming context could not be found in the cache.
 
−
8422 The child object could not be retrieved.
 
−
8423 The modification was not permitted for security reasons.
 
−
8424 The operation cannot replace the hidden record.
 
−
8425 The hierarchy file is invalid.
 
−
8426 The attempt to build the hierarchy table failed.
 
−
8427 The directory configuration parameter is missing from the registry.
 
−
8428 The attempt to count the address book indices failed.
 
−
8429 The allocation of the hierarchy table failed.
 
−
8430 The directory service encountered an internal failure.
 
−
8431 The directory service encountered an unknown failure.
 
−
8432 A root object requires a class of \’top\’.
 
−
8433 This directory server is shutting down, and cannot take ownership of new floating single-master operation roles.
 
−
8434 The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles.
 
−
8435 The directory service was unable to transfer ownership of one or more floating single-master operation roles to other servers.
 
−
8436 The replication operation failed.
 
−
8437 An invalid parameter was specified for this replication operation.
 
−
8438 The directory service is too busy to complete the replication operation at this time.
 
−
8439 The distinguished name specified for this replication operation is invalid.
 
−
8440 The naming context specified for this replication operation is invalid.
 
−
8441 The distinguished name specified for this replication operation already exists.
 
−
8442 The replication system encountered an internal error.
 
−
8443 The replication operation encountered a database inconsistency.
 
−
8444 The server specified for this replication operation could not be contacted.
 
−
8445 The replication operation encountered an object with an invalid instance type.
 
−
8446 The replication operation failed to allocate memory.
 
−
8447 The replication operation encountered an error with the mail system.
 
−
8448 The replication reference information for the target server already exists.
 
−
8449 The replication reference information for the target server does not exist.
 
−
8450 The naming context cannot be removed because it is replicated to another server.
 
−
8451 The replication operation encountered a database error.
 
−
8452 The naming context is in the process of being removed or is not replicated from the specified server.
 
−
8453 Replication access was denied.
 
−
8454 The requested operation is not supported by this version of the directory service.
 
−
8455 The replication remote procedure call was cancelled.
 
−
8456 The source server is currently rejecting replication requests.
 
−
8457 The destination server is currently rejecting replication requests.
 
−
8458 The replication operation failed due to a collision of object names.
 
−
8459 The replication source has been reinstalled.
 
−
8460 The replication operation failed because a required parent object is missing.
 
−
8461 The replication operation was preempted.
 
−
8462 The replication synchronization attempt was abandoned because of a lack of updates.
 
−
8463 The replication operation was terminated because the system is shutting down.
 
−
8464 The replication synchronization attempt failed as the destination partial attribute set is not a subset of source partial attribute set.
 
−
8465 The replication synchronization attempt failed because a master replica attempted to sync from a partial replica.
 
−
8466 The server specified for this replication operation was contacted, but that server was unable to contact an additional server needed to complete the operation.
 
−
8467 The version of the Active Directory schema of the source forest is not compatible with the version of Active Directory on this computer. You must upgrade the operating system on a domain controller in the source forest before this computer can be added as a domain controller to that forest.
 
−
8468 Schema update failed: An attribute with the same link identifier already exists.
 
−
8469 Name translation: Generic processing error.
 
−
8470 Name translation: Could not find the name or insufficient right to see name.
 
−
8471 Name translation: Input name mapped to more than one output name.
 
−
8472 Name translation: Input name found, but not the associated output format.
 
−
8473 Name translation: Unable to resolve completely, only the domain was found.
 
−
8474 Name translation: Unable to perform purely syntactical mapping at the client without going out to the wire.
 
−
8475 Modification of a constructed att is not allowed.
 
−
8476 The OM-Object-Class specified is incorrect for an attribute with the specified syntax.
 
−
8477 The replication request has been posted; waiting for reply.
 
−
8478 The requested operation requires a directory service, and none was available.
 
−
8479 The LDAP display name of the class or attribute contains non-ASCII characters.
 
−
8480 The requested search operation is only supported for base searches.
 
−
8481 The search failed to retrieve attributes from the database.
 
−
8482 The schema update operation tried to add a backward link attribute that has no corresponding forward link.
 
−
8483 Source and destination of a cross domain move do not agree on the object\’s epoch number. Either source or destination does not have the latest version of the object.
 
−
8484 Source and destination of a cross domain move do not agree on the object\’s current name. Either source or destination does not have the latest version of the object.
 
−
8485 Source and destination of a cross domain move operation are identical. Caller should use local move operation instead of cross domain move operation.
 
−
8486 Source and destination for a cross domain move are not in agreement on the naming contexts in the forest. Either source or destination does not have the latest version of the Partitions container.
 
−
8487 Destination of a cross domain move is not authoritative for the destination naming context.
 
−
8488 Source and destination of a cross domain move do not agree on the identity of the source object. Either source or destination does not have the latest version of the source object.
 
−
8489 Object being moved across domains is already known to be deleted by the destination server. The source server does not have the latest version of the source object.
 
−
8490 Another operation which requires exclusive access to the PDC PSMO is already in progress.
 
−
8491 A cross domain move operation failed such that the two versions of the moved object exist - one each in the source and destination domains. The destination object needs to be removed to restore the system to a consistent state.
 
−
8492 This object may not be moved across domain boundaries either because cross domain moves for this class are disallowed, or the object has some special characteristics, eg: trust account or restricted RID, which prevent its move.
 
−
8493 Can\’t move objects with memberships across domain boundaries as once moved, this would violate the membership conditions of the account group. Remove the object from any account group memberships and retry.
 
−
8494 A naming context head must be the immediate child of another naming context head, not of an interior node.
 
−
8495 The directory cannot validate the proposed naming context name because it does not hold a replica of the naming context above the proposed naming context. Please ensure that the domain naming master role is held by a server that is configured as a global catalog server, and that the server is up to date with its replication partners. (Applies only to Windows 2000 Domain Naming masters)
 
−
8496 Destination domain must be in native mode.
 
−
8497 The operation cannot be performed because the server does not have an infrastructure container in the domain of interest.
 
−
8498 Cross-domain move of non-empty account groups is not allowed.
 
−
8499 Cross-domain move of non-empty resource groups is not allowed.
 
−
8500 The search flags for the attribute are invalid. The ANR bit is valid only on attributes of Unicode or Teletex strings.
 
−
8501 Tree deletions starting at an object which has an NC head as a descendant are not allowed.
 
−
8502 The directory service failed to lock a tree in preparation for a tree deletion because the tree was in use.
 
−
8503 The directory service failed to identify the list of objects to delete while attempting a tree deletion.
 
−
8504 Security Accounts Manager initialization failed because of the following error: %1.
 
  
−
Error Status: 0x%2. Click OK to shut down the system and reboot into Directory Services Restore Mode. Check the event log for detailed information.
+
==comparaison de chaînes de caractères==
  
−
8505 Only an administrator can modify the membership list of an administrative group.
+
=
−
8506 Cannot change the primary group ID of a domain controller account.
+
est égal à
−
8507 An attempt is made to modify the base schema.
+
−
8508 Adding a new mandatory attribute to an existing class, deleting a mandatory attribute from an existing class, or adding an optional attribute to the special class Top that is not a backlink attribute (directly or through inheritance, for example, by adding or deleting an auxiliary class) is not allowed.
+
if [ "$a" = "$b" ]
−
8509 Schema update is not allowed on this DC because the DC is not the schema FSMO Role Owner.
 
−
8510 An object of this class cannot be created under the schema container. You can only create attribute-schema and class-schema objects under the schema container.
 
−
8511 The replica/child install failed to get the objectVersion attribute on the schema container on the source DC. Either the attribute is missing on the schema container or the credentials supplied do not have permission to read it.
 
−
8512 The replica/child install failed to read the objectVersion attribute in the SCHEMA section of the file schema.ini in the system32 directory.
 
−
8513 The specified group type is invalid.
 
−
8514 Cannot nest global groups in a mixed domain if the group is security-enabled.
 
−
8515 Cannot nest local groups in a mixed domain if the group is security-enabled.
 
−
8516 A global group cannot have a local group as a member.
 
−
8517 A global group cannot have a universal group as a member.
 
−
8518 A universal group cannot have a local group as a member.
 
−
8519 A global group cannot have a cross-domain member.
 
−
8520 A local group cannot have another cross-domain local group as a member.
 
−
8521 A group with primary members cannot change to a security-disabled group.
 
−
8522 The schema cache load failed to convert the string default SD on a class-schema object.
 
−
8523 Only DSAs configured to be Global Catalog servers should be allowed to hold the Domain Naming Master FSMO role. (Applies only to Windows 2000 servers)
 
−
8524 The DSA operation is unable to proceed because of a DNS lookup failure.
 
−
8525 While processing a change to the DNS Host Name for an object, the Service Principal Name values could not be kept in sync.
 
−
8526 The Security Descriptor attribute could not be read.
 
−
8527 The object requested was not found, but an object with that key was found.
 
−
8528 The syntax of the linked attributed being added is incorrect. Forward links can only have syntax 2.5.5.1, 2.5.5.7, and 2.5.5.14, and backlinks can only have syntax 2.5.5.1.
 
−
8529 Security Account Manager needs to get the boot password.
 
−
8530 Security Account Manager needs to get the boot key from floppy disk.
 
−
8531 Directory Service cannot start.
 
−
8532 Directory Services could not start.
 
−
8533 The connection between client and server requires packet privacy or better.
 
−
8534 The source domain may not be in the same forest as destination.
 
−
8535 The destination domain must be in the forest.
 
−
8536 The operation requires that destination domain auditing be enabled.
 
−
8537 The operation couldn\’t locate a DC for the source domain.
 
−
8538 The source object must be a group or user.
 
−
8539 The source object\’s SID already exists in destination forest.
 
−
8540 The source and destination object must be of the same type.
 
−
8541 Security Accounts Manager initialization failed because of the following error: %1.
 
  
−
Error Status: 0x%2. Click OK to shut down the system and reboot into Safe Mode. Check the event log for detailed information.  
+
==
 +
est égal à
 +
 +
if [ "$a" == "$b" ]
 +
 +
Ceci est un synonyme de =.
  
−
8542 Schema information could not be included in the replication request.
+
[Note] Note
−
8543 The replication operation could not be completed due to a schema incompatibility.
+
L'opérateur de comparaison == se comporte différemment à l'intérieur d'un test à double crochets qu'à l'intérieur de crochets simples.
−
8544 The replication operation could not be completed due to a previous schema incompatibility.
 
−
8545 The replication update could not be applied because either the source or the destination has not yet received information regarding a recent cross-domain move operation.
 
−
8546 The requested domain could not be deleted because there exist domain controllers that still host this domain.
 
−
8547 The requested operation can be performed only on a global catalog server.
 
−
8548 A local group can only be a member of other local groups in the same domain.
 
−
8549 Foreign security principals cannot be members of universal groups.
 
−
8550 The attribute is not allowed to be replicated to the GC because of security reasons.
 
−
8551 The checkpoint with the PDC could not be taken because there are too many modifications being processed currently.
 
−
8552 The operation requires that source domain auditing be enabled.
 
−
8553 Security principal objects can only be created inside domain naming contexts.
 
−
8554 A Service Principal Name (SPN) could not be constructed because the provided hostname is not in the necessary format.
 
−
8555 A Filter was passed that uses constructed attributes.
 
−
8556 The unicodePwd attribute value must be enclosed in double quotes.
 
−
8557 Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased.
 
−
8558 For security reasons, the operation must be run on the destination DC.
 
−
8559 For security reasons, the source DC must be NT4SP4 or greater.
 
−
8560 Critical Directory Service System objects cannot be deleted during tree delete operations. The tree delete may have been partially performed.
 
−
8561 Directory Services could not start because of the following error: %1.  
 
  
−
Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further.  
+
[[ $a == z* ]]    # Vrai si $a commence avec un "z" (correspondance de modèle).
  
−
8562 Security Accounts Manager initialization failed because of the following error: %1.  
+
[[ $a == "z*" ]]  # Vrai si $a est égal à z* (correspondance littérale).
  
−
Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further.  
+
[ $a == z* ]      # Correspondance de fichiers et découpage de mots.
 +
[ "$a" == "z*" ]  # Vrai si $a est égal à z* (correspondance littérale).
 +
 
 +
 
 +
!=
 +
n'est pas égal à
 +
 +
if [ "$a" != "$b" ]
 +
 +
Cet opérateur utilise la reconnaissance de motifs à l'intérieur de constructions [[ ... ]].
 +
 
 +
<
 +
est plus petit que, d'après l'ordre alphabétique ASCII
 +
 +
if [[ "$a" &lt; "$b" ]]
 +
 +
if [ "$a" \< "$b" ]
 +
 
 +
Notez que « < » a besoin d'être dans une séquence d'échappement s'il se trouve à l'intérieur de [ ].
 +
 
 +
>
 +
est plus grand que, d'après l'ordre alphabétique ASCII
 +
 +
if [[ "$a" > "$b" ]]
 +
 +
if [ "$a" \> "$b" ]
 +
 +
Notez que « > » a besoin d'être dans une séquence d'échappement s'il se trouve à l'intérieur de [ ].
 +
 
 +
Voir l'Exemple 26.10, « Le tri bulle : Bubble Sort » pour une application de cet opérateur de comparaison.
 +
 
 +
-n
 +
la chaîne de caractères n'est pas « vide ».
 +
 +
[Attention] Attention
 +
Attention : Le test -n nécessite absolument que la chaîne de caractères soit entre guillemets à l'intérieur des crochets de test.
 +
Utiliser une chaîne sans guillemets avec ! -z, voire simplement la chaîne sans guillemets à l'intérieur des crochets (voir l'Exemple
 +
7.6, « Vérification si une chaîne est nulle ») fonctionne habituellement, néanmoins, c'est une pratique peu sûre. Placez toujours vos
 +
chaînes de caractères à tester entre guillemets. [26]
  
−
8563 This version of Windows is too old to support the current directory forest behavior. You must upgrade the operating system on this server before it can become a domain controller in this forest.
+
-z
−
8564 This version of Windows is too old to support the current domain behavior. You must upgrade the operating system on this server before it can become a domain controller in this domain.
+
la chaîne de caractères est « vide », c'est-à-dire qu'elle a une taille nulle
−
8565 This version of Windows no longer supports the behavior version in use in this directory forest. You must advance the forest behavior version before this server can become a domain controller in the forest.
 
−
8566 This version of Windows no longer supports the behavior version in use in this domain. You must advance the domain behavior version before this server can become a domain controller in the domain.
 
−
8567 The version of Windows is incompatible with the behavior version of the domain or forest.
 
−
8568 The behavior version cannot be increased to the requested value because Domain Controllers still exist with versions lower than the requested value.
 
−
8569 The behavior version value cannot be increased while the domain is still in mixed domain mode. You must first change the domain to native mode before increasing the behavior version.
 
−
8570 The sort order requested is not supported.
 
−
8571 Found an object with a non unique name.
 
−
8572 The machine account was created pre-NT4. The account needs to be recreated.
 
−
8573 The database is out of version store.
 
−
8574 Unable to continue operation because multiple conflicting controls were used.
 
−
8575 Unable to find a valid security descriptor reference domain for this partition.
 
−
8576 Schema update failed: The link identifier is reserved.
 
−
8577 Schema update failed: There are no link identifiers available.
 
−
8578 An account group cannot have a universal group as a member.
 
−
8579 Rename or move operations on naming context heads or read-only objects are not allowed.
 
−
8580 Move operations on objects in the schema naming context are not allowed.
 
−
8581 A system flag has been set on the object and does not allow the object to be moved or renamed.
 
−
8582 This object is not allowed to change its grandparent container. Moves are not forbidden on this object, but are restricted to sibling containers.
 
−
8583 Unable to resolve completely, a referral to another forest is generated.
 
−
8584 The requested action is not supported on standard server.
 
−
8585 Could not access a partition of the Active Directory located on a remote server. Make sure at least one server is running for the partition in question.
 
−
8586 The directory cannot validate the proposed naming context (or partition) name because it does not hold a replica nor can it contact a replica of the naming context above the proposed naming context. Please ensure that the parent naming context is properly registered in DNS, and at least one replica of this naming context is reachable by the Domain Naming master.
 
−
8587 The thread limit for this request was exceeded.
 
−
8588 The Global catalog server is not in the closet site.
 
−
8589 The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the corresponding server object in the local DS database has no serverReference attribute.
 
−
8590 The Directory Service failed to enter single user mode.
 
−
8591 The Directory Service cannot parse the script because of a syntax error.
 
−
8592 The Directory Service cannot process the script because of an error.
 
−
8593 The directory service cannot perform the requested operation because the servers involved are of different replication epochs (which is usually related to a domain rename that is in progress).
 
−
8594 The directory service binding must be renegotiated due to a change in the server extensions information.
 
−
8595 Operation not allowed on a disabled cross ref.
 
−
8596 Schema update failed: No values for msDS-IntId are available.
 
−
8597 Schema update failed: Duplicate msDS-INtId. Retry the operation.
 
−
8598 Schema deletion failed: attribute is used in rDNAttID.
 
−
8599 The directory service failed to authorize the request.
 
−
8600 The Directory Service cannot process the script because it is invalid.
 
−
8601 The remote create cross reference operation failed on the Domain Naming Master FSMO. The operation\’s error is in the extended data.
 
−
9001 DNS server unable to interpret format.
 
−
9002 DNS server failure.
 
−
9003 DNS name does not exist.
 
−
9004 DNS request not supported by name server.
 
−
9005 DNS operation refused.
 
−
9006 DNS name that ought not exist, does exist.
 
−
9007 DNS RR set that ought not exist, does exist.
 
−
9008 DNS RR set that ought to exist, does not exist.
 
−
9009 DNS server not authoritative for zone.
 
−
9010 DNS name in update or prereq is not in zone.
 
−
9016 DNS signature failed to verify.
 
−
9017 DNS bad key.
 
−
9018 DNS signature validity expired.
 
−
9501 No records found for given DNS query.
 
−
9502 Bad DNS packet.
 
−
9503 No DNS packet.
 
−
9504 DNS error, check rcode.
 
−
9505 Unsecured DNS packet.
 
−
9551 Invalid DNS type.
 
−
9552 Invalid IP address.
 
−
9553 Invalid property.
 
−
9554 Try DNS operation again later.
 
−
9555 Record for given name and type is not unique.
 
−
9556 DNS name does not comply with RFC specifications.
 
−
9557 DNS name is a fully-qualified DNS name.
 
−
9558 DNS name is dotted (multi-label).
 
−
9559 DNS name is a single-part name.
 
−
9560 DSN name contains an invalid character.
 
−
9561 DNS name is entirely numeric.
 
−
9562 The operation requested is not permitted on a DNS root server.
 
−
9601 DNS zone does not exist.
 
−
9602 DNS zone information not available.
 
−
9603 Invalid operation for DNS zone.
 
−
9604 Invalid DNS zone configuration.
 
−
9605 DNS zone has no start of authority (SOA) record.
 
−
9606 DNS zone has no name server (NS) record.
 
−
9607 DNS zone is locked.
 
−
9608 DNS zone creation failed.
 
−
9609 DNS zone already exists.
 
−
9610 DNS automatic zone already exists.
 
−
9611 Invalid DNS zone type.
 
−
9612 Secondary DNS zone requires master IP address.
 
−
9613 DNS zone not secondary.
 
−
9614 Need secondary IP address.
 
−
9615 WINS initialization failed.
 
−
9616 Need WINS servers.
 
−
9617 NBTSTAT initialization call failed.
 
−
9618 Invalid delete of start of authority (SOA)
 
−
9619 A conditional forwarding zone already exists for that name.
 
−
9620 This zone must be configured with one or more master DNS server IP addresses.
 
−
9621 The operation cannot be performed because this zone is shutdown.
 
−
9651 Primary DNS zone requires datafile.
 
−
9652 Invalid datafile name for DNS zone.
 
−
9653 Failed to open datafile for DNS zone.
 
−
9654 Failed to write datafile for DNS zone.
 
−
9655 Failure while reading datafile for DNS zone.
 
−
9701 DNS record does not exist.
 
−
9702 DNS record format error.
 
−
9703 Node creation failure in DNS.
 
−
9704 Unknown DNS record type.
 
−
9705 DNS record timed out.
 
−
9706 Name not in DNS zone.
 
−
9707 CNAME loop detected.
 
−
9708 Node is a CNAME DNS record.
 
−
9709 A CNAME record already exists for given name.
 
−
9710 Record only at DNS zone root.
 
−
9711 DNS record already exists.
 
−
9712 Secondary DNS zone data error.
 
−
9713 Could not create DNS cache data.
 
−
9714 DNS name does not exist.
 
−
9715 Could not create pointer (PTR) record.
 
−
9716 DNS domain was undeleted.
 
−
9717 The directory service is unavailable.
 
−
9718 DNS zone already exists in the directory service.
 
−
9719 DNS server not creating or reading the boot file for the directory service integrated DNS zone.
 
−
9751 DNS AXFR (zone transfer) complete.
 
−
9752 DNS zone transfer failed.
 
−
9753 Added local WINS server.
 
−
9801 Secure update call needs to continue update request.
 
−
9851 TCP/IP network protocol not installed.
 
−
9852 No DNS servers configured for local system.
 
−
9901 The specified directory partition does not exist.
 
−
9902 The specified directory partition already exists.
 
−
9903 The DS is not enlisted in the specified directory partition.
 
−
9904 The DS is already enlisted in the specified directory partition.
 
−
10004 A blocking operation was interrupted by a call to WSACancelBlockingCall.
 
−
10009 The file handle supplied is not valid.
 
−
10013 An attempt was made to access a socket in a way forbidden by its access permissions.
 
−
10014 The system detected an invalid pointer address in attempting to use a pointer argument in a call.
 
−
10022 An invalid argument was supplied.
 
−
10024 Too many open sockets.
 
−
10035 A non-blocking socket operation could not be completed immediately.
 
−
10036 A blocking operation is currently executing.
 
−
10037 An operation was attempted on a non-blocking socket that already had an operation in progress.
 
−
10038 An operation was attempted on something that is not a socket.
 
−
10039 A required address was omitted from an operation on a socket.
 
−
10040 A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
 
−
10041 A protocol was specified in the socket function call that does not support the semantics of the socket type requested.
 
−
10042 An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call.
 
−
10043 The requested protocol has not been configured into the system, or no implementation for it exists.
 
−
10044 The support for the specified socket type does not exist in this address family.
 
−
10045 The attempted operation is not supported for the type of object referenced.
 
−
10046 The protocol family has not been configured into the system or no implementation for it exists.
 
−
10047 An address incompatible with the requested protocol was used.
 
−
10048 Only one usage of each socket address (protocol/network address/port) is normally permitted.
 
−
10049 The requested address is not valid in its context.
 
−
10050 A socket operation encountered a dead network.
 
−
10051 A socket operation was attempted to an unreachable network.
 
−
10052 The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.
 
−
10053 An established connection was aborted by the software in your host machine.
 
−
10054 An existing connection was forcibly closed by the remote host.
 
−
10055 An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
 
−
10056 A connect request was made on an already connected socket.
 
−
10057 A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
 
−
10058 A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call.
 
−
10059 Too many references to some kernel object.
 
−
10060 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
 
−
10061 No connection could be made because the target machine actively refused it.
 
−
10062 Cannot translate name.
 
−
10063 Name component or name was too long.
 
−
10064 A socket operation failed because the destination host was down.
 
−
10065 A socket operation was attempted to an unreachable host.
 
−
10066 Cannot remove a directory that is not empty.
 
−
10067 A Windows Sockets implementation may have a limit on the number of applications that may use it simultaneously.
 
−
10068 Ran out of quota.
 
−
10069 Ran out of disk quota.
 
−
10070 File handle reference is no longer available.
 
−
10071 Item is not available locally.
 
−
10091 WSAStartup cannot function at this time because the underlying system it uses to provide network services is currently unavailable.
 
−
10092 The Windows Sockets version requested is not supported.
 
−
10093 Either the application has not called WSAStartup, or WSAStartup failed.
 
−
10101 Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence.
 
−
10102 No more results can be returned by WSALookupServiceNext.
 
−
10103 A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled.
 
−
10104 The procedure call table is invalid.
 
−
10105 The requested service provider is invalid.
 
−
10106 The requested service provider could not be loaded or initialized.
 
−
10107 A system call that should never fail has failed.
 
−
10108 No such service is known. The service cannot be found in the specified name space.
 
−
10109 The specified class was not found.
 
−
10110 No more results can be returned by WSALookupServiceNext.
 
−
10111 A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled.
 
−
10112 A database query failed because it was actively refused.
 
−
11001 No such host is known.
 
−
11002 This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
 
−
11003 A non-recoverable error occurred during a database lookup.
 
−
11004 The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for.
 
−
11005 At least one reserve has arrived.
 
−
11006 At least one path has arrived.
 
−
11007 There are no senders.
 
−
11008 There are no receivers.
 
−
11009 Reserve has been confirmed.
 
−
11010 Error due to lack of resources.
 
−
11011 Rejected for administrative reasons - bad credentials.
 
−
11012 Unknown or conflicting style.
 
−
11013 Problem with some part of the filterspec or providerspecific buffer in general.
 
−
11014 Problem with some part of the flowspec.
 
−
11015 General QOS error.
 
−
11016 An invalid or unrecognized service type was found in the flowspec.
 
−
11017 An invalid or inconsistent flowspec was found in the QOS structure.
 
−
11018 Invalid QOS provider-specific buffer.
 
−
11019 An invalid QOS filter style was used.
 
−
11020 An invalid QOS filter type was used.
 
−
11021 An incorrect number of QOS FILTERSPECs were specified in the FLOWDESCRIPTOR.
 
−
11022 An object with an invalid ObjectLength field was specified in the QOS provider-specific buffer.
 
−
11023 An incorrect number of flow descriptors was specified in the QOS structure.
 
−
11024 An unrecognized object was found in the QOS provider-specific buffer.
 
−
11025 An invalid policy object was found in the QOS provider-specific buffer.
 
−
11026 An invalid QOS flow descriptor was found in the flow descriptor list.
 
−
11027 An invalid or inconsistent flowspec was found in the QOS provider-specific buffer.
 
−
11028 An invalid FILTERSPEC was found in the QOS provider-specific buffer.
 
−
11029 An invalid shape discard mode object was found in the QOS provider-specific buffer.
 
−
11030 An invalid shaping rate object was found in the QOS provider-specific buffer.
 
−
11031 A reserved policy element was found in the QOS provider-specific buffer.
 
−
13000 The specified quick mode policy already exists.
 
−
13001 The specified quick mode policy was not found.
 
−
13002 The specified quick mode policy is being used.
 
−
13003 The specified main mode policy already exists.
 
−
13004 The specified main mode policy was not found.
 
−
13005 The specified main mode policy is being used.
 
−
13006 The specified main mode filter already exists.
 
−
13007 The specified main mode filter was not found.
 
−
13008 The specified transport mode filter already exists.
 
−
13009 The specified transport mode filter does not exist.
 
−
13010 The specified main mode authentication list exists.
 
−
13011 The specified main mode authentication list was not found.
 
−
13012 The specified quick mode policy is being used.
 
−
13013 The specified main mode policy was not found.
 
−
13014 The specified quick mode policy was not found.
 
−
13015 The manifest file contains one or more syntax errors.
 
−
13016 The application attempted to activate a disabled activation context.
 
−
13017 The requested lookup key was not found in any active activation context.
 
−
13018 The Main Mode filter is pending deletion.
 
−
13019 The transport filter is pending deletion.
 
−
13020 The tunnel filter is pending deletion.
 
−
13021 The Main Mode policy is pending deletion.
 
−
13022 The Main Mode authentication bundle is pending deletion.
 
−
13023 The Quick Mode policy is pending deletion.
 
−
13801 IKE authentication credentials are unacceptable.
 
−
13802 IKE security attributes are unacceptable.
 
−
13803 IKE Negotiation in progress.
 
−
13804 General processing error.
 
−
13805 Negotiation timed out.
 
−
13806 IKE failed to find valid machine certificate.
 
−
13807 IKE SA deleted by peer before establishment completed.
 
−
13808 IKE SA deleted before establishment completed.
 
−
13809 Negotiation request sat in Queue too long.
 
−
13810 Negotiation request sat in Queue too long.
 
−
13811 Negotiation request sat in Queue too long.
 
−
13812 Negotiation request sat in Queue too long.
 
−
13813 No response from peer.
 
−
13814 Negotiation took too long.
 
−
13815 Negotiation took too long.
 
−
13816 Unknown error occurred.
 
−
13817 Certificate Revocation Check failed.
 
−
13818 Invalid certificate key usage.
 
−
13819 Invalid certificate type.
 
−
13820 No private key associated with machine certificate.
 
−
13822 Failure in Diffie-Helman computation.
 
−
13824 Invalid header.
 
−
13825 No policy configured.
 
−
13826 Failed to verify signature.
 
−
13827 Failed to authenticate using Kerberos.
 
−
13828 Peer\’s certificate did not have a public key.
 
−
13829 Error processing error payload.
 
−
13830 Error processing SA payload.
 
−
13831 Error processing Proposal payload.
 
−
13832 Error processing Transform payload.
 
−
13833 Error processing KE payload.
 
−
13834 Error processing ID payload.
 
−
13835 Error processing Cert payload.
 
−
13836 Error processing Certificate Request payload.
 
−
13837 Error processing Hash payload.
 
−
13838 Error processing Signature payload.
 
−
13839 Error processing Nonce payload.
 
−
13840 Error processing Notify payload.
 
−
13841 Error processing Delete Payload.
 
−
13842 Error processing VendorId payload.
 
−
13843 Invalid payload received.
 
−
13844 Soft SA loaded.
 
−
13845 Soft SA torn down.
 
−
13846 Invalid cookie received..
 
−
13847 Peer failed to send valid machine certificate.
 
−
13848 Certification Revocation check of peer\’s certificate failed.
 
−
13849 New policy invalidated SAs formed with old policy.
 
−
13850 There is no available Main Mode IKE policy.
 
−
13851 Failed to enabled TCB privilege.
 
−
13852 Failed to load SECURITY.DLL.
 
−
13853 Failed to obtain security function table dispatch address from SSPI.
 
−
13854 Failed to query Kerberos package to obtain max token size.
 
−
13855 Failed to obtain Kerberos server credentials for ISAKMP/ERROR_IPSEC_IKE service. Kerberos authentication will not function. The most likely reason for this is lack of domain membership. This is normal if your computer is a member of a workgroup.
 
−
13856 Failed to determine SSPI principal name for ISAKMP/ERROR_IPSEC_IKE service (QueryCredentialsAttributes).
 
−
13857 Failed to obtain new SPI for the inbound SA from Ipsec driver. The most common cause for this is that the driver does not have the correct filter. Check your policy to verify the filters.
 
−
13858 Given filter is invalid.
 
−
13859 Memory allocation failed.
 
−
13860 Failed to add Security Association to IPSec Driver. The most common cause for this is if the IKE negotiation took too long to complete. If the problem persists, reduce the load on the faulting machine.
 
−
13861 Invalid policy.
 
−
13862 Invalid DOI.
 
−
13863 Invalid situation.
 
−
13864 Diffie-Hellman failure.
 
−
13865 Invalid Diffie-Hellman group.
 
−
13866 Error encrypting payload.
 
−
13867 Error decrypting payload.
 
−
13868 Policy match error.
 
−
13869 Unsupported ID.
 
−
13870 Hash verification failed.
 
−
13871 Invalid hash algorithm.
 
−
13872 Invalid hash size.
 
−
13873 Invalid encryption algorithm.
 
−
13874 Invalid authentication algorithm.
 
−
13875 Invalid certificate signature.
 
−
13876 Load failed.
 
−
13877 Deleted via RPC call.
 
−
13878 Temporary state created to perform reinit. This is not a real failure.
 
−
13879 The lifetime value received in the Responder Lifetime Notify is below the Windows 2000 configured minimum value. Please fix the policy on the peer machine.
 
−
13881 Key length in certificate is too small for configured security requirements.
 
−
13882 Max number of established MM SAs to peer exceeded.
 
−
13883 IKE received a policy that disables negotiation.
 
−
13884 ERROR_IPSEC_IKE_NEG_STATUS_END
 
−
14000 The requested section was not present in the activation context.
 
−
14001 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
 
−
14002 The application binding data format is invalid.
 
−
14003 The referenced assembly is not installed on your system.
 
−
14004 The manifest file does not begin with the required tag and format information.
 
−
14005 The manifest file contains one or more syntax errors.
 
−
14006 The application attempted to activate a disabled activation context.
 
−
14007 The requested lookup key was not found in any active activation context.
 
−
14008 A component version required by the application conflicts with another component version already active.
 
−
14009 The type requested activation context section does not match the query API used.
 
−
14010 Lack of system resources has required isolated activation to be disabled for the current thread of execution.
 
−
14011 An attempt to set the process default activation context failed because the process default activation context was already set.
 
−
14012 The encoding group identifier specified is not recognized.
 
−
14013 The encoding requested is not recognized.
 
−
14014 The manifest contains a reference to an invalid URI.
 
−
14015 The application manifest contains a reference to a dependent assembly which is not installed.
 
−
14016 The manifest for an assembly used by the application has a reference to a dependent assembly which is not installed.
 
−
14017 The manifest contains an attribute for the assembly identity which is not valid.
 
−
14018 The manifest is missing the required default namespace specification on the assembly element.
 
−
14019 The manifest has a default namespace specified on the assembly element but its value is not "urn:schemas-microsoft-com:asm.v1".
 
−
14020 The private manifest probe has crossed the reparse-point-associated path.
 
−
14021 Two or more components referenced directly or indirectly by the application manifest have files by the same name.
 
−
14022 Two or more components referenced directly or indirectly by the application manifest have window classes with the same name.
 
−
14023 Two or more components referenced directly or indirectly by the application manifest have the same COM server CLSIDs.
 
−
14024 Two or more components referenced directly or indirectly by the application manifest have proxies for the same COM interface IIDs.
 
−
14025 Two or more components referenced directly or indirectly by the application manifest have the same COM type library TLBIDs.
 
−
14026 Two or more components referenced directly or indirectly by the application manifest have the same COM ProgIDs.
 
−
14027 Two or more components referenced directly or indirectly by the application manifest are different versions of the same component which is not permitted.
 
−
14028 A component\’s file does not match the verification information present in the component manifest.
 
−
14029 The policy manifest contains one or more syntax errors.
 
−
14030 Manifest Parse Error : A string literal was expected, but no opening quote character was found.
 
−
14031 Manifest Parse Error : Incorrect syntax was used in a comment.
 
−
14032 Manifest Parse Error : A name was started with an invalid character.
 
−
14033 Manifest Parse Error : A name contained an invalid character.
 
−
14034 Manifest Parse Error : A string literal contained an invalid character.
 
−
14035 Manifest Parse Error : Invalid syntax for an XML declaration.
 
−
14036 Manifest Parse Error : An invalid character was found in text content.
 
−
14037 Manifest Parse Error : Required white space was missing.
 
−
14038 Manifest Parse Error : The character \’>\’ was expected.
 
−
14039 Manifest Parse Error : A semi colon character was expected.
 
−
14040 Manifest Parse Error : Unbalanced parentheses.
 
−
14041 Manifest Parse Error : Internal error.
 
−
14042 Manifest Parse Error : White space is not allowed at this location.
 
−
14043 Manifest Parse Error : End of file reached in invalid state for current encoding.
 
−
14044 Manifest Parse Error : Missing parenthesis.
 
−
14045 Manifest Parse Error : A single or double closing quote character (\\’ or \") is missing.
 
−
14046 Manifest Parse Error : Multiple colons are not allowed in a name.
 
−
14047 Manifest Parse Error : Invalid character for decimal digit.
 
−
14048 Manifest Parse Error : Invalid character for hexadecimal digit.
 
−
14049 Manifest Parse Error : Invalid Unicode character value for this platform.
 
−
14050 Manifest Parse Error : Expecting white space or \’?\’.
 
−
14051 Manifest Parse Error : End tag was not expected at this location.
 
−
14052 Manifest Parse Error : The following tags were not closed: %1.
 
−
14053 Manifest Parse Error : Duplicate attribute.
 
−
14054 Manifest Parse Error : Only one top level element is allowed in an XML document.
 
−
14055 Manifest Parse Error : Invalid at the top level of the document.
 
−
14056 Manifest Parse Error : Invalid XML declaration.
 
−
14057 Manifest Parse Error : XML document must have a top level element.
 
−
14058 Manifest Parse Error : Unexpected end of file.
 
−
14059 Manifest Parse Error : Parameter entities cannot be used inside markup declarations in an internal subset.
 
−
14060 Manifest Parse Error : Element was not closed.
 
−
14061 Manifest Parse Error : End element was missing the character \’>\’.
 
−
14062 Manifest Parse Error : A string literal was not closed.
 
−
14063 Manifest Parse Error : A comment was not closed.
 
−
14064 Manifest Parse Error : A declaration was not closed.
 
−
14065 Manifest Parse Error : A CDATA section was not closed.
 
−
14066 Manifest Parse Error : The namespace prefix is not allowed to start with the reserved string "xml".
 
−
14067 Manifest Parse Error : System does not support the specified encoding.
 
−
14068 Manifest Parse Error : Switch from current encoding to specified encoding not supported.
 
−
14069 Manifest Parse Error : The name \’xml\’ is reserved and must be lower case.
 
−
14070 Manifest Parse Error : The standalone attribute must have the value \’yes\’ or \’no\’.
 
−
14071 Manifest Parse Error : The standalone attribute cannot be used in external entities.
 
−
14072 Manifest Parse Error : Invalid version number.
 
−
14073 Manifest Parse Error : Missing equals sign between attribute and attribute value.
 
−
14074 Assembly Protection Error: Unable to recover the specified assembly.
 
−
14075 Assembly Protection Error: The public key for an assembly was too short to be allowed.
 
−
14076 Assembly Protection Error: The catalog for an assembly is not valid, or does not match the assembly\’s manifest.
 
−
14077 An HRESULT could not be translated to a corresponding Win32 error code.
 
−
14078 Assembly Protection Error: The catalog for an assembly is missing.
 
−
14079 The supplied assembly identity is missing one or more attributes which must be present in this context.
 
−
14080 The supplied assembly identity has one or more attribute names that contain characters not permitted in XML names.
 

Version actuelle datée du 6 octobre 2021 à 13:13

Sommaire

Differences Linux, Solaris, AIX[modifier]

Tâches d'installation et d'upgrade[modifier]

Description AIX Linux Redhat Solaris

Installer un package

installp -a

rpm -i

pkgadd

Afficher les packages installés

lslpp -L

rpm -qa

pkginfo

Supprimer un package

installp -r ou installp -u

rpm -e

pkgrm

Mettre à jour un package

installp -a

rpm -U

N/A

Vérifier l'installation d'un package

lppchk

rpm -V

pkgchk

Installer un patch

instfix

rpm -F

patchadd

Supprimer un patch

installp -r

N/A

patchrm

Information sur le Boot, sur le noyau[modifier]

Description AIX Linux Redhat Solaris

Localisation des modules

/usr/lib/boot /

/usr/lib/drivers

/boot /lib/modules

/platform/sparc/kernel

/kernel /usr/kernel

Déterminer le runlevel courant

who -r

runlevel

who -r

Changer de runlevel

telinit "runlevel_id"

telinit "runlevel_id"

halt, init, poweroff, reboot, shutdown telinit, uadmin (en fonction de ce que l’on veut faire)

Localisation des scripts/liens de démarrage par runlevel

/etc/rc

/etc/rc.d/rc"runlevel".d

/sbin/rc"runlevel"

Afficher les infos de boot

bosboot

lilo

N/A

Rebooter la machine

shutdown -Fr

shutdown -r now

shutdown -i 6

Arréter la machine

shutdown

halt

poweroff ou halt

Commandes AIX

http://fr.scribd.com/doc/75770105/Aix-Commands

Gestion des utilisateurs[modifier]

Description AIX Linux Redhat Solaris

Gestion par Interface

smitty users

redhat-config-users

admintool

ajouter un utilisateur

mkuser

useradd

useradd

supprimer un utilisateur

rmuser

userdel

userdel

modifier un utilisateur

chuser

usermod

usermod

lister les utilisateurs

lsuser

awk -F ":" '\{print $1\}' /etc/passwd

listusers

Fichiers de passwd

/etc/password

/etc/security/passwd

/etc/passwd

/etc/shadow

/etc/passwd

/etc/shadow

Fichiers de groupes

/etc/group

/etc/security/group /etc/group

/etc/group

Définition des limites

/etc/security/limits

/etc/security/limits.conf

N/A

Definition de l'environnement du système

/etc/profile

/etc/environment /etc/profile

N/A

Configuration des informations d'authentification

/etc/security/user

/etc/login.defs

/etc/pam.conf

Umask Created Files Created Directories[modifier]

Umask Created Files Created Directories
000 666 (rw-rw-rw-) 777 (rwxrwxrwx)
002 664 (rw-rw-r--) 775 (rwxrwxr-x)
022 644 (rw-r--r--) 755 (rwxr-xr-x)
027 640 (rw-r-----) 750 (rwxr-x---)
077 600 (rw-------) 700 (rwx------)
277 400 (r--------) 500 (r-x------)

Configuration des périphériques[modifier]

Description AIX Linux Redhat Solaris

Gestion par interface

smitty device

N/A

admintool

Configurer un périphérique

cfgmgr

MAKEDEV

drvconfig, devlinks, disks, tapes, ports

Créer un périphérique

mkdev

mknod

drvconfig, devlinks, disks, tapes, ports

Supprimer un périphérique

rmdev

MAKEDEV

rem_drv

Modifier un périphérique

chdev

N/A

N/A

Lister les périphériques

lsdev

cat /proc/devices

sysdef

Gestion du réseau[modifier]

Description AIX Linux Redhat Solaris

Gestion par interface

smitty tcpip

redhat-config-network

N/A

Configurer TCP/IP

mktcpip

gérer les scripts dans /etc/sysconfig/network-scripts/

Editer les fichiers : /etc/hostname.\* /etc/inet.\* /etc/defaultrouter /etc/defaultdomain

Informations sur les interfaces

ifconfig

ifconfig

ifconfig

Configurer une interface

ifconfig

ifconfig

ifconfig

Modifier la résolution de noms

chnamsv

vi /etc/resolv.conf

vi /etc/nsswitch.conf

Supprimer la résolution de noms

rmnamsv

vi /etc/resolv.conf

vi /etc/nsswitch.conf

Afficher les infos de résolution de noms

lsnamsv

cat /etc/resolv.conf

cat /etc/nsswitch.conf

Configurer l’ordre des résolutions de noms

vi /etc/netsvc.conf

vi /etc/nsswitch.conf

vi /etc/nsswitch.conf

Afficher les MAC Adresse

netstat –ia

ifconfig

/sbin/ifconfig -a

Gestion du système de fichiers (FS)[modifier]

Description AIX Linux Redhat Solaris
Gestion par interface smitty fs N/A N/A
Monter un FS mount mount mount
Démonter un FS umount umount umount
Lister la table des partitions lchangelv fdisk prtvtoc
Ajouter un FS crfs mkfs newfs ou mkfs
Modification d'un FS chfs resize2ext tunefs
Supprimer un FS rmfs N/A N/A

Gestion du LVM (Logical Volume Management)[modifier]

Description AIX Linux Redhat Solaris
Structure de stockage un disque est composé de partitions physiques (physical partitions).
Un "physical volume" est un disque physique (idem. un disque)
Un "volume group" est composé de "physical volume"
Un "volume group" est divisé en "logical volumes"
Un "File system" est placé sur un "logical volume"
Un "Logical Volume" est extensible et peut résider sur un à plusieurs "physical volume" Un groupe de disque est composé de un à plusieurs disques physiques
Un "physical extent" est l'équivalent AIX des physical partitions
Un "logical extent" est l'équivalent AIX des partitions logiques (subdivision des logical volume).
Volume group et "logical volume" ont leur équivalent sur AIX et linux. Un disque est composé de partitions ou slices
Un "File System" est placé sur une partition
Une "sous unité de disque" (ou subdisk) est composé de partitions/slices (équivalent de la partition physique)
Un "Plex" est composé de "Subdisks" (équivalent de la "logical partition" AIX)
Un "Volume" (équivalent AIX du logical Volume) est composé de "plex"
Gestion par interface smitty lvm N/A vxva
Déplacer un logical volume migratepv N/A vxassist move
Créer un logical volume mklv lvcreate vxassist make
Agrandir un logical volume extendlv lvextend vxassist growto
Supprimer un logical volume rmlv lvremove vxedit rm
Créer un Volume Group(VG) mkvg vgcreate vxdg init
Supprimer un disque d'un VG reducevg vgreduce vxdg rmdisk
Ajouter des disques à un gestionnaire de volumes extendvg vgextend vxdiskadd
Administration des disques reducevg/extendvg vgreduce/vgextend vxdiskadm
Configurer les disques extendvg vgextend vxdisksetup
Modification d'un logical volume chlv vgchange vxedit set
Gestion des VG/plex chvg/mkvg vgcreate/vgchange vxplex
Affichage des VG lsvg vgdisplay vxprint
Modifier la taille d'un logical volume extendlv/chlv lvextend vxresize
Gestion des physical Volume/subdisk chpv pvchange vxsd
Statistiques des structures de stockage lspv/lsvg/lslv lsvadm et lvmsar vxstat
Gestion des volumes chlv/mklv/rmlv lvchange/lvcreate/lvremove vxvol

Rezise[modifier]

Dans un premier temps, il faut éditer la configuration de la VM et augmenter la taille du disque dure. Vous pouvez également ajouter un disque.

Ensuite voici les commandes à taper sur la VM Centos :

Rescanner la partition :
Pour scanner un disque existant à chaud :
echo 1 > /sys/class/scsi_device/device/rescan
Si vous avez ajouter un nouveau disque :
echo "- – -" > /sys/class/scsi_host/host0/scan
On peut checker les changements avec la commande dmesg :
exemple :
sda: detected capacity change from 32212254720 to 53687091200
Cette commande vous permettra également d’identifier le disque modifié. (Ici : /dev/sda)

Lister les partition
fdisk –l
Créer une nouvelle partition
fdisk /dev/sda
taper n pour nouvelle partition
puis p pour partition primaire
choisir le numéro de la nouvel partition : exemple : 3 pour créer sda3
puis appuyez sur “Entrée” deux fois
Mettre la partition en Linux LVM :
taper “t”
puis “3” pour la partition 3
puis “8e”
puis faites “p” pour vérifier que la partition est bien créé puis “w” pour sauvegarder.

Appliquer les modifications sur les partitions physiques à chaud.
partprobe
Maintenant, la procédure peut suivre sont court :
Convertir la nouvelle partition en volume group:
pvcreate /dev/sda3
Etendre le volume logique :
vgextend VolGroup00 /dev/sda3
Voir la nouvelle taille du volume group :
vgdisplay VolGroup00 | grep "Free"
Etendre le volume logique (On étend le LVM de 10G dans cet exemple :
lvextend -l+100%FREE -r /dev/VolGroup00/LogVol00
Vérification
df -h /

Cette procédure fonctionne très bien pour étendre les volumes group mais je n’ai pas encore réussi à étendre un volume physique à chaud…

Ajout de volume disque.[modifier]

AIX[modifier]

- Ajouter un disque

- echo "- - -" > /sys/class/scsi_host/host0/scan ( Rescan des contrôleurs SCSI ).

- pvcreate /dev/sdX (Creation du PV avec X = Nouveau Volume)

- vgs (affiche les VG)

- vgextend « nom du VG a étendre » /dev/sdX (Etendre le VG)

- lvs (Liste les LV)

- lvextend -L « Taille ex. :30g » « /dev/chemin du LV »

Centos[modifier]

+ Disk VM
echo 1>/sys/block/sdb/device/rescan
dmesg 
pvresize /dev/sdb
vgs (vg agrandi)
lvresize -l +100%FREE /dev/mapper/VG_FRCCEISSUP06-LV_VAR 
resize2fs /dev/mapper/VG_FRCCEISSUP06-LV_VAR

Divers[modifier]

Description AIX Linux Redhat Solaris
Change le nom d'hôte chdev -l inet0 -a hostname=xxxx hostname Modification dans les fichiers : /etc/nodename /etc/hosts /etc/hostname.\* /etc/net/\*/hosts
Liste des services lssrc -a /etc/services /etc/services
Liste des protocoles /etc/protocols /etc/protocols /etc/protocols
Status du réseau netstat netstat netstat
Statistiques NFS/RPC nfsstat nfsstat nfsstat
Affichage du status de la mémoire virtuelle svmon cat /proc/meminfo N/A
Statistiques de la mémoire virtuelle vmstat vmstat vmstat
Affichage de la mémoire physique bootinfo -r prtconf cat /proc/meminfo prtconf
Statistiques d'entrées/sorties iostat iostat ìostat
Rapport d'activité du système sar sar sar
Etat des verrous du système lockstat /var/lock N/A
Rapport d'état CPU topas/tprof top prstat
Affichage des erreurs système errpt -a dmesg dmesg
Affichage des informations de swap lsps -a swapon -s swap -l
Configuration de l'enregistreur d'evenements système /etc/syslog.conf /etc/syslog.conf /etc/syslog.conf
Backup du système mksysb (bande ou disque) ou mkcd (disque optique) N/A nwadmin
Restauration du système mksysb (bande ou disque) ou mkcd (disque optique) N/A nwadmin, nwrecover
Localisation des scripts de démarrage /etc /etc/init.d /etc/init.d
Répertoire des périphériques système /dev /dev /devices
Afficherconfig Mat lscfg -vp N/A N/A
Lien Symbolique Ln –s source destination N/A N/A

Qu'est-ce que le menu SMS?[modifier]

Le menu SMS peut être appelé pendant la phase de boot via la commande F1. Ce menu vous permet d'effectuer des opérations en dehors de l'OS. Il est spécifique aux environnements Power d'IBM. Dans ce menu, vous pouvez modifier la séquence de démarrage (disque, réseau, cdrom..). De plus vous pouvez effectuer une pré configuration réseau, afin de démarrer sur le réseau et joindre un serveur NIM, qui lancera une installation automatique.


Comment savoir la ML du système?[modifier]

Deux commandes sont à votre disposition : instfix -i \| grep -i ML ou oslevel -r



Ou se trouve le fichier des variables d'environnement?[modifier]

dans le fichier /etc/environnement, vous avez l'ensemble des variables d'environnement commun à tous les utilisateurs.



Comment faire une vérification des médias d'installations?[modifier]

Vérifiez en lisant les fichiers suivant sur les cds que ces premiers soient bien lisibles. installp/ppc/.toc installp/ppc/mvcd/.toc



Comment vérifier une incohérence dans l'installation des filesets?[modifier]

La commande lppchk -v vous retourne les erreurs



Faire un diagnostique du matériel[modifier]

Pour faire un diagnostique du matériel et détecter un problème, la commande "diag" est disponible. Il vous suffit alors de vous laisser guider pour effectuer soit un diagnostic complet mais long, soit un diagnostic sur un périphérique précis.





Pour que le prochain boot se fasse sur hdiskx (x n° du disk)[modifier]

bootlist –m normal hdiskx


Comment booter sur un cdrom?[modifier]

Pour gérer votre boot, inutile de repasser chaque fois dans le SMS. La commande suivante vous permet de modifier l'ordre de démarrage normal de votre serveur. bootlist -m normal cd0 hdiskX où hdiskX est un disque système. Il vous suffit de relancer le serveur : shutdown -Fr



Comment booter sur une bande?[modifier]

Tout comme la gestion du boot par cdrom, il faut taper : bootlist -m normal rmt0 hdiskX où hdiskX est un disque système. Il vous suffit de relancer le serveur : shutdown -Fr


Voir la liste des bootdevice bootlist -m normal -o Voir les disques qui ont rootvg lsvg -p rootvg Voir les disques qui sont bootable lslv -m hd5

Le mode maintenance:[modifier]

Si bootlist -m service -o est OK :[modifier]

1. shutdown 2. activate "bootlist … stored" ou "6″ au demarrage (5 pour la bootliste par default) au moment des IBM IBM… blah blah

Si bootlist -m service -o est KO :[modifier]

1. shutdown 2. activate advanced -> SMS ou "1″ au demarrage lsof

Gestion de la date et l'heure sous Linux[modifier]

CentOS[modifier]

Sur le hote, vérifier

/etc/sysconfig/clock
ZONE="Europe/Paris" 
UTC=false
ARC=false

Si la zone n'est pas bonne, lancer setup et changer le fuseau horaire, ou modifier le fichier directement. Ensuite, vérifier l'heure du bios

hwclockSynchro 
bios -> système
hwclock --hctosys
Synchro système -> bios
hwclock --systohc
Mise à l'heure du système
date MMJJhhmmCCCC

Restoration GRUB:[modifier]

1. Boot from CentOS installation disc (for example, CD \#1 or DVD).

2. For CentOS-4 or CentOS-5 type "linux rescue" at the "boot:" prompt. For CentOS-6 pick "Rescue installed system" from the boot menu.

3. Mount all filesystems in read-write mode.

4. Change root to real root ('/') on your hard disk:

5. \# chroot /mnt/sysimage

6. Re-install bootstrap code (GRUB).

  • If you wish to re-install GRUB to the MBR on a SCSI or SATA disk (/dev/sda):
  • \# grub-install /dev/sda
  • If you wish to re-install GRUB to the PBR of Partition \#2 on a SCSI or SATA disk (/dev/sda2):
  • \# grub-install /dev/sda2
  • If you wish to re-install GRUB to the MBR on an IDE disk (/dev/hda):
  • \# grub-install /dev/hda
  • If you wish to re-install GRUB to the MBR on a HP Smart Array disk (/dev/c0d0):
  • \# grub-install /dev/cciss/c0d0

Utilisation chkconfig :[modifier]

1. chkconfig est un utilitaire qui permet de gérer les services réseaux linux en ligne de commande sur Redhat ou Centos. Il se révèle pratique dans le sens ou il permet par exemple de gérer des services dans un script ou d'ajouter un service dans certain runlevel par exmple. Pour cela il faut que le script du service soit correctement remplit (voir un déjà existant), car les informations sur celui-ci ( runlevel par défaut pour lequel le script doit être activé, description ) sont directement intégrées au début de celui-ci.

2. Obtenir des informations sur les services :

3. chkconfig --list

4. Fournit la liste de tous les services reconnus et précise pour chaque runlevel si ceux-ci sont lancés au démarrage.

5. chkconfig --list nom-service

6. Fournit la configuration actuelle du service nommé nom-service pour tous les runlevels.

7. Activer/Désactiver un service :

8. chkconfig --level 35 nom-service on

9. Spécifie que service doit être lancé au démarrage pour les runlevel 3 et 5.

10. chkconfig --level 35 nom-service off

11. spécifie que nom-service ne doit pas être lancé au démarrage pour les runlevels 3 et 5.

12. chkconfig --add nom-service

13. Ajouter nom-service comme étant un service pouvant être géré par chkconfig ( comme je le disais plus haut script doit être correctement remplit ).

14. chkconfig --del nom-service

15. Suppression de nom-service.

16. chkconfig nom-service reset

17. Remet la configuration à celle par défaut définie dans le script.

Expressions régulières et sed[modifier]

Les expressions régulières[modifier]

Présentation[modifier]

Une expression régulière (en anglais Regular Expression ou RE) sert à identifier une chaîne de caractère répondant à un certain critère (par exemple chaîne contenant des lettres minuscules uniquement). L'avantage d'une expression régulière est qu'avec une seule commande on peut réaliser un grand nombre de tâche qui seraient fastidieuses à faire avec des commandes UNIX classiques. Les commandes ed, vi, ex, sed, awk, expr et grep utilisent les expressions régulières. L'exemple le plus simple d'une expression régulière est une chaîne de caractères quelconque toto par exemple. Cette simple expression régulière va identifier la prochaine ligne du fichier à traiter contenant une chaîne de caractère correspondant à l'expression régulière. Si l'on veut chercher une chaîne de caractère au sein de laquelle se trouve un caractère spécial (/, \*, $, ., \[, \], \{, \}, !, entre autres) (appelé aussi métacaractère), on peut faire en sorte que ce caractère ne soit pas interprété comme un caractère spécial mais comme un simple caractère. Pour cela vous devez le faire précéder par \ (backslash). Ainsi si votre chaîne est /dev, pour que le / ne soit pas interprété comme un caractère spécial, vous devez tapez \ /dev pour l'expression régulière.

Le métacaractère .[modifier]

Le métacaractère . remplace dans une expression régulière un caractère unique, à l'exception du caractère retour chariot (\ n). Par exemple chaine. va identifier toutes les lignes contenant la chaine chaine suivit d'un caractère quelconque unique. Si vous voulez identifier les lignes contenant la chaîne .cshrc, l'expression régulière correspondante est \ .cshrc

Les métacaractères \[ \][modifier]

Les métacaractères \[\] permettent de désigner des caractères compris dans un certain intervalle de valeur à une position déterminée d'une chaîne de caractères. Par exemple \[Ff\]raise va identifier les chaînes Fraise ou fraise, \[a-z\]toto va identifier une chaîne de caractère commençant par une lettre minuscule (intervalle de valeur de a à z) et suvi de la chaîne toto (atoto, btoto, ...., ztoto). D'une manière plus générale voici comment \[\] peuvent être utilisés. \[A-D\] intervalle de A à D (A, B, C, D) par exemple bof\[A-D\] donne bofA, bofB, bofC, bofD \[2-5\] intervalle de 2 à 5 (2, 3, 4, 5) par exemple 12\[2-5\]2 donne 1222, 1232, 1242, 1252 \[2-56\] intervalle de 2 à 5 et 6 (et non pas 56) (2, 3, 4, 5, 6) par exemple 12\[2-56\]2 donne 1222, 1232, 1242, 1252, 1262 \[a-dA-D\] intervalle de a à d et A à D (a, b, c, d, A, B, C, D) par exemple z\[a-dA-D\]y donne zay, zby, zcy, zdy, zAy, zBy, zCy, zDy \[1-3-\] intervalle de 1 à 3 et - (1, 2, 3, -) par exemple \[1-3-\]3 donne 13, 23, 33, -3 \[a-cI-K1-3\] intervalle de a à c, I à K et 1 à 3 (a, b, c, I, J, K, 1, 2, 3) On peut utiliser \[\] avec un pour identifier le complèment de l'expression régulière. En français pour identifier l'opposé de l'expression régulière. Vous avez toujours pas compris ? Voici un exemple: \[\^0-9\]toto identifie les lignes contenant une chaîne toto, le caractère juste avant ne doit pas être un chiffre (exemple atoto, gtoto mais pas 1toto, 5toto). Autre exemple \[\^a-zA-Z\] n'importe quel caractère sauf une lettre minuscule ou majuscule. Attention à la place de \^, si vous tapez \[1-3\^\], c'est équivalent aux caractères 1, 2, 3 et \^.

Les métacaractères \^ et $[modifier]

Le métacaractère \^ identifie un début de ligne. Par exemple l'expression régulière \^a va identifier les lignes commençant par le caractère a. Le métacaractère $ identifie une fin de ligne. Par exemple l'expression régulière a$ va identifier les lignes se terminant par le caractère a. L'expression régulière \^chaine$ identifie les lignes qui contiennent strictement la chaîne chaine. L'expression régulière \^$ identifie une ligne vide.

Le métacaractère \*[modifier]

Le métacaractère \* est le caractère de répétition. L'expression régulière a\* correspond aux lignes comportant 0 ou plusieurs caractère a. Son utilisation est à proscrire, car toutes les lignes, même celles ne contenant pas le caractère a, répondent aux critères de recherche. x\* est une source de problèmes, il vaut mieux éviter de l'employer. L'expression régulière aa\* correspond aux lignes comportant 1 ou plusieurs caractères a. L'expression régulière .\* correspond à n'importe quelle chaîne de caractères. L'expression régulière \[a-z\]\[a-z\]\* va chercher les chaînes de caractères contenant 1 ou plusieurs lettres minuscules (de a à z). L'expression régulière \[\^ \]\[\^ \]\* est équivalent à tout sauf un blanc.

Les métacaractères \ ( \)[modifier]

Pour le traitement complexe de fichier, il est utile parfois d'identifier un certain type de chaîne pour pouvoir s'en servir dans la suite du traitement comme un sous programme. C'est le principe des sous chaînes, pour mémoriser une sous chaîne, on utilise la syntaxe \ (expression régulière)\, cette sous chaîne sera identifié par un chiffre compris par 1 et 9 (suivant l'ordre de définition). Par exemple \ (\[a-z\]\[a-z\]\*)\ est une sous chaîne identifiant les lignes contenant une ou plusieurs lettres minuscules, pour faire appel à cette sous chaîne, on pourra utiliser \ 1. Voir dans le paragraphe sed pour un exemple.

La commande sed[modifier]

Présentation[modifier]

sed est éditeur ligne non interactif, il lit les lignes d'un fichier une à une (ou provenant de l'entrée standard) leur applique un certain nombre de commandes d'édition et renvoie les lignes résultantes sur la sortie standard. Il ne modifie pas le fichier traité, il écrit tout sur la sortie standard. sed est une évolution de l'éditeur ed lui même précurseur de vi, la syntaxe n'est franchement pas très conviviale, mais il permet de réaliser des commandes complexes sur des gros fichiers. La syntaxe de sed est la suivante: sed -e 'programme sed' fichier-a-traiter ou sed -f fichier-programme fichier-a-traiter Vous disposez de l'option -n qui supprime la sortie standard par défaut, sed va écrire uniquement les lignes concernées par le traitement (sinon il écrit tout même les lignes non traitées). L'option -e n'est pas nécessaire quand vous avez une seule fonction d'édition. La commande sed est une commande très riche, ne vous sont présentées ici que les fonctions les plus courantes, pour plus de détails faites un man sed et/ou man ed.

La fonction de substitution s[modifier]

La fonction de substitution s permet de changer la première ou toutes les occurences d'une chaîne par une autre. La syntaxe est la suivante: sed "s/toto/TOTO/" fichier va changer la première occurence de la chaîne toto par TOTO (la première chaîne toto rencontrée dans le texte uniquement) sed "s/toto/TOTO/3" fichier va changer la troisième occurence de la chaîne toto par TOTO (la troisième chaîne toto rencontrée dans le texte uniquement) sed "s/toto/TOTO/g" fichier va changer toutes les occurences de la chaîne toto par TOTO (toutes les chaînes toto rencontrées sont changées sed "s/toto/TOTO/p" fichier en cas de remplacement la ligne concernée est affichée sur la sortie standard (uniquement en cas de substitution) sed "s/toto/TOTO/w resultat" fichier en cas de substitution la ligne en entrée est inscrite dans un fichier résultat La fonction de substitution peut évidemment être utilisée avec une expression régulière. sed -e "s/\[Ff\]raise/FRAISE/g" fichier substitue toutes les chaînes Fraise ou fraise par FRAISE

La fonction de suppression d[modifier]

La fonction de suppression d supprime les lignes comprises dans un intervalle donné. La syntaxe est la suivante: sed "20,30d" fichier Cette commande va supprimer les lignes 20 à 30 du fichier fichier. On peut utiliser les expressions régulières: sed "/toto/d" fichier Cette commande supprime les lignes contenant la chaîne toto. Si au contraire on ne veut pas effacer les lignes contenant la chaîne toto (toutes les autres sont supprimées), on tapera: sed "/toto/!d" fichier En fait les lignes du fichier d'entrée ne sont pas supprimées, elles le sont au niveau de la sortie standard.

Les fonctions p, l, et =[modifier]

La commande p (print) affiche la ligne sélectionnée sur la sortie standard. Elle invalide l'option -n. La commande l (list) affiche la ligne sélectionnée sur la sortie standard avec en plus les caractères de contrôles en clair avec leur code ASCII (deux chiffres en octal). La commande = donne le numéro de la ligne sélectionnée sur la sortie standard. Ces trois commandes sont utiles pour le débogage, quand vous mettez au point vos programmes sed. sed "/toto/=" fichier Cette commande va afficher le numéro de la ligne contenant la chaîne toto.

Les fonctions q, r et w[modifier]

La fonction q (quit) va interrompre l'exécution de sed, la ligne en cours de traitement est affichée sur la sortie standard (uniquement si -n n'a pas été utilisée). La fonction r (read) lit le contenu d'un fichier et écrit le contenu sur la sortie standard. La fonction w (write) écrit la ligne sélectionnée dans un fichier. sed "/\^toto/w resultat" fichier Cette commande va écrire dans le fichier resultat toutes les lignes du fichier fichier commençant par la chaîne toto.

Les fonctions a et i[modifier]

La fonction a (append) va placer un texte après la ligne sélectionnée. La syntaxe est la suivante: a\ le texte La fonction i (insert) va placer un texte avant la ligne sélectionnée. La syntaxe est la suivante: i\ le texte Si votre texte tient sur plusieurs lignes la syntaxe pour le texte est la suivante: ligne 1 du texte\ ligne 2 du texte \ ligne n du texte \ dernière ligne Concrètement vous pouvez appeler la fonction i ou a dans un fichier de commande de sed. Par exemple, soit votre fichier prog.sed suivant: 1i\ début du traitement s/\[tT\]oto/TOTO/g $a \ fin du traitement\ de notre fichier On exécute la commande en tapant: sed -f prog.sed fichier-a-traiter prog.sed a pour effet d'inscrire avant la première ligne (1i) le texte "début de traitement", et après la dernière ligne ($a) le texte "fin du traitement (retour à la ligne) de notre fichier".

sed et les sous chaînes[modifier]

La commande: sed -e "s/\ (\[0-9\]\[0-9\]\*\ )/aa\ 1aa/" fichier La sous expression (sous chaîne) \ (\[0-9\]\[0-9\]\*\) désigne un ou plusieurs chiffres, chacun sera entouré des caractères aa. La chaîne to2to deviendra toaa2aato.

Du[modifier]

du -h . --max-depth=1

Solution Yilmas

find /var -xdev -ls| sort -n -k 7

Trouver les fichier du -i

find /var -printf '%h\n' | sort | uniq -c | sort -k 1 -n

Kill[modifier]

ps -ef | grep  'Chaine Cherchée' | grep -v grep | awk '{print $2}' |  xargs -I {} -t kill -9 {}

tail (Unix)[modifier]

tail est une commande UNIX qui permet d'afficher les dernières lignes de texte d'un fichier ou de l'entrée standard.

Syntaxe[modifier]

La syntaxe est la suivante :

tail [options] <fichier>

Par défaut, tail affiche les 10 dernières lignes de son entrée sur la sortie standard. Le nombre de lignes affichées et l'unité utilisée (lignes, blocs, octets) peuvent être changés avec une option fournie sur la ligne de commande. L'exemple suivant affiche les 20 dernières lignes de fichier :

tail -n 20 fichier

Cet exemple affiche les 15 derniers octets de tous les fichiers commençant par foo :

tail -c 15 foo*

Cet exemple affiche toutes les lignes de fichier à partir de la seconde ligne :

tail -n +2 filename

En utilisant une ancienne syntaxe (encore utilisée sur Sun Solaris car l'option -n n'y est pas gérée), les 20 dernières lignes et les 50 derniers octets de fichier peuvent être affichés avec la commande suivante :

tail -20 fichier tail -50c fichier

Suivi de fichier en temps réel

tail a une option spéciale -f qui permet à un fichier d'être surveillé. Au lieu d'afficher les dernières lignes et de quitter, tail affiche les dernières lignes et surveille le fichier. Quand des nouvelles lignes sont ajoutées au fichier par un autre processus, tail met à jour l'affichage. C'est particulièrement utile pour surveiller des fichiers journaux. La commande suivante va afficher les 10 dernières lignes de messages ainsi que les nouvelles lignes ajoutées ensuite à messages :

tail -f /var/adm/messages

Pour interrompre tail lors d'un monitoring, il suffit d'interrompre le processus en appuyant sur Ctrl+C. Cette commande peut être exécutée en arrière plan avec &. Pour surveiller le résultat d'une commande (et non un fichier), il existe la commande watch qui exécute régulièrement la commande fournie en argument et affiche le résultat.


NTPD[modifier]

ntpdate -b <server host name>

Rescan des contrôleurs SCSI[modifier]

echo "- - -" > /sys/class/scsi_host/host0/scan

SNMP – Nagios[modifier]

Listage de MIB :[modifier]

snmpwalk -On -c publivac -v 2c « IP du serveur »

Restart process SNMPD[modifier]

/etc/init.d/snmpd restart

Fichier de planning nagios/EZV[modifier]

/etc/nagios/auto-conf/planning_PV.csv

Fichier de conf des vues[modifier]

/usr/local/nagios/share/side/dtree_data.js

Fichier de conf HostGroup[modifier]

/etc/nagios/hostgroups.cfg

Fichier de Menu groupe Nagios[modifier]

/usr/local/nagios/share/side/dtree_data.js

NRPE sur AIX[modifier]

1.Extract the pacage in /usr/local

2. create user nagios and group nagios

3. chown -R nagios.nagios /usr/local/nagios

4. If not exists create /var/run and make sure user nagios can write inside

5. edit /usr/local/nagios/nrpe.cfg according your needs. Usually you should change the IP addresses there and probably edit or add additional check commands

6. add in /etc/inittab the following row nrpe:2:once:/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d

7. make sure that there is no firewall which will stop the nagios server to communicate with the aix machine on port 5666

8. execute this command (can be root...nrpe will switch to user nagios) /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d

9. check if you have the process running ps -fe|grep nrpe

10. Login on the nagios server and test it with this command /usr/local/nagios/libexec/check_nrpe -n -H aix_ip_address -c check_aix_users


 PMS
  /usr/bin/nrpe -c /etc/nrpe.cfg -d

Relance SNMP AIX[modifier]

stopsrc -s snmpd


startsrc -s snmpd

Fichier conf AIX SNMP[modifier]

/etc/snmpdv3.conf

  VACM_GROUP group1 SNMPv1  public  -
  VACM_GROUP group1 SNMPv1  publivac  -
  
  VACM_VIEW defaultView        internet                   - included -
  
  # exclude snmpv3 related MIBs from the default view
  VACM_VIEW defaultView        snmpModules                - excluded -
  VACM_VIEW defaultView        1.3.6.1.6.3.1.1.4          - included -
  VACM_VIEW defaultView        1.3.6.1.6.3.1.1.5          - included -
  
  # exclude aixmibd managed MIBs from the default view
  VACM_VIEW defaultView        1.3.6.1.4.1.2.6.191        - excluded -
  
  VACM_ACCESS  group1 - - noAuthNoPriv SNMPv1  defaultView - defaultView -
  
  NOTIFY notify1 traptag trap -
  
  TARGET_ADDRESS Target1 UDP 127.0.0.1       traptag trapparms1 - - -
  
  TARGET_PARAMETERS trapparms1 SNMPv1  SNMPv1  public  noAuthNoPriv -
  
  COMMUNITY public    public     noAuthNoPriv 0.0.0.0     0.0.0.0         -
  COMMUNITY publivac    publivac     noAuthNoPriv 0.0.0.0     0.0.0.0         -
  
  DEFAULT_SECURITY no-access - -
  
  logging         file=/usr/tmp/snmpdv3.log       enabled
  logging         size=100000                     level=0
  
  smux            1.3.6.1.4.1.2.3.1.2.1.2         gated_password  # gated
  
  smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd

Relance SNMP Solaris[modifier]

\# Start SNMP /etc/init.d/init.snmpdx stop

\# Stop SNMP /etc/init.d/init.snmpdx start

\# Restart SNMP /etc/init.d/init.snmpdx restart OU /etc/sma/snmp/SNMPD.conf \# Start SNMP /etc/init.d/init.sma start \# Stop SNMP /etc/init.d/init.sma stop


Automator[modifier]

OPSADM[modifier]

Suppression instance:

./opsadm delinst -name "Instance" -onlyms 1 -pserver "Pserver" -port "PortNBR"

OPSCMD[modifier]

Modifier le statut d’un objet : opscmd dspsts[modifier]

Description Défaut (options non obligatoires)

Option Description Défaut (options non obligatoires)
obj Nom de l'objet
action Action sur l‟objet :
"restart" : redémarrer
"hold" : retenir en pause
"release" : relâcher
"request" : demander
"cancel' Kill
"f_tobedone" futur
"f_running" : démarré
"f_finished" : terminé
"f_failed" : en erreur
"f_desched" : déplanifié
"f_notsched" : Non planifié
"f_tobedoneheld": À venir retenu
"f_etqcur" : Passer étiquette
"f_tobedoneheld": À venir retenu
"f_etqcur" : Passer étiquette
inst Nom de l'instance
number Numéro de l'instance (jobs duplicateurs AS/400) 1
date date de l'instance date du jour
etqsrt Etiquette de début (juste pour les actions f_tobedone et f_running)
etqend Etiquette de fin (juste pour les actions f_tobedone et f_running)
etqcur Etiquette courante (seulement pour l'action f_etqcur)
pserver Serveur de production serveur où est lancé l'opscmd
mserver Serveur de modélisation serveur où est lancé l'opscmd
port Port du serveur (modélisation ou production) 10500 (opt mserver) 10510 (opt pserver)

Remarque : selon le type ou le statut de l'objet au moment où vous lancez la commande, toutes les actions ne sont toutes utilisables (ex : il est impossible de faire une requête (action "request") sur l'objet horloge seuls les jobs et les applications peuvent être l'objet d?une requête). Exemple : (Relancer un job)

...\Automator\MServer\bin\>opscmd object -obj JOB_0_C1 -action restart -inst inst_n_1 Action on object JOB_0_C1 registered

Si vous obtenez le message "action on object registered", l’action a bien été prise en compte mais n’est pas forcément exécutée (voir la note ci-dessus). Remarque : s'il y a plusieurs objets qui ont le même nom mais des niveaux graphiques différents, il convient de préciser dans l'option obj, l'application qui contient l'objet :

-obj APPLICATION/OBJET

OPUS[modifier]

Voici où se trouve les différentes logs des composants OPUS quel que soit l’environnement.

Pour tous les composants, le répertoire initial où sont les logs est /var/log

On trouve ensuite des sous-répertoires par type de composant selon les serveurs :

/var/log/jboss50/<env>_<xxx> : contient toutes les logs des instances jboss du composant xxx pour l’environnement env qui se trouve sur le serveur

Exemple : /var/log/jboss50/p1opus_bws pour les logs de l’instance bws de P1

/var/log/esb/<env>_<xxx> : contient toutes les logs des instances mule xxx pour l’environnement env du serveur

Exemple : /var/log/esb/p1opus_int contient les logs de l’instance esb internal de P1

/var/log/accovia/<env>_<xxx> : contient toutes les logs des composants batch, event et lockmanager fournies par Accovia

Exemples : p1opus_lockmgr pour le lock manager de P1

p1opus_batch pour la composante batch de P1

p1opus_event pour la composante event de P1

/var/log/sips/traces : contient toutes les logs du comosant SIPS

/var/log/activemq : contient toutes les logs des active MQ présent sur le serveur

                   Le fichier wrapper1.log et activemq1.log se referent à l’activemq1
                   Le fichier wrapper2.log et activemq2.log se referent à l’activemq2
                 Ceci est valable pour les 2 serveurs où sont hebergés 2 activemq

/var/log/talend/<env>_t<yyy> : contient toutes les logs du composant talend yyy

Exemples : p1opus_tap pour le talend ap de P1

Recouvrement[modifier]

Deloocker des sessions SQL sur la base Recouvrement_PPD/PRD :[modifier]

Noter les « verrous » dans Entreprise Manager/Gestion/Activité en cours. Dans un analyseur de requêteSQL faire : exec sp_who2; Vérifier le n° de Spid correspondant. Puis faire : kill « N°SPID »

SSH: copier un fichier avec la commande scp[modifier]

1. Définition[modifier]

La commande scp permet de copier un fichier ou un répertoire (-r) du client vers le serveur ou du serveur vers le client. Le chemin du serveur peut être indiqué en absolu (/home/dupont/Repertoire par exemple) ou relatif à partir du répertoire de base Repertoire. Pour utiliser scp, vous devez connaître l'arborescence exacte des répertoires de la machine distante. Il est impératif que SSH soit installé sur les deux machines devant communiquer pour effectuer votre transfert. Attention: il sera nécessaire de donner votre mot de passe car au Centre de Calcul, il n'est pas possible de faire une authentification par échange de clés SSH (voir [se connecter au Centre de Calcul avec SSH-http://cc.in2p3.fr/docenligne/228]).

2. Usage[modifier]

scp \[-pqrvBC1246\] \[-F ssh_config\] \[-S program\] \[-P port\] \[-c cipher\]

   \[-i identity_file\] \[-l limit\] \[-o ssh_option\] \[\[user@\]host1:\]file1
   \[...\] \[\[user@\]host2:\]file2

3. Syntaxe[modifier]

• Copie d'un fichier d'une machine serveur1 vers une autre machine serveur2:

> scp Login1@Serveur1:Chemin1/NomFichier1 Login2@Serveur2:Chemin2/NomFichier2


• Copie d'un fichier depuis le répertoire courant vers un répertoire du serveur:

> scp Fichier login@serveur:Chemin


• Copie d'un répertoire, avec éventuellement ses sous-répertoires, vers un répertoire du serveur:

> scp -r Repertoire login@serveur:Chemin


• Copie d'un fichier du serveur vers le répertoire courant:

> scp login@serveur:Chemin/Fichier .


• Copie d'un répertoire du serveur vers le répertoire courant:

> scp -r login@serveur:Chemin/Repertoire .

4. Exemple[modifier]

> scp calvat@ccali.in2p3.fr:/afs/in2p3.fr/home/c/calvat/Readme.txt . copie le fichier Readme.txt de /afs/in2p3.fr/home/c/calvat sur ccali.in2p3.fr vers le répertoire local courant. > scp -r calvat@ccali.in2p3.fr:/afs/in2p3.fr/home/c/calvat/toto . copie le répertoire toto et les sous-répertoires attachés de /afs/in2p3.fr/home/c/calvat sur ccali.in2p3.fr vers le répertoire local courant.

DELL[modifier]

DSET[modifier]

Voici la procédure pour générer un rapport DSET :

Lien vers l'utilitaire :[modifier]

Version 32 bits : http://ftp.dell.com/FOLDER00481746M/1/dell-dset-3.2.0.141_x86_A01.bin

Version 64 bits : http://ftp.dell.com/FOLDER00481758M/1/dell-dset-3.2.0.141_x64_A01.bin

Lien vers l'utilitaire si la version 3.2 ne passe pas:

Version 32 bits : ftp://ftp.us.dell.com/diags/delldset_v2.2.125_x86_A01.bin (41,3 Mo)

Version 64 bits : ftp://ftp.us.dell.com/diags/delldset_v2.2.125_x64_A01.bin (36,3 Mo)

Procédure à suivre :[modifier]

i. Télécharger l'utilitaire

ii. Ouvrir le terminal et se positionner dans le répertoire du fichier DSET

iii. Lancer la commande : ./dell-dset-3.2.0.141_x86_A01.bin

iv. Appuyer sur la touche "q"

v. Taper "y" pour accepter la License:

vi. Sélectionner l'option 2 : "Create the DSET Report Only"

vii. Renseigner les informations : company name et email

viii. L'utilitaire va se lancer et créer un fichier zip, répondre "n" quand il demande l'upload sur un site FTP

ix. Quitter le terminal

Le rapport est sauvegardé dans : " /tmp/dset/report ", merci de nous le renvoyer par mail.

Utiliser le LiveCD pour effectuer un Dset[modifier]

Objectif: Ce tutoriel vous permettra de générer des logs (Dset) sur un serveur qui possède un système d'exploitation non pris en charge par Dell (Tels qu'Ubuntu ou Debian par exemple) Ce tutoriel se fera via un LiveCd basé sur une distribution Linux Centos. Un LiveCd est un CD bootable qui permet de lancer un système d'exploitation à la volée sans toucher au disque dur. Le LiveCd proposé est développé par une communauté d'utilisateurs Linux dans le but d'aider les utilisateurs à faire des diagnostics leurs serveurs. Ce LiveCd n'est pas développé par le support technique Dell. Pour plus d'informations sur ce LiveCD, merci de lire le fichier readme [disponible ici.-http://linux.dell.com/files/openmanage-contributions/omsa-64-live/OMSA64-CentOS55-README.txt]

Pré-requis: Téléchargez la dernière version du LiveCD en [cliquant ici.-http://linux.dell.com/files/openmanage-contributions/] Le LiveCD contiendra tous les éléments nécessaire à ce tutoriel. Information: Ce tutoriel a été réalisé avec la version 6.5 du LiveCd. Il est possible que certains points soient légèrement différents sur d'autres versions. Procédure: Téléchargez le fichier .iso du LiveCd et gravez le fichier image. Insérez le CD dans le lecteur CD/DVD de votre serveur. ou via la console de votre Idrac, indiquez l'emplacement du fichier iso à attacher. Démarrez votre serveur. lorsque le logo Dell s'affiche, appuyez sur la touche F11 pour lancer le "Boot Manager" [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/3527.live1.jpg] Sur l'écran de sélection de périphérique de démarrage, sélectionnez "Optical Drive" et appuyez sur entrée. [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/1273.live2.jpg] Le LiveCd va démarrer automatiquement. [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/0447.live3.jpg] Une fois le bureau lancé, vous noterez que l'outil Dset est déja préinstallé. Double cliquez sur l'icone afin de lancez la collecte des logs. [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/7802.live4.jpg] Une fenêtre va s'ouvrir et la collecte va commencer. Information: le processus peux prendre une dizaine de minute. Ne fermez pas la fenêtre sinon le processus stoppera. Un message vous indique le succès de la procédure, ainsi que le nom et l'emplacement du fichier Dset. [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/6560.live5.jpg] Récupérer le fichier log sur une clé USB :


Dans un premier temps, afin de faciliter les choses, nous allons passer le clavier en Français. Lancez une fenêtre de terminal ("gnome-terminal", voir image ci-dessous) et tapez la commande : system-config-keyboard Et appuyez sur entrée. Le système vous demande d'entrer le mot de passe administrateur : dell [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/8244.live6.jpg] Vous accédez désormais à l'outil de sélection de langue du clavier: [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/5661.live7.jpg] Insérez la clé USB dans votre serveur. Toujours dans le terminal, lancez la commande dmesg afin d'identifier la clé USB. Exemple de résultat d'une commande dmesg: 2165634.791468\] scsi 5:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS \[2165634.802119\] sd 5:0:0:0: Attached scsi generic sg3 type 0 \[2165635.042119\] sd 5:0:0:0: \[sdc\] 8036352 512-byte logical blocks: (4.11 GB/3.83 GiB) \[2165635.042726\] sd 5:0:0:0: \[sdc\] Write Protect is off \[2165635.042738\] sd 5:0:0:0: \[sdc\] Mode Sense: 23 00 00 00 \[2165635.042743\] sd 5:0:0:0: \[sdc\] Assuming drive cache: write through \[2165635.051244\] sd 5:0:0:0: \[sdc\] Assuming drive cache: write through \[2165635.051264\] sdc: sdc1 \[2165635.106004\] sd 5:0:0:0: \[sdc\] Assuming drive cache: write through \[2165635.106019\] sd 5:0:0:0: \[sdc\] Attached SCSI removable disk Dans cet exemple, nous voyons la un disque amovible (removable disk) reconnu en tant que périphérique nommé sdc. Créez un répertoire pour monter la clé usb en entrant la commande : mkdir /mnt/clef Montez la clé afin qu'elle soit disponible (par exemple sur sdc1) : mount /dev/sdc1/ mnt/clef Copiez le fichier dset sur la clé: cp /tmp/data/le_nom_du_fichier /dev/sdc1/mnt/clef Démontez la clé afin de pouvoir la retirer proprement. Entrez la commande : umount /dev/sdc1 Information: Si vous retirez la clé sans la démonter du système, le fichier copié risque d'être absent ou corrompu. Il ne vous reste qu'à transmettre ce fichier au support technique pour analyse.


Récupérer le fichier log via FTP : Le LiveCd est déja configuré avec un serveur FTP. Il suffit d'attribuer une adressse IP à la carte réseau afin d'y accéder. Allez dans "System", "Preferences", puis sélectionnez "Network Connections" (voir image ci-dessous) [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/3036.live8.jpg] Sélectionnez la carte réseau de votre choix (dans notre exemple nous n'en avons qu'une), puis cliquez sur "Edit". Cliquez sur l'onglet "IPv4 Settings", puis sélectionnez "Manual" dans le menu déroulant. Entrez l'adresse IP souhaitée, puis cliquez sur appliquer. Le mot de passe administrateur vous sera demandé : dell [ -http://fr.community.dell.com/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-08/8750.live9.jpg] Vous pouvez vérifier que l'adresse IP a bien été prise en compte en lancant la commande ifconfig sur le terminal. Le rapport Dset ainsi que tous les fichiers présents dans le dossier /tmp/data sont désormais accessible via FTP en entrant l'ip que vous avez choisi. Il ne vous reste qu'à transmettre ce fichier au support technique pour analyse

AIX[modifier]

uptime : commande qui sert à visualiser l'utilisation de la machine.

lsps -a : commande pour voir les espaces de pagination.

lsof -i : à peu près l'équivalent de netstat -ntlp sous linux.

smit spooler : commande pour gérer les imprimantes.

smit user : commande pour créer un utilisateur sur un AIX.

Sauvegarde sur bande : normalement le péripherique se nomme rmt0int.

date 03301656 : Changement d'heure, exemple : 30 mars 16h56 commande.

errpt -aD : logs d'erreur.

oslevel : afficher la version d'AIX.

lspv : voir les groupes de disques.

lsvg -l "nom du groupe" : information sur un groupe.

lscfg -vp : information systeme aix.

smit fs : rajouter de l'espace disque.

lscfg : information sur la configuration.

diag -a : diagnostique disque.

lspv : voir les disques.

top ou monitor : moniteur de performance (visiblement sur les versions plus ressente c'est : topas)

alog -o -t boot ou errpt : log de démarrage et système.

bootinfo -s hdisk : informations sur les disques.

smit tcpip : configuration réseau.

smit lv : menu des volumes logiques.

ex : ordre de demarrage (cd0,hdisk0,hdisk1…).

smit : menu principal de configuration.

controle alt- : pour accèder au bios du terminal (écran).

lsvg : affiche les volumes groupes (normalement 2 = rootvg (systeme) et basevg (données).

lsvg -l basevg : donne les volumes logiques et systèmes de fichier.

lsattr -E -l mem0 : information mémoire Dans tous les menus pour revenir en arrière et annuler faire F3.

fc -l : afficher l'historique des commandes.

Gérer les services réseaux :

fichiers /etc/inetd.conf - /etc/rc.tcpip - /etc/inittab. (ftpd est dans inetd.conf par exemple)

Ensuite faites un refresh -s inetd

/etc/rc.tcpip : relance services tcpip.

ifconfig -a : visualiser toutes les interfaces réseaux.

ifconfig en4 : (pas eth0 chez aix mais en0), voir la config de l'interface en4.

netstat -C ou -r : afficher les routes.

cfgmgr : permet de faire détecter par le système tous les nouveaux éléments connectés/allumés depuis le dernier lancement système.

who -r : Afficher le runlevel

errclear 0 : vide les logs

Gestion des paquets

lslpp -l : Liste des paquets et versions

Gestion des services :

lssrc -S : voir les services disponibles.

refresh -s nom-service : arreter/redemarrer un service.

stopsrc -s nom-service : stopper un service. (variante pour certains services -t)

startsrc -s nom-service : démarrer un service. (variante pour certains services -t)

ps -ef \| grep nom-service : voir si un service est lancé.

Impressions :

Le service qdaemon gère les files d'attente du spooleur AIX, alors que le service lpd surveille les demandes provenant d'autres serveurs externes.

Suppression de tous les travaux d'impression : /var/spool/lpd/qdir /var/spool/qdaemon.

Liens intéressants :

[1].

[2]

[3]

[4]

Formation AIX en français :

Excellent lien mais il vous faudra du temps pour tout lire ! :[5]

Si vous en avez d'autres n'hésitez pas (commandes et liens).

Documentation sur les services réseaux

[6]

AIX 64 ou 32 bits ? :

bootinfo -K

Afficher les informations d'un compte :

logins -xml <user>

ce qui donne quelques chose comme ça :


<user> 0 system 0

                       bin             2
                       sys             3
                       security        7
                       cron            8
                       audit           10
                       /home/<user>
                       /usr/bin/ksh
                       PS 061110 0 56 5061110 0 56 5


La dernière ligne est intéressante : • Dernière date à laquelle le mot de passe a été changé. • Nombre de jours qui doivent d'écouler entre les changements. • Nombre de jours avant changement, période d'avertissement.

Le statut de mot de passe est affiché sous forme abrégée : • PS pour les connexions avec mot de passe. • NP sans mot de passe. • LK verrouillé.

Afficher les comptes lockés :

logins -xo \| awk '\{ FS=":" \} \{print $1":"$8\}' \| grep LK

Robocopy[modifier]

Syntaxe

Robocopy <Source><Destination>[<File> [...]] [<Options>]

Paramètres

Paramètree Description
<Source> Spécifie le chemin d'accès au répertoire source.
<Destination> Spécifie le chemin d'accès au répertoire de destination.
<File> Spécifie l'ou les fichiers à copier. Vous pouvez utiliser des caractères génériques (* ou ?), si vous le souhaitez. Si le paramètre de fichier n'est pas spécifié,*. * est utilisée comme valeur par défaut.
<Options> Spécifie les options à utiliser avec la commande robocopy .


Options de copie

Option Description
/s Sous-répertoires de copies. Notez que cette option exclut les répertoires vides.
/e Sous-répertoires de copies. Notez que cette option inclut les répertoires vides. Pour plus d'informations, consultez la section Notes.
/Lev : <N> Copie uniquement les n premiers niveaux de l'arborescence du répertoire source.
/z Copie les fichiers en mode redémarrage.
/b Copie les fichiers en mode de sauvegarde.
/ZB Utilise le mode de redémarrage. Si l'accès est refusé, cette option utilise le mode de sauvegarde. *
/EFSRAW Copie tous les fichiers cryptés en mode EFS RAW.
/ copie : <CopyFlags> Spécifie les propriétés du fichier à copier. Les valeurs valides pour cette option sont les suivantes : Données D A attributs Horodateurs T S NTFS contrôle liste accès (ACL) Informations relatives au propriétaire o Informations d'audit u La valeur par défaut pour indicateurscopie est DAT (données, les attributs et les horodateurs).
/ DCOPY: t Copies répertoire horodateurs.
/ s Copie les fichiers avec sécurité (équivaut à/Copy : DAT).
/COPYALL Copie toutes les informations de fichier (équivalentes à /copy:DATSOU).
/NoCopy Ne copie aucune information de fichier (utile avec/purge).
/secfix Sécurité des fichiers correctifs sur tous les fichiers, même ignoré ceux.
/TIMFIX Heures des fichiers correctifs sur tous les fichiers, même ignoré ceux.
/ Purge Supprime les fichiers de destination et les répertoires qui n'existent plus dans la source. Pour plus d'informations, consultez la section Notes.
/MIR Met en miroir une arborescence de répertoires (équivaut à /e plus/purge plus/purge ). Pour plus d'informations, consultez lasection Notes.
/mov Déplace les fichiers et les supprime de la source une fois qu'ils sont copiés.
/Move Déplace les fichiers et répertoires et les supprime de la source une fois qu'ils sont copiés.
/ a +: [RASHCNET] Ajoute les attributs spécifiés pour les fichiers copiés.
/ a-: [RASHCNET] Supprime les attributs spécifiés dans les fichiers copiés.
/ créer Crée une arborescence de répertoires et fichiers de longueur nulle uniquement.
/ fat Crée des fichiers de destination à l'aide de caractères 8.3 nom FAT uniquement.
/ 256 Désactive la prise en charge des chemins d'accès très longs (plus de 256 caractères).
/ LUN : <N> Surveille la source et s'exécute à nouveau lorsque plus de n modifications sont détectées.
/mot : <M> Surveille la source et s'exécute dans m minutes si des modifications sont détectées.
/ RH : hhmm Spécifie le temps d'exécution lorsque les nouvelles copies peuvent être lancées.
/PF Vérifications exécutent sur une base par fichier (pas par-pass).
/IPG:n Spécifie l'intervalle de besoins pour libérer de la bande passante sur les lignes lentes.
/SL Copie le lien symbolique plutôt que de la cible.

Important

Lorsque vous utilisez l'option de copie /SECFIX , spécifiez le type d'informations de sécurité que vous souhaitez copier 
également l'une de ces options de copie supplémentaire :
/ COPYALL 
/COPY:O 
/COPY:S 
/COPY:U 
/ S

Options de sélection de fichier

Option Description
/a Copie uniquement les fichiers dont l'attribut Archive est défini.
/IA: [RASHCNETO] Inclut uniquement les fichiers dont les attributs spécifiés sont définies.
/xf <FileName> [...] Exclut les fichiers qui correspondent aux chemins d'accès ou les noms spécifiés. Notez que nom de fichier peut inclure des caractères génériques (* et ?).
/xct Exclut les fichiers modifiés.
/xo Exclut les fichiers plus anciens.
/XL Exclut les répertoires et fichiers "là".
/IT Inclut les fichiers « modifié ».
/min: <N> Spécifie la taille de fichier minimale (pour exclure des fichiers de taille inférieures à n octets).
/MINAGE : <N> Spécifie l'âge minimal de fichiers (exclure les fichiers plus récents que n jours ou date).
/MINLAD : <N> Spécifie la date de dernier accès (exclut les fichiers utilisés depuis N) au minimum si n est inférieur à 1900, N Spécifie le nombre de jours. Sinon, N spécifie une date au format AAAAMMJJ
/FFT Suppose que les fichiers FAT times (précision de deux secondes).
/XJD Exclut les points de jonction de répertoires.

DOC CMD[modifier]

ASSOC Affiche ou modifie les applications associées aux extensions de fichiers.

ATTRIB Affiche ou modifie les attributs d'un fichier.

BREAK Active ou désactive le controle étendu de CTRL+C.

BCDEDIT Définit les propriétés dans la base de données de démarrage pour le controle du chargement d'amorçage.

CACLS Affiche ou modifie les listes de controles d'accès aux fichiers.

CALL Appelle un fichier de commandes à partir d'un autre fichier de commandes.

CD Modifie le répertoire ou affiche le répertoire actif.

CHCP Modifie ou affiche le numéro de la page de code active.

CHDIR Modifie le répertoire ou affiche le nom du répertoire actif.

CHKDSK vérifie un disque et affiche un rapport d'état.

CHKNTFS Affiche ou modifie la vérification du disque au démarrage.

CLS Efface l'écran.

CMD Exécute une nouvelle instance de l'interpréteur de commandes de Windows.

COLOR Modifie les couleurs du premier plan et de l'arrière-plan de la console.

COMP Compare les contenus de deux fichiers ou groupes de fichiers.

COMPACT Modifie ou affiche la compression des fichiers sur une partition NTFS.

CONVERT Convertit des volumes FAT en volumes NTFS. Vous ne pouvez pas convertir le lecteur en cours d'utilisation.

COPY Copie un ou plusieurs fichiers.

DATE Affiche ou définit la date.

DEL Supprime un ou plusieurs fichiers.

DIR Affiche la liste des fichiers et des sous-répertoires d'un répertoire.

DISKCOMP Compare les contenus de deux disquettes.

DISKCOPY Copie le contenu d'une disquette sur une autre.

DISKPART Affiche ou configure les propriétés d'une partition de disque.

DOSKEY Modifie les lignes de commande, rappelle des commandes Windows, et crée des macros.

DRIVERQUERY Affiche l'état et les propriétés du pilote de périphérique en cours d'utilisation.

ECHO Affiche des messages ou active/désactive l'affichage des commandes.

ENDLOCAL Stoppe la localisation des modifications d'environnement dans un fichier de commandes.

ERASE Supprime un ou plusieurs fichiers.

EXIT Quitte l'interpréteur de commandes (CMD.EXE).

FC Compare deux fichiers ou groupes de fichiers et affiche les différences.

FIND Recherche une chaŒne de caractères dans un ou plusieurs fichiers.

FINDSTR Cherche des chaŒnes dans les fichiers.

FOR Exécute une commande sur chaque fichier d'un ensemble de fichiers.

FORMAT Formate un disque devant être utilisé avec Windows.

FSUTIL Affiche ou configure les propriétés du systême de fichiers.

FTYPE Affiche ou modifie les types de fichiers utilisés dans les associations d'extensions.

GOTO Indique l'exécution d'un fichier de commandes pour une ligne identifiée par une étiquette.

GPRESULT Affiche les informations de stratégie de groupe pour un ordinateur ou un utilisateur.

GRAFTABL Permet à Windows d'afficher un jeu de caractères en mode graphique.

HELP Affiche des informations sur les commandes de Windows.

ICACLS Afficher, modifier, sauvegarder ou restaurer les listes de controle d'accès pour les fichiers et les répertoires.

IF Effectue un traitement conditionnel dans un fichier de commandes.

LABEL Crée, modifie ou supprime le nom de volume d'un disque.

MD Crée un répertoire.

MKDIR Crée un répertoire.

MKLINK Créer des liens symboliques et des liens réels

MODE Configure un périphérique du système.

MORE Affiche la sortie écran par écran.

MOVE Déplace un ou plusieurs fichiers d'un répertoire à un autre.

OPENFILES Affiche les fichiers partagés ouverts à distance par les utilisateurs.

PATH Affiche ou définit le chemin de recherche des fichiers exécutables.

PAUSE Interrompt l'exécution d'un fichier de commandes et affiche un message.

POPD Restaure la valeur précédente du répertoire actif enregistrée par PUSHD.

PRINT Imprime un fichier texte.

PROMPT Modifie l'invite de commande de Windows.

PUSHD Enregistre le répertoire actif puis le modifie.

RD Supprime un répertoire.

RECOVER récupère l'information lisible d'un disque défectueux.

REM Insère un commentaire dans un fichier de commandes ou CONFIG.SYS.

REN Renomme un ou plusieurs fichiers.

RENAME Renomme un ou plusieurs fichiers.

REPLACE Remplace des fichiers.

RMDIR Supprime un répertoire.

ROBOCOPY Utilitaire avancé pour copier les fichiers et les arborescences de répertoires

SET Affiche, définit ou supprime des variables d'environnement Windows.

SETLOCAL Commence la localisation des modifications d'environnement dans un fichier de commandes.

SC Affiche ou configure les services (processus en arrière-plan).

SCHTASKS Planifie les commandes et les programmes à exécuter sur l'ordinateur.

SHIFT Modifie la position des paramètres remplaçables dans un fichier de commandes.

SHUTDOWN Permet un arrêt local ou distant correct de l'ordinateur.

forcer un logoff: shutdown /l /f

SORT Trie les entrées.

START Ouvre une fenêtre séparée pour l'exécution d'un programme ou d'une commande spécifique.

SUBST Associe un chemin d'accès à une lettre de lecteur.

SYSTEMINFO Affiche les propriétés et la configuration spécifiques de l'ordinateur.

TASKLIST Affiche toutes les tâches en cours d'exécution, y compris les services.

TASKKILL Termine ou interrompt un processus ou une application en cours d'exécution.

TIME Affiche ou définit l'heure du système.

TITLE définit le titre de la fenêtre pour une session CMD.EXE.

TREE Affiche le graphisme de la structure de répertoire d'un lecteur ou d'un chemin d'accès.

TYPE Affiche le contenu d'un fichier texte.

VER Affiche la version de Windows.

VERIFY Demande à Windows de vérifier si vos fichiers sont correctement écrits sur le disque.

VOL Affiche le nom et le numéro de série d'un volume de disque.

XCOPY Copie les fichiers et les arborescences de répertoires.

WMIC Affiche les informations WMI dans l'interface de commande interactive.


Commande utile[modifier]

watch[modifier]

Imaginons que vous attendez un fichier dans un répertoire spécifique pour X ou Y raison.

watch ls -lah

Cette commande répétera la commande ls -lah toute les 2 secondes.

watch -n 4 ls

Cette commande répetera la commande ls toutes les 4 secondes.

chkconfig[modifier]

Commande de configuration des démarrage serveur/application

CURL[modifier]

CURL: Décortiquez vos temps de réponse Pour ceux qui voudraient analyser en profondeur les temps de réponse serveur, voici une commande bien utile !

En effet, en une seule ligne de commande, vous pouvez avoir pas mal d’informations sur le temps que met le serveur à réponse et cela détaillé par étape clé de la création de votre page. Ainsi, vous pouvez savoir le temps que met la résolution DNS, le temps de connexion, le temps jusqu’au TTFB (time to first byte)…

Pour cela, rien de plus simple ! il suffit d’utiliser Curl. En effet, en spécifiant quelques variables vous pourrez récupérer des informaitons biens utiles. Voici un example de varaibles que vous pouvez passer en paramètres:

%{content_type}: le type de contenu du document renvoyé (s’il y’a un document) %{http_code}: le code HTTP renvoyé par le serveur (tous les code http) %{num_connects}: nombre de nouvelles connexion effectuées %{num_redirects}: nombre de redirections suivies au moment de la connexion %{size_download}: poids du document reçu (en bytes) %{size_request}: total en bytes envoyé lors de la requête HTTP %{speed_download}: vitesse de téléchargement moyenne mesurée par curl jusqu’à la reception totale du document (bytes par seconde) %{time_connect}: le temps, en secondes, depuis le début jusqu’à ce que la connexion TCP avec le serveur distant soit effective %{time_namelookup}: le temps, en secondes, jusqu’à ce que la résolution DNS soit effective %{time_starttransfer}: le temps, en secondes, jusqu’à ce que le premier byte soit envoyé %{time_total}: le temps total, en secondes, nécessaire jusqu’à la fin de l’opération Voici un lien qui vous enmène sur la page d’aide où sont référencées l’ensemble des variables acceptées par Curl.

En formatant la sortie dans le terminal (flag -w), on peut obtenir des choses assez sympas :

view sourceprint?

curl -w '\nDNS lookup:\t%{time_namelookup}\nConnexion to host:\t%{time_connect}\nTTFB:\t%{time_starttransfer}\n\n--------------------\nTotal response time:\t%{time_total}\n' -o /dev/null -s 
http://www.le-geek.com/

DNS lookup: 0,024
Connexion to host: 0,040
TTFB: 0,081
--------------------
Total response time: 0,124

Opérateurs de comparaison[modifier]

Un opérateur de comparaison binaire compare deux variables ou quantités. Notez que la comparaison entre entiers et chaînes utilisent un différent ensemble d'opérateurs.

comparaison d'entiers[modifier]

-eq
est égal à

if [ "$a" -eq "$b" ]
-ne
n'est pas égal à

if [ "$a" -ne "$b" ]
-gt
est plus grand que

if ["$a" -gt "$b" ]
-ge
est plus grand ou égal à

if [ "$a" -ge "$b" ]
-lt
est plus petit que

if [ "$a" -lt "$b" ]
-le
est plus petit ou égal à

if [ "$a" -le "$b" ]
<
est plus petit que (à l'intérieur de parenthèses doubles)

(("$a" < "$b"))
<=
est plus petit ou égal à (à l'intérieur de parenthèses doubles)

(("$a" <= "$b"))
>
est plus grand que (à l'intérieur de parenthèses doubles)

(("$a" > "$b"))
>=
est plus grand ou égal à (à l'intérieur de parenthèses doubles)

(("$a" >= "$b"))

comparaison de chaînes de caractères[modifier]

=
est égal à

if [ "$a" = "$b" ]
==
est égal à

if [ "$a" == "$b" ]

Ceci est un synonyme de =.

[Note] Note L'opérateur de comparaison == se comporte différemment à l'intérieur d'un test à double crochets qu'à l'intérieur de crochets simples.

$a == z* # Vrai si $a commence avec un "z" (correspondance de modèle).

$a == "z*" # Vrai si $a est égal à z* (correspondance littérale).

[ $a == z* ] # Correspondance de fichiers et découpage de mots. [ "$a" == "z*" ] # Vrai si $a est égal à z* (correspondance littérale).


!=
n'est pas égal à 

if [ "$a" != "$b" ]

Cet opérateur utilise la reconnaissance de motifs à l'intérieur de constructions ... .
<
est plus petit que, d'après l'ordre alphabétique ASCII

if [[ "$a" < "$b" ]]

if [ "$a" \< "$b" ]
Notez que « < » a besoin d'être dans une séquence d'échappement s'il se trouve à l'intérieur de [ ].
>
est plus grand que, d'après l'ordre alphabétique ASCII

if [[ "$a" > "$b" ]]

if [ "$a" \> "$b" ]

Notez que « > » a besoin d'être dans une séquence d'échappement s'il se trouve à l'intérieur de [ ].
Voir l'Exemple 26.10, « Le tri bulle : Bubble Sort » pour une application de cet opérateur de comparaison.
-n
la chaîne de caractères n'est pas « vide ».

[Attention] Attention
Attention : Le test -n nécessite absolument que la chaîne de caractères soit entre guillemets à l'intérieur des crochets de test. 
Utiliser une chaîne sans guillemets avec ! -z, voire simplement la chaîne sans guillemets à l'intérieur des crochets (voir l'Exemple 
7.6, « Vérification si une chaîne est nulle ») fonctionne habituellement, néanmoins, c'est une pratique peu sûre. Placez toujours vos 
chaînes de caractères à tester entre guillemets. [26]
-z
la chaîne de caractères est « vide », c'est-à-dire qu'elle a une taille nulle