How ro run JMeter with a proxy?

In this article, we will see how to run JMeter for testing a web application under proxy environment. This article is for novice who are learning jmeter.

If we need to run JMeter with a web proxy (in the network) , we need to run the jmeter.bat/jmeter file from a command line with the following parameters

jmeter -H -P -u -a -N  

In here
-H [proxy server hostname or ip address]
-P [proxy server port]
-N [nonproxy hosts] (e.g. *.apache.org|localhost)
-u [username for proxy authentication - if required]
-a [password for proxy authentication - if required] 

And those <>, need values. 

Thanks...:)