Re: Where do swjob -a log output come from? (332 Views)
Reply
Occasional Contributor
Émeric
Posts: 5
Registered: ‎11-14-2013
Message 1 of 5 (394 Views)
Accepted Solution

Where do swjob -a log output come from?

[ Edited ]

Hello,

 

Also asked on hp-ux newsgroup as I can't find the answer, and just in case hp-ux experts are there ;-)

 

I was wondering where do the information displayed by swjob -a log come from? Apparently not from any log file in /var/adm/sw nor /var/spool/sw or /homeroot/.sw as if I delete these files, swjob -a log still produces output. I would like to backup the information for inspection on a remote non-hp-ux system.

 

Out of curiosity, is it possible to reset the swjob counter?

 

Thanks,

 

     Émeric

 

 

P.S. This thread has been moved from HP-UX > sysadmin to HP-UX > patches. - HP Forum Moderator

Acclaimed Contributor
Dennis Handly
Posts: 25,283
Registered: ‎03-06-2006
Message 2 of 5 (375 Views)

Re: Where do swjob -a log output come from?

[ Edited ]

>Apparently not from any log file in /var/adm/sw

>if I delete these files, swjob -a log still produces output.

 

Huh?  Mine looks like it comes from /var/adm/sw/swagent.log.

 

But it looks like you're right, (tusc is your friend) shows:

   /var/adm/sw/queue/logfiles/<jobid>/logfile

 

>is it possible to reset the swjob counter?

 

I'm not sure if it is safe to fiddle with: /var/adm/sw/queue/number

There are a bunch of directories with that <jobid>.

Occasional Contributor
Émeric
Posts: 5
Registered: ‎11-14-2013
Message 3 of 5 (332 Views)

Re: Where do swjob -a log output come from?

Thanks.

Acclaimed Contributor
Dennis Handly
Posts: 25,283
Registered: ‎03-06-2006
Message 4 of 5 (322 Views)

Re: Where do swjob -a log output come from?

>Thanks.

 

If the above answer was helpful, please also click on the Kudos star.

Occasional Contributor
Émeric
Posts: 5
Registered: ‎11-14-2013
Message 5 of 5 (305 Views)

Re: Where do swjob -a log output come from?

Done :-)

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.