Release Notes
-
New Features - Sample Perl Scripts -
Previous: ncdb2html.pl
Next: OVPA
Sample Perl Scripts
Included in the NerveCenter 3.8 distribution is sample code that may be useful in implementing NerveCenter. The sample code requires modifications to work in your environment.
- syslogd.pl -- Located in the in the installation/Sample/syslog directory, this Perl script binds to UDP port 514 and processes incoming syslog messages as they arrive. These syslog events are then converted into an SNMP trap and can be forward to NerveCenter for processing. To make this script work for your environment, you need to update the portion of the script that specifies the SNMP host, agent, community string, port, etc. Included in the directory is a sample behavior model providing a trap mask to receive the traps generated by syslogd.pl, as well as a simple Alarm Diagram to transition when a trigger is fired.
- logreader.pl -- Located in the installation/Sample/logfile directory, this script reads specified log files and converts log lines to traps. As files are rotates or truncated, the script attempts to reopen the file. To make this script work for your environment, you need to update the portion of the script that specifies the SNMP host, agent, community string, port, etc. as well as the portion of the script that specifies the input files. Included in the directory is a sample behavior model providing a trap mask to receive the traps generated by logreader.pl, as well as a simple Alarm Diagram to transition when a trigger is fired.
- trapexp.pl -- Located in the installation/Sample/trapexp directory, this Perl script is a simple trap exploder. It binds to UDP port 162 and collects traps as they arrive. The datagrams may be resent to other management stations. You need to specify the list of trap destinations and port numbers for this script to operate in your environment.
In order to use this script on a machine running an application that also listens for traps on port
162, such as NerveCenter or OpenView, you must modify the script to listen to a port other
than 162.
Previous: ncdb2html.pl
|
Next: OVPA
|
|
This file was last updated on 20 February 2004
|