(完整版)snmp-oid詳解.doc_第1頁
(完整版)snmp-oid詳解.doc_第2頁
(完整版)snmp-oid詳解.doc_第3頁
(完整版)snmp-oid詳解.doc_第4頁
(完整版)snmp-oid詳解.doc_第5頁
已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、SNMP 常用 OIDLinux SNMP OID s for CPU,Memory and Disk StatisticsSNMP stands for Simple Network Management Protocol and consists of three key components: managed devices, agents, and network-management systems (NMSs). A managed device is a node that has an SNMP agent and resides on a managed network. T

2、hese devices can be routers and access server, switches and bridges, hubs, computer hosts, or printers. An agent is a software module residing within a device. This agent translates information into a compatible format with SNMP. An NMS runs monitoring applications. They provide the bulk of processi

3、ng and memory resources required for network management.SNMP MIBs, OIDs OverviewMIB stands for Management Information Base and is a collection of information organized hierarchically. These are accessed using a protocol such as SNMP. There are two types of MIBs: scalar and tabular. Scalar objects de

4、fine a single object instance whereas tabular objects define multiple related object instances grouped in MIB tables.MIB files for specific devices or systems can be downloaded from hereOIDs or Object Identifiers uniquely identify manged objects in a MIB hierarchy. This can be depicted as a tree, th

5、e levels of which are assigned by different organizations. Top level MIB object IDs (OIDs) belong to different standard organizations. Vendors define private branches including managed objects for their own products.Here is a sample structure of an OIDIso(1).org(3).dod(6).internet(1).private(4).tran

6、sition(868).products(2).chassis(4).card(1).slotCps(2)-.-cpsSlotSummary(1).cpsModuleTable(1).cpsModuleEntry(1).cpsModuleModel(3).3562.3Most of the people may be looking for OID s for Linux OID s for CPU,Memoryand DiskStatistics for this first you need to install SNMP server and clients. If you want t

7、o install SNMPserver and client installation in linux學(xué)習(xí)check hereCPU StatisticsLoad1 minute Load: ..4.1.20.15 minute Load: ..4.1.20.215 minute Load: ..4.1.20.3CPUpercentage of user CPU time: ..4.1.20raw user cpu time: ..4.1.2021.

8、11.50.0percentages of system CPU time: ..4.1.20raw system cpu time: ..4.1.20percentages of idle CPU time: ..4.1.20raw idle cpu time: ..4.1.20raw nice cpu time: ..4.1.20Memory StatisticsTotal Swap Size: ..4.1.

9、20Available Swap Space: ..4.1.20Total RAM in machine: ..4.1.20Total RAM used: ..4.1.20Total RAM Free: ..4.1.20Total RAM Shared: ..4.1.20Total RAM Buffered: ..4.1.20Total Cached Memory: ..4.1.2

10、0Disk StatisticsThe snmpd.conf needs to be edited. Add the following (assuming a machine with a single / partition):disk / 100000 (or)includeAllDisks 10% for all partitions and disksThe OIDs are as followsPath where the disk is mounted: ..4.1.20.1Path of the device for the pa

11、rtition: ..4.1.20.1Total size of the disk/partion (kBytes): ..4.1.20.1Available space on the disk: ..4.1.20.1Used space on the disk: ..4.1.20.1Percentage of space used on disk: ..4.1.20.1Percentage of inodes used on disk: .1.

12、.1.200.1System Uptime: ...0ExamplesThese Commands you need to run on the SNMP serverGet available disk space for / on the target host#snmpget -v 1 - c “ community ” target_name_or_ip ..4.1.20.1this will return available disk space for the first entry in th

13、e disksection of snmpd.confwith n for the nth entryGet the 1-minute system load on the target host#snmpget -v 1 - c “ community ” target_name_or_ip ..4.1.20.1Get the 5-minute system load on the target host#snmpget -v 1 - c “ community ” target_name_or_ip ..4.1.20.2Get

14、 the 15-minute system load on the target host#snmpget -v 1 - c “ community ” target_name_or_ip ..4.1.20.3Get amount of available swap space on the target host#snmpget -v 1 - c “ community ” target_name_or_ip ..4.1.20Variable Descriptor Object IdentifierSystem GroupsysD

15、escr .sysObjectID .sysUpTime .sysContact .sysName .sysLocation .sysServices .Interfaces GroupifNumber .ifTable .ifEntry ..1ifIndex ..1.1ifDescr 1.

16、..2ifType ..1.3ifMtu ..1.4ifSpeed ..1.5ifPhysAddress ..1.6ifAdminStatus ..1.7ifOperStatus ..1.8ifLastChange ..1.9ifInOctets ..1.10ifInUcastPkts ..1.11ifInNUcast

17、Pkts ..1.12ifInDiscards ..1.13ifInErrors ..1.14ifInUnknownProtos ..1.15ifOutOctets ..1.16ifOutUcastPkts ..1.17ifOutNUcastPkts ..1.18ifOutDiscards ..1.19ifOutErrors ..1.20ifOu

18、tQLen ..1.21ifSpecific ..1.22IP GroupipForwarding .ipDefaultTTL .ipInReceives .ipInHdrErrors .ipInAddrErrors .ipForwDatagrams .ipInUnknownProtos .ipInDiscards .

19、ipInDelivers .ipOutRequests .0ipOutDiscards .1ipOutNoRoutes .2ipReasmTimeout .3ipReasmReqds .4ipReasmOKs .5ipReasmFails .6ipFragsOKs .7ipFragsFails .8ipFragCrea

20、tes .9ipAddrTable .0ipAddrEntry .0.1ipAdEntAddr .0.1.1ipAdEntIfIndex .0.1.2ipAdEntNetMask .0.1.3ipAdEntBcastAddr .0.1.4ipAdEntReasmMaxSize .0.1.5ICMP GroupicmpInMsgs .icmpInE

21、rrors .icmpInDestUnreachs .icmpInTimeExcds .icmpInParmProbs .icmpInSrcQuenchs .icmpInRedirects .icmpInEchos .icmpInEchoReps .icmpInTimestamps .0icmpInTimestampReps .2.

22、1.5.11icmpInAddrMasks .2icmpInAddrMaskReps .3icmpOutMsgs .4icmpOutErrors .5icmpOutDestUnreachs .6icmpOutTimeExcds .7icmpOutParmProbs .8icmpOutSrcQuenchs .9icmpOutRedirects .0

23、icmpOutEchos .1icmpOutEchoReps .2icmpOutTimestamps .3icmpOutTimestampReps .4icmpOutAddrMasks .5icmpOutAddrMaskReps .6TCP GrouptcpRtoAlgorithm .tcpRtoMin .tcpRtoMax .tcpMaxCon

24、n .tcpActiveOpens .tcpPassiveOpens .tcpAttemptFails .tcpEstabResets .tcpCurrEstab .tcpInSegs .0tcpOutSegs .1tcpRetransSegs .2tcpConnTable .3tcpConnEntry

25、.3.1tcpConnState .3.1.1tcpConnLocalAddress .3.1.2tcpConnLocalPort .3.1.3tcpConnRemAddress .3.1.4tcpConnRemPort .3.1.5tcpInErrs .4tcpOutRsts .5UDP GroupudpInDatagrams .udpNoPorts 1.3

26、..7.2udpInErrors .udpOutDatagrams .udpTable .udpEntry ..1udpLocalAddress ..1.1udpLocalPort ..1.2SNMP GroupsnmpInPkts .snmpOutPkts .snmpInBadVersions .snmpInBadCommunityNames .sn

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論