Tuesday, October 30, 2012

How to reset Cisco configuration



Cat2950# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete
Cat2950#
Cat2950# reload

System configuration has been modified. Save? [yes/no]: n    

!--- Do not save the configuration at this prompt. Otherwise, the switch
!--- reloads with the current running configuration and does not reset to default.

Proceed with reload? [confirm]y                              

2w0d: %SYS-5-RELOAD: Reload requested

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by antonino
WS-C2950G-12-EI starting...

source: http://www.cisco.com/en/US/products/hw/switches/ps607/products_tech_note09186a00800c4546.shtml

Friday, October 12, 2012

send break on ILOM


  • Log in to 2 ILOM.
  • go to /HOST namespace.
-> cd /HOST

  • Type the following command and standby
-> set send_break_action="break"

  • In your second ILOM session, first start the system by typing the following command
-> start /SYS
  • After that, accessing the console through this command.
-> start /SP/console

Tuesday, October 9, 2012

how to find out what port is listening


netstat command to find open ports

# netstat --listen
To display open ports and established TCP connections, enter:
$ netstat -vatn
To display only open UDP ports try the following command:
$ netstat -vaun
If you want to see FQDN (full dns hostname), try removing the -n flag:
$ netstat -vat

lsof Command Examples

To display the list of open ports, enter:
# lsof -i
To display all open files, use:
# lsof
To display all open IPv4 network files in use by the process whose PID is 9255, use:
# lsof -i 4 -a -p 9255

turn off firewall on redhat


Here are the command:
service iptables save
service iptables stop
chkconfig iptables off

Tuesday, October 2, 2012

single mode on Solaris

To boot a solaris machine into a single mode. Execute the command below at any terminal
shutdown -i6 -y

Thursday, September 27, 2012

network troubleshooting in Solaris


I had an issue with Solaris where the OS is unable to find the network interface.
One of my college run the command below to troubleshoot:


dladm show-dev
dladm show-link
prtconf -D
vi path_to_inst


I'm not sure yet what the command are for. But I will just record it here for my reference in the future.