Manuals
/
Compaq
/
Computer Equipment
/
Network Card
Compaq
AAR04BCTE manual
Models:
AAR04BCTE
1
12
132
132
Download
132 pages
53.41 Kb
9
10
11
12
13
14
15
16
<
>
Troubleshooting
snmprequest Command Parameters
esnmpcleanup
restoreprogname
timeout
Using the SNMP Utilities
Page 12
Image 12
Page 11
Page 13
Page 12
Image 12
Page 11
Page 13
Contents
January
Compaq TCP/IP Services for OpenVMS SNMP Programming and Reference
Software VersionCompaq TCP/IP Services for OpenVMS Version
Order Number AA-R04BC-TE
This document was prepared using DECdocument, Version 3.3-1b
2001 Compaq Computer Corporation
ZK6530 This document is available on CD-ROM
2 MIBs Provided with TCP/IP Services
3 Creating a Subagent Using the eSNMP API
Preface
1 Overview
4 Using the SNMP Utilities
5 eSNMP API Routines
6 Troubleshooting eSNMP Problems
Index
Figures
Tables
Page
Preface
Intended Audience
Document Structure
Related Documents
Table 1 TCP/IP Services Documentation
Contents
Manual
How to Order Additional Documentation
Reader’s Comments
Conventions
Table 1 Cont. TCP/IP Services Documentation
bold text
italic text
Monospace text
Page
Overview
1.1 SNMP Architecture
1.2 Request Handling
Overview 1.1 SNMP Architecture
Figure 1-1 SNMP Architecture
Overview 1.2 Request Handling
Figure 1-2 eSNMP Data Flow
1.3 TCP/IP Services Components for SNMP
Overview 1.2 Request Handling
Get GetNext GetBulk Set
Table 1-1 SNMP Component Files
Overview 1.3 TCP/IP Services Components for SNMP
1.4 Writing an eSNMP Subagent
Table 1-1 Cont. SNMP Component Files
File
1.5 The eSNMP API
Overview 1.4 Writing an eSNMP Subagent
Table 1-2 Files for Building a Subagent
1.6 The MIB Compiler
Overview 1.5 The eSNMP API
1.5.1 The SNMP Utilities
1.7.1 Using Existing SNMP Version 1 MIB Modules
1.7 SNMP Versions
Overview 1.6 The MIB Compiler
1.8 For More Information
Overview 1.7 SNMP Versions
Page
MIBs Provided with TCP/IP Services
2.1 Overview of the Host Resources MIB
2.1.1 Defining Host Resources MIB Implemented Objects
Table 2-1 Host Resources MIB Objects
MIBs Provided with TCP/IP Services
2.1 Overview of the Host Resources MIB
Table 2-1 Cont. Host Resources MIB Objects
Object Name
2.1.2 Restrictions to Host Resources MIB
hrPartitionTable hrPrinterTable hrSWInstalled hrSWInstalledTable
Table 2-1 Cont. Host Resources MIB Objects
MIBs Provided with TCP/IP Services
2.1 Overview of the Host Resources MIB
Off line Remote UCB marked delete-on-zero-reference-count
2.2 Overview of MIB
hrFSIndex
hrFSStorageIndex is always
hrStorageType always contains the value of hrStorageFixedDisk
MIBs Provided with TCP/IP Services 2.2 Overview of MIB
2.2.1 MIB II Implemented Groups
2.2.2 Restrictions to MIB II Implementation
system interfaces Internet Protocol ICMP TCP UDP SNMP
MIBs Provided with TCP/IP Services 2.2 Overview of MIB
ifOutDiscards Counter32 ifOutQLen Gauge32
d n hhmmss
Page
Creating a Subagent Using the eSNMP API
3.1 Creating a MIB Specification
3.2 The Structure of Management Information
Creating a Subagent Using the eSNMP API
3.2 The Structure of Management Information
3.2.1 Assigning Object Identification Codes
3.2.2 MIB Subtrees
Creating a Subagent Using the eSNMP API
Creating a Subagent Using the eSNMP API
3.2 The Structure of Management Information
Figure 3-1 MIB II in SMI Tree Structure
Creating a Subagent Using the eSNMP API
3.2 The Structure of Management Information
For example, the chess MIB provided with the sample code in the
3.3 Creating a MIB Source File
3.3.1 Writing the ASN.1 Input File
3.3.2 Processing the Input File with the MIB Compiler
Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File
Creating a Subagent Using the eSNMP API
The parameters and qualifiers for the MIBCOMP command are as follows
Parameter or Qualifier
Creating a Subagent Using the eSNMP API
3.3.2.1 UNIX Utilities Supplied with TCP/IP Services
3.3 Creating a MIB Source File
3.3.2.2 Object Tables
Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File
1. Declaration Section
2. Index Definitions Section
Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File
5. Method Routine Prototypes Section
3.3.2.4 The subtreeTBL.C Output Files
Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File
2. Array of OBJECT Structures Section
3.4 Including the Routines and Building the Subagent
Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File
3. Initialized Subtree Structure Section
3.4 Including the Routines and Building the Subagent
Creating a Subagent Using the eSNMP API
To link with the eSNMP object library, enter the following command
File Name
Edit Required
TCPIP$EXTENSIONMIBSHUTDOWN.COM
Page
Using the SNMP Utilities
4.1 Using the MIB Browser
4.1.1 MIB Browser Parameters
agent
Using the SNMP Utilities 4.1 Using the MIB Browser
4.1.2 MIB Browser Flags
community
request-type
Using the SNMP Utilities
4.1 Using the MIB Browser
i maxignores
Table 4-2 Flags for the snmprequest Command
n nonrepeaters
p port
r maxretries
Using the SNMP Utilities 4.1 Using the MIB Browser
4.1 Using the MIB Browser
4.1.3 MIB Browser Data Types
s sleepinterval
v version
4.1.4 Command Examples for snmprequest
Using the SNMP Utilities 4.1 Using the MIB Browser
Examples
Using the SNMP Utilities 4.1 Using the MIB Browser
1.3.6.1.2.1.2.2.1.3.1 = 24 1.3.6.1.2.1.2.2.1.1.3 =
4.2 Using the Trap Sender and Trap Receiver Programs
Using the SNMP Utilities 4.1 Using the MIB Browser
4.2.1 Entering Commands for the Trap Sender Program
4.2.1.1 Trap Sender Parameters
4.2 Using the Trap Sender and Trap Receiver Programs
enterprise
generic-trap
specific-trap
4.2 Using the Trap Sender and Trap Receiver Programs
h host
Using the SNMP Utilities
Flags for the snmptrapsnd Command
4.2.2 Entering Commands for the Trap Receiver Program
p port
Using the SNMP Utilities
4.2 Using the Trap Sender and Trap Receiver Programs
4.2.2.3 Trap Receiver Examples
C..-..0
Page
eSNMP API Routines
5.1 Interface Routines
esnmpinit
eSNMP API Routines esnmpinit
Format
Arguments
esnmpregister
eSNMP API Routines esnmpregister
timeout
Format
eSNMP API Routines esnmpregister
Return Values
Example
#include esnmp.h
RESPONSETIMEOUT, REGISTRATIONPRIORITY
eSNMP API Routines esnmpregister
status = esnmpregister &ipRouteEntrysubtree
if status != ESNMPLIBOK
esnmpunregister
eSNMP API Routines esnmpunregister
Format
Arguments
esnmpregister2
eSNMP API Routines esnmpregister2
Format
Arguments
eSNMP API Routines esnmpregister2
Description
5-8 eSNMP API Routines
eSNMP API Routines esnmpregister2
Return Values
eSNMP API Routines esnmpregister2 Example
5-10 eSNMP API Routines
esnmpunregister2
eSNMP API Routines esnmpunregister2
Format
Arguments
esnmpcapabilities
eSNMP API Routines esnmpcapabilities
Format
Arguments
esnmpuncapabilities
eSNMP API Routines esnmpuncapabilities
Format
Arguments
esnmppoll
eSNMP API Routines esnmppoll
Format
Description
esnmpareyouthere
eSNMP API Routines esnmpareyouthere
Format
Description
esnmptrap
eSNMP API Routines esnmptrap
Format
Arguments
esnmpterm
eSNMP API Routines esnmpterm
Format
Description
esnmpsysuptime
eSNMP API Routines esnmpsysuptime
Argument
Format
5.2 Method Routines
eSNMP API Routines 5.2 Method Routines
get Routine
eSNMP API Routines get Routine
Format
Arguments
eSNMP API Routines
get Routine
Description
Return Values
set Routine
eSNMP API Routines set Routine
Format
Arguments
set Routine
eSNMP API Routines
Description
The libesnmp routines call whatever routine is specified for Set operations in the object table identified by the registered subtree
eSNMP API Routines set Routine Return Values
5.2.1 Processing *set Routines
5-24 eSNMP API Routines
eSNMP API Routines set Routine
5.2.2 Method Routine Applications Programming
eSNMP API Routines set Routine
int mibgroupget
METHOD *method int mibgroupset
5.2.3 Value Representation
eSNMP API Routines set Routine
ointeger ostring ooctet ooid
eSNMP API Routines set Routine
ESNMPTYPEObjectId varbind-value.oid and the varbind-name fields
eSNMP API Routines set Routine
5.3 Support Routines
eSNMP API Routines 5.3 Support Routines
ointeger
eSNMP API Routines ointeger
Format
Arguments
eSNMP API Routines ointeger Example
5-32 eSNMP API Routines
ooctet
eSNMP API Routines ooctet
Format
Arguments
ooid
eSNMP API Routines ooid
Format
Arguments
ostring
eSNMP API Routines ostring
Format
Arguments
eSNMP API Routines ostring Example
5-36 eSNMP API Routines
ocounter64
eSNMP API Routines ocounter64
Format
Arguments
str2oid
eSNMP API Routines str2oid
Format
Arguments
sprintoid
eSNMP API Routines sprintoid
Format
Description
instance2oid
eSNMP API Routines instance2oid
Format
Arguments
eSNMP API Routines instance2oid Example
oid2instance
eSNMP API Routines oid2instance
Format
Arguments
eSNMP API Routines oid2instance Example
instLength
eSNMP API Routines
incoming
inst2ip
eSNMP API Routines inst2ip
Format
Arguments
eSNMP API Routines inst2ip Description
Examples
Return Values
incoming
eSNMP API Routines inst2ip
n is a single value integer
cmpoid
eSNMP API Routines cmpoid
Format
Description
cmpoidprefix
eSNMP API Routines cmpoidprefix
Format
Description
cloneoid
eSNMP API Routines cloneoid
Format
Arguments
freeoid
eSNMP API Routines freeoid
Format
Description
clonebuf
eSNMP API Routines clonebuf
Format
Arguments
mem2oct
eSNMP API Routines mem2oct
Format
Arguments
cmpoct
eSNMP API Routines cmpoct
Format
Arguments
cloneoct
eSNMP API Routines cloneoct
Format
Arguments
freeoct
eSNMP API Routines freeoct
Format
Description
freevarbinddata
eSNMP API Routines freevarbinddata
Format
Description
setdebuglevel
eSNMP API Routines setdebuglevel
Format
Arguments
isdebuglevel
eSNMP API Routines isdebuglevel
Format
Return Values
ESNMPLOG
eSNMP API Routines ESNMPLOG
Format
Description
printvarbind
eSNMP API Routines printvarbind
Format
Arguments
setselectlimit
eSNMP API Routines setselectlimit
Format
Arguments
setprogname
eSNMP API Routines setprogname
Format
Arguments
restoreprogname
eSNMP API Routines restoreprogname
#include esnmp.h restoreprogname
Format
parseprogname
eSNMP API Routines parseprogname
Format
Arguments
esnmpcleanup
eSNMP API Routines esnmpcleanup
#include esnmp.h int rc = ESNMPLIBOK rc = esnmpcleanup
Format
Page
Troubleshooting eSNMP Problems
6.1 Modifying the Subagent Error Limit
6.2 Modifying the Subagent Timeout
Troubleshooting eSNMP Problems 6.2 Modifying the Subagent Timeout
6.3 Log Files
Troubleshooting eSNMP Problems 6.3 Log Files
Page
Index
printvarbind support routine
setdebuglevel support routine
setprogname support routine
setselectlimit support routine
Index-3