Need help on lpar2rrd on aix 7.3

i have installed the below rpm package on aix 7.3 server

lpar2rrd-agent-8.10-0.ppc

i have run the script which i am attaching


BUT WHEN WE TRY TO SEE IF THE lpar2rrd RUNNING OR NOT IT SHOWS IT IS NOT RUNNING

ps -ef | grep -i lpar2rrd

Comments

  • please note that the same package and script run on the other servers ,,so i dont see issue with the script or package

  • su - lpar2rrd

    crontab -l

    date

    ls -ltr /var/tmp

    tail /var/tmp/lpar*err

  • su - lpar2rrd

    [YOU HAVE NEW MAIL]

    $ crontab -l

    # DO NOT EDIT THIS FILE - edit the master and reinstall.

    # (/tmp/crontab.XXXXE9OJiH installed on Tue Jan 23 11:44:42 2018)

    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)

    # DO NOT EDIT THIS FILE - edit the master and reinstall.

    # (/tmp/crontab.XXXXKimS6c installed on Tue Jan 9 14:02:22 2018)

    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)

    ### LPAR2RRD agent start ###

    * * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl 10.254.9.210 > /var/tmp/lpar2rrd-agent.out 2>&1


    $ date

    Tue Jun 3 08:26:12 UTC 2025

    $ ls -ltr /var/tmp

    total 224

    -rw-r--r--  1 lpar2rrd staff       0 Jun 1 13:19 lpar2rrd-agent-pgs.cfg

    -rw-r--r--  1 lpar2rrd staff       0 Jun 1 13:19 lpar2rrd-agent-10.254.9.210-lpar2rrd.err

    -rw-r--r--  1 root   system      0 Jun 1 15:54 lpar2rrd-agent-10.254.9.210-root.stamp-trimlogs

    -rw-r--r--  1 root   system      0 Jun 1 15:54 lpar2rrd-agent-10.254.9.210-root.err

    -rw-r--r--  1 root   system      66 Jun 1 15:55 lpar2rrd-agent-10.254.9.210-root-diskid.stamp

    -rw-r-----  1 root   system     1371 Jun 2 08:00 snmpdv3.log

    -rw-r--r--  1 root   system     633 Jun 2 08:01 snmpmibd.log

    -rw-r--r--  1 root   system     402 Jun 2 08:01 hostmibd.log

    -rw-r--r--  1 root   system     300 Jun 2 08:01 aixmibd.log

    -rw-r--r--  1 root   system     1397 Jun 2 11:23 lpar2rrd-agent.out

    -rw-r--r--  1 root   system      1 Jun 2 11:23 lpar2rrd-agent-10.254.9.210-root-wlmstat-13500674.txt

    -rwxrwxrwx  1 in074897 ibmgldap    230 Jun 2 12:14 ldapmkhomedir.log

    -rw-r--r--  1 root   system      0 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root-multipath.stamp

    -rw-r--r--  1 root   system      0 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root-errlog.stamp

    -rw-r--r--  1 root   system      34 Jun 2 14:34 lpar2rrd-agent-aixerrpt-10.254.9.210-root.stat

    -rw-r--r--  1 root   system     465 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root-fs.txt

    -rw-r--r--  1 root   system      0 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root.stamp

    -rw-r--r--  1 root   system      0 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root.txt-tmp

    -rw-r--r--  1 root   system    45126 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root.txtorig

    -rw-r--r--  1 root   system      10 Jun 2 14:34 lpar2rrd-agent-10.254.9.210-root.stamp-send

    -rw-r--r--  1 lpar2rrd staff       0 Jun 2 14:44 lpar2rrd-agent-10.254.9.210-lpar2rrd.stamp-trimlogs

    -rw-r--r--  1 lpar2rrd staff      66 Jun 2 14:45 lpar2rrd-agent-10.254.9.210-lpar2rrd-diskid.stamp

    -rw-r--r--  1 lpar2rrd staff       0 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd-multipath.stamp

    -rw-r--r--  1 lpar2rrd staff       0 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd-errlog.stamp

    -rw-r--r--  1 lpar2rrd staff      34 Jun 3 07:37 lpar2rrd-agent-aixerrpt-10.254.9.210-lpar2rrd.stat

    -rw-r--r--  1 lpar2rrd staff      465 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd-fs.txt

    -rw-r--r--  1 lpar2rrd staff       0 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd.stamp

    -rw-r--r--  1 lpar2rrd staff     2479 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd.txtorig

    -rw-r--r--  1 lpar2rrd staff       0 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd.txt-tmp

    -rw-r--r--  1 lpar2rrd staff      10 Jun 3 07:37 lpar2rrd-agent-10.254.9.210-lpar2rrd.stamp-send

    $ tail /var/tmp/lpar*err

    tail: Can only process one file at a time.

    Usage: tail [-f] [-c number|-n number|-m number|-b number|-k number] [file]

    Usage: tail [-r] [-n number] [file]

    Usage: tail [+|-[number]][l|b|c|k|m][f] [file]

  • under root:


    rm /var/tmp/lpar2rrd-agent.out


    Then it will run, problem is you run it under root some time (test??) and output file is same, lpar2rrd user cannot write to that file, so exiting on its start

  • [PROD uedcb106:root-/home/root-] cd /var/tmp

    [PROD uedcb106:root-/var/tmp-] ls -ltr | grep -i lpar2rrd-agent.out

    -rw-r--r--  1 root   system     1397 Jun 2 11:23 lpar2rrd-agent.out

    [PROD uedcb106:root-/var/tmp-] rm lpar2rrd-agent.out

    [PROD uedcb106:root-/var/tmp-] ps -ef | grep -i lpar2rrd

    lpar2rrd 7209278 13828496  0 08:51:00   - 0:00 vmstat -I -W -t 60 1

    lpar2rrd 11600224 13828496  0         0:00 <defunct>

    lpar2rrd 13828496 7667972  0 08:51:00   - 0:00 /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl 10.254.9.210

      root 14287108 19005824  0 08:51:38 pts/0 0:00 grep -i lpar2rrd

    lpar2rrd 14352848 18874640  0 08:51:00   - 0:00 iostat -Dsal 60 1

    lpar2rrd 18874640 13828496  0 08:51:00   - 0:00 /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl 10.254.9.210


    This is perfect you are genius i was scratching my head almost for 3 days..i would reqeust you to keep this request open jsut to make sure data gets collected ,,just to make sure i dont get any suprises

Sign In or Register to comment.