VxWorks Command Cheat Sheet

Ligo Livingston Observatory - Chethan Parameswariah: Jan 5, 2004

Task Management Related commands

sp (entryPt, args)Spawn a task with default parameters
sps (entryPt, args)Spawn a task and leave it suspended
td (taskName or Id)Delete a task
ts (taskName or Id)Suspend a task
tr (taskName or Id)Resume a suspended task

Task Information Commands

checkStack (taskName or Id)Show stack usage for the task
Example: checkStack "showtime" or checkStack 0x19c8f1
i Display synopsis of all tasks
ti (taskName)Show detailed infofrom TCB (Task Control Block)
tt (taskName)Show stack trace
tw (taskName)Find info about the object the task is pending on

System Information/Modification Commands

devsList all devices known on the target
lkup "symbol" List vxWorks symbols from the system symbol table
d (hex_address)Display memory
m (hex_address)Modify memory
printErrno(n)Describe the most recent error status value with n=0 being latest
h |size| Display command history default size is 20
help Display summary of commands
cd "dir" Change directory
pwd Present working directory
ls list the directory
CTRL+X or rebootReboot the processor
ld < filename Load a file
unld < "moduleName" Unload file
bootChange Modify the saved boot parameters
logout Log out of the target

Object Information Commands

taskShowList info about the tasks from TCB
seqShowList info about the sequencers(EPICS state programs at LIGO) running on the target
semShowShow info about semaphore
moduleShowShow info about loaded modules (object files/programs)

Memory Information Commands

memShowDisplay allocated/free memory
memPartShowShow memory partition
semShowShow info about semaphore

****************************** END ****************************