AnsweredAssumed Answered

A Handy tool for viewing maprcli commands from MCS Logs

Question asked by satz on Oct 12, 2016

Thanks Sanjamala Nayeem

 

Extract maprcli commands from MCS logs

 

tail -f /opt/mapr/logs/adminuiapp.log  | grep --line-buffered 'Callable: Parameters ='  | sed -u -e 's/^.*= \[/maprcli /' -e 's/, / /g' -e 's/\]$//' -e  "s/\[/\'\[/g" -e "s/\]/\]\'/g"

 

Example output

 

[mapr@sat-node1 ~]$ tail -f /opt/mapr/logs/adminuiapp.log  | grep --line-buffered 'Callable: Parameters ='  | sed -u -e 's/^.*= \[/maprcli /' -e 's/, / /g' -e 's/\]$//' -e  "s/\[/\'\[/g" -e "s/\]/\]\'/g"
maprcli login -user mapr
maprcli alarm view
maprcli config load
maprcli userconfig load -username mapr
maprcli dashboard info
maprcli license apps
maprcli dialhome status
maprcli license list
maprcli cluster mapreduce get
maprcli config load
maprcli dashboard info
maprcli alarm list -summary 1 -output terse
maprcli node heatmap -view status
maprcli node list -filter '[rp==/*]' -output terse -columns fhb,h,hn,ip,rp,id,nha -limit 50 -start 0
maprcli node topo list
maprcli node list -filter '[rp==/*]' -output terse -columns fhb,h,hn,ip,rp,id,nha -limit 50 -start 0
maprcli node topo list

 

Thanks,

Sathishkumar Manimoorthy

Outcomes