Jump to content

Finding Labels via the CLI

Recommended Posts

Good Day -

Is there a way for me to lookup specific labels via the CLI? Currently, I can get the entire list back by using:

cm find label on repository 'REP@IPADDRESS:PORT'

I know that you can use the WHERE clause looking up other items, but I am unable to figure out how to do it with labels. I get an EOF error.

Ideally, I would like to simply find that last label created that starts with 'X'. Something like:

cm find label on repository 'REP@IPADDRESS:PORT' where label like 'X%' and uid = (SELECT MAX(uid) FROM ? WHERE label like 'X%')

Please forgive the SQL syntax. I am just trying to show what I need to accomplish.



Link to post
Share on other sites

Hi Manu!

Thank you for your prompt reply! I ran that command and, unfortunately, it seems that LABEL is not a query-able object. It does show up as a field on other object types, but I need to query the labels, themselves.

Anyway, that answers my question. Thanks!



Link to post
Share on other sites

Hi Tom!

I'm sorry I forgot that the labels have an ancient name at the 'cm showfindobjects', it's marker.













You can perform the query using "marker" or "label" it's the same object.



Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...