And make sure that you understand what you are doing. Because 'print' command is for interactive execution, indices can change:
[admin@TestPlace] > interface print where fast-path=yes Flags: D - dynamic, X - disabled, R - running, S - slave # NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS 0 R bonding1 bond 1500 1500 00:50:56:BE:1F:E4 [admin@TestPlace] > interface disable 0 [admin@TestPlace] > interface print where fast-path=no Flags: D - dynamic, X - disabled, R - running, S - slave # NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS 0 R ether1 ether 1500 00:50:56:80:46:AD [admin@TestPlace] > interface disable 0 These 'interface disable 0' commands will disable different interfaces! -- 2017-02-22 1:25 GMT+03:00 Martín Ruiz <martinr...@ibersystems.es>: > Before using "index number" of interfaces rules or whatever, you need to > make a print. > > > Martín Ruiz > Director técnico > www.ibersystems.es > > > El 21 feb 2017, a las 20:44, Jenco Wireless <bradhagst...@gmail.com> > escribió: > > > > The last one worked using print. Thanks everyone! > > > > On Feb 21, 2017 2:40 PM, "Grand Avenue Broadband" < > grandav...@grandavebb.com> > > wrote: > > > >> Most direct: > >> > >> /interface ethernet disable ether7 > >> /interface ethernet enable ether7 > >> > >> Goes without saying that the interface has to be currently named ether7. > >> If it has been changed: > >> > >> /interface ethernet disable [find default-name=ether7] > >> > >> will change ether port #7 no matter what it is named. > >> > >>> On Feb 21, 2017, at 12:35 PM, Jenco Wireless <bradhagst...@gmail.com> > >> wrote: > >>> > >>> Thanks. Tried that. It still doesn't work. > >>> > >>> On Feb 21, 2017 2:25 PM, "Josh Luthman" <j...@imaginenetworksllc.com> > >> wrote: > >>> > >>>> Don't use "set 7". Use something like "set ether7" > >>>> > >>>> You get interface #7 after a print, which can vary. > >>>> > >>>> > >>>> Josh Luthman > >>>> Office: 937-552-2340 <(937)%20552-2340> > >>>> Direct: 937-552-2343 <(937)%20552-2343> > >>>> 1100 Wayne St > >>>> Suite 1337 > >>>> Troy, OH 45373 > >>>> > >>>> On Tue, Feb 21, 2017 at 2:22 PM, Jenco Wireless < > bradhagst...@gmail.com > >>> > >>>> wrote: > >>>> > >>>>> Hello. I have the simple command: > >>>>> > >>>>> /interface ethernet set 7 disabled=yes > >>>>> > >>>>> in a script. All permissions checked. When I run the script the > >>>> Interface > >>>>> does not disable. > >>>>> > >>>>> When I paste it in a terminal it works fine. I have researched > online > >>>> and > >>>>> tried tons of combinations. No luck. > >>>>> > >>>>> V6.37.3 > >>>>> > >>>>> Any help would be most appreciated! > >>>>> > >>>>> Thank you, > >>>>> > >>>>> Brad H > >>>>> -------------- next part -------------- > >>>>> An HTML attachment was scrubbed... > >>>>> URL: <http://mail.butchevans.com/pipermail/mikrotik/attachments/ > >>>>> 20170221/bbfe1f41/attachment.html> > >>>>> _______________________________________________ > >>>>> Mikrotik mailing list > >>>>> Mikrotik@mail.butchevans.com > >>>>> http://mail.butchevans.com/mailman/listinfo/mikrotik > >>>>> > >>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik > >>>>> RouterOS > >>>>> > >>>> -------------- next part -------------- > >>>> An HTML attachment was scrubbed... > >>>> URL: <http://mail.butchevans.com/pipermail/mikrotik/ > >>>> attachments/20170221/79feef63/attachment.html> > >>>> _______________________________________________ > >>>> Mikrotik mailing list > >>>> Mikrotik@mail.butchevans.com > >>>> http://mail.butchevans.com/mailman/listinfo/mikrotik > >>>> > >>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik > >>>> RouterOS > >>>> > >>> -------------- next part -------------- > >>> An HTML attachment was scrubbed... > >>> URL: <http://mail.butchevans.com/pipermail/mikrotik/ > >> attachments/20170221/4cd5049f/attachment.html> > >>> _______________________________________________ > >>> Mikrotik mailing list > >>> Mikrotik@mail.butchevans.com > >>> http://mail.butchevans.com/mailman/listinfo/mikrotik > >>> > >>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik > >> RouterOS > >> > >> -- > >> Grand Avenue Broadband -- Wireless Internet Service > >> Circle City to Wickenburg and surrounding areas > >> http://grandavebb.com > >> > >> _______________________________________________ > >> Mikrotik mailing list > >> Mikrotik@mail.butchevans.com > >> http://mail.butchevans.com/mailman/listinfo/mikrotik > >> > >> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik > >> RouterOS > >> > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: <http://mail.butchevans.com/pipermail/mikrotik/ > attachments/20170221/754ed7ae/attachment.html> > > _______________________________________________ > > Mikrotik mailing list > > Mikrotik@mail.butchevans.com > > http://mail.butchevans.com/mailman/listinfo/mikrotik > > > > Visit http://blog.butchevans.com/ for tutorials related to Mikrotik > RouterOS > _______________________________________________ > Mikrotik mailing list > Mikrotik@mail.butchevans.com > http://mail.butchevans.com/mailman/listinfo/mikrotik > > Visit http://blog.butchevans.com/ for tutorials related to Mikrotik > RouterOS > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.butchevans.com/pipermail/mikrotik/attachments/20170222/1caea742/attachment.html> _______________________________________________ Mikrotik mailing list Mikrotik@mail.butchevans.com http://mail.butchevans.com/mailman/listinfo/mikrotik Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS