Unsolved
This post is more than 5 years old
19 Posts
0
2384
April 12th, 2010 02:00
Issue in Setting PortKey for a Port and using findPort Operation in Switch Options
Hi All,
In IP/APM, I am using findPort Operation of the Switch to identify a Port.
I changed the PortKey using the Put operation on that Port object.
The PortKey is changed and it is reflected in the attributes of the Port Object.
However when I tried using the findPort Operation of the Switch to identify the Port using the new PortKey, it is not fetching me any results. But on using the older PortKey in the findPort Operation of the Switch the Port is obtained correctly.
I feel it as a bug. Is there any one who has encountered this issue?
How to set the PortKey correctly so that it is identified properly in the findPort Operation.
Thanks in advance
With Warm Regards,
Gopal
bkuhhirte
52 Posts
0
April 12th, 2010 04:00
Gopal,
That isn't (really) a bug. The expectation is that the PortKey is a part of the Name of the object, so if you are changing one and not the other, you will find that you don't locate the object. There are a number of alternatives that you could look into that provide similar functionality without the restriction of having it be part of the Name:
findPortByPortNumber()
findPortByInterfaceNumber()
findNetworkAdapterByDeviceID()
findNetworkAdapterByDescription()
findNetworkAdapterByInterfaceNumber()
You also should be careful here as those values tend to be written to by the discovery probes in IP AM. Unless you are ultimately responsible for populating such data, it may not be there after a discovery runs.
Regards,
Bill
gopal_emc
19 Posts
0
April 12th, 2010 05:00
Hi Bill,
Thanks for the information.
We will use any of the other functions on which we already started working.
However if there is a provision to change the PortKey then it defeats the purpose of the function.
I think EMC should take care of this problem in the next patch.
With Warm Regards,
Gopal
gopal_emc
19 Posts
0
April 12th, 2010 06:00
Bill,
It is fine to change the operations appropriately.
Do you mean removing the oldone means removing the Port or its key?
How to remove the port key for a port and create a new one?
With Warm Regards,
Gopal
bkuhhirte
52 Posts
1
April 12th, 2010 06:00
Gopal,
At best we would consider changing the description of the operation to be more accurate, but changing the nature of the operation would actually change its performance characteristics. Since the makePort and findPort operations assume the same index values, if the fundamental key to the object changes, why wouldn't you remove the old one and create a new one with the new key? That assumption is core to the behavior of all the findXXX operations, not just findPort, so I really don't see a reason to change.
Bill