Sha256: dec4b78e5994228da1ef5c4d83acd292a090c7920d5be1dcc020f967018d60e8
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 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_units: '-OU', non_symbolic: '-Oe', 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 OID names, # symbolic values, and/or value units. The parser doesn't support these, # so disable them. REQUIRED_BY_PARSER = { '-Oe' => nil, '-On' => nil, '-OU' => nil }.freeze VALUES = { no_check_increasing: { true => '' }.freeze }.freeze end # class Options end # class Open end # module SNMP
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snmp-open-0.5.0 | lib/snmp/open/options.rb |
snmp-open-0.4.0 | lib/snmp/open/options.rb |