summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAbdelouahed Haitoute <ahaitoute@rinis.nl>2014-05-01 15:16:02 +0200
committerAbdelouahed Haitoute <ahaitoute@rinis.nl>2014-05-01 15:16:02 +0200
commit7b344f5365c9ec2d4d746b14216cd09c0e40b2a6 (patch)
treef47c2f2fe813191aa8eeab1f2a2d6e95501fcb88 /scripts
parent2a583b1bdb0bcb5bb03ff642c4eee819de3bf50a (diff)
downloadvyatta-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-xscripts/snmp/vyatta-snmp.pl6
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) {