Sypher Posted March 1, 2007 Share Posted March 1, 2007 (edited) Hi, Well my previous application is finished. I was developing a configuration conversion and management tool for our Cisco farm. But now i have a new task: I am trying to develop a program to manage the ports with. With manage i mostly mean "read out information and display it for administrative purposes". Maybe when things run smoothly i'll move to SNMP writing. Anyhow, is it possible to use SNMP with AutoIT. If so, are there examples for it? I don't really care if it needs a .dll file or activeX component, as long as it's working.. Suggestions anyone? p.s. Yes i have searched and No i haven't found a single bit of information i'm looking for. Thanks! ---EDIT---- Ok i have found some VBS code: Set wmiLocator = CreateObject("WbemScripting.SWbemLocator") wmiLocator.Security_.ImpersonationLevel = 3 Set wmiService = wmiLocator.ConnectServer(, "root\snmp\localhost") Set wmiContext = CreateObject("WbemScripting.SWbemNamedValueSet") Set strNamedValue = wmiContext.Add("AgentAddress", "10.20.30.40") Set strNamedValue = wmiContext.Add("AgentReadCommunityName", "public") Set mibDataObjects = wmiService.ExecQuery ("Select * from SNMP_RFC1213_MIB_ifTable", , , wmiContext) wscript.echo "Count: " & mibDataObjects.count ' Read SNMP values For Each mibDataObjecta In mibDataObjects wscript.echo "==============================" For Each mibDataObject in mibDataObjecta.Properties_ If Not IsNull( mibDataObject.Name ) Then str = mibDataObject.Name str = str & " == " str = str & mibDataObject.Value WScript.Echo str End If Next wscript.echo "==============================" Next This displays a lot but doesn't display the real description (like Room 2-12). Anyhow how can i get this to work with AutoIT? Edited March 1, 2007 by Sypher Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now