为路由器创建网络 GUI 的最佳方法?
我有一个路由器,它在 CLI 上显示其邻居路由器。 我正在考虑使用这些信息并用它创建一个 GUI,它将显示一个带有节点和它们之间的链接的网络。 节点旁边还有一些信息用于显示 IP/主机名等。 我的首要目标是让它运行起来。 一旦我有了这个,我希望能够向网络图中添加一个节点,并触发将 CLI 命令推送到路由器以在后端设置该网络。
我确信有很多方法可以做到这一点,但我需要最快的方法(hack-ish 也可以)。 我正在考虑一个带有 Expect 的 JAVA GUI 在后台执行 telnet 到路由器以从路由器获取信息。 我对使用 Java GUI 组件有点陌生。 我已经使用Java swing组件来创建表单等,但不知道如何使用Java绘制网络拓扑。 非常感谢这里的任何帮助。此外,欢迎任何可以使工作变得更轻松的 IDE/工具(例如 Netbeans 使使用 Java Swing 设计表单变得非常简单)
此外,如果速度更快,请随意建议不同的语言/设计。
谢谢 !
I have a router which shows its neighbor routers on the CLI. I am thinking of using this info and creating a GUI out of it which would display a network with nodes and links between them. And some info alongside the node to display IP/hostname etc.
My first goal is to get this running. Once I have this, I want to be able to add a node to the network diagram and trigger pushing CLI commands to the router to setup this network in the back end.
I am sure there are many ways of doing this but I need the fastest way(hack-ish works too). I was thinking of a JAVA GUI with Expect in the background doing the telnet to the router for getting the information from the router. I am somewhat new to using the Java GUI components. I have used the Java swing components for creating forms etc. but don't know how to draw a network topology using Java. would appreciate any help here.. Also, any IDEs/tools that could make the job easier are welcome (like Netbeans makes Designing forms with Java Swing stupid easy)
Also, feel free to suggest a different language/design if that is faster..
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Java 的 swing 很容易学习,因此如果您是界面设计新手,那么这是一个很好的起点。
然而,由于这似乎是一个网络应用程序,您是否考虑过使用网络技术来设计您的 UI? Javascript 加上一点 HTML 和 CSS 也可以达到这个目的。
Java's swing is easy to learn, so if you're new to interface design that's a good place to start.
However, since this appears to be a network application, have you considered using web technologies to design your UI instead? Javascript along with a little HTML and CSS can also do the trick.
了解一下 ArgoUML 如何处理图表创建怎么样? 或者甚至使用 NetBeans 作为程序的平台?
How about looking into how ArgoUML deals with diagram creation? Or even using NetBeans as a platform for the program?