DB2 10.5 for Linux, UNIX, and Windows

Windows Management Instrumentation samples

Directory: sqllib\samples\wmi.

Table 1. Windows Management Instrumentation sample program files.
Sample file name File description
backupdb.vbs How to backup a database
createdb.vbs How to create and drop a database.
listsvr.vbs How to enumerate server instances and start/stop a DB2 instance.
perfmon.mof MOF file for perfmon.vbs.
perfmon.vbs How to obtain a DB2 performance counter. Note: you must run "mofcomp perfmon.mof" first.
regvar.mof MOF file for regvar.vbs.
regvar.vbs How to obtain a DB2 registry variable. Note: you must run "mofcomp regvar.mof" first.
restoredb.vbs How to restore a database.
rollfwddb.vbs How to rollforward a database.
updatedbcfg.vbs How to get and update the database configuration.
updatedbmcfg.vbs How to get and update the database manager configuration.