33 lines
766 B
C#
33 lines
766 B
C#
// /**
|
|
// * File: MyClass.cs
|
|
// * Author: haraldwolff
|
|
// *
|
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|
// *
|
|
// *
|
|
// **/
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Lextm.SharpSnmpLib;
|
|
|
|
namespace ln.snmp
|
|
{
|
|
public abstract class SNMPClient
|
|
{
|
|
public SNMPClient()
|
|
{
|
|
|
|
}
|
|
|
|
public abstract List<Variable> Walk(ObjectIdentifier baseOID);
|
|
public abstract List<Variable> Get(List<ObjectIdentifier> baseOID);
|
|
|
|
public virtual Variable Get(ObjectIdentifier oid)
|
|
{
|
|
return Get(new List<ObjectIdentifier>(new ObjectIdentifier[] { oid }))[0];
|
|
}
|
|
|
|
}
|
|
}
|