Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Herman1 Absent Member.
Absent Member.
1667 views

chicken and egg problem

Hi,

Is there a solution to remove the client from a pc. I have reinstalled the ZCMserver and the client tells me that he is already registered (in the GUI). When i try to do a zac -ur the I have a message that the client is not registerd. A ZAC -reg tells met that the pc is registerd. A unistall from the client tells me that this is "not authorised".

This is the chicken and egg problem.

How can i now remove the client?

Thanks

Labels (2)
0 Likes
8 Replies
Obiwan1 Absent Member.
Absent Member.

Re: chicken and egg problem

Try zac unregister -f 🙂
0 Likes
Obiwan1 Absent Member.
Absent Member.

Re: chicken and egg problem

Obiwan;1934394 wrote:
Try zac unregister -f 🙂


I was lost in the past until I found it in the SP2 readme :

3.17.1 The zac unregister command help does not explain the -f switch
If you enter zac unr /?, the help shows an example using the -f switch, but doesn’t explain its purpose.

The -f switch forces a device to unregister if the zac unregister command alone does not unregister the device.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: chicken and egg problem

Delete the %programfiles%\novell\zenworks\cache folder.
Then you should be able to just issue the "zac reg" command to
reregister to the new zone.

On 2/17/2010 8:16 AM, Herman wrote:
>
> Hi,
>
> Is there a solution to remove the client from a pc. I have reinstalled
> the ZCMserver and the client tells me that he is already registered (in
> the GUI). When i try to do a zac -ur the I have a message that the
> client is not registerd. A ZAC -reg tells met that the pc is registerd.
> A unistall from the client tells me that this is "not authorised".
>
> This is the chicken and egg problem.
>
> How can i now remove the client?
>
> Thanks
>
>


--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
Knowledge Partner
Knowledge Partner

Re: chicken and egg problem

Also note this tool : NOVELL: Downloads - ZCM 10.2.x Agent Cleanup Utility might help in to force remove the ZCM agent & do a fresh install.

It's still beta and the roots and additional cleanup info can be found here : http://forums.novell.com/novell-product-support-forums/zenworks/configuration-management/zcm-agent-deployment/379870-clean-removal-tool.html

Cheers,
Willem
0 Likes
Highlighted
9555269 Absent Member.
Absent Member.

Re: chicken and egg problem

I'm partial to FDISK...


Herman;1934386 wrote:
Hi,

Is there a solution to remove the client from a pc. I have reinstalled the ZCMserver and the client tells me that he is already registered (in the GUI). When i try to do a zac -ur the I have a message that the client is not registerd. A ZAC -reg tells met that the pc is registerd. A unistall from the client tells me that this is "not authorised".

This is the chicken and egg problem.

How can i now remove the client?

Thanks
0 Likes
grimwadem Absent Member.
Absent Member.

Re: chicken and egg problem

Use the agentcleanup tool mentioned above. It Works!!

I spent months remotely removing old 'broken' versions of the client off of our 22,000+ devices using all sorts of scripts and tricks. This tool was an absolute god send.

I found that it should be run from the command line on the local machine (I usually copy it to C:\) then if you run it with a -casa switch it will clean off the casa identity manager also.

If it says you need to re-boot then listen to it and do the re-boot before trying to re-install a new client. There are often locked files that can only be removed on start up.

Like I say I've used this tool on literally thousands of machines and so long as these simple guidelines are followed it works every time.

When 10.2.2 came out I did see one or two machines that it failed on but I think the new version of the tool has fixed this. If you're particularily unlucky and find it doesn't work then there is one last trick you can use.

After running the agentcleanup tool on the troublesome machine. Locate this key in the registry.

HKEY_CLASSES_ROOT\Installer\Products

Take a backup of the whole key. (you'll be deleting stuff delete something
Below this key are a bunch of keys named with GUIDS. Scroll through these and delete any that reference Zen modules. This should remove any last trace of the old client.

Below is a reg file that will remove the keys for you but it is based on my win7 64 bit install. If you're using another OS you will need to create your own. Also bear in mind that you may not be using the same modules as we do so there may be others not listed. It should however be a good starting point for you. You'll just need to tailor it to your install.

One last thing. If you're not already familiar with it I would suggest looking up PsExec.exe from the sysinternals team. It's similar to telnet in that it allows you to run a process remotely but has the added bonus of being able to work though a list of machines executing commands on each. V handy tool for this work. Especially when working with large numbers of machines with non functioning Zen agents.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Installer\Products]

-[HKEY_CLASSES_ROOT\Installer\Products\07FD582D4A6F9BD4890C40A2D5CCCDBB]
-[HKEY_CLASSES_ROOT\Installer\Products\115EBE749C3C73445A6CCFCB8F0F2C78]
-[HKEY_CLASSES_ROOT\Installer\Products\1286AAA9DF0CA8949BA6FF503F0DC534]
-[HKEY_CLASSES_ROOT\Installer\Products\227957A25E5EFC344B6471334ABE150F]
-[HKEY_CLASSES_ROOT\Installer\Products\29F4F810DB524794691E343FF54CF224]
-[HKEY_CLASSES_ROOT\Installer\Products\2D2A22C0930E23843BBB7EE65CF78BBE]
-[HKEY_CLASSES_ROOT\Installer\Products\34C60F974707A374699BE11D2A0E905D]
-[HKEY_CLASSES_ROOT\Installer\Products\38AAA49A8F3860A4F8A6C0F14975E48D]
-[HKEY_CLASSES_ROOT\Installer\Products\3BC0D282E8941EE4E8DC2BA395275027]
-[HKEY_CLASSES_ROOT\Installer\Products\3E8BB75496B80B84CB714711B491593B]
-[HKEY_CLASSES_ROOT\Installer\Products\40D252F5823B1EF4EA2D588EE8AF367A]
-[HKEY_CLASSES_ROOT\Installer\Products\46AF736CFEE66344BAB0EAB9BF528F61]
-[HKEY_CLASSES_ROOT\Installer\Products\4E4C8EE6E6099774985F7CCF69CAB34B]
-[HKEY_CLASSES_ROOT\Installer\Products\50CAB36BEDD6FF445B73797CB39E0778]
-[HKEY_CLASSES_ROOT\Installer\Products\5F18B978A6B5C3348933EB6E5DDE5667]
-[HKEY_CLASSES_ROOT\Installer\Products\6B3B35B52B1342F49BEA6FCB3A8C0F95]
-[HKEY_CLASSES_ROOT\Installer\Products\6F366E021FE70674793BDC008F199396]
-[HKEY_CLASSES_ROOT\Installer\Products\77EF505B3E0AA7444A4E6452483EF325]
-[HKEY_CLASSES_ROOT\Installer\Products\7B1DB3C5093BA3E408CEAC76EA6835DC]
-[HKEY_CLASSES_ROOT\Installer\Products\80AF8862CB9AE1B49AD17AC09954F02A]
-[HKEY_CLASSES_ROOT\Installer\Products\860E7A17BBEAA1B4EA6D93B889A7B5C5]
-[HKEY_CLASSES_ROOT\Installer\Products\8924548C8020E044A906D82C773EB50A]
-[HKEY_CLASSES_ROOT\Installer\Products\8F8DBE293FEC27E4EB0C21B9E256CCB6]
-[HKEY_CLASSES_ROOT\Installer\Products\925DC4679A7E1904FAD3DD6282F458FC]
-[HKEY_CLASSES_ROOT\Installer\Products\962CB0BCCA5F5A547BCB5CDE1EE54D32]
-[HKEY_CLASSES_ROOT\Installer\Products\96D797C96F7AA1C419FC8E6C09013017]
-[HKEY_CLASSES_ROOT\Installer\Products\A012CFC342AB8AE4CAEAA79ECF38FB4A]
-[HKEY_CLASSES_ROOT\Installer\Products\A1C7BFC0CAA38504EB4DF9029DBD473A]
-[HKEY_CLASSES_ROOT\Installer\Products\A2F7AD902949EE546B9F7C80C85D2B75]
-[HKEY_CLASSES_ROOT\Installer\Products\A95878AAD6889504ABE884F181781806]
-[HKEY_CLASSES_ROOT\Installer\Products\A9A09C96EBD731840A94953001951047]
-[HKEY_CLASSES_ROOT\Installer\Products\AA4DBD8AA478C9842800B3CAE3E5F8FB]
-[HKEY_CLASSES_ROOT\Installer\Products\B37E698CF1268334C94CA8E34980B64C]
-[HKEY_CLASSES_ROOT\Installer\Products\B39BACA099CB8F049932003869AF39AA]
-[HKEY_CLASSES_ROOT\Installer\Products\B831EAE20445B1B4183945EAB4B8983D]
-[HKEY_CLASSES_ROOT\Installer\Products\BF17CF3251E21CF40B705167F5D664C2]
-[HKEY_CLASSES_ROOT\Installer\Products\C0B0B4F68703EDF4CB076E19252D490A]
-[HKEY_CLASSES_ROOT\Installer\Products\C42CE6F1BF44D5344A10C0DB54AFC320]
-[HKEY_CLASSES_ROOT\Installer\Products\C4880CF84D291604D8999DF3AB4D052D]
-[HKEY_CLASSES_ROOT\Installer\Products\C9129A00314261C48B63126D1414DD17]
-[HKEY_CLASSES_ROOT\Installer\Products\CA02C8F138E62244AB4570C5E515B7D8]
-[HKEY_CLASSES_ROOT\Installer\Products\CCE36EB7FBC9F154FA35726812BB7A72]
-[HKEY_CLASSES_ROOT\Installer\Products\CDE169A8FAB2FAF4E91AAED7B427C77D]
-[HKEY_CLASSES_ROOT\Installer\Products\DD858AD844991DE4A8A4CD59A0260D56]
-[HKEY_CLASSES_ROOT\Installer\Products\E5FC9AD9E5DA8BB448CCA653FE7A94F5]
-[HKEY_CLASSES_ROOT\Installer\Products\EEBFDA4FBB254784FBB549DE65D2F56B]
-[HKEY_CLASSES_ROOT\Installer\Products\F2E3F3A77E3475241B4EE7EBF0568491]
-[HKEY_CLASSES_ROOT\Installer\Products\F48F473902EE03A4CA1761E8AE22147B]
-[HKEY_CLASSES_ROOT\Installer\Products\F4A03747E774F0343B553AFB6B50131F]
-[HKEY_CLASSES_ROOT\Installer\Products\FD525A50A5206144C9AFC185E8536750]

Happy Hunting!
0 Likes
btimber Absent Member.
Absent Member.

Re: chicken and egg problem

On 02/17/2010 07:16 AM, Herman wrote:
>
> Hi,
>
> Is there a solution to remove the client from a pc. I have reinstalled
> the ZCMserver and the client tells me that he is already registered (in
> the GUI). When i try to do a zac -ur the I have a message that the
> client is not registerd. A ZAC -reg tells met that the pc is registerd.
> A unistall from the client tells me that this is "not authorised".
>
> This is the chicken and egg problem.
>
> How can i now remove the client?
>
> Thanks
>
>

Went through a self-induced near destruction of my zone - long story
short the primary server now has a new name and all the machines that
were registered to the zone with the old server are broken....

However the following set of commands run in this order:

"zac unr -f" followed by "zac cc" then zac reg -k <keyname as set up in
the zone> Http://server.domain.name

WORKS LIKE A CHAMP!

We have set up a batch file that includes these commands with the "wait"
command to allow each stage to complete before executing the next
command. It can either be launched from a login script or some other
method (student help is great for this).

If run form a login script I use a batch file that does something like
create or copy a "marker" file to a given location on first run and an
"if exist / if NOT exist statement in the batch file to keep it from
executing EACH time the login script is run....

The only down side of this in my case is that the machine name already
exists in the zone so I either have to remove the existing object before
the script runs OR - actually the easier solution - ZCM will create an
object with the same name with a long hex extension. Just go through
the workstation objects in the zone looking for the "new" objects -
check the associations of the existing object - set the new object to
the same settings and then delete the old one...


0 Likes
btimber Absent Member.
Absent Member.

Re: chicken and egg problem

On 02/17/2010 07:16 AM, Herman wrote:
>
> Hi,
>
> Is there a solution to remove the client from a pc. I have reinstalled
> the ZCMserver and the client tells me that he is already registered (in
> the GUI). When i try to do a zac -ur the I have a message that the
> client is not registerd. A ZAC -reg tells met that the pc is registerd.
> A unistall from the client tells me that this is "not authorised".
>
> This is the chicken and egg problem.
>
> How can i now remove the client?
>
> Thanks
>
>

Adenda to my previous post....

The commands in the batch file have to include the -u <administrator
name> -p <password> switches for the thing to work - I don't have a
copy of the file here and was working from a slightly failing memory.

"zac unr -f -u <username> -p <password>

saem for the zac reg command....

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.