{"id":231,"date":"2013-08-09T09:42:40","date_gmt":"2013-08-09T07:42:40","guid":{"rendered":"http:\/\/blog.daghosoft.com\/WP\/?p=231"},"modified":"2013-08-09T09:44:06","modified_gmt":"2013-08-09T07:44:06","slug":"execute-command-on-all-db2-instances","status":"publish","type":"post","link":"https:\/\/blog.daghosoft.com\/WP\/execute-command-on-all-db2-instances\/","title":{"rendered":"Execute command on all Db2 instances"},"content":{"rendered":"<p>Here the script I use to verify all backup on all dbs on all instances.<br \/>\nI use it with the &#8220;db2-check-backup.sh&#8221; documented <a title=\"Check db2 backup\" href=\"http:\/\/blog.daghosoft.com\/WP\/check-db2-backup\/\">Here<\/a><\/p>\n<pre lang=\"bash\">\r\n#!\/bin\/sh\r\nUNIQUE=`date +%s`\r\nLPATH=$(pwd)\r\nINST=\/tmp\/instances.$UNIQUE\r\nOUT=\/tmp\/outallinst.$UNIQUE\r\n\r\n\/opt\/ibm\/db2\/V9.7\/bin\/db2ilist > $INST\r\n\r\nwhile read LN; do\r\n echo \"###########\"  $LN  >> $OUT\r\n $LPATH\/db2-check-backup.sh $LN >>$OUT\r\ndone < $INST\r\n\r\ncat $OUT\r\nrm $OUT\r\nrm $INST<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here the script I use to verify all backup on all dbs on all instances. I use it with the &#8220;db2-check-backup.sh&#8221; documented Here #!\/bin\/sh UNIQUE=`date +%s` LPATH=$(pwd) INST=\/tmp\/instances.$UNIQUE OUT=\/tmp\/outallinst.$UNIQUE \/opt\/ibm\/db2\/V9.7\/bin\/db2ilist > $INST while read LN; do echo &#8220;###########&#8221; $LN >> $OUT $LPATH\/db2-check-backup.sh $LN >>$OUT done < $INST cat $OUT rm $OUT rm $INST\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[46,24,8,10],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-backup","tag-bash-script","tag-db2","tag-script-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p77gJg-3J","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":2,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts\/231\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}