09-22-2020 02:05 PM
Hi,
We installed a new xmc server from scratch. Now after re-creating Sites/devices/profiles/users/scripts …
We would like to associate profiles to device like on the old server without creating it by hand.
Is it possible to retrieve from our old server, the “Administration → Profiles → Device Mapping” spreadsheet via an API script ?
Or is there an entry corresponding to this table into the NBI or else where (sql database) ?
If anybody can help.
Regards
Rija
Solved! Go to Solution.
09-22-2020 02:09 PM
following NBI can give you the mapping for XMC. I am not aware of group to profile mapping.
{
network {
devices {
ip
deviceData {
profileName
}
}
}
}
09-23-2020 07:36 AM
This is exactly what i need.
Thank you so much !!!
09-22-2020 02:59 PM
here is the command you can use to get the data through the XMC shell:
cd /usr/local/Extreme_Networks/NetSight/scripts/
./mysql.sh
use netsight
select nsdevices.ip, nsusergroups.groupname,nsprofiles.profilename from nsgrouptoprofile inner join nsusergroups on nsgrouptoprofile.GROUPID = nsusergroups.GROUPID INNER JOIN nsdevices on nsdevices.DeviceID = nsgrouptoprofile.DeviceID inner join nsprofiles on nsgrouptoprofile.profileid = nsprofiles.profileid;
I know it is not API call, but may help you...
09-22-2020 02:28 PM
Thank you fr the information.
I’ll ask the GTAC to know if its possible
Regards
Rija
09-22-2020 02:09 PM
following NBI can give you the mapping for XMC. I am not aware of group to profile mapping.
{
network {
devices {
ip
deviceData {
profileName
}
}
}
}