Page 1 of 1

"glob-style pattern matching" and negate?

Posted: Mon Dec 29, 2014 12:52 pm
by nbhms
Does the pattern matching in the 3Par CLI have the concept of a negate? Looking the CLI reference and testing on my own I can't find anything, but kind of hoping it's there and I'm just overlooking it.

For example, if I wanted to show all hosts without "VM" in the name.

Showing with is easy, just:

showhost *VM*

But I see no way of listing all hosts without something in the name.

Re: "glob-style pattern matching" and negate?

Posted: Tue Jan 27, 2015 12:33 am
by Richard Siemers
Unfortunately, I believe you are correct in that negating a pattern match is MIA in the cli.

You're best bet is to use the installable cli (instead of SSH) and pipe output to the OS cli tools of your choice... i.e. grep or find

For windows (assuming you have the correct variables setup for autologon):
showhost | find /v "VM"