Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. SNMP source port

SNMP source port

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 13.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    Marcin
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M
        M
        Marcin
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          You have to wait for 1.2.17 release 🙂 Alternatively, you can download current development snapshot and test it.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • M
            M
            Marcin
            wrote on last edited by
            #5

            OK. Thank you for the information.
            I misunderstood your previous post. I will wait for 1.2.17 then.

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups