EMThink

한국 ARM / Keil 공식 대리점

  • Arm
    • 소프트웨어
      • Arm Development Studio
      • DS-5
        • DS-5 Professional (단종)
        • DS-5 Ultimate
    • 디버그 하드웨어
      • DSTREAM-ST
      • DSTREAM-PT
      • ULINK Families
        • ULINKpro
        • ULINKproD
        • ULINKplus
        • ULINK2
    • 보드
      • Versatile Express
        • Juno Board
        • LogicTile
        • MPS
  • KEIL
    • 소프트웨어
      • MDK-ARM Microcontroller Development Kit
        • Professional
        • Plus
        • Essential
      • PK51 Professional Developer’s Kit
      • PK166 Professional Developer’s Kit
    • 디버그 하드웨어
      • ULINK Families
        • ULINKpro
        • ULINKproD
        • ULINKplus
        • ULINK2
    • 보드
  • 교육용 제품
  • 교육
    • Cortex-M 실습 과정
  • 공지사항
  • 고객지원
    • 잦은질문
    • 문서
    • 다운로드
    • 문의하기
  • 회사소개
    • 연락처 안내 / 오시는 길
  • 로그인
You are here: Home / Document / Floating 라이선스 사용량을 측정할 수 있는 방법

Floating 라이선스 사용량을 측정할 수 있는 방법

2013-03-19 By emthink007 Leave a Comment

목차

  • 1 lmstatparser
    • 1.1 lmutil lmstat -a 옵션의 결과 예
  • 2 Installation
    • 2.1 Microsoft Excel
    • 2.2 Perl
    • 2.3 lmstatparser
  • 3 사용법
  • 4 사용 예
  • 5 분석
    • 5.1 csv 파일 생성
    • 5.2 그래프로 사용량 분석 하기

lmstatparser

lmstatparser는 ARM사에서 제공하는 간단한 perl 기반의 Floating 라이선스 분석 script 입니다. lmutil의 현재 사용량 분석 방법인 lmutil lmstat -a 옵션을 사용자가 설정한 시간 마다 주기적으로 실행하여 그 값을 로그 파일로 저장한 다음, 로그파일을 excel의 그래프 차트로 분석하는 방식입니다. 꼭 서버에서 실행 할 필요가 없으며 서버와 연결된 어떤 클라이언트 PC에서도Perl만 설치되어 있으면 로그 수집이 가능하고 Excel이 설치된 PC에서 사용량 확인이 가능합니다.

lmutil lmstat -a 옵션의 결과 예

c:\lmstatparser>lmutil lmstat -a
 lmutil - Copyright (c) 1989-2006 Macrovision Europe Ltd. and/or Macrovision Corp
 oration. All Rights Reserved.
 Flexible License Manager status on Wed 11/5/2008 11:02
 [Detecting lmgrd processes...]
 License server status: 27000@xxxxxx
 License file(s) on Jackurine: C:\flexlm\license.dat:
 xxxxxxx: license server UP (MASTER) v10.8
 Vendor daemon status (on xxxxxx):
 armlmd: UP v10.8
 Feature usage info:
 Users of compiler_pro_pack: (Total of 1 license issued; Total of 0 licenses in use)
 Users of fromelf: (Total of 1 license issued; Total of 0 licenses in use)
 Users of armasm: (Total of 1 license issued; Total of 0 licenses in use)
 Users of armlink: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvd_arm: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvd_ide: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvd_rtos: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvd_trace: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvd_multi: (Total of 1 license issued; Total of 0 licenses in use)
 Users of armulate: (Total of 1 license issued; Total of 0 licenses in use)
 Users of ISSM_ARM_Cortex-M3: (Total of 1 license issued; Total of 0 licenses in use)
 Users of ISSM_ARM_Pool: (Total of 1 license issued; Total of 0 licenses in us)
 Users of axd: (Total of 1 license issued; Total of 0 licenses in use)
 Users of trace: (Total of 1 license issued; Total of 0 licenses in use)
 Users of armsd: (Total of 1 license issued; Total of 0 licenses in use)
 Users of codewarrior: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvp_backend: (Total of 1 license issued; Total of 0 licenses in use)
 Users of rvp_gui: (Total of 1 license issued; Total of 0 licenses in use)
 Users of SG_ARM1176_CT: (Total of 1 license issued; Total of 0 licenses in use)
 Users of SG_ARM1136_CT: (Total of 1 license issued; Total of 0 licenses in use)
 Users of SG_ARM926_CT: (Total of 1 license issued; Total of 0 licenses in use
 Users of SG_ARM_Cortex-A8_CT: (Total of 1 license issued; Total of 0 licensesin use)
 Users of compiler: (Total of 1 license issued; Total of 0 licenses in use)
 Users of neon_compiler: (Total of 1 license issued; Total of 0 licenses in use)

위의 각 컴포넌트의 사용량 별로 데이터를 뽑아 볼 수 있습니다.

Installation

Microsoft Excel

MS Office에 기본 탑재 되어 있습니다. Macro 기능의 보안 등급을 낮추어야 동작 합니다. 도구 > 매크로 > 보안 수준 > 보통 또는 낮음으로 설정 합니다.

Perl

윈도우의 경우Perl이 설치 되어 있어야 합니다.

아래 링크에서 다운로드 가능합니다.

http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca

lmstatparser

다운로드 (예제 스크립트)

다운로드 (로그파일 parser)

사용법

윈도우 커맨드 창을 연 다음 다음과 같이 명령합니다.

perl lmstatparse.pl <arguments>

arguments는 다음과 같은 옵션을 넣을 수 있습니다.

--interval <interval>

The amount of time in seconds the script should wait between “lmutil lmstat” calls. More accurate results will be obtained if a smaller time interval is used, but the cpu usage will be impacted. Although the lowest possible interval the user can select is one second, the server may have trouble returning a value from ‘lmutil lmstat’ within this time. The default is 10 seconds.

--lowdetail | --highdetail

This represents how much information is recorded in the final output files. Low detail will give only very limited output which will tell the user the total number of licenses available on a server and how many seats are taken. High detail on the other hand can provide information about different versions of the tools using licenses and which version license they are using. The default is low detail.

 

-f <features>

This argument takes the form of a list of features to be monitored separated by commas (,). ALL can be given to specify all features installed on the license server. Unless it is necessary to select ‘ALL’ this is unadvisable as this is the most cpu intensive option. If only one feature is specified then “lmutil lmstat -f <feature>” is called instead of “lmutil lmstat -a” which will also boost performance. The default is to only try to monitor the feature “compiler”.

-c <port@host>

This argument lets you expicitly specify a server to run the script against. If this is not specified then the script will first look in the LM_LICENSE_FILE enviroment variable and lastly in the ARMLMD_LICENSE_FILE environment variable.

-p <path>

This argument lets you specify the path for lmutil. If this isn’t given then the script will attempt to use the default lmutil path from the system.

사용 예

아래 몇 가지 옵션 사용의 예가 있습니다.

lmstatparse.pl --interval 30 --lowdetail -f all이 옵션은 30초에 한번씩 모든 컴포넌트의 라이센스의 사용량을 최소한의 내용으로 로그파일을 수집합니다.

lmstatparse.pl --interval 60 --highdetail -f compiler,armasm이 옵션은 매 분마다 한번씩 컴파일러와 어셈블러의 라이센스 사용량을 최대한의 자세한 내용으로 로그파일을 수집합니다.

lmstatparse.pl --interval 1 --highdetail -f all이 옵션은 매 초에 한번씩 모든 컴포넌트의 라이선스 사용량을 최대한의 자세한 내용으로 로그파일을 수집합니다.

lmstatparse.pl --interval 300 --highdetail -f compiler이 옵션은 5분에 한번씩 모든 컴포넌트의 라이선스 사용량을 최대한의 자세한 내용으로 로그파일을 수집합니다.

분석

csv 파일 생성

parsed2csv.pl을 이용해서 excel에서 불러 올수 있는 형태의 csv 파일을 생성합니다. 예를 들어 compiler의 로그 파일인 compiler.log가 있고 이를 csv 형태의 파일로 생성하고자 한다면 다음과 같이 로그파일있는 디렉토리로 parsed2csv.pl 을 복사합니다. 그런다음 아래와 같이 명령합니다.

perl parsed2csv.pl -f compiler

잠시 후에 동 디렉토리에 compiler.csv 파일이 자동 생성됩니다.

그래프로 사용량 분석 하기

lmstatgraph.xlt 파일을 excel을 이용해서 엽니다.

  1. Select File을 클릭해서 전에 생성한 compiler.csv 파일을 선택합니다.
  2. Graph CSV File을 클릭해서 그래프를 열람합니다.

lmstatgraph

Filed Under: Document, Subscribed Tagged With: floating, lmstatparser, 사용량 측정

태그

64-bit arm armds ARMv8 atc board brochure CodeSourcery CodeWarrior compiler cortex-m cortex-m3 debug-unit debugger driver ds-5 dstream emthink evaluation FLEXlm floating JLINK jtag Keil library license lmstatparser Make MDK-ARM nodelocked patch RDI rvds single-user software ST-LINK ulink Update util uv4 uVision versatile 교육 사용량 측정 신제품

댓글 남기기 응답 취소

죄송합니다,로그인을 해야 댓글을 남길 수 있습니다.

로그인

  • Register
  • Lost Password

이메일 구독

이엠씽크 홈페이지를 구독해서 이메일로 새글의 알림을 받으세요

Copyright © 2021 · 이엠씽크 · Log in