コード例 #1
0
def _get_section():
    return msdt.parse_mssql_datafiles(
        [[
            'MSSQL46', 'CorreLog_Report_T', 'CorreLog_Report_T_log',
            'Z:\\mypath\\CorreLog_Report_T_log.ldf', '2097152', '256', '16',
            '0'
        ],
         [
             'MSSQL46', 'DASH_CONFIG_T', 'DASH_CONFIG_T_log',
             'Z:\\mypath\\DASH_CONFIG_T_log.ldf', '2097152', '256', '1', '0'
         ],
         [
             'MSSQL46', 'master', 'mastlog', 'Z:\\mypath\\mastlog.ldf', '0',
             '1', '0', '1'
         ],
         [
             'MSSQL46', 'model', 'modellog', 'Z:\\mypath\\modellog.ldf', '0',
             '34', '32', '1'
         ],
         [
             'MSSQL46', 'msdb', 'MSDBLog', 'Z:\\mypath\\MSDBLog.ldf',
             '2097152', '17', '3', '0'
         ],
         [
             'MSSQL46', 'NOC_ALARM_T', 'NOC_ALARM_T_log',
             'Z:\\mypath\\NOC_ALARM_T_log.ldf', '2097152', '256', '8', '0'
         ],
         [
             'MSSQL46', 'NOC_CONFIG_T', 'NOC_CONFIG_T_log',
             'Z:\\mypath\\NOC_CONFIG_T_log.ldf', '2097152', '768', '31', '0'
         ],
         [
             'MSSQL46', 'tempdb', 'templog', 'Z:\\mypath\\templog.ldf', '0',
             '160', '55', '1'
         ],
         [
             'MSSQL46', 'test_autoclose', 'test_autoclose_log',
             'Z:\\mypath\\test_autoclose_log.ldf', '2097152', '32', '1', '0'
         ]])
コード例 #2
0
SECTION_MSSQL = msdt.parse_mssql_datafiles(
    [
        [
            "MSSQL46",
            "CorreLog_Report_T",
            "CorreLog_Report_T_log",
            "Z:\\mypath\\CorreLog_Report_T_log.ldf",
            "2097152",
            "256",
            "16",
            "0",
        ],
        [
            "MSSQL46",
            "DASH_CONFIG_T",
            "DASH_CONFIG_T_log",
            "Z:\\mypath\\DASH_CONFIG_T_log.ldf",
            "2097152",
            "256",
            "1",
            "0",
        ],
        ["MSSQL46", "master", "mastlog", "Z:\\mypath\\mastlog.ldf", "0", "1", "0", "1"],
        ["MSSQL46", "model", "modellog", "Z:\\mypath\\modellog.ldf", "0", "34", "32", "1"],
        ["MSSQL46", "msdb", "MSDBLog", "Z:\\mypath\\MSDBLog.ldf", "2097152", "17", "3", "0"],
        [
            "MSSQL46",
            "NOC_ALARM_T",
            "NOC_ALARM_T_log",
            "Z:\\mypath\\NOC_ALARM_T_log.ldf",
            "2097152",
            "256",
            "8",
            "0",
        ],
        [
            "MSSQL46",
            "NOC_CONFIG_T",
            "NOC_CONFIG_T_log",
            "Z:\\mypath\\NOC_CONFIG_T_log.ldf",
            "2097152",
            "768",
            "31",
            "0",
        ],
        ["MSSQL46", "tempdb", "templog", "Z:\\mypath\\templog.ldf", "0", "160", "55", "1"],
        [
            "MSSQL46",
            "test_autoclose",
            "test_autoclose_log",
            "Z:\\mypath\\test_autoclose_log.ldf",
            "2097152",
            "32",
            "1",
            "0",
        ],
    ]
)