1 add

   add ׼ڵӵǰỰĵǰ
   

      ---------------------------------------------------------------------   
    ע⣺ ִ getbaselines Բ鿴õ SPP ׼б      
     й setattributes ϸϢ setattributes   
    ļ                                                                
                                                                              
    hpsum getbaselines --list hp.com                                          
                                                                              
    HP SUM ߿û׼б磺         
                                                                              
    Web ׼Ϣ                                                 
    1. ƣ Service Pack for ProLiant                                        
                    ļ spp.2014.02.0.B                         
                    汾 2014.02.0.B                                      
                    ڣ 2014  4  25                                   
    2. ƣ Service Pack for ProLiant                                        
                    ļ spp.2013.09.0.C                         
                    汾 2013.09.0.C                                      
                    ڣ 2014  4  30                                   
      ---------------------------------------------------------------------   

   Ϊбͷнڵ׼
   ṩ롣

   hpsum add [--nodes n1 [type=<node_type>] [user=<username>]
   [password=<userpassword>] [su_user=<su_user>]
   [su_password=<suuser_password>] [use_sudo=true]
   [switch_username=<Moonshot_switchA_username>]
   [switch_password=<Moonshot_switchA_password>]
   [switch_enable=<Moonshot_switchA_enable>]

   --baselines b1 [save_location=<directory>] [type=<baseline_type]

      ---------------------------------------------------------------------   
    ע⣺ HP SUM ʽ CLI ģʽԶӽڵ     
    ׼ ʽ CLI ģʽԶӹ 
    ڵ㡣 ʹ GUI ģʽӹ豸                            
      ---------------------------------------------------------------------   

    VC ڵ㣬ԣ oa_username 
   oa_password

  1.1 ﷨

   hpsum add --nodes n1 [type=<node_type>] user=<username>
   password=<userpassword>]

   hpsum add --baselines b1 [save_location=<directory>] [type
   <baseline_type>]

   hpsum add /baselines type=unc "\\UNC_PATH" unc_username=user
   unc_password=pwd

      ---------------------------------------------------------------------   
    ע⣺ Ҫʹͬһӻ׼ͽڵ㡣 ʹ         
                                                            
      ---------------------------------------------------------------------   

  1.2 

   add ṩѡ

   +------------------------------------------------------------------------+
   |                    | ˵                              |
   |-------------------------------------------+----------------------------|
   | hpsum                                     | HP SUM ű          |
   |                                           | ˲     |
   |-------------------------------------------+----------------------------|
   |                                           | ڵ   |
   | add                                       | ׼ӵ HP SUM |
   |                                           | ỰС                   |
   |-------------------------------------------+----------------------------|
   |                                        | ҪִӲ     |
   |                                           |  бе    |
   |                                           | ĿӦ         |
   |                                           | ÿո    |
   |                                           | Ϊнڵȫ   |
   |                                           | ָû  |
   |                                           | 롣                     |
   |                                           |                            |
   |                                           | domain_name localhost     |
   |                                           |                            |
   |                                           | ip 127.0.0.1              |
   |                                           |                            |
   | --nodes <nodeslist>                       | ipv6 ::1                  |
   |                                           |                            |
   |                                        | ӽڵ           |
   |                                           | ׼ Ҫʹͬһ |
   |                                           | ӻ׼ͽڵ㡣       |
   |                                           |                            |
   |                                           | Ҫ VC      |
   |                                           | ڵ㣬ʹ Enet ģ   |
   |                                           |  IP ַ        |
   |                                           | ͨ Enet ģ     |
   |                                           | °װ    |
   |                                           |  VC ģ飬       |
   |                                           |  FC ģ   |
   |                                           |                    |
   |-------------------------------------------+----------------------------|
   |                                        | ˲    |
   |                                           | ڵ͡ HP SUM ֧ |
   |                                           | ½ڵͣ                |
   |                                           |                            |
   |                                        | windows                       |
   |                                           |                            |
   |                                        | linux                         |
   |                                           |                            |
   |                                        | ilo                           |
   |                                           |                            |
   |                                        | virtual_connect - ʹ Enet ģ    |
   |                                        |  IP ַ     |
   |                                           | VC ڵҪʹ   |
   |                                           | oa_username             |
   |                                           | oa_password               |
   | type = <node type>                        |                            |
   |                                           | oa                         |
   |                                           |                            |
   |                                        | vmware                        |
   |                                           |                            |
   |                                        | hpux                          |
   |                                           |                            |
   |                                        | sas_switch                    |
   |                                           |                            |
   |                                        | fc_switch                     |
   |                                           |                            |
   |                                        | sd2                           |
   |                                           |                            |
   |                                        | moonshot                      |
   |                                           |                            |
   |                                           | unknown                    |
   |-------------------------------------------+----------------------------|
   |                                           | ṩڵ |
   | user=<user_name>                          | ûƾݡ  |
   |                                           | δ   |
   | 磺 user=john_doe@example.com    | ƾݣHP    |
   |                                           | SUM ʾ        |
   |                                           | û                  |
   |-------------------------------------------+----------------------------|
   |                                           | ڵû          |
   | password=<password>                       | ƾݡ  |
   |                                           | δ   |
   | 磺 password=userpassword        | ƾݣHP    |
   |                                           | SUM ʾ        |
   |                                           | 롣                  |
   |-------------------------------------------+----------------------------|
   | su_user=<super_userID>                    | ûû |
   |                                           |                      |
   | 磺 user=su_john_doe@example.com |                            |
   |-------------------------------------------+----------------------------|
   | su_password=<super_user_password>         | û |
   |                                           |                      |
   | 磺 password=su_userpassword  |                               |
   |-------------------------------------------+----------------------------|
   |                                        | ƾΪ sudo       |
   |                                           | ƾݡ               |
   |                                           |                            |
   | use_sudo                                  | ܵѡ         |
   |                                           |                            |
   |                                        |   o true                      |
   |                                           |                            |
   |                                        |   o false                     |
   |-------------------------------------------+----------------------------|
   |                                        | Moonshot  A        |
   |                                           | û B û |
   |                                           | 뽻 A   |
   |                                           | ֵͬ     |
   |                                           |       |
   |                                           |                   |
   | switch_username=<switch_a_username>    |                               |
   |                                           |    ---------------------   |
   |                                           |  ע⣺ ʹ    |
   |                                           |  setattributes       |
   |                                           |  佻 B   |
   |                                           |  ƾݡ                  |
   |                                           |    ---------------------   |
   |-------------------------------------------+----------------------------|
   |                                        | Moonshot  A        |
   |                                           | 롣 B   |
   |                                           | 뽻 A   |
   |                                           | ֵͬ     |
   |                                           |       |
   |                                           |                   |
   | switch_password=<switch_a_password>    |                               |
   |                                           |    ---------------------   |
   |                                           |  ע⣺ ʹ    |
   |                                           |  setattributes       |
   |                                           |  佻 B   |
   |                                           |  ƾݡ                  |
   |                                           |    ---------------------   |
   |-------------------------------------------+----------------------------|
   |                                           | Ϊ Moonshot ڵ   |
   |                                           |  A ͬ |
   | switch_enable=<enable_password>           | Խֵ |
   |                                           | ڽ A  B   |
   |                                           |               |
   |-------------------------------------------+----------------------------|
   |                                           |  VMware  |
   |                                           | ģʽʱ VMware vCenter |
   |                                           | ַ ʹ |
   |                                           | ЩԼ |
   | vcenter_host                              | vcenter_username        |
   |                                           | vcenter_password         |
   |                                           |      |
   |                                           | ģʽ VMware  |
   |                                           | ӡ         |
   |-------------------------------------------+----------------------------|
   |                                           | ڽ   |
   | vcenter_username                          |  VMware   |
   |                                           | ûʻ        |
   |-------------------------------------------+----------------------------|
   |                                           | ڽ        |
   | vcenter_password                          |  VMware     |
   |                                           | ӵʻ   |
   |                                           | 롣                      |
   |-------------------------------------------+----------------------------|
   |                                           | ܵѡ         |
   |                                           |                            |
   |                                        |   o true                      |
   |                                           |                            |
   | use_sshkey                                |   o false                  |
   |                                           |                            |
   |                                           |  Linux ڵ㡣 뽫      |
   |                                           | privatekeyfile          |
   |                                           | passphraseѡ |
   |                                           | һʹá              |
   |-------------------------------------------+----------------------------|
   |                                           | ˽Կ |
   | privatekeyfile=<PEM_file_absolute_path>   | Եַ    |
   |                                           | ˽Կ PEM |
   |                                           | ʽ                    |
   |-------------------------------------------+----------------------------|
   |                                        | ѡ          |
   | passphrase=<passphrase>                   | ˽Կͨ |
   |                                           |                        |
   |-------------------------------------------+----------------------------|
   |                                        | ʹô˲     |
   |                                           | ָĿ¼         |
   | --baselines <directory_path>              | ػ׼  |
   |                                           | Ҫ FTP   |
   |                                           |  HTTP ׼ʹ  |
   |                                           | save_location    |
   |-------------------------------------------+----------------------------|
   |                                           | Ҫб   |
   | save_location=<working_location>          |  FTP  HTTP ׼        |
   |                                           | Ŀ¼    |
   |-------------------------------------------+----------------------------|
   |                                        | ˲    |
   |                                           | ׼͡ HP SUM      |
   |                                           | ֧»׼ͣ   |
   |                                           |                            |
   |                                        | http                          |
   |                                           |                            |
   |                                        | ftp                           |
   | type=<baseline_type>                      |                            |
   |                                        | unc Windows            |
   |                                           |                            |
   |                                           |    ---------------------   |
   |                                           |  ע⣺ ȷ  |
   |                                           |  δ localhost ϵͳ |
   |                                           |   UNC Ŀ¼  |
   |                                           |    ---------------------   |
   |-------------------------------------------+----------------------------|
   |                                        | Ϊ UNC Ŀ¼·|
   | unc_username=<unc_username>               | û   |
   |                                           |  Windows        |
   |-------------------------------------------+----------------------------|
   |                                        | Ϊ UNC Ŀ¼·|
   | unc_password=<unc_password>               | 롣   |
   |                                           |  Windows        |
   |-------------------------------------------+----------------------------|
   |                                           | Ҫӵ |
   |                                        | ļơʹ      |
   |                                           | getbaselines /list |
   | bundle=<bundle_name>                      | ʾ     |
   |                                           | ļб |
   |                                           | 磬                   |
   |                                           | bundle=spp.2014.02.0.B    |
   |-------------------------------------------+----------------------------|
   |                                        | HTTP ׼    |
   |                                        | ʹø       |
   |                                           | ݲϵͳ    |
   |                                           |  HP SUM ص     |
   |                                           |  |
   |                                           | Чѡ         |
   | filter_os=<os_filter>                     |                            |
   |                                        |   o windows                   |
   |                                           |                            |
   |                                        |   o linux                     |
   |                                           |                            |
   |                                        |   o vmware                    |
   |                                           |                            |
   |                                           |   o hp-ux                  |
   +------------------------------------------------------------------------+

  1.3 ش

   +------------------------------------------------------------------------+
   | ش            | Windows | Linux | ı                        |
   |------------------------+---------+-------+-----------------------------|
   | SUCCESS_NO_REBOOT      | 0       | 0     | ɹ |
   |------------------------+---------+-------+-----------------------------|
   |                        |         |       | ѳɹɸ       |
   |                        |         |       | Ҫִи   |
   |                        |         |       |   |
   |                        |         |       | Ѵ״̬            |
   | SUCCESS_NOT_REQUIRED   | 3       | 3     |                             |
   |                        |         |       |    ----------------------   |
   |                        |         |       |  ע⣺ ڵ׼ |
   |                        |         |       |  Ѵڡ           |
   |                        |         |       |    ----------------------   |
   |------------------------+---------+-------+-----------------------------|
   | FAILURE_GENERAL        | -1      | 255   | ˳ |
   |                        |         |       | йϸϢ־  |
   |------------------------+---------+-------+-----------------------------|
   |                        |         |       | ˴   |
   | FAILURE_BAD_PARM       | -2      | 254   |  йϸϢ   |
   |                        |         |       | ־               |
   |------------------------+---------+-------+-----------------------------|
   | FAILURE_COMMAND_FAILED | -4      | 253   | ʧܡ |
   |                        |         |       | йϸϢ־      |
   +------------------------------------------------------------------------+

  1.4 ʾ

    Windows ʾ

   C:\>hpsum add /nodes 10.0.1.15 type=windows

   C:\>hpsum add /baselines type=ftp save_location=c:\temp\pfw
   bundle=spp.2014.02.0.B

   C:\>hpsum add /baselines type=http save_location=c:\temp\spp
   bundle=http://10.1.2.3/spp/hp/swpackages/bp002524.xml filter_os=linux

   C:\>hpsum add /nodes type=vc 10.0.1.16 user=Administrator password=12iso*help
   oa_username=Administrator oa_password=12iso*help

   C:\>hpsum add /nodes 10.0.1.4 type=vmware vcenter_host=10.0.1.20
   vcenter_username=Administrator vcenter_password=password

   C:\>hpsum add /nodes 10.1.2.3 type=virtual_connect oa_username=Administrator
   oa_password=mypassword1

    Linux ʾ

   $ ./hpsum add --nodes 10.0.1.16 type=linux

   $ ./hpsum add --baselines "/SPP/" "/tmp/myrepos/"

   $ ./hpsum add --baselines type=http save_location=c:\temp\spp
   bundle=http://10.1.2.3/spp/hp/swpackages/bp002524.xml filter_os=linux

   $ ./hpsum add --nodes type=vc 10.0.1.18 user=Administrator password=12iso*help
   oa_username=Administrator oa_password=12iso*help

   $ ./hpsum add --baselines type=ftp save_location=/tmp/pfw
   bundle=spp.2014.02.0.B

   $ ./hpsum add --nodes 10.0.1.4 type=vmware vcenter_host=10.0.1.20
   vcenter_username=Administrator vcenter_password=password

   $ ./hpsum add --nodes 10.1.2.3 type=virtual_connect
   oa_username=Administrator oa_password=mypassword1

      ---------------------------------------------------------------------   
    ע⣺ ڵΪ Linux  HP-UXʹ su_user          
    su_password ʹ use_sudo                                             
                                                                              
    磺                                                              
                                                                              
    hpsum add /nodes 192.168.1.1 type=Linux user=user password=password       
    su_user=user1 su_password=password1                                       
                                                                              
    hpsum add /nodes 192.168.1.1 type=Linux user=user password=password       
    use_sudo=true                                                             
      ---------------------------------------------------------------------   
