Example 4: Exporting multiple objects
A user wants to export the printer objects named Prz1
and Prz2
.
That user also wants to export the storage set named FavoriteSS
.
That user created an XML file called exportlist.xml.
To complete this task, the following command line function is
called:
arsxml export -h ARCHIVE -i exportlist.xml -o output.xml
The
file exportlist.xml might look like
this:<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<printer name="Prz1"/>
<printer name="Prz2"/>
<storageSet name="FavoriteSS"/>
</onDemand>
After the user runs the command, an output file named output.xml is created, and contains the information for the two printers and the storage set.