Posts

Known issue with Event Management crashing the instance (Quebec) resolved on Rome

 Quebec workaround: PRB1480389 (ServiceNow Ref) Description OutOfMemory exception in "Service Analytics group alerts using RCA/Alert Aggregation" job during creation of CMDB groups. The exception happens during cycle detection in RCA calculation. Steps to Reproduce 1. Create a full mesh topology between 12 CIs 2. verify that evt_mgmt.related_cis_get_all_relation_types is true and sa_analytics.agg.query_cmdb_rca_enabled is true 3. send 12 events to all the CIs that were previously created See error in log Workaround 1) Deactivate "Service Analytics group alerts using RCA/Alert Aggregation", "Service Analytics Alert Aggregation Learner - Daily" job from sysauto table. 2) Disable the "sa_analytics.agg.query_cmdb_rca_enabled" system property. Once the property is disabled, the above jobs can be set to be Active again. Please try the steps above and we can monitor to check if this issue is resolved.

Quick start tests for ATF

 https://docs.servicenow.com/bundle/rome-application-development/page/administer/auto-test-framework/reference/available-quick-start-tests.html

Retrieve a href url from a string using javascript regex

 var str=' INFRASTRUCTURE | AVAILABILITY | Host or monitoring unavailable | <h3>OPEN Problem P-21115004 in environment <i>Non Production</i></h3><br><small>Problem detected at: 17:09 (UTC) 26.11.2021</small><hr><b>1 impacted infrastructure component</b><hr><br><div><span>Host</span><br><b><span style=\"color:#dc172a; font-size:120%\">NOAG-OUD-VM01</span></b><br><p style=\"margin-left:1em\"><b><span style=\"font-size:110%\">Host or monitoring unavailable</span></b><br>Host or monitoring unavailable due to connectivity issues or server outage</p></div><hr><p><a target=\"_blank\" href=\"https://xxxxx.live.dynatrace.com/#problems/problemdetails;pid=-111260345472460xxxx_16379465660xxxx\">Open in Browser</a></p> '; var patt = /<a[^

Problems activating a new identity provider (webSSO) even after it tested successfully

 see this link

Staging tables cleanup

 see these topics staging table tidy up   managing table data  

Test the orignating IP address

 firing a REST message from one instance to a scripted REST endpoint on another.  use the following to test the IP of the request: /*test the IP*/ var session = gs . getSession (); var addr = session . getClientIP (); gs . log ( addr , 'mojtemp_IP' );

Create a general request button on agent workspace to take users to a general request item

Image
  script : function onClick () { var params = {}; params . sysparm_parent_table = "interaction" ; params . sysparm_parent_sys_id = g_form . getUniqueValue (); //params.sysparm_software_requirements = current.short_descritpion; var paramsJSON = JSON . stringify ( params ); var request = new GlideAjax ( 'RequestLinkSessionManager' ); request . addParam ( 'sysparm_name' , 'setComponentSessionValueMapJSON' ); request . addParam ( 'workspace_request_session_data' , paramsJSON ); request . getXMLAnswer ( function ( answer ){ onSubmitAfterSessionPut ( params ); }); } function onSubmitAfterSessionPut ( params ) { var result = g_form . submit ( 'sysverb