"glob-style pattern matching" and negate?

Post Reply
nbhms
Posts: 1
Joined: Mon Dec 29, 2014 12:35 pm

"glob-style pattern matching" and negate?

Post 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.
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

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

Post 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"
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
Post Reply