Networker

[Networker] How to get a list of license enablers on Linux

2009-05-14 12:16:46
Subject: [Networker] How to get a list of license enablers on Linux
From: Stan Horwitz <stan AT TEMPLE DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 14 May 2009 12:08:19 -0400
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