Miguel;
You can use the status trap, i.e. issue the netview event 58916871 through
snmptrap.
From a script, let it take arguments, such as the selection name of the object
and the desired status.
For instance,
SELECTION_NAME=$1
STATUS=$2
/usr/OV/bin/snmptrap $(hostname) .1.3.6.1.4.1.2.6.3.1 $(hostname) 6 58916871 1 \
.1.3.6.1.4.1.2.6.3.1.1.2.0 Integer 14 \
.1.3.6.1.4.1.2.6.3.1.1.3.0 OctetString $SELECTION_NAME \
.1.3.6.1.4.1.2.6.3.1.1.4.0 OctetString "Status is" \
.1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString $STATUS
Best regards,
Vladimir
BANDIERAMONTE Miguel TECSIS wrote:
>
> Hi,
>
> I´d like to know how to change the object status from the CLI.
> Thanks.
--
********************************
Vladimir Petr
Datasys, s.r.o.
mail: petr@datasys.cz
********************************
If it were done when 'tis done, then 'twere well
It were done quickly.
|