1、有关AIX问题解答问题AIX平台上清除MQ队列管理器遗留的共享内存和信号量的方法解答下面列出的是一段用于清除MQSeries上一次遗留的共享内存和信号量的小程序。通常遇到的状况是当启动队列管理器时失败,返回消息AMQ8041,指明以前的进程依然在使用中。 注意:仅在 AIX上测试通过!.运行方法:将以下代码拷贝并粘贴到AIX文件中,chmod +x 即可运行。在运行前必须停掉所有的队列管理器!脚本如下.#!/bin/kshecho Sempahores :ipcs -sipcs -s tempfilewhile read line;doecho $line temp2filemyid=cut
2、-d -f5 temp2filemyps=cut -d -f2 temp2fileif $myid = mqm ; thenecho removing $mypsipcrm -s $mypsfidone tempfilewhile read line;doecho $line temp2filemyid=cut -d -f5 temp2filemyps=cut -d -f2 temp2fileif $myid = mqm ; thenecho removing $mypsipcrm -m $mypsfidone tempfilerm tempfilerm temp2file问题怎样确定当前系统
3、是32位或64位?解答1.#bootinfo -y 若返回: 32, 则说明是32位机器(CPU)若返回: 64, 则说明是64位机器(CPU)2.#genkex | grep 64.ext若返回类似149bf58 a3ec /usr/lib/drivers/syscalls64.ext, 则当前AIX内核是64位的问题使用联机手册之前,需安装相应的软件包。解答AIX 4.3 安装介质包含两张联机文档光盘(Documentation CD): Base Documentation CD 和 Extended Documentation CD。使用命令man查看系统命令之前需要按照下列步骤安装相
4、应的软件包: 1.正确设置环境变量LANG的值,如“en_US”为英文环境,“zh_CN”为简体中文环境。可以用命令export LANG=en_US设置。2.使用man查看系统命令之前必须安装下列软件包:bos.html.en_US.topnav.navigate- Top Level Navigationbos.html.en_US.nav- Online Navigationbos.html.en_US.cmds.cmds1- AIX Commands Reference 1bos.html.en_US.cmds.cmds2- AIX Commands Reference 2bos.ht
5、ml.en_US.cmds.cmds3 - AIX Commands Reference 3bos.html.en_US.cmds.cmds4 - AIX Commands Reference 4bos.html.en_US.cmds.cmds5- AIX Commands Reference 5bos.html.en_US.cmds.cmds6- AIX Commands Reference 6使用命令lslpp -l 检查上述软件包是否已经安装。3.如果需要查询AIX 系统调用及C语言库函数,则要安装软件包 bos.html.en_US.techref.base - AIX Base Te
6、ch Refbos.html.en_USmo - AIX Commo Tech Ref4.Documentation CD中还包含许多其它的手册,可根据需要安装相应的软件包。在AIX系统中安装软件包可使用smit管理菜单。在命令行输入smit install_all选择:1.CD-ROM 设备(通常为/dev/cd0)。2.将光标移至SOFTWARE to install 并按下或“+7”。3.将光标移至要安装的软件包并按下 或 “+7”选择要安装的软件包。4.选中所有要安装的软件包后按?lt;Enter 开始安装,之后需再次按下确认后继续安装,直至成功。此时就可以使用man查看系统命令了问题
7、在RS/6000机器上安装了AIX操作系统,但不能显示中文。这是因为AIX中文环境需要单独设置。解答在AIX中使用中文有两种途径:第一是在安装AIX时选择中文语言,装好的系统自动显示中文(这种方法不推荐使用,它没有第二种方法使用起来灵活)。第二是安装AIX时选择英文,系统启动后手工设置中文环境,方法如下:1. 将AIX系统盘的第一张光盘放入光驱;2. 运行命令:smitty- System Environments- Manage Languange Environment- Change/Show Primary Language Environment- Change/Show Cultu
8、ral Convention, Language, or Keyboard在随后显示的菜单中将光标分别移到以下字段:Primary CULTURAL ConventionPrimary LANGUAGE translationPrimary KEYBOARD按下,从弹出的菜单中选择“IBM-eucCN”将上述字段改为简体中文,按下回车键后系统自动从光盘安装中文环境软件包。此操作完成后重新启动系统,操作界面即为简体中文。需要输入中文时使用下列功能键切换输入方法:AIX 4.3.3 以前的版本: + F1 - + F4 切换到各种中文输入方法;右 - 切换到英文输入;AIX 4.3.3: CTRL
9、 + F2 : 智能 ABC ; CTRL + F4 : 拼音输入; CTRL + F5 : 五笔输入; CTRL + F6 : 郑码输入 ; CTRL + F7 : 表形码输入; CTRL + F9 : 内码输入; CTRL + F10 :英文半角; 此外,AIX还包含另外两种中文环境,即“UTF8”和“GBK”,它们与“IBM-eucCN”之区别在于包含了繁体汉字的使用。上述三种中文环境的设置方法均相同。问题通过以下命令,可以查看RS/6000系统配备的物理内存的大小。解答使用命令lsdev -Cc memory查看RS/6000配置的物理内存设备,下面为其输出示例:mem0Availab
10、le00-00 MemoryL2cache0Available00-00 L2 Cache再使用命令lsattr -El mem0输出如下size512Total amount of physical memory in Mbytes Falsegoodsize512Amount of usable physical memory in MbytesFalse此例说明机器的物理内存为512MB。如果前面lsdev的输出中有设备名 mem1,则使用同样的命令查看其对应的大小并依此类推。L2cache0 为系统二级缓存(Level 2 Cache)的设备名。同样,使用命令 lsattr -El L
11、2cache0可以查看其大小。问题AIX(V4.3以上)上配置IBM网络打印机的步骤及注意事项解答在IBM AIX V4.3(或更高版本)上安装IBM网络打印机的安装步骤:1.确认网络打印机的网络参数已经配置完成,并且打印机和AIX主机可以正常通信。可以用ping命令来加以验证。2.在/ect/hosts文件中,添加网络打印机的IP地址。使用如下命令: # cd /etc# vi hosts 打开hosts文件后,将打印机的IP地址添加到文件的最后一行。保存后退出*# Internet Address Hostname # Comments # 192.9.200.1 net0sample #
12、 ethernet name/address # 128.100.0.1 token0sample # token ring name/address # 10.2.0.2 x25sample # x.25 name/address 127.0.0.1 loopback localhost # loopback (lo0) name/address x.xxx.xx.xx ibmip20 3. 在命令行,输入以下命令:# smit printer 4. 系统提示如下, 将光标移至Print Spooling,并按Enter*Printer/PlotterMove cursor to desir
13、ed item and press Enter.Printer/Plotter DevicesPrint SpoolingF1=Help F2=Refresh F3=Cancel Esc+8=ImageEsc+9=Shell Esc+0=Exit Enter=Do*5. 在下面的窗口中选择Add a Print Queue,并按Enter*Print SpoolingMove cursor to desired item and press Enter.Start a Print JobManage Print JobsList All Print QueuesManage Print Que
14、uesAdd a Print QueueAdd an Additional Printer to an Existing Print QueueChange / Show Print Queue CharacteristicsChange / Show Printer Connection CharacteristicsRemove a Print QueueManage Print ServerProgramming ToolsF1=Help F2=Refresh F3=Cancel Esc+8=ImageEsc+9=Shell Esc+0=Exit Enter=Do*6.系统提示如下,选择
15、“ibmNetPrinter IBM Network Printer ”,并按EnterPrint SpoolingMove cursor to desired item and press Enter.lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqAdd a Print QueueMove cursor to desired item and press Enter. Use arrow keys to scroll. x x # ATTACHMENT TYPEDESCRIPTIONx localPr
16、inter Attached to Local Hostx remotePrinter Attached to Remote Host x xstationPrinter Attached to XstationxasciiPrinter Attached to ASCII Terminalx hpJetDirectNetwork Printer (HP JetDirect) xfileFile (in /dev directory)xibmNetPrinterIBM Network PrinterxibmNetColor IBM Network Color Printerx other Us
17、er Defined Backendxx F1=Help F2=Refresh F3=Cancelx Esc+8=Image Esc+0=Exit Enter=Do F1x /=Find n=Find Next Esmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq7. 根据您打印机型号,选择相应的厂家和打印机型号,本文以IBM Infoprint20为例。Print Spoolingqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
18、qqqqx Printer Typexx Move cursor to desired item and press Enter. x x MORE.38 x ibm4317IBM Network Printer 17 x ibm4320IBM InfoPrint 20 xibm4324 IBM Network Printer 24 xibm4332 IBM InfoPrint 32x ibm4340 IBM InfoPrint 40x ibm5202IBM 5202 Quietwriter IIIxibm5204 IBM 5204 Quickwriterxibm5327 IBM 5327 M
19、odel 011 xibm5572IBM 5572 Model B02xibm5573 IBM 5573 Model H02x MORE.21x x F1=Help F2=Refresh F3=Cancel x Esc+8=Image Esc+0=Exit Enter=DoF1x /=Find n=Find Next Esmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq8. 在下面的窗口中选择 “Do NOT make this system a BOOTP/TFTP server ”并按Enterlqqqqqq
20、qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx BOOTP/TFTP Server x xMove cursor to desired item and press Enter.xx 1 Make this system a BOOTP/TFTP server x 2 Do NOT make this system a BOOTP/TFTP server x x F1=Help F2=Refresh F3=Cancel x Esc+8=Image Esc+0=Exit Enter=Do F1x /=Find n=Fin
21、d Next Esmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq9.在下面的窗口中,输入打印机队列名称和打印机的IP地址,输入完成后,按 Enter*Add a Print QueueType or select values in entry fields.Press Enter AFTER making all desired changes.Entry FieldsDescription IBM InfoPrint 20Names of NEW print queues to addPostScrip
22、t ip20psPCL 5E Emulation ip20pclPrinter connection characteristics* HOSTNAME of the Network Printer Card x.xxx.xx.xF1=Help F2=Refresh F3=Cancel F4=ListEsc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=ImageEsc+9=Shell Esc+0=Exit Enter=Do*10. 正常情况下,队列添加成功。系统会提示:*COMMAND STATUSCommand: OK stdout: yes stderr:
23、 noBefore command completion, additional instructions may appear below.Added print queue ip20ps.Added print queue ip20pcl.F1=Help F2=Refresh F3=Cancel Esc+6=CommandEsc+8=Image Esc+9=Shell Esc+0=Exit /=Findn=Find Next*11. 打印测试, 输入如下命令:lp -dip20pcl /etc/hosts12. 根据打印机的具体情况,修改缺省参数, 输以下命令:smit printer -
24、 Print Spooling - Change / Show Print Queue Characteristics -ip20pcl -1.Printer Setup :*Change / Show Printer Setup Type or select values in entry fields.Press Enter AFTER making all desired changes.TOP Entry FieldsPrint queue nameip20Printer name ibm9POSTSCRIPT option INSTALLED? yes +AUTOMATIC dete
25、ction of print file TYPE to be done?yes+PAPER/ENVELOPE SIZE for Tray 1, 2, or 3A4 +PAPER SIZE for multipurpose trayA4 +ENVELOPE SIZE for multipurpose traycom10+PAPER/ENVELOPE SIZE for multipurpose trayA3 +ENVELOPE SIZE for optional envelope feedercom10+PAPER SIZE for 2000 sheet input drawerA4+Input PAPER TRAY for header pageTray1+Input PAPER TRAY for trailer pageTray 1+MORE.6+F1=Help F2=Refresh F3=Cancel F4=ListEsc+5=Reset Esc+6=Command Esc+
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1