Common vxworks commands

Source: Internet
Author: User

1. Task-related commands
Sp function, [arg1],..., [arg9]
-Start the task. A maximum of nine parameters are allowed. The default priority is 100 and the stack is 20000 bytes.
 
Period n, function, [arg1],..., [arg8]
-Create a task that calls the function cyclically. The cycle is n seconds and a maximum of 8 parameters are allowed.
 
Repeat m, function, [arg1],..., [arg8]
-Create a task that calls function repeatedly. The number of calls is m. If m is set to 0, the task is permanently called. A maximum of 8 parameters can be called.
 
Ts tidX-pending a task
Tr tidX-resume pending tasks
Td tidX-delete a task
I tidX-displays basic task information. If the parameter is 0, all tasks are displayed.
Ti tidX-displays task details, including registers and stacks.
Tt tidX-display the function call relationship of a task
CheckStack tidX-displays historical statistics on the use of the task stack. If the parameter is set to 0, all tasks are displayed.
[Where tidX can be the task ID or task name]
 
2. System Information
 
Lkup ["string"]-find and list functions and global variables containing the "string" character in the system symbol table. There are two special parameters:
0, indicating the symbol table statistics; "" (Null String), listing all symbols
 
LkAddr addr-display the symbol table near the addr address
 
L addr, [n]-display the disassembly of n commands starting with the addr address. If n is omitted, the default value is 10 commands.
 
When h [n]-n is 0, the latest shell commands are listed. The default value is 20. If n is not 0, the number of historical commands recorded by shell is set.
 
D [addr, [number], [width]
-Display the content of the number units starting with the addr address. The width customizes the width of each unit, which can be 1, 2, 4, or 8.
 
M addr, [width]-modify the content of the addr address based on the width. The width can be 1, 2, 4, or 8.
 
MemShow 1-displays the total number of idle and allocated space on the system partition.
 
PrintErrno value-the macro that prints the system-defined error code
 
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", "routeAdd"-add route to route table
RouteDelete "destaddr", "route ADDR"-delete route from route table
 
Note: Most of the preceding commands can be found in help and netHelp.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.