home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / woodcnt6.zip / woodcnct.doc < prev    next >
Text File  |  1998-02-18  |  19KB  |  439 lines

  1.                                 WOODCNCT
  2.  
  3.      Copyright (C) 1998 Woodall Enterprises.  All rights reserved.
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                                TABLE OF CONTENTS
  20.  
  21.                  I.  What is in the name, "Woodcnct."
  22.  
  23.                 II.  What is the purpose of "Woodcnct?"
  24.  
  25.                III.  Change the name and install.
  26.  
  27.                 IV.  Entering your personal data into "Woodcnct."
  28.  
  29.                  V.  Editing "Woodcnct.cmd" for file name change.
  30.  
  31.                 VI.  Preparing to edit the "Woodcnct" log file.
  32.  
  33.                VII.  Why edit the "Woodcnct" log file?
  34.  
  35.               VIII.  About the "Woodcnct" icon.
  36.  
  37.                 IX.  Light my fire.
  38.  
  39.                  X.  Stuff you don't want to read.
  40.  
  41.  
  42.  
  43. Copyright (C) 1998 Woodall Enterprises.  All rights reserved.
  44.  
  45.  
  46.   I.  What is in the name, "Woodcnct."
  47.  
  48.  
  49.       The immediate expansion of the name is Woodall ConNeCT.  The name
  50.       of the author being Don Woodall.
  51.  
  52.       I am no english scholar, but to my untrained ear, the pronunciation
  53.       of the words "wood" and "would" are identical.  So I am engaging in
  54.       some double talk and/or puns.  The whole purpose of InJoy is to
  55.       connect.
  56.  
  57.  
  58.  II.  What is the purpose of "Woodcnct?"
  59.  
  60.  
  61.       The purpose of "Woodcnct" is to create a log of my  connections with
  62.       my local ISP, (Internet Service Provider).  For a period of time I
  63.       was having a hard time getting a real connections.  The modems would
  64.       connect and squawk at each other, the little green window in InJoy
  65.       would pop up, then the connection would fail.
  66.  
  67.       The premise from which I worked was that I was dealing with BAD
  68.       modems at my ISP.  They had just recently upgraded from 28,800
  69.       modems to 56K modems.
  70.  
  71.       Since InJoy was reporting and recording both "Your IP address" and
  72.       "The Gateway IP address" I figured that if I could record this
  73.       information in a log for every connection, then I could throw it at
  74.       my ISP's Tech Support personnel in the future when there was a
  75.       problem.
  76.  
  77.       Also, I was thinking that "Your IP Address" would represent a specific
  78.       modem and that this log would guide the Tech Support people to the
  79.       exact bad modem in room with hundreds of modems in it.
  80.  
  81.  
  82.  
  83. III.  Change the name and install
  84.  
  85.  
  86.       It is my recommendation that you copy the REXX program to a different
  87.       name for the operational copy of the program and place it in the same
  88.       directory where InJoy is located.
  89.  
  90.       The name of my ISP is The Iserv Company, Iserv as it is better known.
  91.       My operational file names are:
  92.                                       coniserv.cmd
  93.                                       coniserv.log.
  94.  
  95.       This way, they are in alphabetical order with InJoy's file:
  96.  
  97.                                        connect.txt.
  98.  
  99.       A second reason to rename the program is, if you have more than one
  100.       ISP, you can have a log for each ISP this way, instead of just one
  101.       log with all the ISP's mixed together in it.  You could even do it
  102.       both ways.
  103.  
  104.       My recommendation on how to configure InJoy to run "Woodcnct" is
  105.       to go to the Host Setup screen,
  106.  
  107. |------------------------------ Host setup ------------------------------|
  108. |                                                                        |
  109. |                          Configuration name...                         |
  110. |           TestOne_____________________________________                 |
  111. |                                                                        |
  112. |                               User ID....                              |
  113. |                YourID______________________________                    |
  114. |                                                                        |
  115. |                               Password...                              |
  116. |                ********____________________________                    |
  117. |                                                                        |
  118. |                             ┌ Protocol ───┐                            |
  119. |                             │ (o) PPP     │                            |
  120. |                             │ ( ) SLIP    │                            |
  121. |                             └─────────────┘                            |
  122. |                                                                        |
  123. |        ┌─────────┐      ┌────────────────────┐      ┌─────────┐        |
  124. |        │   Ok    │      │ Autostart per host │      │ Cancel  │        |
  125. |        └─────────┘      └────────────────────┘      └─────────┘        |
  126. |------------------------------------------------------------------------|
  127.  
  128.  
  129.       and LMB (Left Mouse Button) click on "Autostart per host."  Again,
  130.       doing it this way will enable you to run a separate copy of the
  131.       program for each ISP and have a separate log for each ISP.
  132.  
  133.  
  134.  
  135. |------------------------ Autostarting modules ---------------------------|
  136. |                                                                         |
  137. | Path and filename      ┌─────────┐  ┌[ Autostart list ]───────────────┐ |
  138. | F:\INJOY\coniserv.cmd  │  Add->  │  │ F:\TIMESET\time868.exe           |
  139. |                        └─────────┘  │ F:\INJOY\coniserv.cmd           ■ |
  140. |                                     │ G:\MR2-ICE\mr2i.exe             ▒ |
  141. | Parameters             ┌─────────┐  │                                 ▒ |
  142. | ___________________    │Update-> │  │                                 ▒ |
  143. |                        └─────────┘  │                                 ▒ |
  144. | Working directory                   │                                 ▒ |
  145. | F:\INJOY___________    ┌─────────┐  │                                 ▒ |
  146. |                        │ Remove  │  │                                  |
  147. |                        └─────────┘  └■▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒┘ |
  148. | Start Stop                                                              |
  149. | at   at                              Other program specific options     |
  150. | [ ]-[ ] my command     ┌─────────┐   [ ] Start minimized                |
  151. | [ ]-[ ] InJoy startup  │   Ok    │   [ ] Don't start                    |
  152. | [ ]-[ ] dial (before)  └─────────┘   [ ] Start only once                |
  153. | [X]-[ ] host connect                                                    |
  154. | [ ]-[ ] discon.(before)┌─────────┐    General autostart options         |
  155. | [ ]-[X] discon.(after) │ Cancel  │   [ ] SetJoy wait (caution)          |
  156. | [ ]-[X] InJoy exit     └─────────┘   [ ] Disable ALL autostarting       |
  157. |-------------------------------------------------------------------------|
  158.  
  159.       This is the original way I have gotten "Woodcnct" to work.  It is not
  160.       the first program InJoy is automatically starting for me.  I am using
  161.       this at part of a pause, or delaying tactic.  Also, I have checked
  162.       the "Start at" "Host connect" box.
  163.  
  164.       Now, if the different InJoy configuration options can't provide you
  165.       with enough delay to get a correct log, we have one more trick up
  166.       our sleeve.  This was biggest difficulty I had in writing the
  167.       program, to get the current connections information recorded,
  168.       instead of recording the previous connections IP addresses.  That is
  169.       why you see two time stamps in the log.  The first one is what
  170.       "Woodcnct" reads form the system and the second is the time and date
  171.       stamp of InJoy's file, "connect.txt."  The two time stamps should
  172.       be very close to one another.  If they are not, you have probably
  173.       recorded the previous connections info.  See the sample file
  174.       "Woodcnct.log" for a good sample and "Prevcnct.log" for a sample of
  175.       recording the previous connections.
  176.  
  177.       Also, it is recommended that you check off the "Stop at" options as
  178.       shown above.  This is especially important if you are using the
  179.       masquerading and/or Dial On Demand (DOD) features.  Not doing so
  180.       has bitten a lot of InJoy users as a reading of the history of the
  181.       message traffic in the InJoy e-Mail list will show.
  182.  
  183.       One more configuration option you might want to consider is:
  184.       "Start Minimized."  On my system I have not check this off.  Neither
  185.       have I ever seen the "Woodcnct" program appear on the desktop.  If
  186.       you ever see it,  I recommend that you place an "X" in the "Start
  187.       Minimized" check-off option.
  188.  
  189.  
  190.  
  191.       Back to delaying "Woodcnct" to get a correct log.  Part of the
  192.       program looks as follows.
  193.  
  194. /*  Preregistering 'syssleep' */
  195. /* -------------------------- */
  196. /*  function_to_load = "syssleep" */
  197. /*  call rxfuncadd function_to_load,'rexxutil',function_to_load */
  198.  
  199. /*  Pause until InJoy has written the data to the file "Connect.txt"  */
  200. /* ------------------------------------------------------------------- */
  201. /*  call syssleep 5 */
  202.  
  203.       This is set to produce a 5 second delay.  You can change the five
  204.       to what every value you need.  You also need to uncomment some of
  205.       the lines so it looks like the following for the "syssleep" to
  206.       work.
  207.  
  208. /*  Preregistering 'syssleep' */
  209. /* -------------------------- */
  210.     function_to_load = "syssleep"
  211.     call rxfuncadd function_to_load,'rexxutil',function_to_load
  212.  
  213. /*  Pause until InJoy has written the data to the file "Connect.txt"  */
  214. /* ------------------------------------------------------------------- */
  215.     call syssleep 5
  216.  
  217.  
  218.  
  219.  IV.  Entering your personal info into "Woodcnct."
  220.  
  221.  
  222.       You can edit "Woodcnct.cmd" with almost any text editor, or word
  223.       processor, you have and which knows how to produce an ASCII file
  224.       output.
  225.  
  226. > /* The name of this file is:  woodcnct.cmd */
  227. >
  228. > /*   LITERAL Declarations  */
  229. > /* ----------------------- */
  230. >   lline = '----------------------------------------------'
  231. >   First = "Don(ald)"
  232. >   MI = "O."
  233. >   Last = "Woodall"
  234. >   space1 = '           '
  235. >   phone = "(616) 245-4450"
  236. >   ISPid = "Iserv Customer Number: "
  237. >   acctnum = "12345678"
  238. >   modemid1 = 'My modem is an External U.S. Robotics Courier'
  239. >   modemid2 = 'Voice/Data Dual Standard V.34 FAX with V.32bis'
  240. >   opsys = 'Operating system is:  OS/2 Warp Version 4, Fix Pack 5'
  241. >   dialr = "The phone dialer is:  Bjarne Jensen's InJoy, Version 1.12b"
  242. >   mailr = "The mail reader program is:  Nick Knight's MR/2 ICE, version 1.42"
  243. >
  244.       Editing the literals.  I created my set of "literals" based on the
  245.       recording I listen to when I call my ISP and sit on hold waiting
  246.       for Tech Support.  It just seems easier do enter the data once and
  247.       to ALWAYS have it.
  248.  
  249.       You are free it add, change, delete, or do whatever you need to do
  250.       to meet YOUR needs.  As you can see, a literal starts out with a
  251.       variable name.  Create your own, like I did. Then an equal sign
  252.       followed by what you want to print surrounded by apostrophes (')
  253.       or double quotes (").
  254.  
  255.       Then, later on in the program you can see where the literals are used
  256.       in write statements.  You will see the literal name, but what gets
  257.       written is what is surrounded by apostrophes or double quotes.
  258.  
  259.              /*   Writing Literals to file   */
  260.              /* ---------------------------- */
  261.                 call lineout writefile, lline
  262.                 call lineout writefile, First MI Last space1 phone
  263.                 call lineout writefile, ' '
  264.                 call lineout writefile, ISPid acctnum
  265.  
  266.       OH, yes.  The " ' ' " produces a blank line.
  267.  
  268.  
  269.  
  270.   V.  Editing "Woodcnct.cmd for file name changes.
  271.  
  272.  
  273. /* The name of this file is:  woodcnct.cmd */
  274.                               ^^^^^^^^^^^^
  275.       The first edit, which won't affect anything, except your ability
  276.       to keep file names straight is underscored above with the
  277.       carrots (^).  This is the first line of the program.
  278.  
  279.       The second thing to edit is the name of the log file the program
  280.       will produce.  Just replace "coniserv.log" below with whatever
  281.       you want it to be.
  282.  
  283. /*   File Openings   */
  284. /* ----------------- */
  285.   writefile = 'F:\INJOY\coniserv.log'
  286.   call stream writefile,'C','open write'
  287.  
  288.  
  289.  
  290.  VI.  Preparing to edit the "Woodcnct" log file.
  291.  
  292.       OK, you have "Woodcnct" all setup and operating properly.  If
  293.       you are like me, there is one more step to do.  That is to
  294.       prepare to edit the log file "Woodcnct" produces.
  295.  
  296.       Why would you want to edit the log?  This is so you can record
  297.       notes to refresh your memory.  An unusual thing that happened to
  298.       me was to get a phone company recording "to try again later, all
  299.       circuits are busy."  Now to get this recording on a long distance
  300.       call in prime time is not unusual, but, to get it on a local call
  301.       I found most unusual and very distressing.  So things like that
  302.       I would annotate in the "Woodcnct.log" file at the time they
  303.       happened.
  304.  
  305.       On the desktop, go to Warp's Program Template Icon and LMB
  306.       (Left Mouse Button) click on the "New Program" icon.  Then RMB
  307.       click on it and choose "Create another" from the popup menu.  The
  308.       name I chose was:  "Edit Log Iserv Connect."  Choose what ever you
  309.       like and find most descriptive of the program you are using and/or
  310.       what you are going to be doing, editing a connection log in the
  311.       InJoy directory.
  312.  
  313.       Once you have filled in your program name in the window at the top
  314.       of the window OS/2 presents to you, click on create.  Next you will
  315.       need to choose where you want the icon to be.  After making that
  316.       choice, OS/2 will then present you with the "Program Properties
  317.       Window" showing you the "Properties" tab.  It looks something like
  318.       the following.  The sample shows how mine is filled in.
  319.  
  320.       "Program"  tab
  321.  
  322.       "Required"
  323.         "Path and file name"
  324.            F:\QEDIT\q.exe
  325.  
  326.         "Optional"
  327.           "Parameters"
  328.              coniserv.log
  329.  
  330.           "Working directory"
  331.              F:\INJOY
  332.  
  333.       The name of the "Qedit" text editor's "EXE" file is "q.exe" and is
  334.       located at "F:\QEDIT."  The name of the file I want to edit is:
  335.       "coniserv.log,"  so this is the parameter passed to "Qedit."  The
  336.       location of the file is:  "F:\INJOY," so that is entered into the
  337.       working directory.
  338.  
  339.       The icon for the text editor is placed in my Internet folder.  The
  340.       same folder "InJoy" is located in.  This way I can easily follow
  341.       the drop down menus from the Warp Center and start up the editor
  342.       to edit the log file right after a dropped connection even with a
  343.       screen full other programs.
  344.  
  345.  
  346.  
  347. VII.  Why edit the "Woodcnct" log file?
  348.  
  349.       You will find a file by the name of "Annotate.log" included in
  350.       the archive which contains some examples of how I have edited
  351.       the log file to document the problems I have run into.
  352.  
  353.  
  354. VII.  About the "Woodcnct" Icon.
  355.  
  356.       The "Woodcnct" icon is NOT for "Woodcnct.cmd."  NO?  No, it is for
  357.       the text editor you are going to use to edit the "Woodcnct.log."
  358.       If you don't' like it, fine.  It will get you started until you can
  359.       come up with one of your own choosing.
  360.  
  361.       "Woodcnct.cmd" is an iconless program.  It doesn't need one and
  362.       doesn't want one.  On my system, it never runs in the foreground.
  363.       It very nicely stays in the background invisibly doing its thing.
  364.  
  365.  
  366. VIII. Light my fire.
  367.  
  368.       Its time for a philosophical discussion.  One of the early reviewers
  369.       of this little program commented that he thought I should only
  370.       record the "literals", or personal information in the log one time,
  371.       at the top of the log.
  372.  
  373.       Well, this bureaucrat wants that information recorded with each and
  374.       every connection recorded.
  375.  
  376.       1.  This is not meant to be a turn it on and forget it program.  Most
  377.           of the time, you won't be using it.
  378.  
  379.       2.  When you start having problems, you will enable the program.  Then
  380.           you will hammer your ISP with the logs daily or weekly.  They will
  381.           not be THAT big.
  382.  
  383.       3.  It is expected that one will be giving these logs to your ISP to
  384.           assist them in solving a problem.  While you are giving, give
  385.           them as much information as you can, the first time.  Give them
  386.           too much information and let them decide what they need and what
  387.           they don't need.  Don't make them have to come back to you and
  388.           pry out of you the information they need to do the job.
  389.  
  390.       4.  The vision I have is that the ISP will print the log out and each
  391.           connection will be a separate page.  White space is intentionally
  392.           provided so there is room for the ISP's technician to write notes
  393.           on it as he is attempting to find and repair/replace the bad modem.
  394.  
  395.       5.  While I have the information and I only have to enter it once, I
  396.           would much rather provide too much info, rather than NOT enough
  397.           to help solve a problem.  It is not a hardship to provide the
  398.           information.
  399.  
  400.  
  401.  
  402.  IX.  Stuff you don't want to read.
  403.  
  404.  
  405. Disclaimer
  406. =-=-=-=-=-
  407.  
  408. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  409. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  410. FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  411. REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  412. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  413. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  414. OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  415. WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  416. OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  417. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  418.  
  419. Freeware
  420. =-=-=-=-
  421.  
  422. Since this is the first release of my first program, one is free to use it
  423. without charge.  You are free to disassemble it, incorporate it into other
  424. programs, or whatever, or however my may devise to use it.
  425.  
  426. Woodall Enterprises retains the copyright ownership of "Woodcnct.cmd."
  427.  
  428. All "ataboys" and other forms of remuneration gratefully received.
  429.  
  430.  
  431.       Don(ald) O. Woodall
  432.       3421 Hillcroft Avenue, S. W.
  433.       Wyoming, MI      49548-2149
  434.  
  435.       If you are trying to find it on a map, look for Grand Rapids.
  436.  
  437.       dwoodall@mail.iserv.net
  438.  
  439.