I hereby claim:
- I am bdelano on github.
- I am bdelano (https://keybase.io/bdelano) on keybase.
- I have a public key ASATEIVjjEJEHdVTIzdwvGuPzbfwUqqJmOa9blXmjvVKggo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
0 info it worked if it ends with ok | |
1 verbose cli [ '/opt/pkg/bin/node', | |
1 verbose cli '/opt/pkg/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli '-g', | |
1 verbose cli 'git+https://github.com/joyent/node-sshpk#sshpk-crypt' ] | |
2 info using npm@6.2.0 | |
3 info using node@v8.11.2 | |
4 verbose npm-session 6575c58079a9d602 | |
5 silly install loadCurrentTree |
{"devinfo":["us-west-a-headnode","us-west-a","S12612523710147","f0be891e-3034-11e3-a9fb-002590c3eb84","Joyent","Joyent-Compute-Platform-1101","SunOS","20180427T064036Z","262111","2","2600","32","16","600","Production"],"deviceid":"1052","intinfo":{"igb0":{"MAC Address":"00:25:90:c3:eb:84","ip4addr":"10.0.82.6","Link Status":"up","NIC Names":["admin"]},"igb1":{"MAC Address":"00:25:90:c3:eb:85","ip4addr":"","Link Status":"down","NIC Names":[]},"igb2":{"MAC Address":"00:25:90:c3:eb:86","ip4addr":"","Link Status":"down","NIC Names":[]},"igb3":{"MAC Address":"00:25:90:c3:eb:87","ip4addr":"","Link Status":"down","NIC Names":[]},"ixgbe0":{"MAC Address":"90:e2:ba:4a:35:0c","ip4addr":"","Link Status":"up","NIC Names":["external","internal"]},"ixgbe1":{"MAC Address":"90:e2:ba:4a:35:0d","ip4addr":"","Link Status":"down","NIC Names":[]},"external0":{"MAC Address":"02:08:20:02:bf:fd","ip4addr":"8.12.46.196","Link Status":"up","Host Interface":"ixgbe0","VLAN":"331"},"ipmi1":{"MAC Address":"00:25:90:cc:e7:b6","ip4addr":"10. |
{ | |
"devinfo": { | |
"name": "us-west-a-headnode", | |
"sitename": "us-west-a", | |
"serial_no": "S12612523710147", | |
"uuid": "f0be891e-3034-11e3-a9fb-002590c3eb84", | |
"manufacturer": "Joyent", | |
"hardware": "Joyent-Compute-Platform-1101", | |
"operating_system": "SunOS", | |
"os_version": "20180730T090356Z", |
{ | |
"bios_version": "2.0", | |
"hostname": "us-west-a-headnode", | |
"processor": { | |
"count": "2", | |
"type": "Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz" | |
}, | |
"memory": { | |
"count": "16", | |
"total": "262" |
#!/usr/bin/bash | |
#set -x | |
# | |
# Copyright (c) 2018 Joyent Inc. | |
echo="/usr/bin/echo" | |
cat="/usr/bin/cat" | |
json="/usr/bin/json" | |
sed="/usr/bin/sed" | |
ajson=$(${cat} /var/tmp/dcim_agent.json) | |
cpu_count=$(${echo} $ajson | ${json} 'devinfo.cpu_count') |