VictorG
2 Bronze

List all active restore sessions/jobs from the CLI

Hi all,

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.

Many thanks

Victor

0 Kudos
14 Replies
bingo.1
4 Ruthenium

Re: List all active restore sessions/jobs from the CLI

You could use nsrwatch - it provides a similar interface like the Monitoring GUI.

Type 'H' to get to the online help.

 

0 Kudos
VictorG
2 Bronze

Re: List all active restore sessions/jobs from the CLI

<delete>

0 Kudos
VictorG
2 Bronze

Re: List all active restore sessions/jobs from the CLI

My question is whether I can list all restore jobs from a single line in CMD.

0 Kudos
bingo.1
4 Ruthenium

Re: List all active restore sessions/jobs from the CLI

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'.

 

0 Kudos
VictorG
2 Bronze

Re: List all active restore sessions/jobs from the CLI

I can list sessions by typing this in order:

nsradmin
show session
print type: nsr

However I don't know how to combine it into a single line.

0 Kudos
bingo.1
4 Ruthenium

Re: List all active restore sessions/jobs from the CLI

just save the commands to a text file and run the command like 'nsradmin -i file'
0 Kudos
VictorG
2 Bronze

Re: List all active restore sessions/jobs from the CLI

I added this to file.txt:

show session
print type: nsr

I then ran:  nsradmin -i file.txt

It doesn't work, what am I doing wrong

0 Kudos
VictorG
2 Bronze

Re: List all active restore sessions/jobs from the CLI

This almost works but gives me the wrong info:

Capture

how do I insert "show session" in there?

Ps. I can't type the command in the post, the website is bugged.

0 Kudos
bingo.1
4 Ruthenium

Re: List all active restore sessions/jobs from the CLI

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

show all

p

q

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'.

 

0 Kudos