Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Config Change Temp to shut int where status = down

$
0
0

I'm 100% new to Orion, I'm a powershell guy. I looking to loop through interfaces using a foreach and if the status = down then run shut on that port.

 

I've been searching these forums and can't find anything similar.

 

I'm guessing it would look something like this:

 

CLI

  {

   configure terminal

  }

 

  // Loop through selected ports

  foreach (@portItem in @TargetPorts)

  {

    CLI

    if (Status = "Down"){

       shut

    }

   

  CLI

  {

    exit

  }

}

 

Any ideas? Anyone else tried to do this?


Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>