[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] [XCP] Host Disabled, License expired, Can't renable



Hi Errol

Try this

----------------------------------------------------------------------------------------
#!/bin/bash

#Script to fix XCP 30 License expire issue
#Script increases the month value by 1
#By: Ronny L. Bull & Alex Stuart
#Version: 1.0
#Date: 8-9-2011

FUTURE=`date --date="next Month" '+%Y%m%d'`

#stop xapi service
/etc/init.d/xapi stop

#Replace the expiry entry
sed -i "s/\(expiry.\{3\}\)[0-9]\{8\}/\1$FUTURE/g" /var/xapi/state.db

#start xapi service
/etc/init.d/xapi start
----------------------------------------------------------------------------------------

If you have a pool, you have to replace the expiry date in all of the
members of the pool.. so you have to add a "g" at the end of sed comand to
replace all the occurrences.

sed -i "s/<regular expresion>/<regular expresion>/g" file

Hope it helps

Kyle

> On Fri, Nov 25, 2011 at 9:29 PM, Errol Neal <eneal@xxxxxxxxxxxxxxxxx>
> wrote:
>> Errol Neal  wrote:
>>>                 Errol Neal  wrote:
>>> >                 First of all, Happy Thanksgiving to all who
>>> celebrate. Giving thanks for powerful open source virtualization!
>>> >
>>> <SNIP>
>>> > I tried the expiry.sh trick, but it didn't work.
>>> >
>>>
>>> Just to cover my basis, I also tried it manually. I stopped xapi and
>>> manually modified state.db and changed two instances of expiry. When i
>>> started back up xapi and ran xe host-enable I still received the error
>>> and checking the state.db, the date had reverted.
>>>
>>> This host is one of two in a pool.
>>>
>>
>> Any takers on this? i've googled and searched old threads and they
>> always seem to end with someone having to reinstall which is not
>> possible for me at the moment.
>>
>> I don't even know how I got into this state. I always thought XCP was
>> free so I ignored the license warnings from XenCenter not thinking that
>> my hosts would actually be disabled.
>> There isn't any point in reinstalling if I'm just going to encounter the
>> same problem again :/ Was it because i was using XenCenter? If XenCenter
>> wasn't in the picture, would my host have been disabled?
>
> Well back in the early days this was an issue 0.5 and earlier, it was
> supposed to be fixed in 1.1 though.... quite odd, get a license file
> from the citrix site to re-enable in the meantime
>
>>
>> Thanks again..
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



--------------------------------------------------------------------------------------------
Busca, compara... pero busca en Qué!
Descúbrelo en http://buscar.que.es/
--------------------------------------------------------------------------------------------
Correo enviado desde http://www.ozu.es

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.