- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- BladeSystem - General
- >
- Re: VCEMCLI
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Report Inappropriate Content
04-14-2015 12:53 PM
04-14-2015 12:53 PM
VCEMCLI
HI
Does anyone know of a way to query specific server profiles to retrieve what VLANS are assigned to the ports?
I am fairly new to using the VCEM command line utility so maybe I'm not understanding the command syntax to accomplish this.
Regards,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2015 02:12 PM
04-20-2015 02:12 PM
Re: VCEMCLI
Hi Tony,
from what I understood with vcemcli you can mainly perform changes to the profiles.
To query info, you should access via ssh to the modules, and then play with grep and similar.
The key command is "show server-port-map <profile_name>:<nic_number>".
This is something I did a few days ago:
#!/bin/bash
TARGET="$1"
PROFILE="$2"
if [ -z "$PROFILE" ] ; then
echo "Syntax: $0 <vconnect-module> <profile>"
exit 1
fi
for k in 1 2 3 4 5 6 ; do
VLAN=$(ssh -l admin "$TARGET" show server-port-map "$PROFILE:$k" |
grep -e ' -- -- ' | tr -s ' ' | cut -f 2 -d' '| sort -n )
VLAN=$(echo $VLAN)
echo "Port $k: $VLAN"
done
Redards from Italy,