I thought that too, but I think it has to do with (pre-processor).
It needs to rename the "source" before the alarm go to the alarm console.
I'm trying to make a script to change the hostname, based on "nimid" but still can not.
al = alarm.list ("hostname", "ABCD")
if al ~ = nil then
for i = 1, # al
al = a [i]
printf ("% s% s", a.nimid, a.hostname)
b = alarm.get (a.nimid)
x = {}
x.hostname = "XPTO"
x.nimid = b.nimid
--x.level = NIML_MINOR
--x.prevlevel = b.level
--x.visible = 0
alarm.set ( x )
end
end