ibm 2498b24 java版本_IBM2498_B24光纤交换机笔记..docx

这篇博客详细记录了IBM 2498_B24光纤交换机的配置过程,包括通过WEB和TELNET访问,以及如何查看和管理交换机的端口状态。内容涉及登录、密码更改、交换机信息显示,以及多个端口的状态和WWN号。
摘要由CSDN通过智能技术生成

IBM2498_B24光纤交换机笔记.

WEB访问2233配置IP地址查看ZONETELNET访问telnet 2telnet 3完整登录过程,登录方式是telnet通过 switchshow查看交换机的每个口连接的HBA卡的 WWN号缺省用户和密码:admin/passwordFabric OS (IBM_2498_B24)Fabos Version 6.4.2aIBM_2498_B24 login: adminPassword: password-----------------------------------------------------------------Please change passwords for switch default accounts now.Use Control-C to exit or press 'Enter' key to proceed.Warning: Access to the Root and Factory accounts may be required forproper support of the switch. Please ensure the Root and Factorypasswords are documented in a secure location. Recovery of a lost Rootor Factory password will result in fabric downtime.for user - rootChanging password for rootEnter new password: (直接按Control-C进入命令行)Password was not changed. Will prompt again at next loginuntil password is changed.IBM_2498_B24:admin> switchshowswitchName: IBM_2498_B24switchType: 71.2switchState: OnlineswitchMode: NativeswitchRole: PrincipalswitchDomain: 1switchId: fffc01switchWwn: 10:00:00:05:33:b9:cf:1bzoning: ON (qseam_zone)switchBeacon: OFFIndex Port Address Media Speed State Proto============================================== 0 0 010000 id N8 OnlineFC F-Port 20:17:00:a0:b8:6e:77:4a 1 1 010100 id N8 OnlineFC F-Port 10:00:00:00:c9:c8:03:bf 2 2 010200 id N8 OnlineFC L-Port 1 public 3 3 010300 id N8 OnlineFC F-Port 10:00:00:00:c9:ef:6f:20 4 4 010400 id N8 OnlineFC F-Port 10:00:00:00:c9:e8:d8:66 5 5 010500 id N8 OnlineFC F-Port 10:00:00:00:c9:c8:94:5e 6 6 010600 id N8 OnlineFC F-Port 10:00:00:00:c9:ee:ba:b1 7 7 010700 id N8 OnlineFC F-Port 10:00:00:00:c9:cd:71:54 8 8 010800 id N8 OnlineFC F-Port 10:00:00:00:c9:cd:73:00 9 9 010900 id N8No_Light FC 10 10 010a00 id N8No_Light FC 11 11 010b00 id N8 Online FC F-Port 10:00:00:00:c9:e7:9a:3a 12 12 010c00 id N8 Online FC F-P

要实现基于Java合并doc和docx格式的Word文件,可以考虑使用Apache POI库来操作Word文件。下面是一个简单的示例代码,可以将多个docx文件合并为一个: ```java import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.poi.xwpf.usermodel.*; public class MergeWordFiles { public static void main(String[] args) throws IOException { String[] filesToMerge = {"file1.docx", "file2.docx", "file3.docx"}; String mergedFileName = "merged.docx"; List<XWPFDocument> files = new ArrayList<>(); for (String fileName : filesToMerge) { XWPFDocument document = new XWPFDocument(OPCPackage.open(fileName)); files.add(document); } XWPFDocument mergedDocument = mergeDocuments(files); FileOutputStream outputStream = new FileOutputStream(new File(mergedFileName)); mergedDocument.write(outputStream); outputStream.close(); } private static XWPFDocument mergeDocuments(List<XWPFDocument> files) { XWPFDocument mergedDocument = new XWPFDocument(); XWPFParagraph newParagraph; for (XWPFDocument document : files) { for (XWPFParagraph paragraph : document.getParagraphs()) { newParagraph = mergedDocument.createParagraph(); newParagraph.setAlignment(paragraph.getAlignment()); for (XWPFRun run : paragraph.getRuns()) { newParagraph.createRun().setText(run.getText(0)); } } for (XWPFTable table : document.getTables()) { mergedDocument.createTable().addNewCol(); mergedDocument.createTable().addNewRow(); for (XWPFTableRow row : table.getRows()) { XWPFTableRow newRow = mergedDocument.createTable().getRow(0); newRow.setHeight(row.getHeight()); for (XWPFTableCell cell : row.getTableCells()) { XWPFTableCell newCell = newRow.addNewTableCell(); newCell.setVerticalAlignment(cell.getVerticalAlignment()); newCell.setAlignment(cell.getAlignment()); newCell.setText(cell.getText()); } } } } return mergedDocument; } } ``` 这个示例代码中,先将要合并的docx文件读取为XWPFDocument对象,然后将所有文件合并到一个新的XWPFDocument对象中,最后将合并后的XWPFDocument对象写入到一个新的docx文件中。 需要注意的是,这个示例代码只能合并docx格式的Word文件,如果需要合并doc格式的Word文件,需要使用HWPF库进行操作。同时,如果要处理较大的Word文件,可能需要考虑分段处理,以避免内存溢出等问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值