This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Interface name in UDT Alerts

I have a working UDT alert that e-mails me when a new MAC Address appears on the network

I have the alert set to e-mail when triggered.

The following is my e-mail response

Subject: User Device Tracker alert when new MAC address is added.

Message:

MAC Address: ${MACAddress}

Switch Name: ${NodeName}

Alert Name: ${AlertName}

I would like to include the interface name that the MAC is discovered e.g. Interface: Datacenter_Switch_1  Unit: 1 Slot: 0 Port: 3 Gigabit

Can anyone assist me with the SQL variable for this?

Also I do not get any results for ${NodeName}

the following are my results

 

User Device Tracker alert when new MAC address is added.

MAC Address: 88:9F:FA:63:AF:56

Switch Name:

Alert Name:  Alert me when a new MAC address appears on network

 

  • Same Problem,

    trying to create a email alert with following settings.

    ______________________

    A New MAC-Address appears on network

    Switch Name

    Switch Port

    Switch Port Name

    MAC-Address

    ____________________

    Some Ideas?

  • Still no Update? SolarWinds Support also no help..

  • Try these:

    Port : ${SQL: SELECT Name from [dbo].[UDT_Port] WHERE  (PortID = ${N=SwisEntity;M=PortID})}

    Device : ${SQL: SELECT Caption FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

  • Hi,

    thanks for the replay!

    But it didnt worked. Look at the screenshots.

    thwack2.PNG

    thwack.PNG

    Here is the result from the email.

    thwack4.PNG

    I also cant find PortID in UDT_MovedMACAlert

    thwack3.PNG

  • Ah, so you did a custom query for your alert condition?  I didn't...  I just used the built in...   In the trigger condition I have:

    newmac.jpg

    and my email looks like

    newmac2.jpg

    This works for me!

  • Thanks! It is working now!!! Great emoticons_happy.png

  • Can you tell me which variables you inserted to get those?  i am not seeing them.  I tried copying the syntax from your screen shot but got an error like this

    Port : MACRO SQL
    ERROR - Incorrect syntax near '{'.

    Device : MACRO SQL ERROR - Incorrect syntax near '{'.

    My SYNTAX after copying...

    An issue on an object you are monitoring occurred at ${N=Alerting;M=AlertTriggerTime;F=DateTime}.

    View full object details here: ${N=SwisEntity;M=DetailsUrl}.
    View full alert details here: ${N=Alerting;M=AlertDetailsUrl}
    Click here to acknowledge the alert: ${N=Alerting;M=AcknowledgeUrl}

    Port : ${SQL: SELECT Name from [dbo].[UDT_Port] WHERE  (PortID = ${=SwisEntity;M=PortID}]}
    Device : ${SQL: SELECT Caption FROM Nodes WHERE NodeID = ${N=SwisEntity;M=DeviceID}}

  • Hi,

    for New MAC I'm using this

    _____________

    Anzeige der vollständigen Warnungsdetails: ${N=Alerting;M=AlertDetailsUrl}

    New MAC Address: ${N=SwisEntity;M=MACAddress}

    Port: ${SQL: SELECT Name from [dbo].[UDT_Port] WHERE  (PortID = ${N=SwisEntity;M=PortID})}

    Port Name: ${SQL: SELECT PortDescription from [dbo].[UDT_Port] WHERE  (PortID = ${N=SwisEntity;M=PortID})}

    IP: ${SQL: SELECT IP_Address FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

    Device: ${SQL: SELECT Caption FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

    Device Location: ${SQL: SELECT Location FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

    Device Last Boot: ${SQL: SELECT LastBoot FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

    Device CPU Load: ${SQL: SELECT CPULoad FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

    Device Description: ${SQL: SELECT Description FROM [dbo].[Nodes] WHERE (NodeID = ${N=SwisEntity;M=DeviceID})}

    _____________

    And here ist the result:

    udt.png

    And for Rogue MAC this:

    _____________

    Anzeige der vollständigen Warnungsdetails: ${N=Alerting;M=AlertDetailsUrl}

    Rouge MAC-Address: ${N=SwisEntity;M=MACAddress}

    Port: ${SQL: SELECT Name from [dbo].[UDT_Port] WHERE  (PortID = ${SQL: SELECT PortID from [dbo].[UDT_PortToEndpointCurrent] WHERE  (EndpointID = ${N=SwisEntity;M=EndpointID})})}

    Port Name: ${SQL: SELECT PortDescription from [dbo].[UDT_Port] WHERE  (PortID = ${SQL: SELECT PortID from [dbo].[UDT_PortToEndpointCurrent] WHERE  (EndpointID = ${N=SwisEntity;M=EndpointID})})}

    Node ID: ${SQL: SELECT NodeID from [dbo].[UDT_Port] WHERE  (PortID = ${SQL: SELECT PortID from [dbo].[UDT_PortToEndpointCurrent] WHERE  (EndpointID = ${N=SwisEntity;M=EndpointID})})}

    _____________

    udt2.png

    the 'moving mac-address' is still not working... Hope for SolarWinds....

  • Thanks Alan,   What is the difference between using the "New MAC"? and the "Rogue MAC"?

  • Hmm..  Venturing a guess here.  Thinking if you choose to enable the "whitelist" feature in UDT, that any devices that are not "included" or "ignored" would be considered "rogue" devices...