Alert Log Policy



Example Overview

AlertLogPolicy is used to control the number of alerts in the database.  You can specify the Alert count, and  if the number of alerts exceeds the specified count, the older alerts will get deleted from the database. This is done in order to maintain the specified count in the database.

Note : The source code will have comment statements in it, which will explain to you the different segments of the program.

Sample Output

Troubleshooting Tips

For optimal performance of Web NMS, it is recommended to set the Log Size above 1000. Setting of Log size below 100 results in more database operations and client updates which has a bearing on performance.

Broader Scope of the Example

A similar policy can also be written to control the number of managed objects in the database.

Copyright © 1996-2002, AdventNet Inc. All Rights Reserved.