See the macroScheduler log for the execution of macro b.mac.
NOTICE 02/14/2007 11:26:20 macroScheduler: macro b.mac started with ID 3
NOTICE 02/14/2007 11:26:21 macroScheduler: macro b.mac with ID 3 ran
successfully
NOTICE 02/14/2007 11:26:21 macroScheduler: (Id: 3) Days: is 0 days
NOTICE 02/14/2007 11:26:21 macroScheduler: (Id: 3) Hours: is 0 hours
NOTICE 02/14/2007 11:26:21 macroScheduler: (Id: 3) Minutes: is 17 minutes
NOTICE 02/14/2007 11:26:21 macroScheduler: (Id: 3) Seconds: is 16 seconds
After the macro is run, display the next scheduled run time:
host1#
show schedule macro b.mac
b.mac at 2007-02-14 12:59:09
host1#
The file b.mac continues to be in use and cannot be deleted.
unshared in
file size size date (UTC) use
----------------------------- -------- -------- ------------------- ---
disk0:m.mac 438 438 01/26/2007 10:12:26
disk0:fc.mac 515 515 01/26/2007 12:29:14
disk0:b.mac 7728 7728 02/05/2007 13:55:10 !
disk0:c.mac 146 146 02/07/2007 16:09:12
disk0:mmcX2.rel 83859484 83859484 02/05/2007 16:01:50 !
host1#
delete b.mac
% File in use
The macro macro b.mac runs every 60 minutes.
NOTICE 02/14/2007 14:47:47 macroScheduler: macro b.mac started with ID 5
NOTICE 02/14/2007 14:47:49 macroScheduler: macro b.mac with ID 5 ran
successfully
NOTICE 02/14/2007 14:47:49 macroScheduler: (Id: 5) Days: is 0 days
NOTICE 02/14/2007 14:47:49 macroScheduler: (Id: 5) Hours: is 1 hour
NOTICE 02/14/2007 14:47:49 macroScheduler: (Id: 5) Minutes: is 25 minutes
NOTICE 02/14/2007 14:47:49 macroScheduler: (Id: 5) Seconds: is 33 seconds
host1#
show schedule macro
b.mac getuptime scheduled to run at 2007-02-14 14:52:47
Related
Documentation
schedule macro
•
•
show schedule macro
Practical Examples
You can use the macros in this section for configuring your router or as examples of useful
macros you can build yourself.
Configuring Frame Relay
You can organize your macros in many different ways to suit your needs. The first sample
macro in this section,
ds1mac.mac
, shows a typical method of organization. It consists
of a number of related macros for configuring interfaces on CT1 and CE1 modules, as
described in Table 54 on page 488.
487
Copyright © 2010, Juniper Networks, Inc.
Chapter 8: Writing CLI Macros
Содержание JUNOSE 11.3
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Страница 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Страница 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Страница 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Страница 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Страница 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Страница 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Страница 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Страница 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Страница 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Страница 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Страница 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Страница 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Страница 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...