Symantec Management Platform (Notification Server)

 View Only
Expand all | Collapse all

Changed NS Install Directory

Migration User

Migration UserSep 23, 2008 06:03 AM

Migration User

Migration UserSep 23, 2008 06:04 AM

  • 1.  Changed NS Install Directory

    Posted Sep 23, 2008 05:11 AM
    I just re-set my server up from scratch. I installed the NS on the D: drive, where it was on the C: drive before. Obviously there are many errors in the logs about not being access the package path on the C: drive. Is there any way to fix this with out installing my NS on the C: drive?


  • 2.  RE: Changed NS Install Directory

    Posted Sep 23, 2008 06:03 AM
    You used the same database though right?


  • 3.  RE: Changed NS Install Directory

    Posted Sep 23, 2008 06:04 AM
    Yes.


  • 4.  RE: Changed NS Install Directory

    Posted Sep 23, 2008 06:06 AM
    All those file paths, for every package are stored in the database. So, programatically, I'm not sure how you would change it (possibly through the item table in SQL). You can access the packages, whether they are internal altiris (agents, etc) software delivery and patch packages, and change it.


  • 5.  RE: Changed NS Install Directory

    Posted Sep 23, 2008 06:17 AM
    I will uninstall, then reinstall the NS to the C: drive and do it right.


  • 6.  RE: Changed NS Install Directory

    Posted Sep 23, 2008 06:25 AM
    The only thing official I can find is this: https://kb.altiris.com/article.asp?article=35377&p=1, which mentions manually changing it.


  • 7.  RE: Changed NS Install Directory

    Posted Sep 24, 2008 06:42 AM
    Thanks Jim. This is great. However, I can only right click on one package at a time. If I select even two packages, right clicking does nothing.

    Any recommendations?


  • 8.  RE: Changed NS Install Directory

    Posted Sep 24, 2008 07:30 AM
    One at a time is the only way I know of within the NS Console. I can think of a few ways to try to do this in bulk, but you would want to test this in a lab first. I haven't tried any of them myself, but if I was going to have to change this for a few hundred packages, I'd probably try number 3 first (again, in a test environment first).
    1) You could script something that exports the package XML, updates the location of the source files, then re-imports it using importexportutil.exe found in the bin folder.
    2) Use the SDK to do the same steps in number 1, but use the methods available in the SDK to update the source
    3) See if a simple update to the [Package Location] field of the SWDPackage table would work.


  • 9.  RE: Changed NS Install Directory

    Posted Sep 25, 2008 05:38 AM
    Can we just delete the PM packages from the database, then re-add them per the article?


  • 10.  RE: Changed NS Install Directory

    Posted Sep 25, 2008 06:26 AM
    If you delete them from the resources area, you should just be able to use patch management to recreate them, if that's what you mean.


  • 11.  RE: Changed NS Install Directory

    Posted Sep 25, 2008 06:28 AM
    I can only delete one at a time, from the resource area. There are over 800 PM packages. Is there a way to delete more than one at a time?


  • 12.  RE: Changed NS Install Directory

    Posted Sep 25, 2008 06:31 AM
    If you highlight one and press shift and select another (standard windows stuff) you should be able to select a bunch and right click and delete. I've done this many times.


  • 13.  RE: Changed NS Install Directory

    Posted Sep 25, 2008 06:33 AM
    When I right click on more than one line, nothing happens. I take it this isn't by design.


  • 14.  RE: Changed NS Install Directory

    Posted Sep 25, 2008 06:38 AM
    Nope, especially if you're logged on as an Altiris Admin. It's an item task, so you should have access to it.


  • 15.  RE: Changed NS Install Directory
    Best Answer

    Posted Oct 01, 2008 06:20 AM
    I had a script to run with NScript, InvalidateMissingPackages.cs, from a previous problem. I ran it and it took care of 90% of the error messages. I can clean up the rest manually.


    Thank you for everything as usual.