blob: 186e8f357cdf93a01adba6944a66467a8bbcfd43 [file] [log] [blame]
RFCHOST = ftp.nordu.net # ftp.ietf.org
RFCDIR = rfc
IANAHOST = ftp.iana.org
IANADIR = mib
MIBS = SNMPv2-TC.txt SNMPv2-TM.txt SNMPv2-SMI.txt SNMPv2-MIB.txt \
SNMPv2-CONF.txt HCNUM-TC.txt INET-ADDRESS-MIB.txt \
SNMP-FRAMEWORK-MIB.txt SNMP-MPD-MIB.txt SNMP-USER-BASED-SM-MIB.txt \
SNMP-VIEW-BASED-ACM-MIB.txt SNMP-COMMUNITY-MIB.txt \
SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt SNMP-PROXY-MIB.txt \
AGENTX-MIB.txt SMUX-MIB.txt \
DISMAN-SCRIPT-MIB.txt DISMAN-SCHEDULE-MIB.txt \
IANA-LANGUAGE-MIB.txt IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt \
IF-MIB.txt IF-INVERTED-STACK-MIB.txt \
IP-MIB.txt IP-FORWARD-MIB.txt TCP-MIB.txt UDP-MIB.txt \
IANAifType-MIB.txt EtherLike-MIB.txt \
IPV6-TC.txt IPV6-MIB.txt IPV6-ICMP-MIB.txt \
IPV6-TCP-MIB.txt IPV6-UDP-MIB.txt \
HOST-RESOURCES-MIB.txt HOST-RESOURCES-TYPES.txt \
NETWORK-SERVICES-MIB.txt MTA-MIB.txt \
RMON-MIB.txt \
RFC1155-SMI.txt RFC1213-MIB.txt
MIBDEPS = Makefile.mib mibfetch smistrip
all: $(MIBS)
allmibs: ianamibs rfcmibs
clean:
rm $(MIBS)
SNMP-FRAMEWORK-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2571
SNMP-MPD-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2572 SNMP-MPD-MIB
SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt SNMP-PROXY-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2573
SNMP-USER-BASED-SM-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2574 SNMP-USER-BASED-SM-MIB
SNMP-VIEW-BASED-ACM-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2575
SNMP-COMMUNITY-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2576
SNMPv2-SMI.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2578 SNMPv2-SMI
SNMPv2-TC.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2579
SNMPv2-CONF.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2580
SNMPv2-TM.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 1906
SNMPv2-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 1907
AGENTX-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2742
SMUX-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 1227 SMUX-MIB
DISMAN-SCHEDULE-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2591
DISMAN-SCRIPT-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2592
IF-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2863
IF-INVERTED-STACK-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2864
HCNUM-TC.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2856
INET-ADDRESS-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2851
EtherLike-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2665
IANAifType-MIB.txt: $(MIBDEPS)
./mibfetch $(IANAHOST) $(IANADIR) ianaiftype.mib
IANA-LANGUAGE-MIB.txt: $(MIBDEPS)
./mibfetch $(IANAHOST) $(IANADIR) ianalanguage.mib
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt: $(MIBDEPS)
./mibfetch $(IANAHOST) $(IANADIR) ianaaddressfamilynumbers.mib
IP-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2011
IP-FORWARD-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2096
TCP-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2012
UDP-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2013
IPV6-TC.txt IPV6-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2465
IPV6-ICMP-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2466
IPV6-TCP-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2452
IPV6-UDP-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2454
HOST-RESOURCES-MIB.txt HOST-RESOURCES-TYPES.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2790
RMON-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 1757
NETWORK-SERVICES-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2788
MTA-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 2789
RFC1155-SMI.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 1155
RFC1213-MIB.txt: $(MIBDEPS)
./mibfetch $(RFCHOST) $(RFCDIR) 1213
ianamibs: ianalist
cat ianalist | while read file mibs; \
do \
if [ "$$file" != "#" ]; \
then \
./mibfetch $(IANAHOST) $(IANADIR) $$file $$mibs; \
fi; \
done
rfcmibs: rfclist
cat rfclist | while read rfc mibs; \
do \
if [ "$$rfc" != "#" ]; \
then \
./mibfetch $(RFCHOST) $(RFCDIR) $$rfc $$mibs; \
fi; \
done