Saturday 30 July 2011

8. Patch Management (Real Time)


8. Patch management
# showrev –p

To know NIC speed
# dladm show-dev
Or
#ndd –get /dev/e1000g0 link-speed
#ndd –get /dev/e1000g0 link-status

#ndd –get /dev/e1000g0 \?     //to see all options \?


Assigning the IP:
To findout the nic information
# cat /etc/path_to_inst  | grep –i net
Or
# dladm show-dev

Assigning the IP & plumb:
# ifconfig e1000g0 plumb
#ifconfig –a
# ifconfig e1000g0  192.168.1.10
# ifconfig e1000g0  192.168.1.10 up


Unplumbed IP
# ifconfig –a
# ifconfig e1000g0  192.168.1.10  down
# ifconfig e1000g0  unplumb


To permanent the IP address

We need to edit 4 files
  1. #cat /etc/hosts
  2. # cat /etc/inet/ipnodes
  3. # cat /etc/nodename
  4. # cat /etc/hostname.nicname
# cat /etc/hostname.e1000g0

To see all ports:
# netstat -a

No comments:

Post a Comment