Thursday, October 28, 2010

Configuration Mode Error Messages

If you do not type an option for a statement that requires one, a message indicates the type of information expected.
In this example, you need to type an area number to complete the command:
[edit]
user@host# set protocols ospf area
                                ^
syntax error, expecting .

In this example, you need to type a value for the hello interval to complete the command:
[edit]
user@host#  set protocols ospf area 45 interface so-0/0/0     
                  hello-interval
                                             ^
syntax error, expecting 

If you have omitted a required statement at a particular hierarchy level, when you attempt to move from that hierarchy level or when you issue the show command in configuration mode, a message indicates which statement is missing. For example:
[edit protocols pim interface so-0/0/0]
user@host# top
Warning: missing mandatory statement: 'mode'
[edit]
user@host# show
protocols {
    pim {
        interface so-0/0/0 {
            priority 4;
            version 2;
            # Warning: missing mandatory statement(s): 'mode'
        }
    }
}

No comments: