Cisco Router command to get hostname


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Cisco Router command to get hostname
# 1  
Old 12-20-2005
Lightbulb Cisco Router command to get hostname

Hi All,

I am connected to a cisco router and I want to know the hostname of this router.

I connect as telnet <IPADDRESS>

and the prompt shows

vpnaccess-bristol>

But I want to know the full hostname of the router how can i do that.

When i type the hostname command the following error occurs.

% Unknown command or computer name, or unable to find computer address

If you can help.

Thanks,
Rahul.
# 2  
Old 12-20-2005
Hi Rahul,
I dunno what a cisco router is but in general on unix systems, to find the ipaddress or machine details the command used is nslookup <hostname>
Hope this helps
# 3  
Old 02-14-2006
hostname

your hostname is "vpnaccess-bristol", but you can also check it by typing the command "show running-configuration" or "sho run" for short. I hope this helps you out.
# 4  
Old 02-15-2006
Getting Error

"vpnaccess-bristol" is not the complete hostname. Hostname is somewhat similar to vpnaccess-bristol-acc.birmingham.net. In this case I know the hostname thats why I am able to tell you. Others I can't find it.

Your commands give the following error.

sho run
Command authorization failed.

show running-configuration
^
% Invalid input detected at '^' marker.


I have run the en command on the router to enable me executing the sho commands. For example, I can run the following on the router

sho clock
13:33:27.820 GMT Wed Feb 15 2006


Let me know if you can help.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. IP Networking

Need help configuring Cisco 892-k9 router

I bought a Cisco 892-k9 router and I am having in issue trying to setup the initial configuration. Does someone have a sampl configuration for a single subnet that I can use for my configuration? Thanks. (0 Replies)
Discussion started by: gandolf989
0 Replies

2. IP Networking

Does cisco 1921 router support site to site VPNs using IPSec?

Q: "Does Cisco 1921 router support,, act as an endpoint for, site to site VPNs using IPSec? If so, how many? " A: If you get the Cisco 1921/k9 with the security services bundle then it will have built in security features. Cisco, typically includes IP Sec tunnels I believe as part of that... (0 Replies)
Discussion started by: Ayaerlee
0 Replies

3. IP Networking

How to show Cisco Router Running Configuration in Third Party Application

Hey everyone, I have a few question. 1. Is it possible to display cisco 'show run' output command to the application ?? 2. And is there any ways to log in to the router instead of using telnet from telnet application??? Thanks in advance (0 Replies)
Discussion started by: franzramadhan
0 Replies

4. IP Networking

isc dhcpd and cisco router

Hello all, I have set up dhcpd on a linux box for serving subnets on multiple vlans configured on a Cisco 6500 with ip helper of the dhcp server. Servers get dhcp leases just fine, however, some machines lose their connection for reboot or what not and I can not get their lease back even though... (0 Replies)
Discussion started by: closedown
0 Replies

5. IP Networking

Setup Dial In VPN on Cisco Router

Hello, Does anyone know where I can find configuration information on setting up a dial in VPN on Cicso IOS for a bunch of servers. Could not seem to find anything in search engines. Thanks (0 Replies)
Discussion started by: photon
0 Replies

6. IP Networking

Linux behind a cisco router

Dear All, I have worked with xDSL routers working in bridged mode, and linux behind them working as a Firewall utilizing IPTABLES. My question is, how this will change if the xDSL router is replaced with a Cisco Router? I mean to ask that, can I assign a public ip on the linux machine, which... (0 Replies)
Discussion started by: tmm
0 Replies

7. Shell Programming and Scripting

Perl telnet to cisco router and compare the ping ms

All Please help, i will telnet to router to obain the ping status and compare, if higher than normal latency, i will have further action.. if i do the telent and in perl script then .... e.g the result i obtain from the router will be =' Success rate is 100 percent (5/5), round-trip... (4 Replies)
Discussion started by: optimus
4 Replies
Login or Register to Ask a Question