nv-l
[Top] [All Lists]

Turning off polling at certain times of day

To: nv-l@lists.tivoli.com
Subject: Turning off polling at certain times of day
From: "Peter Anderson" <pETERanderson@westpac.com.au>
Date: Mon, 22 Jan 2001 11:19:15 +1100
Hi,

As I didn't want NV to actually bother polling the devices I wrote a script
(which seems to work OK so far ...):

----------------------------------------------------------
#!/bin/sh
# script to configure netmon to poll using night-time settings
# as defined in snmp.conf.branch_night

/usr/OV/bin/ovstop netmon
/usr/OV/bin/ovtopofix -A > /usr/OV/log/ovtopofix.log 2>&1

for entry in `grep -v "^#" /usr/OV/conf/snmp.conf.branch_night`
do
        /usr/OV/bin/xnmsnmpconf -cre "${entry}"
done

/usr/OV/bin/xnmsnmpconf -event
/usr/OV/bin/ovstart netmon
/usr/bin/logger -p user.err "netmon: changing to night polling cycle"

----------------------------------------------------------

and the contents of snmp.conf.branch_night ...
----------------------------------------------------------
ss_branch_swch:public:*:200:0:157680000:::157680000:157680000:157680000:0:0:
0:0
ss_branch_rtr:public:*:200:2:157680000:::157680000:157680000:157680000:0:0:0
:0
ss_branch_hubs:public:*:200:2:157680000:::157680000:157680000:157680000:0:0:
0:0

When morning comes, cron runs a similar script to convert back to "normal"
settings, but I don't bother with stopping netmon or the ovtopofix.

Of course the smartsets ss_branch_... have to be pre-defined.

Regards,

Peter Anderson
Senior Communications Analyst
Westpac Banking Corporation

Any views or opinions presented are solely those of the author and do
not necessarily represent those of Westpac Banking Corporation.


-----Original Message-----
From:                   Leslie Clark
Sent:                   Thursday, 18 January 2001 4:55
To:                     IBM NetView Discussion
Cc:
Subject:                        RE: [NV-L] Turning off polling at certain times 
of day



I also vote for the ruleset approach. But in case you are really
trying to notify the map-watchers that there is not a problem at
this time, you might want to get fancy and use fields, smartsets,
and the new commandline access to Acknowledge status.
When a down event comes in, your script can check to see if
the time of day is during the maintenance window for that
particular node and issue the event command to Acknowledge
it. In addition, you could use nvdbimport to set a 'Maintenance'
field (watch the performance here). And you could have a
smartset based on Maintenance and IP Status showing all
nodes that are taking advantage of their maintenance window.
They would move out of it automatically when they come back
up. Gee, that sounds promising. I hope I get a chance to try this soon.

Cordially,

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


"Cowan, Chris" <Chris.Cowan@2ndWaveinc.com>@tkg.com on 01/16/2001 08:19:19
PM

Please respond to IBM NetView Discussion <nv-l@tkg.com>

Sent by:  owner-nv-l@tkg.com


To:   "'IBM NetView Discussion'" <nv-l@tkg.com>
cc:
Subject:  RE: [NV-L] Turning off polling at certain times of day





Well this isn't exactly what you want, but you could supress the posting of
event to the Event Desk or through the TEC adapter with a ruleset.    It
would still poll, but the alarms would be turned off.

This would be very easy to do with an inline action.

-----Original Message-----
From: Peter Anderson [mailto:pETERanderson@westpac.com.au]
Sent: Tuesday, January 16, 2001 6:14 PM
To: Netview List (E-mail)
Subject: [NV-L] Turning off polling at certain times of day

Hi,

We want to turn off polling for certain devices during known down-times
each
day.

I can't find any way of doing it except for with xnmsnmpconf.

Does anyone else have any ideas?

With xnmsnmpconf if I set the polling and configuration interval to zero
does that turn it off or cause it to do it constantly.

Is there any plans in the pipeline for this feature?

Thanks,

Peter Anderson
Senior Communications Analyst

Any views or opinions presented are solely those of the author and do not
necessarily represent those of Westpac Banking Corporation.

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



_________________________________________________________________________


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

Archive operated by Skills 1st Ltd

See also: The NetView Web