Sponsored Content
Operating Systems AIX Need a list of top 10 CPU using processes (also top 10 memory hogs, separately) Post 302349981 by vbe on Wednesday 2nd of September 2009 12:35:30 PM
Old 09-02-2009
Code:
on4:/home/vbe $ oslevel;UNIX95=1 /usr/bin/ps -e -o pcpu,args | /bin/sort -u -r | sed -e 's/\.[0-9][0-9]/&\%/g>
5.3.0.0
  2.3 expres63 /tmp/xsauthn /tmp/xsauthz POFA1 25 28 29 32 648019971 148897804 
  0.1 PatrolAgent 
  0.0 xsauthz -s /tmp/xsauthz 
  0.0 xsauthn -s /tmp/xsauthn 
  0.0 xsagent 9457 /opt/ofa/oes634/olap/log/xsagent.log 
  0.0 sendmail: accepting connections 
  0.0 rlogind 
  0.0 p_ctmat 
  0.0 p_ctmag 
  0.0 ds_listener -port=50005 -hosts= -period=3 -interval=1440 -log=/opt/patrol/dsclient/log/dslistener.log -start



---------- Post updated at 18:26 ---------- Previous update was at 18:25 ----------

works also for HPUX...

---------- Post updated at 18:32 ---------- Previous update was at 18:26 ----------

Code:
on4:/home/vbe $ UNIX95=1 /usr/bin/ps -e -o vsz,args | /bin/sort -u -r | sed -n 2,11p
844780 expres63 /tmp/xsauthn /tmp/xsauthz POFA1 25 28 29 32 648019971 148897804 
16080 /usr/tivoli/tsm/client/ba/bin/dsmc sched 
15164 /usr/sbin/rsct/bin/IBM.CSMAgentRMd 
110156 /usr/bin/xmwlm -L 
 7176 bgscollect -I noInstance -B /opt/patrol/Patrol3.5/AIX5.3.0.0-64/best1/7.3.00 
 2964 /opt/patrol/Patrol3.5/AIX5.3.0.0-64/best1/7.3.00/bgs/bin/dcm -f /opt/patrol/Patrol3.5/AIX5.3-64/log/patrol.FIFO-morgon04-3181
 2948 /opt/OmniVision/bin/omv_bdc -OW -D /opt/OmniVision/data 
 2636 /usr/sbin/rsct/bin/rmcd -a IBM.LPCommands -r 
 2552 /usr/sbin/nmon_aix53 -A -R -F /tmp/nmon_grapher.data.1004034 -c 49 -s 300 
 2340 /opt/ofa/oes634/olap/bin/xsdaemon



---------- Post updated at 18:35 ---------- Previous update was at 18:32 ----------

but Im no AIX specialist and waiting for my boss to send me follow some courses such as AW18FR...(and after AU73FR... I can always dream...)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How Can I Have Top Display The Top 20 Processes??

how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number. top -n 20 i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Advanced & Expert Users

top %CPU.

I am using the Red Hat Enterprise Linux AS release 3 (Taroon), 2.4.21-4.EL. When I see the output of the command 'top'. I am getting the following ************************************************************************************ 2 processes: 227 sleeping, 5 running, 0 zombie, 0 stopped... (3 Replies)
Discussion started by: praveen_b744
3 Replies

3. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

4. UNIX for Dummies Questions & Answers

How To Scroll Processes In top?

I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies

5. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

6. Shell Programming and Scripting

Warning in Top 10 cpu consuming processes

I m using following command to find top 10 cpu consuming processes. However whenever i execute the command i get following warning. What can be done to avoid it? # ps -auxf | sort -nr -k 3 | head -10 Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ root ... (6 Replies)
Discussion started by: pinga123
6 Replies

7. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

Hi all, Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands? What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies

8. Shell Programming and Scripting

Print 10 most CPU-intensive processes (wo/ top)

ps -eo pid,comm,%cpu lists all processes (in increasing PID number). How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise. I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Discussion started by: courteous
5 Replies

9. Shell Programming and Scripting

Discrepancy in finding the top memory consuming processes

When I run 'top' command,I see the following Memory: 32G real, 12G free, 96G swap free Though it shows as 12G free,I am not able to account for processes that consume the rest 20G. In my understanding some process should be consuming atleast 15-16 G but I am not able to find them. Is... (1 Reply)
Discussion started by: prasperl
1 Replies

10. Shell Programming and Scripting

Need a script to see top processes for every hour

Hi All, I am new to Scripting , please give me guidance to write the script to see top processes on the Linux operating system. I executed this script on my Virtual Server(Linux) DATE=`date +%Y%m%d%H%M%S` HOME=/home/xmp/testing/xmp_report RADIUS_PID=`xms -xmp sh pr | grep... (2 Replies)
Discussion started by: madala
2 Replies
vmware_selinux(8)					       SELinux Policy vmware						 vmware_selinux(8)

NAME
vmware_selinux - Security Enhanced Linux Policy for the vmware processes DESCRIPTION
Security-Enhanced Linux secures the vmware processes via flexible mandatory access control. The vmware processes execute with the vmware_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. For example: ps -eZ | grep vmware_t ENTRYPOINTS
The vmware_t SELinux type can be entered via the vmware_exec_t file type. The default entrypoint paths for the vmware_t domain are the following: /opt/vmware/(workstation|player)/bin/vmware, /opt/vmware/(workstation|player)/bin/vmware-ping, /opt/vmware/(workstation|player)/bin/vmware- wizard, /usr/bin/vmware, /usr/bin/vmware-ping, /usr/bin/vmware-wizard, /usr/sbin/vmware-serverd, /usr/lib/vmware/bin/vmplayer, /usr/lib/vmware/bin/vmware-ui, /usr/lib/vmware/bin/vmware-mks PROCESS TYPES
SELinux defines process types (domains) for each process running on the system You can see the context of a process using the -Z option to ps Policy governs the access confined processes have to files. SELinux vmware policy is very flexible allowing users to setup their vmware processes in as secure a method as possible. The following process types are defined for vmware: vmware_t, vmware_host_t Note: semanage permissive -a vmware_t can be used to make the process type vmware_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. BOOLEANS
SELinux policy is customizable based on least access required. vmware policy is extremely flexible and has several booleans that allow you to manipulate the policy and run vmware with the tightest access possible. If you want to deny any process from ptracing or debugging any other processes, you must turn on the deny_ptrace boolean. Enabled by default. setsebool -P deny_ptrace 1 If you want to allow all domains to use other domains file descriptors, you must turn on the domain_fd_use boolean. Enabled by default. setsebool -P domain_fd_use 1 If you want to allow all domains to have the kernel load modules, you must turn on the domain_kernel_load_modules boolean. Disabled by default. setsebool -P domain_kernel_load_modules 1 If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. setsebool -P fips_mode 1 If you want to enable reading of urandom for all domains, you must turn on the global_ssp boolean. Disabled by default. setsebool -P global_ssp 1 If you want to allow confined applications to use nscd shared memory, you must turn on the nscd_use_shm boolean. Disabled by default. setsebool -P nscd_use_shm 1 If you want to allow regular users direct dri device access, you must turn on the selinuxuser_direct_dri_enabled boolean. Enabled by default. setsebool -P selinuxuser_direct_dri_enabled 1 If you want to support NFS home directories, you must turn on the use_nfs_home_dirs boolean. Disabled by default. setsebool -P use_nfs_home_dirs 1 If you want to support SAMBA home directories, you must turn on the use_samba_home_dirs boolean. Disabled by default. setsebool -P use_samba_home_dirs 1 If you want to allows clients to write to the X server shared memory segments, you must turn on the xserver_clients_write_xshm boolean. Disabled by default. setsebool -P xserver_clients_write_xshm 1 If you want to support X userspace object manager, you must turn on the xserver_object_manager boolean. Enabled by default. setsebool -P xserver_object_manager 1 MANAGED FILES
The SELinux process type vmware_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. cifs_t nfs_t usbfs_t user_fonts_cache_t /root/.fontconfig(/.*)? /root/.fonts/auto(/.*)? /root/.fonts.cache-.* /home/[^/]*/.fontconfig(/.*)? /home/[^/]*/.fonts/auto(/.*)? /home/[^/]*/.fonts.cache-.* vmware_conf_t /home/[^/]*/.vmware[^/]*/.*.cfg vmware_file_t /home/[^/]*/vmware(/.*)? /home/[^/]*/.vmware(/.*)? vmware_pid_t vmware_tmp_t vmware_tmpfs_t xserver_tmpfs_t FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type. You can see the context of a file using the -Z option to ls Policy governs the access confined processes have to these files. SELinux vmware policy is very flexible allowing users to setup their vmware processes in as secure a method as possible. STANDARD FILE CONTEXT SELinux defines the file context types for the vmware, if you wanted to store files with these types in a diffent paths, you need to exe- cute the semanage command to sepecify alternate labeling and then use restorecon to put the labels on disk. semanage fcontext -a -t vmware_conf_t '/srv/vmware/content(/.*)?' restorecon -R -v /srv/myvmware_content Note: SELinux often uses regular expressions to specify labels that match multiple files. The following file types are defined for vmware: vmware_conf_t - Set files with the vmware_conf_t type, if you want to treat the files as vmware configuration data, usually stored under the /etc direc- tory. vmware_exec_t - Set files with the vmware_exec_t type, if you want to transition an executable to the vmware_t domain. Paths: /opt/vmware/(workstation|player)/bin/vmware, /opt/vmware/(workstation|player)/bin/vmware-ping, /opt/vmware/(worksta- tion|player)/bin/vmware-wizard, /usr/bin/vmware, /usr/bin/vmware-ping, /usr/bin/vmware-wizard, /usr/sbin/vmware-serverd, /usr/lib/vmware/bin/vmplayer, /usr/lib/vmware/bin/vmware-ui, /usr/lib/vmware/bin/vmware-mks vmware_file_t - Set files with the vmware_file_t type, if you want to treat the files as vmware content. Paths: /home/[^/]*/vmware(/.*)?, /home/[^/]*/.vmware(/.*)? vmware_host_exec_t - Set files with the vmware_host_exec_t type, if you want to transition an executable to the vmware_host_t domain. Paths: /opt/vmware/(workstation|player)/bin/vmnet-natd, /opt/vmware/(workstation|player)/bin/vmnet-dhcpd, /opt/vmware/(worksta- tion|player)/bin/vmware-nmbd, /opt/vmware/(workstation|player)/bin/vmware-smbd, /opt/vmware/(workstation|player)/bin/vmnet-bridge, /opt/vmware/(workstation|player)/bin/vmnet-netifup, /opt/vmware/(workstation|player)/bin/vmnet-sniffer, /opt/vmware/(worksta- tion|player)/bin/vmware-smbpasswd, /opt/vmware/(workstation|player)/bin/vmware-smbpasswd.bin, /usr/sbin/vmware-guest.*, /usr/lib/vmware-tools/sbin32/vmware.*, /usr/lib/vmware-tools/sbin64/vmware.*, /usr/bin/vmnet-natd, /usr/bin/vmware-vmx, /usr/bin/vmnet-dhcpd, /usr/bin/vmware-nmbd, /usr/bin/vmware-smbd, /usr/bin/vmnet-bridge, /usr/bin/vmnet-netifup, /usr/bin/vmnet-snif- fer, /usr/bin/vmware-network, /usr/bin/vmware-smbpasswd, /usr/bin/vmware-smbpasswd.bin, /usr/lib/vmware/bin/vmware-vmx vmware_host_pid_t - Set files with the vmware_host_pid_t type, if you want to store the vmware host files under the /run directory. vmware_host_tmp_t - Set files with the vmware_host_tmp_t type, if you want to store vmware host temporary files in the /tmp directories. vmware_log_t - Set files with the vmware_log_t type, if you want to treat the data as vmware log data, usually stored under the /var/log directory. Paths: /var/log/vmware.*, /var/log/vnetlib.* vmware_pid_t - Set files with the vmware_pid_t type, if you want to store the vmware files under the /run directory. vmware_sys_conf_t - Set files with the vmware_sys_conf_t type, if you want to treat the files as vmware sys configuration data, usually stored under the /etc directory. Paths: /etc/vmware.*(/.*)?, /usr/lib/vmware/config vmware_tmp_t - Set files with the vmware_tmp_t type, if you want to store vmware temporary files in the /tmp directories. vmware_tmpfs_t - Set files with the vmware_tmpfs_t type, if you want to store vmware files on a tmpfs file system. Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. COMMANDS
semanage fcontext can also be used to manipulate default file context mappings. semanage permissive can also be used to manipulate whether or not a process type is permissive. semanage module can also be used to enable/disable/install/remove policy modules. semanage boolean can also be used to manipulate the booleans system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was auto-generated using sepolicy manpage . SEE ALSO
selinux(8), vmware(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , setsebool(8), vmware_host_selinux(8), vmware_host_selinux(8) vmware 14-06-10 vmware_selinux(8)
All times are GMT -4. The time now is 04:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy