Hi,
we'd like to send a script to all our switches to enable SNMP link up/down traps (and some other commands). Because we have single and stacked switches, 24 and 48 ports, how should I issue the "trap x/y-z port link enable" command? If I send 1/1-50 on an 24 port switch, I get "ERROR: Slot/Port out of range <1027>".
Because we didn't mix 24 and 48 port switches in stacks, I could use cli.deviceType() so see how many ports a switch has. But how do I repeat this commands for stacked switches?
Kind regards,
meilon