none
Deleting and Importing Custom Management Packs

    Question

  • Quick question. I extended the computer class in the authoring tool to add new fields to the computer form. There have been twenty+ new entries into the Windows Computer configuration item with inputs in the new fields under the "Extension" tab. Now, I wish to add some more fields but do not want to lose the information already added to the customized forms from the console. Currently it is a sealed management pack. What is the best practice to go about this? Do I export the sealed management pack, unseal it using the key, make the necessary changes, and then re-import it?

    Thanks for any help, apologies if this is a simpler task than I am leading it on to be

    Friday, February 03, 2012 10:44 PM

Answers

  • You can use the same key for all of your sealed Management Packs. For example, all of the Microsoft ones have the same public key token.
    Wednesday, February 08, 2012 7:03 PM
    Moderator
  • You still have the original unsealed management pack you created the sealed mp from? Then it's easy:

    • Open the original unsealed management 
    • Increase the version of the management pack
    • Add the properties you want
    • Save the unsealed management pack (keep it safe for the next update)
    • Seal the management pack with the same key you used for the first sealed one
    • Import the new sealed management pack

    Sealed management packs can be upgraded by a higher version without any loss of data.


    Andreas Baumgarten | H&D International Group
    Friday, February 03, 2012 11:37 PM
    Moderator

All replies

  • You still have the original unsealed management pack you created the sealed mp from? Then it's easy:

    • Open the original unsealed management 
    • Increase the version of the management pack
    • Add the properties you want
    • Save the unsealed management pack (keep it safe for the next update)
    • Seal the management pack with the same key you used for the first sealed one
    • Import the new sealed management pack

    Sealed management packs can be upgraded by a higher version without any loss of data.


    Andreas Baumgarten | H&D International Group
    Friday, February 03, 2012 11:37 PM
    Moderator
  • Is it safe to use the same key for multiple management packs, or should each management pack have its own individual key pair?

    Wednesday, February 08, 2012 6:25 PM
  • You can use the same key for all of your sealed Management Packs. For example, all of the Microsoft ones have the same public key token.
    Wednesday, February 08, 2012 7:03 PM
    Moderator
  • Dear Andreas,

    Dear Rob,

    I my case; I have created a new unsealed MP for ConfigItem Class and I imported it into SCSM, but now I want to Seal and Re-import this MP without losing the data, is that possible? If YES, what is the right way to do that??

    Many Thanks in Advance

    Best Regards


    Thursday, June 27, 2013 10:21 AM
  • the only way to do this is export data to temp storage (file etc.), remove unsealed, import sealed and import data from temp file

    SCSMSolutions
    email: freemanru (at) gmail (dot) com

    Thursday, June 27, 2013 9:01 PM
    Moderator
  • Dear Anton,

    Thanks for your reply, but kindly would you explain to me how to export the data to temp storage ?

    Thanks Again

    Best Regards

    Friday, June 28, 2013 12:06 AM
  • You could use powershell cmdlets, or directly from sql. I dont think there is any "easy" way to do this. The custom properties defined in a MP are all contained in a single table, which is dropped (DROP TABLE) when you delete the MP. In theory you could export this table, delete the MP, import the new sealed MP, and then then import the table. I guess you would need to adjust some references in SQL to make it work. Maybe Anton or Andreas would know how to do it? 
    Friday, June 28, 2013 9:43 AM
  • smlets + get-scsmobject + convertto-xml

    SCSMSolutions
    email: freemanru (at) gmail (dot) com

    Friday, June 28, 2013 6:51 PM
    Moderator
  • Dear Anton,

    many thanks for your reply, but I could not get the idea :( 

    I think I need more explanation :)

    one more question: can I export the data from the management pack to CSV file to import it later ? if YES how ?

    Thanks and Best Regards

    Saturday, June 29, 2013 11:06 PM
  • Dear Anton Gritsenko (FreemanRU)

    I have created a new Unsealed Management Pack for Configuration Item Class and I imported it into SCSM, but now I want to Seal and Re-import this MP without losing the data,
    I exported the data from the Management Pack to CSV file to import later.

    http://blogs.technet.com/b/servicemanager/archive/2010/03/03/hidden-feature-export-data-to-excel-from-a-view.aspx

    the Challenge now is the Relationship between the Configuration Items and the associated Work items (Incidents tickets, Change Requests tickets) will be lost.

    Any Suggestions ???

    Many Thanks and Best Regards

    Friday, July 05, 2013 2:36 PM