Modifying a message store using command line

Before you begin

These example scripts provide an alternative to using the administrative console.

To run the command, use the AdminTask object of the wsadmin scripting client.

About this task

Perform the following steps to modify the attributes of a message store:

Procedure

  1. Assign your messaging engines a variable name, for example, mengines:
    • Using Jacl:

      set mengines [$AdminConfig list SIBMessagingEngine]
    • Using Jython:
      mengines = AdminConfig.list('SIBMessagingEngine')
  2. Identify the messaging engines whose message store you want to modify, for example, me1 with an index number 0:
    • Using Jacl:

      set me1 [lindex $mengines 0]
    • Using Jython:
      arraymengines = mengines.split(lineSeparator)
      me1 = arraymengines[0]
  3. Assign themessage store of the selected messaging engines a variable name, for example, if you are using a file store, fs:
    • Using Jacl:

      set fs [$AdminConfig showAttribute $me1 fileStore]
    • Using Jython:
      fs = AdminConfig.showAttribute(me1, 'fileStore')
  4. Change the attributes of the file store, for example, its maximum log file size:
    • Using Jacl:

      set result [$AdminConfig showAttribute $fs logSize]
      puts "old logSize: $result"
      
      $AdminConfig modify $fs ((logSize  200))
      
      set result [$AdminConfig showAttribute $fs logSize]
      
      puts " "
      puts "new logSize: $result"
      
      puts "Saving..."
      $AdminConfig save
    • Using Jython:
      AdminConfig.modify(fs, [['logSize', '200']])
      
      AdminConfig.showAttribute(fs, 'logSize')
      
      AdminConfig.save()
      



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 4:53:43 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-base-dist&topic=cmnd_ms_modify
File name: tjm_cmd_modify.html