Having performed a clean installation of WebSphere Application Server 6.1.0.0, I chose to create a Deployment Manager ( dmgr ) profile, but was surprised to find that another profile ( AppSvr01 ) was also created at the same time. However, this profile did not have an application server instance e.g. server1, available to it.
I wanted to create a new, clean profile, also called AppSvr01, I wanted to remove the "old" profile. Being a typical hacker, I used the command: -
rm -Rf /opt/IBM/WebSphere/AppServer/profiles/AppSvr01
which worked a treat.
However, the Profile Management Tool ( pmt.sh ) still thought that this profile existed, and therefore, would not let me create a new one.
I dug around, and found the manageprofiles.sh command which, through some trial and lots of error, allowed me to validate and then remove the now orphaned AppSvr01 profile as follows: -
(a)
The -listProfiles subcommand didn't show AppSvr01 at all, merely returning: -
[Dmgr01]
(b)
The -validateRegistry subcommand showed me that AppSvr01 was not valid: -
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -validateRegistry
returned: -
A list of profiles that are not valid follows:
[AppSrv01]
(c)
The -validateAndUpdateRegistry subcommand cleaned up the registry nicely, returning: -
[AppSrv01]
(d)
The -validateRegistry subcommand showed me that AppSvr01 was not valid: -
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -validateRegistry
then returned: -
All of the profiles in the registry are valid.
I probably could have used the -augment subcommand, but didn't need to do so in this particular instance.
For the record, here's much much more fine information about manageprofiles.sh
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/rxml_manageprofiles.html
Geeking in technology since 1985, with IBM Development, focused upon Docker and Kubernetes on the IBM Z LinuxONE platform In the words of Dr Cathy Ryan, "If you don't write it down, it never happened". To paraphrase one of my clients, "Every day is a school day". I do, I learn, I share. The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions. Remember, YMMV https://infosec.exchange/@davehay
Subscribe to:
Post Comments (Atom)
Note to self - use kubectl to query images in a pod or deployment
In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...
-
Why oh why do I forget this ? Running this command : - ldapsearch -h ad2012.uk.ibm.com -p 389 -D CN=bpmbind,CN=Users,DC=uk,DC=ibm,DC=com -w...
-
Error "ldap_sasl_interactive_bind_s: Unknown authentication method (-6)" on a LDAPSearch command ...Whilst building my mega Connections / Domino / Portal / Quickr / Sametime / WCM environment recently, I was using the LDAPSearch command tha...
-
Whilst building a new "vanilla" Kubernetes 1.25.4 cluster, I'd started the kubelet service via: - systemctl start kubelet.se...
No comments:
Post a Comment