summaryrefslogtreecommitdiff
path: root/scripts/snmp/vyatta-snmp.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-28 17:57:07 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-29 11:28:28 -0700
commit5b78ea49c31ed83d9fd1035cf6d31384760be5b2 (patch)
tree5cef89904ae55abe0385ef0c1e9538ae54c1190b /scripts/snmp/vyatta-snmp.pl
parent1345ceb1ce6b2f318a5b246fecac783d9ce37644 (diff)
downloadvyatta-cfg-quagga-5b78ea49c31ed83d9fd1035cf6d31384760be5b2.tar.gz
vyatta-cfg-quagga-5b78ea49c31ed83d9fd1035cf6d31384760be5b2.zip
Add net-snmp ifAlias hook
New script to produce ifAlias information from sysfs.
Diffstat (limited to 'scripts/snmp/vyatta-snmp.pl')
-rw-r--r--scripts/snmp/vyatta-snmp.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl
index e977d619..a812eb32 100644
--- a/scripts/snmp/vyatta-snmp.pl
+++ b/scripts/snmp/vyatta-snmp.pl
@@ -154,6 +154,9 @@ sub snmp_get_constants {
print "sysServices 14\n";
print "agentaddress ", join(',',@addr), "\n";
+ # add hook to read IF-MIB::ifAlias from sysfs
+ print "pass .1.3.6.1.2.1.31.1.1.1.18 /opt/vyatta/sbin/if-mib-alias\n";
+
print "smuxpeer .1.3.6.1.4.1.3317.1.2.2\n"; # ospfd
print "smuxpeer .1.3.6.1.4.1.3317.1.2.5\n"; # bgpd
print "smuxpeer .1.3.6.1.4.1.3317.1.2.3\n"; # ripd