03-11-2014 10:34 AM
I'm trying to create a VLAN on a 3750 using SNMP. The document i've found is rather vague and from 2005. Has anybody done this successfully and if so can you share the process?
From what I understand you have to set the "vtpVlanEditOperation" to the desired mode but each time I set the integer to 2 for copy is get either bad security type or bad object type. Any help would be appreciated.
Here are some commands i've tried.
$ /usr/bin/snmpset -c {writeString} test 10.150.150.20 1.3.6.1.4.1.9.9.46.1.4.1.1.1 INTEGER 2
10.150.150.20: Bad object type: 1
$ /usr/bin/snmpset -c {writeString} 10.150.150.20 1.3.6.1.4.1.9.9.46.1.4.1.1.1 INTEGER 2
snmpset: No securityName specified
Thanks!
Solved! Go to Solution.
03-11-2014 11:58 AM
Also, please check and verify the following in your steps:
03-11-2014 11:55 AM
It seems you have not specified the snmp version as per error "No SecurityName Specified".
Ideally you should specify something like -
snmpset -v <version 1, 2c or 3> -c <community> <IP> <OID> i <value>
You dont have to mentione INTEGER as whole, just 'i' works.
Check this thread here to create Vlan :
https://supportforums.cisco.com/discussion/11205856/creating-vlan-through-snmp?recent=true
Also, check document here :
http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/45080-vlans.html
-Thanks
Vinod
** Ecnourage Contributors. RATE them. **
03-11-2014 11:58 AM
Also, please check and verify the following in your steps:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide