[nv-l] automatic action command in "option/event configuration/trap cust . snmp"
2002-04-16 09:20:40
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
>
>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [nv-l] automatic action command in "option/event configuration/trap cust . snmp",
D'Apice, Dominic <=
|
|
|