Forum: CFEngine Help Subject: Re: Reporting Author: tjavo87 Link to topic: https://cfengine.com/forum/read.php?3,24824,24826#msg-24826
toddnni Wrote: ------------------------------------------------------- > Hi, > > your test prints always the reports regardless > whether start_smb is set or not. So first as a > first step use > > reports: > start_smb:: > "$(sys.date) smb service restarted" > report_to_file => > "/var/cfengine/reports/$(sys.host)/smb"; > > But you can add classes => to command promises > also and configure classes bodys to understand > return values. Hi, Thanx for the reply. Did you have an example for me to work with classess? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine