List down all the devices exposing a MAC address in IP domain
search cancel

List down all the devices exposing a MAC address in IP domain

book

Article ID: 433231

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

  • You need to implement resolution steps as mentioned in the KB to avoid False Trunk cable connection formed between two devices.

  • However before adding required MAC address range to the parameter VSSMACRange you need to know all the devices exposing this particular MAC address range in IP domain.

Environment

All supported releases of Smart

Resolution

NOTE: Please try this in your non-production environment first.

1). Use the following command to check which device hosts the required MAC address:

    dmctl -s <IP-Domain> get MAC::MAC-##-##-##-##-##-##::HostedBy
  

2). Use below asl script to get the list of devices actively exposing the required MAC address ##-##-##-##-##-## as the designated bridge on respective ports:

  • Create a file find_mac.asl and add the following code:        
START {
  .. eol
} do {
  foreach nodeName (getInstances("STPNode")) {
    nodeObj = object("STPNode", nodeName);
    if (!nodeObj->isNull()) {
      macObj = nodeObj->DesignatedBridgeMAC;
      if (glob("*MAC::MAC-##-##-##-##-##-##*", macObj)) {
        print("Match found: ".nodeName);
      }
    }
  }
}
  • Run the script using the sm_adapter: /BASE_DIR/bin/sm_adapter -s <IP-Domain> /path-to-file/find_mac.asl