Forum Discussion

liuyl's avatar
liuyl
Level 6
6 years ago

List volume groups

**** Moved to new discussion from https://vox.veritas.com/t5/NetBackup/View-Volume-Groups-From-CLI/m-p/734589/thread-id/199858  **** I just want to ask what command can output all the current volum...
  • Amol_Nair's avatar
    Amol_Nair
    6 years ago

    liuyl

    You can run "vminitlists" under volmgr\bin without any switches

    This should list all the NetBackup volume groups for you.

    But the output discards the robot type from the volume group name. So the finaly result would be the volume group+robot type from the output. But if you are looking for a single command then this is your best bet.

     

    Or then as mentioned by Marianne you can simply run the vmquery command and generate the list by running something like this

    vmquery -a | grep group | awk '{print $3}' | sort -u