icli icon indicating copy to clipboard operation
icli copied to clipboard

FILTER EXPRESSIONS can use...

Open barryzhao26 opened this issue 10 years ago • 4 comments

Hi, starting to learn how to use icli. Tried this two commands:

$ icli -h servername # I can get what I want $ icli -z!o,!A,!S,!D
-bash: !o,!A,!S,!D: event not found
this is copied from the man file, but failed...I think the bash should be the reason.

then I tried copy the command to a script, then run it, got an error: Use of uninitialized value in numeric ne (!=) at /usr/local/bin/icli line 242.

Know little about perl, can you help...

barryzhao26 avatar May 05 '15 10:05 barryzhao26

bash uses ! for history expansion, so you need to quote it: icli -z'!o,!A,!S,!D' should do the trick.

derf avatar May 05 '15 10:05 derf

Thanks for your reply. Actually, tried that, same error: Use of uninitialized value in numeric ne (!=) at /usr/local/bin/icli line 242.

barryzhao26 avatar May 05 '15 10:05 barryzhao26

I can't reproduced that here. which icli version are you using?

derf avatar May 07 '15 12:05 derf

Thanks for your reply.

I installed v0.48 on Centos 6.4, I'm using Icinga 2. Downloaded icli from this page : http://finalrewind.org/projects/App-Icli/ Installed it :

perl Build.PL ./Build sudo ./Build install

I tested, the command works fine:

icli -vvv www/load

Host : www Service : load Status : OK (for 36d 10h 42m 1s) .......

But when I try icli -z'!o,!A,!S,!D' , it showed the error...

barryzhao26 avatar May 07 '15 13:05 barryzhao26