SNMP source port
-
Hello,
We have three Weblogic domains configured on one system. In each domain there is AdminServer. When we shutdown one or all domains it's not clear which domain was stopped. In SNMP trap log all events looks exactly the same. In case stopping all domains:
23.09.2014 18:34:22 153.9.1.58 scrd .1.3.6.1.4.1.140.625.0.70 .1.3.6.1.4.1.140.625.100.5 == 'Tue Sep 23 18:34:22 CEST 2014'; .1.3.6.1.4.1.140.625.100.10 == 'AdminServer'
23.09.2014 18:34:22 153.9.1.58 scrd .1.3.6.1.4.1.140.625.0.70 .1.3.6.1.4.1.140.625.100.5 == 'Tue Sep 23 18:34:22 CEST 2014'; .1.3.6.1.4.1.140.625.100.10 == 'AdminServer'
23.09.2014 18:34:22 153.9.1.58 scrd .1.3.6.1.4.1.140.625.0.70 .1.3.6.1.4.1.140.625.100.5 == 'Tue Sep 23 18:34:22 CEST 2014'; .1.3.6.1.4.1.140.625.100.10 == 'AdminServer'Each Weblogic domain is configured separately and it's using it's own port to send SNMP events.
Is it possible to create an Event Processing Policy and use SNMP source port attribute to distinguish environments?Best regards,
Marcin -
Hi,
I've added additional named parameter "sourcePort" to all events generated from SNMP traps. You can access it via %<sourcePort> macro or using GetEventParameter($event, "sourcePort") call in scripts.
Best regards,
Victor -
Hi Victor,
I created following filtering script:
sub main()
{
s = GetEventParameter($event, "sourcePort");
if (s == NULL)
{
return false; // Don't match rule
}
return true; // Match rule
}
but it always return true -> source port is NULL.I tried to create an event using a macro with message:
"Test event, port: %<sourcePort>"
but it does not return any port for the SNMP trap in the Event Log.I did something wrong?
Best regards,
Marcin -
You have to wait for 1.2.17 release
Alternatively, you can download current development snapshot and test it.Best regards,
Victor -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login