[ACE-5] Integrate NetXMS in ACE for the IT Inventory Created: 05/Apr/24  Updated: 17/Apr/24  Due: 12/Apr/24

Status: To Do
Project: ACE
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Mbaye Lo Assignee: Mbaye Lo
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File IT_Asset_Inventory_Management_for_Server_&_Software_Use_case_type_1_Product_Hero_-_hero_image.webp    
Customer:
NEP_3.X
Planned Start:
Planned End:
Complexity: High

 Description   

Ensure NetXMS is ready for integration with NEP. (in progress) :

2. Propose an arrangement of the different IT asset categories in the IT inventory Module.

1. Prepare template for ESX servers/ Linux Machines / Windows Machine / Printers /



 Comments   
Comment by Mbaye Lo [ 15/Apr/24 ]

The below script performs SNMP queries to retrieve information about memory usage, hardware details, processor usage, and virtual machines hosted on the ESXi host. Adjust SNMP community string and OID definitions as needed based on your environment.

/* !/bin/bash

/* Usage: ./vmware_inventory.sh <ESXi_host_IP>

/* Check if IP address is provided
if [ -z "$1" ]; then
echo "Usage: $0 <ESXi_host_IP>"
exit 1
fi

/* Define ESXi host IP address
ESXI_HOST="$1"

/* SNMP community string
SNMP_COMMUNITY="public"

/* SNMP OID definitions
MEMORY_USAGE_OID="HOST-RESOURCES-MIB::hrStorageUsed.1"
HARDWARE_DETAILS_OID="VMWARE-MIB::vmwHwManufacturer.0"
PROCESSOR_USAGE_OID="HOST-RESOURCES-MIB::hrProcessorLoad.1"
VIRTUAL_MACHINES_OID="VMWARE-MIB::vmwVmName"

/* Function to perform SNMP query
snmp_query() {
snmpwalk -v2c -c "$SNMP_COMMUNITY" "$ESXI_HOST" "$1" | awk -F ": " '

{print $2}

'
}

/* Retrieve memory usage
MEMORY_USAGE=$(snmp_query "$MEMORY_USAGE_OID")

/* Retrieve hardware details
HARDWARE_DETAILS=$(snmp_query "$HARDWARE_DETAILS_OID")

/* Retrieve processor usage
PROCESSOR_USAGE=$(snmp_query "$PROCESSOR_USAGE_OID")

/* Retrieve virtual machines
VIRTUAL_MACHINES=$(snmp_query "$VIRTUAL_MACHINES_OID")

/* Display gathered information
echo "Memory Usage: $MEMORY_USAGE"
echo "Hardware Details: $HARDWARE_DETAILS"
echo "Processor Usage: $PROCESSOR_USAGE"
echo "Virtual Machines:"
echo "$VIRTUAL_MACHINES"

=======================================================================

/*# Define SNMP community string
const SNMP_COMMUNITY = "public";

/*# Define SNMP OID definitions
const MEMORY_USAGE_OID = "HOST-RESOURCES-MIB::hrStorageUsed.1";
const HARDWARE_DETAILS_OID = "VMWARE-MIB::vmwHwManufacturer.0";
const PROCESSOR_USAGE_OID = "HOST-RESOURCES-MIB::hrProcessorLoad.1";
const VIRTUAL_MACHINES_OID = "VMWARE-MIB::vmwVmName";

/*# Function to perform SNMP query
sub snmpQuery(host, oid)

{ return SNMP::get(host, SNMP_COMMUNITY, oid); }

/*# Retrieve memory usage
const memoryUsage = snmpQuery(node.ipAddress, MEMORY_USAGE_OID);

/*# Retrieve hardware details
const hardwareDetails = snmpQuery(node.ipAddress, HARDWARE_DETAILS_OID);

/*# Retrieve processor usage
const processorUsage = snmpQuery(node.ipAddress, PROCESSOR_USAGE_OID);

/*# Retrieve virtual machines
const virtualMachines = snmpQuery(node.ipAddress, VIRTUAL_MACHINES_OID);

/*# Output gathered information
console.print("Memory Usage: " + memoryUsage);
console.print("Hardware Details: " + hardwareDetails);
console.print("Processor Usage: " + processorUsage);
console.print("Virtual Machines: " + virtualMachines);

Generated at Mon Jun 15 14:12:09 EEST 2026 using JIRA 6.1.4#6159-sha1:44eaedef2e4a625c6c7183698b2468d4719c20dc.