Reprint Address: http://blog.chinaunix.net/uid-25099259-id-3187481.html
VxWorks commands that are commonly used
1. Task-related commands
SP FUNCTION,[ARG1],..., [ARG9]
-Start a task, accept up to 9 parameters, default priority 100, stack 20000 bytes
Period N,function,[arg1],..., [Arg8]
-Create a periodic Call function task with a period of n seconds and a maximum of 8 parameters
Repeat M,FUNCTION,[ARG1],..., [Arg8]
-Create a task that calls function repeatedly, called m,m=0, and is a maximum of 8 parameters
TS TidX-Suspend task
TR TidX-Resuming a suspended task
TD TidX-Delete Task
I TidX-Display task basic information, the parameter is 0 o'clock show all Tasks
TI TidX-Displays task details, including registers, stacks, etc.
TT TidX-Show function call relationships for tasks
Checkstack TidX-Displays the historical statistics used by the task stack, with a parameter of 0 o'clock showing all tasks
[Where TIDX can be a task ID or a task name]
2. System Information
Lkup ["string"]-finds and lists functions and global variables with "string" characters in the system symbol table with two special parameters:
0, give the symbol table statistics; "" (Empty string), list all symbols
Lkaddr addr-Shows the symbol table near the addr address
L Addr,[n]-Displays the disassembly of n instructions starting with the addr address, and the default is 10 instructions when omitting n
h [n]-n is 0 o'clock lists the most recently executed shell commands, default 20, n non 0 O'Clock, sets the number of history commands for the shell record
d [Addr,[number],[width]]
-Displays the contents of number cells starting with the addr address, width customizing the widths of each cell, which can be 1, 2, 4, 8
M Addr,[width]-modifies the contents of the addr address by width, and width can be 1, 2, 4, 8
Memshow 1-Displays the total number of free and allocated space on the system partition, etc.
Printerrno value-a macro that prints system-defined error codes
3. Network-related commands
ifshow ["ifname"]-show info about network interfaces
Inetstatshow-show All Internet protocol sockets
Tcpstatshow-show Statistics for TCP
Udpstatshow-show Statistics for UDP
Ipstatshow-show Statistics for IP
Icmpstatshow-show Statistics for ICMP
Arpshow-show a list of known ARP entries
Mbufshow-show Network stack Data pool statistics
Netstacksyspoolshow-show Network stack System pool statistics
Routeshow-display All IP routes (summary information)
Mrouteshow-display all IP routes (verbose information)
Routestatshow-display Routing Statistics
Routeadd "Destaddr", "gateaddr"-Add route to route table
Routedelete "Destaddr", "gateaddr"-delete route from route table
Note: Most of the above commands can be found in Help, nethelp