{"id":6531,"date":"2017-12-19T11:50:06","date_gmt":"2017-12-19T01:50:06","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=6531"},"modified":"2018-12-11T08:00:00","modified_gmt":"2018-12-10T22:00:00","slug":"basics-prior-recovery-details","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2017\/12\/19\/basics-prior-recovery-details\/","title":{"rendered":"Basics &#8211; Prior Recovery Details"},"content":{"rendered":"<p>If you need to find out details about what has recently been recovered with a NetWorker server, there&#8217;s a few different ways to achieve it.<\/p>\n<p>NMC, of course, offers recovery reports. These are particularly good if you&#8217;ve got admins (e.g., security\/audit people) who only access NetWorker via NMC \u2013 and good as a baseline report for auditing teams. Remember that NMC will retain records for reporting for a user defined period of time, via the Reports | Reports | Data Retention setting:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/2017\/12\/19\/basics-prior-recovery-details\/reports-data-retention-menu\/\" rel=\"attachment wp-att-6532\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6532\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/Reports-Data-Retention-Menu.png\" alt=\"Reports Data Retention Menu\" width=\"410\" height=\"267\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/Reports-Data-Retention-Menu.png 410w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/Reports-Data-Retention-Menu-300x195.png 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/2017\/12\/19\/basics-prior-recovery-details\/data-retention\/\" rel=\"attachment wp-att-6533\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6533\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/Data-Retention.png\" alt=\"Data Retention Setting\" width=\"363\" height=\"617\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/Data-Retention.png 363w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/Data-Retention-176x300.png 176w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/a><\/p>\n<p>The actual report you&#8217;ll usually want to run for recovery details is the &#8216;Recover Details&#8217; report:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/2017\/12\/19\/basics-prior-recovery-details\/nmc-recover-report\/\" rel=\"attachment wp-att-6534\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6534\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Recover-Report.png\" alt=\"NMC Recover Details Report\" width=\"518\" height=\"437\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Recover-Report.png 518w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Recover-Report-300x253.png 300w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/a><\/p>\n<p>The other way you can go about it is to use the command&nbsp;<em>nsrreccomp<\/em>, which retrieves details about completed recoveries from the NetWorker jobs database. Now, the jobs database is typically pruned every 72 hours in a default install (you can change the length of time on the jobs database). Getting a list of completed recoveries (successful or otherwise) is as simple as running the command&nbsp;<em>nsrreccomp -L<\/em>:<\/p>\n<pre>[root@orilla tmp]# <strong>nsrreccomp -L<\/strong>\nname, start time, job id, completion status\nrecover, Tue Dec 19 10:28:25 2017(1513639705), 838396, succeeded\nDNS_Serv_Rec_20171219, Tue Dec 19 10:39:19 2017(1513640359), 838404, failed\nDNS_Server_Rec_20171219_2, Tue Dec 19 10:41:48 2017(1513640508), 838410, failed\nDNS_Server_Rec_20171219_3, Tue Dec 19 10:43:55 2017(1513640635), 838418, failed\nDNS_Server_Rec_20171219, Tue Dec 19 10:47:43 2017(1513640863), 838424, succeeded<\/pre>\n<p>You can see in the above list that I made a few recovery attempts that generated failures (deliberately picking a standalone ESX server that didn&#8217;t have a vProxy to service it as a recovery target, then twice forgetting to change my recovery destination) so that we could see the list includes successful and failed jobs.<\/p>\n<p>You&#8217;ll note the second last field in each line of output is actually the Job ID associated with the recovery. You can actually use this with nsrreccomp to retrieve the full output of an individual job, viz.:<\/p>\n<pre>[root@orilla tmp]# <strong>nsrreccomp -R 838396<\/strong>\n Recovering 1 file from \/tmp\/ into \/tmp\/recovery\n Volumes needed (all on-line):\n Backup.01 at Backup_01\n Total estimated disk space needed for recover is 8 KB.\n Requesting 1 file(s), this may take a while...\n Recover start time: Tue 19 Dec 2017 10:28:25 AEDT\n Requesting 1 recover session(s) from server.\n 129290:recover: Successfully established direct file retrieve session for save-set ID '1345653443' with adv_file volume 'Backup.01'.\n .\/tostage.txt\n Received 1 file(s) from NSR server `orilla'\n Recover completion time: Tue 19 Dec 2017 10:28:25 AEDT<\/pre>\n<p>The show-text option can be used for any recovery performed. For a virtual machine recovery it&#8217;ll be quite verbose &#8211; a snippet is as follows:<\/p>\n<pre>[root@orilla tmp]# <strong>nsrreccomp -R 838424<\/strong>\nInitiating virtual machine 'krell_20171219' recovery on vCenter caprica.turbamentis.int using vProxy langara.turbamentis.int.\n152791:nsrvproxy_recover: vProxy Log Begins ===============================================\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] Logging to '\/opt\/emc\/vproxy\/runtime\/logs\/vrecoverd\/RecoverVM-5e9719e5-61bf-4e56-9b68-b4931e2af5b2.log' on host 'langara'.\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] Release: '2.1.0-17_1', Build number: '1', Build date: '2017-06-21T21:02:28Z'\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] Changing log level from INFO to TRACE.\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 INFO: [@(#) Build number: 67] Created RecoverVM session for \"krell_20171219\", logging to \"\/opt\/emc\/vproxy\/runtime\/logs\/vrecoverd\/RecoverVM-5e9719e5-61bf-4e56-9b68-b4931e2af5b2.log\"...\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] Starting restore of VM \"krell_20171219\". Logging at level \"TRACE\" ...\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] RecoverVmSessions supplied by client:\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] {\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] \"Config\": {\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] \"SessionId\": \"5e9719e5-61bf-4e56-9b68-b4931e2af5b2\",\n159373:nsrvproxy_recover: vProxy Log: 2017\/12\/19 10:47:19 NOTICE: [@(#) Build number: 67] \"LogTag\": \"@(#) Build number: 67\",<\/pre>\n<p>Now, if you&#8217;d like more than 72 hours retention in your jobs database, you can set it to a longer period of time (though don&#8217;t get too excessive &#8211; you&#8217;re better off capturing jobs database details periodically and saving to an alternate location than trying to get the NetWorker server to retain a huge jobs database) via the server properties. This can be done using <em>nsradmin<\/em> or NMC \u2013 NMC shown below for reference:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/2017\/12\/19\/basics-prior-recovery-details\/nmc-server-properties\/\" rel=\"attachment wp-att-6535\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6535\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties.png\" alt=\"NMC Server Properties\" width=\"1001\" height=\"484\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties.png 1001w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties-300x145.png 300w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties-768x371.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/2017\/12\/19\/basics-prior-recovery-details\/nmc-server-properties-jobsdb-retention\/\" rel=\"attachment wp-att-6536\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6536\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties-JobsDB-Retention.png\" alt=\"NMC Server Properties JobsDB Retention\" width=\"776\" height=\"377\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties-JobsDB-Retention.png 776w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties-JobsDB-Retention-300x146.png 300w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2017\/12\/NMC-Server-Properties-JobsDB-Retention-768x373.png 768w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/a><\/p>\n<p>There&#8217;s not much else to grabbing recovery results out of NetWorker \u2013 it&#8217;s certainly useful to know of both the NMC and command line options available to you. (Of course, if you want maximum flexibility on recovery reporting, you should definitely check out Data Protection Advisor (DPA), which is available automatically under any of the Data Protection Suite licensing models.)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you need to find out details about what has recently been recovered with a NetWorker server, there&#8217;s a few&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,16,19],"tags":[1243,1415,638,1414,1252],"class_list":["post-6531","post","type-post","status-publish","format-standard","hentry","category-basics","category-networker","category-recovery","tag-basics","tag-jobsdb","tag-nmc","tag-nsrreccomp","tag-recovery"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-1Hl","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/6531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=6531"}],"version-history":[{"count":5,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/6531\/revisions"}],"predecessor-version":[{"id":7367,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/6531\/revisions\/7367"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=6531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=6531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=6531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}