9-12
WS5000 Series Switch System Reference
9.2.12 diag
Use diag to create a text file for memory dump of different data structures. It dumps all the information related
to the object in /logfile which can be viewed using the root permission.This command is to be used by an admin
with a root permission (access to the shell).
The output file will be saved in logs dir which can be viewed using 'logdir' command.
Syntax
diag <obj_name> <file_name> <user_name>
Parameters
<obj_name>={inQ|outQ|muo|bfio|ALT|cgo|ceo|mco|po}
obj_name
Name of object whose memory dump is required. It can be either of the following:
• inQ=Input Q.
• outQ=Output Q.
• muo=MU Object.
• bfio=Interface Object (both NIC and AP).
• ALT=Address Lookup Table.
• cgo=CG Object.
• ceo=CE Object.
• mco=MC Object.
• po=Policy Object.
Name of file where the output needs to be saved.
file_name
Name of user executing the command.
user_name
Example
SM-WS5000> diag ALT TestFile admin
SM-WS5000> logdir
File Name
========================================================
TestFile.ALT.diag
SM-WS5000>
9.2.13 directory
Lists the image and configuration files that are stored on a WS5000. As a shortcut, "dir" can be used instead
of "directory".
Syntax
directory
Parameters
None
Bytes
Date & time
454
Sat Mar 11 18:20:26 2006