Skip to main content

usblan command

Use the usblan commands to enable or disable USB LAN in host OS.

usblan command syntax

Onecli.exe [misc] usblan <cmds> [<options>]
Table 1. usblan commands and examples
CommandSyntax exampleOutput exampleDescription
disable
onecli.exe usblan disable 
Succeed to disable BMC Lan over USB.
Disable all of the LAN-over-USB devices on the host OS side.
enable
onecli.exe usblan enable 
Succeed to enable BMC Lan over USB.
Enable all of the LAN-over-USB devices on the host OS side.
query
onecli.exe usblan query
No   /Device state   /BMC IP
/Host IP
0 /connected
/host
/host
Query all of the LAN-over-USB devices status on the host OS side.
Its output statuses include:
  • disabled: LAN-over-USB interface is off
  • enabled:LAN-over-USB interface is on, but BMC IP is not reachable
  • connected: BMC IP is reachable
Note
Only one of the previous commands should be specified in a command line at the same time.
Table 2. usblan command specific parameters
ParameterRequired/OptionalNotes
  • --bmc-cim-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --check-trust, -C

  • --config

  • --never-check-trust, -N

  • --nolog

  • --output, -o

Optional

Refer to Table 2.