Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Connect from USB to serial port of switch


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Connect from USB to serial port of switch

I have someone wanting to connect to the serial management port of a switch from a PC running CentOS6. The management port on the switch is apparently baud 9600, 8 data bits, 1 stop bit & no parity They have plugged in a cable to connect and the output from lsusb is:-
Code:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 003: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
Bus 001 Device 004: ID 03f0:094a Hewlett-Packard Optical Mouse [672662-001]

lsusb -vs 1:2 shows the device in question and gives me:-
Code:
# lsusb -vs 1:2

Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x2303 PL2303 Serial Port
  bcdDevice            3.00
  iManufacturer           1 Prolific Technology Inc. 
  iProduct                2 USB-Serial Controller D
  iSerial                 3 00000C7B
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

The devices I find with usb in the name are these:-
Code:
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D_00000C7B-if00-port0
/dev/serial/by-path/pci-0000:00:14.0-usb-0:3:1.0-port0
/dev/ttyUSB0
/dev/usbmon2
/dev/bus/usb
/dev/usbmon1
/dev/.udev/links/input\x2fby-path\x2fpci-0000:00:14.0-usb-0:5:1.0-event-mouse
/dev/.udev/links/input\x2fby-id\x2fusb-PixArt_HP_USB_Optical_Mouse-event-mouse
/dev/.udev/links/input\x2fby-path\x2fpci-0000:00:14.0-usb-0:4:1.0-event-kbd
/dev/.udev/links/input\x2fby-id\x2fusb-LITE-ON_Technology_USB_NetVista_Full_Width_Keyboard.-event-kbd
/dev/.udev/links/serial\x2fby-id\x2fusb-Prolific_Technology_Inc._USB-Serial_Controller_D_00000C7B-if00-port0
/dev/.udev/links/serial\x2fby-path\x2fpci-0000:00:14.0-usb-0:3:1.0-port0
/dev/.udev/links/input\x2fby-path\x2fpci-0000:00:14.0-usb-0:5:1.0-mouse
/dev/.udev/links/input\x2fby-id\x2fusb-PixArt_HP_USB_Optical_Mouse-mouse
/dev/.udev/db/tty:ttyUSB0
/dev/.udev/db/usbmon:usbmon0
/dev/.udev/db/usb:1-5
/dev/.udev/db/usb:1-4
/dev/.udev/db/usb:1-3
/dev/.udev/db/usb:usb2
/dev/.udev/db/usb:usb1
/dev/.udev/db/usbmon:usbmon2
/dev/.udev/db/usbmon:usbmon1
/dev/input/by-path/pci-0000:00:14.0-usb-0:5:1.0-event-mouse
/dev/input/by-path/pci-0000:00:14.0-usb-0:4:1.0-event-kbd
/dev/input/by-path/pci-0000:00:14.0-usb-0:5:1.0-mouse
/dev/input/by-id/usb-PixArt_HP_USB_Optical_Mouse-event-mouse
/dev/input/by-id/usb-LITE-ON_Technology_USB_NetVista_Full_Width_Keyboard.-event-kbd
/dev/input/by-id/usb-PixArt_HP_USB_Optical_Mouse-mouse
/dev/usbmon0

Assuming that I have to create a symbolic link as /dev/modem, what do I point it at? I've tried a few such as /dev/ttyUSB0, /dev/bus/usb/001/002 and the like, but I'm not sure how to test I've got anything right.

It's been suggested that the tool to use is minicom and I've set up the connect speed and negotiation as I've been told the serial port on the switch will expect but no output (not even rubbish) on screen. It's wanting a devices called /dev/modem which is why I presume i just need to create the link.

It's all a bit odd because it is a remote site, but the network team need to get on the serial management port of one of the other switches. They are hoping we can save a journey.


Am I even using the right approach with the right tools? For all I know, minicom might be offering dial-in to my server rather than driving a serial line the other way.


Kind regards,
Robin
# 2  
What kind of cable connects the USB port on the computer to the serial port on the switch?
# 3  
Are you talking about a CISCO switch with a serial port presented on a RJ45 outlet?
# 4  
I'm informed it's an HP 2620 switch with a Prolific USB to serial adapter. I've not been to the site, so I'm taking it on trust or the network chap.

He's also suggested using ser2net but I've not got this RPM available to the site to install. We don't allow our remote sites to connect to public package sites, just our internal version. I would have to to package it locally, but that's a lot of work and I'm pretty unfamiliar with that process.
# 5  
Hi Robin,

Could you not connect the serial from the switch to a serial port on an old PC piece of kit (running say, Windows 7), and test access from there with a terminal emulator eg, hyperterminal. Then set up remote desktop protocol (rdp) on the machine to allow remote access from the corporate network.

That may not be suitable for you but I've done similar a few times.

Dennis.
# 6  
Sadly (or not depending on your viewpoint Smilie) there is no Windows in the site. We just have a CentOS 6 PC and no-one technical on site.

The technician doesn't want to travel to the site for a 5 minute job.
# 7  
Quote:
Originally Posted by rbatte1
Sadly (or not depending on your viewpoint Smilie) there is no Windows in the site. We just have a CentOS 6 PC and no-one technical on site.

The technician doesn't want to travel to the site for a 5 minute job.
So basically poor planning by senior management, and mutiny in the ranks. Smilie
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

9 More Discussions You Might Find Interesting

1. AIX

Connect GPS to serial port AIX 5.x

HI, Does anyone installed a GPS from his Serial port to an IBM Server serial port with AIX 5.X I would like the rs232 configuration you used on the GPS, and the ttys configuration from your server. Thanks in advance !!! (8 Replies)
Discussion started by: trevian3969
8 Replies

2. Solaris

Solaris 11.2 does not assign serial port to 3g usb modem?

In ubuntu etopic i create this udev rules for prolink 3g usb modem: SUBSYSTEM=="block", SUBSYSTEM=="scsi", ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="f000", ACTION=="add", RUN+="/sbin/modprobe usbserial Vendor=0X1e0e Product=0Xf000" After plugging the usb modem, ubuntu assigns the ports... (4 Replies)
Discussion started by: shamsat
4 Replies

3. Solaris

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

Hello, I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build. The first part is what confuses me -the cabling. I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies

4. Solaris

How to enable Serial port on ILOM, when Network Port is enabled in parallel

Hi Everyone, In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies

5. AIX

How to connect PC's USB port to pSeries system?

Hello AIX Group Members, I have two systems: (1) IBM pSeries 640, 7026-B80. (2) A 5-month old HP laptop with Windows Vista. It has no serial port and only has USB ports on it. My question are: How can I use the laptop as the p640's terminal? How can I make the connection? What type of cable... (4 Replies)
Discussion started by: aixlover
4 Replies

6. Solaris

USB to Serial Adapter connection

Hi Community, I'm working on Sun Server V490 with my PC (with OS Vista). I'm using a USB to Serial Adapter to connect to Server directly. I've this problem, I'm connecting to Server with Putty client with this settings: boud rate 9600, 8 bit, 0 parity, 0 flow control, but after to have typed... (4 Replies)
Discussion started by: Sunb3
4 Replies

7. UNIX for Dummies Questions & Answers

USB serial help needed

Hi iam new bie to unix. we are getting the sensor positional values on hyperterminal(UART).but our task is to use this data for mouse movement.so wat we hav to do ?? is this required to change usb driver cud u send info regarding my query?? Thanks in advance :) :) :) (1 Reply)
Discussion started by: jayakar
1 Replies

8. SCO

Usb To Serial (sco6)

According to sco6 usb supplement, once you install it, you can install a bafo industries (BF-810) in the computer. I have done all that and followed the intructions completely and it shows up using usbprobe and l /dev/usb_ser* Problem is that when I go to mkdev serial, it is not there. Anyone... (1 Reply)
Discussion started by: jn5519
1 Replies

9. Linux

modem - usb to serial configuration

I have a serial modem connected to a usb port using an adapter cable. The system is a HP DL360. RedHat ES3.0 I am using the device /dev/ttyUSB0 When I issue the command "mgetty ttyUSB0" I get the following output in the log file. How do I get the system to see the modem. 12/02 14:17:55... (2 Replies)
Discussion started by: jshoovie
2 Replies

Featured Tech Videos