SNMP vs CLI

Feb 15, 2007 2 Replies

Hi all,



Both CLI and SNMP are able to retreive the information of the switch. What is the difference between the two besides the connection interface? When should I use CLI and when the SNMP will do the better job?



Thanks


SNMP may be easier to handle for automatic retrieval ... for CLI you can use Telnet::Cisco (perl) to do this, but SNMP may be much easier

Klaus

Some statistics or logs are not available via SNMP, and others are not available in a nice format via SNMP.

Also, it is common for SNMP to be rate-limited; if you are not able to pull the information you want out in an SNMP Bulk GET, you might not be able to pull it all out via SNMP as quickly as with the CLI.

SNMP uses UDP, so the device is allowed to ignore it; it isn't allowed to ignore the CLI.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required