"Philippe Menard" <PME@fr.ibm.com> writes:
> All,
> NV 7.1.3, AIX 4.3.3
> please could someone explain how to use the AdditionalLegalTrapCharacters
> environment variable
> so that ovactiond stops converting some non-alphanumerics with underscores.
> Is it as simple as adding the following to netnmrc.pre ?
> AdditionalLegalTrapCharacters="/:"
> export AdditionalLegalTrapCharacters
Yes. And then
# ovstop
# ovstop nvsecd
# /etc/netnmrc
> I really need theses two characters because I can find no way to
> provide scripts with the real name of interfaces in case of
> Interface Down events. My scripts get names such as "Serial4_0_0"
> which depending on devices could be "Serial4/0/0" or
> "Serial4/0:0". Also the Interface Down event contains no ifIndex
> that could be used to snmpget back to the device ... Best regards,
> Philippe.
In your scripts you will have to do sed replacements to replace \/
with / and \: with :
You're wise to only allow those characters that you specifically
need.
Now, there is a way to get rid of all backslashes and get back to the
"good old days," but it will make your scripts vulnerable to the CERT
alert attack this functionality prevents...but it's certainly not
something I'd recommend. It's a trivial root compromise by sending a
single unsolicited SNMP trap, however!
--
jb
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.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)
|