| Author | Message | 
		
		  | kriersd | 
			  
				|  Posted: Mon Nov 04, 2002 7:20 am    Post subject: [Solved]utility to extract config settings to txt file???? |   |  | 
		
		  |  Master
 
 
 Joined: 22 Jul 2002Posts: 209
 Location: IA, USA
 
 | 
			  
				| Hello all.. 
 I know I have used a util in the past that will extract all the settings for a given configuration. You can then use this file to create a new configuration using the "FMCZUTIL -f file.txt"!
 
 This way I can ensure that I am creating the exact same configuration on another machine.
 
 Anyone know what this command is. ?
 _________________
 Dave Krier
 
 IBM WebSphere MQ Workflow V3.4 Solution Designer
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jmac | 
			  
				|  Posted: Mon Nov 04, 2002 7:50 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 27 Jun 2001Posts: 3081
 Location: EmeriCon, LLC
 
 | 
			  
				| Dave: 
 I've not done this, but I think there is an option that fmczutil gives just before you create the configuration that allows you to "Save to a File"
 
 Let me know how this works.
 
 THANKS
 _________________
 John McDonald
 RETIRED
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kriersd | 
			  
				|  Posted: Mon Nov 04, 2002 9:06 am    Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 22 Jul 2002Posts: 209
 Location: IA, USA
 
 | 
			  
				| Yup, I found that one, however, I remember using a utility while ago that will allow you to create the same file using an existing configuration. 
 Here is my problem.
 
 We are getting ready to swap out hardware and I wanted to create the EXACT same configuration on our new server. Using that file to create the new configuration would ensure that the configuration was exactly the same.  I can't for the life of me remember what utility I used to create the config text file.
 :-?
 _________________
 Dave Krier
 
 IBM WebSphere MQ Workflow V3.4 Solution Designer
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Ratan | 
			  
				|  Posted: Mon Nov 04, 2002 9:21 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 18 Jul 2002Posts: 1245
 
 
 | 
			  
				| Kriersd, 
 Is this the command you are talking about.
 
 fmczkcfg -o:c -y:<configId> -f:<filename>
 
 -Laze
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kriersd | 
			  
				|  Posted: Mon Nov 04, 2002 10:12 am    Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 22 Jul 2002Posts: 209
 Location: IA, USA
 
 | 
			  
				| I found it.. 
 The fmczcfg -o:p -y:FMC -f:fmc.dat
 
 this will create a dat file that can be used to create a configuration based off the contents in the dat file.
 
 
  _________________
 Dave Krier
 
 IBM WebSphere MQ Workflow V3.4 Solution Designer
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jmac | 
			  
				|  Posted: Mon Nov 04, 2002 10:23 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 27 Jun 2001Posts: 3081
 Location: EmeriCon, LLC
 
 | 
			  
				| Dave: 
 
 
   
	| Quote: |  
	| fmczcfg -o:p -y:FMC -f:fmc.dat |  
 I dont have a command fmczcfg.exe in my MQWF/bin directory.  Is this a typo? or is this only on unix?
 
 Thanks
 _________________
 John McDonald
 RETIRED
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | vennela | 
			  
				|  Posted: Mon Nov 04, 2002 10:25 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 11 Aug 2002Posts: 4055
 Location: Hyderabad, India
 
 | 
			  
				| Probably a typo 
 Try lazeknight's command
 
 venny
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jmac | 
			  
				|  Posted: Mon Nov 04, 2002 10:49 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 27 Jun 2001Posts: 3081
 Location: EmeriCon, LLC
 
 | 
			  
				| Venny: 
 Right laseknights command does produce a file... But now how do I get fmczutil to use the information in that file?  When I tried using the output from the fmczkcfg command as input some of it seemed to be ignored.
 _________________
 John McDonald
 RETIRED
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Ratan | 
			  
				|  Posted: Mon Nov 04, 2002 11:00 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 18 Jul 2002Posts: 1245
 
 
 | 
			  
				| are you doing : 
 fmczutil -f:<filename>
 
 I believe you have to reenter some fields like the Username and password. Dont remember exactly. long time since I used it and I dont see it very usefull.
 
 -Laze
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kriersd | 
			  
				|  Posted: Thu Nov 07, 2002 7:16 pm    Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 22 Jul 2002Posts: 209
 Location: IA, USA
 
 | 
			  
				| jmac laze
 
 OOPS..  you are correct I did make a typo error.
 
 
 
   
	| Code: |  
	| fmczkcfg -o:p -y:<configId> -f:<filename.dat>[
 
 |  This will create dat file that can be used to recreate the EXACT same configuration.
 
 
 
   
	| Code: |  
	| fmczutil -f:<filename.dat>
 
 |  
 I am using this to do some migrations. We are migrating from a smaller UNIX server to larger UNIX server. I used the util to ensure that I am recreating the EXACT same configuration. Also, we saved this file off for use during a recovery process. In our disaster procedures we use this file to recreate the configuration.
 
 Thanks to all for the help.
 Dave
  _________________
 Dave Krier
 
 IBM WebSphere MQ Workflow V3.4 Solution Designer
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jmac | 
			  
				|  Posted: Fri Nov 08, 2002 7:03 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 27 Jun 2001Posts: 3081
 Location: EmeriCon, LLC
 
 | 
			  
				| Dave: 
 Please let us know if you run into any problems with this.
 
 The reason I ask is that I do not see any documentation on these utilities, and I think that the fmczutil -f:<cfg-file> command is a little klunky.  For instance, if it clearly states in the file what the name of the configuration I am working on is, why does it just sit there until I tell it the config name.
 
 Maybe I'm just being dense here, but I am still not comfortable with this, maybe you can expand a little bit on how you are doing the migrations on the new systems.
 
 Thanks
 _________________
 John McDonald
 RETIRED
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kriersd | 
			  
				|  Posted: Fri Nov 08, 2002 10:39 am    Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 22 Jul 2002Posts: 209
 Location: IA, USA
 
 | 
			  
				| John 
 I found this documentation in the "Installation Guide". Look for "Unattended configuration" on page 364.
 
 fmczkcfg is the unattended configuration utility. It's really ment to aid in the process of deploying a client configuration on many workstations. I am using it a little different, since I am using it for the server configuration.
 
 The fmczutil utility can use the <generated>.dat file, however, it only provides the values in the dat file as default settings when you go through the setup process. Configuration name is the one thing in the dat file that it ignores if used with the fmczutil. Also, You must still go through the whole fmczutil menu and manually select create. This is what I did, using this .dat file I had all the correct settings as the defaults. Using it this way allows me to override certain settings such as the machine name, and MQ port since they changed from the old system to the new system. Also, I had the DB migrated over from the old system, so I needed to override the "Create DB" setting and point it at an existing DB. We had the whole configuration migrated over to another machine in one day. That even impressed me, because I had some doubts with the whole process of moving to another machine.
 
 Below is snipit from the IBM doc.
 
 
 
   
	| Quote: |  
	| The unattended configuration utility can be used to: 1. Create a configuration based on a configuration data file.
 2. Delete a configuration.
 3. List the configurations defined on your workstation.
 4. Generate a data file based on an existing configuration.
 5. Generate a default configuration data file.
 |  
 
 
   
	| Code: |  
	| fmczkcfg -o:Action -y:ConfigID -c:Comps -fI/PFile -puser:password -n |  
 
 To fully automate the installation of a configuration you would need to run the fmczkcfg utility to create the configuration instead of the fmczutil utility.
 
 Hope this helps ya.
 
 Dave
 _________________
 Dave Krier
 
 IBM WebSphere MQ Workflow V3.4 Solution Designer
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |