diff options
author | Abdelouahed Haitoute <ahaitoute@rinis.nl> | 2014-05-01 15:16:02 +0200 |
---|---|---|
committer | Abdelouahed Haitoute <ahaitoute@rinis.nl> | 2014-05-01 15:16:02 +0200 |
commit | 7b344f5365c9ec2d4d746b14216cd09c0e40b2a6 (patch) | |
tree | f47c2f2fe813191aa8eeab1f2a2d6e95501fcb88 /scripts | |
parent | 2a583b1bdb0bcb5bb03ff642c4eee819de3bf50a (diff) | |
download | vyatta-cfg-system-7b344f5365c9ec2d4d746b14216cd09c0e40b2a6.tar.gz vyatta-cfg-system-7b344f5365c9ec2d4d746b14216cd09c0e40b2a6.zip |
Added feature to add smuxpeer entries in file /etc/snmp/snmpd.conf.
See VyOS bug 196 for more information about the feature request.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/snmp/vyatta-snmp.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl index 09ed84b8..7d00be97 100755 --- a/scripts/snmp/vyatta-snmp.pl +++ b/scripts/snmp/vyatta-snmp.pl @@ -215,6 +215,12 @@ sub snmp_get_values { print_community($config, $community); } + $config->setLevel("service snmp smuxpeer"); + my @smuxpeers = $config->returnValues(); + foreach my $smuxpeer (@smuxpeers) { + print "smuxpeer $smuxpeer \n"; + } + $config->setLevel($snmp_level); my $contact = $config->returnValue("contact"); if (defined $contact) { |