Create a cdm Superpackage for Multiple Operating Systems
Article ID: 35030
NIMSOFT PROBESDX Infrastructure Management
Sometimes you may want to create a cdm probe that can be deployed to any machine in your environment and automatically configure itself to a specific set of parameters based on the operating system of that machine. To accomplish this, you should follow the below example. This example assumes you are configuring the package for two operating systems, Linux and Windows 64-bit. You can configure as many operating systems as necessary.
Procedure for Windows & Linux
Procedure for Windows & Linux at 64-bits; UIM 8.0 or higher
On a Linux system, deploy the cdm probe from the Archive in Infrastructure Manager. Go into the probe's configuration and set up the cdm probe the way you want it; the configuration you set up here will be used as your default configuration in the new package.
Drag and drop the cdm probe from that system back onto the Archive, Make sure Configuration Only is checked. Click Rename and rename the package cdm_linux.
Right-click on cdm_linux in the Archive and click Edit.
Under Files, right-click the cdm.cfx and Save As.
Save this file somewhere on your system where you can find it later.
Click Cancel from the cdm_linux package setup screen and go back to the Archive.
Repeat steps 1-6 but using a Windows system. When you export the package call it cdm_windows. When you get to step 5, make sure to save the cdm.cfx file in a different folder, so you will know which cdm.cfx is for Windows and which one is for Linux.
Repeat steps 1-6 as needed for other operating systems, making sure to keep track of which cdm.cfx goes with which OS.
Right-click on the existing cdm package in the Archive and select Copy.
Copy/rename the package cdm_custom and click OK.
Right-click on cdm_custom and choose Edit.
You will now see a bunch of sections for different OS's like HP_UX and win_ia64 and so on. For any sections you don't care about, right-click on them and select Delete Section, until you are left with only the sections that apply to the operating system configurations you created in steps 1-6.
Assuming you are using 64-bit Linux, go inside the Linux_23_64 section (for example) and right-click the cdm.cfx file that is already there and remove it.
Right-click in the window and choose Add File. Then locate the cdm.cfx file that you saved from the cdm_linux package in step 5.
Repeat steps 11-12 for the win64 section, using the cdm.cfx file that you saved from the cdm_windows package. Do the same for any other OS's you have configured.
In the package properties the path will be configured to /probes/system/cdm-custom. Change this to /probes/system/cdm and save the configuration.
Now you have a package called cdm_custom that contains all the cdm binaries, plus the customized .cfx files you created for the various operating systems. This can be deployed to new or existing machines and will install the cdm probe on those machines with the configuration you have defined automatically applied.