Hi,
Since you are getting this message when performing a commit check, it isn't in relation to a missing root authentication password, else it would say something to that effect e.g. "Missing mandatory statement: 'root-authentication'".
[edit system]
'accounting'
Missing mandatory statement: 'events'
error: configuration check-out failed: (missing statements)
{master:2}[edit]
What you can do is do a comparison between your edited configuration and the previous valid configuration:
# show | compare
You should then see what has changed between the current configuration and the previous one.
Examine the differences in configuration in particular the section:
system {
accounting {
events {
...
}
}
}
What you may find is that you have a destination server defined within the accounting stanza, but you do not have any events defined. You should see in the comparision of the configuration a "-" symbol beside entries that have been removed from the configuration and a "+" symbol associated with configuration entries that have been added.
The following example demonstrates an incomplete configuration, that needs to be corrected before it can commit.
# set system accounting destination tacplus
[edit]
# show | compare
[edit system]
+ accounting {
+ destination {
+ tacplus;
+ }
+ ## Warning: missing mandatory statement(s): 'events'
+ }
# set system accounting events [login change-log interactive-commands ]
<< As you can see the commit check fails as the configuration is incomplete, adding the events configuration resolves this particular issue,but still we are not complete. >>
[edit]
# show | compare
[edit system]
+ accounting {
+ events [ login change-log interactive-commands ];
+ destination {
+ tacplus;
+ }
+ }
# commit check
error: tacplus accounting configured, but no servers provided
<< tacplus is defined as a destination, but no servers configured! >>
# set system tacplus-server 10.10.1.140 port 49 secret 1234567890 secret mySharedSecret timeout 5 single-connection
# show | compare
[edit system]
+ tacplus-server {
+ 10.10.1.140 {
+ port 49;
+ secret "$9$P5F/1RSeMLCtu1EhvM7-Vbs4ZUiPfz-VqfTzCAWLx"; ## SECRET-DATA
+ timeout 5;
+ single-connection;
+ }
+ }
+ accounting {
+ events [ login change-log interactive-commands ];
+ destination {
+ tacplus;
+ }
+ }
# commit check
configuration check succeeds
[edit]
I hope that this helps.
Regards,
Andy