Forrest logo
back to the salt-call tool

salt-call:ai:bc7ca

how do i get all salt grains on my current machine ?
$ salt-call grains.items --out=json
try on your machine

To retrieve all the Salt grains on your Linux machine, execute the following command:

salt-call grains.items --out=json
  • Command: salt-call grains.items --out=json
  • Description: This command uses salt-call to call the grains.items function and retrieves all the grains available on your machine. The --out=json flag specifies the output format as JSON, providing a structured representation of the grains data.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how do i get all salt grains on my current machine ? ?
  • how do I get the list of grains on a machine ? ?
back to the salt-call tool