Skip to content

Commit e2e002f

Browse files
author
Marcin Przepiorowski
committed
version 2.4.13
2 parents 1d9948d + 8d8a959 commit e2e002f

File tree

8 files changed

+81
-9
lines changed

8 files changed

+81
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 2.4.13
2+
3+
### Added
4+
- Support for Commvault in adding MSSQL dSource
5+
6+
### Changed
7+
- remove bookmark in self service fix
8+
- fix for snapshot size reporting
9+
10+
111
## 2.4.12
212

313
### Added

bin/dx_ctl_dsource.pl

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
'logsyncmode=s' => \(my $logsyncmode),
7373
'validatedsync=s' => \(my $validatedsync),
7474
'delphixmanaged=s' => \(my $delphixmanaged),
75+
'commserver=s' => \(my $commserver),
76+
'commsourceclient=s' => \(my $commsourceclient),
77+
'commstagingclient=s' => \(my $commstagingclient),
7578
'exclude=s@' => \(my $exclude),
7679
'hadr=s' => \(my $hadr),
7780
'compression=s' => \($compression),
@@ -166,6 +169,22 @@
166169
}
167170
}
168171

172+
if ( (defined($commserver)) && ( ! ( defined($commsourceclient) && defined($commstagingclient) ) ) ) {
173+
print "Options -commserver requires commsourceclient and commstagingclient to be configured\n";
174+
pod2usage(-verbose => 1, -input=>\*DATA);
175+
exit (1);
176+
}
177+
178+
my %commvault;
179+
180+
if (defined($commserver)) {
181+
%commvault = (
182+
'commserveHostName' => $commserver,
183+
'sourceClientName' => $commsourceclient,
184+
'stagingClientName' => $commstagingclient
185+
);
186+
}
187+
169188

170189
# this array will have all engines to go through (if -d is specified it will be only one engine)
171190
my $engine_list = Toolkit_helpers::get_engine_list($all, $dx_host, $engine_obj);
@@ -336,7 +355,7 @@
336355
}
337356
elsif ($type eq 'mssql') {
338357
my $db = new MSSQLVDB_obj($engine_obj,$debug);
339-
$jobno = $db->addSource($sourcename,$sourceinst,$sourceenv,$source_os_user,$dbuser,$password,$dsourcename,$group,$logsync,$stageenv,$stageinst,$stage_os_user, $backup_dir, $dumppwd, $validatedsync, $delphixmanaged, $compression, $dbusertype);
358+
$jobno = $db->addSource($sourcename,$sourceinst,$sourceenv,$source_os_user,$dbuser,$password,$dsourcename,$group,$logsync,$stageenv,$stageinst,$stage_os_user, $backup_dir, $dumppwd, $validatedsync, $delphixmanaged, $compression, $dbusertype, \%commvault);
340359
}
341360
elsif ($type eq 'vFiles') {
342361
my $db = new AppDataVDB_obj($engine_obj,$debug);
@@ -387,6 +406,9 @@ =head1 SYNOPSIS
387406
[-delphixmanaged yes/no ]
388407
[-dbusertype database|environment|domain]
389408
[-cdbcont container -cdbuser user -cdbpass password]
409+
[-commserver Commvault servername]
410+
[-commsourceclient Commvault client name]
411+
[-commstagingclient Commvault staging name]
390412
[-exclude path]
391413
[-debug ]
392414
[-version ]
@@ -507,6 +529,15 @@ =head2 dSource arguments
507529
=item B<-dbusertype database|environment|domain>
508530
Specify a database user type for MS SQL. Default value is database.
509531
532+
=item B<-commserver Commvault servername>
533+
Commvault server name
534+
535+
=item B<-commsourceclient Commvault client name>
536+
Commvault client name
537+
538+
=item B<-commstagingclient Commvault staging name>
539+
Commvault staging name
540+
510541
=item B<-hadr hadrPrimarySVC:XXX,hadrPrimaryHostname:hostname,hadrStandbySVC:YYY>
511542
Add DB2 dSource with HADR support
512543
Parameter hadrTargetList is optional.

bin/dx_ctl_env.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ =head1 SYNOPSIS
503503
504504
dx_ctl_env [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
505505
[ -name env_name | -reference reference ]
506-
-acton <enable|disable|refresh|adduser|addrepo|adddatabase|addlistener
506+
-action <enable|disable|refresh|adduser|addrepo|adddatabase|addlistener
507507
|deleteuser|deleterepo|deletedatabase|deletelistener|updatehost>
508508
[-dbname dbname]
509509
[-instancename instancename]

bin/dx_ctl_js_bookmarks.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302

303303
$bookmark_name = $bookmarks->getName($bookmarkitem);
304304

305-
if (lc $action eq 'delete') {
305+
if (lc $action eq 'remove') {
306306
my $jobno = $bookmarks->deleteBookmark($bookmarkitem);
307307
$ret = $ret + Toolkit_helpers::waitForJob($engine_obj, $jobno, "Bookmark $bookmark_name deleted", "Problem with deleting bookmark $bookmark_name")
308308

lib/Engine.pm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,13 @@ sub extended_password {
510510
return 1;
511511
}
512512

513-
if (! -x "$engine_config->{passwordscript}") {
514-
print "Password script $engine_config->{passwordscript} is not executable\n";
515-
logger($self->{_debug}, "Password script $engine_config->{passwordscript} is not executable");
516-
return 1;
513+
my $osname = $^O;
514+
if ( $osname ne 'MSWin32' ) {
515+
if (! -x "$engine_config->{passwordscript}") {
516+
print "Password script $engine_config->{passwordscript} is not executable\n";
517+
logger($self->{_debug}, "Password script $engine_config->{passwordscript} is not executable");
518+
return 1;
519+
}
517520
}
518521

519522
my $out = qx|$line|;

lib/MSSQLVDB_obj.pm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ sub addSource {
392392
my $delphixmanaged = shift;
393393
my $compression = shift;
394394
my $dbusertype = shift;
395+
my $commvault = shift;
395396

396397
logger($self->{_debug}, "Entering MSSQLVDB_obj::addSource",1);
397398

@@ -644,6 +645,12 @@ sub addSource {
644645

645646

646647

648+
if (defined($commvault->{"commserveHostName"})) {
649+
$commvault->{"type"} = "MSSqlCommvaultConfig";
650+
$dsource_params{"linkData"}{"mssqlCommvaultConfig"} = $commvault;
651+
}
652+
653+
647654
if (defined($delphixmanaged) && ($delphixmanaged eq 'yes')) {
648655
my $compression_json = JSON::false;
649656

@@ -699,6 +706,10 @@ sub addSource {
699706
}
700707
);
701708

709+
if (defined($commvault->{"commserveHostName"})) {
710+
$commvault->{"type"} = "MSSqlCommvaultConfig";
711+
$dsource_params{"linkData"}{"syncStrategy"}{"mssqlCommvaultConfig"} = $commvault;
712+
}
702713

703714

704715
if (defined($delphixmanaged) && ($delphixmanaged eq 'yes')) {

lib/Snapshot_obj.pm

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,13 @@ sub getSnapshotName {
173173
my $self = shift;
174174
my $reference = shift;
175175
logger($self->{_debug}, "Entering Snapshot_obj::getSnapshotName",1);
176-
return $self->{_snapshots}->{$reference}->{name};
176+
my $ret;
177+
if (defined($self->{_snapshots}->{$reference}->{name})) {
178+
$ret = $self->{_snapshots}->{$reference}->{name};
179+
} else {
180+
$ret = 'No snapshot data'
181+
}
182+
return $ret;
177183
}
178184

179185

@@ -392,7 +398,18 @@ sub getSnapshotTimeZone {
392398
my $self = shift;
393399
my $reference = shift;
394400
logger($self->{_debug}, "Entering Snapshot_obj::getSnapshotTimeZone",1);
401+
402+
if (!defined($self->{_snapshots}->{$reference})) {
403+
return 'N/A';
404+
}
405+
395406
my $ts = $self->{_snapshots}->{$reference}->{timezone} ;
407+
408+
if (!defined($self->{_snapshots}->{$reference}->{timezone})) {
409+
return 'N/A';
410+
}
411+
412+
#print Dumper $self->{_snapshots}->{$reference};
396413
logger($self->{_debug}, "Snapshot timezone returned by DE $ts",1);
397414
chomp($ts);
398415
my @temp = split(',',$ts);

lib/Toolkit_helpers.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use File::Spec;
2929

3030
use lib '../lib';
3131

32-
our $version = '2.4.12-prebuild';
32+
our $version = '2.4.13';
3333

3434
my $tz = new Date::Manip::TZ;
3535
my $dt = new Date::Manip::Date;

0 commit comments

Comments
 (0)