|
The Packaging of applications built using Client Builder to NAR (NMS ARchive) is done using the Package Wizard. After NAR is created, NAR is imported into Eclipse Plugin (using Client Application Import Wizard). Before packaging the chassis application to NAR, you must compile the project. Follow the steps given below to compile the project:
Compiling the Project
Ensure that the "NmsClientClasses.jar" is in the CLASSPATH for proper compilation. You can verify this in the "Required Jars" combo box present in the Classpath Settings tab of Project Properties dialog (invoked using menu command Properties --> Project Properties)
Regenerate the Project using the menu command Project-->Regenerate Project.
Compile the Project using the menu command Project-->Compile Project. You will get the message "Compilation succeeded for eBonChassis" in status bar.
Packaging the Project Using Package Wizard
Invoke the Package Wizard for creating the Device Specific NAR using the menu command Tools-->Package for Web NMS-->Device Specific.
Select the value "com.adventnet.ebon.chassis.eBonChassis" from the Classes list and click "Next" to proceed to next screen.
Choose the required
destination directory where the NAR has to be created using the browse
button . Click Next
to proceed to next screen.
Provide the corresponding device type that of the device host such as "DslamDevice" in the "Device Type" field. Click Next to proceed to next screen.
Ensure the required resources (images, XML files, etc.) are listed in the "DESTINATION DIRECTORY".
Select the ebonatmport.png, eboncpuport.png, and ebonstatus.png from <Client Builder Home>/images and add them to the List with destination directory as "./images" (default value).
Click "Next" to proceed to final screen of the Package Wizard.
Select the "ManagedObjectName" value from the Parameter list and provide the value "${name}" in the "Value" text field. Click Modify to change the values in the list. This is to provide the Manage Object Name that dynamically changes depending on the Map node (the application is invoked from the Map node) in Web NMS Client.
Click Finish to close the Package Wizard to get the confirmation dialog with the message "ebonChassis.nar" created successfully at <specified location>.
Integrating the Chassis NAR into Eclipse Plugin
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 eBonChassis.nar from <Web NMS Home>/StudioTools/ClientBuilder/projects/EMS_Configuration 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. Provide Menu Name as 'snmpmenu', Menu Item Name as 'View Chassis', and Image for the Map as 'switch.png'.
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 DslamMenu (this is the new DslamMenu.xml menu file that we will create as part of this application. This menu should be placed in the <Ebon EMS Project>/resources/mapdata/menus directory) and Menu Item Name as ChassisView
Similarly configure the List Menu Informations.
Click Finish button.
The <Nar File and Xml File (which contains the details that were entered in the wizard) > will be found under <Your Project>/ resources/NetMonitor/build in the Project Explorer window
The Image Files will be copied to the <your project>/ resources/images directory in the Project Explorer window.
|