Config - a10

HOME > CONFIG > A10 Thuner

typea10を設定するとxSSHはA10 Thuner機器へログインするものと認識しパーティション単位でコマンドを送信できるようになります。

{
    "targets": [
        {
            "type": "a10",
            "host": "HOSTNAME",
            "auth_method": "password",
            "user": "USER",
            "password": "PASSWORD",
            "a10": {
                "execute": {
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "enable": {
                    "password": "ENABLE-PASSWORD",
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                }
            }
        }
    ]
}

enableモードに遷移してからコマンドを送信したい場合はenableを設定します。

パーティションを切り替えてコマンドを送信したい場合はpartitionを設定します。パーティションを切り替える場合はenableパスワードの設定が必要となります。

{
    "targets": [
        {
            "type": "a10",
            "host": "HOSTNAME",
            "auth_method": "password",
            "user": "USER",
            "password": "PASSWORD",
            "a10": {
                "execute": {
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "enable": {
                    "password": "ENABLE-PASSWORD",
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "partition": [
                    {
                        "name": "PARTITION-NAME-A",
                        "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                        "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                    },
                    {
                        "name": "PARTITION-NAME-B",
                        "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                        "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                    }
                ]
            }
        }
    ]
}

targetsは配列のため複数の接続先を指定したい場合は次のように設定します。

{
    "targets": [
        {
            "type": "a10",
            "host": "HOSTNAME",
            "auth_method": "password",
            "user": "USER",
            "password": "PASSWORD",
            "a10": {
                "execute": {
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "enable": {
                    "password": "ENABLE-PASSWORD",
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "partition": [
                    {
                        "name": "PARTITION-NAME-A",
                        "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                        "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                    },
                    {
                        "name": "PARTITION-NAME-B",
                        "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                        "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                    }
                ]
            }
        },
        {
            "type": "a10",
            "host": "HOSTNAME",
            "auth_method": "password",
            "user": "USER",
            "password": "PASSWORD",
            "a10": {
                "execute": {
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "enable": {
                    "password": "ENABLE-PASSWORD",
                    "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                    "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                },
                "partition": [
                    {
                        "name": "PARTITION-NAME-A",
                        "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                        "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                    },
                    {
                        "name": "PARTITION-NAME-B",
                        "command": ["COMMAND-1", "COMMAND-2", "COMMAND-3"],
                        "file": ["/PATH/TO/FILE-1", "/PATH/TO/FILE-2", "PATH/TO/FILE-3"]
                    }
                ]
            }
        }
    ]
}