Not found any specific command to create System Package.
But You can give a try by using below process:
- Create a system Package manually
- Export the System Package using below BLCLI command:
blcli SystemPackage exportSystemPackage $packageKey $targetLocation
- This command will return the XML containing all details & configuration for System Package
- Edit the XML values as required
- Now import the System Package using the edited xml & a maaping.xml using below BLCLI command:
blcli SystemPackage importSystemPackage $sourcePath $mappingFile $createGroup
This in turns create (actually imports a System Package)
it also may be possible to create on from scratch w/ a number of unreleased blcli commands. i would start by looking at SystemPackage create<OS>SystemPackage where os is Redhat, Suse, Windows... or just 'createSystemPackage'...
Thanks for the replies. I have tried importing and editing. But there are lot of fields and reference numbers which didn't make much sense to me. How could I use this unreleased commands? It throws error when I try 'blcli SystemPackage createSystemPackage' command. Please help
To import please use following .
blcli -v "test" -r "CMAdmins" SystemPackage importSystemPackage file:///c/qa/solaris11/solaris11TC693838 file:///c/qa/solaris11/solaris11TC693838/mapping.xml true
blcli -v "cli" -r "BLAdmins" SystemPackage setLocalParameterDefaultValue /Automation 115209-SP DATA_STORE pv4ds
[...]It throws error when I try 'blcli SystemPackage createSystemPackage' command. Please help
It would be helpful to know the complete error message you got, right?
Thanks for the replies. I think I will go with the import option and not the unreleased commands. Any idea what are the mandatary fields in the xml that needs to be imported.? Because it has plenty of fields. If someone can provide help on that, it would be great.
I do not have such xml-file at hand - so no direct answer. Maybe you could start with the fields, that are mandatory in the GUI - i.e. device-name, root-password (including confirmation of root-password) and provisioning-device (such as eth0). With these item you could save a newly created SystemPackage in the GUI. And then add what you need.
I think it's less a matter of "mandatory fields" but more of customizing the SystemPackage according to your environment.
you need to use the 'blcli_execute' (performance commands) because:
1 - most of these commands are unreleased and not enabled in the normal 'blcli'
2 - if you need to act on java objects that are held in memory that is only possibly w/ the 'performance commands' as the blcli closes the jvm after every command execution.
what options do you need to create the system package with ? and of what os type ?