Video Screencast Help

VOM custom script

Created: 02 Apr 2013 • Updated: 05 Apr 2013 | 2 comments
This issue has been solved. See solution.


I am exploring the VOM scripting addon. How can I run a script to collect information whether suppose one rpm is installed in all linux server using the VOM custom script ?

eg: httpd rpm



Operating Systems:

Comments 2 CommentsJump to latest comment

ashirodk's picture

Hi Rajeev,

  1. First upload and install the Scripting Add-On via Settings --> Deployment Management.
  2. Once the Add-On is installed, restart the web server using the command given in the wizard (/opt/VRTSsfmh/bin/vomadm service --restart web)
  3. Now log in and go to Solutions.
  4. Click on Create Script Solution.
  5. There is an option to upload a file.

Here you need to have your script file ready on the machine where your browser is running (e.g. laptop). The script file can be a simple shell script like "" having the following line

rpm -qa | grep VRTS

(check for all VRTS* packages)

    6. Go through the next pages of the wizard and create a solution (e.g. "Query RPM").

    7. From the list of solutions, select this one. Click on "Actions --> Run Script Solution".

    8. Select the hosts on which you want to run this script (e.g. all Linux boxes).

   9. You can schedule this run or just select "Now" to run it immediately.

  10. If you run it immediately, you will be taken to a page showing the status of execution.

  11. If you click on that run, you will get a table having output for all hosts that you selected. This will get updated as and when the script is run on a particular host (see "Standard Output" and "Standard Error" columns).

 12. When it finishes running on all hosts, you can use this output. You can even export the table to CSV format.

Screenshot of output attached.