AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  lsdev returns error code 65280

    Posted Mon December 13, 2010 11:01 AM

    Originally posted by: Santosh1202


    Sometimes I am getting error code 65280 while executing lsdev -Cc processor command in perl script. If I execute the same command through CLI, it is working fine.
    I want to get the number of physical processors available on the machine. I would appreciate your help if you suggest any alternate command.
    #AIX-Forum


  • 2.  Re: lsdev returns error code 65280

    Posted Tue December 14, 2010 12:15 AM

    Originally posted by: drajarsh


    Try

    1. prtconf | grep proc
    • Rajarshi

    #AIX-Forum


  • 3.  Re: lsdev returns error code 65280

    Posted Tue December 14, 2010 01:10 AM

    Originally posted by: Santosh1202


    Thanks for your response. but, prtconf takes too long to respond.

    One more thing even 'lscfg -vp | grep proc' also returns 65280 few times. From AIX experts I would like to know any reason behind this error code.
    #AIX-Forum


  • 4.  Re: lsdev returns error code 65280

    Posted Tue December 14, 2010 03:56 AM

    Originally posted by: SystemAdmin


    since it works fine from the shell you better ask the perl experts
    #AIX-Forum


  • 5.  Re: lsdev returns error code 65280

    Posted Tue December 14, 2010 07:16 AM

    Originally posted by: Santosh1202


    There is no issue in perl code. This error occurs only when command getting executed from a daemon. lsdev -P works fine but not lsdev -C. Does lsdev -C/lscfg have any association/relation with terminal(tty).(Just guessing, because frustrated with this issue)
    #AIX-Forum


  • 6.  Re: lsdev returns error code 65280

    Posted Tue December 14, 2010 06:24 PM

    Originally posted by: shargus


    Other commands you can try:

    lparstat (also works on stand-alone servers)
    mpstat
    smtctl
    vmstat
    iostat
    #AIX-Forum