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 setOrgTestValues ( shortName ){
         if ( shortName == 'tst' ||
              shortName == 'pre' ) {
              // In PRE-PROD and TEST, maybe in TRAINING,
              // we need to turn off the loader for ORG data,
               // then over ride the data in select ORGS with certain
              // cases to then walk through our large set of test cases.
       
              // DWH - Organization -> 2f32f71ea1fa858094ad46651315d80d
       
              var gr1 = new GlideRecord('scheduled_import_set');
              gr1.addQuery('sys_id','2f32f71ea1fa858094ad46651315d80d');
              gr1.query();
              if ( gr1.next() ) {
                   //gs.print('the value of the import was: ' + gr1.active);
                   gr1.active = 'false';
                   gr1.update();
                   //gs.print('the value of the import is now: ' + gr1.active);
              }
       
              // force values on ORGs
              // Nancy Scanlon -> 09bea76ad8d46c007ac0638b5167dcc6
              // Julie Grant -> df3c00b201d0ac0094adf4b82250a6d5
              // Holly Piscatelli -> fc6850360194ac0094adf4b82250a689
              // Jack Beecher -> c72a84be0190ac0094adf4b82250a6b4
              // Sue Castaldi -> a656147e0154ac0094adf4b82250a63c
              // Jim Slattery -> 446a14fa0194ac0094adf4b82250a648
              // Rose Rita Riccitelli -> 23bee3e6d8d46c007ac0638b5167dc59
              
              // 000803
              var org1 = new GlideRecord('u_cmn_organization');
              org1.addQuery('u_id','000803');
              org1.query();
              if ( org1.next() ) {
                   //gs.print('ORG is: ' + org1.u_id);
                   //gs.print('Ops: ' + org1.u_opsmgr);
                   //gs.print('Lead: ' + org1.u_head);
                   //gs.print('BOLT: ' + org1.u_bolt_member);
                   org1.u_opsmgr = '09bea76ad8d46c007ac0638b5167dcc6';
                   org1.u_head = 'fc6850360194ac0094adf4b82250a689';
                   org1.u_bolt_member = 'df3c00b201d0ac0094adf4b82250a6d5';
                   org1.update();
              }
       
              // 883001
              var org2 = new GlideRecord('u_cmn_organization');
              org2.addQuery('u_id','883001');
              org2.query();
              if ( org2.next() ) {
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
                   org2.u_opsmgr = '';
                   org2.u_head = 'a656147e0154ac0094adf4b82250a63c';
                   org2.u_bolt_member = 'c72a84be0190ac0094adf4b82250a6b4';
                   org2.update();
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
              }
      
              // 869001
              var org1 = new GlideRecord('u_cmn_organization');
              org1.addQuery('u_id','869001');
              org1.query();
              if ( org1.next() ) {
                   //gs.print('ORG is: ' + org1.u_id);
                   //gs.print('Ops: ' + org1.u_opsmgr);
                   //gs.print('Lead: ' + org1.u_head);
                   //gs.print('BOLT: ' + org1.u_bolt_member);
                   org1.u_opsmgr = '23bee3e6d8d46c007ac0638b5167dc59';
                   org1.u_head = '';
                   org1.u_bolt_member = '446a14fa0194ac0094adf4b82250a648';
                   org1.update();
              }
       
              // 016601
              var org2 = new GlideRecord('u_cmn_organization');
              org2.addQuery('u_id','016601');
              org2.query();
              if ( org2.next() ) {
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
                   org2.u_opsmgr = '';
                   org2.u_head = '';
                   org2.u_bolt_member = 'df3c00b201d0ac0094adf4b82250a6d5';
                   org2.update();
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
              }
      
              // 017901
              var org1 = new GlideRecord('u_cmn_organization');
              org1.addQuery('u_id','017901');
              org1.query();
              if ( org1.next() ) {
                   //gs.print('ORG is: ' + org1.u_id);
                   //gs.print('Ops: ' + org1.u_opsmgr);
                   //gs.print('Lead: ' + org1.u_head);
                   //gs.print('BOLT: ' + org1.u_bolt_member);
                   org1.u_opsmgr = '09bea76ad8d46c007ac0638b5167dcc6';
                   org1.u_head = 'fc6850360194ac0094adf4b82250a689';
                   org1.u_bolt_member = '';
                   org1.update();
              }
       
              // 018501
              var org2 = new GlideRecord('u_cmn_organization');
              org2.addQuery('u_id','018501');
              org2.query();
              if ( org2.next() ) {
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
                   org2.u_opsmgr = '';
                   org2.u_head = 'fc6850360194ac0094adf4b82250a689';
                   org2.u_bolt_member = 'df3c00b201d0ac0094adf4b82250a6d5';
                   org2.update();
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
              }
      
              // 019501
              var org1 = new GlideRecord('u_cmn_organization');
              org1.addQuery('u_id','019501');
              org1.query();
              if ( org1.next() ) {
                   //gs.print('ORG is: ' + org1.u_id);
                   //gs.print('Ops: ' + org1.u_opsmgr);
                   //gs.print('Lead: ' + org1.u_head);
                   //gs.print('BOLT: ' + org1.u_bolt_member);
                   org1.u_opsmgr = '09bea76ad8d46c007ac0638b5167dcc6';
                   org1.u_head = '';
                   org1.u_bolt_member = '';
                   org1.update();
              }
       
              // 015701
              var org2 = new GlideRecord('u_cmn_organization');
              org2.addQuery('u_id','015701');
              org2.query();
              if ( org2.next() ) {
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
                   org2.u_opsmgr = '';
                   org2.u_head = '';
                   org2.u_bolt_member = '';
                   org2.update();
                   //gs.print('ORG is: ' + org2.u_id);
                   //gs.print('Ops: ' + org2.u_opsmgr);
                   //gs.print('Lead: ' + org2.u_head);
                   //gs.print('BOLT: ' + org2.u_bolt_member);
              }
      }