03-15-2021 03:21 AM
What is the command to restart Media Management services for a media server? Like you would find under:
NetBackup Console > Media and Device Management > Device > Media Servers > MediaServer1 (right click) > Stop and Start Media Manager Device Daemon.
We have a misbehaving media server we are working on (with Veritas case) but in the meantime I'd like to just monitor the vmoprcmd status and then issue a restart of the daemon if it goes offline for tape. If I only knew what the command was...
03-15-2021 05:33 AM
/usr/openv/volmgr/bin/stopltid
<wait a bit>
/usr/openv/volmgr/bin/ltid -v to restart
03-15-2021 11:28 PM
I think those commands must be run locally on each media server, right?
Any idea about the command that Java GUI runs when it is done from the Console?
My guess is that it will be something that could be found in undocumented vmoprcmd -Q output?
Oh! I think I found it:
https://vox.veritas.com/t5/NetBackup/Configure-Tape-Devices/td-p/536314/page/2
vmoprcmd -Q
-startltid
Start ltid. This option is used by java.
-stopltid
Stop ltid. This option is used by java.
You should be able to combine this with -h <media server>
03-17-2021 01:00 AM
Ahh, sorry - yes those commands would be run on the media server
Well I've learnt something, didn't know vmoprcmd could restart ltid .....
03-17-2021 09:10 AM
03-18-2021 01:45 PM
If your environment happens to be Windows, you can leverage PowerShell to start and stop the NetBackup services
Invoke-Command -ComputerName your_media_server -ScriptBlock {& 'C:\Program Files\Veritas\NetBackup\bin\bpdown.exe' -v -f}
Invoke-Command -ComputerName your_media_server -ScriptBlock {& 'C:\Program Files\Veritas\NetBackup\bin\bpup.exe' -v -f}
To specifically stop media manager use stopltid and then ltid to start under C:\Program Files\Veritas\Volmgr\bin
03-18-2021 07:40 PM
@Tape_Archived I used to do that in our environment till they disabled PSRemoting for improving security! But there are still things one can do from the master server. I have already added the above command @Marianne suggested.