是Linux下一些常用的OID
CPU的
Load
1 minute Load: .1.3.6.1.4.1.2021.10.1.3.1
5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2
15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3
CPU
percentage of user CPU ti
书接上文,在上文中进行了对系统时间的提取,在此基础上,可以对OID为.1.3.6.1.2.1.25.5.1.1.2与.1.3.6.1.2.1.25.5.1.1.1的进程<em>内存</em>与CPU使用率的原始数据记性提取。需要注意的是,<em>通过</em>OID提取到的<em>内存</em><em>信息</em>为该进程的工作设置(<em>内存</em>),相关内容可以<em>通过</em>资源管理器显示,具体区别可以百度。
写了个子函数,在其中定义的内容如下:
Oid full_oid[200
Windows OID' for CPU, Memory, Disk Utilization2007-10-3111:03Windows CPU Utilization:
OID:.1.3.6.1.2.1.25.3.3.1.2 (.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hr
Linux SNMP OID's for CPU, Memory and Disk Statistics
SNMP stands for Simple Network Management Protocol and consists of three key components: managed devices, agents, and network-management systems
<em>通过</em>Agent<em>获取</em>变量的值(小弟写的是一个返回cpu利用百分数的函数 void al_share_mem(int * value),包含在文件rdm-test3.c中,该函数可动态地返回值)然后小弟将MIB文件经过mib2c命令编译成.c和.h文件,并修改.c文件如下:/** Note: this file originally auto-generated by mib2c using*
Everyone knows there are software to get the configuration using SNMP; but how can you copy the configuration if you don’t have any tool?
Let me explain what is SNMP before show you how to implemen
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.W
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.IO;
using System.Text;
using System.Management;
using System.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;
namespace Formular
{
///
/// Author ZZH
///
/// <em>获取</em>计算机硬件<em>信息</em>
///