Is there a way to list all restore jobs/sessions from CMD with a single line? (We have NetWorker 9.1 on Windows Server 2012)
It would be really nice if I could also see for how long it's been running, but not mandatory.
Such is not possible (something like 'jobinfo' similar to 'mminfo') does not exist.
You can use jobquery but the handling and output are in the same way as NW's 'nsradmin'.
I can list sessions by typing this in order:
print type: nsr
However I don't know how to combine it into a single line.
This almost works but gives me the wrong info:
how do I insert "show session" in there?
Ps. I can't type the command in the post, the website is bugged.
Sure it's not the info you wanted. But you used 'nsradmin' instead of 'jobquery' yourself. Of course you must use the appropriate commands.
The command line reference is very small. May I suggest that you run the following commands with "jobquery":
. type: recover job; job state: ACTIVE
You will get all the attributes/parameters. Next select the ones you need and apply them to the 'show' command. If you need online help, just use 'h' within the 'shell'.