Nexus NX-OS Scheduler Explained & Configuration

What is an NX-OS Scheduler

The NX-OS scheduler gives the possibility to define and set a timetable for maintenance activities such as the following:

  • Quality of service (QoS) policy changes
  • Data backup
  • Saving a configuration


NX-OS Scheduler consists of two components: Job(s) and Schedule:

Jobs consist of a single command or multiple commands that define routine activities. Jobs can be scheduled one time or at periodic intervals.


How to set a scheduler in NX-OS

The scheduler defines a job and its timetable as follows:

  • Job: A routine task or tasks defined as a command list and performed according to a specified schedule.

  • Schedule: The timetable for completing a job. You can assign multiple jobs to a schedule. A schedule is defined as either periodic or one-time-only:
    • Periodic mode: A recurring interval that continues until you delete the job. You can configure the following types of intervals:
      • Daily: A job is done once a day.
      • Weekly: A job is done once a week.
      • Monthly: A job is done once a month.
      • Delta: A job begins at the specified start time and then at specified intervals (days:hours:minutes).
    • One-time mode: A job is completed only once at a specified time.



NX-OS Scheduler Configuration Example, Backup:

Step-1: Define a job:

First, declare the job name and then define its body:

switch# configure terminal
switch(config)# scheduler job name backup-cfg
switch(config-job)# cli var name timestamp $(TIMESTAMP) ;copy running-config
bootflash:/$(SWITCHNAME)-cfg.$(timestamp) ;copy bootflash:/$(SWITCHNAME)-cfg.$
(timestamp) tftp://1.2.3.4/ vrf management
switch(config-job)# end
Code language: PHP (php)


Step-2: Schedule the job:

switch# configure terminal
switch(config)# scheduler schedule name daily
switch(config-schedule)# job name backup-cfg
switch(config-schedule)# time daily 1:00
switch(config-schedule)# end
Code language: PHP (php)



References:

cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/system_management/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_System_Management_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_System_Management_Configuration_Guide_7x_chapter_01010.html#concept_733E403B3D2E4707BD248A68A263F7B5

Bilel-A

Enthusiastic Network Engineer specializing in Cisco ACI, passionate about solving challenges. A lifelong learner who loves gaining and sharing knowledge. Profile: https://www.linkedin.com/in/bilel-ameur-71116b2b5
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x