HI Vladimir,
Thank you again.
I think that is what I am looking for but it is when running with verbosity ( -vvvv).
Could you please go through below mentioned -vvv output where i can see required output under MSG ( highlighted in blue):
Can we get output of only MSG instead of listing all other output so that i can seethe required output?
TASK [run ontap rest cli command for vol move resister variabele] ***************************************************************************************************************************
task path: /home/user1/facts/netapp_volume_move.yml:38
< removed some data >
“attempts”: 1,
“changed”: true,
“invocation”: {
“module_args”: {
“body”: {},
“cert_filepath”: null,
“command”: “volume/move?fields=percent-complete,state”,
“feature_flags”: {},
“hostname”: “Cluster1”,
“http_port”: null,
“https”: true,
“key_filepath”: null,
“ontapi”: null,
“params”: {
“volume”: “",
“vserver”: "”
},
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“use_rest”: “Always”,
“username”: “user1”,
“validate_certs”: false,
“verb”: “GET”
}
},
“retries”: 36
}
MSG:
{‘records’: [{‘vserver’: ‘svm1’, ‘volume’: ‘svm1_mp_v3’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone2’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone3’, ‘state’: ‘healthy’, ‘percent_complete’: 98}], ‘num_records’: 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister variabele (34 retries left).Result was: {
“attempts”: 2,
“changed”: true,
“invocation”: {
“module_args”: {
“body”: {},
“cert_filepath”: null,
“command”: “volume/move?fields=percent-complete,state”,
“feature_flags”: {},
“hostname”: “Cluster1”,
“http_port”: null,
“https”: true,
“key_filepath”: null,
“ontapi”: null,
“params”: {
“volume”: “",
“vserver”: "”
},
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“use_rest”: “Always”,
“username”: “user1”,
“validate_certs”: false,
“verb”: “GET”
}
},
“retries”: 36
}
MSG:
{‘records’: [{‘vserver’: ‘svm1’, ‘volume’: ‘svm1_mp_v3’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone2’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone3’, ‘state’: ‘healthy’, ‘percent_complete’: 98}], ‘num_records’: 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister variabele (33 retries left).Result was: {
“attempts”: 3,
“changed”: true,
“invocation”: {
“module_args”: {
“body”: {},
“cert_filepath”: null,
“command”: “volume/move?fields=percent-complete,state”,
“feature_flags”: {},
“hostname”: “Cluster1”,
“http_port”: null,
“https”: true,
“key_filepath”: null,
“ontapi”: null,
“params”: {
“volume”: “",
“vserver”: "”
},
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“use_rest”: “Always”,
“username”: “user1”,
“validate_certs”: false,
“verb”: “GET”
}
},
“retries”: 36
}
MSG:
{‘records’: [{‘vserver’: ‘svm1’, ‘volume’: ‘svm1_mp_v3’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone2’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone3’, ‘state’: ‘healthy’, ‘percent_complete’: 98}], ‘num_records’: 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister variabele (32 retries left).Result was: {
“attempts”: 4,
“changed”: true,
“invocation”: {
“module_args”: {
“body”: {},
“cert_filepath”: null,
“command”: “volume/move?fields=percent-complete,state”,
“feature_flags”: {},
“hostname”: “Cluster1”,
“http_port”: null,
“https”: true,
“key_filepath”: null,
“ontapi”: null,
“params”: {
“volume”: “",
“vserver”: "”
},
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“use_rest”: “Always”,
“username”: “user1”,
“validate_certs”: false,
“verb”: “GET”
}
},
“retries”: 36
}
MSG:
{‘records’: [{‘vserver’: ‘svm1’, ‘volume’: ‘svm1_mp_v3’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone2’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone3’, ‘state’: ‘healthy’, ‘percent_complete’: 98}], ‘num_records’: 3}
< removed some data >
changed: [Cluster1] => {
“attempts”: 5,
“changed”: true,
“invocation”: {
“module_args”: {
“body”: {},
“cert_filepath”: null,
“command”: “volume/move?fields=percent-complete,state”,
“feature_flags”: {},
“hostname”: “Cluster1”,
“http_port”: null,
“https”: true,
“key_filepath”: null,
“ontapi”: null,
“params”: {
“volume”: “",
“vserver”: "”
},
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“use_rest”: “Always”,
“username”: “user1”,
“validate_certs”: false,
“verb”: “GET”
}
}
}
MSG:
{‘records’: [{‘vserver’: ‘svm1’, ‘volume’: ‘svm1_mp_v3’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone2’, ‘state’: ‘done’, ‘percent_complete’: 100}, {‘vserver’: ‘svm2’, ‘volume’: ‘user1_test_clone3’, ‘state’: ‘done’, ‘percent_complete’: 100}], ‘num_records’: 3}
Read vars_file ‘/home/user1/facts/cred_file_Privileged_account.yml’