Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
Description
Hi
I have made a shell scipt that can be use for getting SNMP dump of device
Hi
I have made a shell scipt that can be use for getting SNMP dump of device
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.