Does any one know if it is possible to do this
On our switchs the source for managment traffic might be one of the below depending what regions and how old the switch is,
int mgmt 0
int vlan 100
int vlan 200
or int vlan 300
but only one of these will be active, there will never be a switch that has both vlan 100 and mgmt 0 active.
I want to write a script that says something line
if (NCM. Interfaces.portstatus Mgmt0 == up)
{CLI
Radius Source interface mgmt0
}
elseif {NMC.interface.port status vlan 100 == up)
{.....
but i cant get the syntax correct does any one have an example of doing this?
I supose the real question i am asking is how can i populate a variable with a type NCM.Interfaces.
I want to be able to say Mgmtport = NCM.Interfaces(mgmt0) so i can then call the members like status = Mgmtport.status