Skip to content

Instantly share code, notes, and snippets.

@mbornoz
Created April 10, 2013 13:47
Show Gist options
  • Save mbornoz/5354771 to your computer and use it in GitHub Desktop.
Save mbornoz/5354771 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'mcollective'
include MCollective::RPC
mc = rpcclient('augeasquery')
mc.query(:query => '/files/etc/mtab/*[vfstype="nfs"]/spec').each do |resp|
resp[:data][:matched].each do |v|
puts "#{resp[:sender]} #{v[/=.(.*)/]}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment