GithubHelp home page GithubHelp logo

protirus / patchautomation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from somewhatsomewhere/patchautomation

0.0 0.0 1.0 93 KB

Patch Automation tool kit for Symantec Management Platform 7.1, 7.5, 7.6, 8.0, 8.1, 8.5

C# 86.05% Batchfile 13.95%
automation patch smp

patchautomation's People

Contributors

alexhedley avatar somewhatsomewhere avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

chrismueller

patchautomation's Issues

Typos

@RoybOK raised a bug on Connect

https://www.symantec.com/connect/articles/cwoc-patchautomation-and-zerodaypatch-builds-85#comment-12209241

One minor fix that has bugged me for years. Please change "stagged" to "staged" in this message series below.
Processing bulletin MS19-09-W10-4516058 (2a5dd6f2-0fa8-45dd-8685-a223e1f4fda8) now.
... bulletin will be stagged now.
Bulletin is now stagged.
to
Processing bulletin MS19-09-W10-4516058 (2a5dd6f2-0fa8-45dd-8685-a223e1f4fda8) now.
... bulletin will be staged now.
Bulletin is now staged.
Many thanks! I love this product!! Thank you for keeping it up to date!

Cast Error

Error running ZDP

Processing bulletin #NAME# (00000000-0000-0000-0000-000000000000) now.
	... bulletin will be stagged now.
	Bulletin is now stagged.
	Checking if we need to create a new policy now.
	... create a policy for the bulletin now.
Unable to cast object of type 'System.Collections.Generic.List`1[System.Guid]' to type 'Altiris.Common.GuidCollection'.
   at Symantec.CWoC.APIWrappers.PatchAPI.CreateUpdatePolicy(String name, String bulletinGuids, List`1 targetGuids, Boolean enabled)
   at Symantec.CWoC.ZeroDayPatch.RunAutomation(GuidCollection bulletins)
	Failed to create policy for bulletin #NAME# 1 time(s)...
Unable to cast object of type 'System.Collections.Generic.List`1[System.Guid]' to type 'Altiris.Common.GuidCollection'.
   at Symantec.CWoC.APIWrappers.PatchAPI.CreateUpdatePolicy(String name, String bulletinGuids, List`1 targetGuids, Boolean enabled)
   at Symantec.CWoC.ZeroDayPatch.RunAutomation(GuidCollection bulletins)
	Failed to create policy for bulletin #NAME# 2 time(s)...
Unable to cast object of type 'System.Collections.Generic.List`1[System.Guid]' to type 'Altiris.Common.GuidCollection'.
   at Symantec.CWoC.APIWrappers.PatchAPI.CreateUpdatePolicy(String name, String bulletinGuids, List`1 targetGuids, Boolean enabled)
   at Symantec.CWoC.ZeroDayPatch.RunAutomation(GuidCollection bulletins)
	Failed to create policy for bulletin #NAME# 3 time(s)...
	Failed to create policy for bulletin #NAME# 3 times - skipping the bulletin now.

Feature Request: Package Options

A question was asked on Connect by scfung:

Could you help to provide command line switch for the "As soon as possible" or "On schedule" package options on the policy creation?

This relates to the following Package Options

smp_policy_packageoptions

Patches are disabled in the created Patch policy

Hi
Since 8.6 RU3 update, the patch policy creation was bugged, I used the more recent ZeroDayPatch-8.6-RU3.zip with the "stagged" bug fixed.

Policies are well created, but the difference is that patches in the policy are always unchecked. A manual action is needed to manually check all policies and enable all patches in the policies.

ZeroDayPatch fails when downloading new bulletins after upgrade to RU3

Hello Alex and team,

I've upgraded to SMP 8.6 RU3 that was released a couple of days ago, and wanted to let you know that Zero Day Patch is not able to Download bulletins.

Error message:

Processing bulletin CHROME-220802 (34c373f2-6163-4417-a477-6c74e8643a45) now.
... bulletin will be stagged now.
Failed to stage bulletin CHROME-220802 - skipping the bulletin now.

The update is not being added to 'Distribute Software Updates'.  Also, if a bulletin is manually downloaded, there are no issues and the Policy is created:

Processing bulletin CHROME-220802 (34c373f2-6163-4417-a477-6c74e8643a45) now.
This bulletin is already staged.
Checking if we need to create a new policy now.
... create a policy for the bulletin now.
Software update policy created!

Please take a look when you get a chance.

Thanks, Roy

Add Assembly Info

I'd like to add Assembly Info to the app. We could then use that in the /version switch

Need to think about the 3 different Apps.

  • PatchAutomation
  • PatchExclusion
  • ZeroDayPatch

Create a new file AssemblyInfo.cs and update the info.
Compile: csc *.cs

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("ZeroDayPatch and PatchAutomation")]
[assembly: AssemblyProduct("PatchAutomation")]
[assembly: AssemblyCopyright("Copyright © Symantec")]
[assembly: AssemblyTrademark("Symantec Corporation")]
[assembly: AssemblyVersion("1.0.0.#")]
[assembly: AssemblyFileVersion("1.0.0.#")]

See: How To Set C# Program Version Number At Command Prompt?

TargetGuid Issue in CreateUpdatePolicy

https://www.symantec.com/connect/downloads/cwoc-patchautomation-and-zerodaypatch-builds-81#comment-12053771

@lcode

I encountered the same issue and I could fix it with making a slight change in Zerodaypatch.cs

The line which is causing the problem

wrap.CreateUpdatePolicy(name, bulletin.ToString(), config.Target_Guids, true);

My correction

wrap.CreateUpdatePolicy(name, bulletin.ToString(), config.Target_Guids[0], true);

https://github.com/Protirus/patchautomation/blob/master/ZeroDayPatch.cs#L138

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.