CLICK HERE FOR MORE DETAILS on how to utilize Ciscocmd to monitor you entire network at a glance and keep your finger on the pulse of your global communications infrastructure.
Cisco Command (ciscocmd) – The Ultimate Little Tool
ciscocmd is a beautiful utility written by Alain Degreffe (eczema@ecze.com). You can download ciscocmd at http://sourceforge.net/projects/cosi-nms/files/ciscocmd/. It is a simple script that runs on with both Windows and Unix. You need to have TCL/Expect loaded in order for this utility to run.
Here is the output if you run it with no input variables.
——————————————————————————————–
./ciscocmd
ioscmd v1.1 written by Alain Degreffe
Usage: ioscmd [OPTION]…
Send command(s) to cisco host.
-h –help display this help message.
-u –username define the username password.
-p –password define the telnet password.
-s –secretpassword define the enable secret password.
-t –target define the hostname to connect.
-T –targetfile define a target file (one host per line)
-c –cmd define the command to send.
-e –enable set mode enable.
-r –runfile define a file with a set of command to send.
-l –log define a logfile prefix
-a –append log will be appended to existing file
-P –prefix add the host prefix to each line
-m –maxfork define maximum forked process
-b –batchfile define a batch file to process ciscocmd output
All ciscocmd output will be piped to this batch
-d –debug define a debug file name
-q –quiet set program very quiet
——————————————————————————————–
As you can see the options are pretty self explanatory. Below are some common ways to use ciscocmd:
Example run one command for a list of devices contained in targetlist.txt:
./ciscocmd -u user -p passwd -T targetlist.txt -c “some cisco command like show running-config”
Example run one command one one device:
./ciscocmd -u user -p passwd -s enablepasswd -t target -c “some cisco cmd that requires enable access”
Example run a set of commands one multiple devices:
./ciscocmd -u user -p passwd -s enablepasswd -T targetlist.txt -r filewithcommands
Now here is where we can do something interesting. We can run a different set of commands on a list of devices. For example, you may want to look at uplink interface information across your entire campus. Only some of your switches use different uplinks. To do this, we can wrap the ciscocmd utililty in a shell script that passes it the appropriate uplink interfaces to display per switch. Here’s how you would do it:
CLICK HERE FOR MORE DETAILS on how to utilize Ciscocmd to monitor you entire network at a glance and keep your finger on the pulse of your global communications infrastructure.
SUBSCRIBE HERE for to receive useful updates and tips for Network Administration and Automation.
Thanks! Please do more, your article was very helpful. One thing Im trying to do with this script is do a subnet range ping in bash then once that is done then have ciscocmd go into the router and do a sh ip arp. So far I think im on the right track
Hey thanks for kudo. Will start doing more videos and articles soon. Please sign up if you can. Modesty aside, The eBook I created on syslog monitoring is very helpful. Anyway thanks again for taking a moment to write.
hehe! that is a great idea!
Simply want to say your article is as amazing. The clarity in your post is simply excellent and i could assume you’re an expert on this subject. Well with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please keep up the gratifying work.
I liked your article is an interesting technology
thanks to google I found you
Hello There. I found your weblog the usage of msn. This is a very well written article. I will be sure to bookmark it and come back to read extra of your useful info. Thank you for the post. I will certainly return.
Now that is some magnificent literature.
Merci aux moteurs de recherche et surtout merci à toi.
Thanks to gg and you, i can manage the 150 stack switch we have at work.
i ‘ve made few script in bash with ciscocmd to discover new stack (cdp neighbors) and up the errors ports automatically (thanks to crontab also).
Thanks Fred. It would be great if you could share your script on this site minus all passwords etc. Please send an email to info@enetworkadmin.net if you would be up for this. It’s great to get these tedious tasks automated. Also please sign up to get the ebook on syslog monitoring. It is actually a primary monitoring tool at least one massive fortune 100 company and it’s free.
ok, i have to work again to get this script working not only on my domain and i’ll send it to info@ asap. sorry for my english
You have really interesting blog, keep up posting such informative posts!
Hi, this is a well written post I just bookmarked your site To be truthful, although I read a lot in this area I still picked up quite a lot today Kindly continue the amazingly good post and I will tell my friends about it
You have a lot of useful pointers on this web site
Hi,what an excellent article this is,I found it on yahoo and I like it very much,I agree with you, lots of things will be learned form your site,but I am not follw well with the last part,can you explain it for me ?I will appreciate your answer,and I will keep on watching your blog
nThe article is very fantastic Thanks for your sharing Looking forward to your new article
Thanks for the excellent post! Bookmarked! Will come back again
I really enjoyed reading your blog, you bring up some very good points
Thx for this great information that you are sharing with us!!!
Just want to say your article is as surprising The clearness in your post is just excellent and i can assume you’re an expert on this subject Well with your permission let me to grab your feed to keep up to date with forthcoming post Thanks a million and please continue the gratifying work.