cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1331
Views
0
Helpful
0
Replies

Macros on ios and Kron jobs

Hello...

       Recently we decided for some reasons to shut/no shut a specific ports on 2960 and 3560 switches in a regular basis, so I decided to create a Macro with the specific commands on the specific interfaces and I tested it manually working well.

Then I have decided to subject it to Kron policy and schedule to call the Macro on a specific time of the day.

unfortunately, Show kron sche tell it has been executed but actually its not. which is obvious from the logs.

attached the configs of the Kron job and the Macro...

---------------

macro name RestartAPs
int gig 1/0/23
shutdown
no shutdown @

---------------

kron occurrence RestartAPs_Sch at 10:55 recurring
 policy-list RestartAPs

kron policy-list RestartAPs
 cli macro global apply RestartAPs

--------------------

kindly what's wrong or whats missing to achieve the execution on the macro on a schedule.

TIA

 

0 Replies 0

Review Cisco Networking for a $25 gift card