Summary of common commands of Saltstack

Source: Internet
Author: User
Three methods for finding the target minion are summarized in the common commands of Saltstack: salt & amp; 39; shell regular & amp; 39; command salt-E & amp; 39; prel regular & amp; 39; salt-N $ group command salt-L & amp; 39; server_id1, server_id2, server _ Saltstack common commands summarize three methods to find the target minion: salt 'shell regularize' command salt-E 'prel regularized' salt-N $ group command salt-L' server _ id1, server_id2, server_id3 'command to search based on bash glob: salt '*' sys.doc is searched by regular expression: salt-E '. * 'command. run 'ls-l | grep Foo' is searched by hostname: salt-L foo. bar. baz, quo. qux cmd. run 'PS aux | grep Foo' search for: salt-G' OS: Redhat 'test based on grains (various machine information. ping combines the preceding modes for hybrid search: salt-C 'G @ OS: Debian and webser * or E @ db. * 'test. ping common grains information: salt '*' grains. ls view the grains classification salt '*' grains. items view all grains information salt '*' grains. item osrelease view a certain grains information biosreleasedate: 03/07/2013 biosversion: 1.6.0 cpu_flags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx limit rdtscp lm limit pebs bts rep_good privilege limit pni kernel monitor kernel vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx kernel ida arat xsaveopt pln pts dts kernel vnmi flexpriority ept vpid cpu_model: intel (R) Xeon (R) CPU E5-2670 0 @ 2.60 GHz cpuarch: x86_64 defaultencoding: UTF8 defaultlanguage: en_US domain: localdomain fqdn: localhost. localdomain gpus: {'model': 'g200er2 ', 'bad': 'Unknown'} host: localhost id: ip_interfaces: {'lo': ['123. 0.0.1 '], 'eth3': [], 'eth2': [], 'eth1': [], 'eth0': ['10. 15.137.42 ']} ipv4: kernel: Linux kernelrelease: 2.6.32-279. el6.x86 _ 64 localhost: localhost. localdomain manufacturer: Dell Inc. master: mem_total: 193651 nodename: localhost. localdomain num_cpus: 32 num_gpus: 1 OS: RedHat OS _family: RedHat osarch: x86_64 oscodename: Santiago osfinger: Red Hat Enterprise Linux Server-6 osfullname: Red Hat Enterprise Linux Server osmajorrelease: 6 3 osrelease: 6.3 path:/sbin:/usr/sbin:/bin:/usr/bin productname: PowerEdge R720 ps: ps-efH pythonpath: /usr/bin/usr/lib64/libraries/usr/lib64/python2.6/usr/lib64/python2.6/plat-linux2/usr/lib64/python2.6/lib-tk/usr/lib64/python2.6 /lib-old/usr/lib64/python2.6/lib-dynload/usr/lib64/python2.6/site-packages/usr/lib64/python2.6/site-packages/gtk-2.0/usr/lib /python2.6/site-packages/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info pythonversion: saltpath:/usr/lib/python2.6/site-packages/salt saltversion: 0.16.4 serialnumber: C786BX1 server_id: 489250112 shell:/bin/sh virtual: physical
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.