Thread: Need a help
View Single Post
  #1  
Old 01-15-2021, 02:13 AM
saanajjar saanajjar is offline
Registered User
 
Join Date: Mar 2014
Posts: 1
Unhappy Need a help

Hi

i wanna to do below function so i wanna help as im new to this .

10926752_MOH#sh arp | in GigabitEthernet0/0/1.700
Internet 10.111.191.129 - 10b3.c67f.7f11 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.130 9 7cc3.8537.9b5b ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.131 15 1802.2d30.c3c0 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.132 14 1802.2d30.c5a0 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.133 15 1802.2d30.c700 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.134 15 1802.2d30.c460 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.135 12 1802.2d30.dea0 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.136 14 1802.2d30.c520 ARPA GigabitEthernet0/0/1.700
Internet 10.111.191.137 15 1802.2d30.c2c0 ARPA GigabitEthernet0/0/1.700

I need to copy from above output the IP to Variable A and MAC address to Variable B

Example

A= 10.111.191.137
B= 1802.2d30.c2c0


i need a script to do this
Reply With Quote