Sha256: 8263046c66759683d6ceb8ba5912dd584265406355e1e23984c8e997938a2e82
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
module SNMP class Open class Options # see snmpcmd(1) for explanation of options MAP = { version: '-v', auth_password: '-A', auth_protocol: '-a', community: '-c', context: '-n', no_check_increasing: { 'snmpbulkwalk' => '-Cc', 'snmpwalk' => '-Cc' }, no_mib_name: '-Os', no_units: '-OU', non_symbolic: '-Oe', non_symbolic_table_indexes: '-Ob', numeric: '-On', priv_password: '-X', # not recommended, see snmp.conf(5) priv_protocol: '-x', sec_level: '-l', sec_user: '-u', retries: '-r', timeout: '-t', host: nil }.freeze # On some systems, SNMP command outputs will include symbolic values, # table indexes, and/or value units. The parser doesn't support these, so # disable them. REQUIRED_BY_PARSER = { '-Ob' => nil, '-Oe' => nil, '-OU' => nil }.freeze VALUES = { no_check_increasing: { true => '' }.freeze }.freeze end # class Options end # class Open end # module SNMP
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
snmp-open-0.8.0 | lib/snmp/open/options.rb |
snmp-open-0.7.1 | lib/snmp/open/options.rb |
snmp-open-0.7.0 | lib/snmp/open/options.rb |