5.3.4 Developer Tips

 

General Tips

Trouble Shooting Tips

General Tips

Note: The terms 'Modules' and 'Processes' mean the same and are used interchangeably.

 

Edit startnms.bat/sh script file located in the <Web NMS Home>/bin directory and add a system property -Dwebcontainer.port="% WEBCONTAINER_PORT%" for NmsMainBE JVM instance and then start the Web NMS server.

 

Example:

 

%JAVA_HOME%\bin\java -cp %CLASS_PATH% -Dcatalina.home=%TOMCAT_HOME% -Dmysql.home=%MYSQL_HOME% -Dwebserver.port=%WEBSERVER_PORT% -Xmx100m -Dresource_check="%WEBSERVER_PORT%,%WEBCONTAINER_PORT%,%TOMCAT_SHUTDOWNPORT%" -Dwebcontainer.port="% WEBCONTAINER_PORT%" -Dwebserver.rootdir=%WEBSERVER_HOME% -Djava.rmi.server.codebase=%CODEBASE_LIST% com.adventnet.nms.startnms.NmsMainBE NMS_BE_PORT 2000 ROOT_DIR %NMS_HOME% NATIVE_PING true

 

[Note: All in a single line]

When there are more than one NIC card, the IP address that the Web NMS should pick when starting the client can be provided with the "-Dnms.server.host" parameter.  An example startnms.sh/bat entry is as follows:
 

%JAVA_HOME%\bin\java -cp %CLASS_PATH% -Dcatalina.home=%TOMCAT_HOME%
-Dmysql.home=%MYSQL_HOME% -Dwebserver.port=%WEBSERVER_PORT% -Xmx100m
-Dresource_check="%WEBSERVER_PORT%,%WEBCONTAINER_PORT%,%TOMCAT_SHUTDOWNPORT%"
-Dwebserver.rootdir=%WEBSERVER_HOME% -Djava.rmi.server.codebase=%CODEBASE_LIST%

-Dnms.server.host=192.168.9.14
com.adventnet.nms.startnms.NmsMainBE NMS_BE_PORT 2000 ROOT_DIR %NMS_HOME% NATIVE_PING true 

When writing a device-specific map filter, setting a property  HTML-TABLE, creates a separate group. The property setting is shown below:

p.put("HTML-TABLE","Infrastructure View");

 

The device is grouped under Infrastructure View in the tree.
 

The creation of tables can be disabled by setting the system property disable-schema-creation for NmsMainBE in startnms.bat as true.

 

-Ddisable-schema-creation=true

 


 

Troubleshooting Tips




 



Copyright © 2011, ZOHO Corp. All Rights Reserved.