MGW指令集.docx
《MGW指令集.docx》由会员分享,可在线阅读,更多相关《MGW指令集.docx(23页珍藏版)》请在冰豆网上搜索。
MGW指令集
MGW指令:
一.Bordtemp[]显示板的温度
tempSensorUnitId
Temperaturesensorid.Values:
0,1,2...
二.Capi显示CPU负荷值
capiprio[interval]
capitype[][interval]
capiname...[interval]
capitot
capilist[]
capipeak
capilogstart
capilogstop
三.Cat合成文件,按顺序读取文件并按标准格式输出,CTRL+X终止输出
四.Cd进入目录
五.Cls清屏
六.Cp复制文件
七.Exit退出
八.help[command]...命令帮助
九.ifconfig[][netmask][broadcast]设置IP(可单独用于查询,可不加broadcast)
一十.
lhsh[-v][>][][]
lhsh是一个重要的指令,用于激活远端的COMMANDSHELL,假如在背后加上相应指令,则将在COMMANDSHELL下运行该指令后即行退出,否则,将激活COMMANDSHELL
lhpath参数是用于给出路径去激活ose_shell,如果给出路径,用户将直接使用路径中的指令。
区别如下:
$lhshslave
$lhshslaveps
前者是进入SLAVE,随后输入的指令都是在SLAVE状态,直至输入EXIT,后者是在SLAVE状态下执行PS后直接退出SLAVE状态
十一、ipac_ping-d-z[-c][-s]
校验IP连接,参数分别为目的IP,源IP,发送次数和ICMP大小。
十二、mkdir建立文件夹
十三、MsbHostMo_StartPing-d-z[-c][-s]
从ET-MFG板发ICMP包到指定目的地测试连接,如果需要终止,使用MsbHostMo_StartPing
十四、mv
改名或移动文件,注意DESTINATION不能存在,否则会被覆盖
十五、pingIP系统间的校验
十六、readclock[-u]读取系统时间,-u参数为更改输出格式,在板处于LOAD状态下不可用
十七、rm删除指定文件
十八、telogread[-rel|-mon][
十九、traceroute追踪路由,该指令会记录从源到目的地所经IP系统,支持最大30个IP记录
二十、vii显示板的LED状态
二十一、aal1stat[reset]输出所有在GPB中已经打开的AAL1状态,如加上参数则为重置
二十二、autoddserror{1|2}
autoddstrace{none|some|all|dispatch}
为OSE核心(操作系统环境)配置默认调测支持(DEFAULTDEBUGSUPPORT)。
用于改变板启动时的错误校验级别或者OSE追踪。
默认错误校验级别为1,追踪设置为NONE,以获得最佳性能。
二十三、
board_status-d[-f][-c""]
board_status-g[-f][-c""]
board_status-l[-f][-c""]
该指令将会运行大量预定义的CLI指令并输出执行结果。
这些指令可以对配置中所有的或者指定的板执行不同指令,也能够让所有的板执行同一条指令。
board_status主要用于收集所有板对于一些指令的输出,能为错误分析提供相关信息。
二十四、
cvclean
cvcsum[][]
cvcu
cvls
cvmk[][][[][][][]
cvrbcnt
cvrbinit[][][]
cvrbrm
cvrbset
cvrm
cvset
cvsynch
cvup
管理CV
二十四、ls[][...]列出指定的文件或者目录,如果没有附加参数,则列出当前工作目录
二十五、stat显示指定的文件或者目录信息
二十六、
dump[-ltT][-s][-i][-o][]
dumpclear
dumperror[-i][-o][]
dumpinfo[-tT][-i][-o][]
dumpsave[]
dumplist[-a]
用于系统崩溃时,列出并显示错误分析数据
系统崩溃时,相关错误信息会转存到事后剖析转存区,并保存在一个文件中。
信息量非常庞大,建议使用-s参数过滤。
clear
Clearthememoryareaforthedumpinformation.
error
Listthesectioninthedumpinformation,wherethegeneraldescriptionofthecauseoftherestartisspecified.
info
Listallsectionnamesinadumpinformationfile.Sameasdump-l.
list
Listalldumpinformationfilesinmemoryandinthefilesystem.
save
Saveadumpinformationfileataspecifiedlocation.
-a
Includedumpinformationfilesinthefilesystem,whenlistingalldumpinformationfiles.
-i
Readdumpinformationfromthespecifiedfile.
-l
Listallsectionsinadumpinformationfile.Sameasdumpinfo.
-o
Outputtheinformationfromthedumpcommandtothespecifiedfile.
-s
Displayonlythosesectionsthatmatchthefilterargument.Thefilteriscase-insensitiveandcanmatchpartofthesectionname.
-t,-T
Usedwith-l.Displaythetimestampinformationforeachsection.-tisthetimefromwritingthefirstsection.-Tisthetimerelativetothewritingoftheprevioussection.Thisismainlyusedfordebuggingthedumpmanager.
pmd_identity
Thedumpidentity
由于信息量庞大,可以用dump-l和dumpinfo.来列出信息分类和分类中的详细信息。
如下面的例子:
$dump-l
[OUTPUTOFDUMPINFORMATION]
Dumpidentity:
0x17c20211
Dumpcreated:
1970-01-2602:
03:
38.514820
Sectionsincludedindumpinformation:
SizeSectionname
========================================================
100POSTMORTEMDUMP
192ERRORHANDLERPARAMETERS
620ERRORCODE
196MEMORYMANAGER
356CPULOAD
368FLASHPROGRAMS
472FLASHPARAMETERS
312SIGNALQUEUEFORPROCESS0x10198ose_webs
412REGISTERSFORPROCESS0x2020dtest
564PMDSTACKFORPROCESS0x2020dtest
416SUPERVISORSTACKPREAMBLEFORPROCESS0x2020d
test
588SUPERVISORSTACKFORPROCESS0x2020dtest
212MAINSTACKPREAMBLEFORPROCESS0x2020dtest
212MAINSTACKFORPROCESS0x2020dtest
236SIGNALNUMBERSFOUNDINQUEUEFOR0x10198
ose_webs
2404LOADEDPROGRAMS
784BLOCKENVIRONMENTVARIABLESFOR0x30203
rpdouttest.chk
5284KERNELTRACECONTENTS
6428HEAPInformation
196ADDRESSZERO
328HARDDISKINFO
340HARDDISKSTATISTICS
16996PROCESSLIST
772LISTOFRECEIVESELECTORSFORPROCESSESPENDING
INRECEIVE
824ERRORLOG
31812TRACEANDERROR
232DUMPSPACESLACK
$
Theinterestingsectioncanthenbedisplayedwiththefilteroptiondump-s.
$dump-s"ERRORCODE"
[OUTPUTOFDUMPINFORMATION]
Dumpidentity:
0x17c20211
Dumpcreated:
1970-01-2602:
03:
38.514820
[ERRORCODE]
PMD-id:
0x17c20211Boardlocation:
001400
Time:
70-01-2602:
03:
37
Systemticks:
34825,Microsecondssincelasttick:
2099
ERRORNUMBER0x00110031WITHEXTRADATA0x1E7783C8OCCURRED
INPROCESStest
TYPEPRI-16
BLOCKrpdouttest.chk
ERRORSPECIFICATION
ThecallertriedtooperateontheNILpointer.
Thebufferhasprobablybeensentorfreedalready.
Theextraparametercontainstheaddressofthesignal
pointerthatpointstoNIL.
Ignoringthiserrorcausestheillegalsystemcalltobe
ignored.
Thesystemcallinprogress=FREE_BUF()
DumpgeneratedinBasic
Restarttype:
WARMRESTART
Thefollowingtextmessagewasprovidedbythereporting
application:
ThecallertriedtooperateontheNILpointer.
Thebufferhasprobablybeensentorfreedalready.
Theextraparametercontainstheaddressofthesignal
pointerthatpointstoNIL.
Ignoringthiserrorcausestheillegalsystemcalltobe
ignored.
HowtoreadtheBPTraceandErrorinformationusinganMP.
$lhsh000100
WelcometoOSEShellOSE4.5.2.
000100>dump-s"TRACEAND"
[OUTPUTOFDUMPINFORMATION]
Dumpidentity:
0xce780112
Dumpcreated:
2005-06-2014:
37:
32.887798
[TRACEANDERROR]
Notenoughmemorytocompletetheoperation.
000100>dumpsave/c/pmd/my_pmd.pmd
Writingdumpfile0xce780112tofile'/c/pmd/my_pmd.pmd'
000100>exit
$dump-s"TRACEAND"-i/c/pmd/my_pmd.pmd
[OUTPUTOFDUMPINFORMATION]
Dumpidentity:
0xce780112
Dumpcreated:
2005-06-2014:
37:
32.887798
[TRACEANDERROR]
[2005-06-2007:
29:
51.812]Cls_bpID_procsubrackID403.c:
618
ERROR:
Checksumerror.Reasoncouldbeemptyorcorrupted
EEPROMinbackplane.
[1970-01-0100:
00:
00.724]Cs_boardManager_proc
osa_board_mgr.c:
2391INFO:
Startof@(#)CXC1321451R51S01
2005-06-1514:
39:
44MEST868a922d-0a42de10-6148
二十七、echo[-n][...]
在新一行中输出指定字符,如果没有参数,则输出空行
二十八、errno[]...
这个指令输出所有系统呼叫出错号码,或指定系统呼叫出错号码,其中包含相关解释。
如果没有参数,系统会输出所有错误号代码以及相关解释。
二十九、dumpelg
显示所有的错误和修复信息。
三十、heapinfo[-aemopsx][-A][-R]
该指令输出系统中不同堆中"semi-snapshot"的堆统计,输出的格式和不同的堆由参数决定
Options
-a
Allofthebelow.
-A
Matchonlybufferswithactualsize.
-e
Checkendmarksofthebuffers.
-m
Summaryoftotalheapusage.Includinghighwater-mark.
-o
Ownershipofthebuffersinasegment.
-p
Gatherperprocess.
-R
Matchonlybufferswithrequestedsize.
-s
Summaryofthebufferusage.
-x
HexandASCIIdumpofthebuffers.
Operands
pid|segid|0
Identifyprocess,blockorsegment.Itcanbeanumericalprocessid(pid),blockid(bid)orsegmentid.0identifiesthesystemsegment.Hexadecimalnumbersmuststartwith0x.ItcanalsobeanASCIInameofprocess(es)orblock(s).Asingletrailing(*)canbeusedasawildcard.Thusose_*willmatchallprocessesandblockstartingwithose_.
该指令从系统不同堆片段中定位动态数据结构。
能定位的数据要视乎定义的请求缓存大小决定。
因此该指令可能会因为堆溢出而引致系统崩溃。
三十一、keys[=...]
如果不加参数,该指令会显示输入指令所对应定义的热键。
如果带参数,则对应指令会与指定的键匹配。
指定热键的时候,使用"^"字符,而后输入对应的大写字母则可。
"del"被指定为DEL键,"ign"则表示该指令未指定热键。
指令可能会变成如下:
eol,eof,eraseleft,eraseright,werase,kill,reprint,intr,susp,start,stop,discard,verbatim,status,curleft,curright,curbegin,curend,search,prevline,nextline,eraseeol。
如果需要取消热键,可用例如“keyskill=ignIgnore”
三十二、listloaded[-p][]
该指令显示当前输入模块中通过处理程序载入的数据。
通过加入载入模块参数号,能列出指令模块中的数据。
Options
-p
Linkhandleroption.Theloadmodulesareprintedforaprocessor,whichisidentifiedbythenameofthelinkhandler.
Operands
load_module_id
Listdataonlyforthespecifiedloadmodule.Aprintoutofalinkcommandfileisreceived,whichyoucanusetorelinkyourprogramtogetasymboltablefile,whichisusedforSingleSteprunmodedebugging.
三十三、llog[-l[]]
列出错误记录
三十四、md5
输出MD5校验码
三十五、mirrorstat
查看镜像状态
三十六、pglist
该指令显示载入到内存中的程序信息,包括程序处理,程序状态,位置,载入模块号以及参数等。
-e
Displaytheenvironmentvariablesoftheprograms.
三十七、poolinfo
poolinfo[-u|poolid|pid|bid]
poolinfo[-r]
poolinfo[-l]
指令为制定的用户或者池列出可用的池信息。
如果给出进程的ID,将会对进程所在的池进行检查。
如果给出模块ID,将检查连接池的模块。
需注意的是,ID需用十六进制。
-l
Printdetailedinformation.
-rpriority
Specifyanewpriorityforthe"profiler"process.
-uuser
Specifyacertainusernumber.Thedefaultusernumberis0ifno-uflagoridisspecified.Todayisonlyimplementedfordefaultvalue.
poolid
Poolidentity.
pid
Processidentity.
bid
Blockidentity.
5.16.6 Printout
Thefollowinginformationisprinted