Unsolved
This post is more than 5 years old
1 Message
0
1029
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
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
November 2nd, 2012 03:00
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."|" );
}
}
}
Baadsgaard
16 Posts
0
November 14th, 2012 15:00
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