home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / lnsnmp.zip / README < prev   
Text File  |  1994-03-01  |  2KB  |  64 lines

  1.  
  2. To:   OS/2 Developer Magazine Readers
  3.  
  4. From: Stacey Taylor
  5.       CompuServe: 73760,3235
  6.       Fax:        (818) 878-7313
  7.  
  8. Date: March 1, 1994
  9.  
  10. Re:   Notes on LNVSNMP code.
  11.       LAN NetView Using SNMP Article, March '94
  12.  
  13.  
  14.   This file contains notes on compiling, running and debugging the 
  15. sample code.  This ZIP file should contain the following:
  16.  
  17.    o README
  18.    o LNVSNMP.CPP
  19.    o LNVDATA.CPP
  20.    o LNVSNMP.MAK
  21.  
  22.   The article intentionally showed LNVSNMP.CPP with 2 errors.  This code
  23. does not contain these errors.
  24.  
  25.  
  26.   To create the executable, LNVSNMP.EXE, compile and link with this command:
  27.  
  28.          C:> NMAKE LNVSNMP.MAK
  29.  
  30.   The development environment assumes:
  31.    o C/Set++, Version 2.00
  32.    o LAN NetView, Manage with the Development Toolkit selected during install
  33.      (this is where xmp.h, xom.h, xmp_snmp.h, and xmp.lib originate and are
  34.       found in the \LNV\INCLUDE and \LNV\LIB subdirectories).
  35.  
  36.   The run-time environment assumes:
  37.    o TCP/IP successfully started (i.e. TCPSTART.CMD).
  38.    o LAN NetView successfully started (i.e. SVSTART.EXE).  You do not need
  39.      to start View; LNVSNMP does not require View.
  40.    o Run the sample program, specifying the remote SNMP agent's TCP/IP
  41.      address as the only parameter:
  42.  
  43.         C:> LNVSNMP 198.202.254.18
  44.  
  45.  
  46.   The most common error is the wrong remote TCP/IP address or the remote SNMP
  47. agent is not properly running.  Here is a suggestion for determining if the
  48. remote SNMP agent is the problem:
  49.    1. Terminate LAN NetView (i.e SVSTOP.EXE).  The TCP/IP SNMP requestor
  50.       cannot run if LAN NetView is running.
  51.    2. Start the IBM TCP/IP SNMP requestor (you may have to setup the password
  52.       and hostname - see the IBM instructions):
  53.         A.     C:> START SNMPREQD
  54.         B.     C:> START SNMPD
  55.    3. Issue an SNMP GROUP GET request:
  56.         C:> SNMPGRP 198.202.254.18 public SYS
  57.    4. The SNMPGRP will display several values retrieved from the remote
  58.       SNMP agent if it was successful; an error message otherwise.  This
  59.       result will determine if the remote SNMP agent or LAN NetView is
  60.       incorrectly installed.
  61.  
  62.  
  63. If you have any questions, E-Mail or Fax me.
  64.