Hi Subhash, list,

some years ago I created a version 8.1 vnmsh script, that extracts that 
information and sends it via email.
Basically, the list of failed devices is stored as a list of model_handles in 
one list attribute on the Global_Sync_Task model.

the most important parts commented:

# get the Global Sync task's model_handle
MHGST=`CLISESSID=$$; CLIMNAMEWIDTH=64; export CLISESSID CLIMNAMEWIDTH; 
${SPECROOT}/vnmsh/show models mth=0x82000c | grep "^0x.*Global Sync Task.*" | 
awk '{print $1}'`

# get the model handles of the failed devices
FAILED=`CLISESSID=$$; CLIMNAMEWIDTH=64; export CLISESSID CLIMNAMEWIDTH; 
${SPECROOT}/vnmsh/show attributes attr=0x820045 mh=${MHGST} | grep "^0x" | awk 
'{print $4}'`

# check the failed devices count
COUNT=`echo ${FAILED} | grep -v "^$" | wc -l`
# if no devices are in the failed list, exit at this point
if [ 0 -eq ${COUNT} ]
then
        exit 0
fi

# get details (name and ip address) for every failed device
for MH in ${FAILED}
do
        NAME=`CLISESSID=$$; CLIMNAMEWIDTH=64; export CLISESSID CLIMNAMEWIDTH; 
${SPECROOT}/vnmsh/show attributes attr=0x1006e mh=${MH} | grep "^0x" | awk 
'{print $3}'`
        ADDRESS=`CLISESSID=$$; CLIMNAMEWIDTH=64; export CLISESSID 
CLIMNAMEWIDTH; ${SPECROOT}/vnmsh/show attributes attr=0x1027f mh=${MH} | grep 
"^0x" | awk '{print $3}'`

        # echo the device info
        echo "${NAME};${ADDRESS}"
done



Mit freundlichen Gruessen - Yours sincerely

Raphael Franck
Senior System Engineer
Infrastructure Services & Support

Computacenter AG & Co oHG
Services & Solutions

Europaring 34-40, 50170 Kerpen, Germany
E-Mail: [email protected]
WWW: www.computacenter.de

Von: CATools Helpdesk [mailto:[email protected]] 
Gesendet: Montag, 14. März 2011 10:22
An: spectrum
Betreff: [spectrum] NCM_Global_Sync_task

Hi All,

We are daily working on NCM failed devices, by taking NCM failed devices list 
manually from Spectrum NCM_Global_Sync_task.

Is there any option to fetch failed device list directly from Spectrum? Or can 
we schedule it from windows tasks so that we can take it directly on mail?

Thanks & Regards, 
Subhash 
 
Please do not print this email unless it is absolutely necessary. Use less 
paper - Save Tree - make "IT" a "Greener" Tomorrow.
--Disclaimer-- This email and any files transmitted with it are confidential 
and may be privileged or otherwise protected from disclosure and are intended 
solely for the use of the entity / individual to whom they are addressed. If 
you have received this email in error or If you are not the intended recipient, 
please notify the sender immediately by way of telephone or email and delete 
this message and any files transmitted from your system. Please note that any 
views presented in the email are solely those of the author and do not 
necessarily represent those of the organization. While all care has been taken 
to avoid viruses the recipient is advised to check this email and attachments 
for presence of viruses. The organization accepts no liability on this account. 
. --To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected] 


-----------------------------------
Computacenter AG & Co. oHG, mit Sitz in Kerpen (Amtsgericht Köln HRA 18096)
Vertretungsberechtigte Gesellschafter:
Computacenter Aktiengesellschaft, mit Sitz in Köln (Amtsgericht Köln HRB 28384)
Vorstand: Oliver Tuszik (Vorsitzender), Dr. Karsten Freihube, Hans-Georg 
Freitag, Frank Kottmann, Reiner Louis
Aufsichtsrat: Michael Norris (Vorsitzender)
Computacenter Management GmbH, mit Sitz in Köln (Amtsgericht Köln HRB 28284)
Geschäftsführer: Ulrich Irnich
Visit us on the Internet: http://www.computacenter.de
Visit our Online-Shop: https://shop.computacenter.de

This email is confidential. If you are not the intended recipient, you must not 
disclose or use the information contained in it. If you have received this mail 
in error, please tell us immediately by return email and delete the document.
-----------------------------------


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to