Rendering NetWorker logs in realtime

With the release NetWorker 7.4, language-neutral logs (.raw) log files were introduced (basically daemon.log became daemon.raw). According to EMC the purpose behind this change was to allow customers using one language pack to send a language-neutral log to support engineers who could then render the logfile locally and understand the output.

There is a facility to render the logs on the fly via command-line (nsr_render_log). But if you want to always be able to interragate the daemon.log then we need to turn on realtime rendered log.

To setup realtime log rendering, you need to run nsradmin against the client daemon (either on the NetWorker server or another machine), for example:

# nsradmin -p 390113 -s smurf
NetWorker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin> print type: nsr log
                        type: NSR log;
               administrator: "user=root,host=localhost";
                       owner: Sun StorageTek(TM) Enterprise Backup;
             maximum size MB: 2;
            maximum versions: 10;
        runtime rendered log: ;
                        name: daemon.raw;
                    log path: /nsr/logs/daemon.raw;
nsradmin>

To update the log setting to generate a rendered log in realtime, we simply issue the following command:

nsradmin> update runtime rendered log: /nsr/logs/daemon.log
runtime rendered log: /nsr/logs/daemon.log;
Update? y

So now in the output we can see:-

nsradmin> print type: nsr log
                        type: NSR log;
               administrator: "user=root,host=localhost";
                       owner: Sun StorageTek(TM) Enterprise Backup;
             maximum size MB: 2;
            maximum versions: 10;
        runtime rendered log: /nsr/logs/daemon.log;
                        name: daemon.raw;
                    log path: /nsr/logs/daemon.raw;
nsradmin>

To recap, all your doing is updating the runtime rendered log filed on the the nsr log resource for daemon.raw. Then restart the NetWorker services and your done.

You can create a runtime rendered log file of any log, by specifing the name after name: . The most common of course would be the daemon.log, so I listed that here