Vxworks — Command Cheat Sheet ((free))
msgQCreate / msgQSend / msgQReceive / msgQShow — Message queues for task communication.
: Generic object show command. Can be passed a task ID to display target synchronization primitives. Task Control Commands
: Good reviews note that these sheets provide the exact argument order (e.g., sp entryPt, arg1, arg2... ), which is often the hardest thing to remember under pressure.
| Command | Description | |---------|-------------| | i | Show all tasks (Task ID, name, state, priority) | | ti <taskId> | Display task详细信息 (stack, registers, etc.) | | taskSpawn "name", priority, options, stackSize, entryFunc | Create & start a new task | | taskDelete <taskId> | Delete a task | | taskSuspend <taskId> | Suspend a task | | taskResume <taskId> | Resume a suspended task | | taskPrioritySet <taskId> <priority> | Change task priority | | taskPriorityGet <taskId> | Get current priority | | taskLock | Disable preemption for current task | | taskUnlock | Re-enable preemption | | taskSafe | Protect current task from deletion | | taskUnsafe | Remove deletion protection |
: Display memory contents starting at a specific hexadecimal address. vxworks command cheat sheet
: Displays the system routing table to verify gateway configurations.
| Command | Description | |---------|-------------| | help or h | Show available shell commands | | lkup [“string”] | List symbols in system (partial match) | | symFind <name> | Find symbol address | | print <expr> | Evaluate expression (C syntax) | | b <address> | Set breakpoint (if shell has debugging support) | | c | Continue after break | | t | Trace single step | | tr | Trace until return | | reboot | Restart VxWorks | | boot | Boot from default device |
: Deletes/terminates a running task safely. ts(taskName_or_ID) : Suspends a specific task. tr(taskName_or_ID) : Resumes a suspended task. 3. Memory Diagnostics & Inspection
: cmd = C → C ommand mode; C = C ommand → C mode. msgQCreate / msgQSend / msgQReceive / msgQShow —
| Command | Description | |---|---| | i or i 0 | Display summary of all running tasks (name, priority, status) | | i tid | Display information for a specific task | | ti tid | Show detailed TCB (Task Control Block) information | | tt tid | Display call stack trace for a task | | w | Show detailed pending information for all suspended tasks | | tw tid | Show pending information for a specific task | | checkStack tid | Display stack usage statistics (0 = all tasks) | | taskRegsShow tid | Display register contents for a task |
This cheat sheet covers essential commands for managing tasks, memory, and system information within the VxWorks shell environment ( WindSh ). i : Displays a summary of all active tasks in the system.
m [address] : Allows you to manually modify memory at a specified hex address. printErrno [n] : Describes the most recent error status; use for the latest status.
: Displays the status and configuration of network interfaces. bootParamsShow : Displays the current boot line parameters. Task Control Commands : Good reviews note that
These commands allow you to check system health, verify the VxWorks version, and inspect target hardware metrics. Environment Description version Target Shell / C-Mode
: Use lkup "command" to check if a command exists before executing it — saves you from frustrating "not found" errors.
| Command | Description | |---------|-------------| | ifconfig | Show network interface config | | ifAddrSet <ifname>, <ip> | Set IP address (e.g., ifAddrSet "fei0", 192.168.1.10 ) | | routeShow | Show routing table | | ping <ip> | Send ICMP echo | | inetStatShow | Show all TCP/UDP connections | | arpShow | Show ARP cache | | tftpGet <host>, <filename>, <dest> | TFTP download | | tftpPut <host>, <src>, <filename> | TFTP upload |
ftp, tftp, rlogin, telnet utilities — Transfer files and get shell access; often used for loading modules or transferring configuration.
: Displays memory contents starting at a specific address.
| Command | Description | |---------|-------------| | wdCreate | Create a watchdog timer | | wdStart <wdId> <delayTicks> <func> <arg> | Start watchdog | | wdCancel <wdId> | Cancel watchdog | | wdDelete <wdId> | Delete watchdog |