473,569 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Network Diagram in c#

52 New Member
I want ot generate a Network Diagram based on the information Stored in my Database
IP ADRESS STATUS
128.98.76.6 Active
128.96.35.21 Active
128.5.68.9 Not Active

I want to generate a network diagram in which the Active nodes are shown by a green link and non active in Red link.
How should i do this in C#
Aug 3 '09 #1
41 10325
tlhintoq
3,525 Recognized Expert Specialist
What have you coded/tried so far? Without a better idea of what you have done so far, any suggestions someone might have here may in no way correspond or even be compatible
Aug 3 '09 #2
cloud255
427 Recognized Expert Contributor
Hi

Well I suggest you start by creating an object design which will store the data you retrieve from the database in memory.

You will be adding controls to a form at runtime. You will have to decide on a general algorithm which will dictate how controls are arranged on the form.

Next looking into the drawing classes of .NET, these will enable you to draw pretty much anything on a form. MSDN

If your network is very large think about how you may design your objects in such a way that different regions of the network may be viewed individually.

If you want real time updates of your UI based on the state of the network you will also need to look at network communications, the NetworkInformat ion namespace will help with this MSDN

Also for real time updates look into threading MSDN

Read the MSDN entries if you are unfamiliar with any of the required components and create a design with clear goals of what you want to achieve.

Try to create the app even if you fail, its the best way to learn, then post any problems/questions you may encounter and we'll have a look at how to help you out.
Aug 3 '09 #3
saurabh9gupta
52 New Member
Hello...
I am taking the readymade processes in Windows...syste m32 folder like ping.exe,...etc .
I am executing the process using Sytem.Diagnosti cs library...
Now what i have to do is store the some data that is displayed in the message box like


the output of ping is

C:\>ping 172.16.73.4

Pinging 172.16.73.4 with 32 bytes of data:

Reply from 172.16.73.4: bytes=32 time=16ms TTL=127
Reply from 172.16.73.4: bytes=32 time=21ms TTL=127
Reply from 172.16.73.4: bytes=32 time=19ms TTL=127
Reply from 172.16.73.4: bytes=32 time=26ms TTL=127

Ping statistics for 172.16.73.4:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 26ms, Average = 20ms


take a look at this the Lost is 0%...
Now what has to be done is that I have to save the Lost % along with the IP ADDRESS and display the output in the form of Network Diagram i.e display a server and the pinged nodes....
Aug 19 '09 #4
cloud255
427 Recognized Expert Contributor
Ok, so have you written any code for this yet? Are you stuck with some particular piece of code/design? You haven't asked any questions in your above post only told us what you plan to do...
Aug 19 '09 #5
Catalyst159
111 New Member
This would be a great Idea . I was trying to do something similiar to this using Visio. Have you made any progress ? This would be a good project. Generating a network topology based on the information, and the display would be a realtime representation of the network.
Aug 19 '09 #6
saurabh9gupta
52 New Member
Yes...so far i am able to execute the ping,ipconfig,n etstat,nslookup ,tracert and redirect the output from DOS Screen(without displaying it) and display the output in a message box..

but i am stuck like
1) i want to generate the network diagram (real time).. this is the problem on how to generate the diagram...
I need your help..
Aug 20 '09 #7
Catalyst159
111 New Member
Would you want to work on this as a project? What do you have so far ?
Aug 20 '09 #8
saurabh9gupta
52 New Member
I am currently working on this project...
.so far i am able to execute the ping,ipconfig,n etstat,nslookup ,tracert and redirect the output from DOS Screen(without displaying it) and display the output in a message box..

but i am stuck like
1) i want to generate the network diagram (real time).. this is the problem on how to generate the diagram...
I need your help..
Aug 20 '09 #9
Catalyst159
111 New Member
Please post the code you have so far>?
Aug 20 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

8
50549
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork = WScript.CreateObject("WScript.Network") sPwd = inputbox("Enter password") WshNetwork.MapNetworkDrive "J:", "\\server1\data", false, "xyz_net\John", sPwd...
2
4743
by: Koen | last post by:
Hi all, Is there any example code available somewhere that graphical visualizes a simple network planning (PERT chart)? I have two tables: tblAction: ActionID (PK) Description
1
4223
by: Maria | last post by:
Heya, I am doing some background reading about the database and i am a little bit confused, i would appreciated any help.... Assume been asked to draw the ER diagram for the following statement: "Many players play for a team but a player can play just in one team"
2
1505
by: Chua Wen Ching | last post by:
Hi, I need some ideas to get this started. Just say i draw a UML diagram and all my friends who in the network (just say 3 people), can see the diagram. So it must be real time. I know how to send text messages, but how does graphics works in this scenario. It is not sending images over to everyone, but drawing on the fly and everyone...
2
3309
by: Mihir | last post by:
all.. this group is amazing.. have been getting lot of answers without asking from this forum.. got a couple of questions.. first the background i am working on a database that has the network information and all the data that goes on it with the switches, the hardware, the software messages that go on it.. the links between networks.....
2
51972
by: sangu_rao | last post by:
Hi, I have to prepare an ER diagram for the objects in my SQL Server database. I have used the option "DIAGRAMS" in EnterPrise Manager of SQL Server 2000. It is creating the diagram for the selected tables (but the diagram contains only the table which i have selected. It is not displaying its depended tables). But i am not able to export it...
70
4281
by: Anson.Stuggart | last post by:
I'm designing a debounce filter using Finite State Machine. The FSM behavior is it follows the inital input bit and thinks that's real output until it receives 3 consecutive same bits and it changes output to that 3 consecutive bit until next 3 consecutive bits are received. A reset will set the FSM to output 1s until it receives the correct...
13
1900
by: Doug | last post by:
Hi all, A workmate was recently bitching to me about an RFC. (Apologies - the RFC number eludes me at present (it's related to the DIAMETER protocol, that's all I can remember) but I will try to find out and update the thread.) He was moaning how the RFC laid out the description of an 8-bit field. According to him, the diagram was...
2
6584
by: alphatommy_at_hotmail_dot_com | last post by:
Hi, I am using DrawEllipse and DrawLine to draw a rough network diagram. Are there better/easier ways to do that? Also, how would one draw an arrow? thanks.
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8130
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.