Viagra, commonly known as sildenafil, is the medication primarily used to help erectile dysfunction , a state where men have trouble achieving or keeping an erection of the penis . Beyond this purpose, it has also utilized off-label in the management of pulmonary high blood pressure in the lungs