{"id":4915,"date":"2013-08-01T05:02:35","date_gmt":"2013-07-31T19:02:35","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=4915"},"modified":"2018-12-11T14:10:09","modified_gmt":"2018-12-11T04:10:09","slug":"notify-me","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2013\/08\/01\/notify-me\/","title":{"rendered":"Notify me"},"content":{"rendered":"<p>A small yet nice new feature in NetWorker 8.1 is a limited form of parameter expansion in NetWorker notification action entries.<\/p>\n<p>I spotted this in the&nbsp;<strong>Scheduled Clone Notification<\/strong>:<\/p>\n<pre>name: Scheduled Clone Completion;\naction:&nbsp;\"\/bin\/mail -s \\\"orilla scheduled cloning '${NSR clone}' completion\\\" root\";<\/pre>\n<p>This isn&#8217;t something that&#8217;s heavily documented, but it was fairly easy to intuit that was likely to be a variable instantiation of the invoking resource name, and a quick test verified that theory to be correct.<\/p>\n<p>So, I decided to play around with everyone&#8217;s favourite notification: <strong>Savegroup Completion<\/strong>:<\/p>\n<pre>name: Savegroup completion;\naction:&nbsp;\"\/bin\/mail -s \\\"orilla savegroup '${NSR group}' completion\\\" root\";<\/pre>\n<p>Sure enough, savegroup completion email subjects were populated with the group name:<\/p>\n<pre>From: root &lt;root@orilla.turbamentis.int&gt;\nTo: root &lt;root@orilla.turbamentis.int&gt;\nSubject: orilla savegroup 'Staging Servers' completion<\/pre>\n<p>It&#8217;s not an earth shattering change in NetWorker, but it&#8217;s certainly a nice-to-have.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A small yet nice new feature in NetWorker 8.1 is a limited form of parameter expansion in NetWorker notification action&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":[16],"tags":[1153,854,855],"class_list":["post-4915","post","type-post","status-publish","format-standard","hentry","category-networker","tag-notification","tag-savegroup","tag-savegroup-completion"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-1hh","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/4915","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=4915"}],"version-history":[{"count":6,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/4915\/revisions"}],"predecessor-version":[{"id":7462,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/4915\/revisions\/7462"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=4915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=4915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=4915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}