Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Default Configuration Views Examples

Default configuration Views are added during server start up or data migration during an upgrade. These default configuration Views are added only on the initial server start up and data migration during an upgrade. Default configuration Views cannot be added every time the server starts. The user can perform all the usual operations with the default configuration Views including delete operation.

Adding default configuration Views during migration has the following conditions:

  • 13.1 to 13.3:

    • Default configuration Views are added if an entity with the same name does not exist in 13.1.

    • Default configuration Views are over written if an entity with the same name exists in 13.1.

  • 13.3 to later releases:

    • Default configuration Views are not added or overwritten, if the default configuration Views are modified or deleted by the user in 13.3.

Default view

This view produces the configuration of the selected node in CLI format- curly brace format.

Context: //

This configuration view is targeted for all the entities.

Sample CLI view

## Device: EX4200

Example XML view

This view produces the configuration of the selected node in XML format.

Context: ///device/configuration/protocols

This configuration view is targeted for protocols.

Sample CLI view

## Device: EX4200

Example Form view

This form view displays certain important information about device.

Context:/device

Sample Form view Details:

Table 1: Parameters

Display name

Script dependent

Parameter

Configured value xpath

Order

Device Name

false

Device_Name

/device/system-information/host-name/text()

1

OS Version

false

OS_Version

/device/system-information/os-version/text()

2

Serial Number

false

Serial_Number

/device/system-information/serial-number/text()

3

Chassis

false

chassis_description

/device/chassis-inventory/chassis/description/text()

4

Location

false

snmp_location

/device/configuration/snmp/location/text()

5

Contact

false

snmp_contact

/device/configuration/snmp/contact/text()

6

Sample Form View:

Device Name: ACX-34

OS Version: 12.3-20130818_att_12q3_x51.0

Serial Number: ABCDE12345

Chassis: ACX1100

Location: location1

Contact: John Doe

Example Grid view

This view displays information about the selected node in Grid format.

Context:/device

Sample Grid View Details

Table 2: Parameters

Parameter

Index parameter

Display name

Script dependent

Customized attribute

Editable

Order

Device_Name

true

Device Name

false

false

false

1

Physical_Interface_Name

true

Physical Interface Name

false

false

false

2

IP_Address

false

IP Address

false

false

false

3

MAC_Address

false

MAC Address

false

false

false

4

Operational_Status

false

OperationalStatus

false

false

false

5

Admin_Status

false

Admin Status

false

false

false

6

Speed

false

Speed

false

false

false

7

Table 3 displays the parameters, configured value Xpaths and the order.

Table 3: Parameters and Configured Value XPath

Parameter

Configured value xpath

Order

Device_Name

/device/system-information/host-name/text()

1

Physical_Interface_Name

/device[name='$Device_Name']/interface-information/physical-interface
[starts-with(name,'xe')or starts-with(name,'ge-')or starts-with(name,'fe')]/name/ text()

2

IP_Address

/device[name='$Device_Name']/configuration/interfaces/interface
[name='$Physical_Interface_Name']/unit[name='0']
/family/inet/address/name/text()

3

MAC_Address

device[name='$Device_Name']/interface-information/physical-interface
[name='$Physical_Interface_Name']/hardware-physical-address

4

Operational_Status

/device[name='$Device_Name']/interface-information/physical-interface
[name='$Physical_Interface_Name']/oper-status/text()

5

Admin_Status

/device[name='$Device_Name']/interface-information/physical-interface
[name='$Physical_Interface_Name']/admin-status/text()

6

Speed

/device[name='$Device_Name']/interface-information/physical-interface
[name='$Physical_Interface_Name']/speed/text()

7

Sample Grid View

Device Name

Physical interface

IP address

MAC address

Operational status

Admin status

Speed

ACX-34

ge-0/0/0

NA

00:00:5E:00:53:00

down

Up

1000mbps

ACX-34

ge-0/0/1

NA

00:00:5E:00:53:00

down

Up

1000mbps

ACX-34

ge-0/0/2

NA

00:00:5E:00:53:00

down

Up

1000mbps

ACX-34

ge-0/0/3

NA

00:00:5E:00:53:00

down

Up

1000mbps