To update the inventory of your library in NetBackup from the command line, you can use the vmupdate command.
The command below will empty the map (move tapes from the access port to free slots) and update the inventory.
/usr/openv/volmgr/bin/vmupdate -rt tld -rn 0 -full -empty_map
If you don’t want to empty the map, just run the same command without the -empty_map option.
/usr/openv/volmgr/bin/vmupdate -rt tld -rn 0 -full