nv-l

RE: [nv-l] automatic action command in "option/event configuratio n/trap cust . snmp"

2002-04-16 09:46:52
Subject: RE: [nv-l] automatic action command in "option/event configuratio n/trap cust . snmp"
From: "D'Apice, Dominic" <D.D'Apice AT SAQ.qc DOT ca>
To: "'James Shanks'" <jshanks AT us.ibm DOT com>, nv-l AT lists.tivoli DOT com
Date: Tue, 16 Apr 2002 09:46:52 -0400
thank you James 

the reference parameter was my error. (=> $1 as $1 but $e as $2, $G, as $3,
and $S as $4.)

thank you to help me, i really appreciate again.

Dominic

-----Message d'origine-----
De : James Shanks [mailto:jshanks AT us.ibm DOT com]
Envoyé : 16 avril, 2002 09:32
À : nv-l AT lists.tivoli DOT com
Objet : Re: [nv-l] automatic action command in "option/event
configuration/trap cust . snmp"


Dominic -

Please read the man page on trapd.conf.  The way to reference trap 
variables is explained there.
The enterprise is referenced as $E (the name) or $e (the OID), the 
specific trap number as "$S", the generic as $G 
I am not sure what you mean by "TYPE"  so I cannot comment on that.

Inside your script of course, you must reference these passed variables 
positionally, in the order in which you passed them.
So if you call your script  like this : /usr/OV/netscripts/fwscript.sh "$1"
$e  $G $S
Then inside the script you would reference 
$1 as $1 but
$e as $2, $G, as $3, and $S as $4.

Hope this helps

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
 





"D'Apice, Dominic" <D.D'Apice AT SAQ.qc DOT ca>
04/16/2002 09:20 AM

 
        To:     "'nv-l AT lists.tivoli DOT com'" <nv-l AT lists.tivoli DOT com>
        cc: 
        Subject:        [nv-l] automatic action command in "option/event
configuration/trap cust . 
snmp"

 

hello all, aix4.3.3 nv 7.1

 I add a specific trap for a vendor, in option/event configuration/trap
cust. snmp .

now i would like to execute a automatic command in "automatic command 
filed"
(send netview trap to tec with a ksh script)

like this : /usr/OV/netscripts/fwscript.sh "$1" "$ENTERPRISE"

the $1 represent the only parameter that the vendor send to netview (it
work)
but il a would like to send to the tec other parameters like enterprise id 
,
specific trap and generic trap
 that netview has, but when i put this parameter it won't go to the tec

it try to but also $G $S $TYPE $SPECIFIC but it does'nt work

can someone tell me what should i put fo enterprise id, specific trap
parameter ?
----------------------------------------------------------------------------
------------------------------------------------------

my scripts is 

# Essaie d'un script pour le traitement des alertes du firewal de la SAQ
# Auteur : Dominic D'Apice
# Date   : 15 avril 2002
# Nom    : fwscript.sh
# ----------------------------------------------------------------------

# Variables
# ---------

FWalertes="$1"                                                     # il s
agit du message du firewall passé en parametre
enterprise="$ENTERPRISE"                                   # il s agit du
no. de l entreprise de la trap du firewall
#generic="$TYPE"                                                 # il s 
agit
du no. generique de la trap du firewall
#specific="$SPECIFIC"                                          # il s agit
du no. specifique de la trap du firewall
postcmd="/usr/OV/netscripts/postemsg"                 # commande postemsg
pour envoyer le message a la tec

# Main
# ----

# envoie le contenu de la variable FWalertes par email
# echo $FWalertes | mailx -s "$FWalertes Entreprise: $enterprise 
Generique:
$generic Specifique: $specific" "d.d'apice AT saq.qc DOT ca"

# execution de la commande postemsg avec le parametre FWalertes
$postcmd -S aixtivlab1  -m "$FWalertes" nv_enterprise="$ENTERPRISE"
Nvserverd_Event sxpcmc0001

set >> /tmp/fwscript2
# "nv_enterprise" represent the slot_name in nvserverd.baroc (class)



thank in advance
> Dominic D'Apice
> Technicien informatique (OGEINF)
> * D.D'Apice AT saq.qc DOT ca
> 
> 

---------------------------------------------------------------------
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>
  • RE: [nv-l] automatic action command in "option/event configuratio n/trap cust . snmp", D'Apice, Dominic <=