jcpunk has asked for the wisdom of the Perl Monks concerning the following question:
but i cannot figure out how to make it work on both types of OS's that we use here as Sun does it their way and Linux does it differently. so here are the two things that i need to match. i need the inet adder of eth0 and hme0,
thanks for the helpeth0 Link encap:Ethernet HWaddr 00:40:F4:48:1F:B1 inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.2 +55.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:163706 errors:0 dropped:0 overruns:0 frame:0 TX packets:140415 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:24892923 (23.7 Mb) TX bytes:35772845 (34.1 Mb) Interrupt:12 Base address:0x6000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1057866 errors:0 dropped:0 overruns:0 frame:0 TX packets:1057866 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:88084418 (84.0 Mb) TX bytes:88084418 (84.0 Mb) ........ lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index +1 inet 127.0.0.1 netmask ff000000 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 inde +x 2 inet 192.168.132.10 netmask ffffff00 broadcast 192.168.132.255
by the way thanks for all the help that was, is, and will be
|
|---|