Making the Java Processes more Intuitive
Novell Cool Solutions: Feature
By Martin Buckley
Digg This -
Posted: 19 Mar 2001
Current Version: ZENworks for Desktops 3
Are you one of those people who are used to jumping around the NetWare server console? You know all the keyboard tricks -- so with a CTRL-ESC you have the list of screens from loaded modules and you can drop straight into your Monitor screen.
Things were probably fine until the last twelve months -- and now we at Novell have started running more and more Java applications on the server. Trouble is they've got no window title you can easily browse, and with the likes of ZENworks for Desktops 3.0 running you can have several similar looking Java screens:
Sound familiar? Well here's a cool tip for you.
You need to edit just three files on your NetWare servers -- all ZENworks for Desktops 3.0 NCFs -- and they are all in SYS:SYSTEM. You may have any number of these files depending on the role the server plays in your ZENworks for Desktops infrastructure.
As always make sure you take a backup of these files before you start changing things.
- zenwsimp.ncf -- controls the loading of the ZENworks Auto Workstation Import
- zenwsrem.ncf -- for the Auto Workstation Removal
- startinv.ncf -- starts the ZENworks workstation inventory services
You may remember a recent article in which my good colleague, Reverend Ted, described how to change the log level for the Auto Workstation service. This may be a good chance to pop back and review that piece. We'll be editing the very same files in this article.
Edit the ncf using your favourite text editor -- that'll be EDIT.NLM then. You need to add a couple of pieces to the start of the java:
java -ns -sn"ZENworks Workstation Import" -classpath $zenAWSClassPath;...
This will start the Java applet with a new screen (-ns) and a screen title (-sn). The screen title is yours to decide -- there is a limit of forty characters.
gain edit the ncf and insert just the following piece:
java -sn"ZFD 3.0 Inventory" -DConfigFile=?
Finally we need to shut down the ZENworks for Desktops Java applets and restart them. The best way to do this is at the NetWare server console type java --show, this will list all Java pieces running on the server.
We need to stop the Workstation import service, the Workstation removal service and the Inventory service. The application ID list shown will be different on your server -- you need to make a note of the numbers. Also you may see more or less Java applications depending on the role of your server and whether any other Novell or third party Java applications are running.
Notice finally that we have no easy indication as to which Java application is which.
In my example I want to kill application IDs 163, 271 and 394. I do this from the command line of the server: java --kill
Finally the Java applications need to be restarted; this is the easy part -- we have the NCF files we just modified.
So, typing at the console: zenwsimp.ncf, zenwsrem.ncf and finally startinv.ncf will load the required pieces.
You should notice that there are now three, individually named and easily identified screens. Try the CTRL-ESC to switch and you see them listed:
One final bonus -- if you switch between the screens using ALT-ESC, you will see the screen name -- yes the new descriptive one -- at the top left of the screen, with the Java ID in the right corner.
One final additional bonus -- if you use RCONJ or RCONSOLE to connect to your server you will also see the descriptive names.
That's all from me -- in the next installment I've got information on the various ports used by ZENworks for Desktops -- get hacking with that firewall.
About the Author
By night Martin Buckley is the Evil ZENworks Scientist -- cooking up ZENworks solutions and hatching dastardly integrations. By day he is the ZENworks for Desktops Product Manager. Based in Provo, UT and Nottingham, England - he's always on the road. Be warned.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com