Registered member login:
Register Now
Altirigos » Notification Server and Solutions » Patch Management » Move Package Download folder?

» Current Poll
Vista?
Staying on XP until Windows 7 - 71.83%
102 Votes
Already on Vista - 10.56%
15 Votes
Planning an upgrade to Vista soon - 10.56%
15 Votes
Other (please explain) - 7.04%
10 Votes
Total Votes: 142
You may not vote on this poll.
» Stats
Members: 6,845
Threads: 9,784
Posts: 47,849
Top Poster: Nick (4,800)
Welcome our newest member, suresh
» Online Users: 43
5 members and 38 guests
eleets2, ipetit@technip.com, ittcs, klaasdm, suresh
Most users online at once 294, 06-30-2007 at 01:24 PM.
» January 2009
S M T W T F S
28293031 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Reply
Old 07-12-2005, 03:12 PM   #1 (permalink)
 
Status: Super Altiris Admin
Join Date: 02-23-2005
Location: Mission Viejo, CA
Age: 37
Posts: 402


Move Package Download folder?

I'm running out of space locally, so I've mapped to a filer and set the Package Download folder to the new location, however, nothing has downloaded to the new location. How do I force PM to move everything to the new folder? I've verified that the permissions are properly set so folders/files can be added with our Altiris domain account.
JenH is offline   Reply With Quote
Old 07-12-2005, 03:51 PM   #2 (permalink)
 
Status: Junior Altiris Admin
Join Date: 02-18-2005
Location: San Bruno, California, USA
Posts: 12


Is this for the Notification server or package server?
tootuff305 is offline   Reply With Quote
Old 07-12-2005, 05:23 PM   #3 (permalink)
 
Status: Super Altiris Admin
Join Date: 02-23-2005
Location: Mission Viejo, CA
Age: 37
Posts: 402


Patch Management in the Notification Server itself. My package servers are fine.
JenH is offline   Reply With Quote
Old 07-12-2005, 10:26 PM   #4 (permalink)
 
Nick's Avatar
 
Status: Altiris Architect (Site Founder)
Join Date: 01-01-2005
Location: RDU, North Carolina, USA
Posts: 4,800


Jen,

I am not 100% sure on this one but I don't think that the packages will update themselves unless something has changed with the package. I don't think the new location will qualify it.

What you might want to try that I have done in the past is to increment the version of the package from say 1.0 to 1.1. My lab server is down right now so I can't get you a screenshot to show you exactly where I mean.

Again I'm not sure if this will fix what you want to do but it is what I have done in the past to update a package when it has a batch file or vbscript that I have modified.
__________________
Scire potentia est (knowledge is power)
Nick is offline   Reply With Quote
Old 07-13-2005, 12:59 PM   #5 (permalink)
 
Status: Super Altiris Admin
Join Date: 02-23-2005
Location: Mission Viejo, CA
Age: 37
Posts: 402


Hmmm...well, these are the Patch files that Patch Management automatically downloads. I've temporarily disabled all the security bulletins and will be re-enabling them today to see if files are re-downloaded to the new location. I fear I'll have to uninstall and re-install Patch Management in order for the server to realize I've moved the download location.
JenH is offline   Reply With Quote
Old 07-13-2005, 02:37 PM   #6 (permalink)
 
Status: Altiris Engineer (Super Mod)
Join Date: 03-23-2005
Location: Belgium
Posts: 251


I don't think disabling the bulletins will help. I think the packages will still be there. You can try deleting a bulletin, re-running PMIMPORT, enabling the bulletin, and see if that one is downloaded to the correct location.
__________________
Tom
Tom.Reyntjens is offline   Reply With Quote
Old 07-13-2005, 07:56 PM   #7 (permalink)
 
Status: Super Altiris Admin
Join Date: 02-23-2005
Location: Mission Viejo, CA
Age: 37
Posts: 402


Actually, disabling the bulletins did the trick. I disabled them, then re-enabled them 24 hours later. I now show all the re-enabled bulletins in the new folder location.
JenH is offline   Reply With Quote
Old 12-04-2005, 07:31 AM   #8 (permalink)
 
Status: Junior Altiris Admin
Join Date: 12-04-2005
Location: Iceland
Age: 39
Posts: 8


HI

If you disable and re-enable bulletins the only things that happens is that they are only downloaded again. What we actually need to be done is that bulletins to be moved and all the software update packages distribution points to modified to the new location.

If this is possible without editing 300 updates its fine.

M
marteinn is offline   Reply With Quote
Old 12-04-2005, 12:38 PM   #9 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


If you change your package download location, disabling and re-enabling the bulletins will cause the downloads to go to the new location. Creating a new software update task for that bulletin will cause a new policy to be created, and the GUID folder for each update in that bulletin to be shared out (from the new location).

There is no way to move you current software update packages, because they are also shares, which, by nature, cannot be moved after creation as the share will be removed.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-06-2005, 07:21 PM   #10 (permalink)
 
Status: Junior Altiris Admin
Join Date: 12-04-2005
Location: Iceland
Age: 39
Posts: 8


Well this how it works today, but think about it - it would really nice to have I task that does this. You might for several reasons want to move the updates, and because how many they are you might not want edit all pacakages.

Maybe someday it will.

M
marteinn is offline   Reply With Quote
Old 12-06-2005, 10:39 PM   #11 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


Now that I think about it, I am wondering about the possiblity of writing a C# script to do this. I wrote a script to delete all of the packages from the updates folder in a handy little reverse PMImport tool, so I'm sure it wouldn't be too difficult. All I would have to do, is parse through the folder structure, update the locations of the packages in the database, move the packages to their new locations, and create new shares. The tricky part will be the shares, but I'll see what I can find out. This little tool would be very useful if I could figure it out. Let the design begin...

Hmmm.....
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-07-2005, 01:05 AM   #12 (permalink)
 
Nick's Avatar
 
Status: Altiris Architect (Site Founder)
Join Date: 01-01-2005
Location: RDU, North Carolina, USA
Posts: 4,800


Ok.... I've got to learn C# now... No way I'm letting you have that much fun without me.
__________________
Scire potentia est (knowledge is power)
Nick is offline   Reply With Quote
Old 12-07-2005, 06:29 AM   #13 (permalink)
 
Status: Junior Altiris Admin
Join Date: 12-04-2005
Location: Iceland
Age: 39
Posts: 8


If you can change it in the datebase then the share are no problem

I could live with in three steps
Move the updates
Change the tasks (package location in database)
Set new shares

There is only one thing that is stopping me and that is how update the db. I dont know in what table to find this (I tried to modify one table but got it not work)

I can get the share names and reshare with net share. Propably it can be done with vbscript also.

M
marteinn is offline   Reply With Quote
Old 12-07-2005, 11:39 AM   #14 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


I tend to lean more towards C# now, because Altiris has an API which contains pre-built functions to make life easier. One example, is a DeleteItem function which when passed a single GUID, completely deletes that resource from the database (so it is the same as manually deleting the resource from the console). Plus, I am sure that for a task such as this one, Development is more likely to approve a tool I write in C# rather than VBScript. However, I will look into both and see which one would be more appropriate.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-08-2005, 01:13 AM   #15 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


After doing some initial testing, to create a share for a folder which already exists takes less than 10 lines of code in VBScript, but over 100 in C#.

I think I will proceed with the first.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-08-2005, 05:29 AM   #16 (permalink)
 
Status: Junior Altiris Admin
Join Date: 12-04-2005
Location: Iceland
Age: 39
Posts: 8


Hi


I look forward to see what you come up with

cheers
M
marteinn is offline   Reply With Quote
Old 12-08-2005, 11:20 AM   #17 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


Just a quick question, is the new download location on the same server, just maybe a different drive, or are you placing on a completely different machine? I need to know whether to test this with UNC paths, or just local paths.

I got all the files to move to a new location and the shares are created, just working on the database update now.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-08-2005, 05:48 PM   #18 (permalink)
 
Status: Super Altiris Admin
Join Date: 02-23-2005
Location: Mission Viejo, CA
Age: 37
Posts: 402


In my case, we moved from a local drive to a filer using an UNC path.
JenH is offline   Reply With Quote
Old 12-08-2005, 06:23 PM   #19 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


I think I've hit a snag. The current code copies all of the folders to the new location, updates the package location in the database, and creates the network share for each GUID folder. However, I have realized that each GUID folder is also a Web share. I have researched how to create Web shares via VBScript, but have yet to come up with any results.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-09-2005, 12:12 AM   #20 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


I've since moved on to add some additional functionality to the EnableAllBulletins script. If you have no idea what this script is, it was released by Altiris as a tool to enable all bulletins that have not yet been enabled, and create tasks for them. I am going to modify it so that you can pass a .txt file with names of bulletins you wish to enable via command line. A lot of the concepts used in this code could apply to moving the old bulletins and creating new tasks for them. I should complete this by early next week and then I will jump back on this little project.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 12-11-2005, 08:17 PM   #21 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


Ok, I have the script complete now. I will be on the phone with our Developers on Tuesday, and will probably have to get their approval before I can make it public. Once again, I'll keep you updated.
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 05-11-2006, 11:17 AM   #22 (permalink)
 
TRYDL's Avatar
 
Status: Super Altiris Admin
Join Date: 03-08-2006
Location: Baltimore, MD
Age: 28
Posts: 307


Long time reader, but first time poster

Was this vbscript / c## ever published?

Background information is the following:
A server migration going from old production hardware to new test hardware. I have successfully restored the Altiris DB to the new hardware but the package download folder for hundreds of packages is hardcoded to an E: drive. The new server does not have an E: .

I have redirected the package download folder on the new server to a UNC path on a NAS but would prefer not having to manually go through hundreds of patch packages doing a "Recreate all Packages" through the console.

Also apparently changing the 'package location' column in the table SWDPackage is not enough to properly redirect the packages since manually running the schedule task ns.package.refresh to rebuild the SMB paths fails on being unable to find the legacy E: path.

Is there a way to redirect hundreds of these packages through a process or script? Or did I miss something obvious.

Thanks in advance.
TRYDL is offline   Reply With Quote
Old 05-23-2006, 11:52 AM   #23 (permalink)
 
TRYDL's Avatar
 
Status: Super Altiris Admin
Join Date: 03-08-2006
Location: Baltimore, MD
Age: 28
Posts: 307


As a follow up for all those who need to redirect their PM storage location, the basic gist follows below :

1) Disable all enabled bulletins under Tasks
2) Delete all the bulletins once they are all disabled
3) Andrew has written a great c## script that does a reverse pmimport and deletes all PM packages. You can delete all packages under the Resources tab, but I have found, upon re-downloading those packages, your logs get filled with errors. C## script is the way to go
4) Once pmimport.cab get re-imported, re-enable all previous bulletins using another of Andrews c## scripts that references a text file of all the MS bulletins you want enabled.
5) Do a pilot of a patch deployment and keep watch of your logs to make sure it all went well.

Dont know if posting Andrew's scripts is allowed, but if anyone asks, I'll be glad to share

Cheers

EDIT ***********

Attached 2 Zip files.
Attached Files
File Type: zip EnableBulletins.zip (5.5 KB, 49 views)
File Type: zip Reverse_PMimport.zip (3.5 KB, 49 views)

Last edited by TRYDL; 05-23-2006 at 02:10 PM..
TRYDL is offline   Reply With Quote
Old 05-23-2006, 01:49 PM   #24 (permalink)
 
LordofthePatch's Avatar
 
Status: Site Administrator
Join Date: 02-16-2005
Location: The Shire
Posts: 3,022


I don't mind...
__________________
The Mac motto: "Anything you can do I can do better; I can do anything better than you."
LordofthePatch is offline   Reply With Quote
Old 10-27-2008, 09:06 PM   #25 (permalink)
 
Status: Super Altiris Admin
Join Date: 02-23-2005
Location: Mission Viejo, CA
Age: 37
Posts: 402


Has anything changed with this? I have to update the UNC path again (filer was upgraded to a new one and we have to switch to a DFS path). I've got one package server that won't pull down most of the older patches because they still point to the old UNC path, which no longer works.

If the process is the same (disabling all tasks) and the scripts still work with the current version of PM (6.2), then I'll go with it. Otherwise, would it be too difficult to update the scripts?

Thanks,
JenH is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread