{"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;&#x77;&#x32;0&#x31;&#x32;r&#x64;&#x70;.&#x6c;&#x6f;c&#x61;&#x6c;d&#x6f;&#x6d;a&#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: B&#x53;&#x4d;&#64;&#x77;&#x32;0&#x31;&#x32;r&#x64;&#x70;.&#x6c;&#x6f;c&#x61;&#x6c;d&#x6f;&#x6d;a&#x69;&#x6e; \"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: &#66;S&#x4d;&#64;&#x77;2&#x30;1&#x32;&#114;&#x64;&#112;.&#x6c;o&#x63;a&#x6c;d&#x6f;m&#x61;&#105;&#x6e; &#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":694,"url":"https:\/\/www.data-protector.org\/wordpress\/2011\/07\/data-protector-migration-unix-to-other-os\/","url_meta":{"origin":3162,"position":1},"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":388,"url":"https:\/\/www.data-protector.org\/wordpress\/2011\/03\/savedevices-omnidownload\/","url_meta":{"origin":3162,"position":2},"title":"SaveDevices &#8211; omnidownload","date":"16. March 2011","format":false,"excerpt":"{:de}Im Rahmen des Disaster Recovery f\u00fcr den Cell Server empfiehlt es sich neben der obrindex.dat - siehe Recover Cell Server auch die Libraries und Devices herunterzuladen, um sie im Bedarfsfall wieder schnell generieren zu k\u00f6nnen. Daf\u00fcr habe ich das kleine Tool SaveDevices geschrieben, welches die Konfiguration in Text Dateien ablegt.\u2026","rel":"","context":"In &quot;HowTo&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1183,"url":"https:\/\/www.data-protector.org\/wordpress\/2012\/11\/dp-701-patch-bundle-unix-cell-server-mom-environment\/","url_meta":{"origin":3162,"position":3},"title":"DP 701 patch bundle on Unix Cell Server in MoM environment","date":"21. November 2012","format":false,"excerpt":"{:en}During the installation of patch bundle DPUXBDL_00701 in a MoM environment the installation might fail and the dedupe and the core patch cannot be installed. When checking with swinstall you will get the information that the pre checks were not successful. The error has been seen in an environment with\u2026","rel":"","context":"In &quot;Common&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3345,"url":"https:\/\/www.data-protector.org\/wordpress\/2017\/12\/news-12-2017\/","url_meta":{"origin":3162,"position":4},"title":"News 2017\/12","date":"6. December 2017","format":false,"excerpt":"{:en}Dear Visitor, in honor of Daniel's legacy we (Daniel's widow and Stephan Voss as new admin) decided to bring back life on this page with posts and updates all around data protection. We want to do this with a team of content writers and the help of guest posts, which\u2026","rel":"","context":"In &quot;Common&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/www.data-protector.org\/wordpress\/wp-content\/uploads\/2017\/12\/IwantYou-214x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1862,"url":"https:\/\/www.data-protector.org\/wordpress\/2014\/03\/omnilistfreedevs-list-free-devices\/","url_meta":{"origin":3162,"position":5},"title":"OMNILISTFREEDEVS 1.10 &#8211; get list of free devices","date":"7. March 2014","format":false,"excerpt":"{:en} Update: new version 1.10 does include a fix for multi-host and multipath configurations. In addition, the languages FRA, CHS and JPN are now supported (DP 8.0, 8.01 and 8.10). To get a list of free Data Protector devices can be a challenge, especially in larger environments. Of course, with\u2026","rel":"","context":"In &quot;SCD&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}]}}