

InterviewSolution
Saved Bookmarks
1. |
Solve : lunix? |
Answer» what commands control serial ports on a linux computerummm maybe you should put this in the linux section of the forum under the software sectiontelnet telnet is a program that uses TCP/IP, FTP, COM, etc. to communicate with devices.Ahem ... Code: [Select]User Commands telnet(1) open [ -l user ] [ [!] @hop1 [@hop2 ...]@host [ port ] Open a connection to the named host. If no port NUMBER is specified, telnet will attempt to contact a TELNET server at the default port. The host specification may be either a host name (see hosts(4), ipnodes(4)) or an Internet address specified in the "dot notation" (see inet( 7P) or inet6( 7P)). If the host is specified as @[emailprotected]@host, the connection goes through hosts hop1 and hop2, using loose source routing to end at host. The "@" symbol is required as a separator between the hosts specified. If a leading ! is used with IPv4, the connec- tion follows strict source routing. The -l option passes the user as the value of the ENVIRON variable USER to the remote system. No mention of serial ports there. The port its talking about is the TCP/IP port number (e.g. 23 for telnet or 80 for http) Perhaps, you're thinking about a Terminal Server where you could connect to the 1st serial port with Code: [Select]telnet termsrvhostname 5001 and use 5002 to connect to the 2nd serial port, etc ...Quote from: aik on April 24, 2007, 04:26:10 PM what commands control serial ports on a linux computer Is this what you're looking for? Code: [Select]MINICOM(1) MINICOM(1) NAME minicom - friendly serial communication program SYNOPSIS minicom [-somMlwz8] [-c on|off] [-S script] [-d entry] [-a on|off] [-t term] [-p pty] [-C capturefile] [configuration] DESCRIPTION minicom is a communication program which somewhat resembles the share- ware program TELIX but is free with source code and runs under most unices. Features include dialing directory with auto-redial, support for UUCP-style lock files on serial devices, a seperate script language interpreter, capture to file, multiple users with individual CONFIGURA- tions, and more. ... ... ... Serial port setup *A - Serial device /dev/tty1 or /dev/ttyS1 for most people. /dev/cua<n> is still possible under linux, but not recommended any more because these devices are OBSOLETE and many newly installed systems with kernel 2.2.x or newer don't have them. Use /dev/ttyS<n> instead. You may also have /dev/modem as a symlink to the real device. If you have modems connected to two or more serial ports, you may specify all of them here in a list separated by space, comma or semicolon. When Minicom starts, it checks the list until it finds an available modem and uses that one. (However, you can't specify different init strings to them ..at least not yet.) To use a UNIX socket for communication the device name must be prefixed with "unix#" following by the full path and the file- name of the socket. Minicom will then try to connect to this socket as a client. As long as it cannot connect to the socket it stays 'offline'. As soon as the connection establishes, minicom goes 'online'. If the server closes the socket, minicom switches to 'offline' again. ... ... ... honestly, I haven't used telnet myself. All I did was watch another guy in the IT department as he hooked up a serial cable to a cisco switch and typed in 'telnet' into the command prompt, along with some other commands afterwards. I apologize if I seemed like a know-it-all.Quote from: michaewlewis on May 14, 2007, 04:31:12 PM honestly, I haven't used telnet myself. All I did was watch another guy in the IT department as he hooked up a serial cable to a cisco switch and typed in 'telnet' into the command prompt, along with some other commands afterwards. I apologize if I seemed like a know-it-all.Aha! That explains it. NP - "too err is human, to really fowl things up requires a computer" BTW, Cisco make Terminal Servers as well as Switches and Routers, so that wasn't a "switch" it was a "terminal server".no, its a switch. It's a Catalyst 3750. Unless you're saying all the cisco switches have terminal servers BUILT in to them?Quote from: michaewlewis on May 14, 2007, 04:31:12 PM honestly, I haven't used telnet myself. All I did was watch another guy in the IT department as he hooked up a serial cable to a cisco switch and typed in 'telnet' into the command prompt, along with some other commands afterwards. I apologize if I seemed like a know-it-all.Quote from: michaewlewis on May 17, 2007, 11:24:20 AM no, its a switch. It's a Catalyst 3750. Unless you're saying all the cisco switches have terminal servers built in to them? The Catalyst 3750 Series of switches don't have anywhere to connect a serial cable. I know you can use RJ45 for serial connections (I do so myself), but the data sheet says it only supports 10/100/1000/10000Mb ethernet or PoE on the RJ45 connections or SFP connections which aren't used for serial. So either the cable wasn't being used as a serial cable or he didn't plug into the switch. |
|