Highlighted
Absent Member.
Absent Member.
180 views

How is "Node is Virtual" attribute determined

Jump to solution

Can someone point me in the direction of some documentation that can tell me how the "node is virutal" attribute is determined for Unix and Windows CIT?

 

thanks for the help,

Karriane

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: How is "Node is Virtual" attribute determined

Jump to solution

Karriane;

 

In the modeling.py script we will set 'isVirtual' to true if the device has a manufacturer of 'VMware, Inc.':

 

def setHostManufacturerAttribute(hostOsh, manufacturer):
    hostBuilder = HostBuilder(hostOsh)
    MANUFACTURER_EXCLUDE_PATTERN = 'System manufacturer|To Be Filled By O\.E\.M\.'
    if manufacturer:
        manufacturer = manufacturer.replace('_', ' ').strip()
        if re.search(MANUFACTURER_EXCLUDE_PATTERN ,manufacturer, re.IGNORECASE):
            logger.warn('Manufacturer %s was ignored as invalid and set to empty value' % manufacturer)
            manufacturer = ''
        else:
            if manufacturer == 'VMware, Inc.':
                logger.warn('Manufacturer is VMware, assuming node is virtual machine')
                hostBuilder.setAsVirtual(1)
    hostBuilder.setAttribute('host_manufacturer', manufacturer)
    hostBuilder.build()

Hope this helps,
Keith Paschal
UCMDB Worldwide Support Lead
Micro Focus Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution."

Click the KUDOS star on the left to say 'Thanks'

View solution in original post

0 Likes
4 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How is "Node is Virtual" attribute determined

Jump to solution

Hi Karriane,

 

Such attribute shows if the Node is virtual, when it is collected by a number of jobs, like Host Connecton by Shell

exec   Discover Virtualization

Info

AIX: prtconf

AIX LPARS: lparstat -i

SunOS: /usr/bin/zonename

Solaris   Zones:  ps -o zone

IBM HMC: lshmc -V -n

 

However, other virtualization jobs do collected that information as well and put the Node is Virtual attribute

Hope this helps,

Ana Acosta-Diaz

 

"HP Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution."

Click the KUDOS star on the left to say 'Thanks'
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: How is "Node is Virtual" attribute determined

Jump to solution

Karriane;

 

It might be helpful if you could tell what discovery job set that value (look at the history for the node).

 

Keith

Hope this helps,
Keith Paschal
UCMDB Worldwide Support Lead
Micro Focus Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution."

Click the KUDOS star on the left to say 'Thanks'
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How is "Node is Virtual" attribute determined

Jump to solution

hi,

 

I was asking in a more general fashion.  Specifically, I have some Windows servers that are have  the attribute "DiscoveredModel" populated with "Virtual Machine" but the "Node is Virtial" attribute is null.  These servers were built with Microsoft Hyper-V.  I did check the History and there isn't a record for the "Node is Virtual", which I would expect b/c it is null. 

 

thanks,

Karriane

 

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: How is "Node is Virtual" attribute determined

Jump to solution

Karriane;

 

In the modeling.py script we will set 'isVirtual' to true if the device has a manufacturer of 'VMware, Inc.':

 

def setHostManufacturerAttribute(hostOsh, manufacturer):
    hostBuilder = HostBuilder(hostOsh)
    MANUFACTURER_EXCLUDE_PATTERN = 'System manufacturer|To Be Filled By O\.E\.M\.'
    if manufacturer:
        manufacturer = manufacturer.replace('_', ' ').strip()
        if re.search(MANUFACTURER_EXCLUDE_PATTERN ,manufacturer, re.IGNORECASE):
            logger.warn('Manufacturer %s was ignored as invalid and set to empty value' % manufacturer)
            manufacturer = ''
        else:
            if manufacturer == 'VMware, Inc.':
                logger.warn('Manufacturer is VMware, assuming node is virtual machine')
                hostBuilder.setAsVirtual(1)
    hostBuilder.setAttribute('host_manufacturer', manufacturer)
    hostBuilder.build()

Hope this helps,
Keith Paschal
UCMDB Worldwide Support Lead
Micro Focus Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution."

Click the KUDOS star on the left to say 'Thanks'

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.