Highlighted
Absent Member.. Absent Member..
Absent Member..
139 views

(SM) Support Tip: How to Auto clear eventin and eventout queues via scheduled script?

Once the event records are processed, it will stay at in the eventout and eventin queues, this queues will be keep on increasing if not cleared.

 

The scauto events like pmo, pmu, pmc will be dumped in the event in/out queues and needs manually clearance.

 

It’s always suggested to clear the queues, in case you the administrator prefers to auto clear the event queues,

The below script can be used and can be scheduled once a day, like at 12 00 hours every day to clean this queues.

 

 

Create a JSScript with below coding:

 

var evet = new SCFile("eventout");

var rc1 =evet.doSelect("evtime<tod()");

print("EVENTOUTDEL SCRIPT");

if (rc1 == RC_SUCCESS)

{

 

print("EVENTOUT RECORDS FOUND");

 

          do

          {

          evet.doAction("delete");

          }while (evet.getNext() == RC_SUCCESS);

}

 

else

print("No records found");

 

 

 Compile and test then to schedule it, please follow the below steps

 

 

  1. Logon SM eclipse client using falcon.
  2. Command: sch
  3. Input these values:

Class: problem

Expiration Time: set to current time

Scheduled Class: problem

Action Time: set to current time

 

Description tab:

Repeat Internal: Other -> 00:01:00 (This means to execute this schedule record every 1 min)

Java Script tab: copy paste the script (with its name)

  1. Click 'Add'.
  2. Wait for 1 min, then search 'test' in sm.log, see if you can find entry of the script name, which means the script is been executed and the events are cleared.

 

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.