Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

SNMP GET operation via EEM Tcl Scripting

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.

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

SNMP GET operation via EEM Tcl Scripting

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

2 REPLIES
Cisco Employee

SNMP GET operation via EEM Tcl Scripting

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

Community Member

SNMP GET operation via EEM Tcl Scripting

Hi Joseph,

Thanks a lot for the info.

840
Views
0
Helpful
2
Replies
CreatePlease to create content