Operating the Unit
51
AM4904 User Guide
www.kontron.com
3.3 CM Command Line Interface (CLI)
Using a serial connection to the MCH, the command line interface is accessed from the Linux shell. It is
implemented in FCLI and CCLI modules. The frontend is implemented as a standalone Linux application,
clicm.
The CLI output is usually in ASCII format, but it can optionally also be set to output in a format that is easier
to process automatically, e.g. CSV.
The FCLI module implements a socket server, accepting parallel connection requests. Each connection is
associated with a local session ID, that is passed to the CCLI module as a PARM_TID with each request.
The unix domain socket protocol is very simple: the clitool sends a ‘\n’ terminated command, and retrieves
one or more ‘\n’ terminated response lines. When the command is finished, it receives a single byte ‘\001’
(hex 0x1), to indicate the end of the command response.
All command responses must only contain printable ASCII characters, and the ‘\001’ end marker, and ‘\n’
line delimiters. No other non-printable characters are allowed.
3.3.1 Accessing MCMC: clicm
The command “clicm” opens the CM CLI shell. Exit the CM shell by using the command “quit”.
# clicm
CM>
CM> quit
#
3.3.2 CM Commands
The CM commands provide access to the carrier manager.
Table 3-4:
CLI CM Commands
Command
Description
cm activate <FRU-ID>
Activate specified FRU device
cm control cold reset <FRU-ID>
Invoke cold reset command on FRU device
cm control warm reset <FRU-ID>
Invoke warm reset command on FRU device
cm control diag <FRU-ID>
Invoke diagnostic interrupt command on FRU device
cm control graceful <FRU-ID>
Invoke graceful reboot command on FRU device
cm deactivate <FRU-ID>
Deactivate specified FRU device
cm show all
Show all present FRU devices
cm show <FRU-ID>
Show FRU devices information
cm restart
Restart MCMC/CM
cm terminate
Terminate MCMC/CM
Содержание AM4904
Страница 19: ...1KTC5520 EATX Chapter 1 Introduction www kontron com...
Страница 24: ...6KTC5520 EATX Chapter 2 Functional Description www kontron com...
Страница 65: ...47KTC5520 EATX Chapter 3 Operating the Unit www kontron com...
Страница 104: ...85KTC5520 EATX Chapter 4 Hardware Installation www kontron com...
Страница 109: ...90KTC5520 EATX Chapter 5 Power Considerations www kontron com...
Страница 113: ...Chapter 6 Thermal Considerations www kontron com...
Страница 121: ...1 Appendix A CM Configuration Options www kontron com...
Страница 128: ...1 Appendix B Getting Help www kontron com...
Страница 131: ...1KTC5520 EATX Appendix C Glossary www kontron com...