Thanks Todd, it worked perfectly. Taking advantage of the subject, do you know any similar command in AIX (would it be topas?). I can't run it in the background.
Em seg., 17 de jul. de 2023 às 23:53, Todd Lewis <[email protected]> escreveu: > Output width. Your output is being truncated at the default 80 columns. > Add, say "-w 180" to your top parameter list. > (Also, top doesn't require --become; any id can run top.) > > Cheers, > -- > Todd > > On 7/15/23 8:40 AM, Luiz Gustavo wrote: > > Hello, > > ansible <hostname> \ > -i <inventory_file> \ > -m shell \ > -a "top -b -n 1 -d 1" \ > -K -b --become-user=root > > Look at pid 4 where the result is "rcu_par*+*" and should be > "rcu_par_gp". Why?: > > # ansible output: > > <hostname> | CHANGED | rc=0 >> > ... <<omit>> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ > COMMAND > 1 root 20 0 245612 11128 8084 S 0.0 0.3 21:04.17 > systemd > 2 root 20 0 0 0 0 S 0.0 0.0 0:18.99 > kthreadd > 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 > rcu_gp > 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 > *rcu_par+* > ... <<omit>> > > While running on the host it displays: > > ... <<omit>> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ > COMMAND > 1 root 20 0 245612 11128 8084 S 0.0 0.3 21:04.18 > systemd > 2 root 20 0 0 0 0 S 0.0 0.0 0:18.99 > kthreadd > 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 > rcu_gp > 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 > *rcu_par_gp* > ... <<omit>> > -- > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL-Q%3DKuUBiJXQr%3DLXBmCJsf34qjNanETup4hOH%2BTk8ZsK6wuSA%40mail.gmail.com.
