rharrington10
New Member
- Joined
- Feb 8, 2016
- Messages
- 4
Trying to extract data from the following repeating prompts based on voice-port
<colgroup><col></colgroup><tbody>
</tbody>
Have tried multiple approaches and all have failed. Any assistance would be greatly appreciated.
sample data:
!
--More-- voice-port 2/0/0
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572000
caller-id enable
!
voice-port 2/0/1
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572001
caller-id enable
!
voice-port 2/0/2
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
--More-- station-id name winter Analog
station-id number 58572002
caller-id enable
!
voice-port 2/0/3
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572003
caller-id enable
!
voice-port 2/0/4
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572004
caller-id enable
!
voice-port 2/0/5
--More-- no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572005
caller-id enable!
dial-peer voice 9992000 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
--More-- huntstop
preference 4
destination-pattern 58572000
progress_ind alert strip
authentication username 58572000 password 7 58572000
port 2/0/0
!
dial-peer voice 9992001 pots
corlist incoming local
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
destination-pattern 58572001
progress_ind alert strip
authentication username 58572001 password 7 58572001
port 2/0/1
!
dial-peer voice 9992002 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
huntstop
--More-- preference 4
destination-pattern 58572002
progress_ind alert strip
authentication username 58572002 password 7 58572002
port 2/0/2
!
dial-peer voice 9992003 pots
corlist incoming national
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
destination-pattern 58572003
progress_ind alert strip
authentication username 58572003 password 7 58572003
port 2/0/3
!
dial-peer voice 9992004 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
--More-- destination-pattern 58572004
progress_ind alert strip
authentication username 58572004 password 7 58572004
port 2/0/4
!
dial-peer voice 9992005 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
destination-pattern 58572005
progress_ind alert strip
authentication username 58572005 password 7 58572005
port 2/0/5
desired result:
<colgroup><col span="9"></colgroup><tbody>
</tbody>
voice-port |
no snmp trap |
cptone |
timeouts |
description |
station-id name |
station-id number |
caller-id |
corlist incoming |
<colgroup><col></colgroup><tbody>
</tbody>
Have tried multiple approaches and all have failed. Any assistance would be greatly appreciated.
sample data:
!
--More-- voice-port 2/0/0
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572000
caller-id enable
!
voice-port 2/0/1
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572001
caller-id enable
!
voice-port 2/0/2
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
--More-- station-id name winter Analog
station-id number 58572002
caller-id enable
!
voice-port 2/0/3
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572003
caller-id enable
!
voice-port 2/0/4
no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572004
caller-id enable
!
voice-port 2/0/5
--More-- no snmp trap link-status
cptone AP
timeouts interdigit 4
description Analog phone
station-id name winter Analog
station-id number 58572005
caller-id enable!
dial-peer voice 9992000 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
--More-- huntstop
preference 4
destination-pattern 58572000
progress_ind alert strip
authentication username 58572000 password 7 58572000
port 2/0/0
!
dial-peer voice 9992001 pots
corlist incoming local
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
destination-pattern 58572001
progress_ind alert strip
authentication username 58572001 password 7 58572001
port 2/0/1
!
dial-peer voice 9992002 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
huntstop
--More-- preference 4
destination-pattern 58572002
progress_ind alert strip
authentication username 58572002 password 7 58572002
port 2/0/2
!
dial-peer voice 9992003 pots
corlist incoming national
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
destination-pattern 58572003
progress_ind alert strip
authentication username 58572003 password 7 58572003
port 2/0/3
!
dial-peer voice 9992004 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
--More-- destination-pattern 58572004
progress_ind alert strip
authentication username 58572004 password 7 58572004
port 2/0/4
!
dial-peer voice 9992005 pots
corlist incoming international
description Analog phone
translation-profile incoming tp_add_cor
huntstop
preference 4
destination-pattern 58572005
progress_ind alert strip
authentication username 58572005 password 7 58572005
port 2/0/5
desired result:
voice-port | no snmp trap | cptone | timeouts | description | station-id name | station-id number | caller-id | corlist incoming |
2/0/0 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572000 | enable | international |
2/0/1 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572001 | enable | local |
2/0/2 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572002 | enable | international |
2/0/3 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572003 | enable | national |
2/0/4 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572004 | enable | international |
2/0/5 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572005 | enable | international |
2/0/6 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572006 | enable | international |
2/0/7 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572007 | enable | international |
2/0/8 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572008 | enable | international |
2/0/9 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572009 | enable | international |
2/0/10 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572010 | enable | international |
2/0/11 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572011 | enable | international |
2/0/12 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572012 | enable | international |
2/0/13 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572013 | enable | international |
2/0/14 | link-status | AP | interdigit 4 | Analog phone | winter Analog | 58572014 | enable | international |
<colgroup><col span="9"></colgroup><tbody>
</tbody>