DSMC Commands   Query Backup   The query backup command displays a list of …

Tuesday, 18th August 2026

Comment on IBM TSM dsmc console client use for listing configured backups, checking set scheduled backups and backup and restore operations howto by hip0.

DSMC Commands

 

Query Backup

 

The query backup command displays a list of backup versions of your

files that are stored on the Tivoli Storage Manager, or that are inside

a backup set from the server when the backupsetname option is specified.

 

 

The command displays the following file information:

*  File specification

*  File size

*  Backup date

*  Whether the file is active or inactive

*  The management class that is assigned to the file. Only the first 10

   characters of the management class name are displayed.

 

If you use the detail option with the query backup command, the client

displays the following extra information:

*  Last modification date

*  Last file attributes (inode) change date

*  Compression

*  Encryption type

*  Client-side data deduplication

*  Whether the file is migrated or premigrated. A value of Yes means

   that the file is migrated or premigrated. A value of No means that

   the file is not migrated or premigrated.

hip0 Also Commented

IBM TSM dsmc console client use for listing configured backups, checking set scheduled backups and backup and restore operations howto

 backupsetname        Command line only.                             
 class                Command line only.                             
 dateformat           Client system options file (dsm.sys) or  command line.
 detail               Command line only.                             
 dirsonly             Command line only.                             
 filelist             Command line only.                             
 filesonly            Command line only.                             
 fromdate             Command line only.                             
 fromowner            Command line only.                             
 fromowner            Command line only.                             
 fromtime             Command line only.                             
 inactive             Command line only.                             
 nasnodename          Client system options file (dsm.sys) or command line.
 numberformat         Client user-options file (dsm.opt) or command line
 pitdate              Command line only.                             
 pittime              Command line only.                             
 querysummary         Command line only.                             
 scrolllines          Client user-options file (dsm.opt) or command line
 scrollprompt         Client user-options file (dsm.opt) or command line 
 subdir               Client user-options file (dsm.opt) or command line
 timeformat           Client user-options file (dsm.opt) or command line
 todate               Command line only.                             
 totime               Command line only.                             

 

Examples

Task     Display a list of all active and inactive backup versions of
         your files in the current directory.

          dsmc query backup -inactive "*"


Task     Display a list of all your backups in the current directory.
         Use the detail option to display the last modification date and
         the last access date of each file.

          dsmc q backup -detail "*"


Task     Display a list of files that were backed up from the /home/proj
         directory with file names that begin with proj.

          dsmc q b "/home/proj/proj*"


Task     Display a list of active and inactive backup file versions in
         the /home file system.

          dsmc q b -ina -su=yes /home/


Task     Query file system images from the nas2 NAS file server.

          dsmc query backup -nasnodename=nas2 -class=nas

Query NAS file system images

You can use the query backup command to display information about file
system images backed up for a NAS file server. Tivoli Storage Manager
prompts you for an administrator ID.

Where supported, use the nasnodename option to identify the NAS file
server to query. Place the nasnodename option in your client
system-options file (dsm.sys). The value in the client system-options
file is the default, but this value can be overridden on the command
line.

Use the class option to specify the class of the file space to query. To
display a list of images belonging to a NAS node, use the -class=nas
option.


IBM TSM dsmc console client use for listing configured backups, checking set scheduled backups and backup and restore operations howto
Supported Clients

 

This command is valid for all clients.

Syntax

 

>>-Query Backup–+————+–+- –filespec—+————-><

                 '- –options-'  '- –"filespec"-'

 

Parameters

filespec

   Specifies the path and file name that you want to query. Use wildcard

   characters to specify a group of files or all the files in a

   directory. If you use wildcard characters, enclose the file

   specification in double quotation marks. Specify an asterisk (*) to

   display information about backup versions for all of your files in

   the current directory. Do not use wildcards characters when you query

   NAS file system images with -class=nas option setting.


IBM TSM dsmc console client use for listing configured backups, checking set scheduled backups and backup and restore operations howto
to display the archived files, analog ba for backup)
                 dsmc retrieve -pi "/dir/tsm/location/file *”
to retrieve the archived files, "pi" means "pick", you can select the individual files from a list.
 dsmc q ar "/dir/tsm/location/file".
This is similar to "restore" for backup files instead of "retrieve" for archive files.


Recent Comments by hip0

TinyProxy Quick and Easy way to run a Proxy Caching server to protect and speed up web traffic on Linux / BSD and Mac

What Tinyproxy Does Keep in Memory:

While it doesn’t cache, it does use in-memory buffers to temporarily hold data during transmission (standard for any proxy). This is not caching in the HTTP sense — it's transient and discarded immediately after serving the request.


TinyProxy Quick and Easy way to run a Proxy Caching server to protect and speed up web traffic on Linux / BSD and Mac
Hello,

Tinyproxy is caching in the server’s memory, so your statement is incorrect and the swear word doesn’t make it look intelligent.

Best


Christ is Risen Eastern Orthodox Resurrection Paschal Greeting in Different Languages
Thank you i’ve included the Georgian Paschal greeting. It was my bad to not include, it was a gap of mine.


Restrict user to Run one remote Server command only via SSH authorized key passwordless authentication on Linux / UNIX / BSD

Smal script to easify ssh key generation

 

#!/bin/bash
 
# Define the user and group
USER="user"
GROUP="group"
HOME_DIR="/home/$USER"
 
# Navigate to the user's home directory
cd "$HOME_DIR" || { echo "Failed to navigate to $HOME_DIR"; exit 1; }
 
# Create the .ssh directory if it does not exist
if [ ! -d “.ssh” ]; then
            mkdir .ssh
                echo ".ssh directory created."
            mkdir .ssh
                echo ".ssh directory created."
        else
                    echo ".ssh directory already exists."
            fi

            # Change ownership of the .ssh directory
            chown "$USER:$GROUP" .ssh
            echo "Ownership of .ssh directory changed to $USER:$GROUP."

            # Navigate to the .ssh directory
            cd .ssh || { echo "Failed to navigate to .ssh directory"; exit 1; }

            # Create the authorized_keys file if it does not exist
            if [ ! -f “authorized_keys” ]; then
                        touch authorized_keys
                            echo "authorized_keys file created."
                    else
                                echo "authorized_keys file already exists."
                        fi


                        # Change ownership of the authorized_keys file
                        chown "$USER:$GROUP" authorized_keys
                        echo "Ownership of authorized_keys changed to $USER:$GROUP."
echo "Generating new DSA key with ECDSA encryption algorithm";
                        ssh-keygen -t ecdsa -f id_dsa
echo "Copying id_dsa.pub to ~/.ssh/ directory";
cp -vrpf id_dsa ~/.ssh/
echo "Copy the id_dsa.pub content to remote server's directory $HOME/.ssh/authorized_keys and run chown 600 ~/.ssh/authorized_keys";
        else
                    echo ".ssh directory already exists."
            fi
             
            # Change ownership of the .ssh directory
            chown "$USER:$GROUP" .ssh
            echo "Ownership of .ssh directory changed to $USER:$GROUP."
             
            # Navigate to the .ssh directory
            cd .ssh || { echo "Failed to navigate to .ssh directory"; exit 1; }
             
            # Create the authorized_keys file if it does not exist
            if [ ! -f “authorized_keys” ]; then
                        touch authorized_keys
                            echo "authorized_keys file created."
                    else
                                echo "authorized_keys file already exists."
                        fi
                         
                         
                        # Change ownership of the authorized_keys file
                        chown "$USER:$GROUP" authorized_keys
                        echo "Ownership of authorized_keys changed to $USER:$GROUP."
echo "Generating new DSA key with ECDSA encryption algorithm";
                        ssh-keygen -t ecdsa -f id_dsa
echo "Copying id_dsa.pub to ~/.ssh/ directory";
cp -vrpf id_dsa ~/.ssh/
echo "Copy the id_dsa.pub content to remote server's directory $HOME/.ssh/authorized_keys and run chown 600 ~/.ssh/authorized_keys";


Enable automatic updates on CentOS 8 , CentOS 9 Stream Linux with dnf-automatic and Cockpit Web GUI package management tool

One good hint if cockpit is not accessible in browser and you have to allow it through the firewall,
To open the firewall ports (if needed), execute the following commands:

sudo firewall-cmd --add-service=cockpit --permanent
sudo firewall-cmd --reload


Share this on:

Comments are closed.