fence_ifmib with snmp v3 [Archive] _Android, Python及开发编程讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Android, Python及开发编程讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2577 | 回复: 0   主题: fence_ifmib with snmp v3 [Archive]         下一篇 
    本主题由 Administrator 于 2014-9-6 8:19:58 移动
white
注册用户
等级:少校
经验:1327
发帖:305
精华:0
注册:2011-7-21
状态:离线
发送短消息息给white 加好友    发送短消息息给white 发消息
发表于: IP:您无权察看 2014-9-5 14:56:34 | [全部帖] [楼主帖] 楼主

Proxmox Support Forum >

Proxmox Virtual Environment >

Proxmox VE: Installation and configuration > fence_ifmib with snmp v3

i'm new to proxmox. I do a test HA cluster of 4 nodes with a managable switch and use fence_ifmib.

I test it with snmp v2 and it work well. But now i want to use snmp v3 but I can't make it work.

Here is the cluster info :

root@mox4:~# cat /etc/pve/cluster.conf

<?xml version="1.0"?>

<cluster config_version="22" name="cluster1">

<cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>

<fencedevices>

<fencedevice agent="fence_ifmib" ipaddr="10.50.1.120" name="fencesw" snmp_version="3" login="snmpUser" passwd="********" snmp_sec_level="authPriv" snmp_priv_passwd="********" snmp_priv_prot="DES" snmp_auth_prot="SHA" />

</fencedevices>

<clusternodes>

<clusternode name="mox1" nodeid="1" votes="1">

<fence>

<method name="fence">

<device action="off" name="fencesw" port="14"/>

</method>

</fence>

</clusternode>

<clusternode name="mox2" nodeid="2" votes="1">

<fence>

<method name="fence">

<device action="off" name="fencesw" port="13"/>

</method>

</fence>

</clusternode>

<clusternode name="mox3" nodeid="3" votes="1">

<fence>

<method name="fence">

<device action="off" name="fencesw" port="12"/>

</method>

</fence>

</clusternode>

<clusternode name="mox4" nodeid="4" votes="1">

<fence>

<method name="fence">

<device action="off" name="fencesw" port="11"/>

</method>

</fence>

</clusternode>

</clusternodes>

<rm>

<pvevm autostart="1" vmid="100"/>

<pvevm autostart="1" vmid="101"/>

<pvevm autostart="1" vmid="102"/>

</rm>

</cluster>

I try to do :

fence_ifmib -a 10.50.1.120 -d 3 -l snmpUser -p ********* -E anthPriv -b SHA -B DES -P *********** -n 1 -o off

it return :

root@mox4:~# fence_ifmib -a 10.50.1.120 -d 3 -l snmpUser -p ********* -E authPriv -b SHA -B DES -P *********** -n 1 -o off

Traceback (most recent call last):

File "/usr/sbin/fence_ifmib", line 126, in <module>

main()

File "/usr/sbin/fence_ifmib", line 121, in main

result = fence_action(FencingSnmp(options), options, set_power_status, get_power_status, get_outlets_status)

File "/usr/share/fence/fencing.py", line 810, in fence_action

status = get_multi_power_fn(tn, options, get_power_fn)

File "/usr/share/fence/fencing.py", line 743, in get_multi_power_fn

plug_status = get_power_fn(tn, options)

File "/usr/sbin/fence_ifmib", line 64, in get_power_status

(oid, status) = conn.get("%s.%d"%(STATUSES_OID, port_num))

File "/usr/share/fence/fencing_snmp.py", line 106, in get

cmd = "%s '%s'"% (self.prepare_cmd("snmpget"), self.quote_for_run(oid))

File "/usr/share/fence/fencing_snmp.py", line 73, in prepare_cmd

cmd += " -%s '%s'"% (item[1], self.quote_for_run(self.options["--" + item[1]]))

KeyError: '--a'

Regards

There is already a fix for that in the pve-no-subscription repository. Please test with:

# wget http://download.proxmox.com/debian/dists/wheezy/pve-no-subscription/binary-amd64/fence-agents-pve_4.0.0-2_amd64.deb

# dpkg -i fence-agents-pve_4.0.0-2_amd64.deb

该贴由system转至本版2014-9-6 8:19:58




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论