Chapter 9. IBM Tivoli NetView integration 325
? Now, having the NetView part up and running, you have to provide IBM Tivoli
Business Systems Manager with the correct information to actually launch it.
? On your database server, go to the TivoliManagerin directory. Locate the
file nvlaunchconfig.sh, copy it, and give the copy a new name, for example
newmenu.sh.
? Open the file with an editor. Assign
– the SQL server name
– the SQL user account
– the SQL password
to the top three variables in the script. (This likely has already been done,
because we are using a copy of the nvlaunchconfig.sh script).
? From the add_entries and delete_entries sections in the script, remove all the
diagnostics entries and the object properties entries. We will need just one
block of definitions.
? In each AddAppLauncherEntry.sh line, replace the -n flag with a new name
such as NVsum. We suggest keeping the last letter unchanged: NVConsR
then becomes NVsumR, and so on.
? In each AddAppLauncherEntry.sh line, replace the value of the scripurl
parameter by the path to our modified NetView Server script. In our example,
replace submapexplorer.js by TBSMsummary.js
? In each AddAppLauncherMenuItem.sh line, replace the -n and -r flag values
with the name assigned to the AddAppLauncherEntry.sh -n flag, which in our
case is NVsum. As before, we suggest you keep the last letter as is.
Then replace the description supplied with the -l flag by a new menu name,
such as “NetView Overview” in our example.
For reference, Example 9-23 shows an example line for each command type
being executed inside newmenu.sh.
Example 9-23 The modified command parameters
AddAppLauncherEntry.sh -S $SQLSERVER -U$SQLUSER -P$SQLPWD -nNVsumR
-l"Windows NT" -cSockets -m8899 -x8899 -w5000 -r18
-g"cmd /c %NVWC_HOME%in
vlaunch.bat port 8899 > nvlaunch.log 2>&1"
-a"serverinfo=%nvserver%
scripturl=/netview/scripts/TBSMsummary.js
sctargetnode=%name% tbsm=true"
AddAppLauncherMenuItem.sh -S $SQLSERVER -U$SQLUSER -P$SQLPWD -nNVsumR
-cROUT -l"NetView Overview"
-r"NVsumR,name=%IPHostName%,nvserver=%this.LookupNetViewURLs%"
DeleteAppLauncherMenuItem.sh -S $SQLSERVER -U$SQLUSER -P$SQLPWD -nNVsumR -r