| 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 |
VxWorks 7 introduced a newer, more modular shell with additional commands (often C++ aware).
| Command | Description |
| :--- | :--- |
| kernelVersion | Shows detailed kernel version info. |
| moduleShow | Lists dynamically loaded modules (.out files). |
| moduleUnload | Unload a module. |
| rtpShow | Shows Real-Time Processes (RTPs) – VxWorks 7’s process model. |
| rtpSuspend / rtpResume | Control RTP execution. |
| devShow | Detailed device tree walk. |
Important: In VxWorks 7, you often need to prefix legacy commands with cmd (e.g., cmd "i") if you are in the new Python-based shell. vxworks command cheat sheet
| Command | Description |
|---------|-------------|
| help [command] | Show help (or help for specific command) |
| print <value> | Print value (e.g., print 0x1234) |
| printf "<fmt>", <args> | Formatted print (like C printf) |
| logShow | Show system log messages |
| timex <function> | Time execution of a function |
| period <seconds>, <function> | Run function periodically |
| repeat <count>, <command> | Repeat command N times |
| Command | Description |
|---------|-------------|
| intShow | Show interrupt vector usage (counts per vector) |
| intConnect <vector>, <isr>, <arg> | Connect ISR to vector (shell use limited) |
| excShow | Show exception handling vectors |
| excHookAdd <func> | Add exception handler |
Real-time scheduling and timers are essential. VxWorks 7 introduced a newer, more modular shell
timer routines (sysClkRateGet / sysClkRateSet) — System clock configuration.
tickLib — Tick-related utilities.
Best practice: keep watchdog callbacks short and deterministic; use tick rate appropriate for timing resolution vs. CPU overhead. | Command | Description | |---------|-------------| | help
VxWorks is a real-time operating system (RTOS) widely used in embedded systems. This cheat sheet provides a concise reference to common VxWorks commands, helping users quickly navigate and interact with the system.
| Command | Description |
|---------|-------------|
| tr | Trace tasks (context switch logging) |
| trc | Start task tracing |
| trcStop | Stop task tracing |
| b <funcName> | Set breakpoint |
| t <taskId> | Show task stack trace |
| d printf "format", args | Print to console |
| logShow | Show system log |
| logFdShow | Show log file descriptors |
| Command | Description |
|---------|-------------|
| version | Show VxWorks version |
| show | Show system information (CPU, memory, tasks) |
| sysSuspend | Suspend system (enter kernel debug) |
| sysResume | Resume after sysSuspend |
| reboot | Reboot the system |
| sp | Simple task spawn (from shell function) |
| period | Create a periodic task |