nv-l
[Top] [All Lists]

RE: [nv-l] Control desk

To: nv-l@lists.us.ibm.com
Subject: RE: [nv-l] Control desk
From: Leslie Clark <lclark@us.ibm.com>
Date: Wed, 11 Feb 2004 18:07:25 -0500
Delivery-date: Wed, 11 Feb 2004 23:15:24 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

I always put this little script in /usr/OV/reports/C:
#!/bin/ksh
# All_Events_For_Node.sh
# Show all events for a selected node from the trapd.log
name=$(basename $0)
. /usr/OV/bin/NVenvironment
. `echo $LOCAL_NV_COMMON_VARS`
xnmappmon -geometry 680x500 -commandTitle "$name" \
   -commandHeading "All events from trapd.log for node: $OVwSelection1 " \
   -cmd <custom.scripts.path>/showEvents.sh $OVwSelection1

Then I put this one in my custom scripts directory:

#!/bin/ksh
# showEvents.sh
# A script called from the Reports menu or the commandline to
# show all events for a node. This is simple enough that it could have been
# run directly from the Reports Menu stub script. Putting it here makes it
# easer to adapt it to the web client.
#set -x
NODE=$1

grep "$1 " /usr/OV/log/trapd.log* | cut -f2-20 -d: | sort

exit
=============================================================


The script in /usr/OV/reports/C shows up as a menu selection under Monitor..Reports..Site Provided for the selected node. The reason I make it two separate scripts is so I can call the same one (showEvents.sh) from the web client as well.  I always ensure that the trapd daemon is configured to use the provided maintenance script and keep about 30 days of events and keep them in /usr/OV/log. If you have a trapd.old, then you have not done this. This allows for a number of older, renamed trapd.log files available for historical information. Try it. The result is a window of the entire event history for the selected node.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit




"TURATI, JEAN-MICHEL" <JEAN-MICHEL.TURATI@disney.com>
Sent by: owner-nv-l@lists.us.ibm.com

02/11/2004 11:08 AM
Please respond to nv-l

       
        To:        "'nv-l@lists.us.ibm.com'" <nv-l@lists.us.ibm.com>
        cc:        
        Subject:        RE: [nv-l] Control desk



Thank you for your answers.
I tried Event History. I went back to events around noon. To go further, I
need to look into trapd.log and trapd.log.old. Moreover, I read that we can
execute a script when trapd creates a new trapd.log. It's something I can
think about to save logs.

Jean-Michel TURATI

-----Original Message-----
From: Qureshi, Fawad [mailto:Fawad.Qureshi@ssa.gov]
Sent: mercredi 11 février 2004 15:49
To: 'nv-l@lists.us.ibm.com'
Subject: RE: [nv-l] Control desk


And trapd.log will only take you so far back, depending on your filesize and
number of traps being received. We compress our trapd.log after a certain
filesize is reached and keep logs of at least past week.

Cheers

Fawad Qureshi

-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com] On
Behalf Of Colin Mulkerrins
Sent: Wednesday, February 11, 2004 8:42 AM
To: nv-l@lists.us.ibm.com
Subject: RE: [nv-l] Control desk

Hi,

Try trapd.log

Regards

Colin Mulkerrins
Enterprise Systems Management
An Post




-----Original Message-----
From: TURATI, JEAN-MICHEL [mailto:JEAN-MICHEL.TURATI@disney.com]
Sent: 11 February 2004 10:58
To: 'nv-l@lists.us.ibm.com'
Subject: RE: [nv-l] Control desk


Sorry, the question was not well formulated.

When I open a netview session, I see in the control desk only new events and
traps. How can I see old events, which occur before opening a session ? Is
there a file containing events of the control desk where I can find
yesterday's events for example ?




-----Original Message-----
From: Oliver Bruchhaeuser [mailto:oliver.bruchhaeuser@de.ibm.com]
Sent: mercredi 11 février 2004 11:45
To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Control desk


of course
$HOME/NvEnvironment/Workspaces

Kind regards

Oliver
----- Forwarded by Oliver Bruchhaeuser/Germany/Contr/IBM on 11.02.2004 11:42
-----
|---------+------------------------------------>
|         |           Oliver                   |
|         |           Bruchhaeuser/Germany/Cont|
|         |           r/IBM@IBMDE              |
|         |           Sent by:                 |
|         |           owner-nv-l@lists.us.ibm.c|
|         |           om                       |
|         |                                    |
|         |                                    |
|         |           11.02.2004 11:39         |
|         |           Please respond to nv-l   |
|         |                                    |
|---------+------------------------------------>

>-----------------------------------------------------------------------
>----
--------------------------------------|
 |
|
 |       To:       nv-l@lists.us.ibm.com
|
 |       cc:
|
 |       Subject:  Re: [nv-l] Control desk
|
 |
|
 |
|

>-----------------------------------------------------------------------
>----
--------------------------------------|




If you have marked
Options -> Save Environment
the Control Desk environment will be saved in /NvEnvironment/Workspaces on
exit.

Oliver


|---------+------------------------------->
|         |           "TURATI,            |
|         |           JEAN-MICHEL"        |
|         |           <JEAN-MICHEL.TURATI@|
|         |           disney.com>         |
|         |           Sent by:            |
|         |           owner-nv-l@lists.us.|
|         |           ibm.com             |
|         |                               |
|         |                               |
|         |           11.02.2004 11:07    |
|         |           Please respond to   |
|         |           nv-l                |
|         |                               |
|---------+------------------------------->

>-----------------------------------------------------------------------
>----
--------------------------------------|

 |
|
 |       To:       "'nv-l@lists.us.ibm.com'" <nv-l@lists.us.ibm.com>
|
 |       cc:
|
 |       Subject:  [nv-l] Control desk
|
 |
|
 |
|

>-----------------------------------------------------------------------
>----
--------------------------------------|




Is there a file matching what we see in the control desk ?

Jean-Michel TURATI
DisneyLand Resort Paris










****************************************************************************
*******
This e-mail and its attachments, is confidential and is intended for the
addressee(s) only. If you are not the intended recipient, disclosure,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. Please note that any information expressed in this message or its
attachments is not given or endorsed by An Post unless otherwise indicated
by an authorised representative independently of this message. An Post does
not accept responsibility for the contents of this message and although it
has been scanned for viruses An Post will not accept responsibility for any
damage caused as a result of a virus being passed on.
****************************************************************************
*******




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

Archive operated by Skills 1st Ltd

See also: The NetView Web