command to stop logs generation in UNIX server?

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dashamukhi
Participant
Posts: 6
Joined: Thu Aug 21, 2008 1:19 am
Location: Chennai

command to stop logs generation in UNIX server?

Post by dashamukhi »

Hi,

When we run a job, logs will be generated can view in Director.
My requirement is I don't want these logs to be generted in backend in Unix server. Please give me the command in UNIX to stop logs generation in UNIX server.

Thanks in advance,
Best Regards,
Prashanth
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There is no command, either UNIX or from within DataStage, to prevent log files from being generated.
PX Jobs allow certain log entries to be suppressed, you can check out "message handlers" in the documentation to see how to do this.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why the 'requirement'? What problem are you facing, if any?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dashamukhi
Participant
Posts: 6
Joined: Thu Aug 21, 2008 1:19 am
Location: Chennai

Thanks

Post by dashamukhi »

Thanks arnd,

I will try with this. But it suppresses the logs. But i don't want any logs to be created at all. Any way thanks for the immediate response.
Best Regards,
Prashanth
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You will never prevent the logs from being created. Jobs won't run unless the log (a database table in the local Repository) can be opened for writing. And some entries just can't be suppressed. Let me ask again why you wish to do this.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dashamukhi
Participant
Posts: 6
Joined: Thu Aug 21, 2008 1:19 am
Location: Chennai

logs in Unix server

Post by dashamukhi »

Thanks Ray,

I will mark this as Resolved now.
Best Regards,
Prashanth
dashamukhi
Participant
Posts: 6
Joined: Thu Aug 21, 2008 1:19 am
Location: Chennai

logs in Unix server

Post by dashamukhi »

Dear Ray,

Can we clear the logs atleast for some limited runs to save the space on server?
Can anyone give me the UNIX command for this?

Thanks in advance
Best Regards,
Prashanth
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no UNIX command. Job logs are database tables.

Purging a job log involves not only deleting records from the table but also updating a number of control records.

Set auto-purge defaults for the project using the Administrator client, you can override these defaults for particular jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Set the Auto Purge that suits each job - X number of runs or X number of days. Do this from the Director. As noted, the Administrator can set the defaults for the Project but that only affects jobs created after the default is in place.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply