-
snmp application
Im rather new to vb period ive been doing alot of reading and i am able to set up things as i want them, but i have no clue how to gather the information from the the click boxes or text boxes and send it to external application net-snmp and retrieve results. It is my understanding that visual basic can accomplish this task. The way i have it set up, the user enters information into the boxes that is necessary to complete the snmp poll, then they can use a button to get, getnext, walk, or set. I have tried several things, and nothing works. Any light anyone could shed on this. The main problem is assigning the info the user types in to a variable to be compiled with the other options and then the info sent to the external application and the results retrieved. Any help is greatly appreciated, I can make it worth anyones time who decides to help. All i need is a good push in the right direction and I can pretty much take it from there. Thank you in advance.
-
Re: snmp application
Hi,
So all you've pretty much done so far is the GUI, which is the way the program looks? If you want to code an application that uses snmp then you'll have a heck of a time if you don't know how to gather the info from your own program let alone an external one.
Anyways, suppose you have a textbox with some info. The way to get that text from the textbox and "hold" it, you have to assign it to a variable. So in a command button, you would put something like this:
dim txtHolder as string
txtHolder = text1.text
msgbox txtHolder
But that would just hold it for the specific time. You would have to write more to it to continue holding it.
Here are some links to posts dealing with snmp:
http://www.vbforums.com/search.php?searchid=1497459
Hopefully that will give you examples to guide you in the right direction.
-
Re: snmp application
thank you so much, i could not for the life of me figure out how to set a variable. well i know how to get the info from the external program, but getting it to and from the vb app is what im looking for.
-
Re: snmp application
Well, did you look at the links I posted? I personally don't know how to program for snmp. Also, this section of the site doesn't get much attention. Are you using vb.net or vb5/6? There are sections just for those and chances are you'll get more replies.
-
Re: snmp application
no, when i click those links i get nothing. but i have searched for snmp here and got little to nothing. what i need is an api for net-snmp but sourcefourge seems to be drawing blanks???? i know windows has a snmp api, but its not near as powerful or flag driven as net-snmp. i guess im stuck for the moment, but thank you again for the variable setting. i guess basic isnt as basic as i thought it would be, lol. but ive been reading my instructional material. But I just was trying to cut corners I guess I dont want to learn useless information, just what I need to know to do what I want to do.
-
Re: snmp application
http://www.vbforums.com/search.php?searchid=1498089 (try this one)
Yeah, basic isn't basic but it's a lot easier than other programming languages. Sorry I can't help, if I knew more I would. But like I said, try posting your question in the CLASSIC VB section, you will get more replies.