How to manually edit the main.cf file
Hi,
I need to make a very minor edit to the main.cf file. I am assuming this is the way to do this:
haconf -makerw
edit main.cf on one of the nodes i.e vi /etc/VRTSvcs/conf/config/main.cf
save changes
hacf -verify /etc/VRTSvcs/conf/config
haconf -dump -makero
SmtpRecipients is an association, so unless using the -add/-update flag, modify both/all the key-value pairs in one step or the first one will be overwritten with the second/last (see hares -help -modify or hares manpage, eg: https://sort.symantec.com/public/documents/sfha/6.0.1/solaris/manualpages/html/man/cluster_server/html/man1m/hares.1m.html )
so:
# haconf -makerw
# hares -modify notifier SmtpReturnPath xyz@domain.com
# hares -modify notifier SmtpFromPath xyz@domain.com
# hares -modify notifier SmtpRecipients xyz@domain.com Warning abc@domain.com Error
# haconf -dump -makero
The notifier resource is already Enabled, so you don't need to re-enable it (check: # hares -display notifier -attribute Enabled )