Skip to main content

Examples of OneCLI commands on SR635/SR655

This section provides the general format and examples of OneCLI commands on SR635/SR655.

General format of the inventory command (in-band mode)

OneCLI inventory getinfor --htmlreport

General format of the ffdc command (out-of-band mode)

OneCLI ffdc --bmc USERID:PASSW0RD@bmchost

General format of the update command

OneCLI update flash --bmc USERID:PASSW0RD@bmchost
OneCLI update flash

General format of the batch update command (out-of-band mode)

OneCLI update multiflash --configfile multi_task.json
Note
When running OneCLI on Windows OS in in-band mode, the AMI RNDIS device driver should be installed manually.

Commands and examples for BIOS (UEFI) and BMC settings

  • Commands:
    • BIOS (UEFI) settings: show, showvalues, showdefault, showdes, set, save, batch, restore, replicate

    • BMC settings: show, set, save, batch

  • Examples:
    • BIOS (UEFI) settings:

      OneCLI config show Bios
      OneCLI config show “Bios.Q00001 Boot Mode” --bmc USERID:PASSW0RD@bmchost
      OneCLI config set “Bios.Q00001 Boot Mode” “UEFI only” --bmc USERID:PASSW0RD@bmchost
      OneCLI config save --file sr635_bios.txt
    • BMC settings:

      OneCLI config show BMC --bmc USERID:PASSW0RD@bmchost
      OneCLI config set BMC.Network1 true
      OneCLI config batch --file batch.txt
      The content of the batch.txt file includes:
      set BMC.DHCP1 false
      set BMC. HostIPAddress1 “xx.xx.xx.xx”
      set BMC.HostIPSubnet1 “xx.xx.xx.xx”
      set BMC.GatewayIPAddress1 “xx.xx.xx.xx”