I'm doing the final year project that related to the SNMP. I need to find the solution for the IP auto detection in C#. When I run the main project, the program can automatically detect the IP for the agent and retrieve it's MIB, so that the user do not need to enter the IP address of the agent. Beside that, I also look for the solution that can detect the nodes that had switch on or switch off in C# coding. Wish can get the solution for these two problems. Thank you.
11 10163
What?
Getting the IP address of the current computer is pretty simple. There is like a System.Net.NetworkInformation.NetworkInterface class that handles that for you.
Note: It does not necessarily give you the "outside" IP depending on your network configuration.
So what are you ACTUALLY after?
What?
Getting the IP address of the current computer is pretty simple. There is like a System.Net.NetworkInformation.NetworkInterface class that handles that for you.
Note: It does not necessarily give you the "outside" IP depending on your network configuration.
So what are you ACTUALLY after?
I know to get the local IP (127.0.0.1), but what I means here is that the IP for the nodes those connect to my manager, I need to retrieve their MIB without enter their IP. I do not know the coding for it in the C#.
This is the part of my coding that use to open the connection between manager and the agent: -
private void ButtonOpen_Click(object sender, System.EventArgs e)
-
{
-
Cursor.Current = Cursors.WaitCursor;
-
objSnmpManager.ProtocolVersion = ComboVersion.SelectedIndex + 1;
-
objSnmpManager.LogFile = TextLogFile.Text;
-
-
objSnmpManager.Open(TextAgent.Text, TextCommunity.Text, Int16.Parse(TextPort.Text));
-
-
if (GetResult() == 0)
-
{
-
bOpened = true;
-
EnableControls();
-
}
-
-
Cursor.Current = Cursors.Default;
-
}
Thanks for your help.
What? What do you mean by "nodes" and "MIB" ? Is that something propriatary to your company?
What? What do you mean by "nodes" and "MIB" ? Is that something propriatary to your company?
The nodes that i means is the laptops those connect to my SNMP manager. MIB is the management information base. I still the student, this just my final year project, i just want to find solution to automatically detect IP, i do not want to enter the IP address manually.
The nodes that i means is the laptops those connect to my SNMP manager. MIB is the management information base. I still the student, this just my final year project, i just want to find solution to automatically detect IP, i do not want to enter the IP address manually.
What type of application are you creating?
Web Service, Web Application, Desktop Application...etc?
-Frinny
What type of application are you creating?
Web Service, Web Application, Desktop Application...etc?
-Frinny
Type of appliation that i do is windows application.
I need to find the solution to list out all the computers in same local network. Such as i have 4 computers in my local network, I need to list out all the IP address for these 4 computers by using C# coding. Have everyone can help me?
Thank you.
Best Regard,
Jelly Chai
Unless you have a domain controller (or just a good active directory?)
I think you need to rely on netbios (command prompt: NET VIEW) or equivilants.
Then you can do a dns request for those names agaisnt your system.
WMI might be a good choice for getting all this information.
Unless you have a domain controller (or just a good active directory?)
I think you need to rely on netbios (command prompt: NET VIEW) or equivilants.
Then you can do a dns request for those names agaisnt your system.
WMI might be a good choice for getting all this information.
I do not understand what you means? I just need to list out all the computers that connected to my master computer which are in the same network. I need to know those computers by using C# coding, because it will used for my SNMP program. Can you teach me how to write the coding for it?
Thank you.
So there is a domain controller? LDAP should work then
Sign in to post your reply or Sign up for a free account.
Similar topics
by: MHenry |
last post by:
Hi,
We were going merrily along for 6 years using this database to record
all client checks that came into our office, including information
about what the checks were for.
Suddenly, network...
|
by: Oshadha |
last post by:
Hi All
I'm trying to query and get a list of all reachable computers in a network. I also heard that you can query active directory and find domain pc list. but my need is not to query active...
|
by: Steve |
last post by:
Hi all
How would i get a list of all Active Computers on a network? All I need are
the computer names.
Kind Regards,
Steve.
|
by: newsgroups.jd |
last post by:
Im sure there is a better way to do this - just posting what I did to
get it to work.
Please feel free to comment with suggestions - this was my first vb.net
program and I am not a programmer,...
|
by: NoWhereMan |
last post by:
Hello,
I'm trying to get the list of shared folders of a network computer and add them to a combo box. I'm using the bellow code in VB .NET.
Code
====
Private Sub EnumShares(ByVal Machine As...
|
by: JB |
last post by:
I am trying to get a list of all the active computers running on my
domain.
I'm writing some remote management style software with WMI, which
works fine when i know the computer name, but i just...
|
by: kimiraikkonen |
last post by:
Hello,
I've been working on a project and i wonder how to get list of the LAN
computer names in a tree list which are involved under the same
workgroup name?
What can be the code be?
Very...
|
by: John Salerno |
last post by:
Let me see if this question even makes sense...I'm reading Core Python
Programming and I jumped ahead to the more specific topics like network
programming. I plan to follow along with the example...
|
by: belias |
last post by:
So...here we go. I'm having an issue with one computer on a network not being able to ping other computers by name. I've spent the last day searching similar issues and I've tried all the steps...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |