...
| Тип интерфейса | Индекс интерфейса |
|---|---|
| gigabitethernet | 1 |
| tengigabitethernet | 49 |
| port-channel | 1001 |
| loopback | 13001 |
| serial | 23001 |
| modem | 24001 |
1
...
Команды для снятия параметров устройства в SNMP
...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
Команда для получения таблицы значений: snmpwalk -v2c -c public 192.168.0.1 1.3.6.1.4.1.9.9.109.1.1.1.1.3 iso.3.6.1.4.1.9.9.109.1.1.1.1.3.0 = Gauge32: 3 iso.3.6.1.4.1.9.9.109.1.1.1.1.3.1 = Gauge32: 0 iso.3.6.1.4.1.9.9.109.1.1.1.1.3.2 = Gauge32: 0 iso.3.6.1.4.1.9.9.109.1.1.1.1.3.3 = Gauge32: 0 Команда для получения конкретного значения: snmpget -v2c -c public 192.168.0.1 1.3.6.1.4.1.9.9.109.1.1.1.1.3.0 iso.3.6.1.4.1.9.9.109.1.1.1.1.3.0 = Gauge32: 3 |
| Scroll Pagebreak |
|---|
Просмотр всех зарегистрированных OID-ов на устройстве
...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
esr#scs# show snmp oids OID Object ------------------------------------------------ ------------------------------------------------ .1.0.8802.1.1.2.1.2.6 lldpStatsTxPortTable .1.0.8802.1.1.2.1.2.7 lldpStatsRxPortTable .1.0.8802.1.1.2.1.3.1 lldpLocChassisIdSubtype .1.0.8802.1.1.2.1.3.2 lldpLocChassisId .1.0.8802.1.1.2.1.3.3 lldpLocSysName .1.0.8802.1.1.2.1.3.4 lldpLocSysDesc .1.0.8802.1.1.2.1.3.5 lldpLocSysCapSupported .1.0.8802.1.1.2.1.3.6 lldpLocSysCapEnabled .1.0.8802.1.1.2.1.3.7 lldpLocPortTable .1.0.8802.1.1.2.1.3.8 lldpLocManAddrTable .1.0.8802.1.1.2.1.4.1 lldpRemTable .1.0.8802.1.1.2.1.4.2 lldpRemManAddrTable .1.3.6.1.2.1.1.1 sysDescr .1.3.6.1.2.1.1.2 sysObjectID .1.3.6.1.2.1.1.3 sysUpTime .1.3.6.1.2.1.1.4 sysContact .1.3.6.1.2.1.1.5 sysName .1.3.6.1.2.1.1.6 sysLocation .1.3.6.1.2.1.1.7 sysServices .1.3.6.1.2.1.1.8 sysORLastChange .1.3.6.1.2.1.1.9 sysORTable .1.3.6.1.2.1.2.1 ifNumber .1.3.6.1.2.1.2.2 ifTable .1.3.6.1.2.1.4.1 ipForwarding .1.3.6.1.2.1.4.2 ipDefaultTTL .1.3.6.1.2.1.4.13 ipReasmTimeout .1.3.6.1.2.1.4.24.6 inetCidrRouteNumber .1.3.6.1.2.1.4.24.7 inetCidrRouteTable .1.3.6.1.2.1.4.25 ipv6IpForwarding .1.3.6.1.2.1.4.26 ipv6IpDefaultHopLimit .1.3.6.1.2.1.4.31.1 ipSystemStatsTable .1.3.6.1.2.1.4.31.2 ipIfStatsTableLastChange .1.3.6.1.2.1.4.31.3 ipIfStatsTable .1.3.6.1.2.1.4.32 ipAddressPrefixTable .1.3.6.1.2.1.4.33 ipAddressSpinLock .1.3.6.1.2.1.4.34 ipAddressTable .1.3.6.1.2.1.4.35 ipNetToPhysicalTable .1.3.6.1.2.1.4.36 ipv6ScopeZoneIndexTable .1.3.6.1.2.1.5.29 icmpStatsTable .1.3.6.1.2.1.5.30 icmpMsgStatsTable .1.3.6.1.2.1.10.131.1.1.1 .1.3.6.1.2.1.16.1.1 tunnelIfTable etherStatsTable .1.3.6.1.2.1.10.13117.1.1.2 tunnelConfigTable dot1dBaseBridgeAddress .1.3.6.1.2.1.1025.131.1.1.31.2 hrSystemDate tunnelInetConfigTable .1.3.6.1.2.1.1626.12.1 ifMauTable etherStatsTable .1.3.6.1.2.1.1731.1.1 ifXTable dot1dBaseBridgeAddress .1.3.6.1.2.1.47.251.1.21 hrSystemDate entPhysicalTable .1.3.6.1.24.1.269.2.19.9 tsMsgSend ifMauTable .1.3.6.1.24.1.9.9.3148.1.1 ifXTable ciscoMemoryPoolTable .1.3.6.1.24.1.9.9.47109.1.1.1 entPhysicalTablecpmCPUTotalTable .1.3.6.1.4.1.9.9.168.1.2.9.91 cntpPeersVarTable tsMsgSend .1.3.6.1.4.1.9.9.285.481.1.1 portChannelTable ciscoMemoryPoolTable .1.3.6.1.4.1.989.9.109.1.12.13.1 cpmCPUTotalTable rndActiveSoftwareFileTable .1.3.6.1.4.1.989.92.16816.1.2.1 cntpPeersVarTablerndImageInfoTable .1.3.6.1.4.1.989.9.285.1.1.153.15 portChannelTable rlPhdUnitEnvParamTable .1.3.6.1.4.1.892021.2.134.1 memIndex rndActiveSoftwareFileTable .1.3.6.1.4.1.2021.894.2.16.1 memErrorName rndImageInfoTable .1.3.6.1.4.1.892021.53.154.3 memTotalSwap rlPhdUnitEnvParamTable .1.3.6.1.4.1.2021.4.14 memIndex memAvailSwap .1.3.6.1.4.1.2021.4.25 memErrorNamememTotalReal .1.3.6.1.4.1.2021.4.36 memTotalSwapmemAvailReal .1.3.6.1.4.1.2021.4.47 memAvailSwap memTotalSwapTXT .1.3.6.1.4.1.2021.4.58 memTotalReal memAvailSwapTXT .1.3.6.1.4.1.2021.4.69 memAvailReal memTotalRealTXT .1.3.6.1.4.1.2021.4.710 memAvailRealTXT memTotalSwapTXT .1.3.6.1.4.1.2021.4.811 memTotalFree memAvailSwapTXT .1.3.6.1.4.1.2021.4.912 memMinimumSwap memTotalRealTXT .1.3.6.1.4.1.2021.4.1013 memShared memAvailRealTXT .1.3.6.1.4.1.2021.4.1114 memBuffer memTotalFree .1.3.6.1.4.1.2021.4.1215 memCached memMinimumSwap .1.3.6.1.4.1.2021.4.1316 memShared memUsedSwapTXT .1.3.6.1.4.1.2021.4.1417 memBuffer memUsedRealTXT .1.3.6.1.4.1.2021.4.15100 memCached memSwapError .1.3.6.1.4.1.2021.4.16101 memSwapErrMsg memUsedSwapTXT .1.3.6.1.4.1.2021.4.1710 laTable memUsedRealTXT .1.3.6.1.4.1.2021.4.10011.1 ssIndex memSwapError .1.3.6.1.4.1.2021.4.10111.2 ssErrorName memSwapErrMsg .1.3.6.1.4.1.2021.11.103 ssSwapIn laTable .1.3.6.1.4.1.2021.11.14 ssIndex ssSwapOut .1.3.6.1.4.1.2021.11.25 ssIOSent ssErrorName .1.3.6.1.4.1.2021.11.36 ssSwapIn ssIOReceive .1.3.6.1.4.1.2021.11.47 ssSwapOut ssSysInterrupts .1.3.6.1.4.1.2021.11.58 ssIOSent ssSysContext .1.3.6.1.4.1.2021.11.69 ssCpuUser ssIOReceive .1.3.6.1.4.1.2021.11.710 ssCpuSystem ssSysInterrupts .1.3.6.1.4.1.2021.11.811 ssCpuIdle ssSysContext .1.3.6.1.4.1.2021.11.950 ssCpuUser ssCpuRawUser .1.3.6.1.4.1.2021.11.1051 ssCpuSystem ssCpuRawNice .1.3.6.1.4.1.2021.11.1152 ssCpuIdle ssCpuRawSystem .1.3.6.1.4.1.2021.11.5053 ssCpuRawUserssCpuRawIdle .1.3.6.1.4.1.2021.11.5154 ssCpuRawNicessCpuRawWait .1.3.6.1.4.1.2021.11.5255 ssCpuRawSystemssCpuRawKernel .1.3.6.1.4.1.2021.11.5356 ssCpuRawIdlessCpuRawInterrupt .1.3.6.1.4.1.2021.11.5457 ssIORawSent ssCpuRawWait .1.3.6.1.4.1.2021.11.5558 ssCpuRawKernel ssIORawReceived .1.3.6.1.4.1.2021.11.5659 ssRawInterrupts ssCpuRawInterrupt .1.3.6.1.4.1.2021.11.5760 ssIORawSent ssRawContexts .1.3.6.1.4.1.2021.11.5861 ssIORawReceivedssCpuRawSoftIRQ .1.3.6.1.4.1.2021.11.5962 ssRawSwapIn ssRawInterrupts .1.3.6.1.4.1.2021.11.6063 ssRawSwapOut ssRawContexts .1.3.6.1.4.1.2021.11.6164 ssCpuRawSteal ssCpuRawSoftIRQ .1.3.6.1.4.1.2021.11.6265 ssRawSwapInssCpuRawGuest .1.3.6.1.4.1.2021.11.6366 ssRawSwapOutssCpuRawGuestNice .1.3.6.1.4.1.2021.11.6467 ssCpuRawSteal ssCpuNumCpus .1.3.6.1.4.1.2021.11.65 ssCpuRawGuest .1.3.6.1.4.1.202135265.11.665.1 eltexFileTable ssCpuRawGuestNice .1.3.6.1.4.1.202135265.11.67 5.2 ssCpuNumCpus .1.3.6.1.4.1.35265.1.147.2.2.1.2.1 eltEsrIpSlaCandConfGeneralTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.2 eltEsrIpSlaRunConfGeneralTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.3 eltEsrIpSlaCandConfTestTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.4 eltEsrIpSlaRunConfTestTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.5 eltEsrIpSlaCandConfScheduleTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.6 eltEsrIpSlaRunConfScheduleTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.7 eltEsrIpSlaCandConfThresholdTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.8 eltEsrIpSlaRunConfThresholdTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.9 eltEsrIpSlaCandConfResponderTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.10 eltEsrIpSlaRunConfResponderTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.11 eltEsrIpSlaCandConfResponderGeneralTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.12 eltEsrIpSlaRunConfResponderGeneralTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.13 eltEsrIpSlaCandConfLoggingTable .1.3.6.1.4.1.35265.1.147.2.2.1.2.14 eltEsrIpSlaRunConfLoggingTable .1.3.6.1.4.1.35265.1.147.2.2.1.3.1 eltEsrIpSlaStatTestTable .1.3.6.1.4.1.35265.1.147.2.2.1.3.2.1 eltEsrIpSlaHistoryTable .1.3.6.1.4.1.35265.1.147.2.3.1.3.1 eltEsrOspfNbrTable .1.3.6.1.4.1.35265.1.147.2.4.1.3.1 eltEsrBgp4V2PeerTable .1.3.6.1.4.1.35265.1.147.2.5.1.1.1 eltEsrFwConnectionStatTable .1.3.6.1.4.1.35265.1.147.2.5.1.1.2 eltEsrFwConnectionStatIpv6Table .1.3.6.1.4.1.35265.1.147.2.6.1.1.1 eltEsrTrackTable .1.3.6.1.4.1.35265.1.147.2.7.1.1.1 eltEsrDhcpRelayStatTable .1.3.6.1.4.1.35265.1.147.2.7.1.1.2 eltEsrDhcpRelayStatIpv6Table .1.3.6.1.4.1.35265.5.1 eltexFileTable .1.3.6.1.4.1.35265.5.2 eltexFileHistoryTable .1.3.6.1.4.1.35265.5.3 eltexFileHistoryTableFreeIndex .1.3.6.1.4.1.35265.5.4 eltexFileHistoryTableMaxSize .1.3.6.1.4.1.35265.5.6 eltexFileHistoryTableOperation .1.3.6.1.4.1.35265.20.1.1 eltQosPolicyStatsTable .1.3.6.1.4.1.35265.20.2.1 eltQosClassStatsTable .1.3.6.1.4.1.35265.38.30.1 eltexConfigTable .1.3.6.1.4.1.35265.38.40.40.11 eltexEnvMemoryAvailable .1.3.6.1.4.1.35265.38.80.1 eltexIfNumberTable .1.3.6.1.4.1.35265.38.80.2 eltexSubRunConfigTable .1.3.6.1.4.1.35265.38.80.3 eltexSubCandConfigTable .1.3.6.1.4.1.35265.38.80.4 eltexBridgeRunConfigTable .1.3.6.1.4.1.35265.38.80.5 eltexBridgeCandConfigTable .1.3.6.1.4.1.35265.38.80.6 eltexUtilizationIfTable .1.3.6.1.4.1.35265.38.80.7 eltexPortRunConfigTable .1.3.6.1.4.1.35265.38.80.8 eltexPortCandConfigTable .1.3.6.1.4.1.35265.38.85.1 eltexVrfRunConfigTable .1.3.6.1.4.1.35265.38.85.2 eltexVrfCandConfigTable .1.3.6.1.4.1.35265.38.90.1 eltexSfpTable .1.3.6.1.4.1.35265.38.90.2 eltexSfpDDMTable .1.3.6.1.4.1.35265.38.95.1 eltexRoutingFIBLimit .1.3.6.1.4.1.35265.38.95.2 eltexRoutingFIBUsage .1.3.6.1.4.1.35265.38.95.3 eltexRoutingFIB6Limit .1.3.6.1.4.1.35265.38.95.4 eltexRoutingFIB6Usage .1.3.6.1.4.1.35265.38.95.5 eltexRoutingRIBLimitsTable .1.3.6.1.4.1.35265.38.95.6 eltexRoutingRIBUsageTable .1.3.6.1.4.1.35265.38.95.7 eltexRoutingRIB6LimitsTable .1.3.6.1.4.1.35265.38.95.8 eltexRoutingRIB6UsageTable .1.3.6.1.4.1.35265.38.100 eltexSystemUptime .1.3.6.1.4.1.35265.38.101 eltexSystemLastReloadReason .1.3.6.1.4.1.35265.38.105 eltexNATSessionCountersTable .1.3.6.1.4.1.35265.38.130.1 eltexCpuProcessesStatTable .1.3.6.1.4.1.35265.42.34 eltexIpAddressTable .1.3.6.1.4.1.35265.42.100 eltexNeighborsNumberTable .1.3.6.1.4.1.35265.44.6.1 eltexVrrpRunConfigTable .1.3.6.1.4.1.35265.44.6.2 eltexVrrpCandConfigTable .1.3.6.1.4.1.35265.44.6.3 eltexVrrpRunConfigAssociatedIpAddrTable .1.3.6.1.4.1.35265.44.6.4 eltexFileHistoryTable eltexVrrpCandConfigAssociatedIpAddrTable .1.3.6.1.4.1.35265.485.1.13 eVasPrefixCandConfigTable eltexFileHistoryTableFreeIndex .1.3.6.1.4.1.35265.485.1.24 eVasPrefixRunConfigTable eltexFileHistoryTableMaxSize .1.3.6.1.4.1.35265.48.1.35.6 eltexFileHistoryTableOperation eDialPlanCandConfigTable .1.3.6.1.4.1.35265.38.4830.1.4 eltexConfigTable eDialPlanRunConfigTable .1.3.6.1.4.1.35265.4838.40.240.111 eltexEnvMemoryAvailable eSipCommonCandConfigTable .1.3.6.1.4.1.35265.4838.2.280.1 eltexIfNumberTable eSipCommonRunConfigTable .1.3.6.1.4.1.35265.38.4880.2.3 eltexSubRunConfigTable eSipProfileCandConfigTable .1.3.6.1.4.1.35265.4838.2.480.3 eltexSubCandConfigTable eSipProfileRunConfigTable .1.3.6.1.4.1.35265.4838.280.56 eltexUtilizationIfTable eSipProxyCandConfigTable .1.3.6.1.4.1.35265.4838.280.67 eSipProxyRunConfigTableeltexPortRunConfigTable .1.3.6.1.4.1.35265.4838.2.780.8 eltexPortCandConfigTable eSipVoicePortCandConfigTable .1.3.6.1.4.1.35265.4838.2.890.1 eltexSfpTable eSipVoicePortRunConfigTable .1.3.6.1.4.1.35265.4838.3.190.2 eltexSfpDDMTable eFxsPortCandConfigTable .1.3.6.1.4.1.35265.4838.395.21 eltexRoutingFIBLimit eFxsPortRunConfigTable .1.3.6.1.4.1.35265.4838.395.32 eltexRoutingFIBUsage eFxoPortCandConfigTable .1.3.6.1.4.1.35265.4838.95.3.4 eltexRoutingFIB6Limit eFxoPortRunConfigTable .1.3.6.1.4.1.35265.4838.95.4.1 eVoicePortTestTable eltexRoutingFIB6Usage .1.3.6.1.4.1.35265.4838.495.25 eVoicePortStateTable eltexRoutingRIBLimitsTable .1.3.6.1.4.1.35265.4838.495.36 eVoiceLineStateTableeltexRoutingRIBUsageTable .1.3.6.1.4.1.35265.6138.195.1.17 eltexElmLicInfoParamsTable eltexRoutingRIB6LimitsTable .1.3.6.1.4.1.35265.6138.1.1.2.195.8 eltexRoutingRIB6UsageTable eltexElmLicInfoBundleValidFromDate .1.3.6.1.4.1.35265.61.1.1.2.238.100 eltexSystemUptime eltexElmLicInfoBundleExpiryDate .1.3.6.1.4.1.35265.61.1.1.338.101 eltexSystemLastReloadReason eltexElmLicInfoUtilizationTable .1.3.6.1.4.1.35265.6138.1.2130.1 eltexElmLicManagerServerTypeeltexCpuProcessesStatTable .1.3.6.1.4.1.35265.61.1.2.242.34 eltexIpAddressTable eltexElmLicManagerStatus .1.3.6.1.4.1.35265.61.1.2.342.100 eltexElmLicManagerLastRequestDate eltexNeighborsNumberTable .1.3.6.1.4.1.35265.61.1.2.4 eltexElmLicManagerNextRequestDate .1.3.6.1.6.3.10.2.1.1 snmpEngineID .1.3.6.1.6.3.10.2.1.2 snmpEngineBoots .1.3.6.1.6.3.10.2.1.3 snmpEngineTime .1.3.6.1.6.3.10.2.1.4 snmpEngineMaxMessageSize .1.3.6.1.6.3.11.2.1 snmpMPDStats .1.3.6.1.6.3.15.1.1 usmStats esr# |