登陆进去也可以直接hostname,可以当前的主机名; telnet (omsdb1)
# more /etc/hosts
/oracle/crs/logs/sxdd1/crsd -----文件路径;
#su - oracle ---- 切换用户到oracle;
$sqlplus /nolog
SQL>conn /as sysdba
SQL>startup open ----启动数据库实例;
交换机配置:
思科交换机的配置:
利用超级终端连接交换机,
初次连接交换机,选择no跳过初始配置对话框,即进入交换机全局查看模式下 提示符:Switch>
键入en 回车,进入特权模式下(若需退出该模式 exit回车) 提示符:Switch#
键入conf 回车进入全局配置模式(若需退出该模式 exit回车)
系统跳出Configuring from terminal,memory,or neiwork[terminal]? 键入回车 也可键入 conf t 直接进入终端全局配置模式 提示符:Switch(config)#
为交换机取一个容易识别的机器名: switch(config)#hostname sw1
设置enable密码为cisco:
sw1(config)#enable secret cisco
禁止命令解析(为防止键入错误命令之后交换机在网络上寻找匹配命令): sw1(config)#no ip domain-lookup
设置允许telnet登陆交换机,登陆密码为cisco: sw1(config)#line vty 0 15
sw1(config-line)#password cisco sw1(config-line)#login
常用命令
1。查看端口fastEthernet 2/1及IP配置情况: sw1#show ip interface fastEthernet 2/1 2.查看某个端口的详细信息:
sw1#show interface fastethernet 2/1 sw1#show interface vlan 1
sw1#show interface port-channel 1
3.查看交换机运行时的CPU MEMORY使用情况: sw1#show processes cpu sw1#show processes memory
4.查看交换机的当前配置:
sw1#show running
5.查看交换机上SNMP的工作情况,如向哪些工作站发送了多少trap信息: sw1#show snmp
6.查看交换机上VTP: sw1#show vtp status sw1#show vtp counters 华为交换机配置:
基本配置需要完成以下设置: 交换机机器名:
system-view
System View: return to User View with Ctrl+Z [switch]#sysname sw1
设置允许telnet登陆交换机,登陆获得管理权限,登陆密码为huawei:
system-view
System View: return to User View with Ctrl+Z. [switch]# user-interface vty 0 4
[switch-ui-vty0-4]# user privilege level 3
[switch-ui-vty0-4]# set authentication password cipher huawei 接着配置VLan
在VLan接口上配置地址(主/辅地址),主地址是该交换机所在网段的地址,一般sw1主机号部分设为设为252,sw2主机号部分设为设为253;辅地址是该交换机所在网段网络号部分最后一位加6,主机号部分设为254:
system-view
System View: return to User View with Ctrl+Z. [switch]#interface Vlan-interface1
[switch-Vlan-interface1]ip address 168.10.101.252 255.255.0.0 [switch-Vlan-interface1]ip address 168.16.101.254 255.255.0.0 sub [switch-Vlan-interface1]undo shutdown
接着配端口
对连接主机(服务器或工作站)的端口进行设置,下面的例子把第1个板上第1个端口设置为访问端口:
system-view
System View: return to User View with Ctrl+Z. [switch]#interface GigabitEthernet1/0/1
[switch-GigabitEthernet1/0/1]port link-type access
FEC/GEC配置 SNMP配置: VRRP配置 保存配置
做完后按Ctrl+Z或quit退出 使用save命令保存配置到NVRAM中