Issue
How to update all packages limits on the server with one command?
Environment
- Any CloudLinux OS server with LVE limits and users
Solution
1. Run this one-line script:
lvectl package-list --json | awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'ID'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p | while read line; do echo lvectl package-set \'${line}\' --iops=0 |sh ; done;
Where IOPS can be replaced with any other limit, like CPU, IOPS, PMEM, e.t.c.
Useful links
Comments
0 comments
Please sign in to leave a comment.