def add_server(srv, hostname, username, password, force, license, monitor):
    print('Adding Server')

    if monitor:
        server = hpov.make_server_dict(hostname,username, password, force,
                                       'OneViewStandard', 'Monitored')
    else:
        server = hpov.make_server_dict(hostname,username, password, force,
                                       license)

    ret = srv.add_server(server)
    if 'model' in ret:
        print('Model:         ', ret['model'])
        print('Serial Number: ', ret['serialNumber'])
        print('ROM FW:        ', ret['romVersion'])
        print('Proc Count     ', ret['processorCount'])
        print('Proc Cores     ', ret['processorCoreCount'])
        print('Proc Speed     ', ret['processorSpeedMhz'])
        print('Proc Type      ', ret['processorType'])
        print('iLO FW:        ', ret['mpFirmwareVersion'])
        print('iLO Version:    ', ret['mpModel'])
    else:
        pprint(ret)
dataset/ETHPy150Open HewlettPackard/python-hpOneView/examples/scripts/add-server.py/add_server/original