Hi,
we have a script which uses ifconfig -a dump, parses it & gets required data. Now in RHEL 7.4 the ifconfig -a dump is changed as compared to RHEL 6.3 .
Now i need way to convert this dump back to the way it looks in RHEL 6.4 . So what is the best way to do it?
sample dump :
In RHEL 6
Quote:
eth0 Link encap:Ethernet HWaddr 00:11:3F:CD:EB:3D
inet addr:10.0.33.1 Bcast:10.0.47.255 Mask:255.255.240.0
inet6 addr: fe80::211:3fff:fecd:eb3d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15633722 errors:0 dropped:0 overruns:0 frame:0
TX packets:13595597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1645440580 (1.5 GiB) TX bytes:1201742677 (1.1 GiB)
Memory:fba80000-fbb00000
|
In RHEL 7
Quote:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.225.17 netmask 255.255.240.0 broadcast 172.16.239.255
inet6 fe80::211:3fff:feee:8b5f prefixlen 64 scopeid 0x20<link>
ether 00:11:3f:ee:8b:5f txqueuelen 1000 (Ethernet)
RX packets 281784 bytes 66708264 (63.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 56 bytes 2664 (2.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xfbd80000-fbdfffff
|