smartmontools SVN Rev 5597
Utility to control and monitor storage systems with "S.M.A.R.T."
scsiprint.h
Go to the documentation of this file.
1/*
2 * scsiprint.h
3 *
4 * Home page of code is: https://www.smartmontools.org
5 *
6 * Copyright (C) 2002-9 Bruce Allen
7 * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
8 *
9 * Additional SCSI work:
10 * Copyright (C) 2003-2023 Douglas Gilbert <dgilbert@interlog.com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 */
14
15
16#ifndef SCSI_PRINT_H_
17#define SCSI_PRINT_H_
18
19#define SCSIPRINT_H_CVSID "$Id: scsiprint.h 5462 2023-03-13 10:45:06Z chrfranke $\n"
20
21// Options for scsiPrintMain
23{
24 bool drive_info = false;
25 bool smart_check_status = false;
26 bool smart_vendor_attrib = false;
27 bool smart_error_log = false;
28 bool smart_selftest_log = false;
30 bool smart_ss_media_log = false;
31
32 bool smart_disable = false, smart_enable = false;
34
39 bool smart_selftest_force = false; // Ignore already running test
42
43 bool smart_env_rep = false;
44
45 bool sasphy = false, sasphy_reset = false;
46
47 bool tape_device_stats = false;
48 bool tape_alert = false;
49
50 bool zoned_device_stats = false;
51
52 bool get_wce = false, get_rcd = false;
53 short int set_wce = 0, set_rcd = 0; // disable(-1), enable(1) cache
54
55 unsigned char powermode = 0; // Enhancement Skip check, if disk in idle or standby mode
56 unsigned char powerexit = 0; // exit() code for low power mode
57
58 int set_standby = 0; // set(1..255->0..254) standby timer
59 bool set_standby_now = false; // set drive to standby
60 bool set_active = false; // set drive to active
61
62 int health_opt_count = 0; // TapeAlert log page only read if this value > 1
63
64 bool farm_log = false; // Seagate Field Access Reliability Metrics log (FARM) for SCSI
65 bool farm_log_suggest = false; // If -x/-xall or -a/-all is run, suggests FARM log if supported
66};
67
68int scsiPrintMain(scsi_device * device, const scsi_print_options & options);
69
70#endif
SCSI device access.
int scsiPrintMain(scsi_device *device, const scsi_print_options &options)
Definition: scsiprint.cpp:3494
short int set_rcd
Definition: scsiprint.h:53
bool smart_background_log
Definition: scsiprint.h:29
bool smart_selftest_abort
Definition: scsiprint.h:38
bool smart_auto_save_disable
Definition: scsiprint.h:33
bool smart_selftest_force
Definition: scsiprint.h:39
short int set_wce
Definition: scsiprint.h:53
unsigned char powerexit
Definition: scsiprint.h:56
bool smart_vendor_attrib
Definition: scsiprint.h:26
bool smart_default_selftest
Definition: scsiprint.h:35
bool smart_selftest_log
Definition: scsiprint.h:28
bool smart_short_cap_selftest
Definition: scsiprint.h:36
bool smart_check_status
Definition: scsiprint.h:25
bool smart_short_selftest
Definition: scsiprint.h:36
bool smart_extend_cap_selftest
Definition: scsiprint.h:37
bool smart_extend_selftest
Definition: scsiprint.h:37
bool tape_device_stats
Definition: scsiprint.h:47
bool smart_auto_save_enable
Definition: scsiprint.h:33
bool smart_ss_media_log
Definition: scsiprint.h:30
unsigned char powermode
Definition: scsiprint.h:55
bool scsi_pending_defects
Definition: scsiprint.h:40
bool general_stats_and_perf
Definition: scsiprint.h:41
bool zoned_device_stats
Definition: scsiprint.h:50