6.3 HP StoreAll 9300/9320 Storage Administrator Guide (AW549-96072, June 2013)

2. Place the added-on script in the following directory:
/usr/local/ibrix/ibrixcollect/ibrix_collect_add_on_scripts/
The following example shows several add-on scripts stored in the
ibrix_collect_add_on_scripts directory:
root@host2 /]# ls -l
/usr/local/ibrix/ibrixcollect/ibrix_collect_add_on_scripts/
total 8
-rwxr-xr-x 1 root root 93 Dec 7 13:39 60_addOn.sh
-rwxrwxrwx 1 root root 48 Dec 20 09:22 63_AddOnTest.sh
3. Write an add-on shell script that contains a custom command/log that needs to be collected
in the final StoreAll collection. Only StoreAll and operating system commands are supported
in the scripts. These scripts should have appropriate permission to be executed.
IMPORTANT: Make sure the scripts that you are creating do not collect information or logs
that are already collected as part of the ibrix_collect command.
4. Make sure that add-on scripts that collect the custom logs redirects the collected custom logs
to the directory /local/ibrixcollect/ibrix_collect_additional_data. Only
files copied to this location will be included in the generated IbrixCollect tar file. Output of
the add-on scripts is available only when the IbrixCollect process is completed and the tar
files containing the output are extracted. See “Running an add-on script” (page 137) and then
“Viewing the output from an add-on script” (page 137).
Running an add-on script
To run an add-on script:
1. Verify that the add-on script is saved under the following location:
/usr/local/ibrix/ibrixcollect/ibrix_collect_add_on_scripts/
The ibrix_collect command only runs add-on scripts saved in this location.
2. Enter the ibrix_collect command:
ibrix_collect -c -n addOnCollection
In this instance addOnCollection is the collection name.
The output of the add-on scripts is included into the final tar collection along with other logs
and command outputs. In this instance, the output would be in the addOnCollection.tgz
file.
NOTE: The add-on scripts timeout after 20 minutes.
Viewing the output from an add-on script
To view an output from an add-on script:
1. Go to the active Fusion Manager node in the /local/ibrixcollect/archive directory
by entering the following command:
[root@host2 /]#cd /local/ibrixcollect/archive/
2. The output of the add-on scripts is available under the tar file of the individual node. To view
the contents of the directory, enter the following command:
[root@host2 /]#ls -l
The following is an example of the output displayed:
total 3520
Collecting information for HP Support with the IbrixCollect 137