I want to set up different actions to the same trap, based on the hostname of the system sending the trap. What I want to do is have a one trap action fire off if the hostname starts with a specific string (for example, all servers where the hostname starts with mytest1), and a different action to fire on the same trap if the hostname starts with a different string (for example, all servers where the hostname starts with test2).
I tried the following regular expressions with no luck:
\i^<put the string here>)[^\0]*?\z
Any help would be appreciated.
Thanks,
Bo