1 Reply Latest reply on Feb 28, 2005 4:47 PM by Greg Kullberg

    Quick tip: Checking RSCD logs remotely with logman

    Sean Berry

      Some of the more experienced may be familiar with the logman tool. I was not, and Kevin educated me this morning. We had an rscd.log file we couldn't read, even though we apparently had read access to it.

       

      The problem is: when checking the rscd logs remotely from nsh, we're also using the rscd agent as transport. The commands to check the logs are also being written to the log at the same time. This can apparently cause problems, hence the logman tool.

       

      At any nsh prompt, type "logman -h" and get the usage for this handy tool.

       

      Common syntax looks like:

       

      bl1d% logman cat //blrpt01/c/rsc/rscd.log

       

      gemsbl1d% logman -h

      Usage: logman tail NSH_logfile

      -f Tail forever

      -n Number of lines to tail

       

      Usage: logman list hostname

       

      Usage: logman rotate NSH_logfile

       

      Usage: logman copy source_NSH_logfile dest_file

       

      Usage: logman cat -1 -h host

      -1 Show INFO/INFO1 log entries only (includes -M) (default is all)

      -2 Show INFO2 log entries only (default is all)

      -M Show transactional log entries only (subset of -1)

      -d Outout in CSV format for database input

      -h host Get all logfiles from host

      -s file Get starting points from file

      -l file Save ending points in file

      -f file Load list of hosts from file

       

      See also general usage: logman -h

      gemsbl1d%

        • 1. Re: Quick tip: Checking RSCD logs remotely with logman

          I usually add these two Local Tabular Custom Commands to Config Manager for logman:

           

          1. Logman (line sorted)

          Command: logman cat -h %h

          Associations: Servers

          Operating Systems: All servers

          Format Options: uncheck "Use table headers"

          Command Options: check "Run command once against all hosts" and "The command will execute without the option to select additonal hosts"

           

          2. Logman (column sorted)

          Command: logman cat -d -h %h

          Associations: Servers

          Operating Systems: All servers

          Format Options: uncheck "Use table headers", separator = SPACE

          Command Options: check "Run command once against all hosts" and "The command will execute without the option to select additonal hosts"