Skip to content

Commit 8750597

Browse files
author
Simonx Xu
authored
Merge pull request #1262 from ryagatich/patch-1
Update portqry-command-line-port-scanner-v2.md
2 parents a72f212 + bd2d6ae commit 8750597

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

support/windows-server/networking/portqry-command-line-port-scanner-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The following parameters are available in regular command-line mode:
101101
|`-sl` |Wait extra time for response (also known as slow link delay) |Use this parameter to double the time that PortQry waits for a response from a UDP port before PortQry determines that the port is NOT LISTENING or that it's FILTERED. When you query over slow or unreliable network links, the normal wait time may be too short to receive a response. |
102102
|`-nr` |Skip reverse name lookup |<ul><li>By default, when you use `-n` to specify an IP address for the target computer, PortQry does a reverse name lookup to resolve the IP address to a name. This process may be time-consuming, especially if PortQry can't resolve the IP address. Use `-nr` to skip this step of the query.</li><li>If you use `-n` to specify a computer or domain name, PortQry ignores `-nr`. |
103103
|`-sp <port_number>` |Query from a specific source port |<ul><li>The \<*port_number*> value represents the port that PortQry uses to send the query.</li><li>PortQry can't use a port that another process is already using. If the port that you specify is already in use, PortQry returns the following error message:<br/>Cannot use specified source port.<br/>Port is already in use.<br/>Specify a port that is not in use and run the command again.</li><li>In the following cases, PortQry uses the specified port for the first test of the query, but not the second test: <ul><li>RPC (TCP and UDP ports 135)</li><li>LDAP (UDP port 389)</li><li>NetBIOS Adapter status query (UDP port 137)</li></ul>In these cases, PortQry uses an ephemeral port for the second test. When this occurs, PortQry records "Using ephemeral source port" in its output.</li><li>If the computer where PortQry is installed also runs the IPSec policy agent, UDP port 500 may not be available to use as a source port. To temporarily turn off the IPSec policy agent so that you can use port 500, run `net stop PolicyAgent`. When you have finished testing, run `net start PolicyAgent`.</li></ul> |
104-
|`-cn !<community_name>!` |Query an SMTP community |<ul><li>The \<*community_name*> value represents the name of the SNMP community to query. You must delimit this value by using exclamation points, as shown in the left column.</li><li>If the SNMP service is not listening on the target port, PortQry ignores `-cn`.</li><li>The default community name is `public`.</li></ul> |
104+
|`-cn !<community_name>!` |Query an SNMP community |<ul><li>The \<*community_name*> value represents the name of the SNMP community to query. You must delimit this value by using exclamation points, as shown in the left column.</li><li>If the SNMP service is not listening on the target port, PortQry ignores `-cn`.</li><li>The default community name is `public`.</li></ul> |
105105
|`-q` |Run PortQry in quiet mode |<ul><li>When you use `-q`, PortQry suppresses all screen output except for error messages.</li><li>To see output other than error messages, use `-q` together with `-l`. PortQry records the normal output in the log file.</li><li>If a log file already exists and you use `-q` together with `-l`, PortQry overwrites the existing log file without prompting you.</li><li>You cannot use `-q` together with `-o`, `-r`, or `-p both`.</li><li>This parameter is especially helpful when you use a batch file to run a PortQry command string.</li></ul> |
106106

107107
### Remarks for parameters in command-line mode
@@ -229,7 +229,7 @@ set <option>=<value>
229229
|`set port=<port_number>`<br />`set e=<port_number>` |Specify the target port |The \<*port_number*> value represents the port to query on the destination computer. |
230230
|`set sport=<port_number>`<br />`set sp=<port_number>` |Specify the source port |<ul><li>The \<*port_number*> value represents the port that PortQry uses to send the query.</li><li>PortQry can't use a port that another process is already using.</li><li>If you specify a port number of zero, PortQry uses an ephemeral port.</li></ul> |
231231
|`set protocol=<protocol>`<br />`set p=<protocol>` |Specify the protocol to use |The \<*protocol*> value represents the type of port to query (`tcp`, `udp`, or `both`). |
232-
|`set cn=<community_name>` |Specify an SMTP community |<ul><li>The \<*community_name*> value represents the name of the SNMP community to query.</li><li>If the SNMP service is not listening on the target port, PortQry ignores `-cn`.</li><li>The default community name is `public`.</li></ul> |
232+
|`set cn=<community_name>` |Specify an SNMP community |<ul><li>The \<*community_name*> value represents the name of the SNMP community to query.</li><li>If the SNMP service is not listening on the target port, PortQry ignores `-cn`.</li><li>The default community name is `public`.</li></ul> |
233233
|`set nr` |Turn reverse name lookup off or on |<ul><li>By default, if you have set an IP address as the query destination, PortQry resolves the IP address to a name. If you change this option, PortQry skips the name resolution step.</li><li>To turn reverse name lookup on again, run `set nr` a second time.</li></ul> |
234234
|`set sl` |Turn slow link delay on or off |<ul><li>If you change this option, PortQry doubles the length of time that it waits for a response from a UDP port before PortQry determines that the port is NOT LISTENING or that it's FILTERED. When you query over slow or unreliable network links, the normal wait time may be too short to receive a response.</li><li>To turn slow link delay off again, run `set sl` a second time.</li></ul> |
235235

0 commit comments

Comments
 (0)