01-04-2016 01:26 AM
NBU 7.6.0.3
in Catalog/Search, if i list all my tape for the year 2014 it doesn't show any "Data Expiration" column. just a "Date" column.
how does one first check the expiration date of a tape, in catalog, before actually expiring it manually?
Solved! Go to Solution.
01-04-2016 04:05 AM
nbemmcmd command can show the last written time and media ID ...
root@womble 1451000000 $ nbemmcmd -listmedia -allrecords
NBEMMCMD, Version: 7.6.1.2
====================================================================
Media GUID: 44200f12-a976-11e5-8000-be3751675b58
Media ID: A00001 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Partner: -
Media Type: HCART
Volume Group: ---
Application: Netbackup
Media Flags: 1
Description: ------
Barcode: --------
Partner Barcode: --------
Last Write Host: womble
Created: 12/23/2015 13:08
Time Assigned: 01/04/2016 12:04
First Mount: 12/23/2015 13:09
Last Mount: 01/04/2016 12:04
Volume Expiration: -
Data Expiration: 01/11/2016 12:04
Last Written: 01/04/2016 12:04 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Last Read: -
Robot Type: NONE
Robot Control Host: -
Robot Number: -
Slot: -
Side/Face: -
Cleanings Remaining: -
Number of Mounts: 2
Maximum Mounts Allowed: 0
Media Status: ACTIVE
Kilobytes: 352
Images: 1
Valid Images: 1
Retention Period: 0
Number of Restores: 0
Optical Header Size Bytes: 1024
Optical Sector Size Bytes: 0
Optical Partition Size Bytes: 0
Last Header Offset: 6
Adamm Guid: 00000000-0000-0000-0000-000000000000
Rsm Guid: 00000000-0000-0000-0000-000000000000
Origin Host: NONE
Master Host: womble
Server Group: NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number: 1
Volume Pool: NetBackup
Previous Pool Name: -
Vault Flags: -
Vault Container: -
Vault Name: -
Vault Slot: -
Session ID: -
Date Vaulted: -
Return Date: -
Media on Hold: 0
01-04-2016 02:36 AM
if you are looking for specific media, you can look for the date expiry date in GUI--> Media in medias you can find the data expiry date tab.. you can look for this tab to find the last images expire date of that particualr tape.
if you are looking for specific image or list of images , you can run the below command to find the expire date of the images
bpimagelist -backupid <backupid> -U
01-04-2016 04:03 AM
well that's the thing. i don't know the specific media IDs that were used nor the backup IDs. i just want all tapes used in 2014 to be manually expired.
EDIT: except the 2014 year end backup which i also don't know to which media it went.01-04-2016 04:05 AM
nbemmcmd command can show the last written time and media ID ...
root@womble 1451000000 $ nbemmcmd -listmedia -allrecords
NBEMMCMD, Version: 7.6.1.2
====================================================================
Media GUID: 44200f12-a976-11e5-8000-be3751675b58
Media ID: A00001 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Partner: -
Media Type: HCART
Volume Group: ---
Application: Netbackup
Media Flags: 1
Description: ------
Barcode: --------
Partner Barcode: --------
Last Write Host: womble
Created: 12/23/2015 13:08
Time Assigned: 01/04/2016 12:04
First Mount: 12/23/2015 13:09
Last Mount: 01/04/2016 12:04
Volume Expiration: -
Data Expiration: 01/11/2016 12:04
Last Written: 01/04/2016 12:04 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Last Read: -
Robot Type: NONE
Robot Control Host: -
Robot Number: -
Slot: -
Side/Face: -
Cleanings Remaining: -
Number of Mounts: 2
Maximum Mounts Allowed: 0
Media Status: ACTIVE
Kilobytes: 352
Images: 1
Valid Images: 1
Retention Period: 0
Number of Restores: 0
Optical Header Size Bytes: 1024
Optical Sector Size Bytes: 0
Optical Partition Size Bytes: 0
Last Header Offset: 6
Adamm Guid: 00000000-0000-0000-0000-000000000000
Rsm Guid: 00000000-0000-0000-0000-000000000000
Origin Host: NONE
Master Host: womble
Server Group: NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number: 1
Volume Pool: NetBackup
Previous Pool Name: -
Vault Flags: -
Vault Container: -
Vault Name: -
Vault Slot: -
Session ID: -
Date Vaulted: -
Return Date: -
Media on Hold: 0
01-04-2016 05:22 AM
@mph999
thanks! exactly what i was looking for. i manage to get more than 20 cartridges freed up.
01-04-2016 09:36 AM