# Grid Control on Adabas/Natural

**URL:** <https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Add-on-Products, Adabas-Administration-and-Monitoring\
**Created:** [July 12, 2008, 2:18pm UTC](https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543 "2008-07-12T14:18:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ray9](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@Ray9](https://techcommunity.softwareag.com/u/Ray9)\
**Post date:** [July 12, 2008, 2:18pm UTC](https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543/1 "2008-07-12T14:18:57Z")

</div>

I am evaluating the feasibility to have a automated centralize monitoring tools for all the Oracle (7 -10gRAC), Natural (2-6), Adabas (3-6) on Solaris

My major objective would like to have a easier life with all these databases (1XX) . My ideal tools should do the followings:

1. Threshold monitoring (Multi-level)
2. Trend analysis (Cap Plan purpose)
3. SMTP trap to BigBrother (7X24 Operator)
4. Email reports to DBA for daily routine.

I am going to do a small scale POC with Oracle Grid Control, see if this could fullfill my need.  
Grid Control will definitely takecare all the supported Oracle instances.  
What I am would like to try is monitoring Adabas and Natrual by script and report the statistics to Grid Control over the agent and store it is a customized repository.

It would be nice if anyone could point out that I am doing things in a stupid ways and share your experience.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [July 14, 2008, 11:53am UTC](https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543/2 "2008-07-14T11:53:40Z")

</div>

> [@Ray9](#):
>
> Adabas (3-6) on Solaris  
> […]4) Email reports to DBA for daily routine.

We got similiar Problems in my former company and we did all these stuff by bash-scripting. Example: Monitoring the number of file-extends of Adasbas 3.3.1.05 for Linux:

```auto
#!/bin/bash

udb=33
max_ext=4

adarep db=$udb content| tail +9 |
while read file name date isn index ext_n ext_u ext_a ext_d pad_a pad_d rest
do
  if ["$file" = ""]
  then
    break
  fi
  if ["$ext_n" -gt "$max_ext"]
  then
    printf "File %+3s %-32s has %+2s extents on NI\n" "$file" "$name" "$ext_n"
  fi
  if ["$ext_u" -gt "$max_ext"]
  then
    printf "File %+3s %-32s has %+2s extents on UI\n" "$file" "$name" "$ext_u"
  fi
  if ["$ext_a" -gt "$max_ext"]
  then
    printf "File %+3s %-32s has %+2s extents on AC\n" "$file" "$name" "$ext_a"
  fi
  if ["$ext_d" -gt "$max_ext"]
  then
    printf "File %+3s %-32s has %+2s extents on DS\n" "$file" "$name" "$ext_d"
  fi
done
```

Next problem is: The output formats differ between some Adabas-Versions. Plus there are some differences between the possible number of extends…

---

<div class="post-metadata">

**Author:** ![Ray9](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@Ray9](https://techcommunity.softwareag.com/u/Ray9)\
**Post date:** [July 18, 2008, 11:35am UTC](https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543/3 "2008-07-18T11:35:34Z")

</div>

How about make use of $ADAVERS in the scripts to generalize the output in single format?

I hate to maintain too many branch out scripts due to difference versions.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [July 21, 2008, 11:38am UTC](https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543/4 "2008-07-21T11:38:53Z")

</div>

> [@Ray9](#):
>
> How about make use of $ADAVERS in the scripts to generalize the output in single format?

Of course you can use a single script for different versions. But due to some differnt output formats you have to code different code blocks for each version:

```auto
case ${ADAVERS:1:2} in
33) # code block for version 3.3
  ;;
51) # code block for version 5.1
  ;;
*)
  echo "unkown version $ADAVERS" 
  exit 1
  ;;
esac
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:50pm UTC](https://techcommunity.softwareag.com/t/grid-control-on-adabas-natural/78543/5 "2021-04-02T14:50:37Z")

</div>


