Page 1 of 1

Automatic Update WSUS OU in Linux?

PostPosted: 03.10.2011, 07:52
by t3573r
I have updated my WSUS OU by downloading it from trac.

But, is there a way to automatically update the WSUS OU in Linux, like some command line switch or something?

Re: Automatic Update WSUS OU in Linux?

PostPosted: 06.10.2011, 21:10
by Medvedko
Revision 294
DownloadUpdates.sh can be fixed in data of array syslist
Line 141, proc evaluateparams (external params from command line)
Code: Select all
syslist=("wxp" "wxp-x64" "w2k3" "w2k3-x64" "w60" "w60-x64" "w61" "w61-x64" "o2k3" "o2k7" "o2k10" "all-x64" "all-x86")

Line 345, proc getsystem (select OS/Office from read keyboard)
Code: Select all
syslist=("wxp" "wxp-x64" "w2k3" "w2k3-x64" "w60" "w60-x64" "w61" "w61-x64" "o2k3" "o2k7" "o2k10" "all-x86" "all-x64")

---
Office 2003/2007/2010 support "Fileconverters.exe" ? (ofc), so we can download it by default (maybe i mistake, i haven't office 2010, can't verify it)
Line 178, proc evaluateparams (external params from command line)
Code: Select all
if [ "$sys" == "o2k3" -o "$sys" == "o2k7" -o "$sys" == "o2k10" ]; then

Line 370, proc getsystem (select OS/Office from read keyboard), add line for compatibility "ofc" with external command line
Code: Select all
if [ "$sys" == "o2k3" -o "$sys" == "o2k7" -o "$sys" == "o2k10" ]; then
   sys_old=$sys
  sys="ofc"
fi

---
Office 2010 now support 32/64 bit version, with ofc downloading we can add support 64-bit version of office 2010, "glb" and "lang"
Line 635 add code
Code: Select all
static64="../static/StaticDownloadLinks-${sys_old}-x64-${lang}.txt"
  if [ -f "$static64" ]; then
      if [ "$EXCLUDE_SP" == "0" ]; then
        cat $static64 >> ../temp/StaticUrls-${sys_old}-${lang}.txt
      fi
    if [ "$EXCLUDE_SP" == "1" ]; then
      grep -i -v -f ../exclude/ExcludeList-SPs.txt $static64 > ../temp/StaticUrls-${sys_old}-${lang}.txt
    fi 
  fi
     static64="../static/StaticDownloadLinks-${sys_old}-x64-glb.txt"
  if [ -f "$static1" ]; then
      if [ "$EXCLUDE_SP" == "0" ]; then
        cat $static64 >> ../temp/StaticUrls-${sys_old}-glb.txt
      fi
    if [ "$EXCLUDE_SP" == "1" ]; then
      grep -i -v -f ../exclude/ExcludeList-SPs.txt $static64 > ../temp/StaticUrls-${sys_old}-glb.txt
    fi 
  fi

It need some more time to verify that script. Update of office 2010 (32/64-bit) was downloaded successfully. StaticDownloadLinks-o2k10-glb.txt was empty,
Code: Select all
officesuite2010sp1-kb2460049-x64-fullfile-ru-ru.exe
officesuite2010sp1-kb2460049-x86-fullfile-ru-ru.exe

Re: Automatic Update WSUS OU in Linux?

PostPosted: 18.10.2011, 13:54
by WSUSUpdateAdmin
Hi!

t3573r wrote:I have updated my WSUS OU by downloading it from trac.
But, is there a way to automatically update the WSUS OU in Linux, like some command line switch or something?

No, but you may want to use http://download.wsusoffline.net/rss.xml.

@Medvedko: Thanks, different topic, but fixed in http://trac.wsusoffline.net/browser/trunk (r299).

Regards
Torsten Wittrock