10-27-2010
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write a login script to ssh into a cisco switch that will run some command remotely. Similar to this expect script located here:
SSH login expect shell script to supply username and password
However, that script does not work with cisco ios. Anyway know what the best way to... (1 Reply)
Discussion started by: streetfighter2
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'm somewhat new to unix OS
and I'm at course for programmers in my country.
and in the course we learn unix and how to script in unix. of course we just started and we learned only the very basic, but I'm a really computer freak and I looking for a way to make the course easier on all of... (8 Replies)
Discussion started by: Bonzay0
8 Replies
3. Shell Programming and Scripting
hi All, is there a way in linux to loop thru all variables sourced?
i have a set configs like
A=100
b=200
c=400
i can add the above lines to a file and source - so that $A will be 100 .. like wise
now when i do a cut -c 1-2 file.txt |sort | uniq -c on a file it returns me
A 100
B 50
c... (1 Reply)
Discussion started by: arun1401
1 Replies
4. UNIX for Advanced & Expert Users
Hello all -
I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Discussion started by: pankaj80
3 Replies
5. Shell Programming and Scripting
I know there are better ways to do this.
I prefer snmp. I do not have the proper perl modules loaded on the platorm. Snmp isnt loaded on the platform. Telnet is not an option. I need to write an expect script to pull cisco equipment configs.
The following code is executed once I gain... (0 Replies)
Discussion started by: popeye
0 Replies
6. IP Networking
Is there an easy way to stack Cisco 2960-S and Cisco 2960X switches? If you have no idea, follow this:
1. Stacking is not supported on switches running the LAN Lite image. All switches in the stack must be running the LAN Base image.
2. In a mixed stack of Catalyst 2960-X and Catalyst 2960-S... (0 Replies)
Discussion started by: Ayaerlee
0 Replies
CDPR(8) System Manager's Manual CDPR(8)
NAME
cdpr - Cisco Discovery Protocol Reporter
SYNOPSIS
cdpr [-h] [-t seconds ] [-d device | -r pcap-file ] [-u server-config-file ] [-l location ] [-n hostname ] [-s server ] [-p script-path ]
DESCRIPTION
cdpr listens on specified network interfaces for Cisco Discovery Protocol packets. It then decodes those packets and outputs the informa-
tion, optionally sending the information to a server for processing.
OPTIONS
-d device
Specify device to use (eth0, hme0, etc.)
-r pcap-file
Specify file to read from instead of network device.
-h Print the usage.
-t seconds
Time in seconds to abort waiting for a packet (should be > 60)
-v[vv] Set verbose mode.
-u server-config-file
Send cdpr information to a cdpr server. See /usr/share/doc/cdpr/README.cdprs
-l location
Location/description of this port; for use with -u or -s and -p.
-n hostname
Override the hostname reported to the server; for use with -u or -s and -p.
-s server
Server to send information to, specify port with a: after server/IP. Example: 192.168.1.20:88 (default: 80) requires -p (overridden
by -u)
-p script-path
Path of server script to send data to; requires -s (overridden by -u)
AUTHOR
Lance O'Connor <lance at ronnoco dot net>
This manual page was written by Matt Zagrabelny <mzagrabe at d dot umn dot edu>, for the Debian system (but may be used by others).
User Manuals APRIL 2009 CDPR(8)