On Wed, 02 Mar 2005 08:33:12 +1100, Andrew Hood <[EMAIL PROTECTED]> wrote: > LJP wrote: > > I'm really puzzled by this, and I'm hoping someone has an easy answer. > > > > I have some scripts that use snmpset vcrsion 4.25 that don't work > > running snmpset version 5.1.2. All I'm doing is bring ports up and > > down on a Cisco switch. > > > > Here's an example: > > <snip> > > snmpset < IP address> CITofwQAoAb > > interfaces.ifTable.ifEntry.ifAdminStatus.9 i 1 > > <snip> > > > > Works fine using older version of snmpset. When using newer version > > 5.1.2, it fails with this output: > > <snip> > > 1: Needs type and value > > <snip> > > > > I can't find any documentation mentioning any syntax changes. What am > > I missing here? > > The syntax has changed. You need to compare the old and new man pages > for snmpset and snmpcmd. This is the equivalent of the above: > > snmpset -c CITofwQAoAb <IP address> \ > interfaces.ifTable.ifEntry.ifAdminStatus.9 i 1 > > -- > There's no point in being grown up if you can't be childish sometimes. > -- Dr. Who >
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
