logo       

RE: Attribute Filter with Wildcard?: msg#00254

sysutils.tivoli.tme10

Subject: RE: Attribute Filter with Wildcard?

So using that syntax, it will only do the "do_something" if it is found?

Steve Jones
FZ-64-DU
IT Services & Operations
BMW Group Data Center - Americas


-----Original Message-----
From: owner-tme10@xxxxxxxxxxxxxxxx [mailto:owner-tme10@xxxxxxxxxxxxxxxx] On
Behalf Of Blankenship, I.V. (Contractor)
Sent: Thursday, November 18, 2004 1:56 PM
To: 'tme10@xxxxxxxxxxxxxxxx'
Subject: RE: [tme10] Attribute Filter with Wildcard?


It can be done, just not as part of all_instances. You will have to match
the hostname with a variable in the all_instances where list and call
substring/atompart:

all_instances(event: _EventMW of_class within ['maintenanceWindow']
where [
status: outside ['CLOSED'],
hostname: equals _mw_hostname,
mwStartTime: _mwStartTime
]
),
atompart(_event_hostname,_mw_hostname,_,_),
do_something


-----Original Message-----
From: Jones, Steve [mailto:Steve.Jones@xxxxxxxxx]
Sent: Thursday, November 18, 2004 10:22 AM
To: 'tme10@xxxxxxxxxxxxxxxx'
Subject: [tme10] Attribute Filter with Wildcard?


I would like to run the all_instances command as below, but have it match
host names with or with the domain name. In other words, If I submit a
maintenance window for host "TestHost1", I want the all all_instances
command to match for "TestHost1" and for "TestHost1.mydomain.com". I looked
for an operator called Like, rather than Equals, but did not find anything.
Also, FYI - all host names are converted to upper case so case is not an
issue.

Can this be done?

all_instances(event: _EventMW of_class within
['maintenanceWindow']
where [
status: outside ['CLOSED'],
hostname: equals _upper_hostname,
mwStartTime: _mwStartTime
]
),

Thanks.

Steve Jones
FZ-64-DU
IT Services & Operations
BMW Group Data Center - Americas




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

News | FAQ | advertise