Operational Defect Database

BugZero updated this defect 58 days ago.

VMware | 323877

Smarts IP Suite: How to set EXPLICITLY_MANAGED for numerous devices with same vendor and type.

Last update date:

3/22/2024

Affected products:

Smart Assurance - SMARTS

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Symptoms

Smarts IP Suite: How to set EXPLICITLY_MANAGED for numerous devices with same vendor and type. How do I use a script to set the ports' managed status for a large number of devices instead of doing it manually? Ports' status is UNKNOWN after discovery User scenario:By default, ports are in unmanaged state.Upon discovery, ports' status is UNKNOWN for a large set of devices.User manually sets the ports as EXPLICITLY_MANAGED and hits Reconfigure.After Rediscovering the device, the ports are now UP/UP.How can a user do it for all of these device type (same vendor)?

Resolution

Create a file called managePorts.asl. Copy the below content to it.NOTE: The below script is an example for a device with system OID .1.3.6.1.4.1.9.1.958. Change the system OID to your requirement.START {}do { devicelist = getInstances("UnitaryComputerSystem"); count = 0; print("Explicitly Managing all ports corresponding to System Object OID .1.3.6.1.4.1.9.1.958"); foreach device (devicelist) { devRef = object(device); if (glob(devRef->SystemObjectID,".1.3.6.1.4.1.9.1.958")) { portList = devRef->getPorts(); foreach portObj (portList) { portObj = object(portObj); portObj->ManagedState = "EXPLICITLY_MANAGED"; } } } stop();}Save the file in your IP/smarts/bin directory and execute it as given in the following step. Execute this script from your <BASE DIR>/IP/smarts/bin by giving the command:sm_adapter -s <am-pm-domain_name> managePorts.asl

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...