Skip to content

Commit

Permalink
default generate per vendor report and one for all MIBs
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyg committed Sep 14, 2017
1 parent 8c62cf2 commit 8533cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXTRAS/scripts/genxlate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
# genxlate [vendor|*] - run snmptranslate on MIBs and save output
# no param will make a single report for all MIBs
# no param will make a single report for all MIBs and one for each vendor

use strict;
use warnings;
Expand Down Expand Up @@ -34,7 +34,7 @@ if ($vendor and !exists $mibs_for->{$vendor} and $vendor ne '*') {
}
my @vendors = (defined $vendor)
? (($vendor eq '*') ? (sort keys %{$mibs_for}) : ($vendor))
: ('all');
: ((sort keys %{$mibs_for}), 'all');

foreach my $v (@vendors) {
my $mibs = ($v eq 'all') ? 'ALL' : (join ':', sort @{$mibs_for->{$v}});
Expand Down

0 comments on commit 8533cc0

Please sign in to comment.