Code source wiki de Comment faire le lien entre les PID de MWKILL et les noms de job de l'AS/400
Modifié par Julien EYMERY le 2015/06/29 11:35
Afficher les derniers auteurs
| author | version | line-number | content |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | L'utilitaire MWKILL affiche les informations sur les processus serveur. Parmi ces informations le processus serveur est identifié par son numéro de PID et ceci même dans le cas d'un serveur AS/400. | ||
| 4 | Pour établir une correspondance entre le numéro de PID d'un travail serveur et son nom de travail classique AS/400 (numéro/utilisateur/nom_du_travail) il faut lancer sur l'AS/400 le mode de commande "Shell" via la commande AS/400 QSH, puis utiliser la commande Shell ps : | ||
| 5 | |||
| 6 | |||
| 7 | ps -p <numéro pid> vous affiche les informations liées au processus <numéro pid> et notamment le nom classique du travail AS/400 (colonne JOBID) | ||
| 8 | |||
| 9 | |||
| 10 | Autre option intéressante de commande shell ps : | ||
| 11 | |||
| 12 | |||
| 13 | ps -u <nom utilisateur> vous affiche les processus de l'utilisateur <nom utilisateur> | ||
| 14 | |||
| 15 | {{hardis-panel title="Détail de la commande ps (doc IBM)"}} | ||
| 16 | ps - Display process status | ||
| 17 | |||
| 18 | Synopsis | ||
| 19 | ps [-Aaefjlt] [ -o format ] [ -p pidlist ] [ -s sbslist ] [ -u userlist ] | ||
| 20 | Description | ||
| 21 | The ps utility displays information about processes. The output from ps can include the following fields: | ||
| 22 | |||
| 23 | CGROUP | ||
| 24 | The current primary group profile of the process. | ||
| 25 | CMD Program, menu, or command most recently run by the process. | ||
| 26 | CUSER | ||
| 27 | The current user profile of the process. | ||
| 28 | DEVICE | ||
| 29 | Name of the device description object that is associated with the process. | ||
| 30 | ETIME | ||
| 31 | The elapsed time since the process started. The time is displayed in the format [[dd-]hh:]mm:ss | ||
| 32 | where dd is the number of days, hh is the number of hours, mm is the number of minutes, and ss | ||
| 33 | is the number of seconds. | ||
| 34 | FUNCTION | ||
| 35 | Program, menu, or command most recently run by the process. | ||
| 36 | JOBID Qualified job name of the process. The qualified job name is a string in the form | ||
| 37 | number/user/name. The number is a six-digit decimal number, user is the user profile under which | ||
| 38 | the job was started, and name is the name of job. | ||
| 39 | JOBNAME | ||
| 40 | Job name component of the qualified job name. | ||
| 41 | JOBNUM | ||
| 42 | Job number component of the qualified job name. | ||
| 43 | NTHREADS | ||
| 44 | The number of threads currently running in the process as a decimal number. | ||
| 45 | PCPU The ratio of CPU time used recently to CPU time available, expressed as a percentage. | ||
| 46 | PGID Process group ID number as a decimal number. | ||
| 47 | PID Process ID number as a decimal number. | ||
| 48 | PPID Parent process ID number as a decimal number. | ||
| 49 | PRI Current priority of the process as a decimal number. Lower numbers mean a higher priority. | ||
| 50 | SBS Subsytem in which the process is running. | ||
| 51 | STATUS | ||
| 52 | Current status of the process. | ||
| 53 | STIME | ||
| 54 | Date and time the process was started. By default, the date and time is displayed in the format | ||
| 55 | mm-dd-yyyy [[hh:nn:ss>>url:http://hhnnss]] where mm is the month, dd is the day, yyyy is the year, hh is the hour, nn is | ||
| 56 | the minute, and ss is the second. If the LC_TIME environment variable is set, the date and time is | ||
| 57 | displayed with the format specified by the d_t_fmt keyword in the LC_TIME category of the | ||
| 58 | specified locale. | ||
| 59 | THCOUNT | ||
| 60 | The number of threads currently running in the process as a decimal number. | ||
| 61 | TIME CPU time used by the process in seconds. The time is displayed in the format [[dd-]hh:]mm:ss | ||
| 62 | where dd is the number of days, hh is the number of hours, mm is the number of minutes, and ss | ||
| 63 | is the number of seconds. | ||
| 64 | TMPSZ | ||
| 65 | The amount of temporary storage used by the process in megabytes as a decimal number. | ||
| 66 | TYPE The type of the process. | ||
| 67 | USER User profile component of the qualified job name. | ||
| 68 | UID User id number corresponding to the user profile component of the qualified job name. | ||
| 69 | |||
| 70 | By default, ps displays the PID, DEVICE, TIME, FUNCTION, STATUS, and JOBID fields about processes | ||
| 71 | owned by the current user. Use the -o option to select the fields displayed by ps. | ||
| 72 | |||
| 73 | To display information about other processes, you must have *JOBCTL special authority. | ||
| 74 | |||
| 75 | Options | ||
| 76 | -a Display information for all processes associated with a 5250 terminal. | ||
| 77 | -A Display information for all processes. This includes processes that are active, on a job queue, or | ||
| 78 | on an output queue. | ||
| 79 | -e Include active processes in the output. | ||
| 80 | -f Display a full listing. The output includes the USER, PID, PPID, STIME, DEVICE, TIME and | ||
| 81 | FUNCTION fields. | ||
| 82 | -j Include processes on a job queue in the output. | ||
| 83 | -l Display a long listing. The output includes the USER, PID, PPID, PRI, STATUS, JOBID, STIME, | ||
| 84 | DEVICE, TIME and FUNCTION fields. | ||
| 85 | -o format | ||
| 86 | Display information according to the format specification given in format. Multiple -o options can | ||
| 87 | be specified. | ||
| 88 | -p pidlist | ||
| 89 | Write information for processes whose process ID numbers are specified in pidlist. The pidlist | ||
| 90 | must be a single argument in the form of a blank- or comma-separated list. | ||
| 91 | -s sbslist | ||
| 92 | Write information for processes running in the subsystems specified in sbslist. The sbslist must be | ||
| 93 | a single argument in the form of a blank- or comma-separated list. | ||
| 94 | -t Include processes on an out queue in the output. | ||
| 95 | -u userlist | ||
| 96 | Write information for processes whose user ID numbers or user names are specified in userlist. | ||
| 97 | The userlist must be a single argument in the form of a blank- or comma-separated list | ||
| 98 | {{/hardis-panel}} | ||
| 99 | |||
| 100 | |||
| 101 | ((( | ||
| 102 | == Articles connexes == | ||
| 103 | ))) | ||
| 104 | |||
| 105 | {{liveData sort="doc.date:desc" source="liveTable" properties="doc.title,doc.date,doc.author" description="Recently updated" limit="5" filters="tag=middleware AS/400 MWRPGSVR" sourceParameters="translationPrefix=platform.index."}}{{/liveData}} | ||
| 106 |