You can go though Command Line Interface User Guide - Page No: 34. Here is the Link for document.
https://support.ca.com/cadocs/0/CA%20Spectrum%209%203%200-ENU/Bookshelf_Files/PDF/Spectrum_Command_Line_User_ENU.pdf
Example on how to clear events using command line.
Let us say Device A is down and hence spectrum generated "Device has stopped responding to polls" Alarm based on event 0x10d35. Once the device is up, then this alarm should be cleared based on event 0x10d30 (this event clears the alarm generated by the event 0x10d35). But for some reason, it has not cleared (we might have missed device up trap/event on spectrum). So this alarm still available in console even though device is up and it is not clearable manually.
In this scenario, we generate a dummy event manually using the command to clear the existing alarm on the target device.
So now create event command looks like below:
create event type=0x10d30 text="manual clear" mh=0x41023
Here,
1. type is the event type that we want to create (in this case, we are creating clear event)
2. text is any custom text.
3. mh is the model handle. you can get this by selecting the device --> attributes --> filter with model_handle --> double click on it --> in the right side panel you can see it's value.
Hope this helps.
Cheers...
Rajashekar