IBM Verify

 View Only
  • 1.  How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Tue December 03, 2024 04:23 PM

    Hello,

    I am tring to cleanup all old servers via the pdadmin tool. After logging in as sec_master, I can list all servers using the server list command.

    However, I notice many unused or obsolete servers in this list, along with their associated Principals (Users). I have not found any pdadmin command to clean up or remove these unused servers from the list.

    Could someone guide me on the proper steps or best practices to clean up servers from the server list? Are there any guidelines or specific tools/commands for this task?

    Thanks in advance!

    Best regards,



    ------------------------------
    Piyush Agrawal
    https://www.linkedin.com/in/piyush-norway/
    Gjensidige Norway
    ------------------------------


  • 2.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Tue December 03, 2024 04:38 PM

    There is an option to clean-up servers available in the Web management console.  The 'server cleanup' option is available within the 'Manage' menu of the 'Runtime component' screen.  I would suggest that you give this a go.

     

    Thanks.

     

     

    Scott A. Exton
    Senior Software Engineer
    Chief Programmer - IBM Security Verify Access

    IBM Master Inventor

    cid4122760825*<a href=image002.png@01D85F83.85516C50">

     

     

     






  • 3.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Wed December 04, 2024 05:24 AM
    Edited by Piyush Agrawal Wed December 04, 2024 05:28 AM

    Thanks. I am trying it now



    ------------------------------
    Piyush Agrawal
    https://www.linkedin.com/in/piyush-norway/
    Gjensidige Norway
    ------------------------------



  • 4.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Wed December 04, 2024 03:31 PM

    This command will deregister the specified authorization server with the policy server, cleaning up the data associated with that authorization server.

     

    Thanks.

     

    Scott A. Exton
    Senior Software Engineer
    Chief Programmer - IBM Security Verify Access

    IBM Master Inventor

    cid4122760825*<a href=image002.png@01D85F83.85516C50">

     

     

     






  • 5.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Wed December 04, 2024 07:04 AM

    Hi Piyush,

    As an alternative to the method Scott already indicated, you can also use the class com.tivoli.pd.jcfg.SvrSslCfg from PD.jar to unconfigure servers.

    If you are interested, I can send you the exact parameters to use. You have to create a dummy config file as that is a mandatory parameter.

    Kind regards,

    Laurent



    ------------------------------
    Laurent LA Asselborn
    ------------------------------



  • 6.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Fri December 06, 2024 05:11 AM

    Hello @Scott Exton and @Laurent LA Asselborn

    Here is an example of one of the server and its Principal:

    Administration Request Port: '8888'
    Description: []
    Hostname: T-114-270-018.mistraltest.mistralnett.test
    Listening for authorization database update notifications: 'No'
    Principal: eaipuppet/T-114-270-018.mistraltest.mistralnett.test

    @Scott Exton your approch works it takes lots of time to load popup where you can mark servers and delete.
    I tried https://{appliance_hostname}/isam/azn_server which also works.

    I also see that servers can be removed with  https://{appliance_hostname}/isam/azn_server/{server_name}. I have not tried yet.


    @Laurent LA Asselborn

    To Unconf PD User with com.tivoli.pd.jcfg.SvrSslCfg from PD.jar, I think must connect wtih client machine from where server/PD User was created and must have access to keyfiles.. these old servers are decommissioned??

    how can i verify that that server cleaned up with ISVA Rest API is is also deregisters the specified authorization server with the policy server, cleaning up the data associated with that authorization server?









    ------------------------------
    Piyush Agrawal
    https://www.linkedin.com/in/piyush-norway/
    Gjensidige Norway
    ------------------------------



  • 7.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Fri December 06, 2024 05:35 AM

    Hi Piyush,

    No, it doesn't matter from where you connect and you don't need the old config files. You just have to create an empty config file for the tool to work.

    To verify that the servers are deregistered you can look if their LDAP entries are deleted.

    Each server has (at least) the following two entries:

    • cn={server}/{host},cn=SecurityDaemons,SECAUTHORITY=DEFAULT
    • principalName={server}/{host},cn=Users,SECAUTHORITY=DEFAULT

    If after your operation these two entries are gone, the server is deleted. But I do not recommend only deleting in the LDAP as there are probably also entries in the master DB.

    I recommend you to do the following LDAP search to find old servers:

    base: cn=Users,SECAUTHORITY=DEFAULT

    filter: (secCertSerialNumber=*)

    attributes: secCertSerialNumber, secCertDN, createTimestamp, modifyTimestamp

    If the modifyTimestamp is older than 2 years (and it is not the ivmgrd/master user!), the server is probably inactive as its cert has not been renewed.



    ------------------------------
    Laurent LA Asselborn
    ------------------------------



  • 8.  RE: How to Cleanup Unused Servers which are visible from server list in pdadmin?

    Posted Fri December 06, 2024 09:42 AM

    Thanks for response @Laurent LA Asselborn

    I just tried following command from a client machine from where I have access to policy serfver..

    "%JAVA_HOME%\bin\java" %JAVA_OPTS% -cp "%PDJ_CLASSPATH%" com.tivoli.pd.jcfg.SvrSslCfg -action unconfig -admin_id sec_master -admin_pwd %SECMASTERPW% -appsvr_id %APPSVRUSER% -policysvr %POLICYSVR% -cfg_file %CNF_FILE% -domain %DOMAIN%

    Not sure what will be contain of conf_file here.

    Server name is PDProd-P-100-980-120.org.domain.com
    and Principal name is PDSOA/P-100-980-120.org.domain.com




    ------------------------------
    Piyush Agrawal
    https://www.linkedin.com/in/piyush-norway/
    Gjensidige Norway
    ------------------------------