How to configured (create) extend commands dynamically
"tresh tresh" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there, I'd like to ask how it is possible to configure extend directives dynamically. In other words, I want to create a new extend directive when the snmp deamon is running. I tried to pass new arguments to an existing command so I tried to set up the NET-SNMP-EXTEND-MIB::nsExtendArgs object (It was empty) when the NET-SNMP-EXTEND-MIB::nsExtendCommand."/bin/echo"(that is an example) object existed. I found out it was not posible, because the MAX-ACCESS was set to read-create which basically means it can be either read or created if it doesn't exist yet (Correct me if I'm mistaken). My question is: How can I create a new extend command and pass new arguments by using snmpset command. I know it should be something like: snmpset -v 2c -c key computer.com nsExtendCommand.\"command\" s "/bin/command" but it gives me this: Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) Failed object: NET-SNMP-EXTEND-MIB::nsExtendCommand. Thanks Roman ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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