hi,
please use ...
./cr_cli -cmd hdb.h.lq -query "sys.hostName-contains-*gbl*" -u admin -p admin
or
./cr_cli -cmd hdb.h.lq -query "sys.hostName-contains-*gbl*" -phys "PHYS" -u admin -p admin
und please look at page 140 in the cli sps 5.2 dokumentation ...
Chris
Try creating the search in the GUI and saving it.
Then try:
cr_cli -cmd hdb.hr.lo -ID "NM:<yourQueryName> -u userID -p password
It should dump out a field like:
ID: 010046023173-1181088209052-31722-0251754824
Name: test_search
Description:
Hidden: false
Query:
sys.hostName-contains-test
Host Filter:
EMPTY
Physical Criteria:
VIRT
So now you can create a cli command like:
${crCmd} hdb.h.lq $auth -query sys.hostName-contains-test
Or if you wanted to gneralize it for any string in perl you could make it:
${crCmd} hdb.h.lq $auth -query sys.parent-equals-${inputString}
John