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

Database backup using TL1

smaslov
Level 1
Level 1

Is there a way to backup TCC+ database using TL1 commands? I checked TL1 command reference, but didn't see any commands that would allow it. I am running 3.4.2 code on TCC+ cards. I have over 40 nodes and it would be nice to automate backups. Thanks, Sergei

8 Replies 8

tphelps
Cisco Employee
Cisco Employee

The COPY-RFILE command would be the one. I can't remember if the database (RFILE-DB) function was there in 3.4.x.

COPY-RFILE:[]::::TYPE=,[SRC=],[DEST=],[OVWRT=],[FTTD=]

EX: COPY-RFILE::RFILE-DB:100::TYPE=RFBU,DEST="FTP://test123:*******@10.10.10.10/export/home/test123/db";

http://www.cisco.com/en/US/products/hw/optical/ps2006/products_command_reference_chapter09186a00804fe94c.html#wp2831622

kabiyesi79
Level 1
Level 1

I get the below error when I try to copy software from node to server. I need help with correct syntax. Server is directly connected to node via tcc card. See below for the tl1 command I used and the error respectively. Thanks for your help in advance.

 

COPY-RFILE:HERNDON:RFILE-PKG:703::TYPE=SWDL,src=“FTP://CISCO15:otbu+1@192.168.5.54:21/ons15454.k9.R900.pkg”,
DEST=“FTP://kabiyesi:bishopp1@192.168.5.21:21/ons15454.k9.R900.pkg”,OVWRT=YES,FTTD=“FTTD_URL”;

 

 

HERNDON 2018-05-07 09:44:34
M 703 DENY
IITA
/* Input Invalid Target ID (sent by T-TD CISCO15) */

supoonia
Cisco Employee
Cisco Employee

Open a TL1 session for the ONS node, and then use the
TL1 copy-rfile command:

copy-rfile::rfile-pkg:1::type=swdl,src="ftp://username:password#ftp-ip-address/package";

So for example, for username=cisco, password=cisco15, ftp server=10.89.148.3, then the TL1 command is:
copy-rfile::rfile-pkg:1::type=swdl,src="ftp://cisco:cisco15@10.89.148.3/15454DWDMSDH-09203-010-H2606.pkg";

APPLY::1::ACT; this is the command to activate software

Note, you need the IP address of the ftp server, not the hostname. The actual placement of the package might require you to use the full path in the TL1 command.

Thank you for your response. I am actually trying to backup software from the ONS node @192.168.5.54 to laptop @192.168.5.21. When I issued the below command:

 

copy-rfile::rfile-pkg:1::type=swdl,src="ftp://CISCO15:otbu+1@192.168.5.54/ons15454.k9.R900.pkg";

 

I got the error below:

>
>
> copy-rfile::rfile-pkg:1::type=swdl,src="ftp://CISCO15:******@192.168.5.54/ons15454.k9.R900.pkg";

CISCO15 2018-05-07 13:45:33
M 1 COMPLD
;
>

CISCO15 2018-05-07 13:45:34
A 45.45 REPT EVT EQPT
"SLOT-7:SFTWDOWN-FAIL,TC,,,NEND,NA,,,:\"Software Download Failed\",TCC"
;

CISCO15 2018-05-07 13:45:34
A 46.46 REPT EVT FXFR
"ons15454.k9.R900.pkg,COMPLD,FAILURE,"
/* ERROR - -5550 - File Not Found */
;
>

 

Please advise of the correct syntax needed to copy software from node to laptop. Below is my current server settings:

 

>
>
> RTRV-FTPSERVER:::A;

CISCO15 2018-05-07 13:52:59
M A COMPLD
"IPADDR=192.168.5.54,IPMASK=255.255.255.0,ENABLE=Y,TIMER=0"
;
>

 

Hello, you can not backup a software from the node, this is not supported.

you can only backup database.

 

Thank you for your response.

you can take database backup of the node using TL1 by following method.

 

For this, you have to map FTP server to the ONS.

 


We need to follow the following instructions to register the FTP server over ONS nodes.

FTP server registration is the initial step to take or restore database backup of NE. Start & register FTP server at gateway NE.


Figure FTP Host registration from CTC

20140626-095701_image001-2.jpg

 

Input Format:
ENT-FTPSERVER:[<TID>]::<CTAG>:::IPADDR=<IPADDR>, [IPMASK=<IPMASK>],ENABLE=<ENABLE>,[TIMER=<TIMER>];

Example:
ENT-FTPSERVER:::123:::IPADDR=10.20.30.40, IPMASK= 255.0.0.0, ENABLE=Y;

Verify the registration of FTP server at Gateway with help of below command.
Input Format:
RTRV-FTPSERVER:[<TID>]::<CTAG>:::[IPADDR=<IPADDR>], [IPMASK=<IPMASK>],[ENABLE=<ENABLE>];

Output Format
SID DATE TIME
M CTAG COMPLD",:IPADDR=<IPADDR>,IPMASK=<IPMASK>, ENABLE=<ENABLE>, TIMER=<TIMER>";

 

Example:


Output Example
SID DATE TIME
M CTAG COMPLD",:IPADDR=10.20.30.40,IPMASK=255.0.0.0, ENABLE=Y,TIMER=0";

Copy Provisioning and Provisioning + System Database
After completion of ftp server registration, a user can copy two different databases of the system i.e. provisioning database and provisioning + system database.
Input Format:
COPY-RFILE:[<TID>]:<SRC>:<CTAG>::TYPE=<XFERTYPE> ,[src=<SRC1>], [DEST=<DEST>], [OVWRT=<OVWRT>], [FTTD=<FTTD>];

Example of provisioning database:
COPY-RFILE::RFILE-DB:123::TYPE=RFBU, DEST="FTP://username:password@x.x.x.x/filename.db";

Example of complete database:
COPY-RFILE::RFILE-COMPDB:123::TYPE=RFBU ,DEST="FTP://username:password@x.x.x.x/filename.db";

Restore Provisioning and Provisioning + System Database

Database restoration example has been given as an example to rollback database from TL1.
Input Format:
COPY-RFILE:[<TID>]:<SRC>:<CTAG>::TYPE=<XFERTYPE> ,[src=<SRC1>], [DEST=<DEST>], [OVWRT=<OVWRT>], [FTTD=<FTTD>];

Example of provisioning database:
COPY-RFILE::RFILE-DB:123::TYPE=RFR, src="FTP://username:password@x.x.x.x/filename.db", OVWRT=YES;

Example of complete (Provisioning + System) database:
COPY-RFILE::RFILE-COMPDB:123::TYPE=RFR, src="FTP://username:password@x.x.x.x/filename.db", OVWRT=YES;


Below specified Source (SRC) and Transfer types (XFERTYPE ) are given as an input for Database backup, restoration and software download.

Table 1 Types Source (SRC) Inputs
RFILE-DB

Transferring the provisioning database.

RFILE-COMPDB

Transferring the provisioning and system database.

RFILE-PKG

Transferring a software package.

 

 


Types of XFERTYPE inputs: specifies the type and direction of the file transferred.

Table 2 Transfer Types (XFERTYPE)

RFBU

Remote File Backup. Applicable for Maintenance User (and higher).

RFR

Remote File Restore. Applicable for Superuser.

SWDL

Software Download. Applicable for Maintenance User (and higher).

Rizi11
Level 1
Level 1

Resolved

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: