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
Feb 3, 2025
Feb 2, 2025
Feb 3, 2025
Feb 2, 2025
Feb 3, 2025
Feb 1, 2025
Feb 1, 2025
Feb 2, 2025
Feb 2, 2025
Feb 3, 2015
Feb 1, 2025
Feb 3, 2025
Feb 3, 2025

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 ...