CRAZYROV STUDIO

nsrstatsinfo



So the other day I was trying to find some information around a question in the comments and I came across this wonderful command that is not documented anywhere. This has a lot of information regarding the saveset from the clients detailed information to the details of the proxy incase of VM image level backups.

BUT….

I really don't have a use case for this command other than for inventory of the client because no other command can give you details of the client and the backup in one place(atleast I am not aware of any such).

The biggest drawback is that this is not documented in any of the NetWorker documentation nor was I able to find anything relevant to it on the support site. Go ahead and do a quick google search for “nsrstatsinfo” and my blog is the only place you will find the details around this.

Syntax for nsrstatsinfo
[root@nsr-linux ~]# nsrstatsinfo -h
usage: nsrstatsinfo [-s server] [-i file] [-c client] [-S ssid] [-r RDZ]
usage: nsrstatsinfo [-s server] [query]

Example

Here is an example for the command nsrstatsinfo for getting information on a single saveset -s is optional and can be used to get information from a remote NetWorker server. You can use a client name, saveset or a RDZ.

Example for nsrstatsinfo
[root@nsr-linux ~]# nsrstatsinfo -s localhost -S 3211478
            Application name: ;
         Application version: ;
                Backup level: full;
             Backup or clone: Backup;
              Backup subtype: Filesystem;
          Backup target type: Data Domain;
                 Backup type: save;
                 Browse time: 1616264999;
                   Client ID: \
59ff8c46-00000004-5f64a808-5f64a807-00015000-f118bf56;
                 Client name: nsr-linux.crazyrov.com;
                   Client OS: Linux;
           Client OS version: CentOS Linux release 7.8.2003 (Core);
             Client platform: x86_64;
     Client platform details: ;
                    Clone ID: ;
            Database objects: ;
                    End time: 1613825118;
           Index client name: ;
    NetWorker client version: 19.4.0.0.Build.25;
       NetWorker module name: ;
    NetWorker module version: ;
       NetWorker server name: nsr-linux.crazyrov.com;
    NetWorker server version: NetWorker 19.4.0.0.Build.25 Enterprise Edition;
                 Object name: ;
                 Object type: ;
                 Parent SSID: ;
         Partial backup flag: ;
           Proxy client name: ;
        Proxy client version: ;
        Restricted Data Zone: ;
              Retention time: 1616264999;
                Saveset name: /;
      Saveset size on client: 18446744073700167345;
      Saveset size on target: ;
    Saveset size transferred: 9384270;
                    Savetime: 1613824212;
          Session identifier: ;
                  Start time: ;
              Success status: succeeded;
         resource identifier: 0(0);

In this example you can see that this can also be used to get information relevant to a type of backup only. I have selected the backup subtype here .

Example for nsrstatsinfo
[root@nsr-linux ~]# nsrstatsinfo  "Backup subtype: Filesystem" | more
            Application name: ;
         Application version: ;
                Backup level: full;
             Backup or clone: Backup;
              Backup subtype: Filesystem;
          Backup target type: Data Domain;
                 Backup type: save;
                 Browse time: 1604773799;
                   Client ID: \
59ff8c46-00000004-5f64a808-5f64a807-00015000-f118bf56;
                 Client name: nsr-linux.crazyrov.com;
                   Client OS: Linux;
           Client OS version: "CentOS Linux release 7.3.1611 (Core) ";
             Client platform: x86_64;
     Client platform details: ;
                    Clone ID: ;
            Database objects: ;
                    End time: 1602068019;
           Index client name: nsr-linux.crazyrov.com;
    NetWorker client version: 19.3.0.1.Build.51;
       NetWorker module name: ;
    NetWorker module version: ;
       NetWorker server name: nsr-linux.crazyrov.com;
    NetWorker server version: NetWorker 19.3.0.1.Build.51 Eval;
                 Object name: ;
                 Object type: ;
                 Parent SSID: ;
         Partial backup flag: ;
           Proxy client name: ;
        Proxy client version: ;
        Restricted Data Zone: ;
              Retention time: 1604773799;
                Saveset name: /nsr/nmc/nmcdb_stage;
      Saveset size on client: 51955396;
      Saveset size on target: ;
    Saveset size transferred: 50738;
                    Savetime: 1602068010;
          Session identifier: ;
                  Start time: ;
              Success status: succeeded;
         resource identifier: 0(0);
            Application name: ;
         Application version: ;
                Backup level: full;
             Backup or clone: Backup;
              Backup subtype: Filesystem;
          Backup target type: Data Domain;
                 Backup type: save;
                 Browse time: 1604746413;
                   Client ID: \
59ff8c46-00000004-5f64a808-5f64a807-00015000-f118bf56;
                 Client name: nsr-linux.crazyrov.com;
                   Client OS: Linux;
           Client OS version: "CentOS Linux release 7.3.1611 (Core) ";
             Client platform: x86_64;
     Client platform details: ;
                    Clone ID: ;
            Database objects: ;
                    End time: 1602068019;
           Index client name: ;
    NetWorker client version: 19.3.0.1.Build.51;
       NetWorker module name: ;
    NetWorker module version: ;
       NetWorker server name: nsr-linux.crazyrov.com;
    NetWorker server version: NetWorker 19.3.0.1.Build.51 Eval;

Conclusion

What is this command useful for ? I would say for getting detailed information about a saveset or a client. But I don't see this being used everyday.


Thank you for visting www.crazyrov.com, you can also check out my YouTube channel - crazyRov Studios for Data protection and cloud related technical videos.

CRAZYROVSTUDIO