Tag Gov Policy

ayush_g
Tera Contributor

Need to create tag Gov policy for database and servers ?

Please help me on this 

3 REPLIES 3

chriwilliam
Tera Contributor

Has this been loaded com.snc.tagging, and have you created the sys_metadata_tag.list your Tag (Gov Policy)?

SaaniyaC
ServiceNow Employee
ServiceNow Employee

You can create a policy using this link and update the filter criteria per your desired CI Class.

kumarswapnil
Tera Expert

Hi @ayush_g , 

 

Here's a step-by-step guide:
  1. Create or Open a Scheduled Report: Navigate to "Reports" > "Scheduled Reports" and either create a new report or open an existing one. 
     
  2. Set the Run Frequency: Under the "Run" field, select "Monthly". 
     
  3. Set the Run Date: Choose "Day 1" for the "Day" field. 
     
  4. Enable Conditional Execution: Check the "Conditional" checkbox. 
     
  5. Add the Condition:
    • In the "Condition" section, you'll need to add a script to evaluate the current month. 
       
    • A sample script is written below- .function checkMonth() {
      var gdt = new GlideDateTime();
      var month = gdt.getMonth();
      var result = false;
      if(month == 1 || month == 4 || month == 7 || month == 10) {
      result = true;
      }
      return result;
      }
      checkMonth();
       
       
  6.  This script checks if the current month is January (1), April (4), July (7), or October (10), returning true for those months and false for the rest. 
     
     
    This configuration will ensure the report runs only on the first day of January, April, July, and October, effectively generating a quarterly report
    Save the Scheduled Report: Save the scheduled report with the configured settings.
     
    Also you can check the Community URL related to your query-
     
    *************************************************************************************************************
    If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

    Regards
    Kumar Swapnil
    Complete Administation of monitoring tools like Zabbix\Solarwinds\DX-UIM & Devops Engineer
    ** Aspirant Servicenow Administrator
    HCLTech, Noida
    LinkedIn: www.linkedin.com/in/kumar-swapnil001

    ****************************************************************************************************************