Hi,
I'm new to SNMP world, I'm a confused about how it works.
What I need is get and set VLANs for a switch from HP model v1910-24G.
Where I can find the OID correct to get VLAN.
Above there is the sample code I'm using to get the data from SNMP.
I'm new to SNMP world, I'm a confused about how it works.
What I need is get and set VLANs for a switch from HP model v1910-24G.
Where I can find the OID correct to get VLAN.
Above there is the sample code I'm using to get the data from SNMP.
var result = Messenger.Get(VersionCode.V2,
new IPEndPoint(IPAddress.Parse("192.168.0.254"), 161),
new OctetString("public"),
new List<Variable> { new Variable(new ObjectIdentifier("1.3.6.1.4.1.43.45.1.2.23.1.2.1.1.1.13")) },
60000);
foreach (var item in result)
{
Console.WriteLine(item.Data.ToString());
}
Thanks very much everyone that could help me.