- tasklist
- Syntax
- Parameters
- Filter names, operators, and values
- Examples
- tasklist tasklist
- Синтаксис Syntax
- Параметры Parameters
- Имена фильтров, операторы и значения Filter names, operators, and values
- Примеры Examples
- Get Task List
- Request
- URI Parameters
- Request Headers
- Request Body
- Response
- Status Code
- Response Headers
- Response Body
- Remarks
- Requirements
tasklist
Displays a list of currently running processes on the local computer or on a remote computer. Tasklist replaces the tlist tool.
This command replaces the tlist tool.
Syntax
Parameters
Parameter | Description |
---|---|
/s | Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. |
/u \ | Runs the command with the account permissions of the user who is specified by or by \ . The /u parameter can be specified only if /s is also specified. The default is the permissions of the user who is currently logged on to the computer that is issuing the command. |
/p |
Filter names, operators, and values
Filter Name | Valid Operators | Valid Value(s) |
---|---|---|
STATUS | eq, ne | RUNNING | NOT RESPONDING | UNKNOWN . This filter isn’t supported if you specify a remote system. |
IMAGENAME | eq, ne | Image name |
PID | eq, ne, gt, lt, ge, le | PID value |
SESSION | eq, ne, gt, lt, ge, le | Session number |
SESSIONNAME | eq, ne | Session name |
CPUtime | eq, ne, gt, lt, ge, le | CPU time in the format HH:MM:SS, where MM and SS are between 0 and 59 and HH is any unsigned number |
MEMUSAGE | eq, ne, gt, lt, ge, le | Memory usage in KB |
USERNAME | eq, ne | Any valid user name ( or ) |
SERVICES | eq, ne | Service name |
WINDOWTITLE | eq, ne | Window title. This filter isn’t supported if you specify a remote system. |
MODULES | eq, ne | DLL name |
Examples
To list all tasks with a process ID greater than 1000, and display them in csv format, type:
To list the system processes that are currently running, type:
To list detailed information for all processes that are currently running, type:
To list all the service information for processes on the remote computer srvmain, which has a DLL name beginning with ntdll, type:
To list the processes on the remote computer srvmain, using the credentials of your currently logged-on user account, type:
To list the processes on the remote computer srvmain, using the credentials of the user account Hiropln, type:
tasklist tasklist
Отображает список запущенных в данный момент процессов на локальном или удаленном компьютере. Displays a list of currently running processes on the local computer or on a remote computer. Tasklist заменяет средство TList . Tasklist replaces the tlist tool.
Эта команда заменяет средство TList . This command replaces the tlist tool.
Синтаксис Syntax
Параметры Parameters
Параметр Parameter | Описание Description |
---|---|
ключ /s | Указывает имя или IP-адрес удаленного компьютера (не используйте символы обратной косой черты). Specifies the name or IP address of a remote computer (do not use backslashes). По умолчанию это локальный компьютер. The default is the local computer. |
/u \ /u \ | Выполняет команду с разрешениями учетной записи пользователя, заданного или пользователем \ . Runs the command with the account permissions of the user who is specified by or by \ . Параметр /u может быть указан только в том случае, если задано также значение /s . The /u parameter can be specified only if /s is also specified. По умолчанию заданы разрешения пользователя, который в данный момент вошел в систему компьютера, выполняющего команду. The default is the permissions of the user who is currently logged on to the computer that is issuing the command. |
/p |
Указывает формат, используемый для выходных данных. Specifies the format to use for the output. Допустимые значения: Table, List и CSV. Valid values are table, list, and csv. Формат выходных данных по умолчанию — Table. The default format for output is table. | |
использован /nh | Подавляет вывод заголовков столбцов в выходных данных. Suppresses column headers in the output. Допустим, если для параметра /FO задано значение Table или CSV. Valid when the /fo parameter is set to table or csv. |
/Fi /fi | Указывает типы процессов, включаемых в запрос или исключаемых из него. Specifies the types of processes to include in or exclude from the query. Можно использовать более одного фильтра или использовать подстановочный знак ( \ ) для указания всех задач или имен изображений. You can use more than one filter or use the wildcard character ( \ ) to specify all tasks or image names. Допустимые фильтры перечислены в разделе имена фильтров, операторы и значения этой статьи. The valid filters are listed in the Filter names, operators, and values section of this article. |
/? /? | Отображение справки в командной строке. Displays help at the command prompt. |
Имена фильтров, операторы и значения Filter names, operators, and values
Имя фильтра Filter Name | Допустимые операторы Valid Operators | Допустимые значения Valid Value(s) |
---|---|---|
Состояние STATUS | eq, ne eq, ne | RUNNING | NOT RESPONDING | UNKNOWN . RUNNING | NOT RESPONDING | UNKNOWN . Этот фильтр не поддерживается, если указана удаленная система. This filter isn’t supported if you specify a remote system. |
IMAGENAME IMAGENAME | eq, ne eq, ne | Имя образа Image name |
ИД процесса PID | eq, ne, gt, lt, ge, le eq, ne, gt, lt, ge, le | Значение PID PID value |
SESSION SESSION | eq, ne, gt, lt, ge, le eq, ne, gt, lt, ge, le | Номер сеанса Session number |
SESSIONNAME SESSIONNAME | eq, ne eq, ne | Имя сеанса Session name |
CPUtime CPUtime | eq, ne, gt, lt, ge, le eq, ne, gt, lt, ge, le | Время ЦП в формате чч: мм: СС, где mm и SS находятся в диапазоне от 0 до 59, а чч — любое число без знака CPU time in the format HH:MM:SS, where MM and SS are between 0 and 59 and HH is any unsigned number |
мемусаже MEMUSAGE | eq, ne, gt, lt, ge, le eq, ne, gt, lt, ge, le | Использование памяти в КБ Memory usage in KB |
USERNAME USERNAME | eq, ne eq, ne | Любое допустимое имя пользователя ( или ) Any valid user name ( or ) |
Обслуживание SERVICES | eq, ne eq, ne | Имя службы Service name |
WINDOWTITLE WINDOWTITLE | eq, ne eq, ne | Заголовок окна. Window title. Этот фильтр не поддерживается, если указана удаленная система. This filter isn’t supported if you specify a remote system. |
МОДУЛЕ MODULES | eq, ne eq, ne | Имя DLL DLL name |
Примеры Examples
Чтобы получить список всех задач с идентификатором процесса, превышающим 1000, и отобразить их в формате CSV, введите: To list all tasks with a process ID greater than 1000, and display them in csv format, type:
Чтобы получить список системных процессов, выполняемых в данный момент, введите: To list the system processes that are currently running, type:
Чтобы вывести подробные сведения обо всех выполняющихся процессах, введите: To list detailed information for all processes that are currently running, type:
Чтобы получить список всех сведений о службе для процессов на удаленном компьютере срвмаин с именем DLL, начинающимся с NTDLL, введите: To list all the service information for processes on the remote computer srvmain, which has a DLL name beginning with ntdll, type:
Чтобы получить список процессов на удаленном компьютере срвмаин, используя учетные данные текущей учетной записи пользователя, выполнившего вход в систему, введите: To list the processes on the remote computer srvmain, using the credentials of your currently logged-on user account, type:
Чтобы получить список процессов на удаленном компьютере срвмаин, используя учетные данные хироплн учетной записи пользователя, введите: To list the processes on the remote computer srvmain, using the credentials of the user account Hiropln, type:
Get Task List
Gets the values of the properties for all of the tasks in the specified job.
Request
You can specify the Get Task List request as follows.
Method | Request URI |
---|---|
GET (before HPC Pack 2016) | https://head_node_name:port/WindowsHPC/HPC_cluster_name/Job/job_identifier/Tasks |
GET (HPC Pack 2016) | https://head_node_name:port/WindowsHPC/Job/job_identifier/Tasks |
For instances of the REST web service that are hosted in Azure, the head node name should have a format of Windows_Azure_service_name.cloudapp.net.
To get the name to use for an HPC cluster that runs at least Microsoft HPC Pack 2008 R2 with Service Pack 3 (SP3), use the Get Clusters operation.
URI Parameters
You can specify the following additional parameters on the request URI.
Parameter | Description |
---|---|
Properties | |
Render | Required if the $filter URI parameter is specified. Set the value to RestPropRender to specify that the response body is formatted in XML compatible with MicrosoftВ HPCВ PackВ 2008В R2 with ServiceВ PackВ 2 (SP2). The minimum version that supports this URI parameter is MicrosoftВ HPCВ PackВ 2012. |
SortTasksBy | Optional. A task property by which tasks will be sorted. If this parameter is not specified or a property with a specified name does not exist for a task, the result will be sorted by task Id. |
RowsPerRead | Optional. Specifies how many lines of data to retrieve each time. The default is set to 10. At least one record will be retrieved. |
Request Headers
The following table describes required and optional request headers.
Request Header | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api-version |
Response Header | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x-ms-hpc-authoritychain | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
x-ms-continuation-CurrentObjectNumber |
Element | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ArrayOfObject |
Property | Corresponding ISchedulerTask or ITaskId Property |
---|---|
TaskId | ISchedulerTask.TaskId |
Name | ISchedulerTask.Name |
State | ISchedulerTask.State |
PreviousState | ISchedulerTask.PreviousState |
MinCores | ISchedulerTask.MinimumNumberOfCores |
MaxCores | ISchedulerTask.MaximumNumberOfCores |
MinNodes | ISchedulerTask.MinimumNumberOfNodes |
MaxNodes | ISchedulerTask.MaximumNumberOfNodes |
MinSockets | ISchedulerTask.MinimumNumberOfSockets |
MaxSockets | ISchedulerTask.MaximumNumberOfSockets |
RuntimeSeconds | ISchedulerTask.Runtime |
SubmitTime | ISchedulerTask.SubmitTime |
CreateTime | ISchedulerTask.CreateTime |
EndTime | ISchedulerTask.EndTime |
ChangeTime | ISchedulerTask.ChangeTime |
StartTime | ISchedulerTask.StartTime |
ParentJobId | ISchedulerTask.ParentJobId |
CommandLine | ISchedulerTask.CommandLine |
WorkDirectory | ISchedulerTask.WorkDirectory |
RequiredNodes | ISchedulerTask.RequiredNodes |
DependsOn | ISchedulerTask.DependsOn |
IsExclusive | ISchedulerTask.IsExclusive |
IsRerunnable | ISchedulerTask.IsRerunnable |
StdOutFilePath | ISchedulerTask.StdOutFilePath |
StdInFilePath | ISchedulerTask.StdInFilePath |
StdErrFilePath | ISchedulerTask.StdErrFilePath |
ExitCode | ISchedulerTask.ExitCode |
RequeueCount | ISchedulerTask.RequeueCount |
StartValue | ISchedulerTask.StartValue |
EndValue | ISchedulerTask.EndValue |
IncrementValue | ISchedulerTask.IncrementValue |
ErrorMessage | ISchedulerTask.ErrorMessage |
Output | ISchedulerTask.Output |
UserBlob | ISchedulerTask.UserBlob |
Type | ISchedulerTask.Type |
IsServiceConcluded | ISchedulerTask.IsServiceConcluded |
FailJobOnFailure | ISchedulerTask.FailJobOnFailure |
FailJobOnFailureCount | ISchedulerTask.FailJobOnFailureCount |
AllocatedCoreIds | ISchedulerTask.AllocatedCoreIds |
AllocatedNodes | ISchedulerTask.AllocatedNodes |
HasRuntime | ISchedulerTask.HasRuntime |
JobTaskId | ITaskId.JobTaskId |
InstanceId | ITaskId.InstanceId |
TaskValidExitCodes | ISchedulerTask.ValidExitCodes |
Requirements
HPC Pack 2008 R2 with at least SP2, or a later version of HPC Pack.