nv-l

RE: [nv-l] addtrap command

2003-01-29 06:21:34
Subject: RE: [nv-l] addtrap command
From: David.Hustace AT tavve DOT com
To: nv-l AT lists.tivoli DOT com
Date: Tue, 28 Jan 2003 09:03:29 -0500
Scott,

Never worked with addtrap... I'm guessing here... Do you need to escape the
newline sequence on the following line?:

Change this:
-F '$E $G $S $# args: $*'
-C "/usr/bin/logger -plocal1.info Tape Library Event:

To this:
-F '$E $G $S $# args: $*' \
-C "/usr/bin/logger -plocal1.info Tape Library Event:




                                                                                
                                                        
                      "Bursik, Scott                                            
                                                        
                      {PBSG}"                  To:       "'Jane Curry'" 
<jane.curry AT skills-1st.co DOT uk>, nv-l AT lists.tivoli DOT com            
                      <Scott.Bursik@pbs        cc:                              
                                                        
                      g.com>                   Subject:  RE: [nv-l] addtrap 
command                                                     
                                                                                
                                                        
                      01/27/2003 09:02                                          
                                                        
                      AM                                                        
                                                        
                                                                                
                                                        




I thought the -C looked like the right one myself but here is what happens
when I try and load with -C option.

Here is the portion of the addtrap script:

/usr/OV/bin/addtrap -l ibm3584Trap001 -g 6 -s 1 \
   -n ibm3584MIBTraps -i 1.3.6.1.4.1.2.6.182.1.0 \
   -o A  -c "LOGONLY" -t 0 \
   -S 1  \
   -D "Trap for library tape alert 001.
Flag: Library hardware A
Type: C
Cause: The changer mechanism is having trouble communicating with the
internal drive.
Required host message:
The library mechanism is having difficulty communicating with the drive:
1. Turn the library off then on.
2. Restart the operation.
3. If the problem persists, call the library supplier helpline."  \
   -e ibm3584Trap001  \
   -F '$E $G $S $# args: $*'
   -C "/usr/bin/logger -plocal1.info Tape Library Event:
From:$A,$1,$2,$3,$4,$5,$6,$7"

And here is the output:

[pbsxst00007][/usr/OV/tmp]>3584.addtrap.sh
Trap ibm3584Trap001 has been added.
3584.addtrap.sh[17]: -C:  not found.


Scott Bursik
Event Systems Management
Pepsico Business Solutions Group
(972) 334-3757
scott.bursik AT pbsg DOT com



-----Original Message-----
From: Jane Curry [mailto:jane.curry AT skills-1st.co DOT uk]
Sent: Saturday, January 25, 2003 6:23 AM
To: Bursik, Scott {PBSG}
Subject: Re: [nv-l] addtrap command

My man command says use -C for the command parameter,
Cheers,
Jane

Bursik, Scott {PBSG} wrote:

> NetView 7.1.3 AIX 4.3.3
>
> Using the addtrap command or editing the script produced by the
> mib2trap utility, how do I add the "Command for Automatic Action"?
>
> I am reading the man pages and I don't see what letter I should use in
> my command usage. I know I have done this in the past.
>
> Thanks,
>
> Scott Bursik
> Event Systems Management
> Pepsico Business Solutions Group
> (972) 334-3757
> scott.bursik AT pbsg DOT com
>

--
Tivoli Certified Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2003 Jane Curry <jane.curry AT skills-1st.co DOT uk>.  All rights
reserved.


---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)





---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


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