How to get agent or nodes list from Puppet master

If you are trying to list all the nodes connected to your puppet server, then you can use below command.

# puppet cert list --all

For example,

[root@puppetserver production]# puppet cert list --all
+ "debian.mylabserver.com"       (SHA256) 63:17:8A:7D:E1:94:D4:BA:F8:7E:E5:09:4A:D4:A4:67:0A:62:8C:EF:AE:F3:4B:35:33:48:8C:46:55:90:0C:F6
+ "puppetserver.mylabserver.com" (SHA256) D5:9F:9C:10:22:92:53:7C:29:F4:A6:E6:84:A2:53:FE:74:B6:9F:87:B0:55:65:A4:D4:5F:B9:CD:09:71:0E:FA (alt names: "DNS:puppet", "DNS:puppetserver.mylabserver.com")

Hope it helps.

Thank you.

Comments

Popular posts from this blog

grep: unknown device method

Uploading files to FTP/SFTP using CURL

How to find outgoing IP in Linux ?