I have a foundry Server Iron box with code software release 07.5.xx. And I want to configure the box using snmpget. I checked through the foundry MIB and found the OID for the real server settings that I would like to configure.
When i do snmp get for the real server name and IP OID's i get a correct response, as follows: # snmpget -v1 -c rwcommunity 10.10.10.253 .1.3.6.1.4.1.1991.1.1.4.3.1.1.2.1 SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.2.1 = STRING: "test" # snmpget -v1 -c rwcommunity 10.10.10.253 .1.3.6.1.4.1.1991.1.1.4.3.1.1.3.1 SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.3.1 = IpAddress: 10.10.10.1 But when I try to change the configuration using snmpset command, I am getting errors: # snmpset -v1 -c rwcommunity 10.10.10.253 .1.3.6.1.4.1.1991.1.1.4.3.1.1.2.1 s my-new-server-name Error in packet. Reason: (genError) A general failure occured Failed object: SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.2.1 snmpset -v1 -c rwcommunity 10.10.10.253 .1.3.6.1.4.1.1991.1.1.4.3.1.1.3.1 a 10.10.10.2Error in packet. Reason: (genError) A general failure occured Failed object: SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.3.1 Am i missing anything? Any help would be highly appreciated. But this is working: # snmpget -v1 -c rwcommunity 10.10.10.253 sysContact.0 SNMPv2-MIB::sysContact.0 = STRING: m...@email.com # snmpset -v1 -c rwcommunity 10.10.10.253 sysContact.0 s m...@newemail.com SNMPv2-MIB::sysContact.0 = STRING: m...@newemail.com # snmpget -v1 -c rwcommunity 10.10.10.253 sysContact.0 SNMPv2-MIB::sysContact.0 = STRING: m...@newemail.com *****Below are the objects definition from Foundry MIB.**** -- Real Server table--- snL4RealServerTable OBJECT-TYPE SYNTAX SEQUENCE OF SnL4RealServerEntry ACCESS not-accessible STATUS mandatory DESCRIPTION "Real Server table." ::= { snL4RealServer 1 } snL4RealServerEntry OBJECT-TYPE SYNTAX SnL4RealServerEntry ACCESS not-accessible STATUS mandatory DESCRIPTION "An entry in the Real Server table." INDEX { snL4RealServerIndex } ::= { snL4RealServerTable 1 } SnL4RealServerEntry ::= SEQUENCE { snL4RealServerIndex INTEGER, snL4RealServerName L4ServerName, snL4RealServerIP IpAddress, snL4RealServerAdminStatus L4Status, snL4RealServerMaxConnections INTEGER, snL4RealServerWeight INTEGER, snL4RealServerRowStatus L4RowSts, snL4RealServerDeleteState L4DeleteState } snL4RealServerIndex OBJECT-TYPE SYNTAX INTEGER (1..256) ACCESS read-only STATUS mandatory DESCRIPTION "The table index for a Real Server entry." ::= { snL4RealServerEntry 1 } snL4RealServerName OBJECT-TYPE SYNTAX L4ServerName ACCESS read-write STATUS mandatory DESCRIPTION "Real server name." ::= { snL4RealServerEntry 2 } snL4RealServerIP OBJECT-TYPE SYNTAX IpAddress ACCESS read-write STATUS mandatory DESCRIPTION "Real Server IP Address." ::= { snL4RealServerEntry 3 } snL4RealServerAdminStatus OBJECT-TYPE SYNTAX L4Status ACCESS read-write STATUS mandatory DESCRIPTION "Real Server status is ether disabled(0) or enabled(1)." ::= { snL4RealServerEntry 4 } snL4RealServerMaxConnections OBJECT-TYPE SYNTAX INTEGER (0..1000000) ACCESS read-write STATUS mandatory DESCRIPTION "Real Server Maximum Connection allowed." ::= { snL4RealServerEntry 5 } snL4RealServerWeight OBJECT-TYPE SYNTAX INTEGER (1..20) ACCESS read-write STATUS mandatory DESCRIPTION "Real Server weight" ::= { snL4RealServerEntry 6 } snL4RealServerRowStatus OBJECT-TYPE SYNTAX L4RowSts ACCESS read-write STATUS mandatory DESCRIPTION "To create or delete a real server entry." ::= {snL4RealServerEntry 7 } snL4RealServerDeleteState OBJECT-TYPE SYNTAX L4DeleteState ACCESS read-only STATUS mandatory DESCRIPTION "Delete operation state." ::= { snL4RealServerEntry 8 } ***end of SnL4RealServer Object*** Thanks, raj -- sysAdmin Evryx Technologies, Inc. 412 W. Broadway, Suite 201 | Glendale, CA 91204 T: +1.818.552.3568 F: +1.818.552.3587 C: +1 818.720.9504 www.linkmemobile.com -- sysAdmin Evryx Technologies, Inc. 412 W. Broadway, Suite 201 | Glendale, CA 91204 T: +1.818.552.3568 F: +1.818.552.3587 C: +1 818.720.9504 www.linkmemobile.com
------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users