
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
How to Download template / polices from OMi in XML
Please guide me to download Management Templates & Aspects in xml format

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Please guide me as i am not very familiar with OMi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello,
You can also use the CLIs "opr-config-tool" and "opr-template":
https://docs.microfocus.com/itom/Operations_Bridge_Manager:2020.10/Clioprconfigtool
https://docs.microfocus.com/itom/Operations_Bridge_Manager:2020.10/Clioprtemplate
Here two examples to get you started:
# opr-config-tool.sh -user admin -password ... -ud -type a -name "CPU Performance" -output /tmp/aspect.xml
# mkdir /tmp/poldir
# opr-template -user admin -password ... -download -type template -name Sys_CPUSpikeCheck -output /tmp/poldir -format xml
Regards,
Thierry.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
this script downloads all polices. but you need to create a rc_file for authentification. see opr-node -help for how to create rc_file.
I use this for backup purposes.
good luck
set -x
#env
WORKDIR=/opt/TYB/Policy_Download
RC_FILE=$WORKDIR/rc_file
DOWNDIR=$WORKDIR/configdownload
LIST=$WORKDIR/list_of_all_policies
# Flat true = all polices in one folder
# Flat false = for each policy one folder is created
FLAT=FALSE
# Allversion true = download all version of a policy
# Allversion false = download only latest version of a policy
ALLVERSION=FALSE
# download list of all policies
opr-template -rc_file $RC_FILE -list > $LIST
while read LINE ; do
{
POLNAME=`echo $LINE | cut -f2 -d \"`
DIRNAME=`echo $POLNAME | tr " " "_"`
if [ $FLAT = TRUE ]; then
DIRNAME=""
fi
if [ $ALLVERSION = TRUE ]; then
OA="-all"
fi
mkdir -p $DOWNDIR/$DIRNAME
opr-template -rc_file $RC_FILE -download -name "$POLNAME" $OA -output $DOWNDIR/$DIRNAME
}
done < $LIST