• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. RE: SKILL function to output the result from lmstat com...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 142
  • Views 14585
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RE: SKILL function to output the result from lmstat command

rajoli
rajoli over 6 years ago

Hi Andrew,

I am also not able to run lmstat command using ipcBeginProcess. 
So, please help me..

I have tried following way. please any one tell me what's wrong in my code.

procedure(Fun()
let((cid data)
cid = ipcBeginProcess("lmstat -a -c 5280@license-01")
ipcWait(cid)
data = ipcReadProcess(cid)
println(data)
);let
);proc
function Fun redefined
Fun
Fun
"sh: /cad/cadence/ICADV12.30.721/tools/bin/lmstat: /lib/ld-lsb.so.3: bad ELF interpreter: No such file or directory\n"
nil
Regards,

Rajoli

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Hi Rajoli,

    I split this from the original discussion because the Forum Guidelines ask you not to post on the end of old threads (this is a different issue from the earlier thread, plus it's an 8 year old thread).

    I'm guessing that if  you try to run "lmstat" from the command line you get a similar error. It looks from the message that a 32-bit shared library is missing on your machine. The lmstat executable is a 32-bit executable and maybe you only have the 64-bit libraries installed (in /lib64). Perhaps you can check if /lib/ld-lsb.so.3 exists? 

    On my (RHEL6.5) machine, this comes from this RPM:

    UNIX> rpm -q -f /lib/ld-lsb.so.3
    redhat-lsb-core-4.0-7.el6.i686

    The similar 64-bit RPM is here, but that won't get used by "lmstat" 
    UNIX> rpm -q -f /lib64/ld-lsb-x86-64.so.3
    redhat-lsb-core-4.0-7.el6.x86_64

    UNIX> which lmstat
    /export/home/apps/IC617_isr/tools/bin/lmstat
    UNIX> file /export/home/apps/IC617_isr/tools/bin/lmstat
    /export/home/apps/IC617_isr/tools/bin/lmstat: symbolic link to `lmutil'
    UNIX> file /export/home/apps/IC617_isr/tools/bin/lmutil
    /export/home/apps/IC617_isr/tools/bin/lmutil: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
    UNIX> ldd /export/home/apps/IC617_isr/tools/bin/lmstat
    linux-gate.so.1 => (0x00d8d000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00b4e000)
    libm.so.6 => /lib/libm.so.6 (0x00b1b000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b6b000)
    libc.so.6 => /lib/libc.so.6 (0x00982000)
    libdl.so.2 => /lib/libdl.so.2 (0x00b47000)
    /lib/ld-lsb.so.3 => /lib/ld-linux.so.2 (0x00960000)

    So you probably need to install the missing package.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • rajoli
    rajoli over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    I tried same way but now i got different error.

    Error:

    "lmstat - Copyright (c) 1989-2018 Flexera. All Rights Reserved.\nFlexible License Manager status on Tue 12/4/2018 20:42\n\nLicense server status: 5280@license-01\n License file(s) on license-01: /u/site/license/cadence_vm.dat:\n\nlicense-01

    Regards,

    Rajoli

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to rajoli

    Hi Rajoli,

    That's not an error. You're only reading the first string that comes back - there's no guarantee that there will only be a single string coming back from the child process. If you do this, you should get everything:

    procedure(Fun()
    let((cid data)
      cid = ipcBeginProcess("lmstat -a -c 5280@license-01")
      ipcWait(cid)
      data = ipcReadProcess(cid)
      printf("%s" data)
      while(data
        data = ipcReadProcess(cid 10)
        when(data
          printf("%s" data)
        )
      )
    );let
    );proc

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to rajoli

    Hi Rajoli,

    That's not an error. You're only reading the first string that comes back - there's no guarantee that there will only be a single string coming back from the child process. If you do this, you should get everything:

    procedure(Fun()
    let((cid data)
      cid = ipcBeginProcess("lmstat -a -c 5280@license-01")
      ipcWait(cid)
      data = ipcReadProcess(cid)
      printf("%s" data)
      while(data
        data = ipcReadProcess(cid 10)
        when(data
          printf("%s" data)
        )
      )
    );let
    );proc

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information