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                                                             
      ---------------------------------------------------------------------