lsclients
Displays the client host list for a ClearCase license or registry server host
Applicability
Product |
Command type |
---|---|
ClearCase |
cleartool subcommand |
Platform |
---|
UNIX |
Linux |
Windows |
Synopsis
- lsclients –hos/t hostname [ –typ/e { registry | license | all } ]
- [ –s/hort | –l/ong ]
Description
On every ClearCase® license server host and registry server host, the albd_server process maintains a list of current client hosts. If a client host does not access a server host for 30 days, albd_server drops it from that server host's client host list. For more information about albd_server, see the Help.
For product patch information, use cleartool –ver.
Restrictions
None.
Options and arguments
Specifying a host
- Default
- None. You must supply a license or registry server host name.
- –hos/t hostname
- Specifies the registry or license server host. Only license and registry server hosts maintain client lists. If you specify a host that is not a license or registry server host, lsclients prints a message indicating that the host has no clients.
Specifying the type of server host
- Default
- –all.
- –typ/e { registry | license | all }
- Use –type registry or –type license to restrict the listing to include only clients of registry server hosts or clients of license server hosts, respectively.
Listing format
- Default
- Displays a one-line description of each client.
- –s/hort
- Displays client host names only.
- –l/ong
- Expands the listing to include each client's registry server host, registry region, license server host, and date and time of the last server access.
Examples
The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
- Display the sorted client list for license server host
bromacil.
cmd-context lsclients –host bromacil –type license | sort
...
durian: ClearCase 9.0.1.6 (Linux 2.6.32-696.el6.x86_64)
indeno: ClearCase 9.0.1.5 (Linux 3.0.101-63-default SMP (4b89d0c) x86_64)
lead: ClearCase 9.0.1.10 (Linux 4.13.0-45-generic #50~16.04.1-Ubuntu SMP x86_64)
orion: ClearCase 9.0.1.12 (Windows NT 10.0 (build 14393) Pentium)
scorpius: ClearCase 9.0.1.12 (Windows NT 6.2 (build 9200) Pentium) - Display the long format client list for registry server host
atl.
cmd-context lsclients –host atl –long
...
Client: pyramid
Product: ClearCase 9.0.2.3
Operating system: Windows NT 6.2 (build 9200)
Hardware type: Pentium
Registry host: atl
Registry region: at1_r_d_unc
License host: lime
Last registry access: 2021-02-13T22:36:49-05:00
Last license access: never
...
UNIX and Linux files
- /var/adm/devops/clearcase/config/rgy_hosts.conf
- /var/adm/devops/clearcase/config/rgy_svr.conf
- /var/adm/devops/clearcase/config/rgy_region.conf
- /var/adm/devops/clearcase/config/license_host
Windows registry keys
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Atria\ClearCase\CurrentVersion\AtriaRegy
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Atria\ClearCase\CurrentVersion\Region
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Atria\ClearCase\CurrentVersion\ServerType
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Atria\ClearCase\CurrentVersion\LicenseHost