seanbrittus
16 years agoLevel 3
NetBackup recycler
I am trying to generate a process script to recycle (start or stop) the Netbackup services, but it is failing for some reason. Can anyone identify the problem?
@echo off
net %1 VxENE
net %1 Veritas GDM Information server
net %1 NetBackup Client Service
net %1 NetBackup Database Manager
net %1 NetBackup Device Manager
net %1 nbdbd
net %1 NetBackup Request Manager
net %1 NetBackup Volume Manager
@echo off
net %1 VxENE
net %1 Veritas GDM Information server
net %1 NetBackup Client Service
net %1 NetBackup Database Manager
net %1 NetBackup Device Manager
net %1 nbdbd
net %1 NetBackup Request Manager
net %1 NetBackup Volume Manager
- Try this (you need to enclose the services in quotes)
Or you can get the actual service name(s) - which usually don't have spaces in them...
@echo off
set action=%1
net %action% VXEne
net %action% "Veritas GDM Information Server"
net %action% "NetBackup Client Service"
net %action% "NetBackup Database Manager"
net %action% "NetBackup Device Manager"
net %action% nbdbd
net %action% "NetBackup Request Manager"
net %action% "NetBackup Volume Manager"