File watcher error question

Everything about Control-M Server installation or setup.
Post Reply
User avatar
niras
Nouveau
Nouveau
Posts: 32
Joined: 26 Oct 2009 12:00

File watcher error question

Post by niras » 05 Nov 2009 4:51

I have a filewatcher job on my CM server that watches for a file on a my target machine(file watch agent is running on this machine as a service).When I run the job,it fails and sysout log says.

"Parameters -Agent <agent> are mandatory"

I am not sure what agent paramters,it is expecting!!and where is those settings located ?

Thanks in Advance..

User avatar
rchkevin
Nouveau
Nouveau
Posts: 67
Joined: 29 Oct 2007 12:00
Location: Chennai

Post by rchkevin » 05 Nov 2009 9:31

Please provide the FW COmmand you have provided..

ideally if it is Windows try the below

ctmfw -agent %%NODEID \\fileserver01\net\apps\arch*.dat 0 60 3 10 0

User avatar
niras
Nouveau
Nouveau
Posts: 32
Joined: 26 Oct 2009 12:00

Post by niras » 06 Nov 2009 1:01

sorry If I an being dumb here...

I have GUI File Watcher Job defined in the desktop.In 'Filewatch' tab,I provided required params and in 'Execution' tab I put my agent NodeID name.

I hope "ctmfw -agent %%NODEID \\fileserver01\net\apps\arch*.dat 0 60 3 10 0" is same thing that I set up in Desktop GUI explained above.

Thanks for you reply..

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 06 Nov 2009 8:55

niras,
there are many way to run a file watch.
- in windows you can use a service (but no desktop definition)
- with the ctmfw utility (see the documentation) more powerfull and flexible
- In the CM for Advanced File Transfer there is also this option with some parameters.

Your definition in desktop, can be one of these.
I recomend to you to use the ctmfw utility, so in the definition using a command or a job to define the FW.
There you must use the -agent option because your destination agent is in cluster or there is more then one angent on the same machine.
So provide the -agent "name" were "name" is the name of the agent (different fromn default).

Post Reply