HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: "glob-style pattern matching" and negate?
PostPosted: Mon Dec 29, 2014 12:52 pm 

Joined: Mon Dec 29, 2014 12:35 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: "glob-style pattern matching" and negate?
PostPosted: Tue Jan 27, 2015 12:33 am 
Site Admin
User avatar

Joined: Tue Aug 18, 2009 10:35 pm
Posts: 1328
Location: Dallas, Texas
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt