From: Francisco C. L. <fca...@si...> - 2008-10-16 17:23:50
|
Buchan Milne wrote: > On Monday 13 October 2008 17:08:47 Francisco Carmona Leon wrote: > >> Does any one know how to handle this: >> >> IP-MIB::ipNetToMediaNetAddress.1.10.33.5.198 = IpAddress: 10.33.5.198 >> >> and this: >> >> IP-MIB::ipNetToMediaPhysAddress.1.10.33.5.198 = STRING: 0:1d:92:8a:54:1c >> > > > What do you mean by "handle"? Yes I would like to know the ip address in each port of my switches. if you walk throught: snmpwalk -c public -v 2c 10.33.5.253 IP-MIB::ipNetToMediaNetAddress -On it gives you the next result: .1.3.6.1.2.1.4.22.1.3.1.10.33.5.198 = IpAddress: 10.33.5.198 .1.3.6.1.2.1.4.22.1.3.2.10.33.5.200 = IpAddress: 10.33.5.200 .1.3.6.1.2.1.4.22.1.3.3.10.33.5.158 = IpAddress: 10.33.5.158 .1.3.6.1.2.1.4.22.1.3.5.10.33.5.201 = IpAddress: 10.33.5.201 .1.3.6.1.2.1.4.22.1.3.6.10.33.5.122 = IpAddress: 10.33.5.122 .1.3.6.1.2.1.4.22.1.3.9.0.0.0.0 = IpAddress: 0.0.0.0 .1.3.6.1.2.1.4.22.1.3.9.169.254.101.239 = IpAddress: 169.254.101.239 .1.3.6.1.2.1.4.22.1.3.9.192.168.0.90 = IpAddress: 192.168.0.90 .1.3.6.1.2.1.4.22.1.3.11.10.33.5.145 = IpAddress: 10.33.5.145 .1.3.6.1.2.1.4.22.1.3.13.10.33.5.211 = IpAddress: 10.33.5.211 .1.3.6.1.2.1.4.22.1.3.15.10.33.5.119 = IpAddress: 10.33.5.119 .1.3.6.1.2.1.4.22.1.3.16.10.33.5.179 = IpAddress: 10.33.5.179 .1.3.6.1.2.1.4.22.1.3.17.10.33.5.120 = IpAddress: 10.33.5.120 .1.3.6.1.2.1.4.22.1.3.18.10.33.5.117 = IpAddress: 10.33.5.117 .1.3.6.1.2.1.4.22.1.3.19.10.33.5.133 = IpAddress: 10.33.5.133 .1.3.6.1.2.1.4.22.1.3.22.10.33.5.78 = IpAddress: 10.33.5.78 .1.3.6.1.2.1.4.22.1.3.24.10.33.5.123 = IpAddress: 10.33.5.123 How can i display just the IpAddress in a box for each port |