Its that time of year again where I need to begin the process to renew our
annual NetWorker update agreement. I have two NetWorker servers, one on
Linux and one on Solaris.
For some reason, when I run the following script on Linux to generate a list
of my NetWorker 7.4.4 licenses, I get a syntax error:
echo "show name; enabler code; auth code
print type:NSR license" | nsradmin -i - | \
egrep -v "^$" | sed -e 's/^[ \t]*//' -e 's/;//g' | \
awk -F":" '($1 ~ /^name*/) { printf("%s ;",$2) }
($1 ~ /^enabler*/) { printf("%s ;",$2) }
($1 ~ /^auth*/) { printf("%s\n",$2) }
But it works fine on Solaris 10 to give me a list of licenses for NetWorker
7.4.1. I am not much for scripting so I am mystified as to why this simple
script works on Solaris 10, but not Red Hat Linux.
If anyone has any idea how to fix this, or a better way to generate a list
of licenses (license name, enabler, and auth code), please let me know.
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|