NetWorker: 사용자 지정 로그 롤오버 규칙을 만드는 방법

Summary: NetWorker Server에서 "nsradmin" 명령을 사용하여 로그가 커지지 않고 롤오버되도록 설정하도록 NetWorker 로그 설정을 생성합니다.

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

최대 크기 변경 범위는 10MB에서 4000MB 사이입니다.
  1. 롤오버를 수행할 로그에 대한 새 규칙을 생성합니다.
[root@nsr logs] # nsradmin -p nsrexecd

NetWorker 관리 프로그램
도움말을 보려면 "help" 명령을 사용하고, 전체 화면 모드의 경우 "visual" 명령을 사용합니다.

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. 생성한 로그 롤오버 규칙을 선택합니다.
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. 변경할 설정(예: 최대 로그 크기)을 지정합니다.
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. 규칙을 다시 나열하여 성공적으로 변경되었는지 확인합니다.
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

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.