Query Group

Use the query group command to display information about a group backup and its members.

Note:
  1. Use the showmembers option to display and select individual group members that you want to query. The showmembers option is not valid with the inactive option. If you want to display members of a group that are not currently active, use the pitdate and pittime options to specify the backup date and time of the member you want to query.
  2. Windows operating systemsOracle Solaris operating systemsLinux operating systemsAIX operating systemsUse the query filespace command to display virtual file space names for your node that are stored on the IBM Spectrum Protect server.
  3. If you perform a full and differential group backup, a query of this group using the -inactive option displays two active backups of the same name, one of type FULL and one of type DIFF.

    Windows operating systemsThese backups inactivate any previous full and differential backups:

    Windows operating systems
    Protect> q group {\fs}\v1 -inactive
    
    Size Backup Date          Mgmt Class A/I Group
    —––– –––––––––––          –––––––––– ––– ––––––
     978 B 06/02/2007 11:57:04  DEFAULT   A  FULL \fs\v1
      32 B 06/05/2007 13:52:04  DEFAULT   A  DIFF \fs\v1
    
    Oracle Solaris operating systemsLinux operating systemsAIX operating systems
    Protect> q group {/fs}/v1 -inactive
    
    Size Backup Date          Mgmt Class A/I Group
    —––– –––––––––––          –––––––––– ––– ––––––
     978 B 06/02/2007 11:57:04  DEFAULT   A  FULL /fs/v1
      32 B 06/05/2007 13:52:04  DEFAULT   A  DIFF /fs/v1
    

    If you query a group backup without the -inactive option, the query displays only the latest group backup, whether it is type FULL or type DIFF:

    Windows operating systems
    Protect> q group {\fs}\v1
    
    Size Backup Date          Mgmt Class A/I Group
    —––– –––––––––––          –––––––––– ––– ––––––
      32 B 06/05/2007 13:52:04  DEFAULT   A  DIFF \fs\v1
    
    Oracle Solaris operating systemsLinux operating systemsAIX operating systems
    Protect> q group {/fs}/v1
    
    Size Backup Date          Mgmt Class A/I Group
    —––– –––––––––––          –––––––––– ––– ––––––
      32 B 06/05/2007 13:52:04  DEFAULT   A  DIFF /fs/v1
    

Supported Clients

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsThis command is valid for all clients, except for Mac OS X.

Windows operating systemsThis command is valid for all clients.

Syntax

Read syntax diagramSkip visual syntax diagramQuery GRoup  filespec  options

Parameters

Windows operating systemsfilespec
Windows operating systemsSpecifies the virtual file space name (enclosed in braces) and the group name on the server that you want to query.
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsfilespec
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsSpecifies the virtual file space name and the group name on the server that you want to query.
Table 1. Query Group command: Related options
Option Where to use
fromnode Command line only.
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsfromowner Oracle Solaris operating systemsLinux operating systemsAIX operating systemsCommand line only.
inactive Command line only.
pitdate Command line only.
pittime Command line only.
Windows operating systemsOracle Solaris operating systemsLinux operating systemsAIX operating systemsshowmembers (does not apply to Mac OS X) Windows operating systemsOracle Solaris operating systemsLinux operating systemsAIX operating systemsCommand line only.

Examples

Oracle Solaris operating systemsLinux operating systemsAIX operating systemsTask
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsDisplay all the groups in the /virtfs file space.
Command:
query group /virtfs/*
Windows operating systemsTask
Windows operating systemsDisplay all the groups in the virtfs file space.
Command:
query group {virtfs}\*
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsTask
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsDisplay active and inactive versions of the /virtfs/group1 file space.
Command:
query group /virtfs/group1 -inactive
Windows operating systemsTask
Windows operating systemsDisplay active and inactive versions of the virtfs\group1 file space.
Command:
query group {virtfs}\group1 -inactive
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsTask
Oracle Solaris operating systemsLinux operating systemsAIX operating systemsDisplay the /virtfs/group1 file space. Use the showmembers option to display a list of group members from which you can select one or more to query.
Command:
query group /virtfs/group1 -showmembers 
Windows operating systemsTask
Windows operating systemsDisplay the virtfs\group1 file space. Use the showmembers option to display a list of group members from which you can select one or more to query.
Command:
query group {virtfs}\group1 -showmembers