From 7b344f5365c9ec2d4d746b14216cd09c0e40b2a6 Mon Sep 17 00:00:00 2001 From: Abdelouahed Haitoute Date: Thu, 1 May 2014 15:16:02 +0200 Subject: Added feature to add smuxpeer entries in file /etc/snmp/snmpd.conf. See VyOS bug 196 for more information about the feature request. --- scripts/snmp/vyatta-snmp.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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) { -- cgit v1.2.3