The distsrv can be configured to forward packages to another distsrv, but it lacks a true replication feature to stay in sync even when packages are deleted. We use two distsrv probes, and they have a primary-secondary relationship. We always make changes in the primary distsrv, but we want users to be able to use either for distributing packages. Over time, the forwarding feature in the distsrv has improved greatly. Older versions would only forward the latest version of a package, but distsrv 4.80 provides an option to address that. Now the only thing it does not do (of the things I want) is delete packages automatically.Fortunately, deleting packages can be done with a callback to the distsrv. I created a NAS script, which I am attaching to this post, and it looks at the archive list for both the primary and secondary distsrv. It assumes that any packages that are missing from the primary but present on the secondary should be removed. If you use it, make sure to put in the Nimsoft addresses to your distsrv probes at the top.Enjoy! Let me know if you have any feedback or improvements.-Keith
Thank you for this.
I have updated it with some minor things for our environment that possibly could be useful for others aswell, so attaching my updated version. Basicly, then changes are:
: From my experience, when people forget to increase the version, and the build is increased (it increased automatically), the distsrv won't replicate the updated package. In this case, it seems to be a good idea to delete the package on the slave, and let master re-sync it.
Worked with Jim Christensen to resolve some issues with "nil" responses. Here is an update to the script that works for me.
Thanks guys, you made my day :-)
I was wondering why a broken version still got deployed on a buch of machine after I have long removed the probe from the archive. Just learned that the probe will stay on the remote distsrv. Your script greatly reduced the effor to remove the broken version from ALL our 9 distribution servers.
I've updated this script to run against the ADE. NAS Script to sync ADE