Automatic computer upgrading5960189Abstract A method for use in upgrading a resource of a computer from an existing version of the resource to a later version of the resource. The method includes the steps of (a) digitally storing upgrade information which identifies the later version and describes features of the later version relative to one or more earlier versions of the resource, (b) digitally storing in the computer information identifying the existing version, by computer, automatically determining which of the earlier versions is the existing version, and (c) based on the results of the comparing step, automatically determining, or displaying to a user at least some of the upgrade information to aid the user in determining, whether to perform an upgrade. The upgrade information may be stored on a portable medium along with copies of the resources and the upgrade information may include instructions, in accordance with a predefined common syntax, for installing each of the resources. Claims What is claimed is: Description BACKGROUND
__________________________________________________________________________
Package Script Language
__________________________________________________________________________
A package Script Language (PSL) is defined that should make is easier for
package
owners to develop installation scripts for their products.
Commands
The installer will look for a .PSL file and begin executing it. PSL
commands are:
MKDIR›.backslash.err! <director>
COPY›.backslash.u!›.backslash.err! <source><destination>
DELETE›.backslash.err! <source><destination>
RUN.sub.-- ›os!›.backslash.err! <executable>› . . . parameter list . . .
Where,
.backslash.u - add the opposite of this command (or copy
<destination><source>) to the UNDO.PSL file
(see below)
.backslash.err - on error, stop script processing and report a package
failed status (run undo.psl and report
failed in job status table).)
source file to copy - can be any number of specifications:
d: ›.backslash.directory.backslash.! <filename>
.backslash..backslash.server.backslash.share.backslash.›directory!<filenam
e>
SYSPART: ›.backslash.directory.backslash.!<filename>
destination for file - see specs for <x>
os - defined as NT (WinNT), 02 (OS/2), SC (SCO UNIX), UW (UnixWare), and
NW (NetWare).
For COPY, any file attributes will be preserved but ignored (i.e.,
copying over a ReadOnly
doesn't case an error).
Section Headlines
Each PSL is broken into sections designated by a section heading. There
are four special section
heading names that the script processor will look to execute. The
headings are executed in this
order: Main, EISA ID, OS, and User Defined.
section is run on all machines
section is executed if board with ID specified is installed. EISA ID is
specified:
CPQXXX where X can be an alphanumeric character or "?" to match any
alphanumeric in that
position.
section should be run on machine if specified OS is running.
a user defined section. It must be immediately followed by:
executable should return 1 for execute remainder of section,
or 0 for skip section. OS is defined as NT (WinNT), 02
(OS/2), SC (SCO UNIX), UW (UnixWare), and NW (NetWare).
this section defines the <undo>.PSL file. The presence of this section
causes the
interpreter to create an <undo>. PSL file based on the naming. The ›undo!
section contains:
filename=<undo>.psl - or the name of the undo file to be created,
this text is added to the undo file untouched,
the end of the undo section.
__________________________________________________________________________
In the server upgrader 22, several upgrade packages 7 and the corresponding installation instructions 20 are grouped 108 into a "job" 18. Within each job 18, the installation instructions for every package are included in a control file 18a. The control file also includes a pre-appointed time at which the installation of the packages in the job should be carried out. When the job 18 is ready to be installed to the target server, the server upgrader 22 connects 109 with the server through a login service 24 and then sends 110 the job 18, including the control file 18a, to a staging area 19. The staging area 19 may be in the target server, in the server manager, or anywhere else in the network capable of handling the deposit and retrieval of upgrade files. Within the staging area 19, each package is placed into a corresponding package directory 71, and the control file is stored separately. The server manager then notifies 112 the agent 21 that a job has been sent to the staging area 19. When the pre-appointed time arrives 114, the agent 21 executes 116 the instructions in the control file, thereby installing the packages from the package directories 71 to the target network resources 3. The agent then deletes 117 the control file from the staging area 19. Before the packages are installed to the targets, the agent 21 may store 115 the older revision levels of the resources on a local hard disk 23. As a result, the user always has access to previous versions of the resources. Maintaining old versions of upgraded resources allows the user to downgrade the resource, if needed, in the future. After the installation is complete, job status data 73 is generated 118 and temporarily stored 120 in a results directory 75 in the staging area 19. The agent 21 retrieves the job status data 73 from the results directory 75 and places 122 it into a job status table 34 in the MIB 5. A results manager 26 in the upgrade installer monitors the MIB 5 for the job status data 73 and retrieves 124 the data as soon as it appears. The results manager 26 then sends 125 the data to a history manager 28, which tracks the history of upgrades on the server. The history manager 28 is responsible for providing 126 the history information to the user (or to storage). The server upgrader 22 then cleans 128 the staging area of any extraneous information. Because a single copy of a package may be used to upgrade a resource on multiple servers (using multiple control files), the packages are left 130 in the staging area 19 by the server upgrader. Referring to FIGS. 5A through 5C, the upgrade database actually consists of three databases: a "Package" database 25, a "Description" database 27, and a "How.sub.-- To" database 29. The Package database 25 contains the information which associates upgrade objects with each package, as well as the information needed to retrieve a package from the distribution medium (CD-ROM) and properly install the package to the server. For each upgrade package, the database maintains a unique package number 25a and a count 25b of the number of database records (i.e., upgrade objects) associated with the package. In addition, the version number 25c and the upgrade date 25d of the package are maintained. The Package database also maintains the name 25e of the package and the location 25f of the package on the CD-ROM (i.e., CD drive and directory name). To enable automatic installation of the package, the database contains the package script 25g (the installation instructions for the package). The database also contains information regarding the dependencies between the package and other upgrade objects or packages: child dependencies 25h are the upgrade objects associated with a package; sibling dependencies 25j are the packages upon which a package depends; and parent dependencies 25i are the packages or upgrade objects which together constitute a larger package. Finally, the database indicates whether or not the package can be selected by the user for upgrade and whether or not the package can be displayed to the user through a user interface. While each upgrade distribution medium will commonly contain all upgrade packages upon which a particular upgrade depends, it is also likely that upgrades to a package will depend upon upgraded packages not stored on the distribution medium. For example, the printing capabilities of an upgraded word processor created by one vendor may depend upon an upgrade to a printer driver produced by another vendor. While it is unlikely that the word processor upgrade and the driver upgrade will be distributed on the same CD, the user should still be informed of the dependency. Therefore, the dependency information in the Package database 25 describes not only the dependencies between packages on the CD, but also all dependencies between an upgrade package and any upgrade not available on the CD. Even though the unavailable upgrades cannot be automatically installed with the available upgrades, the user is nonetheless aware of their necessity. The Description database 27 stores information that describes each upgrade found in a package. Included in this information are the package number 27a and record count 27b, as well as the version number 27c and date 27d of the upgrade. A description 27e of the change between the updated version and the previous version of the upgrade object is also provided. Because a server may contain any previous version of a resource, the database must maintain a description of the changes between each version. The description 27e includes reasons why the upgrade is necessary, drawing information from development release notes, test reports and field service reports. The type 27f of upgrade made to the object (e.g., feature enhancements, performance enhancements or bug fixes) and the importance 27g of the upgrade (e.g., high, medium or low) are also indicated in the Description database. The How.sub.-- To database 29 supplies information which allows the upgrade advisor to compare the upgrade information to the MIB data (MIB items) from the server. As in the Package and Description databases, the package number 29a is maintained. Within the How.sub.-- To database, each record represents an individual piece of MIB information corresponding to the particular package. Each record is identified by a record number 29b. A unique internal number 29c is assigned to allow the upgrade device to identify the MIB item and comparison service specified in the record. The database also maintains the name 29d of the MIB item maintained in the record, as well as the name 29e of the comparison service which will use the MIB item to perform the comparison. The items to be compared may be string data 29f (e.g., the name of the package) or numeric data 29g, and the comparison service is selected accordingly. The comparison service is also selected according to the type 29h of comparison, i.e., a) whether the package applies to the server, or b) whether the upgraded version differs from the current version. The comparison group number 29i allows the upgrade advisor to group comparison results with related results. Referring also to FIG. 5D, the first package 26a in the Package database 25 is linked to description records 28a, 28b, 28c in the Description database 27. In this case, the description records corresponding to the package 26a provide detail on earlier versions of the package, thus enabling the upgrade advisor to analyze the changes between each version. The package 26a is also linked to the comparison records 30a, 30b, 30c in the How.sub.-- To database 29, each of which describes the MIB data required to compare the current version of the package to the upgrade. The second package 26b and subsequent packages in the Package database are likewise linked to the corresponding records in the Description and How.sub.-- To databases. Referring to FIGS. 6 through 10, when the user initiates 200 the upgrade advisor, a list box object 33 is created 202, and a Windows list box 51 is displayed to the user. The list box object 33 creates 204 a server view object 35 for each server in the network. When a server is selected 206 by the user, the corresponding server view object 35 places 208 the server name 53 into the list box 51. The server view object 35 then creates 210 package view objects 49 to handle package information during the comparison process. A package query object 43 retrieves 211 package data from the Package database and uses the data to create a package object 45 for each package. The package object is responsible for collecting information about the corresponding package, including a description of the package, pointers to the MIB check objects 37 that apply to the package, and pointers to parent, child, and sibling packages. A MIB query object 38 retrieves MIB location information for each MIB item from the server database 13 and then uses the information to retrieve 212 MIB data and comparison service information from the server. Comparison service information identifies the appropriate service to handle the comparison of each piece of MIB data. The MIB query object then creates 213 MIB check objects 37 responsible for handling the comparisons between MIB data and upgrade data. A description query object 39 uses information from the Description database to create 214 a description object 41 for each upgrade object contained in a package. When all of the objects are created, a MIB manager object 31 determines 215 which MIB items should be retrieved from the selected server. A request for the MIB data is sent 216 to the data retriever (15 in FIG. 1), which gathers 218 the requested information from the MIB in the selected server and forwards 220 the data to the list box object 33. As the MIB items are received by the upgrade advisor, the list box object 33 identifies 222 the server which sent the data and forwards 224 the data to the appropriate server view object 35, where the MIB items are queued 226. When all items have been received from the server, the server view object 35 sends 228 the MIB data to the MIB manager object 31. The MIB manager object then identifies 230 the appropriate MIB check object 37 to process each piece of MIB data and distributes 232 the data accordingly. As the MIB data makes its way from the server to the MIB check object, the corresponding upgrade description information is retrieved 234 from the Description database by the description query object 39. Each upgrade description is then forwarded 236 to the corresponding description object 41. From the description objects 41, each package object 45 collects 238 the upgrade descriptions pertaining to the package. The package object 45 then sends 240 each piece of upgrade data to the appropriate MIB check object 37 for comparison to corresponding MIB data. Once the MIB check objects 37 have received the appropriate MIB data and upgrade data, the data is sent 244 to the appropriate comparison service 47, according to the comparison information retrieved from the MIB. After the data is compared 246, the comparison service 47 returns 248 a comparison result to the MIB check object, where the result is stored 250. In order to display or report upgrade advice to the user, the server view object 35 requests 300 package status information from the package view object 49. The package view object 49 in turn requests 302 the status information from the package object 45. Using pointers, the package object 45 determines 304 which MIB check objects 37 contain the comparison results for the corresponding package. The package object then retrieves 306 the results and combines 308 them to determine package status (i.e., whether or not the package applies to the server, and whether the package needs to be upgraded on the server). Once the status of the package is determined, the package status information is passed 310 to the package view object 49. If the status information indicates that the package applies 312 to the server, the package view object adds 314 the package 55 to the server 53 in the list box 51. The status information is then passed 316 to the server view object 35, where it is displayed 318 to the user in the list box 51. The importance of an upgrade 57 (high, medium, low) is displayed to the user through color coded vidual objects 58 (e.g., red, yellow, green). The reasons 59 for the upgrade (i.e, upgrade description) are also displayed in the list box 51. When requested by the user (e.g., with a "Details" button 60), additional details about the upgrade are displayed 320 in a detail window 65. In addition to displaying the output of the upgrade advisor, a report may be generated 322 by the upgrade advisor. The upgrade advisor may also store 324 the status results. Referring to FIG. 11, the upgrade advisor and installer may also be used to analyze the availability of upgrades and generate upgrade jobs for individual clients 80 connected to the server. In this situation, the client, like the server, contains a MIB 81 which maintains information about the resources 83 currently installed on the client. When the user invokes the upgrade advisor, the MIB data is retrieved from the MIB 81 and the comparisons are carried out as described above. The client resources 83 may then be upgraded in two ways: automatically through the upgrade installer, or manually with upgrade diskettes 85 automatically created by the upgrade device. If automatic update is chosen, the upgrade installer builds the selected upgrade packages and installation instructions into a job (as discussed above), which is transferred into a staging area. An agent 87 in the client 80 is then notified that a job has been placed in the staging area, and the agent installs the packages in the job according to the installation instructions. Alternatively, the client may be programmed to search the staging area at specific times (e.g., start-up) for jobs it needs to install. If manual update is chosen, the packages selected for upgrade are stored to a diskette 85, along with the corresponding installation instructions. When all of the packages have been placed onto the diskette, the user places the diskette into a disk drive (not shown) on the client, and the agent automatically installs the packages according to the installation instructions. As an example of the operation of the upgrade advisor and upgrade installer, assume that the distribution medium contains an upgrade package called Novell Programs. Within the Novell Programs package is an upgrade object corresponding to each of the NetWare drivers installed to the target server. When the distribution medium is inserted into the drive, the upgrade advisor reads information about the Novell Programs package from the Package database. The upgrade advisor then retrieves from the Description database description information for the upgrade objects in the package. The records corresponding to each upgrade object are then read from the How.sub.-- To database and compared to the description information. As shown in the chart below, the first record for the Novell Programs package contains information about the operating system running on the server. The first entry in the record is the name ("cpqHoName") of the MIB data for the records. This entry causes the upgrade advisor to retrieve the name of the operating system that the server is running. The second entry informs the upgrade advisor that a "stringcompare" comparison service will be used to compare the upgrade and MIB data. The third and fourth entries pass the corresponding description information to the comparison service. For record number 1, the MIB data is compared to the string "NetWare". Since string data is to be compared, the "numeric data" entry is ignored. The last entry for the record informs the upgrade advisor that the type of comparison to be performed is a determination of whether or not the NetWare OS applies to the server, i.e., if the OS runs on the server. The second record contains the information necessary to determine whether or not the netware "NPFC" software is available on the server. If so, the information in the third record enables a comparison of the version number of the upgrade with the version number on the server.
______________________________________
Re-
cord comparison string
numeric
# mib data service data data type
______________________________________
1 cpqHoName stringcompare
Netware
N/A applies
2 cpqSWVerName stringcompare
NPFC N/A applies
3 cpqSWVerVersion
versioncheck version
______________________________________
When the upgrade advisor receives all of the comparison results from the comparison services, the results are used, first, to determine whether or not the Novell Programs package is an upgrade which can be installed to the server and, second, to advise the user of the importance of the upgrade. Assuming that an upgrade to the Novell Programs package is both available and desired, the user selects the package as one to be upgraded. The upgrade installer is then invoked. The upgrade installer retrieves the Novell Program's package from the distribution medium and the corresponding installation instructions from the How.sub.-- To database. The package and instructions are then incorporated into a job, which includes a command to run the job at midnight. The job, including the Novell Programs package and the control file, is copied into the staging area and the agent on the target server is notified of its presence. When the agent looks at the job, it sees the command to run the job at midnight and waits until that time arrives. At midnight, the agent calls an install application to automatically install the Novell Programs package. When the installation is complete, the agent stores results information, including the name of the job and the time at which it was executed, into the job status table of the MIB. The upgrade installer then retrieves this information and provides it to the user. Other embodiments of the invention are within the scope of the following claims.
|
Same subclass Same class Consider this |
||||||||||
