Pdbhandson

From Gridkaschool
Revision as of 10:34, 4 September 2014 by BenJones (talk | contribs) (Created page with "As root on your VMs: # The following will make your lives easier, unless you like typing long curl commands: ## alias pdb="curl --cert /var/lib/puppet/ssl/certs/$(hostname)*.pem …")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

As root on your VMs:

  1. The following will make your lives easier, unless you like typing long curl commands:
    1. alias pdb="curl --cert /var/lib/puppet/ssl/certs/$(hostname)*.pem --key /var/lib/puppet/ssl/private_keys/$(hostname)*.pem -H 'Accept: application/json' -k”
    2. export baseurl=https://naf-school02.desy.de:8081
  2. pdb $baseurl/v3/nodes/<hostname>
    1. where <hostname> is the fqdn of your machine
  3. pdb $baseurl/v3/nodes/<hostname>/facts
  4. pdb $baseurl/v3/nodes/<hostname>/facts/uptime_seconds
  5. pdb $baseurl/v3/facts/uptime_seconds
  6. pdb $baseurl/v3/nodes/<hostname>/resources