[tkined] tkined and Bones: install. experience and a question

Michael Zakharov (mike@rssi.ru)
Fri, 19 Sep 1997 11:31:17 +0400

Hello,
I spent many hours in scotty/msql installation and now I'd like to share
my experience, since I could not find "receipt" anywhere - just hints
(sure, very useful!)
So, may be this message can be used as "receipt version 0".
I use Solaris 2.5.1, gcc 7.2.2.1, Tcl/Tk 8.0, scotty 2.1.6, mSQL
1.0.16, msqltcl 1.99

1. Install Tcl/Tk as it should be done.
2. Fix the most annoying bug in Tk library (in menu.tcl find tk_popup
function and patch tk_SetMenuFocus function call in accordance with Tcl
syntax - just remove parentheses). It will be very useful later, when
you start tkined.
3. Install scotty (DO NOT USE --enable-msql!)
4. Begin installation of mSQL.
a. make target
b. setup
c. After setup has completed successfully, edit site.mm file and
change "CC= gcc" into
"CC= gcc -fPIC" (so, enable position independed code)
d. make
e. make install
5. Install msqltcl (./configure --enable-gcc --enable-load)
6. Start tclsh
7. pkg_mkIndex "your.msqltcl.install.dir" *
8. exit
9. Add "your.msqltcl.install.dir" to TLCLIBPATH environment variable or
to autoload path as explained in scotty distribution.
At this point you have (hopefully!) scotty/tkined, msql, and dynamically
linked msqltcl. It is possible to start mSQL now. But we should continue
patching further.
10. In scotty bin/ directory edit tkined1.4.6 file and add "package
require msqltcl 1.99" to the end of "package require" statements. I'm
not quite sure if it is proper place - see below.
11. In scotty lib/tkined1.4.6/apps directory edit bones.tcl
a. add "package require msqltcl 1.99" (again, I use this statement in
both tkined script and here - may be, I'm wrong in one place)
b. remove (comment out) if statement just below "LoadDefaults bones"
(i.e. those "if" which checks "if {[info command msqlconnect] == ""}"
12. In the same directory edit manager.tcl
Find "Set up the menu" and then (in set cmds section) comment out the
same "if" statement as above (leave "lappend cmds "Bones"" command
itself)
At this point one can start tkined, choose "bones" from tools menu and
connect to mSQL server. So far, so good!

Hope, this helps somebody.

Now my question: what should I do to automatically store statistics
collected by SNMP-Monitor script (say, interface and processor load)
into mSQL database??
I know how to make the tables (I see, but did not run, mib2sql script),
but how to use them?

Best wishes,
Michael Zakharov.

Dr. Michael Yu. Zakharov
Space Research Institute
84/32 Profsouyznaya
117810 Moscow, Russia
tel: +7(095)333-3467
fax: +7(095)913-3040
e-mail: mike@rssi.ru

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.