Difference between revisions of "Pdbhandson"

From Gridkaschool
 
Line 2: Line 2:
 
# The following will make your lives easier, unless you like typing long curl commands:
 
# 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 --key /var/lib/puppet/ssl/private_keys/$(hostname)*.pem -H 'Accept: application/json' -k”
 
## 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”
## export baseurl=https://naf-school02.desy.de:8081
+
## export baseurl=https://naf-school04.desy.de:8081
 
# pdb $baseurl/v3/nodes/<hostname> # where <hostname> is the fqdn of your machine
 
# pdb $baseurl/v3/nodes/<hostname> # where <hostname> is the fqdn of your machine
 
# pdb $baseurl/v3/nodes/<hostname>/facts
 
# pdb $baseurl/v3/nodes/<hostname>/facts

Latest revision as of 10:14, 8 September 2015

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-school04.desy.de:8081
  2. pdb $baseurl/v3/nodes/<hostname> # 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