SNMP Configuration and Management Manual
NonStop NET/MASTER Trap Subagent
SNMP Configuration and Management Manual—424777-006
10-19
sendtrap Failures
return-code
has the value 1 or 2, as described in Table 10-2.
&sys.file.rc-value
contains an integer if the FILE OPEN verb in the openagent function failed:
12 (UDB is inaccessible.)
16 (UDB identifier is unavailable or not found. See &sysmsg for more information.)
&sys.file.error-value
is the Guardian file error number corresponding to the value of &sys.file.rc.
&sysmsg
is a text message.
sendtrap Failures
Table 10-3 describes the actions GENTRAP takes when sendtrap fails.
The format of the message is as follows:
return-code
has the value 1 through 3, as described in Table 10-3.
Table 10-3. sendtrap Return Codes and GENTRAP Actions
Return Code Meaning GENTRAP Actions
0 The function completed
successfully.
Processing continues.
1 The OID count is less than
0.
Processing continues after a message is
displayed at an OCS window.
2 The total trap size
exceeds 1500 bytes.
Processing continues after a message is
displayed at an OCS window.
3 Communication with the
SNMP agent failed.
Processing continues after a message is
displayed at an OCS window.
error return-code from sendtrap procedure.
&sys.file.rc = &sys.file.rc-value
&sys.file.error = &sys.file.error-value
&sysmsg = &sysmsg-value