版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年版模具鋼材原材料追溯與供應(yīng)鏈追溯合同3篇
- 2025年度個人二手房交易貸款擔(dān)保合同樣本4篇
- 二零二五年度互聯(lián)網(wǎng)廣告發(fā)布合同樣本4篇
- 2025年度汽車短期租賃合同模板4篇
- 工廠保安協(xié)議書(2篇)
- 2025年度個人房屋租賃定金協(xié)議及租賃雙方權(quán)利義務(wù)2篇
- 二零二五年度苗木種植與森林防火合作協(xié)議4篇
- 2025年度二手車買賣雙方責(zé)任界定協(xié)議3篇
- 2025年度個人房產(chǎn)抵押貸款合同風(fēng)險評估報告4篇
- 2024年中級經(jīng)濟師考試題庫含解析答案
- 2024版?zhèn)€人私有房屋購買合同
- 2025年山東光明電力服務(wù)公司招聘筆試參考題庫含答案解析
- 2024爆炸物運輸安全保障協(xié)議版B版
- 《神經(jīng)發(fā)展障礙 兒童社交溝通障礙康復(fù)規(guī)范》
- 2025年中建六局二級子企業(yè)總經(jīng)理崗位公開招聘高頻重點提升(共500題)附帶答案詳解
- 2024年5月江蘇省事業(yè)單位招聘考試【綜合知識與能力素質(zhì)】真題及答案解析(管理類和其他類)
- 注漿工安全技術(shù)措施
- 《食品與食品》課件
- 2024年世界職業(yè)院校技能大賽“食品安全與質(zhì)量檢測組”參考試題庫(含答案)
- 讀書分享會《白夜行》
- 2023上海高考英語詞匯手冊單詞背誦默寫表格(復(fù)習(xí)必背)
評論
0/150
提交評論