No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade
Knowledge Base

assistant task for FTP backup fail because of interactive commands

Publication Date:  2015-01-31  |   Views:  293  |   Downloads:  0  |   Author:  b00745015  |   Document ID:  EKB1000066528

Contents

Issue Description

Setup:

dis ver
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.120 (AR200 V200R003C01SPC900)
Copyright (C) 2011-2013 HUAWEI TECH CO., LTD
Huawei AR207 Router uptime is 8 weeks, 3 days, 21 hours, 12 minutes

#
assistant task test
if-match timer cron if-match timer cron * 0 0/1 * * * *
perform 1 batch-file flash:/sys.bat
#

more sys.back

ftp
open 192.168.6.42
user1
PassworD
bin
put 210235384110e5000081.txt

bye

After running the assistant task, the file is not backup to FTP server.

If you are running commands by copy and paste into CLI directly, backup is working properly. 

Alarm Information

none.

Handling Process

none

Root Cause

When the router run the sys.bat file, it will fail to introduce the user and the password from the batch file. Running interactive commands is not supported currently.

Solution

Workaround:

Use NQA test:

We will use NQA:
nqa test-instance admin huawei
test-type ftp                                                                 
destination-address ipv4 192.168.2.2     \\\\\\ ftp server address
frequency 3600         \\\\\ Frequency defines how often the ftp test repeats in seconds, for example 3600 which  is 1 hour.                                                        
ftp-username XXXX                                   \\\\ ftp user name         
ftp-password cipher XXXXX                        \\\\\ ftp password
ftp-filename rsa_host_key.efs                                                 
ftp-operation put                                         \\\\ ftp operation
start now

Suggestions

none