Reasons:
Deploywrapper installing all agents upgrades all agents and binaries but
software delivery. (Stays 12.5ga. This agent will never get a piece of
software again. You have to manually fix. This script will fix it. Thid has
happened to me a few thousand times because deploywrapper did not stop
sdagent.)
Deployment just fails. Reasons unknown. Could be the users machine has a
cert issue, communication took too long, maybe some of the communication
was blocked. This script will not only fix cert issues but install all
agents without the security flaws of dmprimer. (I work in secure
enviorments where you have over 3000 group policy settings set blocking
most functionality.)
Now whats other benefits, I have only 80 people who can login to dsm
explorer but 200 tier 2s and maybe 100 tier ones. 14 domains. If an admin
needs to remote control the machine and remote isnt there they have a
method to make it work almost instanitly. No deployment wizard no waiting.
I think of this as very similar to dameware just a bit fatter of a client.
Btw soon scripts I will be uploading can be put in ad. How do you find
boxes where there is no caf? No cam? Or disabled? This will resolve that.
How do you deploy agents inside your image? I have used osim (completely
custom..) to deploy over 15000 images in the last 2 years to about roughly
90 different models of laptops and desktops. (1 image).
This script slightly modified will make your agents functional immediately.
If you use deploywrapper as thier kb article says then it will not wait and
you have to write something to loop and keep open command until
deplowrapper closes for second time.
Regardless I understand where you are coming from. I do agree that you
could just use ca to do all these things. Most of these were only written
because so much of each enviroment broke. (Really hate that cert bug).
Thank you for the feedback. Have you looked at each script yet?
Vr
Chris
On Nov 21, 2012 5:48 AM, "CA Client Management Solutions Global User
Community" <
CommunityAdmin@communities-mail.ca.com> wrote:
cholmes2.2:
Do you have a cert issue and need to fix it? There are several methods you
can use to resolve this problem. One of the easiest ways I have found is by
reinstalling the Agents with the upgraded Agent.
If you follow the above steps and create the package, then extract out the
contents to some folder.
If your network is not too complicated and everyone is in a single Domain
or LDAP, you could create a folder on your ITCM Server. For Instance on
Server 2008 Name it ITCMAgents
Give the Following Security Permissions: Authenticated Users - Read
Administraotrs (you): Full Control Strip all other permissions
Use the Advanced Sharing, give everyone full control.
(This will mean anyone cna hit the share but the security permissiosn will
still work to isolate what a user can see and cant see.)
Next Create another folder Called LOGS
This Folder: Security Rights give authenticated users: Full Control
Next Copy the Extract package to the Shared ITCMAgents Folder
Now right click on itcmagents.cmd and click edit
Please do not use names with spaces. mkdir in batch files does not like
this. This is the offical warning I forgot in the above post....
Modify the following section:
REM EDIT Below this Line ----
SET AgentServer=
SET COPYServer=
SET COPYLocation=
SET HOMEDIR=C:\software\ITCMAgents
SET SERVERLOG=%2
SET LOGFILE=%HOMEDIR%\Agents.log
SET SERVERFILELOCATION=C:\Windows\System32\updates
SET SERVERFILE=SDAgentServer.txt
SET TempFolder=%WINDIR%\TEMP
SET SDAGENTEC=%HOMEDIR%\SDAgentEC.log
REM EDIT Above This Line, do not edit below this line unless you want
to.You have been warned..-------------------
REM EDIT Below this Line ----
SET AgentServer=
SET COPYServer=\\exampleserver.ca.com
SET COPYLocation=ITCMAgents
SET HOMEDIR=C:\software\ITCMAgents
SET SERVERLOG=%COPYSERVER%\LOGS\%COMPUTERNAME%-%RANDOM%.log
SET LOGFILE=%HOMEDIR%\Agents.log
SET SERVERFILELOCATION=C:\Windows\System32\updates
SET SERVERFILE=SDAgentServer.txt
SET TempFolder=%WINDIR%\TEMP
SET SDAGENTEC=%HOMEDIR%\SDAgentEC.log
REM EDIT Above This Line, do not edit below this line unless you want
to.You have been warned..-------------------
I know this was not as intuitive as it should be but, I have used this
quite a bit and it works.
Next Download SysinternalsSuite From Microsoft. (http://sysintnerals.com)
Extract out the Zip
Open a command prompt on yoru machine using a useraccount that has admin
rights on teh machine you want to work on.
(To open up a command prompt as a different user on Windows 7 or Vista,
just right click while holding down shift on cmd.exe)
Once the command prompt is open, verify you are who you say you are by
running a whoami. You want to make sure your admin account is runnig and
not you (as long as you follow best practices anyway)
now CD /d "place you extract sysinternals folder"
run the following: psexec -s \\newagentorbroken \\exampleserver.ca.com\ITCMAgents\ITCMAgents.cmd
ScalabilityServer.ca.com
(If you do not pass a Scalability Server to the machine that is ok, as
long as it is not a new install, remember on upgrades that field gets
ignored and will not redirect from one SS to another....)
Now as long as everything is setup properly, you will see the following
things happen on teh box, A directory will get created on the machine
called C:\software\itcmagents
All the files will copy down.
Once they have copied down all teh agents will install one by one very
similar to the way deploywrapper does it.
If a REinstall is detected in Software Delivery, it is going to run
cacertutil repair -commit on the machine (yay the agent will be able to
talk when done)
Notice that CAF is not started until the last part is executed. AM starts
CAF. This is by design, you can change this if you want by modifying the
script setting the CAF_START_SERVICE=0
If eveyrthing works as planned, a Log file will get copied up to your
Server Share. If the agent fails the install process, please see the files
in C:\windows\temp
Please note: All of these things are able to be used, I have used them by
teh thousands, but that does not mean they will work for everyone. Please
test everything. These scripts are provided as is and are free. I am only
trying to assist others since I have seen so much recently on how agents
get deployed in each enviroment...
OK, similar comments here. The one thing that sticks out is you seem to
have a centralized directory for logs of successful installs, which would
be useful. However, if done via ITCM natively, the GREEN/RED status can be
used - further, the MSI details are captured in the tab of the deployment.
Just want to see what your thought is here...
Posted by:d.rose
--
CA Communities Message Boards
99697254
mb.2311054.99694714@myca-email.ca.com
https://communities.ca.com
--
------------------------------
The information contained in this e-mail and any attached documents may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient you may not read, copy, distribute or use this
information. If you have received this communication in error, please
notify the sender immediately by replying to this message and then delete
it from your system.
----------------------------