Page 2 of 2 <12
Topic Options
#63256 - 2002-12-03 08:01 PM Re: NAV Pattern FTP Script RFC
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
Here's what I use to download their daily certified defs through ftp..works like a charm...
code:
Echo y| del e:\platdefs\*.*
Echo y| del c:\vdb\*.*
ftp -s:platdefs.txt>c:\scripts\logs\platlog.log
E:\PLATDEFS\symcdefsx86.exe /q /extract /vdb "c:\vdb"

ECHO The attached file is the results of the ftp of the definitions from symantec. Below you will find the results of copying the extracted defs to ParentInFirstServerGroup and ParentInSecondServerGroup.>C:\SCRIPTS\LOGS\COPYDEFS.LOG
ECHO If these are NEW definitions, they will automatically be pushed out to client machines.>>C:\SCRIPTS\LOGS\COPYDEFS.LOG
ECHO.>>C:\SCRIPTS\LOGS\COPYDEFS.LOG

REM COPY DEFS TO PRIMARY ANTIVIRUS SERVER
COPY c:\vdb\*.* "c:\program files\nav\"
IF NOT '%ERRORLEVEL%' == '0' GOTO ERRORLU00
ECHO Definitions successfully copied to ParentInFirstServerGroup>>C:\SCRIPTS\LOGS\COPYDEFS.LOG

REM COPY DEFS TO PRIMARY ANTIVIRUS SERVER IN 2ND GROUP
COPY c:\vdb\*.* "\\ParentInSecondServerGroup\c$\program files\nav\"
IF NOT '%ERRORLEVEL%' == '0' GOTO ERRORLU01
ECHO Definitions successfully copied to ParentInSecondServerGroup>>C:\SCRIPTS\LOGS\COPYDEFS.LOG
GOTO THEEND

REM COPY DEFS TO PRIMARY ANTIVIRUS SERVER IN 3RD GROUP
REM COPY c:\vdb\*.* "\\ParentInThirdServerGroup\c$\program files\nav\"
REM IF NOT '%ERRORLEVEL%' == '0' GOTO ERRORLOD01
REM ECHO Definitions successfully copied to ParentInThirdServerGroup>>C:\SCRIPTS\LOGS\COPYDEFS.LOG
REM GOTO THEEND

:ERRORLU00
ECHO UNABLE TO COPY DEFINITIONS TO \\ParentInFirstServerGroup\C$\PROGRAM FILES\NAV!!!>>C:\SCRIPTS\LOGS\COPYDEFS.LOG
GOTO THEEND

:ERRORLU01
ECHO UNABLE TO COPY DEFINITIONS TO \\ParentInSecondServerGroup\C$\PROGRAM FILES\NAV!!!>>C:\SCRIPTS\LOGS\COPYDEFS.LOG
GOTO THEEND

:ERRORLOD01
ECHO UNABLE TO COPY DEFINITIONS TO \\ParentInThirdServerGroup\C$\PROGRAM FILES\NAV!!!>>C:\SCRIPTS\LOGS\COPYDEFS.LOG
GOTO THEEND

:THEEND
blat.exe C:\SCRIPTS\LOGS\COPYDEFS.LOG -attacht "c:\scripts\logs\platlog.log" -t me@mydomain.com -s "Platdefs on %computername%."

Here's my ftp script. I'm going into the static directory now and pulling the symcdefsx86.exe file. Symantec said (uh oh.. [Roll Eyes] ) That this file is the same file as their daily certified defs that have a file date as the name.
code:
 
open ftp.symantec.com
anonymous
nobody@spammer.com
cd public/english_us_canada/antivirus_definitions/norton_antivirus/static
lcd e:\platdefs
bin
hash
prompt
get symcdefsx86.exe
quit

That way all of the parent servers in my server groups get updated at the same time the primary does and I don't have to schedule them separately...

L8tr... [Big Grin]

Top
#63257 - 2002-12-03 08:08 PM Re: NAV Pattern FTP Script RFC
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
but, who's code is kix? [Wink]

thanks to kent again.
_________________________
!

download KiXnet

Top
#63258 - 2003-01-20 04:17 PM Re: NAV Pattern FTP Script RFC
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Dang! Lack of foresight on my part and more than 5 old patterns on Symantec's FTP site broke my script.

The following DIM is too conservative:
Dim $FNArray[5]

Should be more:
Dim $FNArray[10]

Script updated... my apologies.

[ 20. January 2003, 16:21: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org