title: what is the puppet agent status on the machine?
body: <p>I know about </p>
  
  <pre><code>puppet agent --disable "my message"  --verbose
  </code></pre>
  
  <p>but I would like to know at some point on a given machine, what is its puppet agent status. I don't see how to do it from</p>
  
  <pre><code>man puppet-agent
  </code></pre>
  
  <p>Is there an command that would tell me if the agent is enabled or disabled ?</p>
  
  <h2>Thank you.</h2>
  
  <h2>-</h2>
  
  <p>------------------- EDIT</p>
  
  <pre><code>CentOS release 6.6 (Final)
  
  bash-4.1$ puppet --version
  3.7.4
  bash-4.1$ file /usr/bin/puppet 
  /usr/bin/puppet: a /usr/bin/ruby script text executable
  </code></pre>
  
  <p>------------------- EDIT2</p>
  
  <p>Whether it is enabled or disabled, I always get this:</p>
  
  <pre><code>[root@p1al25 ~]# cat `sudo puppet agent --configprint agent_catalog_run_lockfile`
  cat: /var/lib/puppet/state/agent_catalog_run.lock: No such file or directory
  [root@p1al25 ~]# puppet agent --disable "my message"
  [root@p1al25 ~]# cat `sudo puppet agent --configprint agent_catalog_run_lockfile`
  cat: /var/lib/puppet/state/agent_catalog_run.lock: No such file or directory
  [root@p1al25 ~]# service puppet status
  puppet (pid  4387) is running...
  </code></pre>
  
  <p>------------------- EDIT3</p>
  
  <p>This one worked, thanks daxlerod</p>
  
  <pre><code>[root@p1al25 ~]# service puppet status
  puppet (pid  4387) is running...
  [root@p1al25 ~]# puppet agent --disable "my message" --verbose
  Notice: Disabling Puppet.
  [root@p1al25 ~]# cat `puppet agent --configprint agent_disabled_lockfile` 
  {"disabled_message":"reason not specified"}
  </code></pre>