5 Replies Latest reply on Mar 26, 2012 9:26 AM by cvachovecj

    Orion NCM scripts

    tegguy

      Hello everyone first post here but have a question. I am new to the Orion system and we have around 120 switches in our configuration. We have a wireless system that is giving us problems we need to start rebooting weekly. Is it possibly to write a command that will go through all the switches and only shut off POE to the ports labeled with a specific alias or part of an alias? We are using Cisco switches and Meraki AP's.

      IE Go to the switch -> Look at the interface status -> Select only ports with "WAP" -> config terminal -> interface xxx -> Power inline never -> Power inline auto

       

      where xxx is the interfaces that came up with the "WAP" alias. Turning off POE on all ports is not an option due to POE phones that loose the call log if rebooted.

       

      Thank You

        • Re: Orion NCM scripts
          tegguy

          Does anyone happen to have any suggestions?

            • Re: Orion NCM scripts
              jcpetrey

              You can make scripts with the logic you are needing in the "Config Change Templates" on the web interface.

              NCM6.1 (what we are running) came with a Config Change Template called "Execute Execute Configure Interfaces Based on Description Cisco IOS"

              That template should match your needs if you are running Cisco equipment or could easily be modified to work with the APs in your environment.

            • Re: Orion NCM scripts
              rcahill

              If the process of implementing a NCM script daunting you may find adding in kron scripts on your cisco switches a little easier, at least initially.

               

              Examples:

              kron occurrence 8PM at 20:00 recurring
               policy-list Shut20
              !
              kron occurrence SaveConfigSchedule at 23:00 recurring
               policy-list SaveConfig
              !
              kron occurrence Activate20 at 9:00 recurring
               policy-list Activate20
              !
              kron policy-list Shut20
               cli configure terminal
               cli interface g1/0/20
               cli shutdown
               cli exit
              !
              kron policy-list SaveConfig
               cli write
              !
              kron policy-list Activate20
               cli configure terminal
               cli interface g1/0/20
               cli no shutdown
               cli exit

              I use a few of these to shut down Access Points and ethernet ports at public locations during "off-hours" to prevent network intrusion.

              Also to complete a wr command on a nightly basis.

              It may not be an elegant system wide method like NCM scripting but it is bullet proof for the configured ports.

              Also note some newer switches post 12.2(55)SE come with the ability to support auto smartports and  auto smartmacros allowing the switch to configure itself for the device connecting.  These could be modified allowing you to make certain that the proper description is added, even dynamically if someone adds an interested device type.  This would be the best solution for a NCM script.  You get the proper labeling for the script to interrogate.

               

              Good luck