Export (-exp) Command
The export command allows you to export Profiles or Inventories to XML
files. An Sun Update Connection – Enterprise object in XML format is easy to read and edit, and can
be manipulated as a file.
|
Parameter
|
-
-ent entity-type – Specify the type of the entity. Valid values
are Profile or Inventory.
-
-f pathname – Specify the full path name of the XML file
to which to export.
-
-T list – Specify a comma-separated list of profiles
to export or a list of hosts whose inventories are to be exported. If not
specified, all objects of type -ent are exported.
|
|
Syntax
|
uce_cli -exp -ent ( "Profile" | "Inventory" ) -f pathname.xml [ -T "profile,profile,..."
| "hostname,hostname,..."
] -u username -p password
|
|
Example
|
uce_cli -exp -ent "Profile" -f /home/stuff/httpSverProfile.xml
-u admin -p 123
|
|
Example
|
uce_cli -exp -ent "Inventory" -f /home/stuff/myHost.xml -u
admin -p 123
|
|
Example
|
uce_cli -exp -ent "Inventory" -T "lnx13,lnx10" -f /home/stuff/rpmsOf13-10.xml
-u admin -p 123
|
To get valid values for -T, use the -lp command
to see profiles, or the -lah to see hosts.
Be aware that as this command creates a file outside of Sun Update Connection – Enterprise, the
success of the command is dependent upon your user permissions: the machine
user executing the command has to have permissions to write to the path give
in the -f parameter.