head.daveops.net

Snippets for yer computer needs

SmartDataCenter

SmartDataCenter

@SmartOS

Find VM by alias

sdc-vmapi /vms json -H -c “this.alias && this.alias.match(/riak/)”

Output fwapi rules

sdc-fwapi /rules

Update resolvers

sdc-vmapi /vms/?action=update -d '{ "resolvers": ["8.8.8.8", "8.8.4.4"] }'