[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
|
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
6013.0. "Problem with MCC translating ASCII events" by CX3PST::NOTAMI::A_ANDERSON (CX03 2/H13 NSU/VAX MacGhille Aindrais) Mon Jun 06 1994 16:26
I have the following problem statement from a customer. Since I know very
little about MCC (actually I know nothing about MCC, except Digital sell is),
I'll just include here what the customer sent to me. He is trying to set up
Enterprise specific traps.
Instead of gettin an event message he gets a Hex string.
I Hope this makes sense to some one that reads this notes conferance. I have
no idea where to go with this.
Alan Anderson
Network Support
CSC CS
In the customers own words........
- This one was asked when I logged c940518-4265
Need to be able to use notification request such as
MNMSD_NS:.BOBSTEST Entity List = (SNMP ballpeen wec), Events = (tisEventCrit
ical)
but get "invalid combination of verb, entity and partition" message.
/**
** 1
**
** below is a line from the polycenter notification window
** ** note: the vertical bars (|) below signify an up arrow (event)
**/
| indeterminate 50202 SNMP ballpeen wec tiseventOOS 2-JUN-1994 12:56:25.23 Dom
ain MNMSD_NS:.BOBSTEST
/**
** below is text within the polycenter notification: notification detail
** window
**/
-----------------------------------------------------------------------------
type: | Event ID: 50202 Request ID: 1
Domain: Domain MNMSD_NS:.BOBSTEST
Entity: SNMP ballpeen wec
Event Source: SNMP MNMSD_NS:.ballpeen wec
Severity: indeterminate
Timestamp: 2-JUN-1994 12:56:25.23
Text: tisEventOOS
Details:
Successfully received event:
tisEventOOS
A tisEventOOS trap was received:
enterprise 1.3.6.1.4.1.618
agent-addr 129.228.10.7
generic-trap enterpriseSpecific
specific-trap 132012
time-stamp 0
tisEventMsg %X5F6576656E745F747970653A207261775374617465
4368616E67650A5F73696576655F69643A203331330A
5F6F626A5F636C6173733A206E6F64650A5F6F626A5F
69643A20636F6D704964204E4920504D205745535452
4D303120504520323620504920323620504F20330A5F
74696D653A2031393934203620322031322035362038
0A5F617474723A2072617753746174652045204F4F530A
-----------------------------------------------------------------------------
/**
** 2
**
** sample mib and resultant .ms file
**
**/
EXAMPLE-MIB DEFINITIONS ::= BEGIN
IMPORTS enterprises
FROM RFC1155-SMI;
-- Epilogue Technology private enterprises MIB extensions
epilogue OBJECT IDENTIFIER ::= { enterprises 12 }
-- examples MIB
examples OBJECT IDENTIFIER ::= { epilogue 7 }
-- make a textual convention
-- exampleType ::= Integer
-- define a couple of objects
exFirstObject OBJECT-TYPE
SYNTAX INTEGER {
one(1),
two(2)
}
ACCESS read-write
STATUS mandatory
DESCRIPTION "First example object."
--DEFAULT get-function get_%n
--DEFAULT set-function get_%n
--DEFAULT test-function it_exists
--DEFAULT next-function std_next
--DEFAULT cookie (char *)&var_%n
--DEFAULT view-mask 0xFF
--DEFAULT write-mask 0x1F
::= { examples 1 }
exSecondObject OBJECT-TYPE
SYNTAX OCTET STRING
ACCESS read-only
STATUS mandatory
DESCRIPTION "First example object."
--DEFAULT get-function get_%t
--DEFAULT set-function get_%t
--DEFAULT test-function it_exists
--DEFAULT next-function std_next
--DEFAULT cookie (char *)"exSecondObject"
::= { examples 2 }
exTrap TRAP-TYPE
ENTERPRISE examples
VARIABLES { exFirstObject }
DESCRIPTION "An example trap."
::= 1
END
----------------------------------------------------------------------------
MANAGEMENT SPECIFICATION MCC_EXAMPLE_MIB;
VERSION = X1.1.0;
SYMBOL-PREFIX = MCC_;
(* EXAMPLE_MIB Definition*)
INCLUDE mcc_tcpip_am_internet_mib_types.ms;
INCLUDE example_enum.ms;
CHILD ENTITY epilogue = 5012 :
PARENT = ( SNMP ),
IDENTIFIER = ( ),
DYNAMIC = FALSE,
SYMBOL = EN12,
IDENTIFIER ATTRIBUTES
END ATTRIBUTES;
INCLUDE mcc_tcpip_am_show.ms;
INCLUDE mcc_tcpip_am_reference.ms;
INCLUDE mcc_tcpip_am_register.ms;
EVENT PARTITION CONFIGURATION EVENTS = 15:
EVENT exTrap = 1 :
DISPLAY = TRUE,
SYMBOL = EN12_Event_1,
TEXT = "A exTrap trap was received:",
CATEGORIES = (CONFIGURATION),
ARGUMENT enterprise = 01 : Latin1String
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_ENTERPRISE
END ARGUMENT enterprise;
ARGUMENT agent-addr = 02 : IpAddress
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_AGENT_ADDR
END ARGUMENT agent-addr;
ARGUMENT generic-trap = 03 : GenericTrap_enm
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_GENERIC_TRAP
END ARGUMENT generic-trap;
ARGUMENT specific-trap = 04 : Integer32
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_SPECIFIC_TRAP
END ARGUMENT specific-trap;
ARGUMENT time-stamp = 05 : MIBTimeTicks
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_TIME_STAMP
END ARGUMENT time-stamp;
ARGUMENT exFirstObject = 6 : exFirstObject_enm
DISPLAY = TRUE,
SYMBOL = EN12_7_1_EV,
SNMP_OID = {1 3 6 1 4 1 12 7 1}
END ARGUMENT exFirstObject;
END EVENT exTrap;
END EVENT PARTITION CONFIGURATION EVENTS;
INCLUDE mcc_tcpip_am_getevent.ms;
CHILD ENTITY examples = 7 :
IDENTIFIER = ( ),
DYNAMIC = TRUE,
SYMBOL = EN12_7,
IDENTIFIER ATTRIBUTES
END ATTRIBUTES;
CHARACTERISTIC ATTRIBUTES
ATTRIBUTE exFirstObject = 1 : exFirstObject_enm
ACCESS = SETTABLE,
DISPLAY = TRUE,
CATEGORIES = (CONFIGURATION),
SYMBOL = EN12_7_1,
SNMP_OID = {1 3 6 1 4 1 12 7 1}
END ATTRIBUTE exFirstObject;
ATTRIBUTE exSecondObject = 2 : OCTETSTRING
ACCESS = NONSETTABLE,
DISPLAY = TRUE,
CATEGORIES = (CONFIGURATION),
SYMBOL = EN12_7_2,
SNMP_OID = {1 3 6 1 4 1 12 7 2}
END ATTRIBUTE exSecondObject;
END ATTRIBUTES;
INCLUDE mcc_tcpip_am_set.ms;
INCLUDE mcc_tcpip_am_show.ms;
INCLUDE mcc_tcpip_am_reference.ms;
INCLUDE mcc_tcpip_am_register.ms;
END ENTITY examples;
END ENTITY epilogue;
END SPECIFICATION;
-------------------------------------------------------------------------------
/**
** 3
**
** my mib and resultant .ms file
**
**/
TIS-MIB
DEFINITIONS ::= BEGIN
IMPORTS enterprises
FROM RFC1155-SMI
OBJECT-TYPE
FROM RFC-1212;
wec OBJECT IDENTIFIER ::= { enterprises 618 }
mds OBJECT IDENTIFIER ::= { wec 1 }
tis OBJECT IDENTIFIER ::= { mds 1 }
tisEventMsg OBJECT-TYPE
SYNTAX OCTET STRING
ACCESS read-only
STATUS mandatory
DESCRIPTION "The event as it came out of the NMS on the IWS"
::= { tis 100 }
tisEventCritical TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132000
tisEventMajor TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132001
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132002
tisEventWarning TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132003
tisEventCleared TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132004tisEventIndeterminate TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132005
tisEventINSV TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132010
tisEventISTB TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132011
tisEventOOS TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132012
tisEventUNK TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132013
tisEventNEX TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132014
tisEventOther TRAP-TYPE
ENTERPRISE wec
VARIABLES { tisEventMsg }
DESCRIPTION "Each event comes from the TIS to the MNMS via."
::= 132100
--
END
-------------------------------------------------------------------------------
MANAGEMENT SPECIFICATION MCC_TIS_MIB;
VERSION = X1.1.0;
SYMBOL-PREFIX = MCC_;
(* TIS_MIB Definition*)
INCLUDE mcc_tcpip_am_internet_mib_types.ms;
INCLUDE tis_enum.ms;
CHILD ENTITY wec = 5618 :
PARENT = ( SNMP ),
IDENTIFIER = ( ),
DYNAMIC = FALSE,
SYMBOL = EN618,
IDENTIFIER ATTRIBUTES
END ATTRIBUTES;
INCLUDE mcc_tcpip_am_show.ms;
INCLUDE mcc_tcpip_am_reference.ms;
INCLUDE mcc_tcpip_am_register.ms;
EVENT PARTITION CONFIGURATION EVENTS = 15:
EVENT tisEvent = 1 :
DISPLAY = TRUE,
SYMBOL = EN618_Event_1,
TEXT = "A tisEvent trap was received:",
CATEGORIES = (CONFIGURATION),
ARGUMENT enterprise = 01 : Latin1String
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_ENTERPRISE
END ARGUMENT enterprise;
ARGUMENT agent-addr = 02 : IpAddress
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_AGENT_ADDR
END ARGUMENT agent-addr;
ARGUMENT generic-trap = 03 : GenericTrap_enm
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_GENERIC_TRAP
END ARGUMENT generic-trap;
ARGUMENT specific-trap = 04 : Integer32
DISPLAY = TRUE,
tisEventMinor TRAP-TYPE
SYMBOL = SNMP_EV_GEN_SPECIFIC_TRAP
END ARGUMENT specific-trap;
ARGUMENT time-stamp = 05 : MIBTimeTicks
DISPLAY = TRUE,
SYMBOL = SNMP_EV_GEN_TIME_STAMP
END ARGUMENT time-stamp;
ARGUMENT tisEventMsg = 6 : OCTETSTRING
DISPLAY = TRUE,
SYMBOL = EN618_1_1_100_EV,
SNMP_OID = {1 3 6 1 4 1 618 1 1 100}
END ARGUMENT tisEventMsg;
END EVENT tisEvent;
END EVENT PARTITION CONFIGURATION EVENTS;
INCLUDE mcc_tcpip_am_getevent.ms;
CHILD ENTITY mds = 1 :
IDENTIFIER = ( ),
DYNAMIC = TRUE,
ENTERPRISE wec
SYMBOL = EN618_1,
IDENTIFIER ATTRIBUTES
END ATTRIBUTES;
INCLUDE mcc_tcpip_am_show.ms;
INCLUDE mcc_tcpip_am_reference.ms;
INCLUDE mcc_tcpip_am_register.ms;
CHILD ENTITY tis = 1 :
IDENTIFIER = ( ),
DYNAMIC = TRUE,
SYMBOL = EN618_1_1,
IDENTIFIER ATTRIBUTES
END ATTRIBUTES;
CHARACTERISTIC ATTRIBUTES
ATTRIBUTE tisEventMsg = 100 : OCTETSTRING
ACCESS = NONSETTABLE,
DISPLAY = TRUE,
CATEGORIES = (CONFIGURATION),
SYMBOL = EN618_1_1_100,
SNMP_OID = {1 3 6 1 4 1 618 1 1 100}
END ATTRIBUTE tisEventMsg;
END ATTRIBUTES;
INCLUDE mcc_tcpip_am_show.ms;
INCLUDE mcc_tcpip_am_reference.ms;
INCLUDE mcc_tcpip_am_register.ms;
END ENTITY tis;
END ENTITY mds;
END ENTITY wec;
END SPECIFICATION;
/**
** 4
**
** sample output from multinet. sample below is of a "similar" trap received
** (OOS in both means out of service ) I have confirmed that the hex
** displayed in the above notification does conform to the text received by
** multinet (and sent by my application that sends the trap).
** note: I've inserted linefeeds in the string below for clarity but the ^J
** characters are there from multinet.
**/
T.R | Title | User | Personal Name | Date | Lines |
---|
6013.1 | datatype is wrong | GOSTE::CALLANDER | | Mon Jun 06 1994 17:26 | 3 |
| the tisEventMsg is defined as an OCTET STRING which is why you
aren't seeing the ascii.
|
6013.2 | Thanks for the quick reply | CX3PST::NOTAMI::A_ANDERSON | CX03 2/H13 NSU/VAX MacGhille Aindrais | Tue Jun 07 1994 09:23 | 10 |
| Thanks
Of course the customer said this worked fine for two months then all of a
sudden it started to switched from ASCII to the HEX.
Alan
|
6013.3 | Displaystring fixed the problem | CX3PST::NOTAMI::A_ANDERSON | CX03 2/H13 NSU/VAX MacGhille Aindrais | Tue Jun 07 1994 14:06 | 6 |
| I had the customer change it to a DISPLAYSTRING. He did against his better
judgement. Darn if it didn't fix the problem.
Thanks again
Alan
|