449 lines
6.1 KiB
Bash
449 lines
6.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Test for RFC-1213MIB variable
|
|
#
|
|
#
|
|
|
|
HEADER RFC-1213 MIB SNMPv1 access
|
|
|
|
iclist="ic1 " # list invocable components
|
|
|
|
ic1="tp1 tp2 tp3 tp4 tp5 tp6 tp7 tp8 tp9 tp10 tp11 tp12 tp13 tp14 tp15 tp16 tp17 tp18 tp19 tp20 tp21 tp22 tp23 tp24 tp25 tp26 tp27 tp28 tp29 tp30 tp31 tp32 tp33 tp34 tp35 tp36 tp37 tp38 tp39 tp40 tp41 tp42 tp43 tp44 tp45 tp46 tp47 tp48 tp49 tp50 tp51 tp52 tp53 tp54 tp55 tp56 tp57 tp58 tp59 tp60 tp61 tp62 tp63 tp64 tp65 tp66 tp67 tp68 tp69 tp70 tp71 tp72 tp73 tp74 tp75 tp76 tp77 tp78 tp79 tp80 tp81 tp82 tp83 tp84 tp85 tp86 tp87 tp88 tp89 tp90 tp91 tp92 tp93 tp94 tp95 tp96 tp97 tp98 tp99 tp100 tp101 tp102 tp103 tp104 tp105 tp106 tp107 tp108"
|
|
|
|
|
|
config
|
|
|
|
tp1()
|
|
{
|
|
get_snmp_variable 1 system.sysDescr
|
|
}
|
|
tp2()
|
|
{
|
|
get_snmp_variable 1 system.sysObjectID
|
|
}
|
|
tp3()
|
|
{
|
|
get_snmp_variable 1 system.sysUpTime
|
|
}
|
|
tp4()
|
|
{
|
|
get_snmp_variable 1 system.sysContact
|
|
}
|
|
tp5()
|
|
{
|
|
get_snmp_variable 1 system.sysName
|
|
}
|
|
tp6()
|
|
{
|
|
get_snmp_variable 1 system.sysLocation
|
|
}
|
|
tp7()
|
|
{
|
|
get_snmp_variable 1 interfaces.ifNumber
|
|
}
|
|
tp8()
|
|
{
|
|
get_snmp_table 1 interfaces.ifTable
|
|
}
|
|
tp9()
|
|
{
|
|
get_snmp_table 1 at.atTable
|
|
}
|
|
tp10()
|
|
{
|
|
get_snmp_variable 1 ip.ipInReceives
|
|
}
|
|
tp11()
|
|
{
|
|
get_snmp_variable 1 ip.ipForwarding
|
|
}
|
|
tp12()
|
|
{
|
|
get_snmp_variable 1 ip.ipDefaultTTL
|
|
}
|
|
tp13()
|
|
{
|
|
get_snmp_variable 1 ip.ipInReceives
|
|
}
|
|
tp14()
|
|
{
|
|
get_snmp_variable 1 ip.ipInHdrErrors
|
|
}
|
|
tp15()
|
|
{
|
|
get_snmp_variable 1 ip.ipInAddrErrors
|
|
}
|
|
tp16()
|
|
{
|
|
get_snmp_variable 1 ip.ipForwDatagrams
|
|
}
|
|
tp17()
|
|
{
|
|
get_snmp_variable 1 ip.ipInUnknownProtos
|
|
}
|
|
tp18()
|
|
{
|
|
get_snmp_variable 1 ip.ipInDiscards
|
|
}
|
|
tp19()
|
|
{
|
|
get_snmp_variable 1 ip.ipInDelivers
|
|
}
|
|
tp20()
|
|
{
|
|
get_snmp_variable 1 ip.ipOutRequests
|
|
}
|
|
tp21()
|
|
{
|
|
get_snmp_variable 1 ip.ipOutDiscards
|
|
}
|
|
tp22()
|
|
{
|
|
get_snmp_variable 1 ip.ipOutNoRoutes
|
|
}
|
|
tp23()
|
|
{
|
|
get_snmp_variable 1 ip.ipReasmTimeout
|
|
}
|
|
tp24()
|
|
{
|
|
get_snmp_variable 1 ip.ipReasmReqds
|
|
}
|
|
tp25()
|
|
{
|
|
get_snmp_variable 1 ip.ipReasmOKs
|
|
}
|
|
tp26()
|
|
{
|
|
get_snmp_variable 1 ip.ipReasmFails
|
|
}
|
|
tp27()
|
|
{
|
|
get_snmp_variable 1 ip.ipFragOKs
|
|
}
|
|
tp28()
|
|
{
|
|
get_snmp_variable 1 ip.ipFragFails
|
|
}
|
|
tp29()
|
|
{
|
|
get_snmp_variable 1 ip.ipFragCreates
|
|
}
|
|
tp30()
|
|
{
|
|
get_snmp_variable 1 ip.ipRoutingDiscards
|
|
}
|
|
tp31()
|
|
{
|
|
get_snmp_table 1 ip.ipAddrTable
|
|
}
|
|
tp32()
|
|
{
|
|
get_snmp_table 1 ip.ipRouteTable
|
|
}
|
|
tp33()
|
|
{
|
|
get_snmp_table 1 ip.ipNetToMediaTable
|
|
}
|
|
tp34()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInMsgs
|
|
}
|
|
tp35()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInErrors
|
|
}
|
|
tp36()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInDestUnreachs
|
|
}
|
|
tp37()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInTimeExcds
|
|
}
|
|
tp38()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInParmProbs
|
|
}
|
|
tp39()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInSrcQuenchs
|
|
}
|
|
tp40()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInRedirects
|
|
}
|
|
tp41()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInEchos
|
|
}
|
|
tp42()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInEchoReps
|
|
}
|
|
tp43()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInTimestamps
|
|
}
|
|
tp44()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInTimestampReps
|
|
}
|
|
tp45()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInAddrMasks
|
|
}
|
|
tp46()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpInAddrMaskReps
|
|
}
|
|
tp47()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutMsgs
|
|
}
|
|
tp48()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutErrors
|
|
}
|
|
tp49()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutDestUnreachs
|
|
}
|
|
tp50()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutTimeExcds
|
|
}
|
|
tp51()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutParmProbs
|
|
}
|
|
tp52()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutSrcQuenchs
|
|
}
|
|
tp53()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutRedirects
|
|
}
|
|
tp54()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutEchos
|
|
}
|
|
tp55()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutEchoReps
|
|
}
|
|
tp56()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutTimestamps
|
|
}
|
|
tp57()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutTimestampReps
|
|
}
|
|
tp58()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutAddrMasks
|
|
}
|
|
tp59()
|
|
{
|
|
get_snmp_variable 1 icmp.icmpOutAddrMaskReps
|
|
}
|
|
tp60()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpActiveOpens
|
|
}
|
|
tp61()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpRtoAlgorithm
|
|
}
|
|
tp62()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpRtoMin
|
|
}
|
|
tp63()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpRtoMax
|
|
}
|
|
tp64()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpMaxConn
|
|
}
|
|
tp65()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpActiveOpens
|
|
}
|
|
tp66()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpPassiveOpens
|
|
}
|
|
tp67()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpAttemptFails
|
|
}
|
|
tp68()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpEstabResets
|
|
}
|
|
tp69()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpCurrEstab
|
|
}
|
|
tp70()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpInSegs
|
|
}
|
|
tp71()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpOutSegs
|
|
}
|
|
tp72()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpRetransSegs
|
|
}
|
|
tp73()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpInErrs
|
|
}
|
|
tp74()
|
|
{
|
|
get_snmp_variable 1 tcp.tcpOutRsts
|
|
}
|
|
tp75()
|
|
{
|
|
get_snmp_table 1 tcp.tcpConnTable
|
|
}
|
|
tp76()
|
|
{
|
|
get_snmp_variable 1 udp.udpInDatagrams
|
|
}
|
|
tp77()
|
|
{
|
|
get_snmp_variable 1 udp.udpNoPorts
|
|
}
|
|
tp78()
|
|
{
|
|
get_snmp_variable 1 udp.udpInErrors
|
|
}
|
|
tp79()
|
|
{
|
|
get_snmp_variable 1 udp.udpOutDatagrams
|
|
}
|
|
tp80()
|
|
{
|
|
get_snmp_table 1 udp.udpTable
|
|
}
|
|
tp81()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInPkts
|
|
}
|
|
tp82()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutPkts
|
|
}
|
|
tp83()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInBadVersions
|
|
}
|
|
tp84()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInBadCommunityNames
|
|
}
|
|
tp85()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInBadCommunityUses
|
|
}
|
|
tp86()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInASNParseErrs
|
|
}
|
|
tp87()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInTooBigs
|
|
}
|
|
tp88()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInNoSuchNames
|
|
}
|
|
tp89()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInBadValues
|
|
}
|
|
tp90()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInReadOnlys
|
|
}
|
|
tp91()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInGenErrs
|
|
}
|
|
tp92()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInTotalReqVars
|
|
}
|
|
tp93()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInTotalSetVars
|
|
}
|
|
tp94()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInGetRequests
|
|
}
|
|
tp95()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInGetNexts
|
|
}
|
|
tp96()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInSetRequests
|
|
}
|
|
tp97()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInGetResponses
|
|
}
|
|
tp98()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpInTraps
|
|
}
|
|
tp99()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutTooBigs
|
|
}
|
|
tp100()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutNoSuchNames
|
|
}
|
|
tp101()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutBadValues
|
|
}
|
|
tp102()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutGenErrs
|
|
}
|
|
tp103()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutGetRequests
|
|
}
|
|
tp104()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutGetNexts
|
|
}
|
|
tp105()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutSetRequests
|
|
}
|
|
tp106()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutGetResponses
|
|
}
|
|
tp107()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpOutTraps
|
|
}
|
|
tp108()
|
|
{
|
|
get_snmp_variable 1 snmp.snmpEnableAuthenTraps
|
|
}
|
|
|