cancel
Showing results for 
Search instead for 
Did you mean: 

CMD to get list of server whose license have expired

Titus_Bandugula
Level 4
Certified

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

1 ACCEPTED SOLUTION

Accepted Solutions

Titus_Bandugula
Level 4
Certified

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

View solution in original post

9 REPLIES 9

Backup_Exec1
Level 6
Employee Accredited Certified
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

Marianne
Level 6
Partner    VIP    Accredited Certified

get_license_key needs logon to each media server. 

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

Marianne
Level 6
Partner    VIP    Accredited Certified

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.

Titus_Bandugula
Level 4
Certified

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
Level 6
Partner    VIP    Accredited Certified

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?

watsons
Level 6

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

 

Titus_Bandugula
Level 4
Certified

Thanks alot guys for your help

Marianne
Level 6
Partner    VIP    Accredited Certified

Please let us know if your issue is resolved?

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

Titus_Bandugula
Level 4
Certified

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