{"id":465,"date":"2024-04-03T07:01:25","date_gmt":"2024-04-03T07:01:25","guid":{"rendered":"https:\/\/ale.newby.work\/?p=465"},"modified":"2024-04-07T09:53:11","modified_gmt":"2024-04-07T09:53:11","slug":"renewing-opss-on-lab-oxe-via-cron","status":"publish","type":"post","link":"https:\/\/ale.newby.work\/?p=465","title":{"rendered":"Renewing OPS\u2019s on LAB OxE via CRON"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>So, you have some OPS files on your test system that don\u2019t match the CPU id or link to a FlexLM server and you have the countdown being displayed!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"53\" src=\"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png\" alt=\"\" class=\"wp-image-468\"\/><\/figure>\n\n\n\n<p>The solution to this is to replace the following files in \/usr3\/mao<\/p>\n\n\n\n<p>DONGES.dat<br>DONGES2.dat<br>DONGES3.dat<br>DONGES4.dat<br>save.cfg (not sure this one is actually required)<br>save2.cfg (not sure this one is actually required)<\/p>\n\n\n\n<p>The above files need to come from a freshly created blank database with TEL running so if this is the first time you are doing this and you don\u2019t have the files for the version that you are currently running you will have follow the procedure at the end of this document.<\/p>\n\n\n\n<p><strong>Once you have the files saved create folders in tmpd<\/strong><\/p>\n\n\n\n<p>&gt;mkdir \/usr4\/tmp\/OPS<br>&gt;mkdir \/usr4\/tmp\/OPS\/files<\/p>\n\n\n\n<p><strong>Copy the saved files<\/strong><\/p>\n\n\n\n<p>&gt;cp (the above files) \/usr4\/tmp\/OPS\/files\/<\/p>\n\n\n\n<p><strong>Create a file for the bash script<\/strong><\/p>\n\n\n\n<p>&gt;touch \/usr4\/tmp\/OPS\/renewops.sh<\/p>\n\n\n\n<p><strong>Copy the following into the new file using nano<\/strong><\/p>\n\n\n\n<p>#!\/bin\/bash<br>#OPS Reload<br>echo &#8221; &#8220;<br>echo &#8220;OPS Renew&#8221;<br>echo &#8221; &#8220;<\/p>\n\n\n\n<p>#Copy Donges<br>cp \/usr4\/tmp\/OPS\/files\/*.* \/usr3\/mao<\/p>\n\n\n\n<p><strong>Change the file to an executable file.<\/strong><\/p>\n\n\n\n<p>&gt;chmod +x renewops.sh<\/p>\n\n\n\n<p>Once those bits are in place you can edit the cron file for mtcl to add a job to automatically run the script to renew the timer<\/p>\n\n\n\n<p>&gt;crontab -e (and add the following to the end of the file) (this uses vi which is a pain but\u2026)<br>0 0 1,15 * * \/bin\/sh \/usr4\/tmp\/OPS\/renewops.sh<br><br>(the line equates to at midnight on the 1<sup>st<\/sup> and 15<sup>th<\/sup> of the month run the \u2018command\u2019)<\/p>\n\n\n\n<p>Now your LAB system should renew the timer automatically every 15 days.<\/p>\n\n\n\n<p>You can also edit the file as root with nano with the following but I am not sure if it reloads cron.<\/p>\n\n\n\n<p># nano \/var\/spool\/cron\/mtcl<\/p>\n\n\n\n<p>Just remember to back these up prior to patching the system.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Getting the required files.<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Save you DB<\/li>\n\n\n\n<li>From swinst create a new DB for .as and then reboot without autostart set<\/li>\n\n\n\n<li>Once rebooted issue RUNTEL from the prompt<\/li>\n\n\n\n<li>Once TEL has started copy the files from mao to another location (might as well use the tmpd folder that you created or are about to create)<\/li>\n\n\n\n<li>Reboot<\/li>\n\n\n\n<li>Restore you saved DB<\/li>\n\n\n\n<li>RUNTEL<\/li>\n\n\n\n<li>Switch on autostart (if you wish)<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>So, you have some OPS files on your test system that don\u2019t match the CPU&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/ale.newby.work\/?p=465\">Read the post<span class=\"screen-reader-text\">Renewing OPS\u2019s on LAB OxE via CRON<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-alcatel","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Renewing OPS\u2019s on LAB OxE via CRON - ALE @ Newby.Work<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ale.newby.work\/?p=397\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Renewing OPS\u2019s on LAB OxE via CRON - ALE @ Newby.Work\" \/>\n<meta property=\"og:description\" content=\"So, you have some OPS files on your test system that don\u2019t match the CPU&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ale.newby.work\/?p=397\" \/>\n<meta property=\"og:site_name\" content=\"ALE @ Newby.Work\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-03T07:01:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-07T09:53:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png\" \/>\n<meta name=\"author\" content=\"chris.newby\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"chris.newby\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\"},\"author\":{\"name\":\"chris.newby\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"headline\":\"Renewing OPS\u2019s on LAB OxE via CRON\",\"datePublished\":\"2024-04-03T07:01:25+00:00\",\"dateModified\":\"2024-04-07T09:53:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\"},\"wordCount\":399,\"image\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ale.newby.work\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/OPS-files.png\",\"articleSection\":[\"Alcatel\"],\"inLanguage\":\"en-AU\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\",\"name\":\"Renewing OPS\u2019s on LAB OxE via CRON - ALE @ Newby.Work\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ale.newby.work\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/OPS-files.png\",\"datePublished\":\"2024-04-03T07:01:25+00:00\",\"dateModified\":\"2024-04-07T09:53:11+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ale.newby.work\\\/?p=397\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#primaryimage\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/OPS-files.png\",\"contentUrl\":\"https:\\\/\\\/ale.newby.work\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/OPS-files.png\",\"width\":298,\"height\":53},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ale.newby.work\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Renewing OPS\u2019s on LAB OxE via CRON\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/\",\"name\":\"ALE @ Newby.Work\",\"description\":\"Phone system things\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ale.newby.work\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-AU\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\",\"name\":\"chris.newby\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"caption\":\"chris.newby\"},\"sameAs\":[\"https:\\\/\\\/ale.newby.work\"],\"url\":\"https:\\\/\\\/ale.newby.work\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Renewing OPS\u2019s on LAB OxE via CRON - ALE @ Newby.Work","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ale.newby.work\/?p=397","og_locale":"en_US","og_type":"article","og_title":"Renewing OPS\u2019s on LAB OxE via CRON - ALE @ Newby.Work","og_description":"So, you have some OPS files on your test system that don\u2019t match the CPU&#8230;","og_url":"https:\/\/ale.newby.work\/?p=397","og_site_name":"ALE @ Newby.Work","article_published_time":"2024-04-03T07:01:25+00:00","article_modified_time":"2024-04-07T09:53:11+00:00","og_image":[{"url":"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png","type":"","width":"","height":""}],"author":"chris.newby","twitter_card":"summary_large_image","twitter_misc":{"Written by":"chris.newby","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ale.newby.work\/?p=397#article","isPartOf":{"@id":"https:\/\/ale.newby.work\/?p=397"},"author":{"name":"chris.newby","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"headline":"Renewing OPS\u2019s on LAB OxE via CRON","datePublished":"2024-04-03T07:01:25+00:00","dateModified":"2024-04-07T09:53:11+00:00","mainEntityOfPage":{"@id":"https:\/\/ale.newby.work\/?p=397"},"wordCount":399,"image":{"@id":"https:\/\/ale.newby.work\/?p=397#primaryimage"},"thumbnailUrl":"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png","articleSection":["Alcatel"],"inLanguage":"en-AU"},{"@type":"WebPage","@id":"https:\/\/ale.newby.work\/?p=397","url":"https:\/\/ale.newby.work\/?p=397","name":"Renewing OPS\u2019s on LAB OxE via CRON - ALE @ Newby.Work","isPartOf":{"@id":"https:\/\/ale.newby.work\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ale.newby.work\/?p=397#primaryimage"},"image":{"@id":"https:\/\/ale.newby.work\/?p=397#primaryimage"},"thumbnailUrl":"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png","datePublished":"2024-04-03T07:01:25+00:00","dateModified":"2024-04-07T09:53:11+00:00","author":{"@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"breadcrumb":{"@id":"https:\/\/ale.newby.work\/?p=397#breadcrumb"},"inLanguage":"en-AU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ale.newby.work\/?p=397"]}]},{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/ale.newby.work\/?p=397#primaryimage","url":"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png","contentUrl":"https:\/\/ale.newby.work\/wp-content\/uploads\/2024\/04\/OPS-files.png","width":298,"height":53},{"@type":"BreadcrumbList","@id":"https:\/\/ale.newby.work\/?p=397#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ale.newby.work\/"},{"@type":"ListItem","position":2,"name":"Renewing OPS\u2019s on LAB OxE via CRON"}]},{"@type":"WebSite","@id":"https:\/\/ale.newby.work\/#website","url":"https:\/\/ale.newby.work\/","name":"ALE @ Newby.Work","description":"Phone system things","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ale.newby.work\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-AU"},{"@type":"Person","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027","name":"chris.newby","image":{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","caption":"chris.newby"},"sameAs":["https:\/\/ale.newby.work"],"url":"https:\/\/ale.newby.work\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=465"}],"version-history":[{"count":2,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":473,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions\/473"}],"wp:attachment":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}