VERDI2012.10破解问题
系统版本CentOS6。
Verdi2012.10是64位的,下载了basic包和LINUX64的包,地址如下:
http://bbs.eetop.cn/viewthread.p ... ht=Verdi&page=1
破解工具是从这里下的:
http://bbs.eetop.cn/viewthread.php?tid=368726&highlight=verdi
以下是我破解的的步骤:
1)在linux下解压basic和LINUX64的包,到/EDA/Verdi3_201210目录下。
2)在windows下修改破解工具中features.lst文件的第一行为:
0800278151D6 2012.10 1-nov-2014 20 50
第一串数字为我的MAC地址,2012.10为Verdi版本号,后面一个日期是有效日期,20是最大用户数(猜的),50为CK的最大值。
3)使用python脚本licgen.py生成license.dat,然后手工在该文件两行加上以下信息:
SERVER localhost.localdomAIn 0800278151D6 28001
DAEMON snpslmd /EDA/Verdi3_201210/bin/snpslmd
4)将该license.dat文件放到/EDA/Verdi3_201210/license目录下,输入命令lmgrd -c /EDA/Verdi3_201210/license/license.dat。显示以下内容:
22:44:10 (lmgrd) -----------------------------------------------
22:44:10 (lmgrd)Please Note:
22:44:10 (lmgrd)
22:44:10 (lmgrd)This log is intended for debug purposes only.
22:44:10 (lmgrd)In order to capture accurate license
22:44:10 (lmgrd)usage data into an organized repository,
22:44:10 (lmgrd)please enable report logging. Use Acresso Software Inc.'s
22:44:10 (lmgrd)software license administrationsolution,
22:44:10 (lmgrd)FLEXnet Manager, toreadily gain visibility
22:44:10 (lmgrd)into license usage data and to create
22:44:10 (lmgrd)insightful reports on critical information like
22:44:10 (lmgrd)license availability and usage. FLEXnet Manager
22:44:10 (lmgrd)can be fully automated to run these reports on
22:44:10 (lmgrd)schedule and can be used to track license
22:44:10 (lmgrd)servers and usage across a heterogeneous
22:44:10 (lmgrd)network of servers including Windows NT, Linux
22:44:10 (lmgrd)and UNIX. Contact Acresso Software Inc. at
22:44:10 (lmgrd)www.acresso.com for more details on how to
22:44:10 (lmgrd)obtain an evaluation copy of FLEXnet Manager
22:44:10 (lmgrd)for your enterprise.
22:44:10 (lmgrd)
22:44:10 (lmgrd) -----------------------------------------------
22:44:10 (lmgrd)
22:44:10 (lmgrd)
22:44:10 (lmgrd) FLEXnet Licensing (v11.6.0.0 build 60117 amd64_re3) started on localhost.localdomain (linux) (6/20/2013)
22:44:10 (lmgrd) Copyright (c) 1988-2008 Acresso Software Inc. All Rights Reserved.
22:44:10 (lmgrd) US Patents 5,390,297 and 5,671,412.
22:44:10 (lmgrd) World Wide Web:http://www.acresso.com
22:44:10 (lmgrd) License file(s): /EDA/Verdi3_201210/license/license.dat
22:44:10 (lmgrd) lmgrd tcp-port 28001
22:44:10 (lmgrd) Starting vendor daemons ...
22:44:10 (lmgrd) Started snpslmd (internet tcp_port 48528 pid 3329)
22:44:10 (snpslmd) FLEXnet Licensing version v11.10.0.3 build 96543 x64_lsb
22:44:10 (snpslmd) lmgrd version 11.6, snpslmd version 11.10
06/20/2013 22:44:10 (snpslmd) Synopsys Corporate Licensing (SCL) Release: version SCL_11.4
22:44:10 (snpslmd) License server system started on localhost.localdomain
22:44:10 (snpslmd) No features to serve, exiting
22:44:10 (snpslmd) EXITING DUE TO SIGNAL 36 Exit reason 4
22:44:10 (lmgrd) snpslmd exited with status 36 (No features to serve)
22:44:10 (lmgrd) snpslmd daemon found no features.Please correct
22:44:10 (lmgrd) license file and re-start daemons.
22:44:10 (lmgrd)
22:44:10 (lmgrd) This may be due to the fact that you are using
22:44:10 (lmgrd) a different license file from the one you expect.
22:44:10 (lmgrd) Check to make sure that:
22:44:10 (lmgrd) /EDA/Verdi3_201210/license/license.dat
22:44:10 (lmgrd) is the license file you want to use.
22:44:10 (lmgrd)
以下是我license的内容:
SERVER localhost.localdomain 0800278151D6 28001
DAEMON snpslmd /EDA/Verdi3_201210/bin/snpslmd
FEATURE DataExpansion snslmgrd 2012.10 1-nov-2014 20 \
0E225B54CF82982E043E VENDOR_STRING=ES=FFBDLGGDHDFQJJKLGMQN \
HOSTID=0800278151d6 ck=11
FEATURE DataExpansionCoverage snslmgrd 2012.10 3-nov-2014 20 \
BE128B1414B29E2E6FAB VENDOR_STRING=ES=FHPDMOECOFEGLMDJFHPD \
HOSTID=0800278151d6 ck=23
FEATURE DataExpansionSim snslmgrd 2012.10 3-nov-2014 20 \
0E528B4461C8C62986EB VENDOR_STRING=ES=EFHEMJBLNMQFOEGMJMMP \
HOSTID=0800278151d6 ck=34
FEATURE DataReplay snslmgrd 2012.10 3-nov-2014 20 \
5E024B74B1BF45A67E18 VENDOR_STRING=ES=FKCCEOLQPJOGQNHLGJPQ \
HOSTID=0800278151d6 ck=12
FEATURE DataReplaySim snslmgrd 2012.10 4-nov-2014 20 \
8E92EBD4C58EB1A17734 VENDOR_STRING=ES=LQJKQGFQGHIFHFJCEQGK \
HOSTID=0800278151d6 ck=18
FEATURE Debussy snslmgrd 2012.10 4-nov-2014 20 BE320B14A4E52E475EAC \
VENDOR_STRING=ES=INLNPPMNQMKBJNBCCGDI HOSTID=0800278151d6 \
ck=29
FEATURE Debussy_shared snslmgrd 2012.10 11-nov-2014 20 \
DED29B44D208149B638F VENDOR_STRING=ES=QCIJFEOJEJOJCHCFDGMB \
HOSTID=0800278151d6 ck=16
FEATURE EssentialSignalAnalysis snslmgrd 2012.10 13-nov-2014 20 \
0EE23B348CF7BD4136D8 VENDOR_STRING=ES=JKBQONNONIFNDPKGFHCG \
HOSTID=0800278151d6 ck=42
FEATURE Extraction snslmgrd 2012.10 13-nov-2014 20 \
AE324BC4DE8EAAC705CF VENDOR_STRING=ES=GIEJEQMIOQOJFMMHIGMK \
HOSTID=0800278151d6 ck=47
FEATURE FLE_main snslmgrd 2012.10 15-nov-2014 20 1E32DB649B460B45B242 \
VENDOR_STRING=ES=QJIPIQBGDOCNGLOHNNFO HOSTID=0800278151d6 \
ck=42
FEATURE FL_cosim_run snslmgrd 2012.10 17-nov-2014 20 \
2E825BE472FB5715F651 VENDOR_STRING=ES=PMKHBNBHHGDEGCIMMJHJ \
HOSTID=0800278151d6 ck=11
FEATURE FL_ice_run snslmgrd 2012.10 18-nov-2014 20 \
2E32CBB49767DC301EBA VENDOR_STRING=ES=LPBBCODOEOQJMBBJOECP \
HOSTID=0800278151d6 ck=20
FEATURE FL_multichip_partition snslmgrd 2012.10 19-nov-2014 20 \
7E82AB34B925D59503E4 VENDOR_STRING=ES=IKIFMHNOHHLKJKIMMKOG \
HOSTID=0800278151d6 ck=11
FEATURE FL_recalc snslmgrd 2012.10 26-nov-2014 20 \
2EF2DB241FA11715AC61 VENDOR_STRING=ES=BKDJKKGBFOMDHHKHPDQP \
HOSTID=0800278151d6 ck=37
FEATURE Gaia snslmgrd 2012.10 26-nov-2014 20 CE22AB94D23790F163BE \
VENDOR_STRING=ES=KOIFFONKOLJECQFFMLNH HOSTID=0800278151d6 ck=2
FEATURE Gate2RTLCorrelation snslmgrd 2012.10 3-nov-2014 20 \
FE32FB845AF3B11C6952 VENDOR_STRING=ES=BEDCEMQOMBLNMQJOEQFD \
HOSTID=0800278151d6 ck=12
FEATURE Gsim_dump_advance snslmgrd 2012.10 7-nov-2014 20 \
4E32ABD4ED4142C9CBFA VENDOR_STRING=ES=HNPIOQKGBCBLKQBINCPL \
HOSTID=0800278151d6 ck=49
FEATURE Gsim_dump_basic snslmgrd 2012.10 7-nov-2014 20 \
FEF29BD43DA092F4D009 VENDOR_STRING=ES=OPDNOPDJDLEQFJGNGNHD \
HOSTID=0800278151d6 ck=35
FEATURE Gsim_framework_advance snslmgrd 2012.10 8-nov-2014 20 \
FE422B144B931144362E VENDOR_STRING=ES=GECMOCNFGJNHODJCLGQD \
HOSTID=0800278151d6 ck=43
FEATURE Gsim_framework_basic snslmgrd 2012.10 8-nov-2014 20 \
CEB24B14827619CAE27B VENDOR_STRING=ES=PBLFBILBOCEBLMDQCGGP \
HOSTID=0800278151d6 ck=20
FEATURE Gsim_snapshot snslmgrd 2012.10 10-nov-2014 20 \
1E220BB4F48C59AC39AB VENDOR_STRING=ES=MKNMEIMDBGOEJIBJDFNJ \
HOSTID=0800278151d6 ck=23
FEATURE Gsim_wave snslmgrd 2012.10 10-nov-2014 20 \
9EE2CB1404DAAFA7A895 VENDOR_STRING=ES=QKDGQLJEOKGIENDQCCEG \
HOSTID=0800278151d6 ck=35
FEATURE GuidedTraceAnalysis snslmgrd 2012.10 13-nov-2014 20 \
2E62FB5497975C136E9E VENDOR_STRING=ES=HLGFFFPDDPMFGOQECKEG \
HOSTID=0800278151d6 ck=31
FEATURE hdl2SC_mixed snslmgrd 2012.10 13-nov-2014 20 \
1EC23B24BACA54666137 VENDOR_STRING=ES=HQKKFCONDFKCJGQJEGCQ \
HOSTID=0800278151d6 ck=23
FEATURE HDL2SC_verilog snslmgrd 2012.10 17-nov-2014 20 \
EE12AB6438F458DD096B VENDOR_STRING=ES=BQJMNFPFCHMKQIQCMKDI \
HOSTID=0800278151d6 ck=41
FEATURE HDL2SC_vhdl snslmgrd 2012.10 20-nov-2014 20 \
6E921BB4D9D2C848958A VENDOR_STRING=ES=QQNGIMNQLMHHOBQLBLOM \
HOSTID=0800278151d6 ck=36
FEATURE Laker_AMS snslmgrd 2012.10 20-nov-2014 20 \
BE22FBD4D6D33C741101 VENDOR_STRING=ES=DKLFOJMEGLMBIHHOQPPH \
HOSTID=0800278151d6 ck=32
FEATURE Laker_L1 snslmgrd 2012.10 20-nov-2014 20 5E92FB64A7131E18AB56 \
VENDOR_STRING=ES=OMGHJHLLBHLLEFLQDLKQ HOSTID=0800278151d6 \
ck=43
FEATURE Laker_L2 snslmgrd 2012.10 20-nov-2014 20 1ED25B34CFEADC02A441 \
VENDOR_STRING=ES=BFNQPHMKPEEBMQMCGIIO HOSTID=0800278151d6 \
ck=38
FEATURE Laker_L3 snslmgrd 2012.10 21-nov-2014 20 5E32EB048D3EC617A083 \
VENDOR_STRING=ES=DBIDQMPBDOJPJFPIPKDI HOSTID=0800278151d6 ck=5
FEATURE Laker_T1 snslmgrd 2012.10 21-nov-2014 20 BED27B64DD1ED8ACADE5 \
VENDOR_STRING=ES=QHMQMNIBOIPPEBBNFBQG HOSTID=0800278151d6 \
ck=23
FEATURE Laker_T1_LE snslmgrd 2012.10 23-nov-2014 20 \
2EC2FBE461473A6046D4 VENDOR_STRING=ES=JBNBJJDGNMOFCPBQLLEO \
HOSTID=0800278151d6 ck=16
FEATURE Laker_Viewer snslmgrd 2012.10 26-nov-2014 20 \
8ED21BA4364A204E51EE VENDOR_STRING=ES=QQPGJDKOOQKPHFHBDNHB \
HOSTID=0800278151d6 ck=28
FEATURE Laker_iDRC snslmgrd 2012.10 27-nov-2014 20 \
7E82BB54CA096C914AB5 VENDOR_STRING=ES=EJFEEEKKEPOECDCICIMH \
HOSTID=0800278151d6 ck=23
FEATURE Laker_iLVS snslmgrd 2012.10 28-nov-2014 20 \
AED20B74E7328F820432 VENDOR_STRING=ES=NEINBEFGDQGCJDMCODDL \
HOSTID=0800278151d6 ck=0
FEATURE Reusner snslmgrd 2012.10 31-nov-2014 20 5E52EB841BD1742D3236 \
VENDOR_STRING=ES=IFPMPDGMNFHEMHMLDKHH HOSTID=0800278151d6 \
ck=14
FEATURE RtlGateCorrelation snslmgrd 2012.10 31-nov-2014 20 \
DE42BB5464B4093336C1 VENDOR_STRING=ES=FDHCBDJHJKJCLIOPIMEK \
HOSTID=0800278151d6 ck=2
FEATURE SilVE snslmgrd 2012.10 6-nov-2014 20 1E221B941CFD03ACCB08 \
VENDOR_STRING=ES=EQBIFEJDFQLNDFJHIDOK HOSTID=0800278151d6 \
ck=24
FEATURE Siloti snslmgrd 2012.10 6-nov-2014 20 5EE22B64D8596CD9F141 \
VENDOR_STRING=ES=HQCLLFHGOQHFOKEJFJQD HOSTID=0800278151d6 ck=0
FEATURE Siloti_fe snslmgrd 2012.10 6-nov-2014 20 BEB2EBD41945152B69FB \
VENDOR_STRING=ES=CILCEPHGFHONKLJBQDBM HOSTID=0800278151d6 \
ck=16
FEATURE Siloti_o2 snslmgrd 2012.10 10-nov-2014 20 \
8EF29B244141DB99424D VENDOR_STRING=ES=DCDPDFONDOEBNGKMHKMJ \
HOSTID=0800278151d6 ck=37
FEATURE SimVE snslmgrd 2012.10 10-nov-2014 20 BEA25BA4987C394D0509 \
VENDOR_STRING=ES=PDIODOEKJBJEMLNIJCIL HOSTID=0800278151d6 \
ck=22
FEATURE TLM_Synthesis snslmgrd 2012.10 10-nov-2014 20 \
6E724B04767BBFD90B59 VENDOR_STRING=ES=PGHEOHPHOMNPJBBDPLMN \
HOSTID=0800278151d6 ck=35
FEATURE TestDesignCorrelation snslmgrd 2012.10 10-nov-2014 20 \
DE02ABF4514C072A0817 VENDOR_STRING=ES=JGGHHFQKMNJNQFQMHHEL \
HOSTID=0800278151d6 ck=31
FEATURE TestVE snslmgrd 2012.10 10-nov-2014 20 9E52BB64FE2390D09634 \
VENDOR_STRING=ES=LPOLNDCMFJIMDEIGEHCQ HOSTID=0800278151d6 \
ck=21
FEATURE TimingAnalysis snslmgrd 2012.10 14-nov-2014 20 \
DE925B649D2AE5A9587E VENDOR_STRING=ES=MNFHBIOMKKPFMJGEDJMO \
HOSTID=0800278151d6 ck=20
FEATURE Verdi snslmgrd 2012.10 14-nov-2014 20 2E828B14D4411AFE618B \
VENDOR_STRING=ES=JNFHMFDNIMBCQQHMLOOF HOSTID=0800278151d6 \
ck=15
FEATURE WhatIfAnalysis snslmgrd 2012.10 14-nov-2014 20 \
5E02AB7490AD2E80E34D VENDOR_STRING=ES=FQENFJPKGDCIDPKFCPGP \
HOSTID=0800278151d6 ck=36
FEATURE hdlin snslmgrd 2012.10 15-nov-2014 20 0E52AB64F83FEF204EA7 \
VENDOR_STRING=ES=NJFGBPHDPDPJOFCOMFGM HOSTID=0800278151d6 \
ck=32
FEATURE hdlin_mixed snslmgrd 2012.10 21-nov-2014 20 \
5EB20B241F39B96E668C VENDOR_STRING=ES=JCKCMLIQLPLGFCCEGFGP \
HOSTID=0800278151d6 ck=40
FEATURE hdlin_verilog snslmgrd 2012.10 21-nov-2014 20 \
DEF2BB242109D8B0E706 VENDOR_STRING=ES=EHMQCBQPKKBDCDNIFFJO \
HOSTID=0800278151d6 ck=30
FEATURE hdlin_vhdl snslmgrd 2012.10 23-nov-2014 20 \
CEC22B346D6F32623E23 VENDOR_STRING=ES=CMKEOBJNGGBKOFNDNGKJ \
HOSTID=0800278151d6 ck=2
FEATURE nAnalyzer snslmgrd 2012.10 24-nov-2014 20 \
3E12FBB48050F8BF3677 VENDOR_STRING=ES=PPNLHJGHQOIHCCNBGFFD \
HOSTID=0800278151d6 ck=26
FEATURE nBench snslmgrd 2012.10 24-nov-2014 20 0E127B749A7D8E6C51B4 \
VENDOR_STRING=ES=NHDDGNKDHBPEQKEDJGBL HOSTID=0800278151d6 \
ck=32
FEATURE nClock snslmgrd 2012.10 24-nov-2014 20 4ED25BF4318E9E076B17 \
VENDOR_STRING=ES=HNGPQIKEINGNCHGBLPJH HOSTID=0800278151d6 \
ck=41
FEATURE nCompare snslmgrd 2012.10 25-nov-2014 20 2EF21B444CB0F54EDC80 \
VENDOR_STRING=ES=FBBKQLIQCKDGEEBQHPFP HOSTID=0800278151d6 \
ck=37
FEATURE nECO snslmgrd 2012.10 28-nov-2014 20 7E823B44CA007AE443D5 \
VENDOR_STRING=ES=OEDICJIHPIPKBCQQLIOM HOSTID=0800278151d6 \
ck=13
FEATURE nESL snslmgrd 2012.10 30-nov-2014 20 4E32ABD4B1F1FE052CEF \
VENDOR_STRING=ES=NNFHCGEHNPQNGPMHJKLK HOSTID=0800278151d6 \
ck=21
FEATURE nLint_either snslmgrd 2012.10 30-nov-2014 20 \
6EC20BA471E581C52F2F VENDOR_STRING=ES=MCCHLKBEEGDFQOPPMOJN \
HOSTID=0800278151d6 ck=40
FEATURE nLint_mixed snslmgrd 2012.10 30-nov-2014 20 \
0EB29B84478420B31F0C VENDOR_STRING=ES=GFLOQKFBOQMMJIJBMQMG \
HOSTID=0800278151d6 ck=10
FEATURE nLint_sv snslmgrd 2012.10 31-nov-2014 20 4E227B94DB0C00E351BC \
VENDOR_STRING=ES=JDCBHEBJQLFEBCFNEEJP HOSTID=0800278151d6 \
ck=35
FEATURE nLint_vhdl snslmgrd 2012.10 4-nov-2014 20 \
BEA2DB0496CC679B49F9 VENDOR_STRING=ES=BGCJENNNOMQMBFHEICHL \
HOSTID=0800278151d6 ck=25
FEATURE nMonitor snslmgrd 2012.10 4-nov-2014 20 EE92BB2462014B0C6E7B \
VENDOR_STRING=ES=OBBLNJKQNBBPIEBHIIOD HOSTID=0800278151d6 \
ck=18
FEATURE nProp snslmgrd 2012.10 6-nov-2014 20 4E429B44E876195331B5 \
VENDOR_STRING=ES=GILQIHBPFHHEDBOMCNGF HOSTID=0800278151d6 \
ck=28
FEATURE nSchema snslmgrd 2012.10 6-nov-2014 20 7EE28BE40D1757B912EC \
VENDOR_STRING=ES=HDKNHJOCOHDCNFIPBBDK HOSTID=0800278151d6 \
ck=11
FEATURE nSchemaOnly snslmgrd 2012.10 7-nov-2014 20 \
1E220B1456077F06EEF9 VENDOR_STRING=ES=FBKBIKJQFEBICNJDPHPG \
HOSTID=0800278151d6 ck=38
FEATURE nState snslmgrd 2012.10 7-nov-2014 20 7E224B649FDD5BA1D22C \
VENDOR_STRING=ES=HNBGIDBIDFKHGIDJHEIC HOSTID=0800278151d6 ck=0
FEATURE nTiming snslmgrd 2012.10 7-nov-2014 20 AEA22BF407905488A0B0 \
VENDOR_STRING=ES=IDGOGQOBMKDJDHKFQGGM HOSTID=0800278151d6 \
ck=19
FEATURE nTrace snslmgrd 2012.10 8-nov-2014 20 BE220B4477759A6F449F \
VENDOR_STRING=ES=POCEMNJDOFBKEMEOQJHI HOSTID=0800278151d6 \
ck=34
FEATURE nTree snslmgrd 2012.10 10-nov-2014 20 6EA2FB947E9A3E6E7F48 \
VENDOR_STRING=ES=FEKDBFLJFEKDGBQFDEON HOSTID=0800278151d6 \
ck=23
FEATURE nWave snslmgrd 2012.10 10-nov-2014 20 0E621B84DC897A39574F \
VENDOR_STRING=ES=DDNPIQLIICOJQHOODCOO HOSTID=0800278151d6 \
ck=20
FEATURE nlcc snslmgrd 2012.10 10-nov-2014 20 FEC22BE44E978F732C75 \
VENDOR_STRING=ES=BOGQLJQNNEIGDINIMGBL HOSTID=0800278151d6 \
ck=21
FEATURE tSchema snslmgrd 2012.10 11-nov-2014 20 6E823B84E232454E9EC5 \
VENDOR_STRING=ES=HHGNJFOKGIHLOCPOHIHG HOSTID=0800278151d6 \
ck=16
FEATURE turboSchema snslmgrd 2012.10 11-nov-2014 20 \
1ED20BF426703BA9C137 VENDOR_STRING=ES=OFKCFNKPLFKOMFJKMKJD \
HOSTID=0800278151d6 ck=14
FEATURE turboState snslmgrd 2012.10 12-nov-2014 20 \
BED2CB44C50B58F8C3A8 VENDOR_STRING=ES=GFDQDNKCPKPPEINMEKIO \
HOSTID=0800278151d6 ck=1
FEATURE turboTracer snslmgrd 2012.10 12-nov-2014 20 \
AE92BB64CFDF55A868C8 VENDOR_STRING=ES=KGBBMFNIDFNDPIFCMCBQ \
HOSTID=0800278151d6 ck=38
FEATURE turboWave snslmgrd 2012.10 12-nov-2014 20 \
8E527BB453CEB64503DB VENDOR_STRING=ES=KILFMMPBMGGBNILIBPBN \
HOSTID=0800278151d6 ck=33
请各位大侠帮忙看看我倒地哪一步错了,小弟苦恼了好几天了,不胜感激!
为何用S的工具叫verdi的license?
Verdi现在貌似被S收购了
额,没好人心帮忙回答吗?自己顶一个
好吧。自己找到错误了,是个乌龙。
我把license第二行写错了。应该写成
DAEMON snslmgrd /EDA/verdi3_201210/bin/snslmgrd
我用你的方法破解verdi,在第三步出现了问题:
3)使用python脚本licgen.py生成license.dat,
我用两种方法:
1、在win7下运行cmd然后找到licgen.py的路径,然后运行该文件,报错了,但是python语言看不懂。
2、安装了python编译器,v3.1,直接双击运行licgen.py但是界面一晃就过去了,没有生产license.dat文件
请问是怎么回事呢?
搞定了,修改了licgen.py文件:
把报错的地方都屏蔽了,更新后内容如下:
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 26 10:34:42 2012
@author: netiger74
"""
"""
For Novas_single.exe, to generate lics check if ck<100
if ck>100, change expiredate,rerun novas_single.exe
features are read from features.lst
format as
firstline: hostid version expiredate licnumbers ckmax
feature
final results are wrote in license.dat
"""
import os
#from numpy import *
sCMD = "novas_single.exe"
sLicGen = "novas_license_v6.0.txt"
exDay = "1"
exMon = "dec"
exYear = "2014"
sVer = "2013.04"
sUser = "20"
sFileOut = "license.dat"
nCKMax = 100
#try:
fFeatures = open('features.lst')
#except Exception,e:
#print 'features.lst open file error:',e
#print 'Please check it!\n'
#exit()
fLines = fFeatures.readlines()
baseLine0 = fLines[0]
head = baseLine0.split()
for i,item in enumerate(head):
if i==0:
sHostid = head[i]
elif i==1:
sVer= head[i]
elif i==2:
sDate= head[i]
sDate = sDate.replace('-',' ')
datelst = sDate.split()
#exDay = datelst[0]
exMon = datelst[1]
exYear = datelst[2]
elif i==3:
sUser= head[i]
elif i==4:
nCKMax = int(head[i])
else:
break
#if sHostid.__len__()<>12:
#print 'Invalid HostID:',sHostid
#print 'please check feature.lst'
#fFeatures.close()
#exit()
features = fLines[1:]
#try:
foutput = open(sFileOut,'w')
#except Exception,e:
#print 'license.dat open file error:',e
#exit()
for feature in features:
goodlic = 0
while not goodlic:
fullcmd = sCMD+' -V'+sVer+' -U'+sUser+' -E'+exDay+'-'+exMon+'-'+exYear+ ' -M'+sHostid+' -F'+feature
os.system(fullcmd)
#try:
flicgen = open(sLicGen)
#except Exception,e:
#print 'License file open fail'
#exit()
tlines = flicgen.readlines()
lck = tlines[3] if tlines[3].find('ck=') > 0 else tlines[4]
lck = lck.strip('\t\n')
listck = lck.split('=')
ckval = int(listck[-1])
goodlic = 1 if ckval < nCKMax else 0
if goodlic == 1:
foutput.writelines(tlines[2:])
else:
exDay = str(int(exDay)+1)
#if int(exDay) >31:
#print feature," licgen failed"
#goodlic=1
#exDay='1'
flicgen.close()
#flicgen.close()
fFeatures.close()
foutput.close()
exit()
我在生成的license.dat文件首行增加了:
SERVER SUSE-212 xxxx 27009(xxxx处一定要是eth0的mac地址)
VENDOR snslmgrd /usr/program_files/verdi201304/bin/snslmgrd
然后激活license:
/usr/license/linux/linux/bin/lmgrd -C /usr/program_files/verdi201304/license/license.dat -l /usr/program_files/verdi201304/license/log.log
环境变量设置:
export PATH=/usr/program_files/verdi201304/binPATH
export LM_LICENSE_FILE=/usr/program_files/verdi201304/license/license.datLM_LICENSE_FILE
输入verdi就可以使用了
免责声明:此方法仅作个人交流用,不做商业用途。
哈哈,最后全都是自己搞定了呀。
额,来晚了。
那个python的脚本在3.x以上版本中执行会报错,在那个帖子的21楼,已有好心人给出了支持3.x环境的脚本。