I need a hint. How can I give the parameter appName und libName as Commandline Arguments?
and the syntax of the variables for the -MapSharedLibForMod Option. (Websphere Update Commands)
The script Command AdminApp.edit modifies the Shared Library References for Application Modules.
call: newlibref.py supersnoop test
#options = ['-MapSharedLibForMod ', [[ modname, moduri, libName]]]
Skript: newlibref.py
#for entire application
#this needed
def setlibref (appName, libName):
#global appName
#global libName
mod = AdminApp.listModules(appName)
        print mod
modname = mod.split('#')[0]
        moduri = mod.split('#')[1]
        print modname
        print moduri
        moduri1 = moduri.split('+')[0]
        moduri2 = moduri.split('+')[1]
        print moduri1
        print moduri2
  moduri = moduri1+ ","+moduri2
        print moduri
#AdminApp.edit('supersnoop', '[ -MapSharedLibForMod [[ SuperSnoopWeb SuperSnoopWeb.war,WEB-INF/web.xml test ]]]' )  //Works ok hardcoded
options = ['-MapSharedLibForMod ', [[ modname, moduri, libName]]]  ///is syntax correct ???
        #AdminApp.edit(appName, options)
setlibref(appName, libName)
Viele Grüße
Kerstin Volkenand
Allianz Shared Infrastructure Services SE
AG6SIS03 - Middleware / Applicationserver
Dieselstr. 6, HVU A-01 124 
85774 Unterföhring
Phone: +49 -89-3800-19468
Fax:         +49 -89-3800-819468
Mobile:     +49 -175-5848731
E-Mail:    kerstin.volkenand@allianz.com
Allianz Shared Infrastructure Services SE:
Chairman of the Supervisory Board: Oliver Bäte
Board of Management: Dr. Markus T. Müller (CEO), Dr. Martin Elspermann (COO)
For VAT-Purposes: VAT-Registration Number: DE 815 001 893
Registered Office: Munich
Registration Court: Munich HRB 173 388

Please note: This email and any files transmitted with it is intended only for the named recipients and may contain confidential and/or privileged information. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication to others and notify the sender immediately. Then please delete the email and any copies of it.
Thank you.