nv-l

Re: trap question

2001-12-12 09:26:13
Subject: Re: trap question
From: "James Shanks" <jshanks AT us.ibm DOT com>
To: nv-l AT lists.tivoli DOT com
Date: Wed, 12 Dec 2001 09:26:13 -0500
This is a multipart message in MIME format.
You might want to have a look at the man page for trapd.conf and see if it 
will answer some of your questions.

I don't understand what  you mean when you say that it is not receiving 
the "Source". The "Source" is a single character indicating origin. In 
this case the trap must be configured as an Agent trap in trapd.conf, 
because there is a big "A" in the log before each variable.  If you mean 
the originating node, that is given by the "10.73.7.242" IP address, so this 
device must not be in DNS or /etc/hosts.  If it 
were, then trapd would resolve that to a hostname.

Nothing is stored in UNIX.  Traps pass through and trapd formats them, 
logs them, and passes them on to other processes.  That's all there is to 
it.  If the trap has ten variables and you only format one, the others are 
not displayed or logged anywhere.

Based on the excerpt, this trap is configured with the Log Message being 
set to 
$E $G $S $# $*
which means to display, in order, the enterprise (dl3800) generic id (6) 
specific id (108) number of variables (4 args:) and then display each 
variable in turn.  Each number in a bracket [1] represents a variable, and 
since there are four, it takes 5 lines to display the entire thing. 
Clearly  you are getting all that is being sent. 

What are you expecting that you would ask "how can I determine whether or not 
the DL3800 is actually
sending this information.?".  Of course it is, where else would all this come 
from?  

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
 





"Brian Backer" <brian.backer AT electrolux DOT com>
Sent by: owner-nv-l AT tkg DOT com
12/12/2001 08:40 AM
Please respond to IBM NetView Discussion

 
        To:     IBM NetView Discussion <nv-l AT tkg DOT com>
        cc: 
        Subject:        [NV-L] trap question

 




Hey all...

We're running NV602 on AIX 433....  I have a question about Traps.

I have a Digital Link DL3800 set to send traps to netview and it all
appears to be working just fine, however, it's not receiving the 'Source'

my question is, how can I determine whether or not the DL3800 is actually
sending this information.?  I have looked in the trapd.log file and I 
don't
see anything in there, but does that store the entire trap or only what it
knows about and can format?

Any advice to help me figure this out would be greatly appreciated...
here's the entries from the trapd.log file as well...


----------


1008163427 7  Wed Dec 12 08:23:47 2001 10.73.7.242               A dl3800 
6
108 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 
(Integer):
2
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 1
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 108
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163427 7  Wed Dec 12 08:23:47 2001 10.73.7.242               A dl3800 
6
49 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 49
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163428 7  Wed Dec 12 08:23:48 2001 10.73.7.242               A dl3800 
6
34 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163428 7  Wed Dec 12 08:23:48 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 3
1008163428 7  Wed Dec 12 08:23:48 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 34
1008163428 7  Wed Dec 12 08:23:48 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163428 3  Wed Dec 12 08:23:48 2001 10.73.7.242               ? Agent
Interface Down (linkDown Trap) enterprise:dl3800 (1.3.6.1.4.1.300.102)
args(1):
1008163428 3  Wed Dec 12 08:23:48 2001  10.73.7.242               ?  [1]
mgmt.mib-2.transmission.ds1.6.1.1.0 (Integer): 2
1008163429 7  Wed Dec 12 08:23:49 2001 10.73.7.242               A dl3800 
6
38 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163429 7  Wed Dec 12 08:23:49 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 3
1008163429 7  Wed Dec 12 08:23:49 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 38
1008163429 7  Wed Dec 12 08:23:49 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163431 7  Wed Dec 12 08:23:51 2001 10.73.7.242               A dl3800 
6
36 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 1
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 36
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163431 7  Wed Dec 12 08:23:51 2001 10.73.7.242               A dl3800 
6
34 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 34
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163432 7  Wed Dec 12 08:23:52 2001 10.73.7.242               A dl3800 
6
36 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 36
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163432 7  Wed Dec 12 08:23:52 2001 10.73.7.242               A dl3800 
6
40 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 3
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 40
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163440 7  Wed Dec 12 08:24:00 2001 10.73.7.242               A dl3800 
6
38 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163440 7  Wed Dec 12 08:24:00 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163440 7  Wed Dec 12 08:24:00 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 38
1008163440 7  Wed Dec 12 08:24:00 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163442 7  Wed Dec 12 08:24:02 2001 10.73.7.242               A dl3800 
6
40 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163442 7  Wed Dec 12 08:24:02 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163442 7  Wed Dec 12 08:24:02 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 40
1008163442 7  Wed Dec 12 08:24:02 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163442 3  Wed Dec 12 08:24:02 2001 10.73.7.242               ? Agent
Interface Up (linkUp Trap) enterprise:dl3800 (1.3.6.1.4.1.300.102) 
args(1):
1008163442 3  Wed Dec 12 08:24:02 2001  10.73.7.242               ?  [1]
mgmt.mib-2.transmission.ds1.6.1.1.0 (Integer): 2
1008163443 7  Wed Dec 12 08:24:03 2001 10.73.7.242               A dl3800 
6
108 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 
(Integer):
2
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 108
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163443 7  Wed Dec 12 08:24:03 2001 10.73.7.242               A dl3800 
6
49 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 1
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 49
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0



***********************************************************************
This e-mail and any attachments may contain information which is
confidential, privileged, proprietary or otherwise protected by law.
The information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee).  If you are not the
intended recipient of this message, you are not authorized to read,
print, retain, copy or disseminate this message or any part of it.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer.
***********************************************************************

_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l



You might want to have a look at the man page for trapd.conf and see if it will answer some of your questions.

I don't understand what  you mean when you say that it is not receiving the "Source". The "Source" is a single character indicating origin. In this case the trap must be configured as an Agent trap in trapd.conf, because there is a big "A" in the log before each variable.  If you mean the originating node, that is given by the "10.73.7.242" IP address, so this device must not be in DNS or /etc/hosts.  If it were, then trapd would resolve that to a hostname.

Nothing is stored in UNIX.  Traps pass through and trapd formats them, logs them, and passes them on to other processes.  That's all there is to it.  If the trap has ten variables and you only format one, the others are not displayed or logged anywhere.

Based on the excerpt, this trap is configured with the Log Message being set to
$E $G $S $# $*
which means to display, in order, the enterprise (dl3800) generic id (6) specific id (108) number of variables (4 args:) and then display each variable in turn.  Each number in a bracket [1] represents a variable, and since there are four, it takes 5 lines to display the entire thing. Clearly  you are getting all that is being sent.  

What are you expecting that you would ask "how can I determine whether or not the DL3800 is actually
sending this information.?
".  Of course it is, where else would all this come from?  

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group




"Brian Backer" <brian.backer AT electrolux DOT com>
Sent by: owner-nv-l AT tkg DOT com

12/12/2001 08:40 AM
Please respond to IBM NetView Discussion

       
        To:        IBM NetView Discussion <nv-l AT tkg DOT com>
        cc:        
        Subject:        [NV-L] trap question

       





Hey all...

We're running NV602 on AIX 433....  I have a question about Traps.

I have a Digital Link DL3800 set to send traps to netview and it all
appears to be working just fine, however, it's not receiving the 'Source'

my question is, how can I determine whether or not the DL3800 is actually
sending this information.?  I have looked in the trapd.log file and I don't
see anything in there, but does that store the entire trap or only what it
knows about and can format?

Any advice to help me figure this out would be greatly appreciated...
here's the entries from the trapd.log file as well...


----------


1008163427 7  Wed Dec 12 08:23:47 2001 10.73.7.242               A dl3800 6
108 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 1
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 108
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163427 7  Wed Dec 12 08:23:47 2001 10.73.7.242               A dl3800 6
49 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 49
1008163427 7  Wed Dec 12 08:23:47 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163428 7  Wed Dec 12 08:23:48 2001 10.73.7.242               A dl3800 6
34 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163428 7  Wed Dec 12 08:23:48 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 3
1008163428 7  Wed Dec 12 08:23:48 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 34
1008163428 7  Wed Dec 12 08:23:48 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163428 3  Wed Dec 12 08:23:48 2001 10.73.7.242               ? Agent
Interface Down (linkDown Trap) enterprise:dl3800 (1.3.6.1.4.1.300.102)
args(1):
1008163428 3  Wed Dec 12 08:23:48 2001  10.73.7.242               ?  [1]
mgmt.mib-2.transmission.ds1.6.1.1.0 (Integer): 2
1008163429 7  Wed Dec 12 08:23:49 2001 10.73.7.242               A dl3800 6
38 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163429 7  Wed Dec 12 08:23:49 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 3
1008163429 7  Wed Dec 12 08:23:49 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 38
1008163429 7  Wed Dec 12 08:23:49 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163431 7  Wed Dec 12 08:23:51 2001 10.73.7.242               A dl3800 6
36 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 1
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 36
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163431 7  Wed Dec 12 08:23:51 2001 10.73.7.242               A dl3800 6

34 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 34
1008163431 7  Wed Dec 12 08:23:51 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163432 7  Wed Dec 12 08:23:52 2001 10.73.7.242               A dl3800 6
36 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 36
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163432 7  Wed Dec 12 08:23:52 2001 10.73.7.242               A dl3800 6
40 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 3
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 40
1008163432 7  Wed Dec 12 08:23:52 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163440 7  Wed Dec 12 08:24:00 2001 10.73.7.242               A dl3800 6
38 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163440 7  Wed Dec 12 08:24:00 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163440 7  Wed Dec 12 08:24:00 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 38
1008163440 7  Wed Dec 12 08:24:00 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163442 7  Wed Dec 12 08:24:02 2001 10.73.7.242               A dl3800 6
40 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163442 7  Wed Dec 12 08:24:02 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163442 7  Wed Dec 12 08:24:02 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 40
1008163442 7  Wed Dec 12 08:24:02 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163442 3  Wed Dec 12 08:24:02 2001 10.73.7.242               ? Agent
Interface Up (linkUp Trap) enterprise:dl3800 (1.3.6.1.4.1.300.102) args(1):
1008163442 3  Wed Dec 12 08:24:02 2001  10.73.7.242               ?  [1]
mgmt.mib-2.transmission.ds1.6.1.1.0 (Integer): 2
1008163443 7  Wed Dec 12 08:24:03 2001 10.73.7.242               A dl3800 6
108 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 4
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 108
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0
1008163443 7  Wed Dec 12 08:24:03 2001 10.73.7.242               A dl3800 6
49 4 args:  [1] private.enterprises.digital-link.102.1.3.1.10.0 (Integer):
2
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [2]
private.enterprises.digital-link.102.1.3.1.2.0 (Integer): 1
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [3]
private.enterprises.digital-link.102.1.3.1.11.0 (Integer): 49
1008163443 7  Wed Dec 12 08:24:03 2001  10.73.7.242               A  [4]
private.enterprises.digital-link.102.1.1.18.0 (Integer): 0



***********************************************************************
This e-mail and any attachments may contain information which is
confidential, privileged, proprietary or otherwise protected by law.
The information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee).  If you are not the
intended recipient of this message, you are not authorized to read,
print, retain, copy or disseminate this message or any part of it.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer.
***********************************************************************

_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l





<Prev in Thread] Current Thread [Next in Thread>