Custom license metric example script

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • The following is an example of a custom license metric script.

    주:
    This example is for demo purposes only and is not meant to be used for actual compliance scenarios.
    <script><![CDATA[getRightsForDevice();
    function getRightsForDevice(){
    var rightsForDevice = -1;
    	var deviceRecord = new GlideRecord('cmdb_ci_computer');
    	if(deviceRecord.get(entity)){
    		rightsForDevice = deviceRecord.getValue('disk_space');
    	}
    	return rightsForDevice;
    }]]></script>