How to periodically upload the switch device configuration file to the TFTP server

2024-12-25 13:50:40 Published
  • 0 Followed
  • 0Collected ,2331Browsed

Network Topology

NULL

Problem Description

In order to better back up the switch configuration, in the absence of the network management server, the configuration file can be uploaded to the TFTP server at a scheduled time to achieve the backup of the configuration file. 

The scheduling tool can be used to back up the device configuration to the TFTP server.

Process Analysis

1. Configure scheduling task:

[H3C]scheduler job beifen //Create a scheduler job 
[H3C-job-beifen]command 1 copy slot1#flash:/startup.cfg flash:/beifen.cfg //Before uploading, it is recommended to make a copy of the configuration file locally on the device before uploading it. Otherwise, when uploaded to the TFTP server, there may be file name conflicts, and it will be difficult to identify which backup configuration file belongs to which device. 
[H3C-job-beifen]command 2 y //When using the copy command, there will be a prompt to confirm the file name, so select Y 
[H3C-job-beifen]command 3 tftp 10.1.1.1 put flash:/beifen.cfg //Use the TFTP command to upload the configuration file to the TFTP server 
[H3C-job-beifen]command 4 delete slot1#flash:/beifen.cfg //After the upload is complete, it is recommended to delete the locally copied file on the device to save device space 
[H3C-job-beifen]command 5 y //When executing the delete command, the device will prompt whether to delete the file, so select Y 
[H3C-job-beifen]quit 2

2. Configure scheduler policy

[H3C]scheduler schedule beifen //Create a scheduler policy 
[H3C-schedule-beifen]job beifen //Call the scheduler job 
[H3C-schedule-beifen]time repeating at 00:00 month-date last //Specify the time for the scheduler policy to run as 00:00 on the last day of each month 

Notes: 

 1. Keep the switch connected to the TFTP server. 

 2. Ensure that the device system time is consistent with the actual time. If not, the time when the device uploads the configuration file to the TFTP server will be deviated. 

 3. Set the TFTP server to start and path. 

 4. After completing the scheduling work and scheduling strategy configuration, remember to save the device configuration.


Solution

see the process analysis.

Please rate this case:   
0 Comments

No Comments

Add Comments: