1847890 Members
1470 Online
104021 Solutions
New Discussion

Pending jobs

 
SOLVED
Go to solution
Dewa Negara_4
Regular Advisor

Pending jobs

Hi All,

I have a problem with my job scheduling. I have a script to schedule the job using SD commands. The scheduling was running well, but the status of the job always "Pending" instead of "Complete". Pls refer to the output below.

Anyone can help how to troubleshoot why the job always says "Pending"?

Please help. High score will be given.

Thanks for your help in advance.

Best Regards,
Dewa

[root@bdhm:/var/opt/itsv]
# swjob -v bdhm-1567
ERROR: Cannot read from the file
"/var/adm/sw/queue/complete/5874.1/job": No such file or
directory (2).
#
# Controller: bdhm
#
# The available attributes are:
#

jobid bdhm-1567
operation Install
state Pending
progress
results
title bdhp4119_secu_refresh
schedule Thu Sep 22 22:35:00 2005
lastupdate Thu Sep 22 22:26:26 2005
Santos
5 REPLIES 5
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: Pending jobs

Hi,

If the job with SD command, you can check the logs at /var/adm/sw and the status of the software fileset with :

# swlist -l fileset -a state

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Dewa Negara_4
Regular Advisor

Re: Pending jobs

Thanks a lot.

It's still a bit strange for me. Logically after scheduling the job, the status will be "Scheduled", then it should change to "Active", and then change to "Complete" upon completion.

But in my case, the status was changed from "Scheduled" to "Pending" without doing anything. Pls refer to the output below.

Appreciate if anyone could help.

Thanks and Best Regards,
Dewa

[root@bdhm:/var/adm/sw]
# swjob -a jobid -a state -a title | grep secu_refresh |grep -e 1569 -e 1570 -e 1571
bdhm-1569 Pending bdhp4116_secu_refresh
bdhm-1570 Pending bdhp4119_secu_refresh

[root@bdhm:/var/adm/sw]
# swjob -a log bdhm-1570 @ bdhp4119:/
======= 09/22/05 23:42:25 EDT BEGIN install AGENT SESSION (pid=19348)
(jobid=bdhm-1570)

* Agent session started for user "root@bdhm.na.pg.com".
(pid=19348)

======= 09/22/05 23:42:33 EDT END install AGENT SESSION (Cancelled)
(pid=19348) (jobid=bdhm-1570)

Santos
Arunvijai_4
Honored Contributor

Re: Pending jobs

Is your job waiting for any inputs ? Just a thought.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Dewa Negara_4
Regular Advisor

Re: Pending jobs

Hi,

Thanks.

I do not think so since when I did a test on another depot server, it was working well.

Best Regards,
Dewa

Santos
Arunvijai_4
Honored Contributor

Re: Pending jobs

Take a look at this doc, http://docs.hp.com/en/B2355-90754/ch07s03.html

It may help you to trobuleshoot.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"