|Subject:||Re: [nv-l] How to pass Octet String trap parameter to script ?|
|From:||James Shanks <email@example.com>|
|Date:||Tue, 16 Sep 2003 11:56:31 -0400|
|Delivered-to:||mailing list firstname.lastname@example.org|
|Delivery-date:||Tue, 16 Sep 2003 16:57:02 +0100|
|Mailing-list:||contact email@example.com; run by ezmlm|
What's in the display window of nvevents is a construction. nvevents has already set aside a buffer and interpreted it. What you are passing to your script is raw data from trapd.
If it contains blanks, then you must enclose it in quotes, just as you would any other script input on the command line. You have to pass
or the shell will pass only the first word of $3.
In general it doesn't hurt to enclose all of your variables
<myscript> "$1" "$2" "$3" "$4" "$5"
when you don't know what form the incoming data will take.
Level 3 Support for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group
AIX 4.3.3 ML10 + NV 7.1.3 + popular patches.
I need to provide a script with the parameters found in a trap.
$1, $2, etc work fine for integers and strings but doesn't for Octet Strings.
It seems that the bytes are passed (and escaped for most of them) by ovactiond.
Is there is way to get the bytes string as displayed in the events window ?
( i.e. a string like "0x01 12 34 ab ..." )
- - -
Networking Delivery Support Center
Mail : firstname.lastname@example.org
Phone : +33 (0)4 92 11 48 69
Fax : +33 (0)4 93 24 49 07
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||RE: [nv-l] How to pass Octet String trap parameter to script ?, Allison, Jason (JALLISON)|
|Next by Date:||RE: [nv-l] How to pass Octet String trap parameter to script ?, Allison, Jason (JALLISON)|
|Previous by Thread:||RE: [nv-l] How to pass Octet String trap parameter to script ?, Allison, Jason (JALLISON)|
|Next by Thread:||RE: [nv-l] How to pass Octet String trap parameter to script ?, Allison, Jason (JALLISON)|
|Indexes:||[Date] [Thread] [Top] [All Lists]|
Archive operated by Skills 1st Ltd
See also: The NetView Web