From within CiscoWorks, we are able to run "command-line" actions based on identified syslog messages. Currently I am attempting to form a SNMP trap based on information passed from the CiscoWorks utility into a perl script. BUT, I am hitting the command-line 255 character limitation on some of the syslog messages, thus my "automatic action" is failing.
/opt/CSCOpx/bin/perl /opt/CSCOpx/contrib/trapgen.pl $D <facility> <severity> <mnemonic> $M
$D = fully qualified device name from which the syslog message generated
$M = full text of actual syslog message
The $M variable can contain any number of characters, based upon what is contained in the actual syslog message.
Do you know of any way I would be able to work around this?
TIA for any ideas/help.