Topic
4 replies Latest Post - ‏2013-08-12T15:44:00Z by benray
ericsson
ericsson
2 Posts
ACCEPTED ANSWER

Pinned topic list views belonging to a specific user

‏2013-08-12T12:11:44Z |

Hi,

I need to list all views for the specific user. Is this the only way to do it:

ct lsview | grep <userid>

This assumes that view name contains userid....

Any other way to do it?

br,

 

//mike

 

  • GKellner
    GKellner
    245 Posts
    ACCEPTED ANSWER

    Re: list views belonging to a specific user

    ‏2013-08-12T12:18:02Z  in response to ericsson

    Hi mike,

    cleartool lsview *account* would have the same output but faster ;-)

    If the account isn't part of the view tag, you'll can run a cleartool lsview -l view_tag, which will give you the owner of the view.

    greetings georg.

    • ericsson
      ericsson
      2 Posts
      ACCEPTED ANSWER

      Re: list views belonging to a specific user

      ‏2013-08-12T12:58:09Z  in response to GKellner

      Thanks

      So it is not possible to get the all views that belongs to a certain owner  in one command?

       

      br,

       

      //mike

      • GKellner
        GKellner
        245 Posts
        ACCEPTED ANSWER

        Re: list views belonging to a specific user

        ‏2013-08-12T13:02:33Z  in response to ericsson

        AFAIK there isn't an easy ones step command for this.

  • benray
    benray
    74 Posts
    ACCEPTED ANSWER

    Re: list views belonging to a specific user

    ‏2013-08-12T15:44:00Z  in response to ericsson

    On UNIX this should not be too difficult.

    [root@benray ~]# ct lsview -l -pro -ful | grep -B 9 "View owner: vobadm" | grep "Tag:" | awk '{print $2}'
    adm1
    adm2