A command can be executed on the set of remote hosts returned by an LSI query by using the -c option followed by the command to execute. The expected behavior is for the command to execute once on each host selected by the query, but sometimes the LSI output contains more than one output line for the same host. Also, sometimes the command doesn't execute on one of the selected hosts.
$ lsi -p demo [filter] -c hostname -y
Running command `hostname` on 5 matching hosts
[filter-1 (xx.xxx.xxx.xxx)]: foo1.N-S.INTERNAL
[filter-2 (xx.xxx.xxx.xxx)]: foo2.N-S.INTERNAL
[filter-3 (xx.xxx.xxx.xxx)]: foo3.N-S.INTERNAL
[filter-4 (xx.xxx.xxx.xxx)]: foo4.N-S.INTERNAL
[filter-4 (xx.xxx.xxx.xxx)]: foo4.N-S.INTERNAL