Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

CMD to get list of server whose license have expired

Created: 01 Sep 2012 • Updated: 17 Sep 2012 | 9 comments
This issue has been solved. See solution.

Hi All,

Kindly let me know if there is any command where i can get the list of clients (Unix & Windows) whose license keys have expired from the NBU master.

Master Server : - Sun Solaris 10

Netbackup Version : 6.5.4 across the environment

Comments 9 CommentsJump to latest comment

Backup_Exec's picture

Hi

On UNIX and Linux, use the following command on the server:/usr/openv/netbackup/bin/admincmd/get_license_key Select option f to list the active license keys and features. If the evaluation key is not listed, the key has expired. Use this command to add the new permanent encryption key.

Taken from the link http://www.symantec.com/docs/HOWTO50823

Check this too

http://www.symantec.com/docs/HOWTO13917

Thanks

Sameer

Don't forget to give a "Thumbs Up" or Mark as "Solution" if someones advice has helped you.

Marianne's picture

get_license_key needs logon to each media server. 

The question was how to do this from cmd on master server.....

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Marianne's picture

Titus, you can possibly try bpminlicense command.

 

/usr/openv/netbackup/bin/admincmd/bpminlicense [-path license_key_file |
-M server] [-debug] [-verbose] [-list_keys] [-nb_features |
-sm_features]
/usr/openv/netbackup/bin/admincmd/bpminlicense [-path license_key_file |
-M server] [-debug] [-verbose] -find_keys | -delete_keys | -add_keys
keystring1 .. keystringn
/usr/openv/netbackup/bin/admincmd/bpminlicense -nb_ufid fid [-debug]
[-verbose]
 
So, to check license keys on a media server, try the following:  
 
bpminlicense -M media-server -verbose -list_keys
 
See NBU 6.5 Commands for Unix/Linux  for detailed info on this command.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Titus Bandugula's picture

Hi Marianne,

Thanks alot but I have around 300 media servers and using the -M <server name> option will be timely as I would also have to check if the license is expired or valid.

Is there any other command which can directly list the media servers whose licenses are in-active.

Marianne's picture

Try nbemmcmd -listhosts -verbose

Media servers with valid license keys will say : Active for Disk and Tape

Not sure what output will look like if no active license key.

Maybe save output to a file, browse through output until you find a media server with 'different' output.
You can then use egrep to get media server name and the line containing 'different' output.

PS: Why do think license keys have expired? Have you been running this size of environment with demo keys? Permanent keys are exactly that - they never expire, even if maintenance contract has expired.

One more note: Are you aware that NBU 6.x will reach EOSL in exacly one month?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

watsons's picture

Even if it takes time, if you really want to get down to which media server was having license (expired) issues, it's better to login to those media servers to check using bpminlicense.

nbemmcmd -listh -verbose might be helpful but it's not fullproof.

Other errors such as 159 (during backup or restore) could show license error, but this is hardly seen - and it won't report expired license keys for you: http://www.symantec.com/docs/TECH43038

 

Marianne's picture

Please let us know if your issue is resolved?

If so, please select the post that has helped you most and Mark As Solution.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Titus Bandugula's picture

Hi All,

I used the following command to get the list of media server whose license have expired.

bpminlicense -M <media server > -nb_ufid 20 -debug -verbose

nbu_ufid 20 == is the netbackup feature id for Base NetBackup which should be active on all the media servers. The servers / clients with no output were the one's whose license have expired.

 

-nb_ufid
SOLUTION