2017年6月16日星期五

Using the Local RACADM Command Line Interface

Using the Local RACADM Command Line Interface
Integrated Dell™ Remote Access Controller Firmware Version 1.2
User Guide
( can work for iDRAC7 )

The local RACADM command line interface (CLI) provides access to the iDRAC management features from the managed server. RACADM provides access to the same features as the iDRAC Web interface. However, RACADM can be used in scripts to ease configuration of multiple servers and iDRACs, where the Web interface is more useful for interactive management.
Local RACADM commands do not use network connections to access the iDRAC from the managed server. This means that you can use local RACADM commands to configure the initial iDRAC networking.
For more information about configuring multiple iDRACs, see Configuring Multiple iDRACs.
This section provides the following information:
  • Using RACADM from a command prompt
  • Configuring your iDRAC using the racadm command
  • Using the RACADM configuration file to configure multiple iDRACs

Using the RACADM Command

You run RACADM commands locally (on the managed server) from a command prompt or shell prompt.
Log into the managed server, start a command shell, and enter local RACADM commands in the following format:
racadm <subcommand> -g <group> -o <object> <value>
Without options, the RACADM command displays general use information. To display the RACADM subcommand list, type:
racadm help
The subcommand list includes all commands that are supported by the iDRAC.
To get help for a subcommand, type:
racadm help <subcommand>
The command displays the syntax and command-line options for the subcommand.

RACADM Subcommands

Table 10-1 provides a description of each RACADM subcommand that you can run in RACADM. For a detailed listing of RACADM subcommands including syntax and valid entries, see RACADM Subcommand Overview.

Table 10-1. RACADM Subcommands 

Command

Description
clrraclogClears the iDRAC log. After clearing, a single entry is made to indicate the user and time that the log was cleared.
clrselClears the managed server's System Event Log entries.
configConfigures the iDRAC.
getconfigDisplays the current iDRAC configuration properties.
getniccfgDisplays the current IP configuration for the controller.
getraclogDisplays the iDRAC log.
getractimeDisplays the iDRAC time.
getssninfoDisplays information about active sessions.
getsvctagDisplays service tags.
getsysinfoDisplays information about the iDRAC and managed server, including IP configuration, hardware model, firmware versions, and operating system information.
gettracelogDisplays the iDRAC trace log. If used with -i, the command displays the number of entries in the iDRAC trace log.
helpLists iDRAC subcommands.
help<subcommand>Lists usage statement for the specified subcommand.
racresetResets the iDRAC.
racresetcfgResets the iDRAC to the default configuration.
serveractionPerforms power management operations on the managed server.
setniccfgSets the IP configuration for the controller.
sslcertdownloadDownloads a CA certificate.
sslcertuploadUploads a CA certificate or server certificate to the iDRAC.
sslcertviewViews a CA certificate or server certificate in the iDRAC.
sslcsrgenGenerates and downloads the SSL CSR.
testemailForces the iDRAC to send an e-mail over the iDRAC NIC.
testtrapForces the iDRAC to send an SNMP alert over the iDRAC NIC.


Using the RACADM Utility to Configure the iDRAC

This section describes how to use RACADM to perform various iDRAC configuration tasks.

Displaying Current iDRAC Settings

The RACADM getconfig subcommand retrieves current configuration settings from the iDRAC. The configuration values are organized into groups containing one or more objects, and the objects have values.
See iDRAC Property Database Group and Object Definitions for a complete description of the groups and objects.
To display a list of all of the iDRAC groups, enter this command:
racadm getconfig -h
To display the objects and values for a particular group, enter this command:
racadm getconfig -g <group>
For example, to display a list of all cfgLanNetworking group object settings, type the following command:
racadm getconfig -g cfgLanNetworking

Managing iDRAC Users with RACADM

NOTICE: Use caution when using the racresetcfg command, as all configuration parameters are reset to the original defaults. Any previous changes are lost.
NOTE: If you are configuring a new iDRAC or if you ran the racadm racresetcfg command, the only current user is root with the password calvin.
NOTE: Users can be enabled and disabled over time. As a result, a user may have a different index number on each iDRAC.
You can configure up to 15 users in the iDRAC property database. (A sixteenth user is reserved for the IPMI LAN user.) Before you manually enable an iDRAC user, verify if any current users exist.
To verify if a user exists, type the following command at the command prompt:
racadm getconfig -u <username>
OR
type the following command once for each index from 1 to 16:
racadm getconfig -g cfgUserAdmin -i <index>
NOTE: You can also type racadm getconfig -f <filename> and view the generated <filename> file, which includes all users, as well as all other iDRAC configuration parameters.
Several parameters and object IDs are displayed with their current values. Two objects of interest are:
# cfgUserAdminIndex=nn
cfgUserAdminUserName=
If the cfgUserAdminUserName object has no value, that index number, which is indicated by the cfgUserAdminIndex object, is available for use. If a name appears after the =, that index is assigned to that user name.

Adding an iDRAC User

To add a new user to the iDRAC, perform the following steps:
  1. Set the user name.

  2. Set the password.

  3. Set the Login to iDRAC user privilege.

  4. Enable the user.

Example

The following example describes how to add a new user named "John" with a "123456" password and login privileges to the iDRAC:
racadm config -g cfgUserAdmin -o cfgUserAdminUserName -i 2 john
racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 123456
racadm config -g cfgUserAdmin -o cfgUserPrivilege -i 2 0x00000001
racadm config -g cfgUserAdmin -o cfgUserAdminEnable -i 2 1
To verify the new user, use one of the following commands:
racadm getconfig -u john
racadm getconfig –g cfgUserAdmin –i 2

Enabling an iDRAC User With Permissions

To grant a user a specific administrative (role-based) permissions, set the cfgUserAdminPrivilege property to a bitmask constructed from the values show in Table 10-2:

Table 10-2. Bit Masks for User Privileges 

User Privilege

Privilege Bit Mask
Login to iDRAC0x0000001
Configure iDRAC0x0000002
Configure Users0x0000004
Clear Logs0x0000008
Execute Server Control Commands0x0000010
Access Console Redirection0x0000020
Access Virtual Media0x0000040
Test Alerts0x0000080
Execute Debug Commands0x0000100

For example, to allow the user Configure iDRAC, Configure Users, Clear Logs, and Access Console Redirection privileges, add the values 0x00000002, 0x00000004, 0x00000008, and 0x00000010 to construct the bitmap 0x0000002E. Then enter the following command to set the privilege:
racadm config -g cfgUserAdmin -o cfgUserAdminPrivilege -i 2 0x0000002E

Removing an iDRAC User

When using RACADM, users must be disabled manually and on an individual basis. Users cannot be deleted by using a configuration file.
The following example illustrates the command syntax that can be used to delete a RAC user:
racadm config -g cfgUserAdmin -o cfgUserAdminUserName -i <index> ""
A null string of double quote characters ("") instructs the iDRAC to remove the user configuration at the specified index and reset the user configuration to the original factory defaults.

Testing E-mail Alerting

The iDRAC e-mail alert feature allows users to receive e-mail alerts when a critical event occurs on the managed server. The following example shows how to test the e-mail alert feature to ensure that the iDRAC can properly send e-mail alerts across the network.
racadm testemail -i 2
NOTE: Ensure that the SMTP and E-mail Alert settings are configured before testing the e-mail alert feature. See Configuring E-Mail Alerts for more information.

Testing the iDRAC SNMP Trap Alert Feature

The iDRAC SNMP trap alerting feature allows SNMP trap listener configurations to receive traps for system events that occur on the managed server.
The following example shows how a user can test the SNMP trap alert feature.
racadm testtrap -i 2
NOTE: Before you test the iDRAC SNMP trap alerting feature, ensure that the SNMP and trap settings are configured correctly. See the testtrap and testemail subcommand descriptions to configure these settings.

Configuring iDRAC Network Properties

To generate a list of available network properties, type the following:
racadm getconfig -g cfgLanNetworking
To use DHCP to obtain an IP address, use the following command to write the object cfgNicUseDhcp and enable this feature:
racadm config -g cfgLanNetworking -o cfgNicUseDHCP 1
The commands provide the same configuration functionality as the iDRAC configuration utility when you are prompted to type <Ctrl><E>. For more information about configuring network properties with the iDRAC configuration utility, see LAN.
The following is an example of how the command may be used to configure desired LAN network properties.
racadm config -g cfgLanNetworking -o cfgNicEnable 1
racadm config -g cfgLanNetworking -o cfgNicIpAddress 192.168.0.120
racadm config -g cfgLanNetworking -o cfgNicNetmask 255.255.255.0
racadm config -g cfgLanNetworking -o cfgNicGateway 192.168.0.120
racadm config -g cfgLanNetworking -o cfgNicUseDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSServersFromDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSServer1 192.168.0.5
racadm config -g cfgLanNetworking -o cfgDNSServer2 192.168.0.6
racadm config -g cfgLanNetworking -o cfgDNSRegisterRac 1
racadm config -g cfgLanNetworking -o cfgDNSRacName RAC-EK00002
racadm config -g cfgLanNetworking -o cfgDNSDomainNameFromDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSDomainName MYDOMAIN
NOTE: If cfgNicEnable is set to 0, the iDRAC LAN is disabled even if DHCP is enabled.

Configuring IPMI

  1. Configure IPMI over LAN by entering the following command:
racadm config -g cfgIpmiLan -o cfgIpmiLanEnable 1
NOTE: This setting determines the IPMI commands that can be executed from the IPMI over LAN interface. For more information, see the IPMI 2.0 specifications.
  1. Update the IPMI channel privileges by entering the following command:
racadm config -g cfgIpmiLan -o cfgIpmiLanPrivilegeLimit <level>
where <level> is one of the following:
  • 2 (User)
  • 3 (Operator)
  • 4 (Administrator)
For example, to set the IPMI LAN channel privilege to 2 (User), type the following command:
racadm config -g cfgIpmiLan -o cfgIpmiLanPrivilegeLimit 2
    1. Set the IPMI LAN channel encryption key, if required, using a command such as the following:
NOTE: The iDRAC IPMI supports the RMCP+ protocol. See the IPMI 2.0 specifications for more information.
racadm config -g cfgIpmiLan -o cfgIpmiEncryptionKey <key>
where <key> is a 20-character encryption key in a valid hexadecimal format.
  1. Configure IPMI Serial over LAN (SOL) using the following command:
racadm config -g cfgIpmiSol -o cfgIpmiSolEnable 1
NOTE: The IPMI SOL minimum privilege level determines the minimum privilege required to activate IPMI SOL. For more information, see the IPMI 2.0 specification.
  1. Update the IPMI SOL minimum privilege level using the following command:
racadm config -g cfgIpmiSol -o cfgIpmiSolMinPrivilege <level>
where <level> is one of the following:
  • 2 (User)
  • 3 (Operator)
  • 4 (Administrator)
For example, to configure the IPMI privileges to 2 (User), enter the following command:
racadm config -g cfgIpmiSol -o cfgIpmiSolMinPrivilege 2
NOTE: To redirect the serial console over LAN, ensure that the SOL baud rate is identical to your managed server's baud rate.
    1. Update the IPMI SOL baud rate using the following command:
racadm config -g cfgIpmiSol -o cfgIpmiSolBaudRate <baud-rate>
where <baud-rate> is 19200, 57600, or 115200 bps.
For example:
racadm config -g cfgIpmiSol -o cfgIpmiSolBaudRate 57600
    1. Enable SOL by typing the following command at the command prompt.
NOTE: SOL can be enabled or disabled for each individual user.
racadm config -g cfgUserAdmin -o cfgUserAdminSolEnable -i <id> 2
where <id> is the user's unique ID.

Configuring PEF

You can configure the action you wish the iDRAC to take for each platform alert. Table 10-3 lists the possible actions and the value to identify them in RACADM.

Table 10-3. Platform Event Action

Action

Value
No action0
Power off1
Reboot2
Power Cycle3

  1. Configure PEF actions using the following command:
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i <index> <action-value>
where <index> is the PEF index (see Table 5-6, and <action-value> is a value from Table 10-3.
For example, to enable PEF to reboot the system and send an IPMI alert when a processor critical event is detected, type the following command:
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 9 2

Configuring PET

  1. Enable global alerts using the following command:
racadm config -g cfgIpmiLan -o cfgIpmiLanAlertEnable 1
  1. Enable PET using the following command:
racadm config -g cfgIpmiPet -o cfgIpmiPetAlertEnable -i <index> <0|1>
where <index> is the PET destination index and 0 or 1 disable PET or enable PET, respectively.
For example, to enable PET with index 4, type the following command:
racadm config -g cfgIpmiPet -o cfgIpmiPetAlertEnable -i 4 1
  1. Configure your PET policy using the following command:
racadm config -g cfgIpmiPet -o cfgIpmiPetAlertDestIPAddr -i <index> <IP-address>
where <index> is the PET destination index and <IP-address> is the destination IP address of the system that receives the platform event alerts.
  1. Configure the Community Name string.
At the command prompt, type:
racadm config -g cfgIpmiLan -o cfgIpmiPetCommunityName <name>
where <name> is the PET Community Name.

Configuring E-mail Alerts

  1. Enable global alerts by entering the following command:
racadm config -g cfgIpmiLan -o cfgIpmiLanAlertEnable 1
  1. Enable e-mail alerts by entering the following commands:
racadm config -g cfgEmailAlert -o cfgEmailAlertEnable -i <index> <0|1>
where <index> is the e-mail destination index and 0 disables the e-mail alert or 1 enables the alert. The e-mail destination index can be a value from 1 through 4.
For example, to enable e-mail with index 4, type the following command:
racadm config -g cfgEmailAlert -o cfgEmailAlertEnable -i 4 1
  1. Configure your e-mail settings by entering the following command:
racadm config -g cfgEmailAlert -o cfgEmailAlertAddress -i 1 <email-address>
where 1 is the e-mail destination index and <email-address> is the destination e-mail address that receives the platform event alerts.
  1. To configure a custom message, enter the following command:
racadm config -g cfgEmailAlert -o cfgEmailAlertCustomMsg -i <index> <custom-message>
where <index> is the e-mail destination index and <custom-message> is the custom message.
  1. Test the configured e-mail alert, if desired, by entering the following command:
racadm testemail -i <index>
where <index> is the e-mail destination index to test.

Configuring IP Filtering (IpRange)

IP address filtering (or IP Range Checking) allows iDRAC access only from clients or management workstations whose IP addresses are within a user-specified range. All other login requests are denied.
IP filtering compares the IP address of an incoming login to the IP address range that is specified in the following cfgRacTuning properties:
  • cfgRacTuneIpRangeAddr
  • cfgRacTuneIpRangeMask
The cfgRacTuneIpRangeMask property is applied to both the incoming IP address and to the cfgRacTuneIpRangeAddr properties. If the results are identical, the incoming login request is allowed to access the iDRAC. Logins from IP addresses outside this range receive an error.
The login proceeds if the following expression equals zero:
cfgRacTuneIpRangeMask & (<incoming-IP-address> ^ cfgRacTuneIpRangeAddr)
where & is the bitwise AND of the quantities and ^ is the bitwise exclusive-OR.
See cfgRacTuning for a complete list of cfgRacTuning properties.

Table 10-4. IP Address Filtering (IpRange) Properties 

Property

Description
cfgRacTuneIpRangeEnableEnables the IP range checking feature.
cfgRacTuneIpRangeAddrDetermines the acceptable IP address bit pattern, depending on the 1's in the subnet mask.
This property is bitwise anded with cfgRacTuneIpRangeMask to determine the upper portion of the allowed IP address. Any IP address that contains this bit pattern in its upper bits is allowed to log in. Logins from IP addresses that are outside this range fail. The default values in each property allow an address range from 192.168.1.0 to 192.168.1.255 to log in.
cfgRacTuneIpRangeMaskDefines the significant bit positions in the IP address. The mask should be in the form of a netmask, where the more significant bits are all 1's with a single transition to all zeros in the lower-order bits.

Configuring IP Filtering

To configure IP filtering in the Web interface, follow these steps:
  1. Click System® Remote Access® iDRAC® Network/Security.

  2. On the Network Configuration page, click Advanced Settings.

  3. Check the IP Range Enabled checkbox and enter the IP Range Address and IP Range Subnet Mask.

  4. Click Apply.
Following are examples using local RACADM to set up IP filtering.
NOTE: See Using the Local RACADM Command Line Interface for more information about RACADM and RACADM commands.
  1. The following RACADM commands block all IP addresses except 192.168.0.57:
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeEnable 1
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeAddr 192.168.0.57
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeMask 255.255.255.255
  1. To restrict logins to a small set of four adjacent IP addresses (for example, 192.168.0.212 through 192.168.0.215), select all but the lowest two bits in the mask, as shown below:
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeEnable 1
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeAddr 192.168.0.212
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeMask 255.255.255.252
The last byte of the range mask is set to 252, the decimal equivalent of 11111100b.

IP Filtering Guidelines

Use the following guidelines when enabling IP filtering:
  • Ensure that cfgRacTuneIpRangeMask is configured in the form of a netmask, where all most significant bits are 1's (which defines the subnet in the mask) with a transition to all 0's in the low-order bits.
  • Use the desired range's base address as the value of cfgRacTuneIpRangeAddr. The 32-bit binary value of this address should have zeros in all the low-order bits where there are zeros in the mask.

Configuring IP Blocking

IP blocking dynamically determines when excessive login failures occur from a particular IP address and blocks (or prevents) the address from logging into the iDRAC for a preselected time span.
The IP blocking features include:
  • The number of allowed login failures (cfgRacTuneIpBlkFailcount)
  • The time frame in seconds during which these failures must occur (cfgRacTuneIpBlkFailWindow)
  • The amount of time in seconds that the blocked IP address is prevented from establishing a session after the allowed number of failures is exceeded (cfgRacTuneIpBlkPenaltyTime)
As login failures accumulate from a specific IP address, they are registered by an internal counter. When the user logs in successfully, the failure history is cleared and the internal counter is reset.
NOTE: When login attempts are refused from the client IP address, some SSH clients may display the following message: ssh exchange identification: Connection closed by remote host.
See iDRAC Property Database Group and Object Definitions for a complete list of cfgRacTune properties.
Login Retry Restriction Properties lists the user-defined parameters.

Table 10-5. Login Retry Restriction Properties

Property

Definition
cfgRacTuneIpBlkEnableEnables the IP blocking feature.
When consecutive failures (cfgRacTuneIpBlkFailCount) from a single IP address are encountered within a specific amount of time (cfgRacTuneIpBlkFailWindow), all further attempts to establish a session from that address are rejected for a certain time span (cfgRacTuneIpBlkPenaltyTime).
cfgRacTuneIpBlkFailCountSets the number of login failures from an IP address before the login attempts are rejected.
cfgRacTuneIpBlkFailWindowThe time frame in seconds during which the failure attempts are counted. When the failures exceed this limit, they are dropped from the counter.
cfgRacTuneIpBlkPenaltyTimeDefines the time span in seconds that login attempts from an IP address with excessive failures are rejected.

Enabling IP Blocking

The following example prevents a client IP address from establishing a session for five minutes if that client has failed five login attempts in a one-minute period of time.
racadm config -g cfgRacTuning -o cfgRacTuneIpRangeEnable 1
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkFailCount 5
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkFailWindow 60
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkPenaltyTime 300
The following example prevents more than three failed attempts within one minute, and prevents additional login attempts for an hour.
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkEnable 1
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkFailCount 3
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkFailWindow 60
racadm config -g cfgRacTuning -o cfgRacTuneIpBlkPenaltyTime 360

Configuring iDRAC Telnet and SSH Services Using Local RACADM

The telnet/SSH console can be configured locally (on the managed server) using RACADM commands.
NOTE: You must have Configure iDRAC permission to execute the commands in this section.
NOTE: When you reconfigure telnet or SSH settings in the iDRAC, any current sessions are terminated without warning.
To enable telnet and SSH from the local RACADM, log in to the managed server and type the following commands at a command prompt:
racadm config -g cfgSerial -o cfgSerialTelnetEnable 1
racadm config -g cfgSerial -o cfgSerialSshEnable 1
To disable the telnet or SSH service, change the value from 1 to 0:
racadm config -g cfgSerial -o cfgSerialTelnetEnable 0
racadm config -g cfgSerial -o cfgSerialSshEnable 0
Type the following command to change the telnet port number on the iDRAC:
racadm config -g cfgRacTuning -o cfgRacTuneTelnetPort <new port number>
For example, to change the telnet port from the default 22 to 8022, type this command:
racadm config -g cfgRacTuning -o cfgRacTuneTelnetPort 8022
For a complete list of available RACADM CLI commands, see Using the Local RACADM Command Line Interface.

Using an iDRAC Configuration File

An iDRAC configuration file is a text file that contains a representation of the values in the iDRAC database. You can use the RACADM getconfig subcommand to generate a configuration file containing the current values from the iDRAC. You can then edit the file and use the RACADM config -f subcommand to load the file back into the iDRAC, or to copy the configuration to other iDRACs.

Creating an iDRAC Configuration File

The configuration file is a plain (unformatted) text file. You can use any valid file name; the .cfg file extension is a recommended convention.
The configuration file can be:
  • Created with a text editor
  • Obtained from the iDRAC with the RACADM getconfig subcommand
  • Obtained from the iDRAC with the RACADM getconfig subcommand and then edited
To obtain a configuration file, with the RACADM getconfig command, enter the following command at a command prompt on the managed server:
racadm getconfig -f myconfig.cfg
This command creates the file myconfig.cfg in the current directory.

Configuration File Syntax

NOTICE: Edit the configuration file with a plain text editor, such as Notepad on Windows or vi on Linux. The racadm utility parses ASCII text only. Any formatting confuses the parser and may corrupt the iDRAC database.
This section describes the format of the configuration file.
  • Lines that start with # are comments.
A comment must start in the first column of the line. A # character in any other column is treated as a normal # character.
Example:
#
# This is a comment
[cfgUserAdmin]
cfgUserAdminPrivilege=4
  • Group entries must be surrounded by [ and ] characters.
The starting [ character denoting a group name must start in column one. This group name must be specified before any of the objects in that group. Objects that do not include an associated group name generate an error. The configuration data is organized into groups as defined in iDRAC Property Database Group and Object Definitions.
The following example displays a group name, object, and the object's property value.
Example:
[cfgLanNetworking] (group name)
cfgNicIpAddress=143.154.133.121 (object name)
  • Parameters are specified as object=value pairs with no white space between the object, =, and value.
White space that is included after the value is ignored. White space inside a value string remains unmodified. Any character to the right of the = is taken as is (for example, a second =, or a #, [, ], and so forth).
  • The parser ignores an index object entry.
You cannot specify which index is used. If the index already exists, it is either used or the new entry is created in the first available index for that group.
The racadm getconfig -f <filename> command places a comment in front of index objects, allowing you to see the included comments.
NOTE: You can create an indexed group manually using the following command:
racadm config -g <groupName> -o <anchored-object> -i <index> <unique-anchor-name>
  • The line for an indexed group cannot be deleted from a configuration file.
You must remove an indexed object manually using the following command:
racadm config -g <groupName> -o <objectName> -i <index> ""
NOTE: A NULL string (identified by two "" characters) directs the iDRAC to delete the index for the specified group.
To view the contents of an indexed group, use the following command:
racadm getconfig -g <groupName> -i <index>
  • For indexed groups the object anchor must be the first object after the [ ] pair. The following are examples of the current indexed groups:
[cfgUserAdmin]
cfgUserAdminUserName=<username>
  • If the parser encounters an indexed group, it is the value of the anchored object that differentiates the various indexes.
The parser reads in all of the indexes from the iDRAC for that group. Any objects within that group are simple modifications when the iDRAC is configured. If a modified object represents a new index, the index is created on the iDRAC during configuration.
  • You cannot specify a desired index in a configuration file.
Indexes may be created and deleted, so over time the group may become fragmented with used and unused indexes. If an index is present, it is modified. If an index is not present, the first available index is used. This method allows flexibility when adding indexed entries where you do not need to make exact index matches between all the RACs being managed. New users are added to the first available index. A configuration file that parses and runs correctly on one iDRAC may not run correctly on another if all indexes are full and you must add a new user.

Modifying the iDRAC IP Address in a Configuration File

When you modify the iDRAC IP address in the configuration file, remove all unnecessary <variable>=<value> entries. Only the actual variable group's label with "[" and "]" remains, including the two <variable>=<value> entries pertaining to the IP address change.
For example:
#
# Object Group "cfgLanNetworking"
#
[cfgLanNetworking]
cfgNicIpAddress=10.35.10.110
cfgNicGateway=10.35.10.1
This file will be updated as follows:
#
# Object Group "cfgLanNetworking"
#
[cfgLanNetworking]
cfgNicIpAddress=10.35.9.143
# comment, the rest of this line is ignored
cfgNicGateway=10.35.9.1

Loading the Configuration File Into the iDRAC

The command racadm config -f <filename> parses the configuration file to verify that valid group and object names are present and that syntax rules are followed. If the file is error-free the command then updates the iDRAC database with the contents of the file.
NOTE: To verify the syntax only and not update the iDRAC database, add the -c option to the config subcommand.
Errors in the configuration file are flagged with the line number and a message that explains the problem. You must correct all errors before the configuration file can update the iDRAC.
NOTICE: Use the racresetcfg subcommand to reset the database and the iDRAC NIC settings to the original default settings and remove all users and user configurations. While the root user is available, other users' settings are also reset to the default settings.
Before you execute the racadm config -f <filename> command, you can run the racreset subcommand to reset the iDRAC to its default settings. Ensure that the configuration file you will load includes all desired objects, users, indexes, and other parameters.
To update the iDRAC with the configuration file, execute the following command at the managed server's command prompt:
racadm config -f <filename>
After the command has completed, you can execute the RACADM getconfig subcommand to confirm that the update succeeded.

Configuring Multiple iDRACs

Using a configuration file, you can configure other iDRACs with identical properties. Follow these steps to configure multiple iDRACS:
  1. Create the configuration file from the iDRAC whose settings you want to replicate to the others. At a command prompt on the managed server, enter the following command:
racadm getconfig -f <filename>
where <filename> is the name of a file to save the iDRAC properties, such a myconfig.cfg.
See Creating an iDRAC Configuration File for more information.
NOTE: Some configuration files contain unique iDRAC information (such as the static IP address) that must be modified before you export the file to other iDRACs.
  1. Edit the configuration file you created in the previous step and remove or comment-out any settings you do not want to replicate.

  2. Copy the edited configuration file to a network drive where it is accessible to each managed server whose iDRAC you want to configure.

  3. For each iDRAC you want to configure:

    1. Log in to the managed server and start a command prompt.
    1. If you want to reconfigure the iDRAC from the default settings, enter the following command:
racadm racreset
    1. Load the configuration file into the iDRAC with the following command:
racadm config -f <filename>
where <filename> is the name of the configuration file you created. Include the full path if the file is not in the working directory.
    1. Reset the iDRAC that was configured by entering the following command:
racadm reset


2017年4月25日星期二

How to get the Windows product key without using third party software

Refer to http://winaero.com/blog/how-to-get-the-windows-product-key-without-using-third-party-software/


If you lost, cannot retrieve or forgot where you had stored the product key of your Windows 8.1, Windows 8 or Windows 7 OS, do not despair. I would like to show you a simple solution to extract your product key from the OS installed on your PC without using any third party software.

  1. Open Notepad.
  2. Copy and paste the following text into the notepad window
    function Get-WindowsKey {
        ## function to retrieve the Windows Product Key from any PC
        ## by Jakob Bindslet (jakob@bindslet.dk)
        param ($targets = ".")
        $hklm = 2147483650
        $regPath = "Software\Microsoft\Windows NT\CurrentVersion"
        $regValue = "DigitalProductId"
        Foreach ($target in $targets) {
            $productKey = $null
            $win32os = $null
            $wmi = [WMIClass]"\\$target\root\default:stdRegProv"
            $data = $wmi.GetBinaryValue($hklm,$regPath,$regValue)
            $binArray = ($data.uValue)[52..66]
            $charsArray = "B","C","D","F","G","H","J","K","M","P","Q","R","T","V","W","X","Y","2","3","4","6","7","8","9"
            ## decrypt base24 encoded binary data
            For ($i = 24; $i -ge 0; $i--) {
                $k = 0
                For ($j = 14; $j -ge 0; $j--) {
                    $k = $k * 256 -bxor $binArray[$j]
                    $binArray[$j] = [math]::truncate($k / 24)
                    $k = $k % 24
                }
                $productKey = $charsArray[$k] + $productKey
                If (($i % 5 -eq 0) -and ($i -ne 0)) {
                    $productKey = "-" + $productKey
                }
            }
            $win32os = Get-WmiObject Win32_OperatingSystem -computer $target
            $obj = New-Object Object
            $obj | Add-Member Noteproperty Computer -value $target
            $obj | Add-Member Noteproperty Caption -value $win32os.Caption
            $obj | Add-Member Noteproperty CSDVersion -value $win32os.CSDVersion
            $obj | Add-Member Noteproperty OSArch -value $win32os.OSArchitecture
            $obj | Add-Member Noteproperty BuildNumber -value $win32os.BuildNumber
            $obj | Add-Member Noteproperty RegisteredTo -value $win32os.RegisteredUser
            $obj | Add-Member Noteproperty ProductID -value $win32os.SerialNumber
            $obj | Add-Member Noteproperty ProductKey -value $productkey
            $obj
        }
    }
  3. Save the text above into a file with the ".ps1" extension on the Desktop.
    Bonus tip: To make sure that you saving the file with the ".ps1" extension, you can type its name with double quotes, for example, "GetProductKey.ps1".
    get product key
  4. Open the Powershell console as administrator by typing "powershell" in the search box of the Start Menu or right on the Start Screen and then press CTRL+SHIFT+Enter. This will open the elevated Powershell window.
  5. Enable the execution of local files which are not digitally signed. This can be done with the following command:
    Set-ExecutionPolicy RemoteSigned
    Press Enter to allow the execution policy to be changed.Windows PowerShell
  6. Now you should type the following command:
    Import-Module C:\Users\Winaero\Desktop\GetProductKey.ps1; Get-WindowsKey
    Note: Change the path to the GetProductKey.ps1 file in the command above, according to the location where you saved it.
  7. Voila, you product key is displayed on the screen!

2017年4月14日星期五

linux awk与shell 参数互传

http://blog.csdn.net/flyqwang/article/details/6947742





 "####################################memorycheck#######################################"
memory=`free -m | grep Mem`
read total used buffers cached<<< `echo "$memory" |awk '{print $2,$3,$6,$7}'` 
echo "$total $used $buffers $cached"


let "usedtrue=used-buffers-cached" percent=`echo "$usedtrue*100/$total"|bc`"%" echo "## MEMORY Used Percent: $percent"

2017年4月1日星期六

ftp modules for Cent 5.x and CentOS 6.x

Edit /etc/sysconfig/iptables-config, add the specified modules as following:

For CentOS 5.x
IPTABLES_MODULES="ip_nat_ftp ip_conntrack_ftp "

For CentOS 6.x
IPTABLES_MODULES="nf_nat_ftp nf_conntrack_ftp"


FTP 主动和被动模式区别:

FTP是仅基于TCP的服务,不支持UDP。与众不同的是FTP使用2个端口,一个数据端口和一个命令端口(也可叫做控制端口)。通常来说这两个端口是21(命令端口)和20(数据端口)。但FTP工作方式的不同,数据端口并不总是20。这就是主动与被动FTP的最大不同之处。

(一)主动FTP
主动方式的FTP是这样的:客户端从一个任意的非特权端口N(N&gt;1024)连接到FTP服务器的命令端口,也就是21端口。然后客户端开始监听端口N+1,并发送FTP命令“port N+1”到FTP服务器。接着服务器会从它自己的数据端口(20)连接到客户端指定的数据端口(N+1)。
针对FTP服务器前面的防火墙来说,必须允许以下通讯才能支持主动方式FTP:
1. 任何大于1024的端口到FTP服务器的21端口。(客户端初始化的连接)
2. FTP服务器的21端口到大于1024的端口。 (服务器响应客户端的控制端口)
3. FTP服务器的20端口到大于1024的端口。(服务器端初始化数据连接到客户端的数据端口)
4. 大于1024端口到FTP服务器的20端口(客户端发送ACK响应到服务器的数据端口)



(二)被动FTP
为了解决服务器发起到客户的连接的问题,人们开发了一种不同的FTP连接方式。这就是所谓的被动方式,或者叫做PASV,当客户端通知服务器它处于被动模式时才启用。
在被动方式FTP中,命令连接和数据连接都由客户端发起,这样就可以解决从服务器到客户端的数据端口的入方向连接被防火墙过滤掉的问题。
当开启一个 FTP连接时,客户端打开两个任意的非特权本地端口(N &gt; 1024和N+1)。第一个端口连接服务器的21端口,但与主动方式的FTP不同,客户端不会提交PORT命令并允许服务器来回连它的数据端口,而是提交 PASV命令。这样做的结果是服务器会开启一个任意的非特权端口(P &gt; 1024),并发送PORT P命令给客户端。然后客户端发起从本地端口N+1到服务器的端口P的连接用来传送数据。
对于服务器端的防火墙来说,必须允许下面的通讯才能支持被动方式的FTP:
1. 从任何大于1024的端口到服务器的21端口(客户端初始化的连接)
2. 服务器的21端口到任何大于1024的端口(服务器响应到客户端的控制端口的连接)
3. 从任何大于1024端口到服务器的大于1024端口(客户端初始化数据连接到服务器指定的任意端口)
4. 服务器的大于1024端口到远程的大于1024的端口(服务器发送ACK响应和数据到客户端的数据端口)
以上关于主动和被动FTP的解释,可以简单概括为以下两点:
1、主动FTP:
命令连接:客户端 &gt;1024端口 -&gt; 服务器 21端口
数据连接:客户端 &gt;1024端口 <- 服务器 20端口
2、被动FTP:
命令连接:客户端 >1024端口 -&gt; 服务器 21端口
数据连接:客户端 &gt;1024端口 -&gt; 服务器 &gt;1024端口
(三)主动与被动FTP优缺点:
主动FTP对FTP服务器的管理有利,但对客户端的管理不利。因为FTP服务器企图与客户端的高位随机端口建立连接,而这个端口很有可能被客户端的防火墙阻塞掉。被动FTP对FTP客户端的管理有利,但对服务器端的管理不利。因为客户端要与服务器端建立两个连接,其中一个连到一个高位随机端口,而这个端口很有可能被服务器端的防火墙阻塞掉。

iptables模块关系:
1、modprobe ip_tables
当 iptables 对 filter、nat、mangle 任意一个表进行操作的时候,会自动加载 ip_tables 模块
另外,iptable_filter、iptable_nat、iptable_mangle 模块也会自动加载。

2、modprobe ip_conntrack
ip_conntrack 是状态检测机制,state 模块要用到
当 iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 时,ip_conntrack 自动加载。

3、modprobe ip_conntrack_ftp
ip_conntrack_ftp 是本机做 FTP 时用的。
ip_nat_ftp 是通过本机的 FTP 需要用到的(若你的系统不需要路由转发,没必要用这个)
当 modprobe ip_nat_ftp 时,系统自动会加载 ip_conntrack_ftp 模块。

2017年2月16日星期四

2016年12月16日星期五

rsync同步的艺术

http://roclinux.cn/?p=2643


《rsync同步的艺术》

本原创文章属于《Linux大棚》博客。
博客地址为http://roclinux.cn。
文章作者为roc。
==
如果你是一位运维工程师,你很可能会面对几十台、几百台甚至上千台服务器,除了批量操作外,环境同步、数据同步也是必不可少的技能。
说到“同步”,不得不提的利器就是rsync,今天就来说说我从这个工具中看到的同步的艺术。
[不带任何选项]
我们经常这样使用rsync:
$ rsync main.c machineB:/home/userB
1 只要目的端的文件内容和源端不一样,就会触发数据同步,rsync会确保两边的文件内容一样。
2 但rsync不会同步文件的“modify time”,凡是有数据同步的文件,目的端的文件的“modify time”总是会被修改为最新时刻的时间。
3 rsync不会太关注目的端文件的rwx权限,如果目的端没有此文件,那么权限会保持与源端一致;如果目的端有此文件,则权限不会随着源端变更。
4 只要rsync有对源文件的读权限,且对目标路径有写权限,rsync就能确保目的端文件同步到和源端一致。
5 rsync只能以登陆目的端的账号来创建文件,它没有能力保持目的端文件的输主和属组和源端一致。(除非你使用root权限,才有资格要求属主一致、属组一致)
[-t选项]
我们经常这样使用-t选项:
$ rsync -t main.c machineB:/home/userB
1 使用-t选项后,rsync总会想着一件事,那就是将源文件的“modify time”同步到目标机器。

2 带有-t选项的rsync,会变得更聪明些,它会在同步前先对比两边文件的时间戳和文件大小,如果一致,则就认为两边文件一样,对此文件就不再采取更新动作了。
3 因为rsync的聪明,也会反被聪明误。如果目的端的文件的时间戳、大小和源端完全一致,但是内容恰巧不一致时,rsync是发现不了的。这就是传说中的“坑”!
4 对于rsync自作聪明的情况,解决办法就是使用-I选项。
[-I选项]
我们经常这样使用-I选项:
$ rsync -I main.c machineB:/home/userB
1 -I选项会让rsync变得很乖很老实,它会挨个文件去发起数据同步。
2 -I选项可以确保数据的一致性,代价便是速度上会变慢,因为我们放弃了“quick check”策略。(quick check策略,就是先查看文件的时间戳和文件大小,依次先排除一批认为相同的文件)
3 无论情况如何,目的端的文件的modify time总会被更新到当前时刻。
【-v选项】
这个选项,简单易懂,就是让rsync输出更多的信息,我们可以举一个例子:
$ rsync -vI main.c machineB:/home/userB                                                   
main.c

sent 81 bytes  received 42 bytes  246.00 bytes/sec
total size is 11  speedup is 0.09
你增加越多的v,就可以获得越多的日志信息。
$ rsync -vvvvt abc.c machineB:/home/userB 
cmd= machine=machineB user= path=/home/userB
cmd[0]=ssh cmd[1]=machineB cmd[2]=rsync cmd[3]=--server cmd[4]=-vvvvte. cmd[5]=. cmd[6]=/home/userB 
opening connection using: ssh machineB rsync --server -vvvvte. . /home/userB 
note: iconv_open("ANSI_X3.4-1968", "ANSI_X3.4-1968") succeeded.
(Client) Protocol versions: remote=28, negotiated=28
(Server) Protocol versions: remote=30, negotiated=28
[sender] make_file(abc.c,*,2)
[sender] flist start=0, used=1, low=0, high=0
[sender] i=0  abc.c mode=0100664 len=11 flags=0
send_file_list done
file list sent
send_files starting
server_recv(2) starting pid=31885
recv_file_name(abc.c)
received 1 names
[receiver] i=0   abc.c mode=0100664 len=11
recv_file_list done
get_local_name count=1 /home/userB
recv_files(1) starting
generator starting pid=31885 count=1
delta transmission enabled
recv_generator(abc.c,0)
abc.c is uptodate
generate_files phase=1
send_files phase=1
recv_files phase=1
generate_files phase=2
send files finished
total: matches=0  hash_hits=0  false_alarms=0 data=0
generate_files finished
recv_files finished
client_run waiting on 14318

sent 36 bytes  received 16 bytes  104.00 bytes/sec
total size is 11  speedup is 0.21
_exit_cleanup(code=0, file=main.c, line=1031): entered
_exit_cleanup(code=0, file=main.c, line=1031): about to call exit(0)
[-z选项]
这是个压缩选项,只要使用了这个选项,rsync就会把发向对端的数据先进行压缩再传输。对于网络环境较差的情况下建议使用。
一般情况下,-z的压缩算法会和gzip的一样。
[-r选项]
我们在第一次使用rsync时,往往会遇到这样的囧境:
$ rsync superman machineB:/home/userB
skipping directory superman
如果你不额外告诉rsync你需要它帮你同步文件夹的话,它是不会主动承担的,这也正是rsync的懒惰之处。
所以,如果你真的想同步文件夹,那就要加上-r选项,即recursive(递归的、循环的),像这样:
$  rsync -r superman machineB:/home/userB
我们在上面的讲解中说过,如果时间戳和文件大小完全一致,只有文件内容不同,且你没有使用-I选项的话,那么,rsync是不会进行数据同步的。
那么,提个问题:“因为在Linux的世界里,文件夹也是文件,如果这类文件(文件夹)也只有内容不同,而时间戳和文件大小都相同,rsync会发现么?”
实验大家可以自己动手做,结论在这里告诉大家:
对于文件夹,rsync是会明察秋毫的,只要你加了-r选项,它就会恪尽职守的进入到文件夹里去检查,而不会只对文件夹本身做“quick check”的。
[-l选项]
如果我们要同步一个软链接文件,你猜rsync会提示什么?
$ ll
total 128
-rw-rw-r--  1 userA userA 11 Dec 26 07:00 abc.c
lrwxrwxrwx  1 userA userA  5 Dec 26 11:35 softlink -> abc.c
$ rsync softlink machineB:/home/userB
skipping non-regular file "softlink"
嗯,你猜对了,rsync又无情地拒绝了我们。它一旦发现某个文件是软链接,就会无视它,除非我们增加-l选项。
$ rsync -l softlink machineB:/home/userB
使用了-l选项后,rsync会完全保持软链接文件类型,原原本本的将软链接文件复制到目的端,而不会“follow link”到指向的实体文件。
如果我偏偏就想让rsync采取follow link的方式,那就用-L选项就可以了。你可以自己试试效果。
[-p选项]
这个选项的全名是“perserve permissions”,顾名思义,就是保持权限。
如果你不使用此选项的话,rsync是这样来处理权限问题的:
1 如果目的端没有此文件,那么在同步后会将目的端文件的权限保持与源端一致;
2 如果目的端已存在此文件,那么只会同步文件内容,权限保持原有不变。
如果你使用了-p选项,则无论如何,rsync都会让目的端保持与源端的权限一致的。
[-g选项和-o选项]
这两个选项是一对,用来保持文件的属组(group)和属主(owner),作用应该很清晰明了。不过要注意的一点是,改变属主和属组,往往只有管理员权限才可以。
[-D选项]
-D选项,原文解释是“preserve devices(root only)”,从字面意思看,就是保持设备文件的原始信息。由于博主没有实际体验过它的好处,所以没有太多发言权。
[-a选项]
1 -a选项是rsync里比较霸道的一个选项,因为你使用-a选项,就相当于使用了-rlptgoD这一坨选项。以一敌七,唯-a选项也。(在看了前文之后,你应该可以很轻松的理解这七个选项的作用了)
2 -a选项的学名应该叫做archive option,中文叫做归档选项。使用-a选项,就表明你希望采取递归方式来同步,且尽可能的保持各个方面的一致性。
3 但是-a选项也有阿克琉斯之踵,那就是-a无法同步“硬链接”情况。如果有这方面需求,要加上-H选项。
[–delete选项、–delete-excluded选项和–delete-after选项]
三个选项都是和“删除”有关的:
1 –delete:如果源端没有此文件,那么目的端也别想拥有,删除之。(如果你使用这个选项,就必须搭配-r选项一起)
2 –delete-excluded:专门指定一些要在目的端删除的文件。
3 –delete-after:默认情况下,rsync是先清理目的端的文件再开始数据同步;如果使用此选项,则rsync会先进行数据同步,都完成后再删除那些需要清理的文件。
看到这么多delete,你是否有点肝颤? 的确,在rsync的官方说明里也有这么一句话:
This option can be dangerous if used incorrectly!  
It is a very good idea to run first using the dry  run  option
(-n) to see what files would be deleted to make sure 
important files aren't listed.
从这句话里,我们学到了一个小技巧,那就是-n选项,它是一个吓唬人的选项,它会用受影响的文件列表来警告你,但不会真的去删除,这就让我们有了确认的机会和回旋的余地。我们看看实际用法吧:
$ rsync -n --delete -r . machineB:/home/userB/
deleting superman/xxx
deleting main.c
deleting acclink
[–exclude选项和–exclude-from选项]
如果你不希望同步一些东西到目的端的话,可以使用–exclude选项来隐藏,rsync还是很重视大家隐私的,你可以多次使用–exclude选项来设置很多的“隐私”。
如果你要隐藏的隐私太多的话,在命令行选项中设置会比较麻烦,rsync还是很体贴,它提供了–exclude-from选项,让你可以把隐私一一列在一个文件里,然后让rsync直接读取这个文件就好了。
[–partial选项]
这就是传说中的断点续传功能。默认情况下,rsync会删除那些传输中断的文件,然后重新传输。但在一些特别情况下,我们不希望重传,而是续传。
我们在使用中,经常会看到有人会使用-P选项,这个选项其实是为了偷懒而设计的。以前人们总是要手动写–partial –progress,觉得太费劲了,倒不如用一个新的选项来代替,于是-P应运而生了。有些读者会问–partial我知道作用了,可–progress是干什么用的呢?为什么很多人要使用它呢,它有那么大的吸引力?(真有…)
[–progress选项]
使用这个选项,rsync会显示出传输进度信息,有什么用呢,rsync给了一个很有意思的解释:
This gives a bored user something to watch.
好了,写了这么多,大家看的已经很乏味了,去实际用用–progress解解闷,是个不错的选择 ^_^
PS:后续会讲解有关rsync的–exclude的PATTERN语法。


==========================================================
语法
rsync [OPTION]... SRC DEST 
rsync [OPTION]... SRC [USER@]host:DEST 
rsync [OPTION]... [USER@]HOST:SRC DEST 
rsync [OPTION]... [USER@]HOST::SRC DEST 
rsync [OPTION]... SRC [USER@]HOST::DEST 
rsync://[USER@]HOST[:PORT]/SRC [DEST] 

对应于以上六种命令格式,rsync有六种不同的工作模式:
 拷贝本地文件。
当SRC和DES路径信息都不包含有单个冒号":"分隔符时就启动这种工作模式。如:rsync -a /data /backup 使用一个远程shell程序(如rsh、ssh)来实现将本地机器的内容拷贝到远程机器。
当DST路径地址包含单个冒号":"分隔符时启动该模式。如:rsync -avz *.c foo:src 使用一个远程shell程序(如rsh、ssh)来实现将远程机器的内容拷贝到本地机器。
当SRC地址路径包含单个冒号":"分隔符时启动该模式。如:rsync -avz foo:src/bar /data 从远程rsync服务器中拷贝文件到本地机。
当SRC路径信息包含"::"分隔符时启动该模式。如:rsync -av root@192.168.78.192::www /databack 从本地机器拷贝文件到远程rsync服务器中。
当DST路径信息包含"::"分隔符时启动该模式。如:rsync -av /databack root@192.168.78.192::www 列远程机的文件列表。这类似于rsync传输,不过只要在命令中省略掉本地机信息即可。如:rsync -v rsync://192.168.78.192/www

来自: http://man.linuxde.net/rsync

美国的肿瘤专科医院更是举世闻名,其中以位于德克萨斯州的MD安德森癌症中心(MD Anderson Cancer Center)为首,是世界公认的最好的肿瘤医院。MD安德森癌症中心领先于世界的优秀主要肿瘤专科有:肺癌、乳腺癌、白血病、膀胱癌、前列腺癌、子宫内膜癌、卵巢癌、头颈部癌、胰腺癌和黑色素瘤。同时安德森是世界上最大的肿瘤药物临床试验基地,全球最先进的肿瘤药物都是从安德森的临床试验出来的,安德森癌症中心的病人有很多机会使用世界上最先进的正在临床试验阶段的新型肿瘤药物(领先于其他病患几年的时间)。


《发生率》显示,全部25种重大疾病基本已经涵盖了多数的高发重疾险。而“6病种”,在全部25种重疾中占比居高不下,在较多年龄段中占比为60%-90%,最高的占比达94.5%。这6种病分别为恶性肿瘤、急性心肌梗塞、脑中风后遗症、重大器官移植术或造血干细胞移植术、冠状动脉搭桥术(或称冠状动脉旁路移植术)和终末期肾病(或称慢性肾功能衰竭尿毒症期)。
中国肿瘤登记中心2015年年报数据显示,目前我国癌症发病率为285.91/100000,每年我国新发癌症病例约312万,平均每分钟有6人被诊断为恶性肿瘤。《临床医师癌症杂志》近期发布的《2015年中国癌症统计》报道显示,2015年中国有429.2万例新发肿瘤病例和281.4万例死亡病例。
而恶性肿瘤,也是重疾险中理赔概率最高的。
富德生命人寿近期发布的重疾险理赔原因显示,重大疾病理赔中75%为癌症。重大疾病理赔案件中以癌症、急性心肌梗塞和脑中风后遗症为主,占比分别为75%、10%和5%。2015年因癌症发生的重大疾病理赔中,其中女性占比61%,男性占比39%。男性癌症中以肺癌、肝癌和胃癌为主,分别占男性癌症的15.67%、15.19%和9.72%;女性癌症中以乳腺癌、甲状腺癌和子宫颈癌为主,分别占女性癌症的26.38%、16.28%和10.34%。
2015年平安北京分公司重疾理赔十大出险原因显示,第一为恶性肿瘤(癌症)为65.0%,第二位是心肌梗塞(急性心肌梗死)为14.4%,第三位是脑中风或脑中风后遗症为5.4%,接下来分别是冠状动脉绕道手术(3.6%)、慢性肾衰竭(2.7%)、良性脑肿瘤(1.4%)、心脏瓣膜置换术(0.8%)、重要器官移植或造血干细胞移植术(0.8%)、肝病末期(0.6%)、系统性红斑狼疮(0.6%)。
而2014年广东友邦保险的大病数据显示,15种出险率最高的疾病分别是17.02%的甲状腺癌、14.36%的乳腺癌、8.46%的急性心肌梗塞、肺癌(6.5%)、肝癌(5.9%)、宫颈癌(5.23%)、白血病(4.03%)、胃癌(3.99%)、脑中风后遗症(3.84%)、良性脑肿瘤(2.66%)、子宫内膜癌(2.54%)、肾癌(2.31%)心脏瓣膜手术2.22%、终末期肾病2.00%、卵巢癌(1.97%)。
从这份数据中可以发现,在这15中出险率高的“重大疾病”中,以原位癌为主。原位癌是指上皮恶性肿瘤局限在皮肤或粘膜内,还未通过皮肤或粘膜下面的基底膜侵犯到周围组织。包括乳腺癌、子宫癌、卵巢癌、宫颈癌等。因此,女性在购买重疾险时,是否包含原位癌,比险种的数量更为重要。

Amazing Windows OS resources Share!!!

Almost all Windows OS List: https://www.heidoc.net/php/myvsdump_details.php?id=P1521F62172Ax64Lcn Latest keys:   https://bbs.kafan.cn/th...