Login Password Template File (logins_template.txt)

Top  Previous  Next

###############################

# Copyright 2002 NetSense Inc.

# www.net-sense.com

# Author: Allan Silverstein

###############################

 

######################################################################

# This is a template file for login/password information for routers

# Lines that begin with a # are considered comments

######################################################################

# The login/password information is entered in a table like format.

# Each row in the table has 8 fields.  Each field should be enclosed

# in double-quotest ("").

# If a field, such as "Username" does not apply, just put two double

# quotes with nothing in the middle. (e.g.  "")

#

# A decription of each field

# is as follows:

#

# 1.  Router Type: is C=Cisco, E=Efficient, G1=Generic1, G2=Generic2, N=Nortel, CAT=CatOS Switch

# 2.  Router IP: IP Address or Name. This must match the entry in the -rf <filename> exactly!!

# 3.  1st-level username: Used for TACACS, SSH,  or if router is setup with local Usernames

#     If using ssh, this is the login account ssh will use to login.  For ssh on Redhat Linux,

#     this is the argument to the -l flag.

# 4.  Passwd1: 1st-level password for Cisco Router (vty password or password for 1st-level Username)

# 5.  2nd-level Username: This would only apply if the router prompts you for a Username

#                       after you type in "enable"

# 6.  Passwd2: enable password for Cisco.  This is entered after typing in the word "enable" on the router

# 7.  Access Proram: Currently the only two choices are telnet or secure shell (ssh)

# 8.  spawn_id: This MUST be left blank.

########################################################################################

# For Efficient Routers, set the Router Type to E and only configure the

# Passwd1 field.  All other fields are ignored.  They can be two double quotes (i.e. "")

# or left with values, but those values will still be ignored.  Note, the spawn_id for

# Efficient Routers must still be left blank.

###########################################################################################################

# G1 device types are generic devices that only prompt the user for a Password.  There

# is no Login Name associated with the Password

###########################################################################################################

# G2 device types are generic devices that prompt the user for both a Login Name AND Password.

###########################################################################################################

# P device types are Cisco PIX Firewalls

###########################################################################################################

# For Nortel Routers, set the Router Type to N and only configure the

# "1st-level Username" and the Passwd1 field.  All other fields are ignored.

# They can be two double quotes (i.e. "") or left with values, although they are

# ignored they must still be present.  Note, the spawn_id for

# Nortel Routers must still be left blank.

# A possible 1st-level Username for Nortel routers is "Manager".

###########################################################################################################

# The special DEFAULT entry will be used for passwords if the router/device is not explicitly

# defined in field 2 (Router IP).  This DEFAULT entry MUST be the last row in the table or

# it will not work.  Note, a DEFAULT entry does not need to be defined, but is useful if you have

# many routers/devices and they all use the same passwords.  Thus you don't have to explicitly

# define each router/device in the table.

# DON'T FORGET TO CHANGE THE "ROUTER TYPE" FIELD, for the DEFAULT entry, to

# the device type you are using (e.g. C, E, G1, G2, N)  The default value is C for Cisco.

#

########################################################################################################################

#    "Router Type" "Router IP" "1st-level Username" "Passwd1" "2nd-level username "Passwd2" "Access Program" "spawn_id"

########################################################################################################################

set ALL_ROUTERS ""

lappend ALL_ROUTERS [list C "10.10.1.1" "" "foobar" "" "foobar" "telnet" "" ] ;# SanFran 1720

lappend ALL_ROUTERS [list C "nyrtr" "allan" "mypasswd" "" "my2ndpasswd" "telnet" "" ] ;# NY router

lappend ALL_ROUTERS [list C "10.10.2.1" "" "foobar" "" "foobar" "ssh" "" ] ;# LA 7500

lappend ALL_ROUTERS [list C "M2" "" "foobar" "" "foobar" "ssh" "" ] ;# MI 3660

lappend ALL_ROUTERS [list C "10.10.9.1" "" "foobar" "" "foobar" "telnet" "" ] ;# FL 4500

lappend ALL_ROUTERS [list C "10.10.17.1" "" "foobar" "" "foobar" "telnet" "" ] ;# NJ 12000

lappend ALL_ROUTERS [list G1 "nj-test3" "" "foobar" "" "foobar" "telnet" "" ] ;# abc box

lappend ALL_ROUTERS [list G2 "ny-fore2" "ami" "foobar" "" "foobar" "telnet" "" ] ;# Fore Switch

lappend ALL_ROUTERS [list P "ny-pix1" "" "foobar" "" "foobar" "telnet" "" ] ;# PIX Firewall

lappend ALL_ROUTERS [list N "nortel_nj_2" "Manager" "foobar" "" "foobar" "telnet" "" ] ;# Nortel Router

lappend ALL_ROUTERS [list C "DEFAULT" "" "abcde" "" "ddffgg" "telnet" "" ] ;# Default password