Enabling or disabling the USB port

This feature allows configuration of the USB port with either the CLI or SNMP.

Syntax

usb-port

no usb-port

Enables the USB port. The no form of the command disables the USB port and any access to the device.

To display the status of the USB port:

Syntax

show usb-port

Displays the status of the USB port. It can be enabled, disabled, or not present.

Example of show usb-port command output on version K.13.59 and later

(HP_Switch_name#) show usb-port

  USB port status: enabled
  USB port power status: power on (USB device detected in port)
  USB port reseat status: USB reseat not required

show usb-port command output on version K.14.XX

(HP_Switch_name#) show usb-port

  USB port status: enabled
  USB port power status: power on    (USB device detected in port)

One of the following messages indicates the presence or absence of the USB device:

  • Not able to sense device in USB port

  • USB device detected in port

  • no USB device detected in port

The reseat status messages can be one of the following (K.13.XX only):

  • undetermined USB reseat requirement

  • USB reseat not required

  • USB device reseat required for USB autorun

The autorun feature works only when a USB device is inserted and the USB port is enabled.

Software versions K.13.XX operation

When using software version K.13.58, if the USB port is disabled (no usb-port command), the USB autorun function does not work in the USB port until the USB port is enabled, the config file is saved, and the switch is rebooted. The 5 volt power to the USB port remains on even after the USB port has been disabled. For software versions after K.13.58, the 5 volt power applied to the USB port is synchronized with the enabling of the USB port, that is, when the USB port is enabled, the 5 volts are supplied; when the USB port is disabled, the 5 volts are not supplied. For previous software versions the power was supplied continuously. The autorun function does not require a switch reboot, but the USB device must be inserted at least once after the port is enabled so that the switch recognizes that the device is present. If the USB device is inserted and then the USB port is enabled, the switch does not recognize that a USB device is present.

Software Version K.14.XX Operation.

For software versions K.14.XX, the USB port can be disabled and enabled without affecting the autorun feature. When the USB port is enabled, the autorun feature activates if a USB device is already inserted in the USB port. Power is synchronized with the enabling and disabling of USB ports as described above for K.13.59 and later software.