from pymongo import MongoClient conn = MongoClient('10.10.99.102', 23001) db = conn.admin dbStatus = db.command('serverStatus') getmore = dbStatus['opcounters']['getmore']
pip install pymongo
sed -n '3p'
awk NR==3
通过shell的管道功能获取mongo执行的结果