File/bin/wsus_sync.php

Description

PHP version 5

LICENSE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

Includes
 require_once ("./funcs.inc.php") (line 38)

Load settings and common functions

Functions
cleanup (line 329)
void cleanup ()
convert_date (line 93)

This function converts the datetime retrieved from MSSQL into MySQL datetime format

void convert_date ( $date)
  • $date
dbwsus_connect (line 125)

Connect to the WSUS server

void dbwsus_connect ()
empty_tables (line 209)

Empty all wsus tables.

void empty_tables ()
get_global_update_list (line 234)

Get global list of needed updates from wsus db and store in openac db

void get_global_update_list ()
get_hostname (line 147)

Returns the hostname part of an fqdn thus everything before the first dot

void get_hostname ( $fqdn)
  • $fqdn
get_systems (line 268)

Obtain list of system which are registerd in the wsus server, fetch their status for each necessary update and write everything into the vmps db

void get_systems ()
get_vmps_id (line 170)

Look up a wsus hostname in the vmps table and return the vmps id if and only if there's exactly one entry

void get_vmps_id ( $hostname)
  • $hostname
validate (line 109)

Ensures that $string is mysql safe

void validate ( $string)
  • $string

Documentation generated on Mon, 06 Oct 2008 01:10:50 +0200 by phpDocumentor 1.4.0