All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 758a70f4 authored by Leigh B Stoller's avatar Leigh B Stoller

Add download of HP MIB.

parent 42a25aa8
......@@ -7,10 +7,13 @@ use installvars;
my $MIBPATH = "/usr/local/share/snmp/mibs";
my $CISCO_MIB_FTP = "ftp://ftp.cisco.com/pub/mibs/v2";
my $HP_MIB_FTP = "http://www.emulab.net/downloads";
my @CISCO_MIBS = ("CISCO-SMI", "CISCO-TC", "CISCO-VTP-MIB", "CISCO-PAGP-MIB",
"CISCO-PRIVATE-VLAN-MIB", "CISCO-STACK-MIB", "CISCO-VLAN-MEMBERSHIP-MIB",
"CISCO-C2900-MIB", "BRIDGE-MIB", "CISCO-CONFIG-COPY-MIB");
"CISCO-C2900-MIB", "BRIDGE-MIB", "CISCO-CONFIG-COPY-MIB");
my @HP_MIBS = ("HP-ICF-OID");
sub Install($$$)
{
......@@ -23,7 +26,7 @@ sub Install($$$)
Phase "mibs", "Fetching Cisco MIBs", sub {
# Not needed in an inner elab, and it takes a long time.
PhaseSkip("Not needed in ELABINELAB")
if ($ELABINELAB);
if ($ELABINELAB && !$PROTOGENI_GENIRACK);
foreach my $mib (@CISCO_MIBS) {
my $localfile = "$MIBPATH/$mib.txt";
......@@ -34,6 +37,20 @@ sub Install($$$)
};
}
};
Phase "hpmibs", "Fetching HP MIBs", sub {
# Not needed in an inner elab, and it takes a long time.
PhaseSkip("Not needed in ELABINELAB")
if ($ELABINELAB && !$PROTOGENI_GENIRACK);
foreach my $mib (@HP_MIBS) {
my $localfile = "$MIBPATH/$mib.txt";
my $mibURL = "$HP_MIB_FTP/$mib.txt";
Phase "$mib", "Fetching $mib", sub {
DoneIfExists($localfile);
FetchFileFatal($mibURL,$localfile);
};
}
};
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment