def __version(client):
 versions = {9: 'CMC', 8: 'iDRAC6', 10: 'iDRAC6', 11: 'iDRAC6', 16: 'iDRAC7', 17: 'iDRAC7'}
 if isinstance(client, paramiko.SSHClient):
  (stdin, stdout, stderr) = client.exec_command('racadm getconfig -g idRacInfo')
  for i in stdout.readlines():
   if i[2:].startswith('idRacType'):
    return versions.get(int(i[2:].split('=')[1]), None)
 return None

def __version ( client ) : versions = { 9 : 'CMC' , 8 : 'iDRAC6' , 10 : 'iDRAC6' , 11 : 'iDRAC6' , 16 : 'iDRAC7' , 17 : 'iDRAC7' } if isinstance ( client , paramiko . SSHClient ) : ( stdin , stdout , stderr ) = client . exec_command ( 'racadm getconfig -g idRacInfo' ) for i in stdout . readlines ( ) : if i [ 2 : ] . startswith ( 'idRacType' ) : return versions . get ( int ( i [ 2 : ] . split ( '=' ) [ 1 ] ) , None ) return None
grab drac version .