Welcome! » Log In » Create A New Profile

Jobquery question

Posted by Michael Leone 
Michael Leone
Jobquery question
June 06, 2017 05:59AM
I can't seem to find a decent solution to this. I have scheduled clone
jobs that are failing, because the clone job definition doesn't exist
anymore (due to that server crash from yesterday). So I am getting
notifications like:

Unable to process resource: Cannot find NSR clone resource 'Clone Job -
Lotus Mail Server Daily FULL+'.

Now, NMC does not show the clone resource 'Clone Job - Lotus Mail Server
Daily FULL+' anymore. So I need to do a jobquery, find that job ID, and do
a jobkill on it.
(I think)

(this is on Windows 2008 R2)

I can do a jobquery. Then a "show type; name; job id; job state". Then a
"print" will show me all of them (I have like 80 or more ...), but they
all scroll past; I don't know how to tell it to route the output to a
file, so I can examine it ...

But how do I tell it to show me only " 'Clone Job - Lotus Mail Server
Daily FULL+'", so I can then jobkill that job ID?
(or better yet, delete that job definition completely)

The name attribute sems to sometimes have a "clone." pre-pended to some of
the names, but not all the names, etc.

Really, this should be easier. I should be able to just scroll up and down
a list, and hit "k" to kill the job ... but anyway ....


--
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
1800 South 32nd Street
Phila, PA 19145
Tel: 215-684-4180
Cell: 215-252-0143
<mailto:michael.leone@pha.phila.gov>


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu
This message was imported via the External PhorumMail Module
FAIDHERBE Thierry
Re: Jobquery question
June 06, 2017 06:59AM
Hello Michael,

did you try such a way ?

C:\Users\admfdhthr>jobquery -s backupserver

NetWorker jobs query utility.
Use the "help" command for help.

(...) Show is set to specify fields to display (...)

jobquery> show type; name; job id; job state


(...) now use print and filter on your job name :
jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'


You can also use following to display all fields
jobquery> show
and now use print and filter on your job name :
jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'

HTH

TH

Kind regards - Bien cordialement - Vriendelijke groeten,

Thierry FAIDHERBE
Backup/Storage & System Management

LE FOREM
Département des Systèmes d'Information, Direction Infrastructure

Boulevard Tirou, 104 Tel: +32 (0)71/206730
B-6000 CHARLEROI Mobile: +32 (477)/995319
BELGIUM Mail : Thierry.faidherbe<at>forem.be

"The urgent is done, the impossible is being processed ... For miracles Allow time".
"Nowadays, people know the price of everything and the value of nothing", Oscar Wilde
"The future belongs to those who believe in the beauty of their dreams", Eleanor Roosevelt
"Courage is not having the strength to go on;
it is going on when you don't have the strength.", Theodore Roosevelt



-----Message d'origine-----
De : EMC Data Protection Q & A [mailto:EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU] De la part de Michael Leone
Envoyé : mardi 6 juin 2017 14:39
À : EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU
Objet : [EMC-DataProtection-L] Jobquery question

I can't seem to find a decent solution to this. I have scheduled clone
jobs that are failing, because the clone job definition doesn't exist
anymore (due to that server crash from yesterday). So I am getting
notifications like:

Unable to process resource: Cannot find NSR clone resource 'Clone Job -
Lotus Mail Server Daily FULL+'.

Now, NMC does not show the clone resource 'Clone Job - Lotus Mail Server
Daily FULL+' anymore. So I need to do a jobquery, find that job ID, and do
a jobkill on it.
(I think)

(this is on Windows 2008 R2)

I can do a jobquery. Then a "show type; name; job id; job state". Then a
"print" will show me all of them (I have like 80 or more ...), but they
all scroll past; I don't know how to tell it to route the output to a
file, so I can examine it ...

But how do I tell it to show me only " 'Clone Job - Lotus Mail Server
Daily FULL+'", so I can then jobkill that job ID?
(or better yet, delete that job definition completely)

The name attribute sems to sometimes have a "clone." pre-pended to some of
the names, but not all the names, etc.

Really, this should be easier. I should be able to just scroll up and down
a list, and hit "k" to kill the job ... but anyway ....


--
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
1800 South 32nd Street
Phila, PA 19145
Tel: 215-684-4180
Cell: 215-252-0143
<mailto:michael.leone@pha.phila.gov>


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu
This message was imported via the External PhorumMail Module
Michael Leone
Re: Jobquery question
June 06, 2017 06:59AM
>
> (...) now use print and filter on your job name :
> jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'
>
>
> You can also use following to display all fields
> jobquery> show
> and now use print and filter on your job name :
> jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'

Yes, I must have just been mistyping it somehow. I do see it now, thanks.

But now that I've identified the job, how do I delete it? It's obviously
not running, so killing it won't do any good (jobkill -j <job id>).

I don't see a delete option in the help ...


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu
This message was imported via the External PhorumMail Module
FAIDHERBE Thierry
Re: Jobquery question
June 06, 2017 07:59AM
I did it once :

Go to resdb subdir on your backup server,
then, for each sub-folders, grep "Clone Job" to each files
(Take care long strings are CR+LF'ed and continued on next line ...

Once you got the file that contains the nsr clone job,
look at its contents and note the resource id

then using nsradmin to modify/disable it using for sample

print resource identifier: 135.5.76.10.234.205.218.71.192.168.20.6(4050)
delete resource identifier: 135.5.76.10.234.205.218.71.192.168.20.6(4050)


HTH

TH


Kind regards - Bien cordialement - Vriendelijke groeten,

Thierry FAIDHERBE
Backup/Storage & System Management

LE FOREM
Département des Systèmes d'Information, Direction Infrastructure

Boulevard Tirou, 104 Tel: +32 (0)71/206730
B-6000 CHARLEROI Mobile: +32 (477)/995319
BELGIUM Mail : Thierry.faidherbe<at>forem.be

"The urgent is done, the impossible is being processed ... For miracles
Allow time".
"Nowadays, people know the price of everything and the value of nothing",
Oscar Wilde
"The future belongs to those who believe in the beauty of their dreams",
Eleanor Roosevelt
"Courage is not having the strength to go on;
it is going on when you don't have the strength.", Theodore
Roosevelt

-----Message d'origine-----
De : EMC Data Protection Q & A
[mailto:EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU] De la part de Michael
Leone
Envoyé : mardi 6 juin 2017 15:52
À : EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU
Objet : Re: [EMC-DataProtection-L] Jobquery question

>
> (...) now use print and filter on your job name :
> jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'
>
>
> You can also use following to display all fields
> jobquery> show
> and now use print and filter on your job name :
> jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'

Yes, I must have just been mistyping it somehow. I do see it now, thanks.

But now that I've identified the job, how do I delete it? It's obviously
not running, so killing it won't do any good (jobkill -j <job id>).

I don't see a delete option in the help ...


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings,
please do so via
http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send
email to owner-emc-dataprotection-l@listserv.temple.edu


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu
This message was imported via the External PhorumMail Module
Michael Leone
Re: Jobquery question
June 06, 2017 08:59AM
> I did it once :
>
> Go to resdb subdir on your backup server,
> then, for each sub-folders, grep "Clone Job" to each files
> (Take care long strings are CR+LF'ed and continued on next line ...
>
> Once you got the file that contains the nsr clone job,
> look at its contents and note the resource id
>
> then using nsradmin to modify/disable it using for sample
>
> print resource identifier:
135.5.76.10.234.205.218.71.192.168.20.6(4050)
> delete resource identifier:
135.5.76.10.234.205.218.71.192.168.20.6(4050)

Well, that sounds intuitive ... LOL

Thanks, soon as I get a minute, I will give that a try.


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu
This message was imported via the External PhorumMail Module
Michael Leone
Re: Jobquery question
June 06, 2017 10:59AM
Found an easier way.

nsradmin
print type:NSR task
visual

Then I can do NEXT until I see a task with a last message of "Unable to
process resource: Cannot find NSR clone resource".

There's only 102 tasks, that's not a whole lot to click through. I'd type
more characters than that, by using resource IDs ....


--
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
1800 South 32nd Street
Phila, PA 19145
Tel: 215-684-4180
Cell: 215-252-0143
<mailto:michael.leone@pha.phila.gov>




EMC Data Protection Q & A <EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU> wrote
on 06/06/2017 10:28:19 AM:

> From: FAIDHERBE Thierry <thierry.faidherbe@FOREM.BE>
> To: EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU
> Date: 06/06/2017 10:36 AM
> Subject: Re: [EMC-DataProtection-L] Jobquery question
> Sent by: EMC Data Protection Q & A
<EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU>
>
> I did it once :
>
> Go to resdb subdir on your backup server,
> then, for each sub-folders, grep "Clone Job" to each files
> (Take care long strings are CR+LF'ed and continued on next line ...
>
> Once you got the file that contains the nsr clone job,
> look at its contents and note the resource id
>
> then using nsradmin to modify/disable it using for sample
>
> print resource identifier:
135.5.76.10.234.205.218.71.192.168.20.6(4050)
> delete resource identifier:
135.5.76.10.234.205.218.71.192.168.20.6(4050)
>
>
> HTH
>
> TH
>
>
> Kind regards - Bien cordialement - Vriendelijke groeten,
>
> Thierry FAIDHERBE
> Backup/Storage & System Management
>
> LE FOREM
> Département des Systèmes d'Information, Direction Infrastructure
>
> Boulevard Tirou, 104 Tel: +32 (0)71/206730
> B-6000 CHARLEROI Mobile: +32 (477)/995319
> BELGIUM Mail : Thierry.faidherbe<at>forem.be
>
> "The urgent is done, the impossible is being processed ... For miracles
> Allow time".
> "Nowadays, people know the price of everything and the value of
nothing",
> Oscar Wilde
> "The future belongs to those who believe in the beauty of their dreams",
> Eleanor Roosevelt
> "Courage is not having the strength to go on;
> it is going on when you don't have the strength.", Theodore
> Roosevelt
>
> -----Message d'origine-----
> De : EMC Data Protection Q & A
> [mailto:EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU] De la part de Michael
> Leone
> Envoyé : mardi 6 juin 2017 15:52
> À : EMC-DATAPROTECTION-L@LISTSERV.TEMPLE.EDU
> Objet : Re: [EMC-DataProtection-L] Jobquery question
>
> >
> > (...) now use print and filter on your job name :
> > jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'
> >
> >
> > You can also use following to display all fields
> > jobquery> show
> > and now use print and filter on your job name :
> > jobquery> print name: 'Clone Job - Lotus Mail Server Daily FULL+'
>
> Yes, I must have just been mistyping it somehow. I do see it now,
thanks.
>
> But now that I've identified the job, how do I delete it? It's obviously
> not running, so killing it won't do any good (jobkill -j <job id>).
>
> I don't see a delete option in the help ...
>
>
> --
> This list is hosted as a public service at Temple University by Stan
Horwitz
> If you wish to sign off this list or adjust your subscription settings,
> please do so via
> https://urldefense.proofpoint.com/v2/url?
>
u=http-3A__listserv.temple.edu_archives_emc-2Ddataprotection-2Dl.html&d=DwIDAw&c=pTMmftTp0eOqX5h_B2WLq0DUIZO-1izRe_CcgPLX088&r=UpVqm-
> C-18SFSbdu7ZYLVXwXLqIzTWT_praTAHqbTB8&m=QJPKbeXaS6IPUnbeoMB9pAQbIMml-
> fvCe7qOvGkY4cQ&s=q59VbXKq3XDsD2e7WCqLA2VW_LRWDww0irAbVVqXko4&e=
> If you have any questions regarding management of this list, please send
> email to owner-emc-dataprotection-l@listserv.temple.edu
>
>
> --
> This list is hosted as a public service at Temple University by Stan
Horwitz
> If you wish to sign off this list or adjust your subscription
> settings, please do so via https://urldefense.proofpoint.com/v2/url?
>
u=http-3A__listserv.temple.edu_archives_emc-2Ddataprotection-2Dl.html&d=DwIDAw&c=pTMmftTp0eOqX5h_B2WLq0DUIZO-1izRe_CcgPLX088&r=UpVqm-
> C-18SFSbdu7ZYLVXwXLqIzTWT_praTAHqbTB8&m=QJPKbeXaS6IPUnbeoMB9pAQbIMml-
> fvCe7qOvGkY4cQ&s=q59VbXKq3XDsD2e7WCqLA2VW_LRWDww0irAbVVqXko4&e=
> If you have any questions regarding management of this list, please
> send email to owner-emc-dataprotection-l@listserv.temple.edu


--
This list is hosted as a public service at Temple University by Stan Horwitz
If you wish to sign off this list or adjust your subscription settings, please do so via http://listserv.temple.edu/archives/emc-dataprotection-l.html
If you have any questions regarding management of this list, please send email to owner-emc-dataprotection-l@listserv.temple.edu
This message was imported via the External PhorumMail Module
Sorry, only registered users may post in this forum.

Click here to login