V3 jumpserver 无法对网络设备(H3C)下发命令

下发命令报错

| UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p "echo % Unrecognized command found at '^' position./.ansible/tmp"&& mkdir "echo % Unrecognized command found at '^' position./.ansible/tmp/ansible-tmp-1695310337.9955263-15824-145150818165672" && echo ansible-tmp-1695310337.9955263-15824-145150818165672="echo % Unrecognized command found at '^' position./.ansible/tmp/ansible-tmp-1695310337.9955263-15824-145150818165672" ), exited with result 1, stdout output: \r\r\n\u0000******************************************************************************\r\r\n* Copyright (c) 2004-2018 New H3C Technologies Co., Ltd. All rights reserved.\r\r\n Without the owner’s prior written consent, \r\r\n no decompiling or reverse-engineering shall be allowed. \r\r\n*****************************************************************************\r\r\n\r\r\n\u0000<C-SH-D11-A1F-J02-MS-128.12>/bin/sh -c ‘( umask 77 && mkdir -p "echo % Unrecognized command found at '\"'\"'^'\"'\"' position./.ansible/tmp"&& mkdir "echo % Unrecognized command found at '\"'\"'^'\"'\"' position./.ansible/tmp/ansible-tmp-1695310337.9955263-15824-145150818165672" && echo ansible-tmp-1695310337.9955263-15824-145150818165672="echo % Unrecognized command found at '\"'\"'^'\"'\"' position./.ansible/tmp/ansible-tmp-1695310337.9955263-15824-145150818165672" ) && sleep 0’\r\r\n ^\r\r\n % Unrecognized command found at ‘^’ position.\r\r\n”,
“unreachable”: true
}

有没有人大佬知道的

V2版本的,平台类型选择 other ,批量命令是没有问题的 V3的就不行

V3版本的话,平台得选H3C的,然后试试吧

试过了不行的 哎 搞了好久 一直好不了

看这里报错是用户的权限不对,你资产的资产账号可连接性测试试一下看看

这个没问题的,资产都是正常登录的

不是指登录,是指可连接性测试

我搭建了3套V3jumpserver,都是网络设备不能批量命令,LINUX 的机器是可以的


这个都是正常的

好吧,那只能等哪位路过的研发大佬帮忙看看了

好的,谢谢你,等大佬过来看了

问题解决了,升级3.7.0版本 ,选择RAW

3.6.3没有这个

1 个赞