HP OneView Deployment and Management Guide 1.0

Technical white paper | HP OneView Deployment and Management Guide
108
uri = '/rest/login-sessions'
method = 'POST'
data = {
'userName': username,
'password': password,
}
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Accept-Language': 'en_US',
}
url = 'https://' + hostname + uri
response = requests.request(method, url, data=json.dumps(data),
headers=headers, verify=False)
if response.status_code == 200:
print (response.json()['sessionID'])
else:
print (response.json()['errorCode'] + ': ' + response.json()['message'])
if __name__ == '__main__':
hostname = 'host.domain.com'
username = 'administrator'
password = 'password'
main(hostname, username, password)
Section M22: Creating a Support Dump
As with any product, occasionally there will be a situation that will require you to engage support. HP OneView provides a
Support Dump option to help with this process.
1. Select the main menu option in the upper left, and choose Settings.