Change the recommended snmpwalk capture options to ease parsing. (#4804)

Remove `t` we lose the declaration of the Timeticks: type with that
Add `U` removes unit suffixes.
Add `b` displays indexes numerically instead of as strings
This commit is contained in:
Tony Murray
2016-10-15 09:47:06 -05:00
committed by Neil Lathwood
parent d86b39395a
commit 980590b293
2 changed files with 2 additions and 2 deletions

View File

@@ -234,7 +234,7 @@ Replace the relevant information in these commands such as HOSTNAME and COMMUNIT
```bash
./discovery.php -h HOSTNAME -d -m os
./poller.php -h HOSTNAME -r -f -d -m os
snmpbulkwalk -Onet -v2c -c COMMUNITY HOSTNAME .
snmpbulkwalk -OUneb -v2c -c COMMUNITY HOSTNAME .
```
If possible please also provide what the OS name should be if it doesn't exist already.

View File

@@ -39,7 +39,7 @@ switch ($type) {
case 'snmpwalk':
$device = device_by_name(mres($hostname));
$cmd = gen_snmpwalk_cmd($device, '.', ' -Onet');
$cmd = gen_snmpwalk_cmd($device, '.', ' -OUneb');
if ($debug) {
$cmd .= ' 2>&1';