


版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、snmp 常用 oidlinux snmp oids 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. th
2、ese 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 processin
3、g 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 def
4、ine 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, the
5、 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 oids for linux oids for cpu,memory and disk statistics for this first you need to install snmp server and clients. if you want t
7、o install snmp server and client installation in linux 学习 check herecpu statistics load1 minute load: ..4.1.20.15 minute load: ..4.1.20.215 minute load: ..4.1.20.3cpupercentage of user cpu time: ..4.1.20 raw user cpu time: ..4.1.
8、20percentages of system cpu time: ..4.1.20 raw system cpu time: ..4.1.20 percentages of idle cpu time: ..4.1.20 raw idle cpu time: ..4.1.20raw nice cpu time: ..4.1.20 memory statisticstotal swap size: .1.3
9、..20available swap space: ..4.1.20 total ram in machine: ..4.1.20 total ram used: ..4.1.20total ram free: ..4.1.20 total ram shared: ..4.1.20 total ram buffered: ..4.1.20total cached memory: .
10、.4.1.20 disk 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 disks the oids are as followspath where the disk is mounted: ..4.1.20.1 path of the d
11、evice for the partition: ..4.1.20.1total size of the disk/partion (kbytes): ..4.1.20.1 available space on the disk: ..4.1.20.1used space on the disk: ..4.1.20.1 percentage of space used on disk: ..4.1.20.1percentage of inodes
12、 used on disk: ..4.1.200.1 system uptime: ...0examplesthese commands you need to run on the snmp server get 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
13、first entry in the disk section of snmpd.conf; replace 1 with 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.1 get the 5-minute system load on the target host#snmpget -v 1 -c “community” target_name_or_ip .1.3
14、..20.2 get the 15-minute system load on the target host#snmpget -v 1 -c “community” target_name_or_ip ..4.1.20.3 get amount of available swap space on the target host#snmpget -v 1 -c “community” target_name_or_ip ..4.1.20variable descriptor object ident
15、ifier system groupsysdescr .sysobjectid .sysuptime .syscontact .sysname .syslocation .sysservices . interfaces group ifnumber .iftable .ifentry ..1ifindex 1.3.6
16、..2.1.1ifdescr ..1.2iftype ..1.3ifmtu ..1.4ifspeed ..1.5ifphysaddress ..1.6ifadminstatus ..1.7ifoperstatus ..1.8iflastchange ..1.9ifinoctets ..1.10ifinucastpkts 1.3.6.
17、.2.1.11ifinnucastpkts ..1.12ifindiscards ..1.13ifinerrors ..1.14ifinunknownprotos ..1.15ifoutoctets ..1.16ifoutucastpkts ..1.17ifoutnucastpkts ..1.18ifoutdiscards ..1.19ifouterrors
18、..1.20ifoutqlen ..1.21ifspecific ..1.22 ip groupipforwarding .ipdefaultttl .ipinreceives .ipinhdrerrors .ipinaddrerrors .ipforwdatagrams .ipinunknownprotos .ipi
19、ndiscards .ipindelivers .ipoutrequests .0ipoutdiscards .1ipoutnoroutes .2ipreasmtimeout .3ipreasmreqds .4ipreasmoks .5ipreasmfails .6ipfragsoks .7ipfragsfails 1
20、..1.4.18ipfragcreates .9ipaddrtable .0ipaddrentry .0.1ipadentaddr .0.1.1ipadentifindex .0.1.2ipadentnetmask .0.1.3ipadentbcastaddr .0.1.4ipadentreasmmaxsize .0.1.5 icmp groupicmpinm
21、sgs .icmpinerrors .icmpindestunreachs .icmpintimeexcds .icmpinparmprobs .icmpinsrcquenchs .icmpinredirects .icmpinechos .icmpinechoreps .icmpintimestamps .0icmp
22、intimestampreps .1icmpinaddrmasks .2icmpinaddrmaskreps .3icmpoutmsgs .4icmpouterrors .5icmpoutdestunreachs .6icmpouttimeexcds .7icmpoutparmprobs .8icmpoutsrcquenchs .9icmpout
23、redirects .0icmpoutechos .1icmpoutechoreps .2icmpouttimestamps .3icmpouttimestampreps .4icmpoutaddrmasks .5icmpoutaddrmaskreps .6 tcp grouptcprtoalgorithm .tcprtomin .tcprtom
24、ax .tcpmaxconn .tcpactiveopens .tcppassiveopens .tcpattemptfails .tcpestabresets .tcpcurrestab .tcpinsegs .0tcpoutsegs .1tcpretranssegs .2tcpconntable .2
25、.1.6.13tcpconnentry .3.1tcpconnstate .3.1.1tcpconnlocaladdress .3.1.2tcpconnlocalport .3.1.3tcpconnremaddress .3.1.4tcpconnremport .3.1.5tcpinerrs .4tcpoutrsts .5 udp groupudpindatagrams 1
26、..1.7.1udpnoports .udpinerrors .udpoutdatagrams .udptable .udpentry ..1udplocaladdress ..1.1udplocalport ..1.2 snmp groupsnmpinpkts .snmpoutpkts .snmpinbadversions 1
27、..1.11.3snmpinbadcommunitynames .snmpinbadcommunityuses .snmpinasnparseerrs .not used .snmpintoobigs .snmpinnosuchnames .snmpinbadvalues .0snmpinreadonlys .1snmpingenerrs 1.
28、.1.11.12snmpintotalreqvars .3snmpintotalsetvars .4snmpingetrequests .5snmpingetnexts .6snmpinsetrequests .7snmpingetresponses .8snmpintraps .9snmpouttoobigs .0snmpoutnosuchnames .1snmpoutbadvalues .2not used .3snmpout
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025江苏扬州工业职业技术学院博士专项招聘16人笔试备考题库含答案详解
- 2025江苏扬州宝应县“乡村振兴青年人才”招聘67人笔试模拟试题及一套参考答案详解
- 2025江苏宿迁市泗阳县招聘乡村医生27人笔试备考试题及一套参考答案详解
- 2025广西来宾市招聘乡村振兴专员221人笔试备考题库及一套完整答案详解
- 2025年东营市公务员考试行测真题及答案详解1套
- 江苏省徐州市沛县2024-2025学年高一上学期第三次学情调研物理试题(解析版)
- 河南省驻马店市2024-2025学年高一上学期12月联考物理试题(解析版)
- 午夜钟声的春节故事
- 德克士的智能化生产系统
- 2025年二级建造师之二建矿业工程实务考试题库
- 围手术期低体温护理研究进展课件
- 高质量心肺复苏
- 教育家办学:中小学校长专业标准解读课件
- 锅炉防磨防爆总结汇报课件
- 茶叶企业营销课件
- 井巷工程课程设计-2篇
- 经口鼻腔吸痰操作评分标准
- 某印刷有限公司安全逃生平面图
- 口腔执业医师解剖生理学试题b1型题
- DB14T1049.3-2021 山西省用水定额 第3部分:服务业用水定额
- cass实体名称,图层,实体代码对照表
评论
0/150
提交评论