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?