|
The Configuration File Checker Tool can be used in the command line mode. The results can be viewed on the screen or redirected to a file.
Syntax
javacom.adventnet.nms.tools.configcheck.ParseConfigFiles <-f filename / directory> <-o filename> <-all
<Web NMS Home >directory
-f option takes either a file (configuration file exampleprovider.xml)or a directory that contains configuration files
-o takes filename as value (optional). This is optional. If this option is not given the results are shown in the console.
-all does not take any argument, but relies on the value given for -root option
-root takes < Web NMS Home> directory as argument. If this option or its value is ignored it assumes the current directory as < Web NMS Home> directory.
Examples
java com.adventnet.nms.tools.configcheck.ParseConfigFiles
-f <
Web NMS Home>/conf/provider.xml
The above command will check the provider.xml
configuration file and show the results of parsing in the console.
java com.adventnet.nms.tools.configcheck.ParseConfigFiles
-f <
Web NMS Home>/conf/provider.xml
-o output.txt.
The above command will check the provider.xml
configuration file and save the results of parsing in output.txt
file. This file is created in the current directory if the path is not
specified.
java.com.adventnet.nms.tools.configcheck.ParseConfigFiles
-f
< Web NMS Home>/conf.
The above command will check all the configuration files located in
the conf directory under < Web NMS
Home>. The results of parsing all the files will be displayed
on the screen. Some files for eg. relationalclasses.conf
look for the< Web NMS Home>
directory. So the < Web NMS Home>
directory is a must for relationalclasses.conf
and DatabaseAliases.conf. It can
be given using the -root or by running this tool from the< Web
NMS Home> directory.
java
com.adventnet.nms.tools.configcheck.ParseConfigFiles -f
< Web NMS Home>/conf -o ../xxx/output.txt
The above command will check all the configuration files under conf
and place the results of parsing in the output file given in the path.
If output.txt exists already in
the current directory, the tool will confirm whether to overwrite / skip.
java.com.adventnet.nms.tools.configcheck.ParseConfigFiles
-root < Web NMS Home> -all
The above command will check all configuration files under the < Web NMS Home>/conf directory,
the <Web NMS Home >/listmenus
directory,the < Web NMS Home>/
mapdata directory,the < Web NMS Home>/users directory, and the < Web NMS Home>/html/defaultsToNewUsers
directory. This option relies on -root option for <
Web NMS Home> directory value. If value for -root option
is not given then the current directory is taken as the root directory.
Handling External DTD references in Command Line
Run the script
java -DproxySet=true -DproxyHost=<Host Name> -DproxyPort=<Port Number>
com.adventnet.nms.tools.configcheck.ParseConfigFiles <options>
|