UserVars.ESXiShellTimeOut

I'm having some problem with UserVars.ESXiShellTimeOut

$Shelltimeout

= Get-VMHost | Select Name, @{N='settings';} {E={(Get VMHostAdvancedConfiguration -$vmhost $vmh -name UserVars.ESXiShellTimeOut) values}}

$Shelltimeout.settings is empty.

but

Get-VMHost | Get-VMHostAdvancedConfiguration-name uservars.esxishelltimeout

works very well

Value name
----                           -----
UserVars.ESXiShellTimeOut 0
UserVars.ESXiShellTimeOut 12000

ESXi 5.0 version...

Thanks for all the help!

Try this version update of the script

$HostData = @()
$vmhs = Get-VMHost
foreach($vmh in $vmhs){
  $myItem = "" | Select VC , Host , Version, Shelltimeout  $myItem.Host = $vmh.Name  $myItem.VC = $defaultviserver.Name  $myItem.Version = $vmh.Version  $myItem.Shelltimeout = Get-VMHostAdvancedConfiguration -vmhost $vmh -name UserVars.ESXiShellTimeOut | Select -ExpandProperty Values  $HostData += $myItem}

$HostData

That should give you the values you are after

Tags: VMware

Similar Questions

  • ESXi 5.0 STIG (increased security)

    I did the security hardening on a host ESXi 5 (test area), and I can't know what part is to complete the shell ESXi service stop to keep downtime.  Lock mode is not enabled, the SSH service is running when I look at the graphical interface, and when I have F2 and connection via the DCUI it shows that the 'ESXi Shell is activated.  Under this same box, it shows "SSH is enabled", and under the firewall, the SSH server is enabled and running.

    I hope that someone knows exactly what it is, of course, I changed some sshd_config files and such, but I'm not if that it affects.  It isn't causing a problem since it is just a test host, but I have gone through all these pages, I just can't understand what prevents this.

    I need to make a correction.  When I log in the DCUI under same if 'Options Mode Troubleshooting"I have activate the ESXi here environment, in a second or two, it gets back to disabled.

    Did you change the options of ESXiShellInteractiveTimeOut or ESXiShellTimeOut? These settings can reset a manually activated shell. Check the values with these commands:

    # esxcfg - advcfg - g/UserVars/ESXiShellInteractiveTimeOut

    # esxcfg - advcfg - g/UserVars/ESXiShellTimeOut

    See also:

    http://blogs.VMware.com/vSphere/2012/09/vSphere-5-1-new-esxishellinteractivetimeout.html

  • ESXi5 + OMSA 6.5 UserVars.CIMoemProviderEnabled is not displayed

    Hello

    I'm busy trying to install OMSA 6.5 on my newly installed ESXi5 server and then enable the UserVars.CIMoemProviderEnabled setting to allow me to connect to openmanage without the need of distributed web server. I installed OMSA 6.5, twice to be certain, and again the UserVars.CIMoemProviderEnabled parameter not does not appear in the settings of the advanced software. Has anyone tried this and got the advanced settings parameter is displayed?

    Little bit of background for those who are unaware of the information (blog article next time get it all working)

    Reference Dell OMSA 6.5 with VMware ESXi5 blog post dell.to/qRLXhs

    Managed node installation don't need bit.ly/gULtJz DMC

    VIB esxcli installation of the standard steps that I followed:

    1 . copy the Dell_OpenManage_ESXi_OM650-offline_bundle - 467660.zip

    file in the folder/var/log/vmware on the server ESXi5.0.

    2 . close all comments on the ESXi host operating systems and run the ESXi

    host in maintenance mode.

    3 if you are using Windows, go to the directory in which you

    installed utilities vSphere CLI to execute the specified command

    to step 4.

    If you are using vSphere CLI on Linux, you can run the command in step 4

    of any directory.

    4 . run the following command:

    esxcli - Server <IP address of ESXi 5.0 host>

    VIb software install d/var/log/vmware / <Dell

    OpenManage file>

    5 . type the username root and the password of the ESXi host when you are prompted.

    The output of the command shows a successful update.

    6 . restart the ESXi host system.

    Gregg

    Well, it seems to work.  I mentioned before about the new Uservar "UserVars.CIMvmw_OpenManageProviderEnabled", and it seems that maybe the way they do with ESXi5.  After the installation of the agent of the OMSA mentioned in your message, Uservar appears.  After him, the Dell management Plugin connects successfully to the agent of the OMSA.

  • ESXi 6 / vCenter 6 - SSLv3

    Hello

    Is it possible (as in 5.5u3b) to reactivate SSLv3 on port 443 for 6.0 ESXi and vCenter 6.0?

    Just found the solution for ESXi 6.0:

    Authd - Port 902

    esxcli Control Panel advanced set o/UserVars/VMAuthdDisabledProtocols s «»

    Pass - rhttpproxy - Port 443

    esxcli Control Panel advanced set o/UserVars/ESXiRhttpproxyDisabledProtocols s «»

    restart the /etc/init.d/rhttpproxy

    And for vCenter 6.0:

    / etc/VMware-rhttpproxy/config. XML

    Edit the file to add or remove 16924672 to enable or disable SSLv3 respectively:


    ...


    ...
    16924672

    ...

    restart the /etc/init.d/VMware-rhttpproxy

  • SmartView API V 11.1.2.2.300

    Could someone post the vb api for Smartview 11.1.2.2.300?

    I know that it is usually installed in the bin on my C drive, but the company I am train has not allowed access to the C drive.

    Attribute VB_Name = "SmartViewVBA".
    "Copyright (c) 1992, 2012, Oracle and/or its affiliates." All rights reserved.
    '
    "THE RESTRICTED RIGHTS LEGEND:
    ' Use, duplication, or disclosure by the Government is subject to
    "restrictions set forth in paragraph (c) (1) (ii) rights
    ' in the Technical Data and Computer Software DFARS 252.227 - 7013 clause,.
    "or the clause rights Commercial Computer Software restricted to.
    "Far 52.227 - 19, as the case may be."
    '
    "Oracle Corporation".
    "5450 Great America Parkway;" Santa Clara, CA 95054, United States USA
    '
    'VBA Smartview function declaration.

    '**************************************************************************
    "The global constants for outline question types.
    '**************************************************************************

    Global Const HYP_CHILDREN = 1
    Global Const HYP_DESCENDANTS = 2
    Global Const HYP_BOTTOMLEVEL = 3
    Global Const HYP_SIBLINGS = 4
    Global Const HYP_SAMELEVEL = 5
    Global Const HYP_SAMEGENERATION = 6
    Global Const HYP_PARENT = 7
    Global Const HYP_DIMENSION = 8
    Global Const HYP_NAMEDGENERATION = 9
    Global Const HYP_NAMEDLEVEL = 10
    Global Const HYP_SEARCH = 11
    Global Const HYP_WILDSEARCH = 12
    Global Const HYP_USERATTRIBUTE = 13
    Global Const HYP_ANCESTORS = 14
    Global Const HYP_DTSMEMBER = 15
    Global Const HYP_DIMUSERATTRIBUTES = 16

    '**************************************************************************
    "The global constants for query hierarchical member.
    '**************************************************************************

    Global Const HYP_COMMENT = 1
    Global Const HYP_FORMULA = 2
    Global Const HYP_UDA = 3
    Global Const HYP_ATTRIBUTE = 4

    '**************************************************************************
    «Global constants for hierarchical member query options»
    '**************************************************************************

    Global Const HYP_MEMBERSONLY = 1
    Global Const HYP_ALIASESONLY = 2
    Global Const HYP_MEMBERSANDALIASES = 4

    '**************************************************************************
    "The global constants for the ID of the version info.
    '**************************************************************************

    Global Const BUILD_VERSION = 'VERSION '.
    Global Const BUILD_NUMBER = 'BUILD No.'
    Global Const BUILD_DATE = "DATE construction".
    Global Const PRODUCT_ID = "PRODUCT ID".

    '**************************************************************************
    "The global constants for supported data providers.
    '**************************************************************************

    Global Const HYP_ANALYTIC_SERVICES = "Analytic Provider Services.
    Global Const HYP_FINANCIAL_MANAGEMENT = "Hyperion Financial Management."
    Global Const HYP_ESSBASE = "Essbase.
    Global Const HYP_PLANNING = "schedule".
    Global Const HYP_OBIEE = "OBIEE.
    Global Const HYP_ENTERPRISE = "Hyperion Enterprise."
    Global Const HYP_RA = 'Hyperion Smart View provider for Hyperion Reporting' and analysis

    '**************************************************************************
    "The global constants for members information name of the property.
    '**************************************************************************
    Global Const HYP_MI_NAME = 'name '.
    Global Const HYP_MI_DIM = "Dim".
    Global Const HYP_MI_LEVEL = 'level '.
    Global Const HYP_MI_GENERATION = 'Generation '.
    Global Const HYP_MI_PARENT_MEMBER_NAME = "ParentMbrName".
    Global Const HYP_MI_CHILD_MEMBER_NAME = "ChildMbrName".
    Global Const HYP_MI_PREVIOUS_MEMBER_NAME = "PrevMbrName".
    Global Const HYP_MI_NEXT_MEMBER_NAME = "NextMbrName".
    Global Const HYP_MI_CONSOLIDATION = 'Consolidation '.
    Global Const HYP_MI_IS_TWO_PASS_CAL_MEMBER = "IsTwoPassCalcMbr".
    Global Const HYP_MI_IS_EXPENSE_MEMBER = "IsExpenseMbr".
    Global Const HYP_MI_CURRENCY_CONVERSION_TYPE = "CurrencyConversionType".
    Global Const HYP_MI_CURRENCY_CATEGORY = "CurrencyCategory".
    Global Const HYP_MI_TIME_BALANCE_OPTION = "TimeBalanceOption".
    Global Const HYP_MI_TIME_BALANCE_SKIP_OPTION = "TimeBalanceSkipOption".
    Global Const HYP_MI_SHARE_OPTION = "interest".
    Global Const HYP_MI_STORAGE_CATEGORY = "StorageCategory".
    Global Const HYP_MI_CHILD_COUNT = "ChildCount.
    Global Const HYP_MI_ATTRIBUTED = "attributed".
    Global Const HYP_MI_RELATIONAL_DESCENDANT_PRESENT = "RelDescendantPresent".
    Global Const HYP_MI_RELATIONAL_PARTITION_ENABLED = "RelPartitionEnabled".
    Global Const HYP_MI_DEFAULT_ALIAS = "DefaultAlias.
    Global Const HYP_MI_HIERARCHY_TYPE = "HierarchyType.
    Global Const HYP_MI_DIM_SOLVE_ORDER = "DimSolveOrder".
    Global Const HYP_MI_IS_DUPLICATE_NAME = "IsDuplicateName".
    Global Const HYP_MI_UNIQUE_NAME = "UniqueName.
    Global Const HYP_MI_ORIGINAL_MEMBER = "OrigMember".
    Global Const HYP_MI_IS_FLOW_TYPE = "IsFlowType".
    Global Const HYP_MI_AGGREGATE_LEVEL = "AggLevel".
    Global Const HYP_MI_FORMAT_STRING = "FormatString".
    Global Const HYP_MI_ATTRIBUTE_DIMENSIONS = "AttributeDims".
    Global Const HYP_MI_ATTRIBUTE_MEMBERS = "AttributeMbrs".
    Global Const HYP_MI_ATTRIBUTE_TYPES = 'AttributeTypes '.
    Global Const HYP_MI_ALIAS_NAMES = "AliasNames.
    Global Const HYP_MI_ALIAS_TABLES = "AliasTables".
    Global Const HYP_MI_FORMULA = "Formula".
    Global Const HYP_MI_COMMENT = "comment".
    Global Const HYP_MI_LAST_FORMULA = "LastFormula".
    Global Const HYP_MI_UDAS = "Edu".

    '**************************************************************************
    "Enumeration of Type of the linked object
    '**************************************************************************
    TYPE_OF_LRO Enumeration
    CELL_NOTE_LRO = 1
    FILE_LRO = 2
    URL_LRO = 3
    End Enum

    '**************************************************************************
    ' Enumeration of the types of journal content
    '**************************************************************************

    TYPE_OF_CONTENTS_IN_SHEET Enumeration
    EMPTY_SHEET
    ADHOC_SHEET
    FORM_SHEET
    INTERACTIVE_REPORT_SHEET
    End Enum

    '**************************************************************************
    ' Enumeration of the Smart View Error Codes
    '**************************************************************************

    SmartViewErrors Enumeration
    SS_ERR_ERROR = 4
    SS_NO_GRID_ON_SHEET_BUT_FUNCTIONS_SUBMITTED = 2
    SS_SHEET_NOT_CONNECTED_BUT_FUNCTIONS_SUBMITTED = 1
    SS_OK = 0
    SS_INIT_ERR = - 1
    SS_TERM_ERR = - 2
    SS_NOT_INIT = - 3
    SS_NOT_CONNECTED = - 4
    SS_NOT_LOCKED = - 5
    SS_INVALID_SSTABLE = - 6
    SS_INVALID_SSDATA = - 7
    SS_NOUNDO_INFO = - 8
    SS_CANCELED = - 9
    SS_GLOBALOPTS = - 10
    SS_SHEETOPTS = - 11
    SS_NOTENABLED = - 12
    SS_NO_MEMORY = - 13
    SS_DIALOG_ERROR = - 14
    SS_INVALID_PARAM = - 15
    SS_CALCULATING = - 16
    SS_SQL_IN_PROGRESS = - 17
    SS_FORMULAPRESERVE = - 18
    SS_INTERNALSSERROR = - 19
    SS_INVALID_SHEET = - 20
    SS_NOACTIVESHEET = - 21
    SS_NOTCALCULATING = - 22
    SS_INVALIDSELECTION = - 23
    SS_INVALIDTOKEN = - 24
    SS_CASCADENOTALLOWED = - 25
    SS_NOMACROS = - 26
    SS_NOREADONLYMACROS = - 27
    SS_READONLYSS = - 28
    SS_NOSQLACCESS = - 29
    SS_MENUALREADYREMOVED = - 30
    SS_MENUALREADYADDED = - 31
    SS_NOSPREADSHEETACCESS = - 32
    SS_NOHANDLES = - 33
    SS_NOPREVCONNECTION = - 34
    SS_LROERROR = - 35
    SS_LROWINAPPACCESSERR = - 36
    SS_DATANAVINITERR = - 37
    SS_PARAMSETNOTALLOWED = - 38
    SS_SHEET_PROTECTED = - 39
    SS_CALCSCRIPT_NOTFOUND = - 40
    SS_NOSUPPORT_PROVIDER = - 41
    SS_INVALID_ALIAS = - 42
    SS_CONN_NOT_FOUND = - 43
    SS_APS_CONN_NOT_FOUND = - 44
    SS_APS_NOT_CONNECTED = - 45
    SS_APS_CANT_CONNECT = - 46
    SS_CONN_ALREADY_EXISTS = - 47
    SS_APS_URL_NOT_SAVED = - 48
    SS_MIGRATION_OF_CONN_NOT_ALLOWED = - 49
    SS_CONN_MGR_NOT_INITIALIZED = - 50
    SS_FAILED_TO_GET_APS_OVERRIDE_PROPERTY = - 51
    SS_FAILED_TO_SET_APS_OVERRIDE_PROPERTY = - 52
    SS_FAILED_TO_GET_APS_URL = - 53
    SS_APS_DISCONNECT_FAILED = - 54
    SS_OPERATION_FAILED = - 55
    SS_CANNOT_ASSOCIATE_SHEET_WITH_CONNECTION = - 56
    SS_REFRESH_SHEET_NEEDED = - 57
    SS_NO_GRID_OBJECT_ON_SHEET = - 58
    SS_NO_CONNECTION_ASSOCIATED = - 59
    SS_NON_DATA_CELL_PASSED = - 60
    SS_DATA_CELL_IS_NOT_WRITABLE = - 61
    SS_NO_SVC_CONTENT_ON_SHEET = - 62
    SS_FAILED_TO_GET_OFFICE_OBJECT = - 63
    SS_OP_FAILED_AS_CHART_IS_SELECTED = - 64
    SS_EXCEL_IN_EDIT_MODE = - 65
    SS_SHEET_NON_SMARTVIEW_COMPATIBLE = - 66
    SS_APP_NOT_STANDALONE = - 67
    SS_SMART_VIEW_DISABLED = - 68
    SS_VBA_DEPRECATED = - 69
    SS_OPERATION_NOT_SUPPORTED_IN_MULTIGRID_MODE = - 70
    SS_INVALID_MEMBER = - 71
    SS_NO_SV_NAME_RANGE = - 72
    SS_AMBIGUOUS_MENU = - 73
    End Enum

    '**************************************************************************
    'Enumeration of the index options to use for HypGetOption/HypSetOption.
    '**************************************************************************

    HYP_SVC_OPTIONS_INDEX Enumeration
    HSV_ZOOMIN = 1
    HSV_INCLUDE_SELECTION
    HSV_WITHIN_SELECTEDGROUP
    HSV_REMOVE_UNSELECTEDGROUP
    HSV_INDENTATION
    HSV_SUPPRESSROWS_MISSING
    HSV_SUPPRESSROWS_ZEROS
    HSV_SUPPRESSROWS_UNDERSCORE
    HSV_SUPPRESSROWS_NOACCESS
    HSV_SUPPRESSROWS_REPEATEDMEMBERS
    HSV_SUPPRESSROWS_INVALID
    HSV_ANCESTOR_POSITION
    HSV_MISSING_LABEL
    HSV_NOACCESS_LABEL
    HSV_CELL_STATUS
    HSV_MEMBER_DISPLAY
    HSV_INVALID_LABEL
    HSV_SUBMITZERO
    HSV_19 ' unused reserved for later use.
    HSV_20
    HSV_PRESERVE_FORMULA_COMMENT
    HSV_22
    HSV_FORMULA_FILL
    HSV_EXCEL_FORMATTING = 30
    HSV_RETAIN_NUMERIC_FORMATTING
    HSV_THOUSAND_SEPARATOR
    HSV_NAVIGATE_WITHOUTDATA
    HSV_ENABLE_FORMATSTRING
    HSV_ENHANCED_COMMENT_HANDLING
    HSV_ADJUSTCOLUMNWIDTH
    HSV_DECIMALPLACES
    HSV_SCALE
    HSV_MOVEFORMATS_ON_ADHOC
    HSV_DISPLAY_INVALIDDATA
    HSV_SUPPRESSCOLUMNS_MISSING
    HSV_SUPPRESSCOLUMNS_ZEROS
    HSV_SUPPRESSCOLUMNS_NOACCESS
    HSV_SUPPRESS_MISSINGBLOCKS
    HSV_DOUBLECLICK_FOR_ADHOC = 101
    HSV_UNDO_ENABLE
    HSV_103
    HSV_LOGMESSAGE_DISPLAY
    HSV_ROUTE_LOGMESSAGE_TO_FILE
    HSV_CLEAR_LOG_ON_NEXTLAUNCH
    HSV_REDUCE_EXCEL_FILESIZE
    HSV_ENABLE_RIBBON_CONTEXT
    HSV_DISPLAY_HOMEPANEL_ONSTARTUP
    HSV_SHOW_COMMENTDIALOG_ON_REFRESH
    HSV_NUMBER_OF_UNDO_ACTION
    HSV_NUMBER_OF_MRU_ITEMS
    HSV_ROUTE_LOGMESSAGE_FILE_LOCATION
    HSV_DISABLE_SMARTVIEW_IN_OUTLOOK
    HSV_DISPLAY_SMARTVIEW_SHORTCUT_MENU_ONLY
    HSV_DISPLAY_DRILL_THROUGH_REPORT_TOOLTIP
    HSV_SHOW_PROGRESSINFORMATION
    HSV_PROGRESSINFO_TIMEDELAY
    HSV_ENABLE_PROFILING
    End Enum

    DIMENSION_TYPE Enumeration
    ROW_DIM = 0
    COL = 1
    POV = 2
    PAGE = 3
    USERVAR = 5
    End Enum

    "This method is for the 64-bit version of Microsoft office.
    #If VBA7 then

    '**************************************************************************
    "The functions in the menu.
    '**************************************************************************

    Public declare function HypMenuVAbout Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVAdjust Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVBusinessRules Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVCalculation Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVCellText Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVCollapse Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVConnect Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVCopyDataPoints Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVExpand Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVFunctionBuilder Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVInstruction Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVKeepOnly Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVMemberSelection Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVOptions Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVPasteDataPoints Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVPivot Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVPOVManager Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVQueryDesigner Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRedo Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRefresh Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRefreshAll Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRefreshOfflineDefinition Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRemoveOnly Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRulesOnForm Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVRunReport Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVSelectForm Lib "HsAddin" () PtrSafe as long
    Public Declare PtrSafe Function HypMenuVShowHelpHtml Lib "HsAddin" (ByVal vtHelpPage As Variant) As Long
    Public declare function HypMenuVSubmitData Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVSupportingDetails Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVSyncBack Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVTakeOffline Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVUndo Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVVisualizeinExcel Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVZoomIn Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVZoomOut Lib "HsAddin" () PtrSafe as long
    Public Declare PtrSafe Function HypMenuVMigrate Lib "HsAddin" (ByVal vtOption As Variant, ByRef vtOutput As Variant) As Long
    Public declare function HypMenuVLRO Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVCascadeSameWorkbook Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVCascadeNewWorkbook Lib "HsAddin" () PtrSafe as long
    Public declare function HypMenuVMemberInformation Lib "HsAddin" () PtrSafe as long
    Public Declare PtrSafe Function HypExecuteMenu Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMenuName As Variant) As Long
    Public Declare PtrSafe Function HypHideRibbonMenu Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray vtMenus() As Variant) As Long
    Public Declare PtrSafe Function HypHideRibbonMenuReset Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    '**************************************************************************
    "General functions.
    '**************************************************************************

    Public Declare PtrSafe Function HypCopyMetaData Lib "HsAddin" (ByVal vtSourceSheetName As Variant _
    ByVal vtDestinationSheetName As Variant) As Long

    Public Declare PtrSafe Function HypDeleteMetaData Lib "HsAddin" (ByVal vtDispObject As Variant _
    ByVal vtbWorkbook As Variant _
    ByVal vtbClearMetadataOnAllSheetsWithinWorkbook As Variant) As Long

    Public Declare PtrSafe Function HypGetSubstitutionVariable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtVariableName As Variant _
    ByRef vtVariableNames As Variant _
    ByRef vtVariableValues As Variant) As Long

    Public Declare PtrSafe Function HypIsDataModified Lib "HsAddin" (ByVal vtSheetName As Variant) As Boolean

    Public Declare PtrSafe Function HypIsFreeForm Lib "HsAddin" (ByVal vtSheetName As Variant) As Boolean

    Public Declare PtrSafe Function HypIsSmartViewContentPresent Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtTypeOfContentsInSheet As TYPE_OF_CONTENTS_IN_SHEET) As Boolean

    Public Declare PtrSafe Function HypPreserveFormatting Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare PtrSafe Function HypRedo Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare PtrSafe Function HypRemovePreservedFormats Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtbRemoveAllCapturedFormats As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare PtrSafe Function HypSetAliasTable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtAliasTableName As Variant) As Long

    Public Declare PtrSafe Function HypSetMenu Lib "HsAddin" (ByVal bSetMenu As Boolean) As Long

    Public Declare PtrSafe Function HypShowPov Lib "HsAddin" (ByVal bShowPov As Boolean) As Long

    Public Declare PtrSafe Function HypSetSubstitutionVariable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtVariableName As Variant _
    ByVal vtVariableValue As Variant) As Long

    Public Declare PtrSafe Function HypUndo Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare PtrSafe Function HypShowPanel Lib "HsAddin" (ByVal bShow As Boolean) As Long

    Public Declare PtrSafe Function HypGetLastError Lib "HsAddin" (ByRef vtErrorCode As Variant, vtErrorMessage As Variant ByRef, ByRef vtErrorDescription As Variant) As Long

    Public Declare PtrSafe Function HypGetVersion Lib "HsAddin" (ByVal _ As Variant vtID
    ByRef vtValueList As Variant, ByVal vtVersionInfoFileCommand As Variant) As Long

    Public Declare PtrSafe Function HypGetDatabaseNote Lib "HsAddin" (ByVal vtSheetName As Variant, ByRef vtDBNote As Variant) As Long

    '**************************************************************************
    "Functions of connection."
    '**************************************************************************

    Public Declare PtrSafe Function HypConnect Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypUIConnect Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypConnected Lib "HsAddin" (ByVal vtSheetName As Variant) As Variant

    Public Declare PtrSafe Function HypConnectionExists Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Variant

    Public Declare PtrSafe Function HypCreateConnection Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtProvider As Variant _
    ByVal vtProviderURL As Variant _
    ByVal vtServerName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtFriendlyName As Variant _
    ByVal vtDescription As Variant) As Long
                                                              
    Public Declare PtrSafe Function HypCreateConnectionEx Lib "HsAddin" (ByVal vtProviderType As Variant _
    ByVal vtServerName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtFormName As Variant _
    ByVal vtProviderURL As Variant _
    ByVal vtFriendlyName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtDescription As Variant _
    ByVal vtReserved1 As Variant _
    ByVal vtReserved2 As Variant) As Long

    Public Declare PtrSafe Function HypDisconnect Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal bLogoutUser As Boolean) As Long

    Public declare function HypDisconnectAll Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypDisconnectEx Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypGetSharedConnectionsURL Lib "HsAddin" (ByRef vtSharedConnURL As Variant) As Long

    Public declare function HypInvalidateSSO Lib "HsAddin" () PtrSafe as long

    Public declare function HypIsConnectedToSharedConnections Lib "HsAddin" () as Variant PtrSafe

    Public Declare PtrSafe Function HypRemoveConnection Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypResetFriendlyName Lib "HsAddin" (ByVal vtOldFriendlyName As Variant _
    ByVal vtNewFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypSetActiveConnection Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypSetAsDefault Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypSetConnAliasTable Lib "HsAddin" (ByVal vtFriendlyName As Variant _
    ByVal vtAliasTableName As Variant) As Long

    Public Declare PtrSafe Function HypSetSharedConnectionsURL Lib "HsAddin" (ByVal vtSharedConnURL As Variant) As Long

    '**************************************************************************
    'Ad Hoc functions
    '**************************************************************************

    Public Declare PtrSafe Function HypExecuteQuery Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMDXQuery As Variant) As Long

    Public Declare PtrSafe Function HypKeepOnly Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare PtrSafe Function HypPivot Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtStart As Variant _
    ByVal vtEnd As Variant) As Long
                                                   
    Public Declare PtrSafe Function HypPivotToGrid Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare PtrSafe Function HypPivotToPOV Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare PtrSafe Function HypRemoveOnly Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare PtrSafe Function HypRetrieve Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare PtrSafe Function HypRetrieveRange Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant _
    ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypRetrieveNameRange Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtGridName As Variant) As Long

    Public Declare PtrSafe Function HypGetNameRangeList Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtFriendlyName As Variant _
    ByRef vtNameList As Variant) As Long

    Public declare function HypRetrieveAllWorkbooks Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypSubmitData Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare PtrSafe Function HypZoomIn Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant _
    ByVal vtLevel As Variant _
    ByVal vtAcross As Variant) As Long

    Public Declare PtrSafe Function HypZoomOut Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare PtrSafe Function HypPerformAdhocOnForm Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtFormName As Variant) As Long

    '**************************************************************************
    "Train functions.
    '**************************************************************************

    Public Declare PtrSafe Function HypOpenForm Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtFolderPath As Variant _
    ByVal vtFormName As Variant _
    ByRef vtDimensionList() As Variant _
    ByRef vtMemberList() As Variant) As Long

    '**************************************************************************
    'Functions of the cells.
    '**************************************************************************

    Type LRO_Info
    lNumLRO As Long
    lNumDim As Long
    LROList as Variant
    End type

    Public Declare PtrSafe Function HypCell Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray MemberList() as Variant) as Variant

    Public Declare PtrSafe Function HypFreeDataPoint Lib "HsAddin" (ByRef vtInfo As Variant) As Long

    Public Declare PtrSafe Function HypGetCellRangeForMbrCombination Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtDimNames() As Variant _
    ByRef vtMbrNames() As Variant _
    ByRef vtCellIntersectionRange As Variant) As Long

    Public Declare PtrSafe Function HypGetDataPoint Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCell As Variant) As Variant

    Public Declare PtrSafe Function HypGetDimMbrsForDataCell Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCellRange As Variant _
    ByRef vtServerName As Variant _
    ByRef vtAppName As Variant _
    ByRef vtCubeName As Variant _
    ByRef vtFormName As Variant _
    ByRef vtDimensionNames As Variant _
    ByRef vtMemberNames As Variant) As Long

    Public Declare PtrSafe Function HypIsCellWritable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCellRange As Variant) As Boolean

    Public Declare PtrSafe Function HypSetCellsDirty Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypDeleteAllLROs Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare PtrSafe Function HypDeleteLROs Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByRef vtLROIDs() As Variant) As Long

    Public Declare PtrSafe Function HypAddLRO Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByVal vtlType As Variant _
    ByVal vtName As Variant _
    ByVal vtDescription As Variant) As Long

    Public Declare PtrSafe Function HypUpdateLRO Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    VtID As Variant, _ ByVal
    ByVal vtlType As Variant _
    ByVal vtName As Variant _
    ByVal vtDescription As Variant) As Long

    Public Declare PtrSafe Function HypListLROs Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByRef vtID As LRO_Info) As Long

    Public Declare PtrSafe Function HypRetrieveLRO Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    VtID As Variant, _ ByVal
    ByRef vtName As Variant _
    ByRef vtDescription As Variant) As Long

    Public Declare PtrSafe Function HypGetDrillThroughReports Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByRef vtIDs As Variant _
    ByRef vtNames As Variant _
    ByRef vtURLs As Variant _
    ByRef vtURLTemplates As Variant _
    ByRef vtTypes As Variant) As Long
                                                         
                                                         
    Public Declare PtrSafe Function HypExecuteDrillThroughReport Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    VtID As Variant, _ ByVal
    ByVal vtName As Variant _
    ByVal vtURL As Variant _
    ByVal vtURLTemplate As Variant _
    ByVal vtType As Variant) As Long

    '**************************************************************************
    'Functions POV.
    '**************************************************************************

    Public Declare PtrSafe Function HypGetPagePOVChoices Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByRef vtMbrNameChoices As Variant _
    ByRef vtMbrDescChoices As Variant) As Long

    Public Declare PtrSafe Function HypSetBackgroundPOV Lib "HsAddin" (ByVal vtFriendlyName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare PtrSafe Function HypSetPages Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare PtrSafe Function HypSetPOV Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare PtrSafe Function HypSetMembers Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ParamArray MemberList() as Variant) as long
    Public Declare Function HypGetPOV Lib "HsAddin" (ByVal vtSheetName _ PtrSafe
    ByRef vtDimensionNames As Variant _
    ByRef vtMemberNames As Variant, ByRef vtType As Variant) As Long
    Public Declare PtrSafe Function HypGetDimensions Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtMemberNames As Variant, ByRef vtType As Variant) As Long
    Public Declare PtrSafe Function HypGetMembers Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByRef vtMbrNameChoices As Variant _
    ByRef vtMbrDescChoices As Variant) As Long
                                                               
    Public Declare PtrSafe Function HypSetDimensions Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtDimNames() As Variant _
    ByRef vtTypes() As Variant) As Long

    Public Declare PtrSafe Function HypGetBackgroundPOV Lib "HsAddin" (ByVal vtFriendlyName As Variant _
    ByRef vtDimensionNames As Variant _
    ByRef vtMemberNames As Variant) As Long
          
    Public Declare PtrSafe Function HypGetActiveMember Lib "HsAddin" (ByVal vtDimName As Variant _
    ByRef vtMember As Variant) As Long
          
    Public Declare PtrSafe Function HypSetActiveMember Lib "HsAddin" (ByVal vtDimName As Variant _
    ByVal vtMember As Variant) As Long

    '**************************************************************************
    "Calculation script / functions of business rule.
    '**************************************************************************

    Public Declare PtrSafe Function HypDeleteCalc Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtCalcScript As Variant) As Long

    Public Declare PtrSafe Function HypExecuteCalcScript Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCalcScript As Variant _
    ByVal vtSynchronous As Variant) As Long
                                                                   
    Public Declare PtrSafe Function HypExecuteCalcScriptEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCubeName As Variant _
    ByVal vtBRName As Variant _
    ByVal vtBRType As Variant _
    ByVal vtbBRHasPrompts As Variant _
    ByVal vtbBRNeedPageInfo As Variant _
    ByRef vtRTPNames() As Variant _
    ByRef vtRTPValues() As Variant _
    ByVal vtbShowRTPDlg As Variant _
    ByVal vtbRuleOnForm As Variant _
    ByRef vtBRRanSuccessfully As Variant _
    ByRef vtCubeName As Variant _
    ByRef vtBRName As Variant _
    ByRef vtBRType As Variant _
    ByRef vtbBRHasPrompts As Variant _
    ByRef vtbBRNeedPageInfo As Variant _
    ByRef vtbBRHidePrompts As Variant _
    ByRef vtRTPNamesUsed As Variant _
    ByRef vtRTPValuesUsed As Variant) As Long

    Public Declare PtrSafe Function HypListCalcScripts Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef scriptArray As Variant) As Long

    Public Declare PtrSafe Function HypListCalcScriptsEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtbRuleOnForm As Variant _
    ByRef vtCubeNames As Variant _
    ByRef vtBRNames As Variant _
    ByRef vtBRTypes As Variant _
    ByRef vtBRHasPrompts As Variant _
    ByRef vtBRNeedsPageInfo As Variant _
    ByRef vtBRHidePrompts As Variant) As Long

    '**************************************************************************
    ' Calculate / consolidate / definition of functions.
    '**************************************************************************

    Public Declare PtrSafe Function HypCalculate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypCalculateContribution Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypConsolidate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypConsolidateAll Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypConsolidateAllWithData Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypForceCalculate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypForceCalculateContribution Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypForceTranslate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare PtrSafe Function HypTranslate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    '**************************************************************************
    'The functions of request of members.
    '**************************************************************************

    Public Declare PtrSafe Function HypFindMember Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtAliasTable As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtAliasName As Variant _
    ByRef vtGenerationName As Variant _
    ByRef vtLevelName As Variant) As Long

    Public Declare PtrSafe Function HypFindMemberEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtAliasTable As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtAliasName As Variant _
    ByRef vtGenerationName As Variant _
    ByRef vtLevelName As Variant) As Long

    Public Declare PtrSafe Function HypGetAncestor Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtLayerType As Variant _
    ByVal intLayerNumber As Integer _
    ByRef vtAncestor As Variant) As Long

    Public Declare PtrSafe Function HypGetChildren Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal intChildCount As Integer _
    ByRef vtChildNameArray As Variant) As Long

    Public Declare PtrSafe Function HypGetParent Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByRef vtParentName As Variant) As Long

    Public Declare PtrSafe Function HypIsAttribute Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtUDAString As Variant) As Variant

    Public Declare PtrSafe Function HypIsDescendant Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtDescendantName As Variant) As Boolean

    Public Declare PtrSafe Function HypIsAncestor Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtAncestorName As Variant) As Variant

    Public Declare PtrSafe Function HypIsExpense Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant) As Variant

    Public Declare PtrSafe Function HypIsParent Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal ParentName As Variant) to Boolean

    Public Declare PtrSafe Function HypIsChild Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtParentName As Variant _
    ByVal vtChildName As Variant) As Variant

    Public Declare PtrSafe Function HypIsUDA Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtUDAString As Variant) As Variant

    Public Declare PtrSafe Function HypOtlGetMemberInfo Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtPredicate As Variant _
    ByRef vtMemberArray As Variant) As Long

    Public Declare PtrSafe Function HypQueryMembers Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtPredicate As Variant _
    ByVal vtOption As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtInput1 As Variant _
    ByVal vtInput2 As Variant _
    ByRef vtMemberArray As Variant) As Long

    Public Declare PtrSafe Function HypGetMemberInformation Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtPropertyName As Variant _
    ByRef vtPropertyValue As Variant _
    ByRef vtPropertyValueStrings As Variant) As Long

    Public Declare PtrSafe Function HypGetMemberInformationEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByRef vtPropertyNames As Variant _
    ByRef vtPropertyValues As Variant _
    ByRef vtPropertyValueStrings As Variant) As Long

    '**************************************************************************
    ' Option functions
    '**************************************************************************

    Public Declare PtrSafe Function HypGetGlobalOption Lib "HsAddin" (ByVal vtItem As Long) As Variant

    Public Declare PtrSafe Function HypGetSheetOption Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtItem As Variant) As Variant

    Public Declare PtrSafe Function HypGetOption Lib "HsAddin" (ByVal vtItem As Variant, ByRef vtRet As Variant, ByVal vtSheetName As Variant) As Long

    Public Declare PtrSafe Function HypSetGlobalOption Lib "HsAddin" (ByVal vtItem As Long _
    ByVal vtGlobalOption As Variant) As Long

    Public Declare PtrSafe Function HypSetSheetOption Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtItem As Variant _
    ByVal vtOption As Variant) As Long

    Public Declare PtrSafe Function HypSetOption Lib "HsAddin" (ByVal vtItem As Variant _
    ByVal vtOption As Variant, ByVal vtSheetName As Variant) As Long

    Public declare function HypDeleteAllMRUItems Lib "HsAddin" () PtrSafe as long

    '**************************************************************************
    'Functions of dynamic Link.
    '**************************************************************************

    Public Declare PtrSafe Function HypDisplayToLinkView Lib "HsAddin" (ByVal vtDocumentType As Variant _
    ByVal vtDocumentPath As Variant) As Long

    Public declare function HypGetColCount Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypGetColItems Lib "HsAddin" (ByVal vtColID As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtMemberNames As Variant) As Long

    Public Declare PtrSafe Function HypGetConnectionInfo Lib "HsAddin" (ByRef vtServerName As Variant _
    ByRef vtUserName As Variant _
    ByRef vtPassword As Variant _
    ByRef vtApplicationName As Variant _
    ByRef vtDatabaseName As Variant _
    ByRef vtFriendlyName As Variant _
    ByRef vtURL As Variant _
    ByRef vtProviderType As Variant) As Long

    Public Declare PtrSafe Function HypGetLinkMacro Lib "HsAddin" (ByRef vtMacroName As Variant) As Long

    Public declare function HypGetPOVCount Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypGetPOVItems Lib "HsAddin" (ByRef vtDimensionNames As Variant _
    ByRef vtPOVNames As Variant) As Long

    Public declare function HypGetRowCount Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypGetRowItems Lib "HsAddin" (ByVal rowID As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtMemberNames As Variant) As Long

    Public Declare PtrSafe Function HypGetSourceGrid Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtGrid As Variant) As Long

    Public Declare PtrSafe Function HypSetColItems Lib "HsAddin" (ByVal vtColID As Variant _
    ByVal vtDimensionName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare PtrSafe Function HypSetConnectionInfo Lib "HsAddin" (ByVal vtServerName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtFriendlyName As Variant _
    ByVal vtURL As Variant _
    ByVal vtProviderType As Variant) As Long

    Public Declare PtrSafe Function HypSetLinkMacro Lib "HsAddin" (ByVal vtMacroName As Variant) As Long

    Public Declare PtrSafe Function HypSetPOVItems Lib "HsAddin" (ParamArray MemberList() as an alternative) as long

    Public Declare PtrSafe Function HypSetRowItems Lib "HsAddin" (ByVal vtRowID As Variant _
    ByVal vtDimensionName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare PtrSafe Function HypUseLinkMacro Lib "HsAddin" (ByVal nozzle As Boolean) As Long

    '**************************************************************************
    "Deprecated functions
    '**************************************************************************

    Public Declare PtrSafe Function HypCaptureFormatting Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare PtrSafe Function HypRemoveCapturedFormats Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtbRemoveAllCapturedFormats As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public declare function HypConnectToAPS Lib "HsAddin" () PtrSafe as long

    Public declare function HypDisconnectFromAPS Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypGetCurrentAPSURL Lib "HsAddin" (ByRef vtAPSURL As Variant) As Long

    Public Declare PtrSafe Function HypGetOverrideFlag Lib "HsAddin" (ByRef vtOverride As Boolean) As Long

    Public declare function HypIsConnectedToAPS Lib "HsAddin" () PtrSafe as long

    Public Declare PtrSafe Function HypMigrateConnectionToDataSourceMgr Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare PtrSafe Function HypSetCurrentUserAPSURL Lib "HsAddin" (ByVal vtAPSURL As Variant) As Long

    Public Declare PtrSafe Function HypSetOverrideFlag Lib "HsAddin" (ByVal vtOverride As Boolean) As Long

    Public declare function HypMenuVVisualizeinHVE Lib "HsAddin" () PtrSafe as long

    '**************************************************************************
    '**************************************************************************

    '**************************************************************************
    "ADVANCED MDX QUERY SECTION.
    '**************************************************************************

    '**************************************************************************
    "Type statements."
    '**************************************************************************

    Type MDX_CELL
    CellValue As Double
    CellStatus As Long
    End type

    Type MDX_PROPERTY
    PropertyName as Variant
    PropertyValue as Variant
    PropertyType as Variant
    End type

    Type MDX_MEMBER
    MemberName as Variant
    NumClusters As Long
    NumProps As Long
    PropInfo() as MDX_PROPERTY
    End type

    Type MDX_DIMENSION
    Nomdimension as Variant
    NumProps As Long
    NumMembers As Long
    PropsInfo() as MDX_PROPERTY
    MemberInfo() as MDX_MEMBER
    End type

    Type MDX_CLUSTER
    DimensionInfo() as MDX_DIMENSION
    TupleCount As Long
    End type

    Type MDX_AXIS
    DimensionsCount As Long
    TuplesCount As Long
    ClustersCount As Long
    DimensionInfo() as MDX_DIMENSION
    ClusterInfo() as MDX_CLUSTER
    End type

    Type MDX_AXES_NATIVE
    AxisCount As Long
    That as long
    AxisInfo as Variant
    CellInfo as Variant
    End type

    Type MDX_AXES
    AxisCount As Long
    That as long
    AxisInfo() as MDX_AXIS
    CellInfo() as MDX_CELL
    End type

    '**************************************************************************
    ' Function in MDX query
    '**************************************************************************

    Public Declare PtrSafe Function HypExecuteMDXEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtQuery As Variant _
    ByVal vtBoolHideData As Variant _
    ByVal vtBoolDataLess As Variant _
    ByVal vtBoolNeedStatus As Variant _
    ByVal vtMbrIDType As Variant _
    ByVal vtAliasTable As Variant _
    ByRef outResult As MDX_AXES_NATIVE) As Long ' Essbase

    "For the 32-bit version of Microsoft office
    #Else

    '**************************************************************************
    "The functions in the menu.
    '**************************************************************************

    Public Declare Function HypMenuVAbout Lib "HsAddin" () As Long
    Public Declare Function HypMenuVAdjust Lib "HsAddin" () As Long
    Public Declare Function HypMenuVBusinessRules Lib "HsAddin" () As Long
    Public Declare Function HypMenuVCalculation Lib "HsAddin" () As Long
    Public Declare Function HypMenuVCellText Lib "HsAddin" () As Long
    Public Declare Function HypMenuVCollapse Lib "HsAddin" () As Long
    Public Declare Function HypMenuVConnect Lib "HsAddin" () As Long
    Public Declare Function HypMenuVCopyDataPoints Lib "HsAddin" () As Long
    Public Declare Function HypMenuVExpand Lib "HsAddin" () As Long
    Public Declare Function HypMenuVFunctionBuilder Lib "HsAddin" () As Long
    Public Declare Function HypMenuVInstruction Lib "HsAddin" () As Long
    Public Declare Function HypMenuVKeepOnly Lib "HsAddin" () As Long
    Public Declare Function HypMenuVMemberSelection Lib "HsAddin" () As Long
    Public Declare Function HypMenuVOptions Lib "HsAddin" () As Long
    Public Declare Function HypMenuVPasteDataPoints Lib "HsAddin" () As Long
    Public Declare Function HypMenuVPivot Lib "HsAddin" () As Long
    Public Declare Function HypMenuVPOVManager Lib "HsAddin" () As Long
    Public Declare Function HypMenuVQueryDesigner Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRedo Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRefresh Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRefreshAll Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRefreshOfflineDefinition Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRemoveOnly Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRulesOnForm Lib "HsAddin" () As Long
    Public Declare Function HypMenuVRunReport Lib "HsAddin" () As Long
    Public Declare Function HypMenuVSelectForm Lib "HsAddin" () As Long
    Public Declare Function HypMenuVShowHelpHtml Lib "HsAddin" (ByVal vtHelpPage As Variant) As Long
    Public Declare Function HypMenuVSubmitData Lib "HsAddin" () As Long
    Public Declare Function HypMenuVSupportingDetails Lib "HsAddin" () As Long
    Public Declare Function HypMenuVSyncBack Lib "HsAddin" () As Long
    Public Declare Function HypMenuVTakeOffline Lib "HsAddin" () As Long
    Public Declare Function HypMenuVUndo Lib "HsAddin" () As Long
    Public Declare Function HypMenuVVisualizeinExcel Lib "HsAddin" () As Long
    Public Declare Function HypMenuVZoomIn Lib "HsAddin" () As Long
    Public Declare Function HypMenuVZoomOut Lib "HsAddin" () As Long
    Public Declare Function HypMenuVMigrate Lib "HsAddin" (ByVal vtOption As Variant, ByRef vtOutput As Variant) As Long
    Public Declare Function HypMenuVLRO Lib "HsAddin" () As Long
    Public Declare Function HypMenuVCascadeSameWorkbook Lib "HsAddin" () As Long
    Public Declare Function HypMenuVCascadeNewWorkbook Lib "HsAddin" () As Long
    Public Declare Function HypMenuVMemberInformation Lib "HsAddin" () As Long
    Public Declare Function HypExecuteMenu Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMenuName As Variant) As Long
    Public Declare Function HypHideRibbonMenu Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray vtMenus() As Variant) As Long
    Public Declare Function HypHideRibbonMenuReset Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    '**************************************************************************
    "General functions.
    '**************************************************************************

    Public Declare Function HypCopyMetaData Lib "HsAddin" (ByVal vtSourceSheetName As Variant _
    ByVal vtDestinationSheetName As Variant) As Long

    Public Declare Function HypDeleteMetaData Lib "HsAddin" (ByVal vtDispObject As Variant _
    ByVal vtbWorkbook As Variant _
    ByVal vtbClearMetadataOnAllSheetsWithinWorkbook As Variant) As Long

    Public Declare Function HypGetSubstitutionVariable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtVariableName As Variant _
    ByRef vtVariableNames As Variant _
    ByRef vtVariableValues As Variant) As Long

    Public Declare Function HypIsDataModified Lib "HsAddin" (ByVal vtSheetName As Variant) As Boolean

    Public Declare Function HypIsFreeForm Lib "HsAddin" (ByVal vtSheetName As Variant) As Boolean

    Public Declare Function HypIsSmartViewContentPresent Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtTypeOfContentsInSheet As TYPE_OF_CONTENTS_IN_SHEET) As Boolean

    Public Declare Function HypPreserveFormatting Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare Function HypRedo Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare Function HypRemovePreservedFormats Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtbRemoveAllCapturedFormats As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare Function HypSetAliasTable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtAliasTableName As Variant) As Long

    Public Declare Function HypSetMenu Lib "HsAddin" (ByVal bSetMenu As Boolean) As Long

    Public Declare Function HypShowPov Lib "HsAddin" (ByVal bShowPov As Boolean) As Long

    Public Declare Function HypSetSubstitutionVariable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtVariableName As Variant _
    ByVal vtVariableValue As Variant) As Long

    Public Declare Function HypUndo Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare Function HypShowPanel Lib "HsAddin" (ByVal bShow As Boolean) As Long

    Public Declare Function HypGetLastError Lib "HsAddin" (ByRef vtErrorCode As Variant, vtErrorMessage As Variant ByRef, ByRef vtErrorDescription As Variant) As Long

    Public Declare Function HypGetVersion Lib "HsAddin" (ByVal _ As Variant vtID
    ByRef vtValueList As Variant, ByVal vtVersionInfoFileCommand As Variant) As Long

    Public Declare Function HypGetDatabaseNote Lib "HsAddin" (ByVal vtSheetName As Variant, ByRef vtDBNote As Variant) As Long

    '**************************************************************************
    "Functions of connection."
    '**************************************************************************

    Public Declare Function HypConnect Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypUIConnect Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypConnected Lib "HsAddin" (ByVal vtSheetName As Variant) As Variant

    Public Declare Function HypConnectionExists Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Variant

    Public Declare Function HypCreateConnection Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtProvider As Variant _
    ByVal vtProviderURL As Variant _
    ByVal vtServerName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtFriendlyName As Variant _
    ByVal vtDescription As Variant) As Long
                                                              
    Public Declare Function HypCreateConnectionEx Lib "HsAddin" (ByVal vtProviderType As Variant _
    ByVal vtServerName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtFormName As Variant _
    ByVal vtProviderURL As Variant _
    ByVal vtFriendlyName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtDescription As Variant _
    ByVal vtReserved1 As Variant _
    ByVal vtReserved2 As Variant) As Long

    Public Declare Function HypDisconnect Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal bLogoutUser As Boolean) As Long

    Public Declare Function HypDisconnectAll Lib "HsAddin" () As Long

    Public Declare Function HypDisconnectEx Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypGetSharedConnectionsURL Lib "HsAddin" (ByRef vtSharedConnURL As Variant) As Long

    Public Declare Function HypInvalidateSSO Lib "HsAddin" () As Long

    Public Declare Function HypIsConnectedToSharedConnections Lib "HsAddin" () as Variant

    Public Declare Function HypRemoveConnection Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypResetFriendlyName Lib "HsAddin" (ByVal vtOldFriendlyName As Variant _
    ByVal vtNewFriendlyName As Variant) As Long

    Public Declare Function HypSetActiveConnection Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypSetAsDefault Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypSetConnAliasTable Lib "HsAddin" (ByVal vtFriendlyName As Variant _
    ByVal vtAliasTableName As Variant) As Long

    Public Declare Function HypSetSharedConnectionsURL Lib "HsAddin" (ByVal vtSharedConnURL As Variant) As Long

    '**************************************************************************
    'Ad Hoc functions
    '**************************************************************************

    Public Declare Function HypExecuteQuery Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMDXQuery As Variant) As Long

    Public Declare Function HypKeepOnly Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare Function HypPivot Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtStart As Variant _
    ByVal vtEnd As Variant) As Long
                                                   
    Public Declare Function HypPivotToGrid Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare Function HypPivotToPOV Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare Function HypRemoveOnly Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare Function HypRetrieve Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare Function HypRetrieveRange Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant _
    ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypRetrieveNameRange Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtGridName As Variant) As Long

    Public Declare Function HypGetNameRangeList Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtFriendlyName As Variant _
    ByRef vtNameList As Variant) As Long

    Public Declare Function HypRetrieveAllWorkbooks Lib "HsAddin" () As Long

    Public Declare Function HypSubmitData Lib "HsAddin" (ByVal vtSheetName As Variant) As Long

    Public Declare Function HypZoomIn Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant _
    ByVal vtLevel As Variant _
    ByVal vtAcross As Variant) As Long

    Public Declare Function HypZoomOut Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelection As Variant) As Long

    Public Declare Function HypPerformAdhocOnForm Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtFormName As Variant) As Long

    '**************************************************************************
    "Train functions.
    '**************************************************************************

    Public Declare Function HypOpenForm Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtFolderPath As Variant _
    ByVal vtFormName As Variant _
    ByRef vtDimensionList() As Variant _
    ByRef vtMemberList() As Variant) As Long

    '**************************************************************************
    'Functions of the cells.
    '**************************************************************************

    Type LRO_Info
    lNumLRO As Long
    lNumDim As Long
    LROList as Variant
    End type

    Public Declare Function HypCell Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray MemberList() as Variant) as Variant

    Public Declare Function HypFreeDataPoint Lib "HsAddin" (ByRef vtInfo As Variant) As Long

    Public Declare Function HypGetCellRangeForMbrCombination Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtDimNames() As Variant _
    ByRef vtMbrNames() As Variant _
    ByRef vtCellIntersectionRange As Variant) As Long

    Public Declare Function HypGetDataPoint Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCell As Variant) As Variant

    Public Declare Function HypGetDimMbrsForDataCell Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCellRange As Variant _
    ByRef vtServerName As Variant _
    ByRef vtAppName As Variant _
    ByRef vtCubeName As Variant _
    ByRef vtFormName As Variant _
    ByRef vtDimensionNames As Variant _
    ByRef vtMemberNames As Variant) As Long

    Public Declare Function HypIsCellWritable Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCellRange As Variant) As Boolean

    Public Declare Function HypSetCellsDirty Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypDeleteAllLROs Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare Function HypDeleteLROs Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByRef vtLROIDs() As Variant) As Long

    Public Declare Function HypAddLRO Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByVal vtlType As Variant _
    ByVal vtName As Variant _
    ByVal vtDescription As Variant) As Long

    Public Declare Function HypUpdateLRO Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    VtID As Variant, _ ByVal
    ByVal vtlType As Variant _
    ByVal vtName As Variant _
    ByVal vtDescription As Variant) As Long

    Public Declare Function HypListLROs Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByRef vtID As LRO_Info) As Long

    Public Declare Function HypRetrieveLRO Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    VtID As Variant, _ ByVal
    ByRef vtName As Variant _
    ByRef vtDescription As Variant) As Long

    Public Declare Function HypGetDrillThroughReports Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    ByRef vtIDs As Variant _
    ByRef vtNames As Variant _
    ByRef vtURLs As Variant _
    ByRef vtURLTemplates As Variant _
    ByRef vtTypes As Variant) As Long
                                                         
                                                         
    Public Declare Function HypExecuteDrillThroughReport Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant _
    VtID As Variant, _ ByVal
    ByVal vtName As Variant _
    ByVal vtURL As Variant _
    ByVal vtURLTemplate As Variant _
    ByVal vtType As Variant) As Long

    '**************************************************************************
    'Functions POV.
    '**************************************************************************

    Public Declare Function HypGetPagePOVChoices Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByRef vtMbrNameChoices As Variant _
    ByRef vtMbrDescChoices As Variant) As Long

    Public Declare Function HypSetBackgroundPOV Lib "HsAddin" (ByVal vtFriendlyName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare Function HypSetPages Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare Function HypSetPOV Lib "HsAddin" (ByVal vtSheetName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare Function HypSetMembers Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ParamArray MemberList() as Variant) as long
    Public Declare Function HypGetPOV Lib "HsAddin" (ByVal vtSheetName _
    ByRef vtDimensionNames As Variant _
    ByRef vtMemberNames As Variant, ByRef vtType As Variant) As Long
    Public Declare Function HypGetDimensions Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtMemberNames As Variant, ByRef vtType As Variant) As Long
    Public Declare Function HypGetMembers Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByRef vtMbrNameChoices As Variant _
    ByRef vtMbrDescChoices As Variant) As Long
                                                               
    Public Declare Function HypSetDimensions Lib "HsAddin" (ByVal vtSheetName _
    ByRef vtDimNames() As Variant _
    ByRef vtTypes() As Variant) As Long

    Public Declare Function HypGetBackgroundPOV Lib "HsAddin" (ByVal vtFriendlyName As Variant _
    ByRef vtDimensionNames As Variant _
    ByRef vtMemberNames As Variant) As Long
          
    Public Declare Function HypGetActiveMember Lib "HsAddin" (ByVal vtDimName As Variant _
    ByRef vtMember As Variant) As Long
          
    Public Declare Function HypSetActiveMember Lib "HsAddin" (ByVal vtDimName As Variant _
    ByVal vtMember As Variant) As Long

    '**************************************************************************
    "Calculation script / functions of business rule.
    '**************************************************************************

    Public Declare Function HypDeleteCalc Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtCalcScript As Variant) As Long

    Public Declare Function HypExecuteCalcScript Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCalcScript As Variant _
    ByVal vtSynchronous As Variant) As Long
                                                                   
    Public Declare Function HypExecuteCalcScriptEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtCubeName As Variant _
    ByVal vtBRName As Variant _
    ByVal vtBRType As Variant _
    ByVal vtbBRHasPrompts As Variant _
    ByVal vtbBRNeedPageInfo As Variant _
    ByRef vtRTPNames() As Variant _
    ByRef vtRTPValues() As Variant _
    ByVal vtbShowRTPDlg As Variant _
    ByVal vtbRuleOnForm As Variant _
    ByRef vtBRRanSuccessfully As Variant _
    ByRef vtCubeName As Variant _
    ByRef vtBRName As Variant _
    ByRef vtBRType As Variant _
    ByRef vtbBRHasPrompts As Variant _
    ByRef vtbBRNeedPageInfo As Variant _
    ByRef vtbBRHidePrompts As Variant _
    ByRef vtRTPNamesUsed As Variant _
    ByRef vtRTPValuesUsed As Variant) As Long

    Public Declare Function HypListCalcScripts Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef scriptArray As Variant) As Long

    Public Declare Function HypListCalcScriptsEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtbRuleOnForm As Variant _
    ByRef vtCubeNames As Variant _
    ByRef vtBRNames As Variant _
    ByRef vtBRTypes As Variant _
    ByRef vtBRHasPrompts As Variant _
    ByRef vtBRNeedsPageInfo As Variant _
    ByRef vtBRHidePrompts As Variant) As Long

    '**************************************************************************
    ' Calculate / consolidate / definition of functions.
    '**************************************************************************

    Public Declare Function HypCalculate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypCalculateContribution Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypConsolidate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypConsolidateAll Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypConsolidateAllWithData Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypForceCalculate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypForceCalculateContribution Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypForceTranslate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    Public Declare Function HypTranslate Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtRange As Variant) As Long

    '**************************************************************************
    'The functions of request of members.
    '**************************************************************************

    Public Declare Function HypFindMember Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtAliasTable As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtAliasName As Variant _
    ByRef vtGenerationName As Variant _
    ByRef vtLevelName As Variant) As Long

    Public Declare Function HypFindMemberEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtAliasTable As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtAliasName As Variant _
    ByRef vtGenerationName As Variant _
    ByRef vtLevelName As Variant) As Long

    Public Declare Function HypGetAncestor Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtLayerType As Variant _
    ByVal intLayerNumber As Integer _
    ByRef vtAncestor As Variant) As Long

    Public Declare Function HypGetChildren Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal intChildCount As Integer _
    ByRef vtChildNameArray As Variant) As Long

    Public Declare Function HypGetParent Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByRef vtParentName As Variant) As Long

    Public Declare Function HypIsAttribute Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtUDAString As Variant) As Variant

    Public Declare Function HypIsDescendant Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtDescendantName As Variant) As Boolean

    Public Declare Function HypIsAncestor Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtAncestorName As Variant) As Variant

    Public Declare Function HypIsExpense Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant) As Variant

    Public Declare Function HypIsParent Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal ParentName As Variant) to Boolean

    Public Declare Function HypIsChild Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtParentName As Variant _
    ByVal vtChildName As Variant) As Variant

    Public Declare Function HypIsUDA Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtUDAString As Variant) As Variant

    Public Declare Function HypOtlGetMemberInfo Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtPredicate As Variant _
    ByRef vtMemberArray As Variant) As Long

    Public Declare Function HypQueryMembers Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtPredicate As Variant _
    ByVal vtOption As Variant _
    ByVal vtDimensionName As Variant _
    ByVal vtInput1 As Variant _
    ByVal vtInput2 As Variant _
    ByRef vtMemberArray As Variant) As Long

    Public Declare Function HypGetMemberInformation Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByVal vtPropertyName As Variant _
    ByRef vtPropertyValue As Variant _
    ByRef vtPropertyValueStrings As Variant) As Long

    Public Declare Function HypGetMemberInformationEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtMemberName As Variant _
    ByRef vtPropertyNames As Variant _
    ByRef vtPropertyValues As Variant _
    ByRef vtPropertyValueStrings As Variant) As Long

    '**************************************************************************
    ' Option functions
    '**************************************************************************

    Public Declare Function HypGetGlobalOption Lib "HsAddin" (ByVal vtItem As Long) As Variant

    Public Declare Function HypGetSheetOption Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtItem As Variant) As Variant

    Public Declare Function HypGetOption Lib "HsAddin" (ByVal vtItem As Variant, ByRef vtRet As Variant, ByVal vtSheetName As Variant) As Long

    Public Declare Function HypSetGlobalOption Lib "HsAddin" (ByVal vtItem As Long _
    ByVal vtGlobalOption As Variant) As Long

    Public Declare Function HypSetSheetOption Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtItem As Variant _
    ByVal vtOption As Variant) As Long

    Public Declare Function HypSetOption Lib "HsAddin" (ByVal vtItem As Variant _
    ByVal vtOption As Variant, ByVal vtSheetName As Variant) As Long

    Public Declare Function HypDeleteAllMRUItems Lib "HsAddin" () As Long

    '**************************************************************************
    'Functions of dynamic Link.
    '**************************************************************************

    Public Declare Function HypDisplayToLinkView Lib "HsAddin" (ByVal vtDocumentType As Variant _
    ByVal vtDocumentPath As Variant) As Long

    Public Declare Function HypGetColCount Lib "HsAddin" () As Long

    Public Declare Function HypGetColItems Lib "HsAddin" (ByVal vtColID As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtMemberNames As Variant) As Long

    Public Declare Function HypGetConnectionInfo Lib "HsAddin" (ByRef vtServerName As Variant _
    ByRef vtUserName As Variant _
    ByRef vtPassword As Variant _
    ByRef vtApplicationName As Variant _
    ByRef vtDatabaseName As Variant _
    ByRef vtFriendlyName As Variant _
    ByRef vtURL As Variant _
    ByRef vtProviderType As Variant) As Long

    Public Declare Function HypGetLinkMacro Lib "HsAddin" (ByRef vtMacroName As Variant) As Long

    Public Declare Function HypGetPOVCount Lib "HsAddin" () As Long

    Public Declare Function HypGetPOVItems Lib "HsAddin" (ByRef vtDimensionNames As Variant _
    ByRef vtPOVNames As Variant) As Long

    Public Declare Function HypGetRowCount Lib "HsAddin" () As Long

    Public Declare Function HypGetRowItems Lib "HsAddin" (ByVal rowID As Variant _
    ByRef vtDimensionName As Variant _
    ByRef vtMemberNames As Variant) As Long

    Public Declare Function HypGetSourceGrid Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByRef vtGrid As Variant) As Long

    Public Declare Function HypSetColItems Lib "HsAddin" (ByVal vtColID As Variant _
    ByVal vtDimensionName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare Function HypSetConnectionInfo Lib "HsAddin" (ByVal vtServerName As Variant _
    ByVal vtUserName As Variant _
    ByVal vtPassword As Variant _
    ByVal vtApplicationName As Variant _
    ByVal vtDatabaseName As Variant _
    ByVal vtFriendlyName As Variant _
    ByVal vtURL As Variant _
    ByVal vtProviderType As Variant) As Long

    Public Declare Function HypSetLinkMacro Lib "HsAddin" (ByVal vtMacroName As Variant) As Long

    Public Declare Function HypSetPOVItems Lib "HsAddin" (ParamArray MemberList() as an alternative) as long

    Public Declare Function HypSetRowItems Lib "HsAddin" (ByVal vtRowID As Variant _
    ByVal vtDimensionName As Variant _
    ParamArray MemberList() as Variant) as long

    Public Declare Function HypUseLinkMacro Lib "HsAddin" (ByVal nozzle As Boolean) As Long

    '**************************************************************************
    "Deprecated functions
    '**************************************************************************

    Public Declare Function HypCaptureFormatting Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare Function HypRemoveCapturedFormats Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtbRemoveAllCapturedFormats As Variant _
    ByVal vtSelectionRange As Variant) As Long

    Public Declare Function HypConnectToAPS Lib "HsAddin" () As Long

    Public Declare Function HypDisconnectFromAPS Lib "HsAddin" () As Long

    Public Declare Function HypGetCurrentAPSURL Lib "HsAddin" (ByRef vtAPSURL As Variant) As Long

    Public Declare Function HypGetOverrideFlag Lib "HsAddin" (ByRef vtOverride As Boolean) As Long

    Public Declare Function HypIsConnectedToAPS Lib "HsAddin" () As Long

    Public Declare Function HypMigrateConnectionToDataSourceMgr Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long

    Public Declare Function HypSetCurrentUserAPSURL Lib "HsAddin" (ByVal vtAPSURL As Variant) As Long

    Public Declare Function HypSetOverrideFlag Lib "HsAddin" (ByVal vtOverride As Boolean) As Long

    Public Declare Function HypMenuVVisualizeinHVE Lib "HsAddin" () As Long

    '**************************************************************************
    '**************************************************************************

    '**************************************************************************
    "ADVANCED MDX QUERY SECTION.
    '**************************************************************************

    '**************************************************************************
    "Type statements."
    '**************************************************************************

    Type MDX_CELL
    CellValue As Double
    CellStatus As Long
    End type

    Type MDX_PROPERTY
    PropertyName as Variant
    PropertyValue as Variant
    PropertyType as Variant
    End type

    Type MDX_MEMBER
    MemberName as Variant
    NumClusters As Long
    NumProps As Long
    PropInfo() as MDX_PROPERTY
    End type

    Type MDX_DIMENSION
    Nomdimension as Variant
    NumProps As Long
    NumMembers As Long
    PropsInfo() as MDX_PROPERTY
    MemberInfo() as MDX_MEMBER
    End type

    Type MDX_CLUSTER
    DimensionInfo() as MDX_DIMENSION
    TupleCount As Long
    End type

    Type MDX_AXIS
    DimensionsCount As Long
    TuplesCount As Long
    ClustersCount As Long
    DimensionInfo() as MDX_DIMENSION
    ClusterInfo() as MDX_CLUSTER
    End type

    Type MDX_AXES_NATIVE
    AxisCount As Long
    That as long
    AxisInfo as Variant
    CellInfo as Variant
    End type

    Type MDX_AXES
    AxisCount As Long
    That as long
    AxisInfo() as MDX_AXIS
    CellInfo() as MDX_CELL
    End type

    '**************************************************************************
    ' Function in MDX query
    '**************************************************************************

    Public Declare Function HypExecuteMDXEx Lib "HsAddin" (ByVal vtSheetName As Variant _
    ByVal vtQuery As Variant _
    ByVal vtBoolHideData As Variant _
    ByVal vtBoolDataLess As Variant _
    ByVal vtBoolNeedStatus As Variant _
    ByVal vtMbrIDType As Variant _
    ByVal vtAliasTable As Variant _
    ByRef outResult As MDX_AXES_NATIVE) As Long ' Essbase

    #End If

    '**************************************************************************
    ' For conversion based C++ structure MDX to a VB compatible MDX structure
    ' * To be used with HypExecuteMDXEx only *.
    '**************************************************************************

    Void GetVBCompatibleMDXStructure (ByRef instruct as MDX_AXES_NATIVE, ByRef outStruct As MDX_AXES)

    outStruct.AxisCount = inStruct.AxisCount
    outStruct.CellCount = inStruct.CellCount

    "Treat the cell Info
    If inStruct.CellCount then
    Dim vtCellStruct As Variant
    ReDim outStruct.CellInfo (inStruct.CellCount - 1).
    For iCellCount = 0 To inStruct.CellCount - 1
    vtCellStruct = inStruct.CellInfo (iCellCount)
    outStruct.CellInfo (iCellCount). CellStatus = vtCellStruct (0)
    outStruct.CellInfo (iCellCount). CellValue = vtCellStruct (1)
    Next
    End If
    ' End cell treatment Info

    «Treat axis Info»
    If inStruct.AxisCount then
    ReDim outStruct.AxisInfo (inStruct.AxisCount - 1).
    Dim vtAxisStruct As Variant
    For iAxisCount = 0 To inStruct.AxisCount - 1
    vtAxisStruct = inStruct.AxisInfo (iAxisCount)
    outStruct.AxisInfo (iAxisCount). DimensionsCount = vtAxisStruct (0)
    outStruct.AxisInfo (iAxisCount). TuplesCount = vtAxisStruct (1)
    outStruct.AxisInfo (iAxisCount). ClustersCount = vtAxisStruct (2)
            
    ' Add dimensions of information to the axis title
    If (iAxisCount) outStruct.AxisInfo. So DimensionsCount
    ReDim outStruct.AxisInfo (iAxisCount). DimensionInfo (outStruct.AxisInfo (iAxisCount). DimensionsCount - 1).
    Dim vtAllDims As Variant
    Dim vtDimStruct As Variant
    vtAllDims = vtAxisStruct (3)
    For iDimCount = 0 To outStruct.AxisInfo (iAxisCount). DimensionsCount - 1
    vtDimStruct = vtAllDims (iDimCount)
    outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). Nomdimension = vtDimStruct (0)
    outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). NumMembers = vtDimStruct (1)
    outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). NumProps = vtDimStruct (2)
          
    ' Start - add information properties in each Dimension.
    If (iAxisCount) outStruct.AxisInfo. DimensionInfo (iDimCount). So NumProps
    ReDim outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). PropsInfo (outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). NumProps - 1).
    Dim vtAllProps As Variant
    Dim vtPropStruct As Variant
    vtAllProps = vtDimStruct (3)
    For iCountProp = 0 To outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). NumProps - 1
    vtPropStruct = vtAllProps (iCountProp)
    outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). PropsInfo (iCountProp). PropertyName = vtPropStruct (0)
    outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). PropsInfo (iCountProp). PropertyType = vtPropStruct (1)
    outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimCount). PropsInfo (iCountProp). PropertyValue = Null ' not sent
    Next
    End If
    ' End - add information properties in each Dimension
    Next
    End If
    ' End Dimensions of information to the axis title
       
    "Add Cluster information to the axis title
    If (iAxisCount) outStruct.AxisInfo. So ClustersCount
    ReDim outStruct.AxisInfo (iAxisCount). ClusterInfo (outStruct.AxisInfo (iAxisCount). ClustersCount - 1).
    Dim vtAllClusters As Variant
    Dim vtClusterStruct As Variant
    vtAllClusters = vtAxisStruct (4)
    For iClusterCount = 0 To outStruct.AxisInfo (iAxisCount). ClustersCount - 1
    vtClusterStruct = vtAllClusters (iClusterCount)
    outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). TupleCount = vtClusterStruct (1)
               
    ' Add Dimensions info in the title of the Group
    If (iAxisCount) outStruct.AxisInfo. So DimensionsCount
    ReDim outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (outStruct.AxisInfo (iAxisCount). DimensionsCount - 1).
    Dim vtAllDimsUnderCluster As Variant
    Dim vtDimUnderCluster As Variant
    vtAllDimsUnderCluster = vtClusterStruct (0)
    For iDimsUnderClusterCount = 0 To outStruct.AxisInfo (iAxisCount). DimensionsCount - 1
    vtDimUnderCluster = vtAllDimsUnderCluster (iDimsUnderClusterCount)
    outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). NumMembers = vtDimUnderCluster (2)
                       
    "Add members to the Group-> Dimensions
    If (iAxisCount) outStruct.AxisInfo. ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). So NumMembers
    ReDim outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). MemberInfo (outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). NumMembers - 1).
    Dim vtAllMembersUnderClusterDim As Variant
    Dim vtMemberUnderClusterDim As Variant
    vtAllMembersUnderClusterDim = vtDimUnderCluster (4)
    For iMemUnderClusterDimCount = 0 To outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). NumMembers - 1
    vtMemberUnderClusterDim = vtAllMembersUnderClusterDim (iMemUnderClusterDimCount)
    outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). MemberInfo (iMemUnderClusterDimCount). MemberName = vtMemberUnderClusterDim (0)
    outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). MemberInfo (iMemUnderClusterDimCount). NumClusters = vtMemberUnderClusterDim (1)
                               
    ' Add information properties
    If (iAxisCount) outStruct.AxisInfo. DimensionInfo (iDimsUnderClusterCount). So NumProps
    ReDim outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). MemberInfo (iMemUnderClusterDimCount). PropInfo (outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimsUnderClusterCount). NumProps - 1).
    Dim vtAllPropsUnderCluster As Variant
    Dim vtPropUnderCluster As Variant
    vtAllPropsUnderCluster = vtMemberUnderClusterDim (2)
    For iPropCountUnderCluster = 0 To outStruct.AxisInfo (iAxisCount). DimensionInfo (iDimsUnderClusterCount). NumProps - 1
    vtPropUnderCluster = vtAllPropsUnderCluster (iPropCountUnderCluster)
    outStruct.AxisInfo (iAxisCount). ClusterInfo (iClusterCount). DimensionInfo (iDimsUnderClusterCount). MemberInfo (iMemUnderClusterDimCount). PropInfo (iPropCountUnderCluster). PropertyValue = vtPropUnderCluster (2)
    Next
    End If
    ' End of information properties
    Next
    End If
    ' End - add members under the Cluster--> Dimensions
    Next
    End If
    ' End Dimensions of information in respect of the Group
    Next
    End If
    Next
    End If
    ' End of Cluster of information to the axis title
    ' End treatment axis Info
    End Sub

    '**************************************************************************
    ' Message for the error Code function
    '**************************************************************************

    Function GetReturnCodeMessage (m As Long) As String

    Select the m
    Case SmartViewErrors.SS_ERR_ERROR
    GetReturnCodeMessage = "General error".
    Case SmartViewErrors.SS_NO_GRID_ON_SHEET_BUT_FUNCTIONS_SUBMITTED
    GetReturnCodeMessage = "no grid on the sheet, but submitted functions.
    Case SmartViewErrors.SS_SHEET_NOT_CONNECTED_BUT_FUNCTIONS_SUBMITTED
    GetReturnCodeMessage = "map not connected but submitted functions.
    Case SmartViewErrors.SS_OK
    GetReturnCodeMessage = "OK".
    Case SmartViewErrors.SS_INIT_ERR
    GetReturnCodeMessage = "initialization error".
    Case SmartViewErrors.SS_TERM_ERR
    GetReturnCodeMessage = "termination error."
    Case SmartViewErrors.SS_NOT_INIT
    GetReturnCodeMessage = "not initialized".
    Case SmartViewErrors.SS_NOT_CONNECTED
    GetReturnCodeMessage = "not connected".
    Case SmartViewErrors.SS_NOT_LOCKED
    GetReturnCodeMessage = "not locked".
    Case SmartViewErrors.SS_INVALID_SSTABLE
    GetReturnCodeMessage = "invalid worksheet Table.
    Case SmartViewErrors.SS_INVALID_SSDATA
    GetReturnCodeMessage = "invalid worksheet data.
    Case SmartViewErrors.SS_NOUNDO_INFO
    GetReturnCodeMessage = "there is no cancellation Information.
    Case SmartViewErrors.SS_CANCELED
    GetReturnCodeMessage = "operation has been cancelled".
    Case SmartViewErrors.SS_GLOBALOPTS
    GetReturnCodeMessage = "Global error Options"
    Case SmartViewErrors.SS_SHEETOPTS
    GetReturnCodeMessage = "error sheet Options.
    Case SmartViewErrors.SS_NOTENABLED
    GetReturnCodeMessage = 'Cancel is not enabled.
    Case SmartViewErrors.SS_NO_MEMORY
    GetReturnCodeMessage = 'insufficient memory '.
    Case SmartViewErrors.SS_DIALOG_ERROR
    GetReturnCodeMessage = "appropriate dialog could not be displayed.
    Case SmartViewErrors.SS_INVALID_PARAM
    GetReturnCodeMessage = 'function contains an invalid parameter.
    Case SmartViewErrors.SS_CALCULATING
    GetReturnCodeMessage = 'Calculation in progress'
    Case SmartViewErrors.SS_SQL_IN_PROGRESS
    GetReturnCodeMessage = "SQL in progress"
    Case SmartViewErrors.SS_FORMULAPRESERVE
    GetReturnCodeMessage = "the operation is not allowed because the worksheet is in the Mode of preservation formula."
    Case SmartViewErrors.SS_INTERNALSSERROR
    GetReturnCodeMessage = "can only take place on the specified worksheet.
    Case SmartViewErrors.SS_INVALID_SHEET
    GetReturnCodeMessage = "current sheet cannot be determined.
    Case SmartViewErrors.SS_NOACTIVESHEET
    GetReturnCodeMessage = "no Active sheet is selected.
    Case SmartViewErrors.SS_NOTCALCULATING
    GetReturnCodeMessage = "calculation cannot be cancelled because no calculations are running"
    Case SmartViewErrors.SS_INVALIDSELECTION
    GetReturnCodeMessage = "selection parameter is not valid.
    Case SmartViewErrors.SS_INVALIDTOKEN
    GetReturnCodeMessage = "invalid token".
    Case SmartViewErrors.SS_CASCADENOTALLOWED
    GetReturnCodeMessage = "unable to create file list of Cascade.
    Case SmartViewErrors.SS_NOMACROS
    GetReturnCodeMessage = "spreadsheet Macros cannot be performed due to the license agreement.
    Case SmartViewErrors.SS_NOREADONLYMACROS
    GetReturnCodeMessage = "Spreadsheet Macros that update the database cannot be executed because of the license agreement"
    Case SmartViewErrors.SS_READONLYSS
    GetReturnCodeMessage = "Database cannot be updated because you have only one licence to read"
    Case SmartViewErrors.SS_NOSQLACCESS
    GetReturnCodeMessage = "no access SQL.
    Case SmartViewErrors.SS_MENUALREADYREMOVED
    GetReturnCodeMessage = "Menu already deleted.
    Case SmartViewErrors.SS_MENUALREADYADDED
    GetReturnCodeMessage = "already added Menu".
    Case SmartViewErrors.SS_NOSPREADSHEETACCESS
    GetReturnCodeMessage = 'access not spreadsheet '.
    Case SmartViewErrors.SS_NOHANDLES
    GetReturnCodeMessage = 'no handles.
    Case SmartViewErrors.SS_NOPREVCONNECTION
    GetReturnCodeMessage = 'no previous connection '.
    Case SmartViewErrors.SS_LROERROR
    GetReturnCodeMessage = "error LRO.
    Case SmartViewErrors.SS_LROWINAPPACCESSERR
    GetReturnCodeMessage = "Access of the LRO Windows application error"
    Case SmartViewErrors.SS_DATANAVINITERR
    GetReturnCodeMessage = "error initializing data Navigation.
    Case SmartViewErrors.SS_PARAMSETNOTALLOWED
    GetReturnCodeMessage = "serial settings is not allowed.
    Case SmartViewErrors.SS_SHEET_PROTECTED
    GetReturnCodeMessage = "the specified worksheet is protected."
    Case SmartViewErrors.SS_CALCSCRIPT_NOTFOUND
    GetReturnCodeMessage = "not found calculation Script.
    Case SmartViewErrors.SS_NOSUPPORT_PROVIDER
    GetReturnCodeMessage = "Provider not supported."
    Case SmartViewErrors.SS_INVALID_ALIAS
    GetReturnCodeMessage = "invalid Alias.
    Case SmartViewErrors.SS_CONN_NOT_FOUND
    GetReturnCodeMessage = 'connection not found '.
    Case SmartViewErrors.SS_APS_CONN_NOT_FOUND
    GetReturnCodeMessage = 'Connection APS' not found
    Case SmartViewErrors.SS_APS_NOT_CONNECTED
    GetReturnCodeMessage = "APS not connected".
    Case SmartViewErrors.SS_APS_CANT_CONNECT
    GetReturnCodeMessage = 'APS cannot connect.
    Case SmartViewErrors.SS_CONN_ALREADY_EXISTS
    GetReturnCodeMessage = "connection already exists".
    Case SmartViewErrors.SS_APS_URL_NOT_SAVED
    GetReturnCodeMessage = "URL of APS unregistered"
    Case SmartViewErrors.SS_MIGRATION_OF_CONN_NOT_ALLOWED
    GetReturnCodeMessage = "connection unauthorized Migration."
    Case SmartViewErrors.SS_CONN_MGR_NOT_INITIALIZED
    GetReturnCodeMessage = "connection manager not initialized.
    Case SmartViewErrors.SS_FAILED_TO_GET_APS_OVERRIDE_PROPERTY
    GetReturnCodeMessage = "Could not get property Override APS"
    Case SmartViewErrors.SS_FAILED_TO_SET_APS_OVERRIDE_PROPERTY
    GetReturnCodeMessage = "Unable to set the property Override APS"
    Case SmartViewErrors.SS_FAILED_TO_GET_APS_URL
    GetReturnCodeMessage = "unable to get the URL of the APS.
    Case SmartViewErrors.SS_APS_DISCONNECT_FAILED
    GetReturnCodeMessage = "disconnect APS has failed."
    Case SmartViewErrors.SS_OPERATION_FAILED
    GetReturnCodeMessage = 'operation failed '.
    Case SmartViewErrors.SS_CANNOT_ASSOCIATE_SHEET_WITH_CONNECTION
    GetReturnCodeMessage = "unable to associate a sheet with connection".
    Case SmartViewErrors.SS_REFRESH_SHEET_NEEDED
    GetReturnCodeMessage = 'Refresh required sheet. "
    Case SmartViewErrors.SS_NO_GRID_OBJECT_ON_SHEET
    GetReturnCodeMessage = 'no Grid object on sheet '.
    Case SmartViewErrors.SS_NO_CONNECTION_ASSOCIATED
    GetReturnCodeMessage = 'no connection associated with '.
    Case SmartViewErrors.SS_NON_DATA_CELL_PASSED
    GetReturnCodeMessage = "no past data cell.
    Case SmartViewErrors.SS_DATA_CELL_IS_NOT_WRITABLE
    GetReturnCodeMessage = "mobile data is not writable.
    Case SmartViewErrors.SS_NO_SVC_CONTENT_ON_SHEET
    GetReturnCodeMessage = "No content Smart View on the sheet"
    Case SmartViewErrors.SS_FAILED_TO_GET_OFFICE_OBJECT
    GetReturnCodeMessage = "unable to get the Office object.
    Case SmartViewErrors.SS_OP_FAILED_AS_CHART_IS_SELECTED
    GetReturnCodeMessage = ' Operation failed in the chart is selected.
    Case SmartViewErrors.SS_EXCEL_IN_EDIT_MODE
    GetReturnCodeMessage = "Excel in Edit Mode.
    Case SmartViewErrors.SS_SHEET_NON_SMARTVIEW_COMPATIBLE
    GetReturnCodeMessage = ' sheet Compatible not Smart View.
    Case SmartViewErrors.SS_APP_NOT_STANDALONE
    GetReturnCodeMessage = "ask not"independent"
    Case SmartViewErrors.SS_SMART_VIEW_DISABLED
    GetReturnCodeMessage = ' Disabled Smart View.
    Case SmartViewErrors.SS_VBA_DEPRECATED
    GetReturnCodeMessage = 'function has been deprecated.
    Case SmartViewErrors.SS_OPERATION_NOT_SUPPORTED_IN_MULTIGRID_MODE
    GetReturnCodeMessage = "Mode is not supported in Multigrid mode."
    Case SmartViewErrors.SS_INVALID_MEMBER
    GetReturnCodeMessage = "invalid member".
    Case SmartViewErros.SS_NO_SV_NAME_RANGE
    GetReturnCodeMessage = "No Smart View range on worksheet named"
    Case SmartViewErrors.SS_AMBIGUOUS_MENU
    GetReturnCodeMessage = "could not solve the menu name.
    Case Else
    GetReturnCodeMessage = 'Undefined error Code' & m
    Select end

    End Function

  • display the host name when using Get-VMHostAdvancedConfiguration

    I want to interview several configuration settings in configuration advanced on all ESXi hosts in my vcenter, for example, I ran the following:

    Get-VMHost | Sort-Object Name. Get-VMHostAdvancedConfiguration-name UserVars.ESXiShellInteractiveTimeOut

    who gave me the following result

    NameValue
    ---------

    UserVars.ESXiShellInteracti... 300

    UserVars.ESXiShellInteracti... 300

    UserVars.ESXiShellInteracti... 300

    UserVars.ESXiShellInteracti... 300

    UserVars.ESXiShellInteracti... 300

    UserVars.ESXiShellInteracti... 300

    UserVars.ESXiShellInteracti... 300

    the problem is that it lacks the host name, in any way, I can change the cmdlets to see the host name of an extra column?

    Thank you

    I used the cmdlet Get-AdvancedSetting, not the Get-VMHostAdvancedConfiguration cmdlet

  • No coredump target warnig on 1 Server

    I have 3 ESXi Server 5.5 with a license from the company. Don't use do not host templates, server starts on an SD card. All stores of data accessed via iSCSI.

    2 servers don't show any error in the VMware client, it does so in summary screen.

    The warning is: Configuration problems, no coredump targets has been configured. Coredumps host cannot be saved.

    All 3 I have the same configuration (disabled):

    ~ # esxcli system network get coredump

    Enabled: false

    VNic host:

    Network IP server:

    Network server port: 0

    I don't want to set up a coredump location, deactivated and that's what I want.

    So why do I get a warning on 1 server and not on others?

    A restart of the ESXi server it solve? Probably not but just in case where... ;-)

    Yes, you need to change the UserVars.SuppressCoredumpWarning to 1 in the host settings.

  • ESXi 5.5u1 added iscsi storage adapter - reboot and now vSphere Client could not connect to "my ip" an unknown error has occurred.  The server could not interpret the customer's request.  The remote server returned an error (503) server unavailable

    I have not yet connect to an iSCSI target device.

    I can ping my host

    when I open http:// "hostip" in a web browser, I get a 503 service not available.

    restart the host gets me nowhere.

    SSH opens somehow, but can not connect

    Console seems OK

    vSphere Client can not connect

    If I reset to the default values of the console it is ok, but when I reconfigure the host, this error will be returned.

    I tried to reinstall from DVD

    I'm completely corrected to date via SSH esxcli

    This happens on both my hosts, although they are almost identical Lenovo thinkserver TS140s with broadcom 10Gig NIC and intel NETWORK card integrated

    It almost always seems to happen the next time I reboot after enabling iscsi support

    The only weird thing I have is that my Integrated NIC is a processor intel 217's and I have to use a special VIB so that it can be used in ESXi

    Customer's winning 8.1

    Here is my installation notes

    Install on USB/SSD stick with custimized ISO i217 NIC driver, reset the configuration and reboot

    Management NIC set to NIC0:1Gig

    IP management: hostIP/24 GW: my gateway

    DNS:DNS on windows vm1, vm2 Windows dns

    HostName:ESXi1.Sub.myregistereddomainname custom DNS Suffixes: sub.myregistereddomainname

    Reset

    Patch to date (https://www.youtube.com/watch?v=_O0Pac0a6g8)

    Download the VIB and .zip in a data store using the vSphere Client

    To get them (https://www.vmware.com/patchmgr/findPatch.portal)

    Start the SSH ESXi service and establish a Putty SSH connection to the ESXi server.

    Put the ESXi server in maintenance mode,

    example of order: software esxcli vib install /vmfs/volumes/ESXi2-2/patch/ESXi550-201404020.zip d

    Re install the Intel 217 NIC driver if removed by patch

    Change acceptance ESXi host sustained community level,

    command: esxcli software - acceptance-level = CommunitySupported

    Install the VIB

    command:esxcli vib software install - v /vmfs/volumes/datastore1/net-e1000e-2.3.2.x86_64.vib

    command: restart

    Connect via VSphere client

    -Storage

    Check/fix/create local storage. VMFS5

    -Networking

    vSwitch0

    Check vmnic0 (1)

    Network port group rename VM to the 'essential '.

    Rename management group of network ports for management of basic-VMkernel traffic.

    -Configuration time

    Enable NTP Client to start and stop the host. ntp.org set 0-3 time servers

    DNS and routing

    Start the virtual machine and stop

    -enable - continue immediately if tools start - stop - prompted action Shutdown - the two delay to 10 seconds

    Security profile

    Services

    SSH - startup - enable the start and stop with host

    Cache host configuration

    -Properties to start SSD - allocate 40GB for the cache host.

    Flashing warnings SSH:

    Advanced settings, UserVars, UserVars.SuppressShellWarning, change from 0 to 1.

    Storage adapters

    -Add - add-in adapter software iSCSI

    I think I saw that I was wrong.  In fact, I applied two patches when only suited. I started with 5.5u1rollup2 and then applied the ESXi550-201404001 and ESXi550-201404020.  Strangely I did not t o had problems until I worked with iSCSI.

  • 5.5, Mcafee vShield MOVE 3.0 and ESXi5.0 Update 2

    Hello

    Im trying to configure vShield by using MOVE from McAfee. I get this error when the MOVEMENT apparatus seeks to register with the vShield:

    Update the option values

    ouresx.mycompany.local

    ' UserVars.VshieldEndpointSolutionsConfigurat -.

    ion' is not valid or is greater than the maximum value

    the number of characters allowed.

    Isn't ESXi5.0 build 2 supported with vShield 5.5?

    According to this, it should be:

    VMware product interoperability matrices

    Concerning

    N

    Hello

    Yes with the company, it's ok.

    You all have the HughesNet of vshield 5.5 configuration in your environment, you can check here: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2059449

    These are the required minimum versions of VMware products to be installed with vShield 5.5:

    • VMware vCenter Server 5.1 or later

      The virtual son VXLAN, to vCenter Server 5.1 or later

    • VMware ESXi/ESX 5.0 or later for each server
      • The virtual son VXLAN, to VMware ESXi 5.1 or later
      • For vShield Endpoint, you need VMware ESX 5.0 or later

    What is your version of vCenter Server? You need 5.1

    Kind regards

    Julien.

  • Together-ESXi-Shell-Configaration.

    Dear friends,

    How to set a deadline for the 600 Shell ESXi sec and set a deadline for the 600 ESXi-Shell-Interactive sec.

    Thanks in advance.

    Try this

    Get-VMHostesxi01.definit.local | Get-AdvancedSetting-Name 'UserVars.ESXiShellInteractiveTimeOut' | Set-AdvancedSetting -Value"600"-Confirm:$false

  • Can't ssh ESXi 5 host

    I had to do a strengthening of security on a host computer and now I can't ssh in.  I can go back to what I did, but I want to clarify what line in the sshd_config file is the cause.  I'll list out what I have:

    The SSH server is enabled and running under Firewall and ssh and ESXi shell is running on the host computer in the security profile

    I can connect to the host via the HP Onboard Administrator, both the shell and the DCUI

    I use putty and I put the 3DES encryption cipher selection policy and I tried to tell the version of the SSH 2 Protocol only, I went back with only 2 and just selection 2

    I can connect to the host directly with root and with an admin account, that set up the shell and DCUI

    I know that root cannot ssh in the host since PermitRootLogin is set to no, I'm getting my secondary account

    I immediately receive an error "The network connection closed unexpectedly Server", so it's going to stop until I can grasp anything.

    Finally, the ESXishelltimeout is 900 seconds

    I don't know what the sshd_config fie since I edited it's just before I had this problem.

    Thanks for any input.

    file of sshd:

    # linking inetd

    # Port 2200

    Protocol 2

    HostKey/etc/ssh/ssh_host_rsa_key

    HostKey/etc/ssh/ssh_host_dsa_key

    UsePrivilegeSeparation Yes

    SyslogFacility auth

    LogLevel info

    PermitRootLogin not

    PrintMotd Yes

    PrintLastLog no

    TCPKeepAlive Yes

    X11Forwarding no

    The cipher 3des-ctr, aes128-ctr, aes192-ctr, aes256-ctr

    Mac hmac-sha1

    AllowTCPForwarding no

    GatewayPorts no

    Allowgroupscase

    GSSAPIAuthentication no

    KerberosAuthentication no

    LOCAL AcceptEnv

    PermitUserEnvironment no

    PermitTunnel not

    MaxSessions 1

    StrictModes yes

    RhostsRSAAuthentication no

    Compression without

    UsePAM Yes

    # use only challenge-response MAP (interactive keyboard)

    PasswordAuthentication no

    Banner/etc/issue

    Subsystem sftp/usr/lib/vmware/openssh/bin/sftp-server

    AuthorizedKeysFile /etc/ssh/keys-%u/authorized_keys

    #ListenAddress

    # 10-minute delay. The default value of ClientAliveCountMax is 3.

    # This is why, we get a 3 * 200 = 600 seconds timeout if the customer has been

    # does not.

    ClientAliveInterval 200

    I think I have figured it out, I think that the 'UsePrivilegeSeparation yes' line is causing the problem, I tried on another host and that seems to be.  I check just in case anyone has the problem in the future.

  • ESXi host con signo amarillo en vcenter

    Hola is, en busca su ayuda aqui, estoy creando datacenter vcenter 5.1 dentro para crear after a dumb cluster back IBM X 3690 X 5, pero al unite los ESXI host los veo con UN signo amarillo cada uno a como esta in the image.

    vcenter.jpg

    alguna idea, can worm porque donde drew me ese signo.

    Entonces Perfecto,

    seleccionas a host go you a software--> parameters configuration, luego el apartado in advanced--> UserVars y todo beneath the UserVars.SuppressShellWarning variable Rabino y cambias Al 0 por el 1 y asi con el otro host.

    Te transcontine una imagen.

    No you easier como fixed olvides

  • Problem with Update Manager

    My system is running on VMware vSphere 5.1 (most recent) U1.

    I tried to update the host ESX (host State), but it failed with the error message:

    Patches of the scene to entity rvc-esx-01

    The host returns esxupdate error code: 15. The package manager transaction is not successful. Check the Update Manager logs and logs esxupdate for more details.

    I checked the esxupdate.log and there are many messages of error as follows. Please help me to identify the problem.

    I thank you very much.

    2013 05-28 T 06: 48:27Z esxupdate: HostInfo: DEBUG: check the file system on altbootbank...

    2013 05-28 T 06: 48:27Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = "[' / sbin/dosfsck ', '-a ', '-v ',' / dev/disks/naa.600508b1001cfd08a4849f06984fd8a2:5'] ', outfile = 'None', returnoutput = 'True', timeout ="0,0 "."

    2013 05-28 T 06: 48:27Z esxupdate: HostInfo: DEBUG: dosfsck dating 1

    Output: dosfsck 2.11 (March 12, 2005)

    dosfsck 2.11, 12 March 2005, FAT32, LFN

    Check the last sector of the file system, we can access

    Content of boot sector:

    ID of the system "MSDOS5.0".

    Byte media 0xf8 (hard drive)

    512 bytes / logical sector

    4096 bytes per cluster

    2 areas

    First FAT starts at byte 1024 (sector 2)

    2 fatty acids, 16-bit entries

    128000 bytes per FAT (= 250 sectors)

    Root directory begins at byte 257024 (district 502)

    512 root directory entries

    Data area starts at byte 273408 (sector 534)

    63929 data clusters (261853184 bytes)

    64 heads, 32 sectors/track

    0 hidden sectors

    total 511968 areas

    Fats are distinguished, but seem to be intact. Using FAT first.

    imgdb.tgz

    Contains a free cluster (39115). Assuming that the expressions of folklore.

    imgdb.tgz

    File size is 32029 bytes, the length of string cluster is 0 bytes.

    Truncate a file of 0 bytes.

    s.V00

    File size is 119879581 bytes, the length of string cluster is 109858816 bytes.

    File truncation

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: an exception error esxupdate was taken:

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: Traceback (most recent call changed):

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: file ' / usr/sbin/esxupdate ", line 216, hand-held

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: cmd. Run()

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 144, in the term

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 243, in InstallVibsFromSources

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 345, in _installVibs

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 388, in _validateAndInstallProfile

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/HostImage.py", line 639, at the stage

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Installer/BootBankInstaller.py", line 672 in StartTransaction

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: File "/ build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Installer/BootBankInstaller.py", line 302, in Recover

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: ERROR: InstallationError: ("," there was a file system on altbootbank of error checking, see log for details ".)

    2013 05-28 T 06: 48:27Z esxupdate: esxupdate: DEBUG: < < <

    2013 05-28 T 06: 48:32Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = ' [' / sbin/esxcfg-advcfg ', '-q', '-g', ' / UserVars/EsximageNetTimeout "]', outfile = 'None', returnoutput = 'True', timeout ="0.0 ".

    2013 05-28 T 06: 48:32Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = ' [' / sbin/esxcfg-advcfg ', '-q', '-g', ' / UserVars/EsximageNetRetries "]', outfile = 'None', returnoutput = 'True', timeout ="0.0 ".

    2013 05-28 T 06: 48:32Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = ' [' / sbin/esxcfg-advcfg ', '-q', '-g', ' / UserVars/EsximageNetRateLimit "]', outfile = 'None', returnoutput = 'True', timeout ="0.0 ".

    2013 05-28 T 06: 48:32Z esxupdate: esxupdate: INFO: -.

    Command: scan

    Args: ["scan"]

    Options: {'nosigcheck': zero, 'Retry': 5, "loglevel": zero, 'cleancache': None, 'viburls': zero, 'meta': ['http://172.29.137.20:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip','http://172.29.137.20:9084/vum/repository/hostupdate/vmw/vmw-ESXi-5.1.0-metadata.zip'], 'proxyurl': None, 'timeout': 30.0, "cachesize": zero, "Valentina": True, 'maintenancemode': None}

    2013 05-28 T 06: 48:32Z esxupdate: BootBankInstaller.pyc: INFO: value not recognized 'title = loading VMware ESXi' in boot.cfg

    2013 05-28 T 06: 48:32Z esxupdate: BootBankInstaller.pyc: INFO: /altbootbank/boot.cfg: bootstate goes from 0 to 3

    2013 05-28 T 06: 48:33Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = "[' / sbin/bootOption ', '-rp'] ', outfile = 'None', returnoutput = 'True', timeout ="0,0 "."

    2013 05-28 T 06: 48:33Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = "[' / sbin/bootOption ', '-ro'] ', outfile = 'None', returnoutput = 'True', timeout ="0,0 "."

    2013-05 - 28 T 06: 48:33Z esxupdate: downloader: DEBUG: download http://172.29.137.20:9084/VUM/repository/hostupdate/CSCO/CSCO-VEM-5.1.0-metadata.zip to/tmp/tmprZ4JfI...

    2013 05-28 T 06: 48:33Z esxupdate: Metadata.pyc: INFO: unknown file vendor - index.xml in the metadata file

    2013-05 - 28 T 06: 48:33Z esxupdate: downloader: DEBUG: download http://172.29.137.20:9084/VUM/repository/hostupdate/VMW/VMW-ESXi-5.1.0-metadata.zip to/tmp/tmpytjFZI...

    2013 05-28 T 06: 48:33Z esxupdate: Metadata.pyc: INFO: unknown file vendor - index.xml in the metadata file

    2013 05-28 T 06: 48:33Z esxupdate: BootBankInstaller.pyc: INFO: value not recognized 'title = loading VMware ESXi' in boot.cfg

    2013 05-28 T 06: 48:33Z esxupdate: BootBankInstaller.pyc: INFO: /altbootbank/boot.cfg: bootstate goes from 0 to 3

    2013 05-28 T 06: 48:33Z esxupdate: vmware.runcommand: INFO: RunCommand called with: args = ' [' / usr/sbin/vsish ', '-e', '-p', 'cat', ' / hardware/bios/dmiInfo "]', outfile = 'None', returnoutput = 'True', timeout ="0.0 ".

    2013 05-28 T 06: 48:33Z esxupdate: esxupdate: INFO: everything is done!

    2013 05-28 T 06: 48:33Z esxupdate: esxupdate: DEBUG: < < <

    Yes run command now below.

    dosfsck - a w /vmfs/devices/disks/naa.600508b1001cfd08a4849f06984fd8a2:5

  • Disable the alert active ssh

    Hello

    I have a few 4.1.0 esxi hosts and I want to disable the alarm 'active ssh.

    I already found the VMware KB which talk about it, but in my Advanced settings, there is no UserVars > UserVars.SuppressShellWarning.

    Someone knows how to do it on esxi 4.1.0?

    Thank you very much

    There is an article in kb for this question. What version of update 4.1 do you use?
    "Before vSphere 4.1 update 2, disabling Remote Tech Support Mode (SSH) and Local Tech support Mode is the only way to avoid this warning to appear. In vSphere 4.1 Update 2, you can disable the warnings of Remote Tech Support remotely (SSH) and Mode of support Local Tech to appear on the hosts. »
  • Configuration of ESX 5 problems

    Should I worry, and how do I delete these...

    See atatched:

    Thank you is advanced...

    You should not be worried :-), it's normal.

    You can disable these settings by going to Configuration-> advanced-> UserVars (left menu) (under software) and in the right menu to change the end of the 'UserVars.SuppressShellWarning' to 1.

    Warnings will be gone.

Maybe you are looking for