USB Commands
Use these commands to view USB flash device status and contents, unmount the device, and configure USB logging.
If your switch model includes a USB slot and a USB flash device is installed in the USB slot, the USB commands display the device status and content.
show usb device
M4250
M4350
This command displays USB flash device details.
| Format | show USB device |
| Mode | Privileged EXEC |
| Term | Description |
|---|---|
| Device Status |
This field specifies the current status of device. Following are possible device status states:
|
Command example:
(NETGEAR Switch) #show USB device
Device Status………………………………………………… Active
dir usb
M4250
M4350
This command displays USB device contents and memory statistics.
| Format | dir usb |
| Mode | Privileged EXEC |
| Term | Description |
|---|---|
| Filename | File name |
| Filesize | File size |
| Total Size | USB flash device storage size |
| Bytes Used | Indicates size of memory used on the device. |
| Bytes Free | Indicates size of memory free on the device. |
Command example:
(NETGEAR Switch) #dir USB:
Filename Filesize Modification Time
F1.cfg 256 4/22/2009 8:00:12
Total Size: xxxx
Bytes Used: yyyy
Bytes Free: zzzz
unmount usb
M4250
M4350
This command lets you unmount a USB device. This command works only if your switch model includes at least one USB port in which a USB device is installed. If your switch model includes two USB ports, you can specify the USB device number (1 or 2).
| Format | unmount usb [1 | 2] |
| Mode | Privileged EXEC |
logging usb
M4250
M4350
This command configures the logging severity level for a USB device that is installed in the switch. This command works only if your switch model includes at least one USB port in which a USB device is installed.
For the severitylevel argument, enter one of the following:
- emergency: 0
- alert: 1
- critical: 2
- error: 3
- warning: 4
- notice: 5
- info: 6
- debug: 7
| Format | logging usb severitylevel |
| Mode | Global Config |
logging usb device-number
M4250
M4350
If your switch model includes two USB slots, this command lets you configure USB device logging for one of two USB devices.
This command works only if your switch model includes at least one USB port in which a USB device is installed. If your switch model includes two USB ports, you can specify the USB device number (1 or 2).
| Format | logging usb device-number {1 | 2} |
| Mode | Privileged EXEC |
logging usb overwrite-on-full
M4250
M4350
This command configures USB device logging to overwrite the log when it is full. As an option, you can set the logging severity level. For the severitylevel argument, enter one of the following:
- emergency: 0
- alert: 1
- critical: 2
- error: 3
- warning: 4
- notice: 5
- info: 6
- debug: 7
| Format | logging usb overwrite-on-full [severitylevel] |
| Mode | Privileged EXEC |
logging usb stop-on-full
M4250
M4350
This command configures USB device logging to stop writing when the log is full. As an option, you can set the logging severity level. For the severitylevel argument, enter one of the following:
- emergency: 0
- alert: 1
- critical: 2
- error: 3
- warning: 4
- notice: 5
- info: 6
- debug: 7
| Format | logging usb stop-on-full [severitylevel] |
| Mode | Privileged EXEC |