Hi Peter,
Sure, here it is:
-------------------------------8<--------------------------------------
#!/bin/sh
export
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
xm list | awk ''{print $1, $2}'' > /tmp/xm.now &&
[ "`cat /tmp/xm.now 2>/dev/null | md5sum`" != "`cat
/tmp/xm.last
2>/dev/null | md5sum`" ] &&
diff --normal /tmp/xm.last /tmp/xm.now | grep -E ''<|>''
&&
/etc/init.d/snmpd restart
mv -f /tmp/xm.now /tmp/xm.last
-------------------------------8<--------------------------------------
Have phun,
Adrian
Peter Braun wrote:> Hi,
>
> thank you for your answer.
> May I kindly ask you for that script?
>
> Thank you
>
> Peter Braun
>
>
>
> 2009/2/8 Ady Deac <ady@mikesnet.ro>:
>
>> Hi Peter,
>>
>> This is because the OID of the interface gets changed. I have done a
little
>> script that restarts snmp if the domUs get restarted/stopped/started.
>>
>> Good luck,
>> Adrian
>>
>> Peter Braun wrote:
>>
>>> Hi
>>>
>>> am trying to monitore domU traffic using CACTI + net-smp on dom0.
>>>
>>> It runs well untill the domU get restarted.Than the graphs stops.
>>>
>>> Every domU get vifname specified so its same after the reboot.
>>> In net-smp i see several "vifuser01", only one is stated
as up and
>>> they are wilth different IDs.
>>>
>>> I don''t know how to troubleshoot this problem.
>>>
>>> Anybody facing same behaviour?
>>>
>>> BR
>>>
>>> Peter Braun
>>>
>>> _______________________________________________
>>> Xen-users mailing list
>>> Xen-users@lists.xensource.com
>>> http://lists.xensource.com/xen-users
>>>
>>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@lists.xensource.com
>> http://lists.xensource.com/xen-users
>>
>>
--
Deac Mihai-Adrian
MiKe software&network SRL
Sediu social: Floresti, str. Florilor, nr 184, bl C5, sc 2, ap 32, cod 407280,
jud Cluj
Reg comert: J20/500/2005
Cod fiscal: R17389485
Banca: ING Bank
IBAN: RO79 INGB 5567 9999 0052 8664 RON
tel: +40-745-256364, +40-723-854444
e-mail: ady@mikesnet.ro
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users