PeterBen

updated

18 years ago

P

PeterBen

120 Posts

0

3064

April 23rd, 2009 02:00

determine status of running backup of a saveset in command line

Hello Experts,
i wonder if there is a way to show in command line how much data is being written or a percentage completed of a save set running right now.
  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    2381

    0

    Posted April 23rd, 2009 02:00

    Percentage no (unless you do calculation), but size could be determined from nsrwatch sometimes or in combination with logs and nsrwatch. In reality there is no command which will give this data (even NMC will show it or should show it).
  • amediratta

    2 Intern

    •

    2014 Posts

    2381

    0

    Posted April 23rd, 2009 02:00

    Did you try mminfo options?
  • satishs

    50 Posts

    2381

    0

    Posted April 23rd, 2009 13:00

    Hello Experts,
    i wonder if there is a way to show in command line
    how much data is being written or a percentage
    completed of a save set running right now.


    ---------

    You can see how much data is being backed-up using nsradmin.

    e.g nsradmin -i cmds.txt where cmds.txt contains...

    show nsr operation;volume operation;minor mode;name;statistics
    print nsr device
    ------

    Then you would need a shell/perl wrapper etc which runs every minute or whatever to process the text file.

    You would get something like this in the output of nsradmin...

    name: "rd=myfiler:nrst2a (NDMP)";
    volume operation: ;
    NSR operation: Write;
    minor mode: idle;
    statistics: elapsed = 605215, errors = 5, last rate = 78320,
    max clients = 1, file marks = 6, rewinds = 5,
    files skipped = 895, records skipped = 0,
    current file = 176, current record = 0,
    seek files = 171, seek records = 0,
    estimated kb = 0, amount kb = 23449448,
    file amount kb = 23449320, sessions = 1;
    name: "rd=myfiler:nrst2a (NDMP)";
  • PeterBen

    120 Posts

    2381

    0

    Posted April 23rd, 2009 23:00

    is nsrwatch part of the windows version of networker too? i can't seem to find it
  • PeterBen

    120 Posts

    2381

    0

    Posted April 23rd, 2009 23:00

    great this looks good i will give it a try but it shows the statistics for a device not for the running saveset/job

    Message was edited by:
    PeterBen
  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    2381

    0

    Posted April 24th, 2009 01:00

    No, it's not part of Windows as code uses certain libraries not available on generic Windows systems.
  • satishs

    50 Posts

    2381

    0

    Posted April 24th, 2009 09:00

    show session statistics
    print type:NSR
    quit
    ----------------for another cmds.txt----

    This shows the volume/pool/client, but not the group. But u can run another nsradmin to see which group is running..

    show status
    print type: NSR group; name: groupname
    ------
    then loop through all the groups you have...

    Basically I don't think there's a ONE command ....unless someone finds something else...