A.5 DotOutParser Utility

The DotOutParser utility (/opt/novell/ncs/bin/dotoutparser.pl) prints summaries of failed or incomplete events that have been recorded in a specified /var/opt/novell/log/ncs/ <resource_name>.<script>.out log file. It also prints output (if any) from any commands that failed or got stuck. You can include ignored errors if desired. Line numbers allow you to easily refer the summary output to the source lines in the *.out file. You can omit the line numbers if desired.

The verbosity level controls the amount of information printed to the summary. The higher the level of verbosity you specify, the more information you get in the summary output.

A.5.1 Syntax

At the command prompt on the cluster node, enter the following command as the root user:

/opt/novell/ncs/bin/dotoutparser.pl [-a] [-n] [-i] [-v|-vv|-vvv|-vvvv] <file_name|->

You can copy the /var/opt/novell/log/ncs/ <resource_name>.<script>.out log file of interest to a working location, then execute the command on the copy.

A.5.2 Options

-?, -h, --help

Print usage and exit.

file_name|-

(Mandatory) Specify the *.out log file to be parsed, or specify - (hyphen) for standard input.

/var/opt/novell/log/ncs/<resource_name>.<script>.out

-a

(Optional) Print all records in the specified file.

-n

(Optional) Do not add line numbers to the summary output.

-i

(Optional) Print ignored errors in addition to the failed or incomplete events.

-v, -vv, -vvv, -vvvv

(Optional) Specify the verbose level (1 to 4). The higher the level of verbosity you specify, the more information you get in the summary output.

-v

(Default) Print the entries with plus (+) variable assignments.

-vv

Print the -v level entries and entries starting with ++ (sub-command).

-vvv

Print the -vv level entries and entries starting with +++ (more sub-command).

-vvvv

Print all entries in the specified file.

A.5.3 Example

# /opt/novell/ncs/bin/dotoutparser.pl /usr/src/temp/POOL_09_SERVER.load.out

Fri May  3 11:51:59 2013 (#1):
2: + exit_on_error nss /poolact=POOL_09
9: + return 0
10: + exit_on_error ncpcon mount VOL_092=237
25: + return 0
26: + exit_on_error ncpcon mount VOL_091=238
41: + return 0
42: + exit_on_error add_secondary_ipaddress 192.168.1.9
94: + return 0
95: + exit_on_error ncpcon bind --ncpservername=CLUSTER1_POOL_09_SERVER --ipaddress=192.168.1.9
97: ++ ncpcon bind --ncpservername=CLUSTER1_POOL_09_SERVER --ipaddress=192.168.1.9
98: ... Executing " bind"
99:
100: Cannot bind server, failure reason = -632
101:
102: ... FAILED completion [elapsed time = 20 Seconds 2 msecs 671 usecs]
107: + exit 1