This is not smart enough yet.
HTTP_4 and HTTP_2 channels are harcoded
Need to be run from Deployment <anager bin folder
================================
PropertyName=’CookiesConfigureNoCache’
PropertyValue=’false’
PropertyDesc=’Requsted by App Team to fix IE6 bug’
serverlist=AdminTask.listServers(‘[-serverType APPLICATION_SERVER ]‘)
for server in serverlist.split():
services=ac.list(‘TransportChannelService’,server)
channels=ac.list(‘HTTPInboundChannel’,services)
for http in channels.split(‘\n’):
hname=ac.showAttribute(http, ‘name’)
if hname==’HTTP_2′ or hname==’HTTP_4′:
print http
print ‘[[validationExpression ""] [name "'+PropertyName+'"] [description "'+PropertyDesc+'"] [value "'+PropertyValue+'"] [required "false"]]’
ac.create(‘Property’,http,’[[validationExpression ""] [name "'+PropertyName+'"] [description "'+PropertyDesc+'"] [value "'+PropertyValue+'"] [required "false"]]’)
ac.save()
============================================