Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activate/deactivate autoprotect through shell command

Status
Not open for further replies.

ottm

Programmer
May 8, 2002
16
ES
I would like to set up a job that deactivates and activates NAV Autoprotect at specific times.
I was thinking about doing this by programming a service to be installed on the server, for instance in VB, but quite simply, I need the shell command for perfoming these two actions.

Anyone?

Tnx
 
Because I´m having an issue wuth the backup running at night. Sometimes the Backup job chrashes when trying to read the mailboxes if NAVAP is running. I´m not always around to make sure NAVAP is disabled before the job is to start, so until I have figured out the problem with backup-exchange-navap I would like to schedule NAVAP to enable/disable without me having to worry about it.
 
Aha. NAV autoprotect is for files - you shouldn't have any files on the mail server so you can remove it. Just run NAV for Exchange to scan traffic passing through the IMS.

If you are running Backup Exec you can run a command before and a command after - use the net stop and net start commands and specify the description of the NAVAP service.
 
Well, NAV isn´t really comitted to the mailserver. But the mailserver is on the same computer that is being backed up.
In detail: I´m using Arcserver2k with Exchange Backup Agent to handle the Exchange Server on brick level.
Now; if autoprotect is enabled, the backup job tends get errors on a lot of mailboxes, and sometimes crash completely. But if I disable NAV Autoprotect, the job has no problems.

So I´m not saying that NAV is actually doing anything on the mailserver, but the fact that it´s running is messing up the backup job.

Hence; until I figure out why, I want to automatically disable NAVAP during backup.
 
ottm,

You can use the net stop and net start commands to simply stop the norton service. You can either setup a job in scheduler or put them in the pre/post section of your job on arcserve. For NAVCE the commands are below but your service may have a different name depending on the version you are running.

net stop "Norton AntiVirus Client"
net start "Norton AntiVirus Client"
 
hehehe, true.

But thnx to both of you anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top