NetWorker: nsrwatch and nsradmin report "Error opening terminal: xterm-256color"
Summary: After upgrading to v19.7 or later, nsrwatch and nsradmin do not work.
Symptoms
NetWorker is installed on a Red Hat 9.x server.nsrwatch and nsradmin commands return the following error:[root@nwserver]# nsrwatch
Error opening terminal: xterm-256color.
Cause
This is related to the system TERM configuration, for example:[root@nwserver]# echo $TERM
xterm-256color
Red Hat 9+ stopped providing /usr/lib64/libncursesw.so. NetWorker nsrwatch uses an integrated version of libncursesw.a.
v5.5 libncursesw.a should be fine on any Red Hat system. However, if you have a terminfo entry, like xterm-256color, modified to work with a version later than 5.5, the integrated v5.5 libncursesw.a of nsrwatch cannot parse the terminfo entry.
Resolution
Workaround 1 (temporary):
Change TERM first, for example, to vt220.
[root@nwserver]# TERM=vt220
[root@nwserver]# nsrwatch
(works ok)
Workaround 2 (persistent):
Use the /usr/share/terminfo/<directory>/<TERM> file from the prior Red Hat operating system.