SnmpCollect is going to remember the last time time it collected data
because it is taking a five minute average. I have written scripts using
snmpwalk since all the devices had more than one interface. Using this
method one could snapshot the counters over a five minute period and come up
their own five minute average. I developed an elaborate system taking into
account counter rollover, etc. It really wasn't worth it. It takes a lot
of machine power if the number of devices are many.
I would recommend letting SnmpCollect do its work, dump out the database to
a file using SnmpColDump and extract what I needed. All this can be done in
one script in a cron job. I also clear the databases at the same time
making sure the
collections don't overload the filesystem.
Mel
----- Original Message -----
From: "Leslie Clark/Southfield/IBM" <lclark@us.ibm.com>
To: "IBM NetView Discussion" <nv-l@tkg.com>
Sent: Wednesday, November 15, 2000 10:17 PM
Subject: Re: [NV-L] How do I set my own collect time [SnmpCollect ]
> How is this normally done? Well, I hesitate to say this, but I
> doubt that this is normally done. You are fighting every design
> feature of the data collection capabilites of the product. It might
> be easier for you to just use cron to run a script that retrieves
> the data. You could use the snmpget command, or, better yet, the
> mibtable command. See the man pages for those.
>
> Anybody else doing this?
>
> Cordially,
>
> Leslie A. Clark
> IBM Global Services - Systems Mgmt & Networking
> Detroit
>
>
> Clarence Hart <rti1clh@ismd.ups.com>@tkg.com on 11/15/2000 01:24:59 PM
>
> Please respond to IBM NetView Discussion <nv-l@tkg.com>
>
> Sent by: owner-nv-l@tkg.com
>
>
> To: nv-l@tkg.com
> cc:
> Subject: [NV-L] How do I set my own collect time [SnmpCollect ]
>
>
>
>
>
> I want to only get stats from my network devices at specified times of the
> day
> for historical stats. I dont want to use the "interval" setting of
> Tivoli.
>
> Meaning;
>
> Say for example I only want data from -- 6am ,8am, 12pm , 6pm
>
> Thats it!!! But it must be at 6am , 8am, 12pm, and 6pm not every whatever
> amount
> of hours.
>
> How is this noramlly done.
>
> I started writing a script to run from cron that starts the daemon
> at the times above then kill the daemon after I think it should be
> finished.
>
> Even when you run the daemon manually it knows the last time it collected
> data
> so my theory of setting the "interval" to 3h then trying to force a
> collection
> did not work.
> Maybe there is a cahce file I could delete our an entry in the database i
> could
> wack before I start the daemon.
> Hmmmn
>
> There must be a better way!!!
>
>
> Thanks...
>
>
> Clarence Hart
> UPS
> Office: 410-560-4182
> Fax: 410-560-4329
> chart@ups.com
>
> _________________________________________________________________________
> NV-L List information and Archives: http://www.tkg.com/nv-l
>
>
> _________________________________________________________________________
> NV-L List information and Archives: http://www.tkg.com/nv-l
|