logo       
Bookmark and Share

RE: [TEC] Question regarding TEC task for events with slo t strings enclose: msg#00206

sysutils.tivoli.tme10

Subject: RE: [TEC] Question regarding TEC task for events with slo t strings enclosed in single quotes

You can modify the Task executable to use environment variables instead of command line arguments or you can use the strip predicate on the string atom.
 
 _stripped_msg =? strip(_msg,7,'\''),
exec_task( _event,
               'CA_Ticket',
              '-l "TEC" -p "Endpoints_CA" -a "%ld" -a "%s" -a "%s" -a "%s" -a "%s" -a "%s" -a "%s"', [ _date_reception, _hostname, _origin, _stripped_msg, _severity, _status, _sub_origin ], 'NO' )
 
-----Original Message-----
From: Van Order, Drew (US - Hermitage) [mailto:dvanorder-TMRu9lVj5FpWk0Htik3J/w@xxxxxxxxxxxxxxxx]
Sent: Wednesday, January 12, 2005 1:47 PM
To: tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx
Subject: [tme10] [TEC] Question regarding TEC task for events with slot strings enclosed in single quotes

Hi all,

We have a problem handling variables with events that come from NetIQ AppManager's TEC Connector. NetIQ sends slots (namely msg) needing character protection in single quotes instead of double. This is causing us trouble handling variables exported through the TEC task below:

reception_action:
  (
      exec_task( _event,
               'CA_Ticket',
              '-l "TEC" -p "Endpoints_CA" -a "%ld" -a "%s" -a "%s" -a "%s" -a "%s" -a "%s" -a "%s"', [ _date_reception, _hostname, _origin, _msg, _severity, _status, _sub_origin ], 'NO' )

  )

This task does nothing more than call a Perl script where we use the slots above to create help desk tickets. Tivoli events via NetView, etc. don't have a problem, slots always use double quotes. Is there anything I can do to handle NetIQ event single quoted slots while leaving properly formatted events alone? Anything I can take care of in NetIQ's BAROC file and leave the rule alone? I've talked with NetIQ support, it will be a long time before they address this issue. 

Thanks--Drew

Drew Van Order
Deloitte Services LP
Tel: +1 615 882 7836
www.deloitte.com

This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise