cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2511
Views
0
Helpful
2
Replies

SNMP GET operation via EEM Tcl Scripting

alexxandrozz
Level 1
Level 1

Hi Experts,

I am writing to you because I was browsing through the archives and saw in one discussion the following command:

!

sys_reqinfo_snmp_set oid 1.3.6.1.2.1.2.2.1.7.2.3 int 2 community private ipaddr 1.1.1.1

I am trying to the get the "get" version of the above command. This means a command that gives you the ability to poll an external/remote SNMP Agent MIB. This is the reason I highlited the "ipaddr" keyword.

The following command gives you the option to locally poll an object, but it does not give you the option (as indicated in the available literature) to do it on an external device:

!

sys_reqinfo_snmp oid ? get_type exact|next

In applet configuration mode there is a way to achieve that but I have not found any indication on how to do it via Tcl, which supposedly supersedes what you can do via applet configuration.

Thanks in advance for you knowledge and help.

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

Assuming you have a new enough version of EEM, the command is:

sys_reqinfo_snmp oid OID get_type {exact|next} community COMMUNITY ipaddr IPADDR

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Assuming you have a new enough version of EEM, the command is:

sys_reqinfo_snmp oid OID get_type {exact|next} community COMMUNITY ipaddr IPADDR

Hi Joseph,

Thanks a lot for the info.

Review Cisco Networking for a $25 gift card