generation of qfiles on slave


HOW TO GENERATE Q FILES ON MERCE SLAVE ?

The tar gz created by Vaibhav is qfilegen.tgz which contains 2 programs

  1. gen_qfile.pl
  2. slave_qfiles.pl

The code of gen_file.pl is used to generate the qfile on slaves which
is attached to this mail. The following are the steps to be followed :

  1. qfilegen program is used to generate q files.
  2. this is used mostly during mtracks -> merce slave conversions.
  3. the users need to be created on slave as they are on the master
  4. hence on the master as a "merce" user and not as root :
    1. execute qfilegen.pl
      • format : perl gen_qfile.pl "path of the dest directory"
  5. in the dest directory the q files would be generated.
  6. make a tar of the dest directory
  7. scp this tar to the slave wherein conversion is done and licencechk has been successfull
  8. the content of the tar of dest directory is to be put in /opt/merce/update/pending
  9. monitor /var/adm/log/mail/local3.log
  10. as users are being created their entries will be added to /etc/passwd
  11. as users are created their qfiles will go from pending to /opt/merce/update/done
  12. in case of errors they will go from pending to /opt/merce/update/bad
  13. if they go into bad this means that the user creation has failed.


AttachmentSize
qfilegen.tgz3.43 KB