Difference between revisions of "Pdbhandson"
From Gridkaschool
(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 …") |
|||
(One intermediate revision by the same user not shown) | |||
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- |
+ | ## export baseurl=https://naf-school04.desy.de:8081 |
− | # pdb $baseurl/v3/nodes/<hostname> |
+ | # pdb $baseurl/v3/nodes/<hostname> # where <hostname> is the fqdn of your machine |
− | ## where <hostname> is the fqdn of your machine |
||
# pdb $baseurl/v3/nodes/<hostname>/facts |
# pdb $baseurl/v3/nodes/<hostname>/facts |
||
# pdb $baseurl/v3/nodes/<hostname>/facts/uptime_seconds |
# pdb $baseurl/v3/nodes/<hostname>/facts/uptime_seconds |
Latest revision as of 10:14, 8 September 2015
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 --key /var/lib/puppet/ssl/private_keys/$(hostname)*.pem -H 'Accept: application/json' -k”
- 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>/facts
- pdb $baseurl/v3/nodes/<hostname>/facts/uptime_seconds
- pdb $baseurl/v3/facts/uptime_seconds
- pdb $baseurl/v3/nodes/<hostname>/resources