HOW TO GENERATE Q FILES ON MERCE SLAVE ?
The tar gz created by Vaibhav is qfilegen.tgz which contains 2 programs
- gen_qfile.pl
- 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 :
- qfilegen program is used to generate q files.
- this is used mostly during mtracks -> merce slave conversions.
- the users need to be created on slave as they are on the master
- hence on the master as a "merce" user and not as root :
- execute qfilegen.pl
- format : perl gen_qfile.pl "path of the dest directory"
- in the dest directory the q files would be generated.
- make a tar of the dest directory
- scp this tar to the slave wherein conversion is done and licencechk has been successfull
- the content of the tar of dest directory is to be put in /opt/merce/update/pending
- monitor /var/adm/log/mail/local3.log
- as users are being created their entries will be added to /etc/passwd
- as users are created their qfiles will go from pending to /opt/merce/update/done
- in case of errors they will go from pending to /opt/merce/update/bad
- if they go into bad this means that the user creation has failed.