nv-l
[Top] [All Lists]

Re: [NV-L] Email Rule for Windows 7.1.4

To: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Subject: Re: [NV-L] Email Rule for Windows 7.1.4
From: James Shanks <jshanks@us.ibm.com>
Date: Tue, 26 Sep 2006 14:10:47 -0400
Delivery-date: Wed, 27 Sep 2006 15:07:42 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <OF7D36908F.BDEE891A-ON862571F5.005FFD50-862571F5.00603E54@springswindowfashions.com>
List-help: <mailto:nv-l-request@lists.ca.ibm.com?subject=help>
List-id: Tivoli NetView Discussions <nv-l.lists.ca.ibm.com>
List-post: <mailto:nv-l@lists.ca.ibm.com>
List-subscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe>
List-unsubscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe>
Reply-to: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Sender: nv-l-bounces@lists.ca.ibm.com

Ronnie,

I'm sorry but I can only advise you on this forum. I can't build the ruleset for you, but Level 2 can.

I am forbidden by IBM management policy to actually work on customer problems which are posted here or to provide sample code. That's why we have Level 2 Support. If you can open a problem to Support, they can build you the ruleset you need and send it to you. They will get me involved if they need me, but I suspect they will not.

So unless some other user here wants to step in and take over that job for you, then you are going to have to get access to a NetView for UNIX installation yourself or open a problem.


James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Network Availability Management
Network Management - Development
Tivoli Software, IBM Corp
Inactive hide details for ronald.ross@springswindowfashions.comronald.ross@springswindowfashions.com


          ronald.ross@springswindowfashions.com
          Sent by: nv-l-bounces@lists.ca.ibm.com

          09/26/2006 01:31 PM
          Please respond to
          Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>


To

Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>

cc


Subject

[NV-L] Email Rule for Windows 7.1.4

James,
So what does an in line action look like in the rule?

I think on AIX I had all actions.  I do not have access to an AIX box to
create an object for in line action and then go look at what is in the
rule.



                                                                         
            James Shanks                                                  
            <jshanks@us.ibm.c                                            
            om>                                                        To
            Sent by:                  Tivoli NetView Discussions          
            nv-l-bounces@list         <nv-l@lists.ca.ibm.com>            
            s.ca.ibm.com                                               cc
                                                                         
                                                                  Subject
            09/25/2006 01:38          Re: [NV-L] Email Rule for Windows  
            PM                        7.1.4                              
                                                                         
                                                                         
            Please respond to                                            
             Tivoli NetView                                              
               Discussions                                                
            <nv-l@lists.ca.ib                                            
                 m.com>                                                  
                                                                         
                                                                         




It's unlikely that you can just cut-and-paste a ruleset together that works
on Windows. You'll need to go to UNIX and use the editor to create a
ruleset there that ends in an Inline action, because regular Actions don't
exist on Windows. If you trace nvcord, you'll see an error message in the
log that says they are supported if you try to use one.

event stream (block) --> TrapSettings --> QuerySmartset --> In-line action

The action would look something like this

<netview drive>:\usr\ov\bin\nvmail.exe -server mysnmtp.mailserver.com
-recipient jshanks@us.ibm -subject "test message" -message "This is just a
test"

but I'd put it in a bat file you keep in /usr/OV/bin and just call that,
like this
<netview drive>:\usr\ov\bin\my_mail.bat

Once you get this working, you can try substituting trap variables into the
thing, such as
<netview drive>:\usr\ov\bin\my_mail.bat $NVA
and in the bat file
-message "Host %1 has gone down."

HTH,

James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Network Availability Management
Network Management - Development
Tivoli Software, IBM Corp
(Embedded image moved to file: pic31107.gif)Inactive hide details for
ronald.ross@springswindowfashions.comronald.ross@springswindowfashions.com

                                                                         
                        ronald.r                                          
                        oss@spri                                          
                        ngswindo                                          
                        wfashion (Embedded image moved to file:          
                        s.com    pic30191.gif)                            
                        Sent by:                                       To
                        nv-l-bou         (Embedded image moved to file:  
                        nces@lis         pic18007.gif)                    
                        ts.ca.ib         Tivoli NetView Discussions      
                        m.com            <nv-l@lists.ca.ibm.com>          
                                 (Embedded image moved to file:          
                                 pic11337.gif)                            
                        09/25/20                                       cc
                        06 02:05         (Embedded image moved to file:  
                        PM               pic15457.gif)                    
                                         Tivoli NetView Discussions      
                                         <nv-l@lists.ca.ibm.com>,        
        Please respond to                nv-l-bounces@lists.ca.ibm.com    
   Tivoli NetView Discussions    (Embedded image moved to file:          
     <nv-l@lists.ca.ibm.com>     pic12287.gif)                            
                                                                  Subject
                                         (Embedded image moved to file:  
                                         pic27753.gif)                    
                                         [NV-L] Email Rule for Windows    
                                         7.1.4                            
                                                                         
                                                                         
                                 (Embedded image moved to file:          
                                 pic10383.gif)                            
                                           (Embedded image moved to file:
                                           pic14945.gif)                  
                                                                         
                                                                         



Does anyone have the syntax of the Action that would call the nvmail
program?





James,
The short story is, I have a working rule with NetView on AIX 7.1.4.
Basically the rule checks to see if object in event is a member of a
Smartset and then sends out an e-mail.

When I move the rule to Windows and have the Smartsets created just like
AIX, nothing happens.  I have tried to change the e-mail command in the
rule to match what windows requires, but still nothing.  If I manully run
nvmail, I can get mail sent to someone.  Just can not make it go from the
rule.

That's why I was looking for a sample rule that really works to see what
syntax was making it work.  Maybe I am missing a backslash or something.




           James Shanks
           <jshanks@us.ibm.c
           om>                                                        To
           Sent by:                  Tivoli NetView Discussions
           nv-l-bounces@list         <nv-l@lists.ca.ibm.com>
           s.ca.ibm.com                                               cc

                                                                 Subject
           09/22/2006 02:10          Re: [NV-L] Email Rule for Windows
           PM


           Please respond to
            Tivoli NetView
              Discussions
           <nv-l@lists.ca.ib
                m.com>






Using, and creating, rulesets for Windows is difficult so most people just
drive the command or a bat file from Trap Settings. Since there's no
ruleset editor most folks have to create them on UNIX first and then modify
them with Wordpad on Windows. The you have to start nvcord with that rule
active. And since Windows does not have an actionsvr process, the ruleset
would use an in-line action run by nvcord himself, something like this,
TrapSettings ==> In-line action

This would be suicide on UNIX because nvcorrd is right in the middle of the
event flow in the UNIX architecture, but on Windows, he 's optional. He
only sees the traps after they have been stored in the ODBC database.

NetView for Windows provides the nvmail command so you can send mail to an
SMTP server, or you can do it yourself with Perl. Either way you usually
have to write a script of some sort and if your ruleset is not more
complicated than what I showed above, then you might as well just run it as
a hidden command by trapd.

Are you having problems with nvmail?

James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Network Availability Management
Network Management - Development
Tivoli Software, IBM Corp
(Embedded image moved to file: pic00483.gif)Inactive hide details for
ronald.ross@springswindowfashions.comronald.ross@springswindowfashions.com


                       ronald.ross@s
                       pringswindowf
                       ashions.com
                       Sent by:      (Embedded image moved to file:
                       nv-l-bounces@ pic24607.gif)
                       lists.ca.ibm.                                  To
                       com                    (Embedded image moved to
                                              file: pic23862.gif)
                                              Tivoli NetView Discussions
                       09/22/2006             <nv-l@lists.ca.ibm.com>
                       02:45 PM      (Embedded image moved to file:
                                     pic18750.gif)
                                                                      cc
         Please respond to                    (Embedded image moved to
     Tivoli NetView Discussions               file: pic06952.gif)
      <nv-l@lists.ca.ibm.com>        (Embedded image moved to file:
                                     pic25492.gif)
                                                                 Subject
                                              (Embedded image moved to
                                              file: pic03910.gif)
                                              [NV-L] Email Rule for
                                              Windows


                                     (Embedded image moved to file:
                                     pic32513.gif)
                                             (Embedded image moved to
                                             file: pic04681.gif)





Does anyone have a simple rule for NetView 7.1.4 for windows that can send
an e-mail?  I can make it work for AIX but not windows.

please send to:
Ronald.Ross@springswindowfashions.com

Thanks

_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
(Embedded image moved to file: pic16435.gif)
_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)


_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
(Embedded image moved to file: pic08909.gif)
_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
(See attached file: pic31107.gif)(See attached file: pic30191.gif)(See attached file: pic18007.gif)(See attached file: pic11337.gif)(See attached file: pic15457.gif)(See attached file: pic12287.gif)(See attached file: pic27753.gif)(See attached file: pic10383.gif)(See attached file: pic14945.gif)(See attached file: pic08909.gif)_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)

GIF image

Attachment: pic31107.gif
Description: GIF image

Attachment: pic30191.gif
Description: GIF image

Attachment: pic18007.gif
Description: GIF image

Attachment: pic11337.gif
Description: GIF image

Attachment: pic15457.gif
Description: GIF image

Attachment: pic12287.gif
Description: GIF image

Attachment: pic27753.gif
Description: GIF image

Attachment: pic10383.gif
Description: GIF image

Attachment: pic14945.gif
Description: GIF image

Attachment: pic08909.gif
Description: GIF image

_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)
<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web