Re: running a script with a dynamic parameter

Linux <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Is this what you are looking for? This would the content of your script 
"program".

#!/bin/sh

param=$1

/*snmpset -v3 -a SHA -A STrP@SSWRD -x AES -X STr0ngP@SSWRD -l authPriv 
-u snmpadmin host_ip .1.4.6.1.3.35514.4.1 s $param*/

- Ajay/**/Sharma

/*
*/

On 11/25/19 4:35 AM, Дровалев Роман wrote:
>
> Hello.
>
> Tell me please. Is it possible with Net-SNMP to do the following?
>
> I send the command to the agent:
>
> /*snmpset -v3 -a SHA -A STrP@SSWRD -x AES -X STr0ngP@SSWRD -l authPriv 
> -u snmpadmin host_ip .1.4.6.1.3.35514.4.1 s "parameter #1"
> */
>
>
> for this OID, the script "program" is executed on the agent with the 
> "parameter #1" input for this script.
>
> Is it possible to implement this?
> What is the most suitable way for this?
>
> /"parameter #1" - this can be, for example, curl request./
>
> Thanks. Roman.
>
>
>
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.