Αναγν. άρθρου: 832919 - Τελευταία αναθεώρηση: Τετάρτη, 22 Δεκεμβρίου 2010 - Αναθεώρηση: 2.0 Νέες δυνατότητες και λειτουργίες στο PortQry, έκδοση 2.0
Σε αυτήν τη σελίδαΠερίληψηΑυτό το άρθρο περιγράφει τις νέες δυνατότητες και λειτουργίες που είναι διαθέσιμες στο σαρωτή θύρας γραμμής εντολών PortQry έκδοση 2.0. PortQry version 1.22 is a TCP/IP connectivity testing utility that is included with the Microsoft Windows Server 2003 Support Tools. Microsoft has released a new version of PortQryV2.exe. This new version includes all the features and functionality of the earlier version and has new features and functionality. PortQryV2.exe is available from the Microsoft Download Center. To obtain PortQryV2.exe, visit the following Microsoft Web site: http://www.microsoft.com/downloads/details.aspx?familyid=89811747-C74B-4638-A2D5-AC828BDC6983&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=89811747-C74B-4638-A2D5-AC828BDC6983&displaylang=en)
ΕΠΙΣΚΟΠΗΣΗPortQry is a command-line utility that you can use to help troubleshoot TCP/IP connectivity issues. This utility reports the port status of target TCP and User Datagram Protocol (UDP) ports on a local computer or on a remote computer. PortQry version 2.0 also provides detailed information about the local computer's port usage. PortQry version 2.0 runs on all the following operating systems:
Port status reportingPortQry reports the status of a port in one of the following ways:
PortQry version 2.0 featuresDepending on the process that listens on a UDP port, sometimes it may be difficult to determine the status of that UDP port. When an unformatted zero-length or fixed-length message is sent to a target UDP port, the port may or may not respond. If the port responds, it has a status ofLISTENING. If you receive an ICMP "Destination unreachable" message from a UDP port, or if a TCP reset response is returned from a TCP port, the port has a status ofNOT LISTENING. Typical port scanning tools report that the port has aLISTENINGstatus if the target UDP port does not return an ICMP "Destination unreachable" message. This result may not be accurate for one or both of the following reasons:
When you troubleshoot a connectivity problem, especially in an environment that contains one or more firewalls, it is useful to know if a port is being filtered or if it is listening. PortQry includes some special features to help make this determination on selected ports. If there is no response from a target UDP port, PortQry reports that the port isLISTENINGήFILTERED. PortQry then sends a correctly formatted message that the listening service or program understands. PortQry uses the correct session layer or application layer protocol to determine if the port is listening. PortQry uses the Services file that is located in the %SYSTEMROOT%\System32\Drivers\Etc folder to determine which service listens on each port. ΣΗΜΕΙΩΣΗThis file is stored on each Microsoft Windows Server 2003, Windows XP, and Windows 2000-based computer. Because PortQry is intended as a troubleshooting tool, it is expected that users who use it to troubleshoot a particular problem have sufficient knowledge of their computing environment. PortQry version 2.0 supports the following session layer and application layer protocols:
LDAP supportPortQry can send an LDAP query by using both TCP and UDP and interpret an LDAP server's response to that query correctly. PortQry parses, formats, and then returns the response from the LDAP server to the user. For example, you type the following command, and then press ENTER:portqry -nο_διακομιστής_μου-p udp -e 389 PortQry then performs the following actions:
Δείγμα εξόδουUDP port 389 (unknown service): LISTENING or FILTERED Sending LDAP query to UDP port 389... LDAP query response: currentdate: 12/13/2003 05:42:40 (unadjusted GMT) subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=domain,DC=example,DC=com dsServiceName: CN=NTDS Settings,CN=myserver,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=example,DC=com namingContexts: DC=domain,DC=example,DC=com defaultNamingContext: DC=domain,DC=example,DC=com schemaNamingContext: CN=Schema,CN=Configuration,DC=domain,DC=example,DC=com configurationNamingContext: CN=Configuration,DC=domain,DC=example,DC=com rootDomainNamingContext: DC=domain,DC=example,DC=com supportedControl: 1.2.840.113556.1.4.319 supportedLDAPVersion: 3 supportedLDAPPolicies: MaxPoolThreads highestCommittedUSN: 4259431 supportedSASLMechanisms: GSSAPI dnsHostName: myserver.domain.example.com ldapServiceName: domain.example.com:myserver$@domain.EXAMPLE.COM serverName: CN=myserver,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=example,DC=com supportedCapabilities: 1.2.840.113556.1.4.800 isSynchronized: TRUE isGlobalCatalogReady: TRUE domainFunctionality: 0 forestFunctionality: 0 domainControllerFunctionality: 2 ======== End of LDAP query response ======== UDP port 389 is LISTENING Be aware that the LDAP test over UDP may not work against domain controllers that are running Windows Server 2008. To check the availability of the service that is running on UDP 389, you can use NLTEST instead of the PortQry tool. For example, you can useNltest /sc_reset<domain name=""></domain>\<computer name=""></computer>to force a security channel onto a particular domain controller. Για περισσότερες πληροφορίες, επισκεφθείτε την ακόλουθη τοποθεσία της Microsoft στο Web: http://technet.microsoft.com/en-us/library/cc961803.aspx
(http://technet.microsoft.com/en-us/library/cc961803.aspx)
RPC supportPortQry can send an RPC query by using both TCP and UDP and interpret the response to that query correctly. This query returns (dumps) all the end points that are currently registered with the RPC endpoint mapper. PortQry parses, formats, and then returns the response from the RPC endpoint mapper to the user. For example, you type the following command, and then press ENTER:portqry -nο_διακομιστής_μου-p udp -e 135 PortQry then performs the following actions:
Δείγμα εξόδουUDP port 135 (epmap service): LISTENING or FILTERED Querying Endpoint Mapper Database... Server's response: UUID: 50abc2a4-574d-40b3-9d66-ee4fd5fba076 ncacn_ip_tcp:169.254.12.191[4144] UUID: ecec0d70-a603-11d0-96b1-00a0c91ece30 NTDS Backup Interface ncacn_np:\\\\MYSERVER[\\PIPE\\lsass] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_ip_tcp:169.254.12.191[1030] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncadg_ip_udp:169.254.12.191[1032] UUID: 12345678-1234-abcd-ef00-01234567cffb ncacn_np:\\\\MYSERVER[\\PIPE\\lsass] UUID: 12345678-1234-abcd-ef00-01234567cffb ncacn_np:\\\\MYSERVER[\\PIPE\\POLICYAGENT] Total endpoints found: 6 ==== End of RPC Endpoint Mapper query response ==== UDP port 135 is LISTENING ΣΗΜΕΙΩΣΗΌταν καθορίζετε το-rμε την επιλογή τουPortqry.exeη εντολή για να σαρώσετε μια περιοχή θυρών, δεν απευθύνεται το πρόγραμμα αντιστοίχισης τελικού σημείου RPC. Αυτό κάνει πιο γρήγορη τη σάρωση από μια περιοχή θυρών. Υποστήριξη DNSPortQry μπορεί να στείλει ένα σωστά διαμορφωμένο ερώτημα DNS χρησιμοποιώντας τα πρωτόκολλα TCP και UDP. PortQry αποστέλλει ένα ερώτημα DNS για το ακόλουθο πλήρως αναγνωρισμένο όνομα τομέα (FQDN):Portqry.Microsoft.com PortQry, στη συνέχεια, αναμένει απόκριση από το διακομιστή DNS προορισμού. Εάν ο διακομιστής επιστρέφει μια απόκριση, PortQry Καθορίζει ότι η θύρα είναιΑκρόαση.ΣΗΜΕΙΩΣΗΕίναι σημαντικό αν επιστρέφει αρνητική απόκριση από το διακομιστή DNS. Απόκριση δηλώνει ότι κάνει ακρόαση στη θύρα. Υποστήριξη υπηρεσίας ονόματος NetBIOSΑπό προεπιλογή, η υπηρεσία ονομάτων NetBIOS, εκτελεί ακρόαση στη θύρα UDP 137. Όταν το PortQry Καθορίζει ότι αυτή η θύρα είναιΑκρόασηήΜε φίλτροPortQry εκτελεί τις ακόλουθες ενέργειες για να διαπιστώσετε εάν πράγματι ακροάται τη θύρα:
Υποστήριξη SNMPΥποστήριξη SNMP είναι μια νέα δυνατότητα του PortQry, έκδοση 2.0. Από προεπιλογή, η υπηρεσία SNMP εκτελεί ακρόαση στη θύρα UDP 161. Για να προσδιορίσετε αν η θύρα 161 ακροάται, PortQry στέλνει ένα ερώτημα το οποίο έχει μορφοποιηθεί με τον τρόπο που δέχεται την υπηρεσία SNMP. Η υπηρεσία SNMP έχει ρυθμιστεί με ένα όνομα κοινότητας ή μια ακολουθία χαρακτήρων που πρέπει να γνωρίζετε για να αποκτήσετε μια απόκριση από το διακομιστή. Με το PortQry, μπορείτε να καθορίσετε ονόματα κοινοτήτων SNMP, όταν υποβάλλετε ερώτημα σε αυτήν τη θύρα. Από προεπιλογή, το PortQry χρησιμοποιεί το όνομα κοινότητας, "Δημόσια". Για να καθορίσετε ένα όνομα κοινότητας διαφορετικά, χρησιμοποιήστε το-cnη επιλογή της γραμμής εντολών. Όταν καθορίζετε ένα όνομα κοινότητας από τηPortqry.exeεντολής, περικλείστε το όνομα κοινότητας στα σημάδια του θαυμαστικού (!). Για παράδειγμα, για να καθορίσετε ένα όνομα κοινότητας όπωςsecure123, πληκτρολογήστε μια εντολή παρόμοια με την ακόλουθη εντολή:Portqry -n 127.0.0.1 -e 161 - p udp - cn!secure123! Δείγμα εξόδουQuerying target system called: 127.0.0.1 querying... UDP port 161 (snmp service): LISTENING or FILTERED community name for query: secure123 Sending SNMP query to UDP port 161... UDP port 161 is LISTENING Η υποστήριξη του ISA ServerΥποστήριξη Microsoft ISA Server είναι μια νέα δυνατότητα του PortQry, έκδοση 2.0. Από προεπιλογή, το ISA Server χρησιμοποιεί τη θύρα TCP 1745 και τη θύρα UDP 1745 να επικοινωνούν με υπολογιστές-πελάτες μεσολάβησης Winsock και με προγράμματα-πελάτες του τείχους προστασίας. Οι υπολογιστές που διαθέτουν το πρόγραμμα-πελάτης μεσολάβησης Winsock ή το πρόγραμμα-πελάτης τείχους προστασίας εγκατεστημένα χρησιμοποιούν αυτές τις θύρες να ζητούν υπηρεσίες από το ISA Server και να κάνετε λήψη πληροφοριών παραμέτρων. Συνήθως, αυτές οι υπηρεσίες περιλαμβάνουν υπηρεσίες επίλυσης ονομάτων και άλλες υπηρεσίες που δεν βασίζονται σε HTTP (για παράδειγμα, οι συνδέσεις Winsock). To determine whether the port is listening, PortQry sends a query that is formatted in the way that ISA Server accepts.Δείγμα εξόδουFor example, you type a command that is similar to the following command:portqry -nmyproxy-server-p udp -e 1745 Λαμβάνετε το ακόλουθο αποτέλεσμα:Querying target system called: myproxy-server Attempting to resolve name to IP address... Name resolved to 169.254.24.86 querying... UDP port 1745 (unknown service): LISTENING or FILTERED Sending ISA query to UDP port 1745... UDP port 1745 is LISTENING Δείγμα εξόδουTCP port 1745 (unknown service): LISTENING Sending ISA query to TCP port 1745... ISA query response: 10.0.0.0 10.255.255.255 127.0.0.1 127.0.0.1 169.254.0.0 169.254.255.255 192.168.0.0 192.168.255.255 127.0.0.0 127.255.255.255 ; ; This file should not be edited. ; Changes to the client configuration should only be made using ISA Management. ; [Common] myproxy-server.example.com Set Browsers to use Auto Detect=1 AutoDetect ISA Servers=1 WebProxyPort=8080 Port=1745 Configuration Refresh Time (Hours)=2 Re-check Inaccessible Server Time (Minutes)=10 Refresh Give Up Time (Minutes)=15 Inaccessible Servers Give Up Time (Minutes)=2 [Servers Ip Addresses] Name=myproxy-server [My Config] Path1=\\myproxy-server\mspclnt\ ======== End of ISA query response ======== Η υποστήριξη του SQL Server 2000Microsoft SQL Server 2000 support is a new feature in PortQry version 2.0. PortQry queries UDP port 1434 to query all the SQL Server named instances that are running on a SQL Server 2000 computer. PortQry sends a query that is formatted in the way that SQL Server 2000 accepts to determines whether this port is listening.Δείγμα εξόδουFor example, you type a command that is similar to the following command:portqry -n192.168.1.20-e 1434 -p udp Λαμβάνετε το ακόλουθο αποτέλεσμα:Querying target system called: 192.168.1.20 querying... UDP port 1434 (ms-sql-m service): LISTENING or FILTERED Sending SQL Server query to UDP port 1434... Server's response: ServerName SQL-Server1 InstanceName MSSQLSERVER IsClustered No Version 8.00.194 tcp 1433 np \\SQL-Server1\pipe\sql\query ==== End of SQL Server query response ==== UDP port 1434 is LISTENING Υποστήριξη TFTPTFTP support is a new feature in PortQry version 2.0. By default, TFTP servers listen on UDP port 69. PortQry sends a query that is formatted in the way that the TFTP server accepts to determine whether this port is listening.Δείγμα εξόδουFor example, you type a command that is similar to the following command:portqry -nmyserver.example.com-p udp -e 69 Λαμβάνετε το ακόλουθο αποτέλεσμα:Querying target system called: myserver.example.com Attempting to resolve name to IP address... Name resolved to 169.254.23.4 querying... UDP port 69 (tftp service): LISTENING or FILTERED Sending TFTP query to UDP port 69... UDP port 69 is LISTENING L2TP supportL2TP support is a new feature in PortQry version 2.0. Routing and Remote Access servers and other virtual private networking (VPN) servers listen on UDP port 1701 for inbound L2TP connections. PortQry sends a query that is formatted in the way that the VPN server accepts to determine whether this port is listening.Δείγμα εξόδουFor example, you type a command that is similar to the following command:portqry -nvpnserver.example.com-e 1701-p udp Λαμβάνετε το ακόλουθο αποτέλεσμα:Querying target system called: vpnserver Attempting to resolve name to IP address... Name resolved to 169.254.12.225 querying... UDP port 1701 (l2tp service): LISTENING or FILTERED Sending L2TP query to UDP port 1701... UDP port 1701 is LISTENING Προσαρμόστε τις θύρες που υποβάλλει ερώτημα για χρήσηBy default, every Windows Server 2003, Windows XP, and Windows 2000-based computer has a Services file that is located in the %SYSTEMROOT%\System32\Drivers\Etc folder. PortQry uses this file to resolve port numbers to their corresponding service names. The content of this file dictates the ports where PortQry sends formatted messages when you use thePortQry.exeΕντολή. You can edit this file to direct PortQry to send formatted messages to an alternative port. For example, the following entry appears in a typical Services file:Υπηρεσία πρόσθετες πληροφορίες που επιστρέφονταιPortQry displays extended information that some ports may return. PortQry looks for this "extended information" on ports where the following services listen:
ΣΗΜΕΙΩΣΗYou can change the service that PortQry determines is listening on a port by editing the Services file. For additional information, see the "Προσαρμόστε τις θύρες που υποβάλλει ερώτημα για χρήση"ενότητα αυτού του άρθρου. In this scenario, PortQry tries to use the Anonymous user account to log on to the FTP server. The result of this logon attempt indicates whether the destination FTP server accepts anonymous logons. PortQry returns the server's response. Παράδειγμα 1: You type a command that is similar to the following command, and then press ENTER: portqry -nMyFtpServer-p tcp -e 21 You receive a response that is similar to the following response:TCP port 21 (ftp service): LISTENING Data returned from port: 220 Microsoft FTP Service 331 Anonymous access allowed, send identity (e-mail name) as password. Παράδειγμα 2: You type a command that is similar to the following command, and then press ENTER: portqry -nMyMailServer-p tcp -e 25 You receive a response that is similar to the following response:TCP port 25 (smtp service): LISTENING Data returned from port: 220 MyMailServer.domain.example.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.0 ready at Mon, 15 Dec 2003 10:24:50 -0800 Επιλογές γραμμής εντολών του PortQryYou can use the following command-line options with PortQry:
Πρόσθετες δυνατότητεςPortQry, έκδοση 2.0 περιλαμβάνει τις παρακάτω νέες δυνατότητες:
Αλληλεπιδραστική κατάσταση λειτουργίας PortQryΜε το PortQry, έκδοση 1.22, οι χρήστες μπορεί να υποβάλει ερωτήματα θυρών από τη γραμμή εντολών σε παράθυρο γραμμής εντολών. Κατά την αντιμετώπιση προβλημάτων σύνδεσης μεταξύ υπολογιστών, ίσως χρειαστεί να πληκτρολογήσετε πολλές επαναλαμβανόμενες εντολές. Με το PortQry, έκδοση 2.0, μπορείτε να εκτελέσετε εντολές αυτόν τον τρόπο, αλλά PortQry έκδοση 2.0 έχει επίσης μια αλληλεπιδραστική κατάσταση λειτουργίας. Η λειτουργία αλληλεπίδρασης είναι παρόμοια με την αλληλεπιδραστική λειτουργικότητα του βοηθητικού προγράμματος Nslookup DNS ή στο Nblookup WINS βοηθητικό πρόγραμμα.Για να ξεκινήσετε το PortQry σε αλληλεπιδραστική κατάσταση λειτουργίας, χρησιμοποιήστε τη–iΕπιλογή. Για παράδειγμα, πληκτρολογήστεPortqry -i. Όταν το κάνετε αυτό, λαμβάνετε το ακόλουθο αποτέλεσμα: Portqry Interactive Mode Type 'help' for a list of commands Default Node: 127.0.0.1 Current option values: end port= 80 protocol= TCP source port= 0 (ephemeral) > portqry -i -e 53 -n192.168.1.20-p both –sp 2030 Λαμβάνετε το ακόλουθο αποτέλεσμα:Portqry Interactive Mode Type 'help' for a list of commands Default Node: 192.168.1.20 Current option values: end port= 53 protocol= BOTH source port= 2300 Τοπική λειτουργία PortQryThe PortQry local mode of operation is designed to give you detailed information about the TCP ports and the UDP ports on the local computer where PortQry runs. PortQry has the following three basic commands available in local mode:
ΑναφορέςΓια πρόσθετες πληροφορίες σχετικά με τον τρόπο χρήσης του PortQry, κάντε κλικ στο παρακάτω αριθμούς άρθρων για να προβάλετε τα άρθρα της Γνωσιακής Βάσης της Microsoft: 310099
(http://support.microsoft.com/kb/310099/
)
Περιγραφή του βοηθητικού προγράμματος γραμμής εντολών Portqry.exe 310456
(http://support.microsoft.com/kb/310456/
)
Τρόπος χρήσης του Portqry για την αντιμετώπιση ζητημάτων σύνδεσης της υπηρεσίας καταλόγου Active Directory 310298
(http://support.microsoft.com/kb/310298/
)
Τρόπος χρήσης του Portqry.exe για την αντιμετώπιση προβλημάτων του Microsoft Exchange Server που αφορούν ζητήματα συνδεσιμότητας 310513
(http://support.microsoft.com/kb/310513/
)
Μπορείτε να κάνετε το Portqry.exe μόνο αναφορά θύρες ακρόασης ΣημαντικόΤο εργαλείο PortQueryUI παρέχει ένα περιβάλλον εργασίας χρήστη με γραφικά και είναι διαθέσιμο για λήψη. Το PortQueryUI διαθέτει πολλές δυνατότητες, οι οποίες διευκολύνουν τη χρήση του PortQry. Για να αποκτήσετε το εργαλείο PortQueryUI, επισκεφθείτε την ακόλουθη τοποθεσία της Microsoft στο Web:http://download.microsoft.com/download/3/f/4/3f4c6a54-65f0-4164-bdec-a3411ba24d3a/PortQryUI.exe
(http://download.microsoft.com/download/3/f/4/3f4c6a54-65f0-4164-bdec-a3411ba24d3a/PortQryUI.exe)
Οι πληροφορίες σε αυτό το άρθρο ισχύουν για:
Μηχανικά μεταφρασμένοΣΗΜΑΝΤΙΚΟ: Αυτό το άρθρο είναι προϊόν λογισμικού μηχανικής μετάφρασης της Microsoft και όχι ανθρώπινης μετάφρασης. Η Microsoft σάς προσφέρει άρθρα που είναι προϊόντα ανθρώπινης αλλά και μηχανικής μετάφρασης έτσι ώστε να έχετε πρόσβαση σε όλα τα άρθρα της Γνωσιακής Βάσης μας στη δική σας γλώσσα. Ωστόσο, ένα άρθρο που έχει προκύψει από μηχανική μετάφραση δεν είναι πάντα άριστης ποιότητας. Ενδέχεται να περιέχει λεξιλογικά, συντακτικά ή γραμματικά λάθη, όπως ακριβώς τα λάθη που θα έκανε ένας μη φυσικός ομιλητής επιχειρώντας να μιλήσει τη γλώσσα σας. Η Microsoft δεν φέρει καμία ευθύνη για τυχόν ανακρίβειες, σφάλματα ή ζημίες που προκύψουν λόγω τυχόν παρερμηνειών στη μετάφραση του περιεχομένου ή χρήσης του από τους πελάτες της. Επίσης, η Microsoft πραγματοποιεί συχνά ενημερώσεις στο λογισμικό μηχανικής μετάφρασης. Η αγγλική έκδοση αυτού του άρθρου είναι η ακόλουθη:832919
(http://support.microsoft.com/kb/832919/en-us/
)
| Άλλοι πόροι Tοποθεσίες υποστήριξης
ΚοινότηταΆμεση λήψη βοήθειαςΜεταφράσεις άρθρων
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email


Επιστροφή στην αρχή
