S.No | CLI | API |
1 | SSH is used | REST (http/https) is sued |
2 | End devices may have maximum connections limit in a specific time. Session idle timeout will affect OpManager's polling time and sometimes poll(s) will be missed. | Only session timeout which can be identified and a new session can be created/used |
3 | CLI Response will have character limit, if it exceeds the limit, we may need to execute multiple commands for a single entity. | No such limitations |
4 | A separate parser needs to be written for parsing the CLI commands which increases memory usage and time for a single poll. | Well-framed response will be returned from the end device,(JSON/XML) which can be easily parsed by inbuilt parser in JAVA |