Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:41 PM.