In this section, we will discuss how the discovered Switch along with its sub-components such as Shelf, Slot, etc. is represented.
The Switch with its sub-components will be represented as a Chassis.
The Chassis can be built as a UI in two ways:
Using Map APIs of AdventNet Web NMS
Using Chassis Wizard of AdventNet Client Builder
For details on How to build the Chassis using Chassis Wizard of AdventNet Client Builder, refer to Building the Chassis section of this tutorial documentation.
In this tutorial, the Switch is being represented as a Chassis with the help of Chassis Wizard of AdventNet Client Builder.
Creating Chassis View Using the AdventNet Client Builder
The Chassis is built as a separate project using the Chassis Wizard of the AdventNet Client Builder.
The project is compiled and packaged as a NAR.
This NAR is then imported into the EMS Project.
Now, the Chassis view of the Switch will become part of the EMS application.
Importing the Chassis NAR in the EMS Application
Select the project in the Package Explorer.
Select WebNMS > Import Client Nar menu. Client Application Import Wizard" screen pops up.
In the Client Application Import Wizard screen, Select the ChassisScreen.nar from <Web NMS Home>/StudioTools/ClientBuilder directory using the Browse button.
Click Next button to view the Users Information page.
In the " Users Information" page , select the users for whom the Nar has to be installed.
Click Next button to view the Menu Details page.
In the "Menu Details" screen configure the Map Menu details. Enter Map Menu File , Menu Item name and the name of the Map Icon File. Enter Menu Name as SwitchMenu (this is the new SwitchMenu.xml menu file that we will create as part of this application. This menu should be placed in the <EMS Project>/resources/mapdata/menus directory) and Menu Item Name as ChassisView
Click Finish button.
The NAR is imported in the EMS Application.
The Final Output
The Chassis is represented as a dynamic view, i.e., the view will be automatically updated based on the status of the components. The Chassis is built based on the corresponding Switch ManagedObject added to the Web NMS database.
This application can be invoked from the device node in the Switch -> Chassis View.