...
- 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 setSomeCatalogActivesetOrgTestValues ( shortName ){ if ( shortName == 'trntst' || shortName == 'pre' ) { // In dce9f6109df47c0094adfdb88ae63850PRE-PROD isand PhonesTEST, andmaybe Cablein TVTRAINING, // 477f1d98a1bbc5c094ad46651315d89ewe need isto Pagersturn off the loader for ORG data, // 67af5d98a1bbc5c094ad46651315d822 is Telephone Services // then over ride the data //in d12fd958a1bbc5c094ad46651315d842select isORGS Mobilewith Devicescertain // d4e9f6109df47c0094adfdb88ae63856cases to isthen Wifiwalk andthrough Networksour large set of test cases. // set categories active DWH - Organization -> 2f32f71ea1fa858094ad46651315d80d var gr1 = new GlideRecord('scscheduled_import_categoryset'); var gr1OR = gr1.addQuery('sys_id','dce9f6109df47c0094adfdb88ae638502f32f71ea1fa858094ad46651315d80d'); gr1ORgr1.addOrCondition('sys_id','477f1d98a1bbc5c094ad46651315d89e'query(); if ( gr1ORgr1.addOrCondition('sys_id','67af5d98a1bbc5c094ad46651315d822');next() ) { gr1ORgs.addOrConditionprint('sys_id','d12fd958a1bbc5c094ad46651315d842');the value of the import was: ' + gr1.active); gr1.active = 'false'; gr1.update(); gr1ORgs.addOrConditionprint('sys_id','d4e9f6109df47c0094adfdb88ae63856'); gr1.query();the value of the import is now: ' + gr1.active); } // force values on ORGs while// ( gr1.next() ) {Nancy Scanlon -> 09bea76ad8d46c007ac0638b5167dcc6 // Julie Grant -> df3c00b201d0ac0094adf4b82250a6d5 gs.print('in loop, gr1.sys_id: ' + gr1.sys_id); // Holly Piscatelli -> fc6850360194ac0094adf4b82250a689 gr1.active = 'true'; // Jack Beecher -> c72a84be0190ac0094adf4b82250a6b4 gr1.update(); // Sue Castaldi -> } } }