1 2 3 4 5 6 7 8 9 10 11 | $ prtconf | grep Processor Processor Type: PowerPC_POWER6 Processor Implementation Mode: POWER 6 Processor Version: PV_6 Number Of Processors: 4 Processor Clock Speed: 4005 MHz Model Implementation: Multiple Processor, PCI bus + proc0 Processor + proc2 Processor + proc4 Processor + proc6 Processor |
1 2 3 4 5 6 7 8 | # prtconf | grep Processor Processor Type: PowerPC_POWER5 Processor Implementation Mode: POWER 5 Processor Version: PV_5 Number Of Processors: 1 Processor Clock Speed: 1654 MHz Model Implementation: Multiple Processor, PCI bus + proc0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | hscroot@hmc:~> lssyscfg -r prof -m Server-9117-MMA-SN060DD72 --filter "lpar_ids=p6ml4n05" name=p6ml4n05,lpar_name=p6ml4n05,lpar_id=6,lpar_env=aixlinux, all_resources=0,min_mem=2048,desired_mem=3072,max_mem=4096, min_num_huge_pages=0,desired_num_huge_pages=0, max_num_huge_pages=0,mem_mode=ded,proc_mode=shared,min_proc_units=0.1, desired_proc_units=0.2,max_proc_units=0.3,min_procs=1,desired_procs=1, max_procs=1,sharing_mode=cap,uncap_weight=0,shared_proc_pool_id=0, shared_proc_pool_name=DefaultPool,io_slots=none,lpar_io_pool_ids=none, max_virtual_slots=10, "virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1", virtual_scsi_adapters=2/client/1/vioserver/16/0,virtual_eth_adapters=none, hca_adapters=none,boot_mode=norm,conn_monitoring=0,auto_start=0, power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0, bsr_arrays=0,lhea_logical_ports=23000000/2/1/5/none, lhea_capabilities=23000000/0, lpar_proc_compat_mode=default,electronic_err_reporting=null, virtual_fc_adapters=none |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # WPAR 仅存在于 AIX 6.1 系统 my $oslevel = `oslevel`; if ($oslevel =~ m/6\.1/) { # 在 WPAR 中不带参数运行 lparstat 命令只返回警告信息 my $output = `lparstat`; if ($output =~ m/The output is applicable only to the Global Environment/) { print "This machine is one WPAR with following CPU assigned.\n"; system ("prtconf | grep Processor"); exit 0; } } # 使用– i 参数列出详细的配置信息 my @outputs = `lparstat -i`; foreach my $line (@outputs) { # 解析命令输出并得到分区个数 if ($line !~ m/Partition Number/) {next;} my ($blank, $partition_num) = split /Partition Number\s+:\s/, $line; chomp $partition_num; if ($partition_num eq '-') # full system 环境没有划分微分区 { print "This machine is one full system without LPARs. The system has following physical CPUs installed.\n"; }elsif ($partition_num > 1) # 如果存在多于一个的分区,该系统使用了微分区技术 { print "This machine is one LPAR with virtual following CPUs installed. To check the assignment of physical CPU, please log on HMC or AMM.\n"; }else { print "Can not decide whether current environment is one LPAR or not. Please check HMC or AMM to decide this.\n"; } } # 打印处理器本身的参数 system ("prtconf | grep Processor"); exit 0; |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |