Small and simple Ruby lib for querying opennetadmin via dcm.php including a dcm.pl replacement
require 'ona'
ona = ONA.new('https://www.example.com/ona/dcm.php')
puts ona.query('get_module_list')
If authentication is required:
ona = ONA.new('https://www.example.com/ona/dcm.php','username','password')
ONA module options are passed via ruby hash:
oan.query('my_module', { :key1 => value1, :key2 => value2, ... }
ona.rb
is a basic drop-in replacement for dcm.pl
ona.rb -l user -u https://www.example.com/ona/dcm.php -r my_module \
key1=value2 key2=value2 ...