Open docsis opened 7 years ago
echo "{"method":"GetProcMeminfo"}" | nc 10.10.10.145 12307 { "error": { "code": -32700, "message": "Parse error. Invalid JSON was received by the server." } }
echo -n '{"method":"GetProcMeminfo"}' | nc 10.10.10.145 12307 { "result": "MemTotal: 6103108 kB\nMemFree: 5172292 kB\nMemAvailable: 5195256 kB\nBuffers: 2080 kB\nCached: 78108 kB\nSwapCached:
You should write like echo '{"method":"ListAllMethod"}' | nc <lepd IP地址> 12307.
echo '{"method":"ListAllMethod"}' | nc <lepd IP地址> 12307
echo "{"method":"GetProcMeminfo"}" | nc 10.10.10.145 12307 { "error": { "code": -32700, "message": "Parse error. Invalid JSON was received by the server." } }
echo -n '{"method":"GetProcMeminfo"}' | nc 10.10.10.145 12307 { "result": "MemTotal: 6103108 kB\nMemFree: 5172292 kB\nMemAvailable: 5195256 kB\nBuffers: 2080 kB\nCached: 78108 kB\nSwapCached: