Latest WinOffline version is now -- 2018.05.22
** Use at your own risk. Even though I work for CA Support, this is a field/community developed tool being provided. **
1- Software/Staging Library Cleanup tool
WinOffline will perform a three-way comparison of the Library.dct file, contents of the Library folder, and the database to ensure consistency throughout...
There are TWO switches added:
-checklibraryAnalyzes the software delivery library for consistency problems, and reports results, without making any changes to the database, library.dct file or LIBRARY folder.
-cleanlibraryPerforms cleanup on the software delivery library, repairing consistency problems between the database, library.dct file and LIBRARY folder.
Note: This feature requires the ability to logon/access the database.
Note: When running against a Domain Manager, the database server is automatically read from the ITCM comstore. However, when running on a remote Scalability Server, you must specify the database server using the -dbserver switch. Refer to examples below...
Server Type: Domain Manager
Option Specified: -checklibrary
Running with a user account that supports Windows Authentication:
To specify a SQL account instead, use the -dbuser and -dbpw switches:
If you are uncomfortable with clear-typing your SQL account password, you can leave that option off, and WinOffline will prompt you to type it, and it will be masked:
Note: If required, there are -dbinstance and -dbport switches, to respectively specify the correct instance name or port numbers, as required.
Option Specified: -cleanlibrary
(using implied Windows Authentication)
Server Type: Scalability Server
(we must also provide the database server name)
This example is using implied Windows Authentication, as I'm not specifying a -dbuser or -dbpw switches:
Note: In case you specify the wrong database server, WinOffline will actually check that the SS is registered with the DM at the specified database.
Note: If you need to specify an instance name or port number for the database, the -dbinstance and -dbport switches are also available.
Server Type: Scalability Server (via Software Delivery)
This time we are sending WinOffline via Software Delivery, as we might have multiple servers we want to cleanup...
Create a software package with WinOffline.exe in the volume, and specify the library cleanup procedures:
Job Output from the software job will show the cleanup summary:
Further down in the output is the details, if you want to see them...
2- Improved Installed Software tool
Reworked the "Installed Software" tool, to provide "Last Used" timestamp and count of "Installs" columns, for each Software Package in the SD library.
Remember, this is based only on Software Delivery package installation data only.
For Asset Management detection counts, refer to the "Discovered Software" tool. While this view could have multiple purposes, one of the intents is to help you identify old or unused packages from the SD library that can be removed...
3- Added -skipdmprimer switch
This is useful when using WinOffline in conjunction with the InstallTestFixes.bat** script, and you are using the ITCM Deployment Wizard. The switch simply informs WinOffline not to recycle the DMPrimer services, so it does not interrupt the connection back to the Domain Manager during a deployment.
**If you are not familiar with InstallTestFixes.bat, this was a recent enhancement with r14 SP2, to allow Deploywrapper.exe to run a batch file, post-agent installation, for the ability to apply any customization. It is documented here: New Features and Enhancements of 14.0.2 - CA Client Automation - 14.0 - CA Technologies Documentation
4- Added -stopcaf & -startcaf command line switches by request
The stop switch attempts a graceful "caf stop", but if there are any stubborn CAF plugins that are not decreasing in memory usage, it will kill them (e.g. amrss plugin). Let's just say it's somewhere between a "caf stop" and a "caf kill", for those who are as impatient as myself. The start switch will start CSAM, CAM or CAF, depending on what is running/not running already.
5- Bug Fixes
- Fixed an issue reported where WinOffline.exe was failing to stop the csampmux.exe (port multiplexer) service on some systems.
- Fixed a bug where WinOffline was failing to remove ~some~ patches. It was failing to setup subfolders within the ..\CA\DSM\REPLACED\BACKOUT.OLD folder.
- Other minor tweaks/fixes/improvements.
This looks excellent, I will use this tool and let you know for any help.
i agree, excelent work. you saved me from developing a software/staging library cleanup tool by myself.
you should be employed in the dev section of itcm. such functions should be integrated in the product.
maybe then is more progress in developing new features in itcm. currently, i see not much progress in
developing new features or improvements in the product over the past 5-10 years. this is frustrating.
Many Thanks + Regards
Thanks Bernhard, I appreciate the feedback. I wish I had more time to keep adding more features, as I have quite a wish-list for my own utility. As for ITCM development, they don't offer that position where I am located. Even if they did, I'd probably have to work other priorities, than the ones I would want to work on!
I agree and share your frustration. Working in support, I have categorized a spreadsheet of essential product improvements which I periodically update and send to development. I really wish we would spend more time improving existing features, over trying to add new ones. There are several features that with another round of development could really work a lot better.
All I can promise is that I will continue to voice feedback I receive, and when I find small pockets of time, I will continue to build on WinOffline to do more neat things to save people time.