DX NetOps Manager

 View Only

trap event parse varbind 

Jul 15, 2020 02:05 PM
Statistics
0 Favorited
20 Views
1 Files
0 Shares
40 Downloads
Attachment(s)
png file
image-2020-07-14-15-24-20-492.png   119 KB   1 version
Uploaded - Jul 15, 2020

Tags and Keywords

Comments

Aug 06, 2020 09:03 AM

Hello,

There is a function you can use to search for a model by attribute - there is an example in the SS/CsVendor/Cabletron/EventDisp file

# Search for a model by ModelType_name VNM and generate an event on it.
0x00010f93 E 50 P "\
CreateEvent( \
GetElement( \
GetModelsByAttrValue(\
{U 65536},\
{S \"VNM\"} ),\
{U 1} ) , \
{ H 0x00010f94 } )"

The value you use for you search like model name ( 0x1006e) would have to match the value passed in the Varbind exactly.

Here is another example -
0xff220002 E 50 P " If (Exists (GetElement( GetModelsByAttrValue( {H 0x1006e}, GetEventVariable({U 200 })),{U 1})), \
CreateEventWithVariables( GetElement( GetModelsByAttrValue( {H 0x1006e}, GetEventVariable({U 200 })),{U
1}), \
{H 0x0f220002}, \
GetEventVariableList()), \
CreateEventWithVariables( {C CURRENT_MODEL}, \
{H 0x0f220002}, \
GetEventVariableList() \
))"

This example searches for a model using the varbind in variable 200 - this was a Portname - and asserted the Alarm against the port - for the varbind which contained the parent_port name.
If it FAILS to find a model by name it uses the Current models as the alarm target.

Related Entries and Links

No Related Resource entered.