in fiosynth_lib/fiosynth.py [0:0]
def set_attributes():
#
# Attribute Table Definition
#
parser = argparse.ArgumentParser(
description="FB fio Synthetic Benchmark Suite for storage ver 3.5.48"
)
parser.add_argument(
"-d",
action="store",
dest="device",
type=str,
help=(
"(Required) device path for single device target, ALL for all"
"data devices, or ALLRAID for all mdraid devices"
),
required=True,
default="",
)
parser.add_argument(
"-c",
action="store",
dest="factor",
type=float,
help="(Optional) specify capacity in TB (default = <device capacity>)",
default=-1.0,
)
parser.add_argument(
"-w",
action="store",
dest="wklds",
type=str,
help="(Required) filename for workload suite (default = )",
required=True,
default="",
)
parser.add_argument(
"-f",
action="store",
dest="fname",
type=str,
help="(Required) Results filename (default = )",
required=True,
default=".",
)
parser.add_argument(
"-r",
action="store",
dest="dryrun",
type=str,
help="(Optional) Set to y to do dry run (default = n)",
default="n",
)
parser.add_argument(
"-t",
action="store",
dest="health",
type=str,
help="(Optional) Enter Health Monitoring Tool Syntax (default = )",
default="",
)
parser.add_argument(
"-p",
action="store",
dest="prep",
type=str,
help="(Optional) Set to n to skip drive prep, o to prep on first cycle "
"only (default = y)",
default="y",
)
parser.add_argument(
"-n",
action="store",
dest="cycles",
type=int,
help="(Optional) Specific the number of run cycles (default = 3 )",
default=-1,
)
parser.add_argument(
"-g",
action="store",
dest="getflash",
type=str,
help="(Optional) Set to y to enable flash configuration logging "
"(default = n)",
default="n",
)
parser.add_argument(
"-s",
action="append",
dest="servers",
type=str,
help="(Optional) Add a server to the list for client/server mode",
default=[],
)
parser.add_argument(
"-l",
action="store",
dest="server_file",
type=str,
help="(Optional) Path to a text file with a server name on each line",
default="",
)
parser.add_argument(
"-j",
action="store",
dest="job_scale",
type=int,
help="(Optional) Scale by jobs (default = 1 job per drive)",
default=1,
)
parser.add_argument(
"-x",
action="store_true",
dest="exitall",
help="(Optional) Pass --exitall to fio",
)
parser.add_argument(
"-z",
action="store_true",
dest="deterministic",
help="(Optional) Static file and directory names",
)
parser.add_argument(
"-m",
action="store",
dest="misc",
type=str,
help="(Optional) Set a misc variable in a workload suite" "(default = )",
default="",
)
parser.add_argument(
"-e",
action="store",
dest="expert",
type=str,
help="(Optional) Pass this string directly to fio command line invocation and attach just before jobfile argument"
"(default = )",
default="",
)
parser.add_argument(
"-u",
action="store",
dest="user",
type=str,
help="(Optional) The user to login as on the server when running fiosynth in client/server mode (default = root)",
default="root",
)
parser.add_argument(
"-y",
action="store",
dest="tunneling",
type=str,
help="(Optional) Set to y to perform server/client mode fio via SSH tunnels. (default = n)",
default="n",
)
parser.add_argument("-v", action="version", version=parser.description)
args = parser.parse_args()
return args