Advantages of API based Template over CLI

Advantages of API based Template over CLI

This article is based on the experience in regards to storage module with OpManager 

SSH is used
REST (http/https) is sued
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
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
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

On a larger scale, APIs are:

  • Faster by order of magnitude
  • Less prone to breakage
  • Return data in easily parsed format (usually JSON)

By considering all the above, we are introducing API Templates for the available devices and will deprecate CLI Templates in the future course. Any new enhancements/features will be introduced to API Templates only and not for deprecated CLI Templates. Hope this helps. 

        New to ADManager Plus?

          New to ADSelfService Plus?

            • Related Articles

            • Creating custom script template in OpManager

            • Modem Based SMS Configuration

              Prerequisites: Any Modem that supports the following pre-requisite conditions can be used with OpManager. 1.Modem\Mobile must have GSM functionality. 2. Must have provision for inserting SIM. 3. Should support 7bit (GSM default alphabet), 8bit and ...
            • Compatible modems for Modem based SMS in OpManager

              We have announced End-of-Support for this feature on Oct 31 st 2018.  Please refer this forum post for details and other alternatives. ...
            • Notification Profile Migration

              Once the upgrade is successfully done from 11600 to 12200, you would be seeing more notification profiles than you have actually created. Don't get panic. It is not a bug. It is one of the design changes we have been trying to do it in the past. ...
            • Wrong Memory usage stats using CLI monitor on Linux devices

              Issue - The memory usage monitor worked fine all this while and suddenly there might be a surge in utilization which may often cross 100%-180% whereas the actual utilization is less. Reproduce the issue on the server using - /usr/bin/free -b Cause - ...