Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the salt-master commands?

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What are the salt-master commands? for this question, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

* * salt-master command * *

Command line official website learning website: http://docs.saltstack.cn/ref/cli/index.html

Salt

Salt-call

Salt-cp

Salt-key

Salt-master

Salt-minion

Salt-run

Salt-unity

1. Salt common commands

Salt this command executes the execution module of salt, which usually runs on the masterside, and is also the most commonly used command.

Salt [options]''[arguments]

Such as: salt'* 'test.ping

II. Salt-run

Salt-run this command executes runner (salt with or custom, which runner will talk about later), which is usually executed on the masterside, such as the frequently used manage.

Salt-run [options] [runner.func]

Salt-run manage.status # View all minion status

Salt-run manage.down # check all minion that are not online

Salt-run manged.up # View all online minion

III. Salt-key

Salt-key key management, usually performed on the masterside

Salt-key [options]

Salt-key-L # View all minion-key

Salt-key-a # accepts a minion-key

Salt-key-d # Delete a minion-key

Salt-key-A # accepts all minion-key

Salt-key-D # Delete all minion-key

IV. Salt-call

Salt-call this command is usually executed on minion, and minion executes the executable module itself, not job through master

Salt-call [options] [arguments]

Salt-call test.ping # execute the test.ping command yourself

Salt-call cmd.run 'ifconfig' # executes the cmd.run function itself

5. Salt-cp

Salt-cp distributes files to minion. Directory distribution is not supported. It is usually run on master.

Salt-cp [options]''SOURCE DEST

[root@salt-master ~] # salt-cp'*'/ root/m.txt / usr/local/m.txt

VI. Salt-master

Salt-master master run command

Salt-master [options]

Salt-master # running master in the foreground

Salt-master-d # background running master

Salt-master-l debug # foreground debug output

7. Salt-minion

Salt-minion minion run command

Salt-minion [options]

Salt-minion # foreground operation

Salt-minion-d # running in the background

Salt-minion-l debug # foreground debug output

The answers to the questions about the salt-master command are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report