I just posted an example of how to read SNMP values from a remote network device.
In order to compile this program you will need PB9 and the new include files from Jose Roca's site. (the link is in the source code posting) I highly recommend his include files since they cover much more of the windows API than the includes that came with PB.
SNMP can be kinda hard to find the correct OID/MIB for the information you are looking for. I gave you some examples in the combobox for printer info which is what I was after. And to make it easier I also included a couple functions that can "walk" through the OID trees. Just give it the first part of the OID and click Get All and it will list the items found on that device by getting the "next" OID. Some other functions that may not be obivous is that you can click on the item in the results listbox and it will display the text version of the OID string at the bottom and you can use the text version instead when listing the OID to read from. SNMP can still be a challenge to find what you are after, (since much of the data is in the private section which can vary from vendor to vendor) so I recommend researching the ones you want on the internet at sites like:
Let me know if you have any questions,
In order to compile this program you will need PB9 and the new include files from Jose Roca's site. (the link is in the source code posting) I highly recommend his include files since they cover much more of the windows API than the includes that came with PB.
SNMP can be kinda hard to find the correct OID/MIB for the information you are looking for. I gave you some examples in the combobox for printer info which is what I was after. And to make it easier I also included a couple functions that can "walk" through the OID trees. Just give it the first part of the OID and click Get All and it will list the items found on that device by getting the "next" OID. Some other functions that may not be obivous is that you can click on the item in the results listbox and it will display the text version of the OID string at the bottom and you can use the text version instead when listing the OID to read from. SNMP can still be a challenge to find what you are after, (since much of the data is in the private section which can vary from vendor to vendor) so I recommend researching the ones you want on the internet at sites like:
Let me know if you have any questions,
Comment