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

          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.

          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.

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            If device not support SNMP version 2c, replace -v2c with -v1.

          • If you have problems with discovery or poller processes, please do and attach these debugs:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          People

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

            Dates

              Created:
              Updated:
              Resolved: