Products
Applications
Support
Company
How To Buy
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Register
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Home
Communities
All Communities
Enterprise Software
Mainframe Software
Symantec Enterprise
Blogs
All Blogs
Enterprise Software
Mainframe Software
Symantec Enterprise
Events
All Events
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Water Cooler
Groups
Enterprise Software
Mainframe Software
Symantec Enterprise
Members
DX NetOps Manager
Private Community
View Only
Community Home
Threads
Library
Events
Members
Back to Library
trap event parse varbind
0
Recommend
Jul 15, 2020 02:05 PM
Abdelkader Houchi
Statistics
0 Favorited
20 Views
1 Files
0 Shares
40 Downloads
Attachment(s)
image-2020-07-14-15-24-20-492.png
119 KB
1 version
Uploaded - Jul 15, 2020
Download
Download Document
Please accept the terms of the copyright associated with this attachment before downloading it. Click the link below to read the terms.
Accept
Tags and Keywords
Comments
Donald Laberge
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.
Copyright 2019. All rights reserved.
Powered by Higher Logic