Click here to Skip to main content
15,896,348 members
Articles / Programming Languages / VBScript
Article

Update NAV Server Virus Definition By VBScript

Rate me:
Please Sign up or sign in to vote.
2.08/5 (13 votes)
30 Dec 20032 min read 83.1K   13   1
Update NAV Virus Defination When the Liveupdate couldn't be used

  Norton Antivirus Server (NAV Server) is for updating the virus definitions and setting the virus checking policy of clients. Keeping the virus definitions fresh would help NAV server to protect all of clients to avoid attacking of virus. <o:p>

  Sometime, the Internet FTP accesses were forbidden by security Policy. By default live update process of NAV server, it would be depend on the network performance. It could not be implemented smoothly because the Tier1 site could not get enough bandwidth for live update.<o:p>

  We checked the Symantec Site and found out some special method to update the NAV server.<o:p>

  The Symantec also supply the ftp://ftp.symantec.compublic/english_us_canada/antivirus_definitions/norton_antivirus/static to download the virus definition data file. The update file is named as navup8.exe. It would be update if new virus definition would be announced. And Extract the navup8.exe to get the virus definition as xxxxx.xdb. Then move the xxxxx.xdb file to the folder that NAV Server would keep the virus definition data files. The default folder is C:\Program Files\SAV.<o:p>

  Downloading the virus data file would be by Internet Explorer because the firewall just let the passive mode to pass through to get the files as accessing Symantec Site. To avoid security issues confusing, we just wrote script to execute these processes automatically. It would not change any system security setting and get any risk of security.<o:p>

  The NAV Server update script would be running as following:<o:p>

1.      Clear the old virus data file – navup8.exe and calling Internet Explorer to download the new one.<o:p>

<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"><v:f eqn="sum @0 1 0"><v:f eqn="sum 0 0 @1"><v:f eqn="prod @2 1 2"><v:f eqn="prod @3 21600 pixelWidth"><v:f eqn="prod @3 21600 pixelHeight"><v:f eqn="sum @0 0 1"><v:f eqn="prod @6 1 2"><v:f eqn="prod @7 21600 pixelWidth"><v:f eqn="sum @8 21600 0"><v:f eqn="prod @7 21600 pixelHeight"><v:f eqn="sum @10 21600 0"><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"><o:lock v:ext="edit" aspectratio="t"><o:p>

2.      Script would input the destination folder and file name automatically<o:p>

<o:p>

3.      Implement the process of downloading file<o:p>

<o:p>

4.      Run the DOS command to apply the new virus data definition<o:p>

For automatic run the script, it would be established a time schedule task on windows 2000<o:p>

5.      Check the Scheduled Tasks<o:p>

<o:p>

6.      Check the NAV Server Update Task Properties

7.      At end, please adjust the time when the task would be running. For the better network performance would make the update smoother, it would be set on less users on working time.<o:p>

Appendix<o:p>

A. Script Parameters Introduction<o:p>

1.      Download_Site<o:p>

Const Download_Site = ftp://ftp.symantec.com/public/english_us_canada/antivirus_definitions/norton_antivirus/navup8.exe define the download file URL. If the URL was changed, you can change this parameter.<o:p>

2.      Destination<o:p>

Const Destination = "C:\Program Files\SAV" define the virus data folder of NAV Server. If you didn’t use default setting, you can change this parameter to indicate the folder of NAV server.<o:p>

3.      tmpDir<o:p>

Const tmpDir = "D:\navtest\navup8.exe" define the temp folder for download file and script file. If you want to keep these files in other folder, you can change this parameter.<o:p>

Source File nav8xup.vbs<o:p>

<v:shape id="_x0000_i1033" style="WIDTH: 60pt; HEIGHT: 38.25pt" type="#_x0000_t75" o:ole=""><v:imagedata src="file:///C:\DOCUME~1\JOHNSO~1\LOCALS~1\Temp\msohtml1\01\clip_image017.wmz" o:title=""><o:p>

B. Symantec Detail the updating process without live update<o:p>

http://www.symantec.com/<o:p>

<o:p> 

 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
China China
I'm fun about computer science. I would like to improve my skill to solve the real problems.

Comments and Discussions

 
GeneralHelp me please Pin
honzaj3-Mar-04 5:12
honzaj3-Mar-04 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.