diff options
-rwxr-xr-x | scripts/as_script | 11 | ||||
-rw-r--r-- | scripts/subnet_script | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/scripts/as_script b/scripts/as_script new file mode 100755 index 0000000..f01724b --- /dev/null +++ b/scripts/as_script @@ -0,0 +1,11 @@ +#!/bin/sh +# READ ME: +# If AS# is taken it will return the desired AS# +# else it will not return the desired AS# +echo -e "Enter path to resdb:\c" +read resdb +cd $resdb +echo -e "Enter desired AS#:\c" +read asn +ls db/as/ | grep "^$asn\$" + diff --git a/scripts/subnet_script b/scripts/subnet_script new file mode 100644 index 0000000..378bf04 --- /dev/null +++ b/scripts/subnet_script @@ -0,0 +1,11 @@ +#!/bin/sh +# READ ME: +# If subnet is taken it will return the desired AS# +# else it will not return the desired subnet +echo -e "Enter path to resdb:\c" +read resdb +cd $resdb +echo -e "Enter desired subnet:\c" +read subnet +cat db/ip/01/*/*/cidr | grep "^$subnet\$" + |