SNMP ASP Example
SNMPGet
->
SNMPGetNext
SNMPGetBulk
SNMPSet
Download
Full Trial (998KB)
eMarkSnmpTrial.zip
ActiveX/Component Library
Active Server Flash
Active Server Image
eMarkSNMP Get ASP Sample
ASP SNMP Get
<% set snmpSession = Server.CreateObject("eMarkSnmp.SnmpSession") set vb = Server.CreateObject("eMarkSnmp.SnmpVarBind") snmpSession.Open() count = snmpSession.SnmpGet("127.0.0.1", "1.3.6.1.2.1.1.1.0") Response.Write "Get " & count & " varbinding(s)" & "
" if count = 1 then set vb = snmpSession.GetVarBind(1) Response.Write "OID: " & vb.ObjectID & "
" Response.Write "String Value: " & vb.ToString() & "
" Response.Write "HexString: "& vb.ToHexString() & "
" end if snmpSession.Close() %>