Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes my saltmaster hangs for a while on salt '*' waiting for downed minions to reply. Is there a way so see a list of connected minions, regardless of whether they respond to

share|improve this question
Why the downvote, please? – pate Aug 9 '13 at 21:23
up vote 47 down vote accepted

The official answer:

salt-run manage.up

Also useful are:

salt-run manage.status

salt-run manage.down
share|improve this answer
"salt-run -d" Gives a full list of all the modules you can run with salt-run, well worth a read – Chris Huang-Leaver Oct 23 '15 at 6:12

From the master type:

ls -1 /var/cache/salt/master/minions


ls -1 /etc/salt/pki/master/minions

Entering a faulty salt query (ex. salt '*' -) will also return a list of all the minions each followed by a message stating that the command is not available. You can grep/cut away the extraneous characters. Neither of these options are particularly elegant and the later doesn't address the timeout but it works while I'm looking for an answer to a similar question; "How to list all associated minions via the saltstack python api?".

share|improve this answer
I think something must have changed /var/cache/salt/master/minions appears to be a non-existent location now, /etc/salt/pki/master/minions is still good to go. – user81029 Nov 30 '15 at 16:46

"salt-key -L" will list all minions that whose public keys you've accepted on your master.

share|improve this answer
Thanks, but this lists accepted minion keys, not connected minions. – pate Aug 28 '13 at 9:37

To make ping to all minions, try on salt master node:

salt '*' 
share|improve this answer
Have you read the question? It specifically is about alternatives to your method because this doesn't work in some cases. – Sven 2 days ago

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.