Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • add MID server accounts, re-register MID servers (to script) (all accounts on prod, persist through clone)
  • delete non-relevant (i.e. production) MID servers (to script) (all MIDs & MID service accounts on prod, persist through clone by design)
  • ensure SMTP & POP passwords are correct (these should survive a clone anyway) (these are set to be the same, so this is now an assumption of the script)
  • reset any user passwords for *-admin accounts (on demand... this encourages semi-regular password resets, and silent death of unused admin accounts).
  • any data sources using MID must be pointed to active/instance-specific MID server (this can be scripted, just not done yet)
  • During the interval where START Replacement catalog items must be hidden in PROD, we want to show them in TRAIN and PREPROD.
    • Code Block
      function setSomeCatalogActive ( shortName ){
         if ( shortName == 'trn' ||
              shortName == 'pre' ) {
              // dce9f6109df47c0094adfdb88ae63850 is Phones and Cable TV
              // 477f1d98a1bbc5c094ad46651315d89e is Pagers
              // 67af5d98a1bbc5c094ad46651315d822 is Telephone Services
              // d12fd958a1bbc5c094ad46651315d842 is Mobile Devices
              // d4e9f6109df47c0094adfdb88ae63856 is Wifi and Networks
              // set categories active
              var gr1 = new GlideRecord('sc_category');
              var gr1OR = gr1.addQuery('sys_id','dce9f6109df47c0094adfdb88ae63850');
              gr1OR.addOrCondition('sys_id','477f1d98a1bbc5c094ad46651315d89e');
              gr1OR.addOrCondition('sys_id','67af5d98a1bbc5c094ad46651315d822');
              gr1OR.addOrCondition('sys_id','d12fd958a1bbc5c094ad46651315d842');
              gr1OR.addOrCondition('sys_id','d4e9f6109df47c0094adfdb88ae63856');
              gr1.query();
              while ( gr1.next() ) {
              //     gs.print('in loop, gr1.sys_id: ' + gr1.sys_id);
                   gr1.active = 'true';
                   gr1.update();
              }
              
              var gr2 = new GlideRecord('sc_category');
              gr2.addQuery('sys_id','477f1d98a1bbc5c094ad46651315d89e');
              gr2.query();
              if ( gr1.next() ) {
                   gr1.active = 'true';
                   gr1.update();
              }
         }
      }