tried a vnmsh script, seems working for me I suggest trying it in a test environment first
check the attachment please Tugrul Gurkaynak ________________________________ Gönderen: roberth.edb...@seb.se <roberth.edb...@seb.se> Gönderildi: 25 Kasım 2014 Salı 10:22 Kime: spectrum Konu: RE:[spectrum] Renaming of device models (remove FQDN) (UNCLASSIFIED) Ha, ha, ha... I made a dynamic container that listed all devices with a "." in the name years ago and wrote a script that read the list and changed the names. I had no idea this feature was built into Spectrum. Great...! /Roberth From: Stallcup, Phillip L [mailto:phillip.stall...@integrisok.com] Sent: den 24 november 2014 18:10 To: spectrum Subject: RE:[spectrum] Renaming of device models (remove FQDN) (UNCLASSIFIED) Michael, There's a setting on the SpectroServer to do just that: [cid:image002.png@01D00891.53130560] Turn off Use Fully Qualified Host Name, then Reevaluate All Model Names :) Phillip Stallcup, CCNA IT Network Architect, Information Technology 405.951.2088 [integris-box-logo-email.gif]<http://integrisok.com/> From: Votaw, Michael S CTR USARMY 5RCC-EUR (US) [mailto:michael.s.votaw....@mail.mil] Sent: Monday, November 24, 2014 10:55 AM To: spectrum Subject: [spectrum] Renaming of device models (remove FQDN) (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: FOUO We have a need to remove the FQDN from our model names. I was thinking about just writing a script to do this but was wondering if somebody has already done this. I simply need to remove everything except the first field in the FQDN. Ex. ROUTER1.acme.com >> becomes >> ROUTER1 Before I begin my script, does anybody have any suggestions? Or scripts they've already written? Michael S. Votaw Senior Spectrum Analyst Regional Cyber Center - Europe, 5th Signal Command Northrop Grumman Contractor NIPR: michael.s.votaw....@mail.mil<mailto:michael.s.votaw....@mail.mil> SIPR: michael.s.votaw....@mail.smil.mil<mailto:michael.s.votaw....@mail.smil.mil> DSN: 314-565-6946 (+49 611-143-565-6946) Cell: 01522 563 1987 (+49 1522 563 1987) Classification: UNCLASSIFIED Caveats: FOUO * --To unsubscribe from spectrum, send email to lists...@unc.edu<https://urldefense.proofpoint.com/v2/url?u=http-3A__mailto-3Alistserv-40unc.edu&d=AAMFAg&c=J7XjSMyoIdCxj32rtFyFO5ifGtdxQDmYNKjypEWQdbE&r=DUus6eH2hC3hCxOwVnMYVwPV4w93Z_CJWfcMryG2xHc&m=-9AmBFRPJLzr0kbnj4YLAEXHPs9rKa7skcoXhE9MVpE&s=NgNBqAi5F485La4PmvmJ5k8CvLEZ9cnJFIsVWQ3fDGQ&e=> with the body: unsubscribe spectrum phillip.stall...@integrisok.com<mailto:phillip.stall...@integrisok.com> ________________________________ This e-mail may contain identifiable health information that is subject to protection under state and federal law. This information is intended to be for the use of the individual named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited and may be punishable by law. If you have received this electronic transmission in error, please notify us immediately by electronic mail (reply). * --To unsubscribe from spectrum, send email to lists...@unc.edu<mailto:lists...@unc.edu> with the body: unsubscribe spectrum roberth.edb...@seb.se<mailto:roberth.edb...@seb.se> * --To unsubscribe from spectrum, send email to lists...@unc.edu<mailto:lists...@unc.edu> with the body: unsubscribe spectrum tgurkay...@bgt.havelsan.com.tr Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmektedir. Mesajdaki gorusler gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir. Attention: This e-mail message is private and privileged.If you are not the recipient for whom this e-mail message is intended, please notify the sender immediately and delete this e-mail message from your system.All sent and received e-mail messages go through a virus scan. Any opinions presented in this e-mail message are solely those of the author and do not necessarily represent HAVELSAN A.S.`s formal and authorized views. --- To unsubscribe from spectrum, send email to lists...@unc.edu with the body: unsubscribe spectrum arch...@mail-archive.com
massrename.sh
Description: massrename.sh