Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4430

made a script for easyer get SNMP-dump

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Scripts
    • None

    Description

      Hi

      I have made a shell scipt that can be use for getting SNMP dump of device

      Attachments

        Activity

          [OBS-4430] made a script for easyer get SNMP-dump
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]

          In r13135 added script for make snmpdump.

          $ ./scripts/snmpdump.php
           
          USAGE:
          snmpdump.php [-cqdV] -h device [-f filename]
           
          EXAMPLE:
           ./scripts/snmpdump.php -c -h <device>       Show snmpwalk commands for make snmpdump specific device (exist in db)
           ./scripts/snmpdump.php -h <device>          Make snmpdump for specific device (exist in db) to file <hostname>.snmpwalk
           
           ./scripts/snmpdump.php -h <hostname> <community>  Make snmpdump for specific hostname with v2 community to file <hostname>.snmpwalk
                                                             Can use snmp v1/2c/3 auth params same as for ./add_device.php
           
          OPTIONS:
           -h <device id> | <device hostname>          Device hostname or id (required).
           -f                                          Filename for store snmpdump (default: <hostname>.snmpwalk).
                                                       For write to stdout use -f stdout
           -c                                          Show snmpwalk commands for self run.
           -o                                          Start Numeric Oid (default: .)
           -q                                          Quiet output.
           -V                                          Show observium version and exit.
           -VV                                         Show observium and used programs versions and exit.
           
          DEBUGGING OPTIONS:
           -d                                          Enable debugging output.
           -dd                                         More verbose debugging output.
          

          landy Mike Stupalov added a comment - In r13135 added script for make snmpdump. $ ./scripts/snmpdump.php   USAGE: snmpdump.php [-cqdV] -h device [-f filename]   EXAMPLE: ./scripts/snmpdump.php -c -h <device> Show snmpwalk commands for make snmpdump specific device (exist in db) ./scripts/snmpdump.php -h <device> Make snmpdump for specific device (exist in db) to file <hostname>.snmpwalk   ./scripts/snmpdump.php -h <hostname> <community> Make snmpdump for specific hostname with v2 community to file <hostname>.snmpwalk Can use snmp v1/2c/3 auth params same as for ./add_device.php   OPTIONS: -h <device id> | <device hostname> Device hostname or id (required). -f Filename for store snmpdump (default: <hostname>.snmpwalk). For write to stdout use -f stdout -c Show snmpwalk commands for self run. -o Start Numeric Oid (default: .) -q Quiet output. -V Show observium version and exit. -VV Show observium and used programs versions and exit.   DEBUGGING OPTIONS: -d Enable debugging output. -dd More verbose debugging output.
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          yah, it's already in our todo for simplify get dumps.

          landy Mike Stupalov added a comment - yah, it's already in our todo for simplify get dumps.
          landy Mike Stupalov made changes -
          Assignee Original: Adam Armstrong [ adama ] New: Mike Stupalov [ landy ]
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: In Review [ 10101 ]
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          Eideen Torstein Eide made changes -
          Attachment New: observium-SNMP-dump-dev.sh [ 20532 ]
          bot Observium Bot made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          Eideen Torstein Eide created issue -

          People

            landy Mike Stupalov
            Eideen Torstein Eide
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: