To get a cell name from Websphere use the following code:
cells = AdminConfig.list("Cell" ) cells = wsadminToList(cells) cellName = cells[0].split('(')[0]
AdminConfig.list will return all defined cells. Typically people just use one cell. wsadminToList will create an array of cells. We take the first one from the array and then pull the name from the details.
wsadminToList is found here.