#NEWLINE# def main( ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( add_help = True , formatter_class = argparse . RawTextHelpFormatter , description = '\n    Display the startup progress of the HP OneView appliance\n\n    Usage: ' ) #NEWLINE# parser . add_argument ( '-a' , dest = 'host' , required = True , help = '\n    HP OneView Appliance hostname or IP address' ) #NEWLINE# parser . add_argument ( '-c' , dest = 'cert' , required = False , help = '\n    Trusted SSL Certificate Bundle in PEM (Base64 Encoded DER) Format' ) #NEWLINE# parser . add_argument ( '-y' , dest = 'proxy' , required = False , help = '\n    Proxy (host:port format' ) #NEWLINE# parser . add_argument ( '-j' , dest = 'domain' , required = False , default = 'Local' , help = '\n    HP OneView Authorized Login Domain' ) #NEWLINE# args = parser . parse_args ( ) #NEWLINE# con = hpov . connection ( args . host ) #NEWLINE# sts = hpov . settings ( con ) #NEWLINE# if con . proxy : #NEWLINE# #INDENT# con . set_proxy ( args . proxy . split ( ':' ) [ 0 ] , args . proxy . split ( ':' ) [ 1 ] ) #NEWLINE# #UNINDENT# if args . cert : #NEWLINE# #INDENT# con . set_trusted_ssl_bundle ( args . cert ) #NEWLINE# #UNINDENT# getprogress ( sts )