Trying to do a transformation on a trap parameter. Have tried doing it this way:
oid = $1;
status = $2;
newStatus = "unknown";
switch (status)
{
case "1"
newStatus = "up";
break;
case "2":
newStatus = "down";
break;
}
return %(oid, newStatus);
It doesn't appear to work though, so how should I reference (and return) the parameter values?
Thanks.