← 返回命令列表

Linux command

salt-run 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List connected minions

salt-run manage.up

List disconnected minions

salt-run manage.down

Run orchestration

salt-run state.orchestrate [orch.deploy]

Show job status

salt-run jobs.lookup_jid [job_id]

Check minion versions

salt-run manage.versions

说明

salt-run executes runner modules on the Salt master. Runners handle master-side operations like orchestration, job management, and cluster-wide tasks. Part of SaltStack configuration management.

参数

manage.up
List online minions.
manage.down
List offline minions.
state.orchestrate _sls_
Run orchestration state.
jobs.list_jobs
List recent jobs.
jobs.lookup_jid _jid_
Get job results.
--output _format_
Output format.

FAQ

What is the salt-run command used for?

salt-run executes runner modules on the Salt master. Runners handle master-side operations like orchestration, job management, and cluster-wide tasks. Part of SaltStack configuration management.

How do I run a basic salt-run example?

Run `salt-run manage.up` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does manage.up do in salt-run?

List online minions.