LINUX下使用minicom调试网络设备
linuxing
|
1#
linuxing 发表于 2006-12-16 01:00
LINUX下使用minicom调试网络设备
minicom是LINUX下的拨号软件,可以通过com口调试网络设备,就象在WINDOWS下使用超级终端一向去配置初始化设备,下面我们来实验下:
使用minicom -s 是对minicom 进行配置: [root@mrtg2 gl]# minicom -s lqqqqq[configuration]qqqqqqk x Filenames and paths x x File transfer protocols x x Serial port setup x x Modem and dialing x x Screen and keyboard x x Save setup as dfl x x Save setup as.. x x Exit x x Exit from Minicom x mqqqqqqqqqqqqqqqqqqqqqqqqqqj 出现上面的菜单,我们来选择Serial port setup lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x A - Serial Device : /dev/ttyS1 x x B - Lockfile Location : /var/lock x x C - Callin Program : x x D - Callout Program : x x E - Bps/Par/Bits : 9600 8N1 x x F - Hardware Flow Control : Yes x x G - Software Flow Control : No x x x x Change which setting? x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x Screen and keyboard x x Save setup as dfl x x Save setup as.. x x Exit x x Exit from Minicom x mqqqqqqqqqqqqqqqqqqqqqqqqqqj 这时他的菜单是上面的样子,如果经常使用超级终端的话,基本能看得懂是什么意思,不过这时的选择不是用方向键来选择,而是用每个选项前面的字母来进行选择配置: 比如我们要更改Serial Device的选项,这时我们按字母A即可,LINUX下的com设备名是ttyS开头的,com0即是ttyS0,依此类推. 我们配置完成后,选择exit推出,这时候他会初始化modem;初始化完了就开始进入设备的配置了,你看,是不是很简单? 下面有两个常用的组合按键,是ctrl和a一起按,放开在按z或x. ctrl a +z 使用帮助 ctrl a +x 推出minicom 图如下:我调试的是北电ALTEON 180E设备,其他产商设备同理. Welcome to minicom 2.00.0 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Mar 7 2005, 10:29:09. Press CTRL-A Z for help on special keys Enter password: Password incorrect. Enter password: System Information at 14:53:56 Fri Dec 15, 2006 Alteon 180e sysName: 180e sysLocation: Switch is up 0 days, 0 hours, 8 minutes and 50 seconds. Last boot: 14:45:06 Fri Dec 15, 2006 (power cycle) MAC address: 00:60:cf:48:82:d0 IP (If 1) address: 0.0.0.0 Hardware Revision: A Hardware Part No: E09_5B-B_7B-A Software Version 10.0.25-SSH (FLASH image1), active configuration. *****DNS Load Balancing***** ------------------------------------------------------------ [Main Menu] info - Information Menu stats - Statistics Menu cfg - Configuration Menu oper - Operations Command Menu boot - Boot Options Menu maint - Maintenance Menu diff - Show pending config changes [global command] apply - Apply pending config changes [global command] save - Save updated config to FLASH [global command] revert - Revert pending or applied changes [global command] exit - Exit [global command, always available] >> 180e - Main# |