The Data on Demand Management Pack contains a number of useful System Center Operations Manager (SCOM) agent tasks, including the Netstat task required by Squared Up Visual Application Discovery & Analytics.
GNU General Public License v3.0
4
stars
2
forks
source link
Limit length of process description field in Netstat task results #17
This PR will limit the Process description field in Netstat data to ~128 characters. The datablock may actually be longer due to quote escaping, but this should still significantly cut down on task result size when the process description was previously 5000+ chars for some users.
On Linux, Substr and length are both standard functions of AWK and should be available everywhere we were already targeting, and cut is part of SUS and likewise shouldn't introduce any issues.
This PR will limit the Process description field in Netstat data to ~128 characters. The datablock may actually be longer due to quote escaping, but this should still significantly cut down on task result size when the process description was previously 5000+ chars for some users.
On Linux, Substr and length are both standard functions of AWK and should be available everywhere we were already targeting, and cut is part of SUS and likewise shouldn't introduce any issues.
This PR resolves issue #16