Highlighted
SKR1231
1 Copper

How to generate the list of all Ports

Hi,

  I have a request from the client. They need to saw all the ports discovered by the tool with the status whether it is managed or unmanaged.

Is there any DMCTL command available to get this data ?

Please help me with your suggestions.

Skr

Reply
2 Replies
Highlighted
kaip
1 Copper

Re: How to generate the list of all Ports

Hi,

you want to use an asl script:

something like this:

you might want to adopt this line accordingly:

ifObj->ManagedState == "EXPLICITLY_MANAGED"

BR,

Ciao kaip.

Run an ASL Script on the Domain Manager level (not SAM):

----------------------------------------------

/opt/InCharge7/SAM/smarts/bin/sm_adapter -s INCHARGE-IP getInterfaces_Explicitly_un.asl

getInterfaces_Explicitly_un.asl:

START {

.. eol

} do {

//print("*** DEBUG: KP: ");

foreach ifName (getInstances("Port")) {

  ifObj = object("Port", ifName);

  //ipObj = object("IP", ifObj);

  //sizeUnderlying = sizeof(ifObj->Underlying);

  //print("*** DEBUG: KP: ipObj:".ipObj);

  if ((!ifObj->isNull()) && ( (ifObj->ManagedState == "EXPLICITLY_MANAGED" ) ) ) {

   print(   ifObj->SystemVendor."|".ifObj->SystemModel."|".ifObj->SystemName."|".ifObj->DeviceID."|".ifObj->InterfaceNumber."|".ifObj->DisplayName."|".ifObj->ManagedState."|" );

  }

}

}

Reply
Baadsgaard
1 Copper

Re: How to generate the list of all Ports

Hi Skr,

Did you have any follow up questions regarding Ciao Kaips reply?  Please let us know if we can be of further assistance.

Regards,

Joseph Baadsgaard

EMC Technical Support Engineer I,

Ionix Smarts

Reply