When trying to setup macros on our new 4351 we get this:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#macro name MYMACRO
^
% Invalid input detected at '^' marker.
router(config)#macro?
macro
router(config)#macro ?
% Unrecognized command
router(config)#macro name ?
% Unrecognized command
router(config)#macro name?
% Unrecognized command
router#sh ver | in 16
Cisco IOS XE Software, Version 16.03.07
Cisco IOS Software [Denali], ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.3.7, RELEASE SOFTWARE ( fc4)
System image file is "bootflash:isr4300-universalk9.16.03.07.SPA.bin"
router#
I take it that this means I can't use macros anymore in XE 16.3? That sucks as it makes setting up capturing so much easier as you can see by the example below.
macro name start-pc
no ip access-list extended All_Traffic
ip access-list extended All_Traffic
permit ip any any
exit
exit
monitor capture buffer Traffic circular
monitor capture buffer Traffic filter access-list All_Traffic
monitor capture point ip cef TrafficCapture GigabitEthernet0/0/2 in
monitor capture point associate TrafficCapture Traffic
monitor capture buffer Traffic max-size 1024
monitor capture point start TrafficCapture
show monitor capture buffer all parameters
@
macro name stop-pc
exit
monitor capture point stop TrafficCapture
monitor capture buffer Traffic export ftp://192.168.0.12/router-capture.pcap
monitor capture buffer Traffic clear
monitor capture point disassociate TrafficCapture
@
!
macro global description start-pc | stop-pc
To start a capture you just run the macro "start-pc" and to stop it and transfer that capture to a waiting FTP server you run the "stop-pc" macro.
Anyone know an equally easy way to run captures on XE 16.3 if "macro" really is gone?