SNMP#NET

码农软件 · 软件分类 · 网络工具包 · 2019-03-02 15:42:00

软件介绍

这是用 C# 语言实现的简单网络管理协议SNMP 库,支持的版本包括1/2/3

示例代码

string host = "localhost";
string community = "public";
SimpleSnmp snmp = new SimpleSnmp(host, community);

if (!snmp.Valid)
{
Console.WriteLine("SNMP agent host name/ip address is invalid.");
return;
}
Dictionary result = snmp.Get(SnmpVersion.Ver1, new string[] { ".1.3.6.1.2.1.1.1.0"} );
if (result == null)
{
Console.WriteLine("No results received.");
return;
}
foreach (KeyValuePair kvp in result)
{
Console.WriteLine("{0}: {1} {2}", kvp.Key.ToString(),
SnmpConstants.GetTypeName(kvp.Value.Type), kvp.Value.ToString());
}

本文地址:https://www.codercto.com/soft/d/471.html

Ruby Cookbook

Ruby Cookbook

Lucas Carlson、Leonard Richardson / O'Reilly Media / 2006-7-29 / USD 49.99

Do you want to push Ruby to its limits? The "Ruby Cookbook" is the most comprehensive problem-solving guide to today's hottest programming language. It gives you hundreds of solutions to real-world pr......一起来看看 《Ruby Cookbook》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具