Forum Discussion

mokkan's avatar
mokkan
Level 6
11 years ago

hacf -cftocmd config

Hello,

 

I would like to create VCS commands from main.cf file. I would like to do the following command to dump the main.cf to main.cmd in temp directory.

 

hacf -cftocmd /etc/VRTSvcs/conf/config -dest /tmp

 

Would it affect any of the configuraiton? Would it harm any of the resouce which are running now? I want to make sure before I run it.

  • No this will not effect running VCS - actually, even if you write main.cmd in /etc/VRTSvcs/conf/config, it still won't effect running VCS.  VCS does not use main.cmd and actually it only uses main.cf when VCS starts up as config is held in memory

    Mike

  • The Windows product was updated a few years ago so that a simple hacf -verify command would automatically generate the main.cmd file in the conf/config folder.  I'm not sure if the other platforms were also updated to do the same or not.  But if they were then there might already be a main.cmd file in your config folder.

     

    Thank you,

    Wally

3 Replies

  • No this will not effect running VCS - actually, even if you write main.cmd in /etc/VRTSvcs/conf/config, it still won't effect running VCS.  VCS does not use main.cmd and actually it only uses main.cf when VCS starts up as config is held in memory

    Mike

  • The Windows product was updated a few years ago so that a simple hacf -verify command would automatically generate the main.cmd file in the conf/config folder.  I'm not sure if the other platforms were also updated to do the same or not.  But if they were then there might already be a main.cmd file in your config folder.

     

    Thank you,

    Wally

  • hacf -verify does indeed generate a main.cmd in the directory of the main.cf you are verifying for UNIX and I think it was doing this in VCS 3.5 over 10 years ago.  I always use the "-verify" flag to generate a main.cmd to save remembering another flag and this has no impact on VCS whether you run it on actual main.cf in conf/config or a copy of main.cf (and types.cf files) in a temp directory.

    Mike