RE: Node Up/Down Traps
2000-03-08 13:31:30
Ooh thats nifty.
I never knew about nvUtil.
BTW if your going over the max number of command line parameters
the easiest way to fix it is to pipe things through xargs.
I'd run it like this
/usr/OV/bin/nvUtil l Collection_name | xargs /usr/OV/bin/nmdemandpoll
John Creasey.
> -----Original Message-----
> From: owner-nv-l AT tkg DOT com [mailto:owner-nv-l AT tkg DOT com]On Behalf
> Of Ray
> Schafer
> Sent: Thursday, 9 March 2000 01:53
> To: IBM NetView Discussion
> Subject: Re: [NV-L] Node Up/Down Traps
>
>
> W.M.de.Bruin AT DNB DOT NL wrote:
>
> > Ray,
> >
> > You said you used a cron-job to do a demand-poll.
> > What command do you use to initiate a demand-poll?
>
> It was a script something like this:
>
> #!/bin/ksh
> /usr/OV/bin/nmdemandpoll $(/usr/OV/bin/nvUtil l
> Collection_Name) >/dev/null
> 2>&1
>
> where Collection_Name is the name of the collection of the nodes whose
> maintenance window just closed.
>
>
> A caveate: If you are trying to do this on a bunch of
> machines, or when
> netmon is busy doing daily checks, it may take a while to
> complete. If the
> output of
>
> /usr/OV/bin/nvUtil l Collection_Name
>
> is greater than 4096 characters, you will have a problem with
> the command.
> You'll have to feed the output into a loop that does one
> demand poll at a
> time. However, if it's just less than a couple dozen nodes,
> it should be
> OK.
>
>
> > Wouter de Bruin
> > Network Management Consultant
> > `Externe E-Mail wordt door DNB niet gebruikt voor het aangaan van
> > verplichtingen`
> >
> > `Any e-mail messages from The Nederlandsche Bank are given
> in good faith
> > but shall not be binding
> > nor shall they be construed as constituting any obligation
> on the part of
> > the Bank.`
> >
> >
> ______________________________________________________________
> ___________
> >
> > NV-L List information (unsubscribing, policies, posting,
> digest version,
> > searchable archives): http://www.tkg.com/nv-l
>
> --
> Ray Schafer | schafer AT tkg DOT com
> The Kernel Group | Distributed Systems Management
> http://www.tkg.com
>
>
>
> ______________________________________________________________
> ___________
>
> NV-L List information (unsubscribing, policies, posting,
> digest version,
> searchable archives): http://www.tkg.com/nv-l
>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Node Up/Down Traps, W . M . de . Bruin
- Re: Node Up/Down Traps, lclark
- Re: Node Up/Down Traps, James_Shanks
- Re: Node Up/Down Traps, Steve Stamper
- Re: Node Up/Down Traps, Bill Painter
- Re: Node Up/Down Traps, Ray Schafer
- Re: Node Up/Down Traps, W . M . de . Bruin
- Re: Node Up/Down Traps, W . M . de . Bruin
- Re: Node Up/Down Traps, lclark
- Re: Node Up/Down Traps, Ray Schafer
- RE: Node Up/Down Traps,
John Creasey <=
- RE: Node Up/Down Traps, John Creasey
- RE: Node Up/Down Traps, lclark
|
|
|