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

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
    259 Posts
    ACCEPTED ANSWER

    Re: list views belonging to a specific user

    ‏2013-08-12T12:18:02Z  

    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.

  • benray
    benray
    74 Posts
    ACCEPTED ANSWER

    Re: list views belonging to a specific user

    ‏2013-08-12T15:44:00Z  

    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
     
  • GKellner
    GKellner
    259 Posts

    Re: list views belonging to a specific user

    ‏2013-08-12T12:18:02Z  

    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

    Re: list views belonging to a specific user

    ‏2013-08-12T12:58:09Z  
    • GKellner
    • ‏2013-08-12T12:18:02Z

    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.

    Thanks

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

     

    br,

     

    //mike

  • GKellner
    GKellner
    259 Posts

    Re: list views belonging to a specific user

    ‏2013-08-12T13:02:33Z  
    • ericsson
    • ‏2013-08-12T12:58:09Z

    Thanks

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

     

    br,

     

    //mike

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

  • benray
    benray
    74 Posts

    Re: list views belonging to a specific user

    ‏2013-08-12T15:44:00Z  

    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