SHARE
TWEET

Untitled

a guest Sep 14th, 2017 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. routers="n1 n2 n3 n4 n5 n6 n7 n8"
  4. mdrlevel="show ipv6 ospf6 mdrlevel"
  5.  
  6. for i in $routers
  7. do
  8.     himage $i hostname \
  9.         || error "Cannot find node $i. Is simulation started? Try: Experiment->Execute"
  10.     eid=`himage -e $i`
  11.     node=`himage -n $i`
  12.     foo=`himage $i vtysh <<EOF
  13.     show ipf6 ospf6 mdrlevel
  14.     exit
  15.     EOF`
  16.     echo $foo
  17. done
RAW Paste Data
Top