通过DELL服务器的序列号,可以在其网站查询到有关该序列号对应的服务器信息,如果服务器过多,逐一查询的工作量比较大,可以通过命令行方式来查询
1、单一序列号查询:
- #!/usr/bin/perl -w
- use utf8;
- binmode( STDOUT, ':encoding(utf8)' );
- use LWP::Simple;
- if ($#ARGV+1 != 1 ) {
- print "\nUsage: $0 <sn>\n";
- exit;
- }
- #my $sn = shift;
- my $sn = $ARGV[0];
- print "$sn\n";
- my $url = "http://supportapj.dell.com/support/topics/topic.aspx/ap/shared/support/my_systems_info/zh/cn/details?c=cn&l=zh&s=gen&~ck=anavml&servicetag=$sn";
- my $content = get $url;
- my %h = $content =~ m{(系统类型:).*"top">(.*?)<.*(出厂日期:).*"top">(.*?)<.*(国家和地区:).*?"top">(.*?)<};
- print $_, $h{$_}, "\n" for keys %h;
输出:
- [root@flyinweb dell]# ./getdellinfobysn.pl
- Usage: ./simple.pl <sn>
- [root@flyinweb dell]# ./getdellinfobysn.pl 1rcgw1x
- 1rcgw1x
- 系统类型:PowerEdge 1850
- 国家和地区:China
- 出厂日期:2005/12/31
2、批量查询
可以将序列号存储在文件中,通过脚本读取每一行,然后调用上述脚本通过以下脚本来进行:
- #!/usr/bin/perl -w
- # getinfobysn.pl
- use utf8;
- binmode( STDOUT, ':encoding(utf8)' );
- use LWP::Simple;
- open(INFILE1, "sn.txt");
- #open(OUTFILE, "+>result.txt")|| die "Cannot open the newfile: $!\n";
- foreach $x (<INFILE1>){
- chomp $x;
- print "$x\n";
- my $url ="http://supportapj.dell.com/support/topics/topic.aspx/ap/shared/support/my_systems_info/zh/cn/details?c=cn&l=zh&s=gen&~ck=anavml&servicetag=$x";
- my $content = get $url;
- my %h = $content =~ m{(系统类型:).*"top">(.*?)<.*(出厂日期:).*"top">(.*?)<.*(国家和地区:).*?"top">(.*?)<};
- print $_, $h{$_}, "\n" for keys %h;
- print "\n";
- }
- #close OUTFILE;
- close INFILE1;
- exit;
输出:
- # 输出
- # [root@flyinweb dell]# ./getinfobysn.pl
- # 41G833X
- # 系统类型:PowerEdge R410
- # 国家和地区:China
- # 出厂日期:2011/3/16
- # HKW5Y2X
- # 系统类型:PowerEdge R410
- # 国家和地区:China
- # 出厂日期:2010/8/18
本日志由 flyinweb 于 2011-11-11 17:18:10 发表到 窗体开发技术 中,目前已经被浏览 280 次,评论 0 次;
作者添加了以下标签: DELL Server Info;
症状:
mysql数据库无法正常启动,日志如下:
111110 14:41:22 InnoDB: Starting shutdown...
111110 14:41:28 InnoDB: Shutdown completed; log sequence number 0 103559
111110 14:41:28 [Note] MySQL: Shutdown complete
111110 14:43:06 [Note] Plugin 'FEDERATED' is disabled.
111110 14:43:06 InnoDB: Started; log sequence number 0 103559
111110 14:43:06 [ERROR] Binlog has bad magic number; It's not a binary log file that can be used by this version of MySQL
111110 14:43:06 [ERROR] Can't init tc log
111110 14:43:06 [ERROR] Aborting
111110 14:43:06 InnoDB: Starting shutdown...
111110 14:43:11 InnoDB: Shutdown completed; log sequence number 0 103559
111110 14:43:11 [Note] MySQL: Shutdown complete
解决办法:
删除最后一个mysql-bin.x,打开mysql-bin.index 文件,删除对应的mysql-bin.x条目,重启。(未经测试)
本日志由 flyinweb 于 2011-11-10 15:40:17 发表到 数据库技术 中,目前已经被浏览 360 次,评论 0 次;
作者添加了以下标签: Binlog has bad magic number;
【问题描述】:
1、Windows 7 无法访问Windows2003共享,出现“系统错误 86。网络密码不正确”,但是这些问题都是正确的,经分析问题可能出现在用户身份验证上。
2、访问共享打印机
[Window Title]
添加打印机
[Main Instruction]
连接到打印机
[Content]
Windows 无法连接到打印机。
[^] 隐藏详细信息(D) [确定]
[Expanded Information]
操作失败,错误为 0x0000052e。
For clustering the Cluster resource name must have full access to the Virtual Cluster Names so when failover takes place DNS entries can be updated.
However if you used a underscore _ a big NO! NO! with NetBIOS and DNS names. Solution: wipe and start over.
If you used a dash -, an exceptable NetBIOS name, your still screwed and got this error. BUG in Windows 2008 R2. You can add the name manualy to the DNS, but it will not be automatic.
Following errors were recorded in event logs when it registrations fails:
场景1:
Cluster network name resource 'SQL Network Name (VirutalClusterName)' failed registration of one or more associated DNS name(s) for the following reason:
DNS signature failed to verify.
Ensure that the network adapters associated with dependent IP address resources are configured with at least one accessible DNS server
In DNS Management (dnsmgmt.msc):
场景2:
群集网络名称资源“群集名称”注册一个或多个相关联的 DNS 名称失败。原因如下:
DNS 服务器失败。
请确保与从属 IP 地址相关联的网络适配器已配置为至少可以访问一个 DNS 服务器。
相关资源:
Windows Server 2008 Troubleshooting: Event ID 1196 — Microsoft-Windows-FailoverClustering
本日志由 flyinweb 于 2011-11-01 14:28:16 发表到 云计算与虚拟化 中,目前已经被浏览 587 次,评论 0 次;
作者添加了以下标签: Cluster name resource failed registeration in DNS;
Until Informix Dynamic Server 10.0 the number of MSC (or Miscellaneous) Virtual Processors was limited to one. With IDS 10.0 multiple MSC VPs can be configured using the VPCLASS onconfig parameter (e.g.
Virtual Processor (VP) is the technical term for an Informix process. Informix forks off a handful of these VPs at engine startup to take advantage of multiple CPUs or cores and increase parallelism. Each VP is multithreaded allowing Informix to efficiently use the CPU time each process is awarded by the OS, letting ready threads do work while other threads are busy waiting on something else to finish.
There are multiple types of VPs, each performing a specific job. Some VPs are configurable (i.e. the number of VPs and what CPU they should run on, etc.) through the VPCLASS ONCONFIG parameter and some are not. The 2 VPs you need to be concerned about right now are:
本日志由 flyinweb 于 2011-10-28 09:20:05 发表到 数据库技术 中,目前已经被浏览 497 次,评论 0 次;
作者添加了以下标签: Virtual Processor,VP;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
The Hyper-V best practice in traditional production environments is that any physical network interface used by guest virtual machines is dedicated and isolated to guest only traffic and not shared with the management operating system (host). This recommendation was made for several reasons – security is the primary reason since virtual machines are considered less trusted than the management partition isolating the network traffic reduces the risk that a malicious guest could take advantage of a remote security exploit to take over the physical machine. Following this practice also reduces the risk of a guest virtual machine saturating the network preventing the server administrator from being able to log onto the physical machine and take appropriate action. In Server 2008 (Hyper-V V1) you accomplished this by unbinding TCP (as well as any other network protocol) on the virtual adapter exposed by Hyper-V – in Server 2008 R2 we have added a new feature which be default does not create the virtual adapter on the management partition (of course there’s an option to have it the old way). In addition this functionality was pushed into the Add Roles Wizard when you create your first virtual network. Here’s some screen captures to illustrate.
本日志由 flyinweb 于 2011-10-27 18:11:51 发表到 云计算与虚拟化 中,目前已经被浏览 624 次,评论 0 次;
作者添加了以下标签: Networking with Hyper-V;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
I was recently asked about how to change the IP address of an Exchange 2007 cluster. Here is the information that I shared:
| NOTE: Be sure to test this before trying in production. Each environment and application may respond differently to changes. |
本日志由 flyinweb 于 2011-10-27 18:01:06 发表到 云计算与虚拟化 中,目前已经被浏览 503 次,评论 0 次;
作者添加了以下标签: Change Cluster IPAddr,更改群集IP地址;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱
http://www.2mysite.net/scriptencoder/screnc.asp 站长你好,看
你好,我发现一个问题,就是从mysqld2同步过来的数据,在mysqld1的
晕,我说是怎么回事情,原来我和你一样,忘记设置了活动分区