home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
lnsnmp.zip
/
README
< prev
Wrap
Text File
|
1994-03-01
|
2KB
|
64 lines
To: OS/2 Developer Magazine Readers
From: Stacey Taylor
CompuServe: 73760,3235
Fax: (818) 878-7313
Date: March 1, 1994
Re: Notes on LNVSNMP code.
LAN NetView Using SNMP Article, March '94
This file contains notes on compiling, running and debugging the
sample code. This ZIP file should contain the following:
o README
o LNVSNMP.CPP
o LNVDATA.CPP
o LNVSNMP.MAK
The article intentionally showed LNVSNMP.CPP with 2 errors. This code
does not contain these errors.
To create the executable, LNVSNMP.EXE, compile and link with this command:
C:> NMAKE LNVSNMP.MAK
The development environment assumes:
o C/Set++, Version 2.00
o LAN NetView, Manage with the Development Toolkit selected during install
(this is where xmp.h, xom.h, xmp_snmp.h, and xmp.lib originate and are
found in the \LNV\INCLUDE and \LNV\LIB subdirectories).
The run-time environment assumes:
o TCP/IP successfully started (i.e. TCPSTART.CMD).
o LAN NetView successfully started (i.e. SVSTART.EXE). You do not need
to start View; LNVSNMP does not require View.
o Run the sample program, specifying the remote SNMP agent's TCP/IP
address as the only parameter:
C:> LNVSNMP 198.202.254.18
The most common error is the wrong remote TCP/IP address or the remote SNMP
agent is not properly running. Here is a suggestion for determining if the
remote SNMP agent is the problem:
1. Terminate LAN NetView (i.e SVSTOP.EXE). The TCP/IP SNMP requestor
cannot run if LAN NetView is running.
2. Start the IBM TCP/IP SNMP requestor (you may have to setup the password
and hostname - see the IBM instructions):
A. C:> START SNMPREQD
B. C:> START SNMPD
3. Issue an SNMP GROUP GET request:
C:> SNMPGRP 198.202.254.18 public SYS
4. The SNMPGRP will display several values retrieved from the remote
SNMP agent if it was successful; an error message otherwise. This
result will determine if the remote SNMP agent or LAN NetView is
incorrectly installed.
If you have any questions, E-Mail or Fax me.