Module: SNMPTableViewer

Defined in:
lib/snmp_table_viewer.rb,
lib/snmp_table_viewer/fetcher.rb,
lib/snmp_table_viewer/converter.rb,
lib/snmp_table_viewer/formatter.rb,
lib/snmp_table_viewer/formatter/csv.rb,
lib/snmp_table_viewer/formatter/raw.rb,
lib/snmp_table_viewer/formatter/json.rb,
lib/snmp_table_viewer/formatter/table.rb,
lib/snmp_table_viewer/converter/if_table.rb

Defined Under Namespace

Classes: Converter, Fetcher, Formatter

Constant Summary collapse

HEADINGS_FOR =
{
    'ifTable' => ['Index', 'Descr', 'Type', 'Mtu', 'Speed', 'PhysAddress', 'AdminStatus', 'OperStatus', 'LastChange', 'InOctets', 'InUcastPkts', 'InNUcastkts', 'InDiscards', 'InErrors', 'InUnknownPrortos', 'OutOctets', 'OutUcastPkts', 'OutNUcastPkts', 'OutDiscards', 'OutErrors', 'OutQLen', 'Specific'],
}.freeze
FORMATTERS =
{
    'table' => SNMPTableViewer::Formatter::Table,
    'csv' =>   SNMPTableViewer::Formatter::CSV,
    'json' =>  SNMPTableViewer::Formatter::JSON,
    'raw' =>   SNMPTableViewer::Formatter::Raw,
}.freeze
CONVERTERS =
{
  'iftable' => SNMPTableViewer::Converter::IfTable,
}.freeze
BASE_OIDS =
{
  'iftable' => '1.3.6.1.2.1.2.2',
}.freeze