Amitay, I wrote the below code in Linux and saved it as tmns.sh. please update the environment variables and commands based on your environment. The /tmp/TMNS.txt file should have all the Topology name strings. HTH
# Set Environment Variables
SPECROOT=/opt/CA/spectrum
CLIPATH=$SPECROOT/vnmsh
CLIMNAMEWIDTH=64
CLISESSID=$$
export SPECROOT CLIPATH CLIMNAMEWIDTH CLISESSID
# Disconnect any open session
echo "Disconnect any open session"
$CLIPATH/disconnect
sleep 2
# Connect to database
$CLIPATH/connect
for MH in `./show models | grep 0x1002e | awk '{print $1}'`
do
echo `$CLIPATH/show attributes attr=0x129e7 mh=$MH | grep 0x129e7
| awk '{ print $3 }'` >> /tmp/TMNS.txt
done
# Disconnect from the database.
$CLIPATH/disconnect
Saurabh Bohra
O: 860-766-0842 | M: 860-385-3597 | e-mail: [email protected]
From: Amitay Ben-ishay [mailto:[email protected]]
Sent: Thursday, June 20, 2013 7:23 AM
To: spectrum
Cc: Bohra, Saurabh
Subject: RE: How to export all of my TopologyModelNameString(0x129e7) values
Hi,
I like your idea.
I need to work on Network container only.
There is no need to attach it to the devices.
I'm interested only in TopologyModelNameString values (without any relations).
Can you please explain how should I do it?
I means to have all of the containers with their related
TopologyModelNameString value.
Best Regards, Amitay.
__________________
From: Bohra, Saurabh [mailto:[email protected]]
Sent: Wednesday, June 19, 2013 5:41 PM
To: spectrum
Subject: RE:[spectrum] How to export all of my TopologyModelNameString(0x129e7)
values
Assuming you have several devices in your landscape, the best (reusable)
approach I think you can have is write a script, which parses all containers
(LAN/Network, etc) and exports their TopologyModelNameString(0x129e7) value and
appends the :<Model_Name(0x1006e)>.
Another approach is update the locator searches results tab to display
TopologyModelNameString and do All Devices Search (this will put a lot of load
on SS). Export the list in csv and use excel to delete duplicate rows...
I like the first approach because when you update the topology, just run the
script and you have updated list...
HTH
Saurabh Bohra
O: 860-766-0842 | M: 860-385-3597 | e-mail:
[email protected]<mailto:[email protected]>
From: Amitay Ben-ishay [mailto:[email protected]]
Sent: Wednesday, June 19, 2013 9:46 AM
To: spectrum
Subject: [spectrum] How to export all of my TopologyModelNameString(0x129e7)
values
Hi,
I want to have a list with all of my TopologyModelNameString values.
Any ideas?
Best Regards, Amitay.
__________________
Amitay Ben-Ishay
Senior Software Architecture & Product Manager
[cid:[email protected]]
Work: +972-54-7814588
Mobile:+972-54-9909149
Fax: +972-153-54-9909149
Email: [email protected]<mailto:[email protected]>
LinkedIN: Amitay's Profile<http://www.linkedin.com/in/amitay>
P please consider the environment before printing this email
------------------------------------------------------------
This message contains information that may be confidential or privileged.
If you are not the intended recipient, you may not use, copy or disclose
to anyone any of the information in this message. If you have received
this message and are not the intended recipient, kindly notify the sender
and delete this message from your computer.
* --To unsubscribe from spectrum, send email to
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum
[email protected]<mailto:[email protected]>
* --To unsubscribe from spectrum, send email to
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum
[email protected]<mailto:[email protected]>
------------------------------------------------------------
This message contains information that may be confidential or privileged.
If you are not the intended recipient, you may not use, copy or disclose
to anyone any of the information in this message. If you have received
this message and are not the intended recipient, kindly notify the sender
and delete this message from your computer.
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]<<inline: image001.jpg>>
