Skip to content

Ruby lib for querying opennetadmin via dcm.php including a dcm.pl replacement

License

Notifications You must be signed in to change notification settings

GSI-HPC/ruby-opennetadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-opennetadmin

Small and simple Ruby lib for querying opennetadmin via dcm.php including a dcm.pl replacement

Example

require 'ona'

ona = ONA.new('http://www.example.com/ona/dcm.php')
puts ona.query('get_module_list')

If authentication is required:

ona = ONA.new('http://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

ona.rb is a basic drop-in replacement for dcm.pl

ona.rb -l user -u http://www.example.com/ona/dcm.php -r my_module \
       key1=value2 key2=value2 ...

About

Ruby lib for querying opennetadmin via dcm.php including a dcm.pl replacement

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages