No real magic here !!! Just a special SNMP Trap (that's how TEC does it)
Here's a script that I wrote that will do what you are asking.
#!/usr/bin/ksh
# File: findmap
# Created by Don Davis 12JAN01
# Launches a submap from the commandline
# Syntax: findmap <-n | -a> <Selection Name | IP Address>
#
NV=<Your NetView Here>
FLAG=$1
if [ "$FLAG" = "-a" ]; then
SELECTION_NAME=_tme_nv6k_none
IPADDR=$2
/usr/OV/bin/snmptrap $NV \
.1.3.6.1.4.1.2.6.3.1 "" 6 59179073 "" \
.1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString $SELECTION_NAME \
.1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString $IPADDR
exit 0
elif [ "$FLAG" = "-n" ]; then
SELECTION_NAME=$2
/usr/OV/bin/snmptrap $NV \
.1.3.6.1.4.1.2.6.3.1 "" 6 59179073 "" \
.1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString $SELECTION_NAME
exit 0
else
echo "findmap -n <Name>"
echo "findmap -a <IP Address>"
exit 1
fi
=========
Don Davis
Leslie Clark wrote:
> There might be some way to do it, because the TIPN package enables the T/EC
> console to launch specific submaps. The dispsub application is involved
> somehow.
> I don't have a clue where to go from there, but it might be a starting
> point for an
> investigation. I imagine it involves writing real code, though.
>
> Cordially,
>
> Leslie A. Clark
> IBM Global Services - Systems Mgmt & Networking
> Detroit
>
> qianj@cn.ibm.com@tkg.com on 04/12/2001 05:30:21 AM
>
> Please respond to IBM NetView Discussion <nv-l@tkg.com>
>
> Sent by: owner-nv-l@tkg.com
>
> To: nv-l@tkg.com
> cc:
> Subject: [NV-L] open submap using command line
>
> Hi all.
> How can I open a submap using netview command line instead of using
> the mouse click.
>
> Best Regards
> Qian Jing
> DSM, IBM Global Service
> 10/F Shui On Plaza, 333 Huai Hai Zhong Road,
> Shanghai 200021, P.R.China
> Tel: (86)21-63262288x4717
> E-Mail: qianj@cn.ibm.com
>
> _________________________________________________________________________
|