To: | nv-l@lists.tivoli.com |
---|---|
Subject: | Re: Event values |
From: | James_Shanks@tivoli.com |
Date: | Thu, 18 May 2000 13:01:13 -0400 |
Please read the man page on trapd.conf (man trapd.conf). Slot values are designated as $V2 not as $2 to differentiate them from the log message display variables. The man page also has information on other trap elements besides varbinds which can be used in slot values, and also how they can be combined into a single slot value using PRINTF statements containing multiple variables. Before you ask, and many do, there is no substring function as there is in "C". James Shanks Tivoli (NetView for UNIX and NT) L3 Support "Frank W. Hansen" <fhansen@mindspring.com> on 05/18/2000 02:01:41 PM Please respond to IBM NetView Discussion <nv-l@tkg.com> To: IBM NetView Discussion <nv-l@tkg.com> cc: (bcc: James Shanks/Tivoli Systems) Subject: Re: [NV-L] Event values James, so it is possible to set the slot value to a variable binding? Is that a correct statement? If yes, then how do you do that? Within the event customization screen where you can select slots to add, I put something similar to the following: BPVManaged=$2 Thinking it would grab the host name and auto populate the slot BPVManaged, no such luck. It just put the "$2" literally. Do you have to escape the $ out? Thanks! James_Shanks@tivoli.com wrote: > What goes into the slot is determine by the slot map values you set in > trapd.conf, assuming you are sending these events to TEC via the internal > adapter. But you can only set them to constants and variables contained in the > trap itself. If you want to add new information, then you may have to use a > ruleset to issue a new trap which contains the information you want and send > that one to TEC instead of the first. > > James Shanks > Tivoli (NetView for UNIX and NT) L3 Support > > "Frank W. Hansen" <fhansen@mindspring.com> on 05/18/2000 11:53:07 AM > > Please respond to IBM NetView Discussion <nv-l@tkg.com> > > To: IBM NetView Discussion <nv-l@tkg.com> > cc: (bcc: James Shanks/Tivoli Systems) > Subject: [NV-L] Event values > > Greetings. I need the ability to change a TEC slot value within a > NetView event. For example. I have defined an event within NetView and > set two slot values to be used with the event. When I issue an snmptrap > command, is there a way to change what the contents of these slot values > are? It appears that you have to pre-set these values. Any ideas? > > -- > > Best Regards, > > Frank W. Hansen > Tivoli Certified Enterprise Consultant > www.EnterpriseInnovations.com > > ------------------------------------------------------------------------ > Name: att1.htm > att1.htm Type: Hypertext Markup Language (text/html) > Encoding: base64 > Description: Internet HTML -- Best Regards, Frank W. Hansen Tivoli Certified Enterprise Consultant www.EnterpriseInnovations.comJames, so it is possible to set the slot value to a variable binding? Is that a correct statement? If yes, then how do you do that? Within the event customization screen where you can select slots to add, I put something similar to the following: BPVManaged=$2 Thinking it would grab the host name and auto populate the slot BPVManaged, no such luck. It just put the "$2" literally. Do you have to escape the $ out? Thanks! James_Shanks@tivoli.com wrote: What goes into the slot is determine by the slot map values you set in -- Best Regards, Frank W. Hansen Tivoli Certified Enterprise Consultant www.EnterpriseInnovations.com |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Event values, Frank W. Hansen |
---|---|
Next by Date: | Re: Event values, Frank W. Hansen |
Previous by Thread: | Event values, Frank W. Hansen |
Next by Thread: | Re: Event values, Frank W. Hansen |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web