RE: problem configuring foundry load balancer using snmpset
From: Raj Gurung [mailto:r...@evryx.com] Sent: Wednesday, December 09, 2009 2:32 PM I tried providing enable password in snmpget command and also with no ^^^ ||| You mean snmpset, right? Otherwise, I've found your problem... snmp-server pw-check enabled on Load Balancer. Uploading the configuration to tftp worked for both. But, no joy still with the load balancer (real server) add/modify. It can be tough to work through these things sometimes. The web page you pointed to is very helpful, though, and strongly suggests you should be able to manage through SNMP. Try this: $ snmpset -v1 -c rwcommunity 10.10.10.253 . snL4RealServerRowStatus.1 i notInService snAgGblPassword.0 s my-password $ snmpset -v1 -c rwcommunity 10.10.10.253 . snL4RealServerName.1 s my-new-server-name snL4RealServerRowStatus.1 i active snAgGblPassword.0 s my-password HTH, Mike -- 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
Re: problem configuring foundry load balancer using snmpset
On Dec 10, 2009, at 10:36 AM, Mike Ayers wrote: From: Raj Gurung [mailto:r...@evryx.com] Sent: Wednesday, December 09, 2009 2:32 PM I tried providing enable password in snmpget command and also with no ^^^ ||| You mean snmpset, right? Otherwise, I've found your problem... Yes I meant snmpset. Sorry *typo*. snmp-server pw-check enabled on Load Balancer. Uploading the configuration to tftp worked for both. But, no joy still with the load balancer (real server) add/modify. It can be tough to work through these things sometimes. The web page you pointed to is very helpful, though, and strongly suggests you should be able to manage through SNMP. Try this: $ snmpset -v1 -c rwcommunity 10.10.10.253 . snL4RealServerRowStatus.1 i notInService snAgGblPassword.0 s my-password $ snmpset -v1 -c rwcommunity 10.10.10.253 . snL4RealServerName.1 s my-new-server-name snL4RealServerRowStatus.1 i active snAgGblPassword.0 s my-password Foundry didnt like notInService(2) value for snL4RealServerRowStatus.Found that foundry snL4RealServerRowStatus value mappings for row creation/modification/deletion as [modify(3), create(4), delete (5)]. And it worked. creating a real server row #snmpset -v2c -c rwcommunity 10.10.10.253 snL4RealServerRowStatus.4 i create snL4RealServerMaxConnections.4 i 100 snL4RealServerName.4 s four snL4RealServerIP.4 a 1.1.1.4 modifying a real server row #snmpset -v2c -c rwcommunity 10.10.10.253 snL4RealServerRowStatus.4 i modify snL4RealServerMaxConnections.4 i 100 deleting a real server (row) #snmpset -v2c -c rwcommunity 10.10.10.253 snL4RealServerRowStatus.4 i delete snL4RealServerName.4 s four HTH, Mike Thanks a lot. Your suggestion to http://www.ietf.org/rfc/rfc2579.txt was really helpful. I really appreciate it. -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 -- 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
RE: problem configuring foundry load balancer using snmpset
From: Raj Gurung [mailto:r...@evryx.com] Sent: Thursday, December 10, 2009 2:23 PM Foundry didnt like notInService(2) value for snL4RealServerRowStatus.Found that foundry snL4RealServerRowStatus value mappings for row creation/modification/deletion as [modify(3), create(4), delete (5)]. And it worked. Just so I'm clear - you are up and running? You must delete the rows to reconfigure the device, correct? Thanks, Mike -- 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
Re: problem configuring foundry load balancer using snmpset
On Dec 10, 2009, at 2:45 PM, Mike Ayers wrote: From: Raj Gurung [mailto:r...@evryx.com] Sent: Thursday, December 10, 2009 2:23 PM Foundry didnt like notInService(2) value for snL4RealServerRowStatus.Found that foundry snL4RealServerRowStatus value mappings for row creation/modification/deletion as [modify(3), create(4), delete (5)]. And it worked. Just so I'm clear - you are up and running? I am able to add/delete real servers. I haven't tried adding ports and other configurations yet. But i am optimistic. You must delete the rows to reconfigure the device, correct? Not necessarily. It seems we can modify/reconfigure by changing the state of RowStatus to 4 [modify(4) from foundry MIB]. eg. #snmpset -v2c -c rwcommunity 10.10.10.253 snL4RealServerRowStatus.4 i modify snL4RealServerMaxConnections.4 i 100 Thanks, Mike 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 -- 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
RE: problem configuring foundry load balancer using snmpset
From: Raj Gurung [mailto:r...@linkmemobile.com] Sent: Wednesday, December 09, 2009 11:06 AM The Foundry MIB was downloaded from src: http://www.notarus.net/networking/foundry_snmp.html Did you try the suggestion in the first section of that page? HTH, Mike -- 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
Re: problem configuring foundry load balancer using snmpset
On Dec 9, 2009, at 12:27 PM, Mike Ayers wrote: From: Raj Gurung [mailto:r...@linkmemobile.com] Sent: Wednesday, December 09, 2009 11:06 AM The Foundry MIB was downloaded from src: http://www.notarus.net/networking/foundry_snmp.html Did you try the suggestion in the first section of that page? I tried providing enable password in snmpget command and also with no snmp-server pw-check enabled on Load Balancer. Uploading the configuration to tftp worked for both. But, no joy still with the load balancer (real server) add/modify. HTH, Mike 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 -- 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
problem configuring foundry load balancer using snmpset
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 } snL4RealServerMaxConnectionsOBJECT-TYPE SYNTAX INTEGER (0..100) 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
RE: problem configuring foundry load balancer using snmpset
From: Raj Gurung [mailto:r...@linkmemobile.com] Sent: Monday, December 07, 2009 11:22 AM 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 snL4RealServerRowStatus OBJECT-TYPE SYNTAX L4RowSts ACCESS read-write STATUS mandatory DESCRIPTION To create or delete a real server entry. ::= {snL4RealServerEntry 7 } You may need to take the row out of service to chante the name. See the description clause of the RowStatus TC in http://www.ietf.org/rfc/rfc2579.txt for the gory details, which point you to the MIB you are using, which should document the extra logic it uses for row modification. Just because a column is writable does not mean it can be changed at any time. HTH, Mike -- 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
Re: problem configuring foundry load balancer using snmpset
Mike, Thanks for your suggestion. I checked that (SnL4RealServer) RowStatus is 2 which I believe is notInService. Correct me if I am wrong? ~# for i in `seq 1 8`;do snmpget -v1 -crwcommunity 10.10.10.253 1.3.6.1.4.1.1991.1.1.4.3.1.1.$i.1; done OID names SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.1.1 = INTEGER: 1 snL4RealServerIndex SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.2.1 = STRING: myservername snL4RealServerName SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.3.1 = IpAddress: 10.10.1.1 snL4RealServerIP SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.4.1 = INTEGER: 1 snL4RealServerAdminStatus SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.5.1 = INTEGER: 100 snL4RealServerMaxConnections SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.6.1 = INTEGER: 0 snL4RealServerWeight SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.7.1 = INTEGER: 2 snL4RealServerRowStatus SNMPv2-SMI::enterprises.1991.1.1.4.3.1.1.8.1 = INTEGER: 0 snL4RealServerDeleteState Still no joy! I could not find the logic for row modification in Foundry MIT either. I should be missing something. Any suggestions or RTFMs? Thanks, raj On Dec 8, 2009, at 11:20 AM, Mike Ayers wrote: From: Raj Gurung [mailto:r...@linkmemobile.com] Sent: Monday, December 07, 2009 11:22 AM 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 snL4RealServerRowStatus OBJECT-TYPE SYNTAX L4RowSts ACCESS read-write STATUS mandatory DESCRIPTION To create or delete a real server entry. ::= {snL4RealServerEntry 7 } You may need to take the row out of service to chante the name. See the description clause of the RowStatus TC in http://www.ietf.org/rfc/rfc2579.txt for the gory details, which point you to the MIB you are using, which should document the extra logic it uses for row modification. Just because a column is writable does not mean it can be changed at any time. HTH, Mike -- 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 -- 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