06-03-2021 07:10 PM - edited 06-03-2021 07:11 PM
Hi guys, I just want to know if there's a specific NBU command/syntax to get the duration and speed of replication that lapse in Activity Monitor. I've tried the command "nbstlutil" but there's no output I needed. Hoping someone can help me thank you. :(
# /usr/openv/netbackup/bin/admincmd/nbstlutil repllist -U -sincetime 2021/04/03 | more
/find PROD-VMWPSAPDB01_1617382856
Image:
Master Server : VMLPNBUINF01
Backup ID : PROD-VMWPSAPDB01_1617382856
Client : PROD-VMWPSAPDB01
Backup Time : 1617382856 (2021/04/03 01:00:56)
Policy : VMWPSAPDB01_AIR_BACKUP
Client Type : 40
Schedule Type : 0
Storage Lifecycle Policy : Monthly_HO_TO_DR
Storage Lifecycle State : 3 (COMPLETE)
Storage Lifecycle Is Inactive : false
Time In Process : 1617410995 (2021/04/03 08:49:55)
Data Classification ID : (none specified)
Version Number : 1
OriginMasterServer : (none specified)
OriginMasterServerID : {00000000-0000-0000-0000-000000000000}
Import From Replica Time : 0 (0 secs)
Required Expiration Date : 0 (0 secs)
Created Date Time : 1617382856 (2021/04/03 01:00:56)
Copy:
Master Server : VMLPNBUINF01
Backup ID : PROD-VMWPSAPDB01_1617382856
Copy Number : 102
Copy Type : 3 (REPLICATE_TO_REMOTE_MASTER)
Expire Time : 1648918856 (2022/04/03 01:00:56)
Expire LC Time : 1648918856 (2022/04/03 01:00:56)
Try To Keep Time : 1648918856 (2022/04/03 01:00:56)
Residence : *Remote*Master*:Monthly_HO_TO_DR
Copy State : 5 (COPYCOMPLETE)
Job ID : 70850
Retention Type : 0 (FIXED)
MPX State : 0 (false)
RetryCount : 4
Last Retry Time : 1621258574 (2021/05/17 21:36:14)
Source : 1
Destination ID : (none specified)
Replica: : 0
DataFormat : 0 (DF_UNDEFINED)
SLP Index : 2
Replication Target:
Source Master Server: VMLPNBUINF01
Backup ID : PROD-VMWPSAPDB01_1617382856
Copy Number : 102
Target Machine : PMLRMSDPINF01
Target Info : PureDiskVolume
Remote Master : (none specified)
06-04-2021 02:49 AM
You can get сompleated replication jobs' details from bpdbjobs output. You'll need columns "field37= kbpersec - Data transfer speed in kilobytes/second" and "field10 = Elapsed time for the job"
06-09-2021 08:29 PM
Hi @Mike_Gavrilov ,
Good day!
Thank you for replying, apologies I'm not sure if I miss something, I just check the /usr/openv/netbackup/logs/bpdbjobs/root.<date>_00001.log but I can't see the specific job that I need to check the replication speed and elapsed time.
Client:
Backup Time : 1617382856 (2021/04/03 01:00:56)
Log path:
/usr/openv/netbackup/logs/bpdbjobs/root.040321_00001.log
00:02:47.780 [91728] <4> main: NetBackup 8.3: 2020070918
00:02:47.780 [91728] <4> main: BPVERBOSE = 0 VERYVERBOSE = 0
00:02:47.780 [91728] <4> main: switches
00:02:47.780 [91728] <4> cmnlogPARAMS: -clean
00:02:47.780 [91728] <2> bpdbjobs: VERBOSE = 0
00:02:47.814 [91728] <2> logconnections: BPJOBD CONNECT FROM 10.7.231.147.57699 TO 10.7.231.147.13723 fd = 5
00:02:47.814 [91728] <2> job_authenticate_connection: VxSS authentication check for now...
00:02:47.855 [91728] <2> job_connect: Connected to the host VMLPNBUINF01 contype 54 jobid <0> socket <5>
00:02:47.855 [91728] <2> job_connect: Connected on port 57699
00:02:47.855 [91728] <4> JobdSockList::RegisterSocket: Register socket (5).
00:02:49.676 [91728] <4> JobdSockList::UnregisterSocket: Unregister socket (5).
00:02:49.677 [91728] <2> job_monitoring_exex: ACK disconnect
00:02:49.677 [91728] <2> job_disconnect: Disconnected
00:02:49.677 [91728] <4> main: 000:00:02
20:53:01.098 [80929] <4> main: NetBackup 8.3: 2020070918
20:53:01.098 [80929] <4> main: BPVERBOSE = 0 VERYVERBOSE = 0
20:53:01.098 [80929] <4> main: switches
20:53:01.098 [80929] <4> cmnlogPARAMS: -json 10 -file /usr/openv/var/global/telemetry/nb_runtime/1617454380_job_data.json -t 04/02/2021 20:32:49
20:53:01.098 [80929] <2> bpdbjobs: VERBOSE = 0
20:53:01.126 [80929] <2> logconnections: BPJOBD CONNECT FROM 10.7.231.147.52059 TO 10.7.231.147.13723 fd = 6
20:53:01.126 [80929] <2> job_authenticate_connection: VxSS authentication check for now...
20:53:01.165 [80929] <2> job_connect: Connected to the host VMLPNBUINF01 contype 54 jobid <0> socket <6>
20:53:01.165 [80929] <2> job_connect: Connected on port 52059
20:53:01.165 [80929] <4> JobdSockList::RegisterSocket: Register socket (6).
20:53:01.473 [80929] <2> job_monitoring_ex: Got JOBENDOFSUMMARY
20:53:01.473 [80929] <4> JobdSockList::UnregisterSocket: Unregister socket (6).
20:53:01.474 [80929] <2> job_monitoring_exex: ACK disconnect
20:53:01.474 [80929] <2> job_disconnect: Disconnected
20:53:01.490 [80929] <4> main: 000:00:00
20:53:17.762 [80986] <4> main: NetBackup 8.3: 2020070918
20:53:17.762 [80986] <4> main: BPVERBOSE = 0 VERYVERBOSE = 0
20:53:17.762 [80986] <4> main: switches
20:53:17.762 [80986] <4> cmnlogPARAMS: -json -t 04/02/2021 20:53:17
20:53:17.762 [80986] <2> bpdbjobs: VERBOSE = 0
20:53:17.800 [80986] <2> logconnections: BPJOBD CONNECT FROM 10.7.231.147.33714 TO 10.7.231.147.13723 fd = 5
20:53:17.800 [80986] <2> job_authenticate_connection: VxSS authentication check for now...
20:53:17.839 [80986] <2> job_connect: Connected to the host VMLPNBUINF01 contype 54 jobid <0> socket <5>
20:53:17.839 [80986] <2> job_connect: Connected on port 33714
20:53:17.839 [80986] <4> JobdSockList::RegisterSocket: Register socket (5).
20:53:18.032 [80986] <2> job_monitoring_ex: Got JOBENDOFSUMMARY
20:53:18.040 [80986] <4> JobdSockList::UnregisterSocket: Unregister socket (5).
20:53:18.040 [80986] <2> job_monitoring_exex: ACK disconnect
20:53:18.040 [80986] <2> job_disconnect: Disconnected
20:53:18.040 [80986] <4> main: 000:00:01
06-09-2021 09:54 PM
Hi @mdderecho
Yes you missed something, @Mike_Gavrilov was referring to the bpdbjobs command - I suspect he means using either the option -most_columns or -all_columns though I'm not sure which one. E.G.
# bpdbjobs -all_columns
David
06-09-2021 11:21 PM
Hi @davidmoline ,
Good day!
Is there a way to filter out the command /usr/openv/netbackup/bin/admincmd/bpdbjobs -all_columns ?
eg. field 10 = Elapsed time for the job and field37=kbpersec - Data transfer speed in kilobytes/second
I've tried some options in bpdbjobs --help but I can't get the specific fields only, because the output of -all_columns is still in long format. Sorry to bother you mate.
06-09-2021 11:46 PM - edited 06-09-2021 11:47 PM
Hi @mdderecho
The best I could find was the command reference guide for NetBackup 8.0 - it appears to be the last that actually lists the output fields - hopefully it will help you decode the output:
https://www.veritas.com/content/support/en_US/doc/123533878-127136857-0/v123536850-127136857
[Rant] It sucks that they write to not rely on the field contents between releases, then not include what they are in a particular release, not provide an option to include the headers for those options [rant off].
David
06-10-2021 12:06 AM
Thanks for this mate, actually that's my concern on the headers filtering, its not indicated in example. I will try to explore this. thanks again mate.