- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Web and Unmanaged
- >
- SNMP Set a port in a vlan - HP 1905 switch
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-29-2012 08:27 AM
08-29-2012 08:27 AM
SNMP Set a port in a vlan - HP 1905 switch
Hi,
I need to write a provisioning script to configure a few HP 1905 switches. They are used to connect iLO ports etc, so those small 1905's are perfect for that job.
I've found I can create new VLANs by using the following command: (eg: create Vlan7)
$ snmpset -c SNMPCOMMUNITY 10.1.10.99 1.3.6.1.4.1.2011.2.23.1.2.1.1.1.13.7 i 4
But I can't seem to add a port in a VLAN. I've figured out I need to play with the bytes in 1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7 (again, for VLAN 7), and found out how the ports are encoded in that value, but it seems the switch just ignores my commands. Eg:
$ snmpget -c SNMPCOMMUNITY -On 10.1.10.99 1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7
.1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7 = Hex-STRING: 00 00 00 00
$ snmpset -v2c -c SNMPCOMMUNITY -On 10.1.10.99 1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7 x "00010000"
.1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7 = Hex-STRING: 00 01 00 00
$ snmpget -c SNMPCOMMUNITY -On 10.1.10.99 1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7
.1.3.6.1.4.1.2011.2.23.1.2.1.1.1.3.7 = Hex-STRING: 00 00 00 00
I also tried removing the port from vlan1 first, but that doesn't do anything either...
Anyone done this before?
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP