HP Mellanox SX1018 Mellanox MLNX-OS® User Manualfor SX1018HP Ethernet - Page 53

USB Support, Diagnostics

Page 53 highlights

Rev 1.6.9 This is a test email. ==== Done. For further information, please refer to Mellanox MLNX-OS Command Reference Guide. 4.7 USB Support 4.7.1 Accessing a USB Device for Read/Write MLNX-OS can access USB devices attached to switch systems. USB devices are automatically recognized and mounted upon insertion. To access a USB device for reading or writing a file, you need to provide the path to the file on the mounted USB device in the following format: scp://username:password@hostname/var/mnt/usb1/ Examples:  To fetch an image from a USB device, run the command: "image fetch scp://username:password@hostname/var/www/html/"  To save log file '3' to a USB device under the name test_log_f using the logging files command, run (in Enable or Config mode): switch > enable switch # logging files upload 3 scp://username:password@hostname/var/ mnt/usb1/test_log_f switch #  To safely remove the USB and to flush the cache, after writing (log files, for example) to a USB, use the usb eject command (in Enable or Config mode). switch (config) # usb eject switch (config) # For further information, please refer to Mellanox MLNX-OS Command Reference Guide. 4.8 Diagnostics 4.8.1 Retrieving Return Codes when Executing Remote Commands  To stop the CLI and set the system to send return errors if some commands fail, perform the following: Step 1. Connect to the system from the host SSH. Step 2. Add the -h parameter after the cli (as shown in the example below) to notify the system to halt on failure and pass through the exit code. ssh @ cli -h '"enable" "show interfaces brief"' 4.9 mDNS Multicast DNS (mDNS) protocol is used by the SM HA to deliver control information between the InfiniBand nodes via the management interface. Mellanox Technologies 53 Mellanox Technologies Confidential

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

Rev 1.6.9
Mellanox Technologies
53
Mellanox Technologies Confidential
For further information, please refer to
Mellanox MLNX-OS Command Reference Guide
.
4.7
USB Support
4.7.1
Accessing a USB Device for Read/Write
MLNX-OS can access USB devices attached to switch systems. USB devices are automatically
recognized and mounted upon insertion. To access a USB device for reading or writing a file, you
need to provide the path to the file on the mounted USB device in the following format:
scp://username:password@hostname/var/mnt/usb1/<file name>
Examples:
To fetch an image from a USB device, run the command:
To save log file ‘3’ to a USB device under the name
test_log_f
using the
logging files
command, run (in Enable or Config mode):
To safely remove the USB and to flush the cache, after writing (log files, for example) to a
USB, use the
usb eject
command (in Enable or Config mode).
For further information, please refer to
Mellanox MLNX-OS Command Reference Guide
.
4.8
Diagnostics
4.8.1
Retrieving Return Codes when Executing Remote Commands
To stop the CLI and set the system to send return errors if some commands fail, perform the
following:
Step 1.
Connect to the system from the host SSH.
Step 2.
Add the
-h
parameter after the
cli
(as shown in the example below) to notify the system to halt
on failure and pass through the exit code.
4.9
mDNS
Multicast DNS (mDNS) protocol is used by the SM HA to deliver control information between
the InfiniBand nodes via the management interface.
This is a test email.
==== Done.
“image fetch scp://username:password@hostname/var/www/html/<image_name>”
switch > enable
switch # logging files upload 3 scp://username:password@hostname/var/
mnt/usb1/test_log_f
switch #
switch (config) # usb eject
switch (config) #
ssh <username>@<hostname> cli
-h
'"enable" "show interfaces brief"'