保留IP,Mac和端口号的映射

大家好,

我们有一个带有多个Cisco 2950的网络和一个代理服务器。网络上没有路由器。我希望能够保留连接到任何交换机的所有计算机的IP和MAC地址的映射。我也希望将其映射到交换机上的端口号。我需要能够将这些值与以前的值进行比较,以便可以查看MAC地址是否已移至交换机上的其他端口,或者MAC是否具有新的IP地址。

It thought it should be reasonably simple to write a script to do this. Since I'm not very good at SNMP I took a look at cammer.pl, which gets close to doing what I want. Since we don't have a router, I entered the IP of our proxy server as the router IP. It seems to work, except that I don't get a list of all the machines that are connected to the switch. I get a few, so I'm guessing that I'll only get the ones that happen to be active at that particular time.

我还从终端运行了snmpwalk,还有一些snmpget。我正在获取一些我需要的信息,但不是全部。

所以我的问题是,有没有办法获取交换机端口号,MAC地址和IP地址的列表?我当时想把剧本作为cronjob。如果是这样,有人可以让我知道如何获取信息吗?还是已经有一些(开源)工具可以完成这项工作?

谢谢你的帮助, 洛伦佐