mc batch status
mc batch status outputs the statuses of jobs currently running.
Syntax
The following command outputs the status of the specified job with JobID KwSysDpxcBU9FNhGkn2dCf currently in progress on the myaistor alias.
mc batch status myaistor "KwSysDpxcBU9FNhGkn2dCf"The output of the above command is similar to the following:
●∙∙
JobType: replicate
Objects: 28766
Versions: 28766
FailedObjects: 0
DeleteMarker: 6
FailedDeleteMarker: 0
Transferred: 406 MiB
Elapsed: 2m14.227222868s
CurrObjName: share/doc/xml-core/examples/foo.xmlcatalogsThe command has the following syntax:
mc [GLOBALFLAGS] batch status TARGET \
["JOBID"] \
[--all]- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
TARGET
Required
The alias for which to display batch job statuses.
JOBID
Optional
The unique identifier of a job to summarize.
To find the ID of a job, use mc batch list.
If not specified, the command returns a summary for the current active batch job.
--all
Optional
Shows a summary of all batch jobs run in the last 3 days.
Global flags
This command supports any of the global flags.
Example
Summarize the events of an active job
The following command provides the real-time summary of an active job on the deployment at alias myaistor:
mc batch status myaistor "KwSysDpxcBU9FNhGkn2dCf"- Replace
myaistorwith thealiasof the MinIO AIStor deployment that should run the job.
The output of the above command is similar to the following:
●∙∙
JobType: replicate
Objects: 28766
Versions: 28766
FailedObjects: 0
Transferred: 406 MiB
Elapsed: 2m14.227222868s
CurrObjName: share/doc/xml-core/examples/foo.xmlcatalogsS3 compatibility
The mc command-line tool is built for compatibility with the AWS S3 API and is tested with MinIO AIStor and AWS S3 for expected functionality and behavior.
MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported.
While MinIO AIStor mc commands may work as documented, any such usage is at your own risk.
Permissions
You must have either the admin:DescribeBatchJob or the admin:ServerInfo permission to read job status on the deployment.