Networker

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

2009-05-14 12:46:07
Subject: Re: [Networker] How to get a list of license enablers on Linux
From: "Werth, Dave" <dave.werth AT GARMIN DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 14 May 2009 09:34:10 -0700
Stan,

I tried this on our Solaris 7 system and got the message:

        syntax error at line 4 : `'' unmatched

The apostrophe in the awk command needs a match to close the quotation.

Dave Werth
Garmin AT, Inc.
Salem, Oregon
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On 
Behalf Of Stan Horwitz
Sent: Thursday, May 14, 2009 9:08 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] How to get a list of license enablers on Linux

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

This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient. If you are not the intended recipient, please be 
aware that any disclosure, copying, distribution or use of this e-mail or any 
attachment is prohibited. If you have received this e-mail in error, please 
contact the sender and delete all copies.

Thank you for your cooperation

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