Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  error when commiting config

    Posted 05-10-2011 13:05

    hello ,  

     

    i am toying with an ex4200 in my lab and upon commiting my config i am receiving the following error: 

     

     

    {master:0}[edit]
    root# commit check
    [edit]
      'system'
        Missing mandatory statement: 'root-authentication'
    error: configuration check-out failed: (missing statements)

     


    {master:0}[edit]root# commit check[edit]  'system'    Missing mandatory statement: 'root-authentication'error: configuration check-out failed: (missing statements)

     

    can anyone shed some light on this?



  • 2.  RE: error when commiting config
    Best Answer

    Posted 05-10-2011 13:57

    Well that error indicates that you do not have the root user password configured.

     

    user@host#set system root-authentication plain-text-password

     

    Sounds like you are working on a box with the factory-default configuration loaded. In that case you must always set the root user password prior to being able to issue a commit command.



  • 3.  RE: error when commiting config

    Posted 05-11-2011 12:14

    right on that was it. i had to run the ezsetup script deal to get the root password set properly. 

     

    thanks. 

     

     



  • 4.  RE: error when commiting config

    Posted 05-11-2011 15:35

    Glad to help - if you are new to JUNOS (my guess 🙂

    Take a look at Day One guides and the Fast Track program to get access to some awesome learning materials.....



  • 5.  RE: error when commiting config

    Posted 03-11-2015 14:42

    Today when I am trying to delete one "system accounting" configuration in one device I am getting same error message as above

    root@USRDLABEX42-VC2-122# commit check
    [edit system]
      'accounting'
        Missing mandatory statement: 'events'
    error: configuration check-out failed: (missing statements)

    {master:2}[edit]

     

    Even after setting root password.

     

    any sugessions what could be the reason???

     

    Your immediate response will be appresiative



  • 6.  RE: error when commiting config

     
    Posted 01-10-2016 12:18

    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



  • 7.  RE: error when commiting config

    Posted 01-10-2016 03:54

    Thanks alot that's really helped alot 🙂