Using DBAdmin to backup to external FTP server

Answered Question
Mar 10th, 2010
User Badges:

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

Hi

I am trying to script an automatic FTP backup of a WCS system using the DBAdmin command from a command line.

As the WCS was previously a WLSE it is running Linux via the WSC conversion part code WCS-WLSE-APB-100, it has then been further upgraded and is running 6.0.170.0 Base. Linux version is: 2.6.18-8.el5 ([email protected]) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan 26 14:15:21 EST 2007)

When I execute the command I get the following:

[[email protected] bin]# ./dbadmin.sh remotebackup 10.0.0.1 test test

Do you want to backup report history? (y/n) n

Report history will not be backed up.

Exception in thread "main" java.lang.IllegalArgumentException: Path must not be empty

        at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:190)

        at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:166)

        at com.cisco.server.util.FreeSpaceChecker.freeSpaceGB(Unknown Source)

        at com.cisco.server.util.FreeSpaceChecker.checkDirectoriesForBackup(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.backupDatabase(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.backupDatabase(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.backupDatabase(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.remoteDatabaseBackup(Unknown Source)

        at com.cisco.packaging.DBAdmin.remoteBackup(Unknown Source)

        at com.cisco.packaging.DBAdmin.runMain(Unknown Source)

        at com.cisco.packaging.DBAdmin.main(Unknown Source)

[[email protected] bin]#

Any ideas where I am going wrong or could anyone suggest an alternative method of backing up the WCS backups off this appliance to a different host?

Thanks

Correct Answer by sschmidt about 7 years 2 weeks ago

Found it.  Works in mine because this bug is in your code .170 and not mine .181.


CSCte81786   dbadmin remotebackup generates errors, does not do ftp backup.


An upgrade should help

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
sschmidt Wed, 03/10/2010 - 10:28
User Badges:
  • Cisco Employee,

Seems to work fine for me:


nms-xx:/opt/WCS6.0.181.0/bin# ./dbadmin.sh remotebackup 64.x.x.x spschmidt xxxxxx
Do you want to backup report history? (y/n) n
Report history will not be backed up.
Backing up the database ... to Temp/1268245111903
Database backup initiated.
Copying extra files ...
Database backup done.  Taring the backup files ...
Backup succeeded
Backup resides on host=64.x.x.x dir=/remote_nms//opt/WCS6.0.181.0/webnms/Temp/nms_backup_of_wcs.nmsbackup


Can you add a cat of /etc/redhat-release to the post

erick.whiteford Wed, 03/10/2010 - 11:30
User Badges:

Hi


Output of the command you suggested is:


[[email protected] etc]# cat redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
[[email protected] etc]#


/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

Good to hear it works for you as it gives me some hope of finding the solution. All documentation regarding the dbadmin command refers to v4.1 and I was wondering if it had been depreciated from later versions!

Correct Answer
sschmidt Wed, 03/10/2010 - 11:40
User Badges:
  • Cisco Employee,

Found it.  Works in mine because this bug is in your code .170 and not mine .181.


CSCte81786   dbadmin remotebackup generates errors, does not do ftp backup.


An upgrade should help

erick.whiteford Wed, 03/10/2010 - 11:55
User Badges:

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

Thanks for the answer and quick response. An upgrade appears the way forward.

Kind regards

Actions

This Discussion

Related Content

 

 

Trending Topics - Security & Network