def channel_parser(channel):
    """Parse a channel returned from ipmitool's "sol info" command.
    Channel format is: "%d (%x)" % (channel, channel)
    """

    chan, xchan = channel.split(' (')
    return int(chan)