{"id":3162,"date":"2016-07-15T11:32:44","date_gmt":"2016-07-15T10:32:44","guid":{"rendered":"https:\/\/www.data-protector.org\/wordpress\/?p=3162"},"modified":"2016-07-15T11:32:44","modified_gmt":"2016-07-15T10:32:44","slug":"script-execution-dp-9-07","status":"publish","type":"post","link":"https:\/\/www.data-protector.org\/wordpress\/2016\/07\/script-execution-dp-9-07\/","title":{"rendered":"Script Execution with DP 9.07 &#8211; increased security"},"content":{"rendered":"<p>With the introduction of HPE Data Protector 9.07 further action has been taken in the direction of security. Performing pre- and post-exec scripts might no longer permitted after the upgrade and instead an error is displayed.<\/p>\n<blockquote style=\"font: 12px Courier; background-color: #ffffff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 1px 1px 1px #ccc;\">\n<pre style=\"border: 0px; background-color: #ffffff;\">\r\n[Major] From: B&#x53;&#x4d;&#64;&#119;&#x32;01&#x32;&#x72;d&#112;&#x2e;lo&#x63;&#x61;l&#100;&#x6f;ma&#x69;&#x6e; \"dbbackup\"  Time: 05.07.2016 11:35:01\r\n      Session post-exec script C:\\test\\startme.cmd failed. Exit code = 2. \r\n<\/pre>\n<\/blockquote>\n<p>Reason: running scripts and binaries is only permitted in the bin directory of the installation (\/opt\/omni\/lbin &#8211; HP-UX, Linux oder Solaris; \/usr\/omni\/bin &#8211; other UNIX systems or OMNIHOME\\bin &#8211; Windows). The usage of absolute and relative paths (for example: c:\\scripts\\test.cmd, \/home\/scripts\/test.sh or ..\/..\/..\/home\/scripts\/test.sh) outside of <code>bin<\/code> is no longer permitted. Likewise, executing Perl is no longer possible and can not be used as a pre- and post-exec script directly (e.g. perl.exe myscript.pl parameter1). However, it is possible to use batch files instead (e.g. startme.cmd parameter1) in which then the actual script is called. Hence the possible values have been adjusted for the corresponding omnirc variable <code>OB2OEXECOFF<\/code> &#8211; <code>0  Pre \/ post-exec scripts will be ran<\/code> (with the restriction on the path) and <code>1  Pre \/ post-exec scripts disabled<\/code>.<br \/>\nWith these adjustments, the scripts can then run again.<\/p>\n<blockquote style=\"font: 12px Courier; background-color: #ffffff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 1px 1px 1px #ccc;\">\n<pre style=\"border: 0px; background-color: #ffffff;\">\r\n[Normal] From: BSM&#64;w2&#48;&#49;&#50;&#x72;&#x64;&#x70;&#x2e;&#x6c;&#x6f;&#x63;aldomai&#110; \"dbbackup\"  Time: 05.07.2016 11:55:12\r\n      The exec script \"startme.cmd\" has completed.\r\n<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>With the introduction of HPE Data Protector 9.07 further action has been taken in the direction of security. Performing pre- and post-exec scripts might no longer permitted after the upgrade and instead an error is displayed. [Major] From: BSM&#64;&#119;&#50;&#x30;&#x31;&#x32;&#x72;&#x64;p.lo&#99;&#97;&#x6c;&#x64;&#x6f;&#x6d;&#x61;in &#8220;dbbackup&#8221; Time: 05.07.2016 11:35:01 Session post-exec script C:\\test\\startme.cmd failed. Exit code = 2. Reason: running scripts [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3163,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"spay_email":""},"categories":[11],"tags":[],"translation":{"provider":"WPGlobus","version":"2.8.8","language":"en","enabled_languages":["en","de"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"de":{"title":false,"content":true,"excerpt":false}}},"jetpack_featured_media_url":"https:\/\/www.data-protector.org\/wordpress\/wp-content\/uploads\/2016\/07\/prepost1.png","jetpack_shortlink":"https:\/\/wp.me\/p28cjj-P0","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":854,"url":"https:\/\/www.data-protector.org\/wordpress\/2012\/02\/simple-media-vaulting-off-site-tape-vaulting\/","url_meta":{"origin":3162,"position":0},"title":"Simple Media Vaulting \/ Off-Site Tape Vaulting","date":"3. February 2012","format":false,"excerpt":"{:de}Der Wunsch die Daten seiner Server auf Medien zu sichern und somit Datensicherheit zu erhalten h\u00f6rt nicht nur bei der Datensicherung auf Band auf,\u00a0oft besteht auch der Wunsch oder Anforderung die beschriebenen B\u00e4nder vor weiterem Beschreiben zu sch\u00fctzen oder die Medien aus der Bandlibrary zu entfernen und an einem sicheren\u2026","rel":"","context":"In &quot;HowTo&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1947,"url":"https:\/\/www.data-protector.org\/wordpress\/2014\/04\/eadr-cell-server-dp-8-1x-windows-2012-r2\/","url_meta":{"origin":3162,"position":1},"title":"EADR for Cell Server &#8211; DP 8.1X on Windows 2012 R2","date":"4. April 2014","format":false,"excerpt":"{:en}With Data Protector 8.XX the process to create disaster recovery images has been changed. Since the new version, the backup of the internal database is separated from the filesystem backup of the cell server. Hence, the \"makeiso.cmd\" (see https:\/\/www.data-protector.org\/wordpress\/2011\/03\/recover-cell-server-with-enhanced-automated-disaster-recovery\/) is no longer working. With the separation it is necessary to\u2026","rel":"","context":"In &quot;HowTo&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1919,"url":"https:\/\/www.data-protector.org\/wordpress\/2014\/03\/omnispeed-2-0-data-protector-8-xx-hp-ux-linux-windows\/","url_meta":{"origin":3162,"position":2},"title":"OMNISPEED 2.0 for Data Protector 8.XX on HP-UX, Linux and Windows","date":"27. March 2014","format":false,"excerpt":"{:en}The new version of OMNISPEED is available. Version 2.0 was especially developed for Data Protector 8.XX environments and supports HP-UX (Itanium) 11.31, Linux (RedHat and SUSE Linux Enterprise Server) and Microsoft Windows (2008 R2, 2012 and 2012 R2) for the Data Protector versions 8.00, 8.01 and 8.1X. The most important\u2026","rel":"","context":"In &quot;SCD&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1003,"url":"https:\/\/www.data-protector.org\/wordpress\/2012\/08\/brick-backup-related-information-collector-keeper\/","url_meta":{"origin":3162,"position":3},"title":"BRICK &#8211; Backup Related Information Collector and Keeper","date":"24. August 2012","format":false,"excerpt":"{:en}BRICK - A new tool for Data Protector!!! Interested? Continue to read here:https:\/\/www.data-protector.org\/wordpress\/brick\/. Update 2012\/08\/21: new version (v0.11) released, for more information please refer to the ChangeLog, a lot of enhancements were done. Please use link above. Please see screenshot below. Please comment on page: https:\/\/www.data-protector.org\/wordpress\/brick\/. Enhanced Help: The help\u2026","rel":"","context":"In &quot;BRICK&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":694,"url":"https:\/\/www.data-protector.org\/wordpress\/2011\/07\/data-protector-migration-unix-to-other-os\/","url_meta":{"origin":3162,"position":4},"title":"Data Protector Migration Unix to other OS","date":"29. July 2011","format":false,"excerpt":"{:de}Ich kenne nicht viele gute Gr\u00fcnde warum man eine Data Protector Installation von HP-UX auf ein anderes Betriebssystem wechseln sollte,\u00a0dennoch gibt es viele Kunden die diesen Schritt gehen wollen und zum Beispiel auf Windows oder Linux wechseln;\u00a0meist noch verbunden mit einem Upgrade auf eine aktuelle Version von Data Protector.\u00a0Und hier\u2026","rel":"","context":"In &quot;HowTo&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":431,"url":"https:\/\/www.data-protector.org\/wordpress\/2011\/03\/recover-cell-server-with-enhanced-automated-disaster-recovery\/","url_meta":{"origin":3162,"position":5},"title":"Recover Cell Server with Enhanced Automated Disaster Recovery","date":"29. March 2011","format":false,"excerpt":"{:en}In article EADR with Windows 2008 R2 I described how to use Data Protector EADR for a Windows 2008 R2 server. I also described in former articles that you should be prepared when your Cell Server crashs. To be able to do EADR for your Cell Server I wrote a\u2026","rel":"","context":"In &quot;HowTo&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/posts\/3162"}],"collection":[{"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/comments?post=3162"}],"version-history":[{"count":4,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/posts\/3162\/revisions"}],"predecessor-version":[{"id":3168,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/posts\/3162\/revisions\/3168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/media\/3163"}],"wp:attachment":[{"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/media?parent=3162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/categories?post=3162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.data-protector.org\/wordpress\/wp-json\/wp\/v2\/tags?post=3162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}