Switch to the {agent install dir}/agent/opt/udclient folder. Assign execute permission to the versionImport.sh and udclient scripts. The script expects 3 arguments, the UCD admin user name, the UCD admin password and the URL and port of the target UCD server. The script also expects the source files to be in folder /media/component-source. Run the script
The output will look similar to the image below for a 6.1.1.6 UCD server:
cd {agent install dir}/agent/opt/udclient
chmod 755 versionImport.sh
chmod 755 udclient
./versionImport.sh adminuser adminpassword ucdurl:port
Application
{
"id": "9cd00ba4-16f7-424c-96f8-701d5ba522ce",
"name": "6.0.0.0",
"type": "FULL",
"created": 1443178546234,
"active": true,
"archived": false,
"sizeOnDisk": 0,
"properties": [{
"id": "5efcdfc2-cae8-49af-8049-44b513d38378",
"name": "versionHash",
"value": "",
"secure": false
}],
"propSheets": [{
"id": "fa58d5b4-fcee-4bd3-856e-58fd88d9be74",
"path": "components\/e96ee3b8-2b96-4194-92b3-110c7f82b42e\/versions\/9cd00ba4-16f7-424c-96f8-701d5ba522ce\/propSheetGroup\/propSheets\/fa58d5b4-fcee-4bd3-856e-58fd88d9be74",
"version": 1,
"versionCount": 1,
"commit": 0,
"versioned": true,
"propSheetDef": {
"id": "b6a30dab-82a7-40bd-9145-bb9554454174",
"path": "components\/e96ee3b8-2b96-4194-92b3-110c7f82b42e\/versionPropSheetDef",
"version": 1,
"versionCount": 1,
"commit": 11,
"resolveHttpValuesUrl": "property\/propSheetDef\/components%26e96ee3b8-2b96-4194-92b3-110c7f82b42e%26versionPropSheetDef.-1\/resolveHttpValues",
"versioned": true
},
"properties": [{
"id": "5efcdfc2-cae8-49af-8049-44b513d38378",
"name": "versionHash",
"value": "",
"secure": false,
"inherited": false
}]
}],
"totalSize": 0,
"totalCount": 0
}
ApplicationServer
{
"id": "bea2371e-37ee-48e8-a626-d94608fb8cf4",
"name": "6.0.0.0",
"type": "FULL",
"created": 1443178551417,
"active": true,
"archived": false,
"sizeOnDisk": 0,
"properties": [{
"id": "59a18ea2-037e-4476-a506-7363c1353359",
"name": "versionHash",
"value": "",
"secure": false
}],
"propSheets": [{
"id": "7013a5bd-05e5-4170-bc97-7617522b1b30",
"path": "components\/bb5f100c-d088-4e46-a8c9-6c43276c17dd\/versions\/bea2371e-37ee-48e8-a626-d94608fb8cf4\/propSheetGroup\/propSheets\/7013a5bd-05e5-4170-bc97-7617522b1b30",
"version": 1,
"versionCount": 1,
"commit": 0,
"versioned": true,
"propSheetDef": {
"id": "28bb0dd4-4169-4a95-ae4d-c00fa3a759a8",
"path": "components\/bb5f100c-d088-4e46-a8c9-6c43276c17dd\/versionPropSheetDef",
"version": 1,
"versionCount": 1,
"commit": 11,
"resolveHttpValuesUrl": "property\/propSheetDef\/components%26bb5f100c-d088-4e46-a8c9-6c43276c17dd%26versionPropSheetDef.-1\/resolveHttpValues",
"versioned": true
},
"properties": [{
"id": "59a18ea2-037e-4476-a506-7363c1353359",
"name": "versionHash",
"value": "",
"secure": false,
"inherited": false
}]
}],
"totalSize": 0,
"totalCount": 0
}
Database
{
"id": "1b51b770-db49-4d76-b6a6-a6783118eb80",
"name": "6.0.0.0",
"type": "FULL",
"created": 1443178556278,
"active": true,
"archived": false,
"sizeOnDisk": 0,
"properties": [{
"id": "0c8ec719-e020-4ec3-90cc-54a09f704975",
"name": "versionHash",
"value": "",
"secure": false
}],
"propSheets": [{
"id": "b6ad12db-18ca-49eb-837d-6c4c916fe789",
"path": "components\/ecef9a81-cc1b-4bf0-b147-ad395c35246e\/versions\/1b51b770-db49-4d76-b6a6-a6783118eb80\/propSheetGroup\/propSheets\/b6ad12db-18ca-49eb-837d-6c4c916fe789",
"version": 1,
"versionCount": 1,
"commit": 0,
"versioned": true,
"propSheetDef": {
"id": "dc58e025-4829-42f5-bc9c-7206b88a6538",
"path": "components\/ecef9a81-cc1b-4bf0-b147-ad395c35246e\/versionPropSheetDef",
"version": 1,
"versionCount": 1,
"commit": 11,
"resolveHttpValuesUrl": "property\/propSheetDef\/components%26ecef9a81-cc1b-4bf0-b147-ad395c35246e%26versionPropSheetDef.-1\/resolveHttpValues",
"versioned": true
},
"properties": [{
"id": "0c8ec719-e020-4ec3-90cc-54a09f704975",
"name": "versionHash",
"value": "",
"secure": false,
"inherited": false
}]
}],
"totalSize": 0,
"totalCount": 0
}
InstallationManager
{
"id": "1f2934c0-30f3-4c74-8eca-6008790f1e19",
"name": "6.0.0.0",
"type": "FULL",
"created": 1443178560778,
"active": true,
"archived": false,
"sizeOnDisk": 0,
"properties": [{
"id": "9a80e7ed-7436-4170-82e0-432cca667466",
"name": "versionHash",
"value": "",
"secure": false
}],
"propSheets": [{
"id": "9e3b7fb5-9c20-459b-bd62-7c4543ee3bc5",
"path": "components\/8e1b9b6c-8f83-4eb8-9999-7ca4ff6c7dd9\/versions\/1f2934c0-30f3-4c74-8eca-6008790f1e19\/propSheetGroup\/propSheets\/9e3b7fb5-9c20-459b-bd62-7c4543ee3bc5",
"version": 1,
"versionCount": 1,
"commit": 0,
"versioned": true,
"propSheetDef": {
"id": "f3607885-5a7f-41e5-84bf-d1757bddb666",
"path": "components\/8e1b9b6c-8f83-4eb8-9999-7ca4ff6c7dd9\/versionPropSheetDef",
"version": 1,
"versionCount": 1,
"commit": 11,
"resolveHttpValuesUrl": "property\/propSheetDef\/components%268e1b9b6c-8f83-4eb8-9999-7ca4ff6c7dd9%26versionPropSheetDef.-1\/resolveHttpValues",
"versioned": true
},
"properties": [{
"id": "9a80e7ed-7436-4170-82e0-432cca667466",
"name": "versionHash",
"value": "",
"secure": false,
"inherited": false
}]
}],
"totalSize": 0,
"totalCount": 0
}
SystemPre-Requisite
{
"id": "0c1ab668-0932-4f69-9bc5-2e2fe71ff4b5",
"name": "6.0.0.0",
"type": "FULL",
"created": 1443178565166,
"active": true,
"archived": false,
"sizeOnDisk": 0,
"properties": [{
"id": "167277c8-e061-4a9c-a6a5-1f08f6fca76d",
"name": "versionHash",
"value": "",
"secure": false
}],
"propSheets": [{
"id": "33979708-7110-45ad-a071-fc42e53117ac",
"path": "components\/7788e308-64ab-469b-96a2-f72a67a022b2\/versions\/0c1ab668-0932-4f69-9bc5-2e2fe71ff4b5\/propSheetGroup\/propSheets\/33979708-7110-45ad-a071-fc42e53117ac",
"version": 1,
"versionCount": 1,
"commit": 0,
"versioned": true,
"propSheetDef": {
"id": "80c328be-bb26-4c2d-b751-87d9f7c5f2d8",
"path": "components\/7788e308-64ab-469b-96a2-f72a67a022b2\/versionPropSheetDef",
"version": 1,
"versionCount": 1,
"commit": 11,
"resolveHttpValuesUrl": "property\/propSheetDef\/components%267788e308-64ab-469b-96a2-f72a67a022b2%26versionPropSheetDef.-1\/resolveHttpValues",
"versioned": true
},
"properties": [{
"id": "167277c8-e061-4a9c-a6a5-1f08f6fca76d",
"name": "versionHash",
"value": "",
"secure": false,
"inherited": false
}]
}],
"totalSize": 0,
"totalCount": 0
}