NetWorker: How to Create Customized Log Rollover Rules

Summary: Use the "nsradmin" command on the NetWorker server to create a NetWorker log setting to set the logs to roll over rather than letting them grow.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

The range for the maximum size change is between 10 MB to 4000 MB.
  1. Create a new rule for any logs to perform rollover.
[root@nsr logs] # nsradmin -p nsrexecd

NetWorker administration program
Use the "help" command for help, "visual" for full-screen mode.

nsradmin> create type: NSR log; log path: /nsr/logs/rap.log     (change the path for the log as needed)
                        type: NSR log;
                    log path: /nsr/logs/rap.log;
Create? y
created resource id 12.0.48.172.0.0.0.0.110.201.50.103.192.168.9.150(1)
  1. Select the log rollover rule that we created.
nsradmin> p type: nsr log; log path: /nsr/logs/rap.log
                        type: NSR log;
               administrator: root, "user=nsrnmc,host=nsr.amer.lan",
                              "user=root,host=nsr.amer.lan";
                       owner: NetWorker;
             maximum size MB: 500;
            maximum versions: 10;
        runtime rendered log: ;
    runtime rollover by size: Disabled;
    runtime rollover by time: ;
                        name: rap.log;
                    log path: /nsr/logs/rap.log;
  1. Specify the settings that you want to change, for example, maximum log size.
nsradmin> update maximum size MB: 10
             maximum size MB: 10;
Update? y
updated resource id 12.0.8.7.0.0.0.0.254.158.45.103.192.168.9.150(5)
  1. List the rule again to confirm the change was made successfully.
nsradmin> p
                        type: NSR log;
               administrator: root, "user=nsrnmc,host=nsr.amer.lan",
                              "user=root,host=nsr.amer.lan";
                       owner: NetWorker;
             maximum size MB: 10;
            maximum versions: 10;
        runtime rendered log: ;
    runtime rollover by size: Disabled;
    runtime rollover by time: ;
                        name: rap.log;
                    log path: /nsr/logs/rap.log;

Additional Information

See related articles:

Affected Products

NetWorker Family
Article Properties
Article Number: 000247424
Article Type: How To
Last Modified: 13 Nov 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.