Today I added another 18GB hard disk to my NetBSD machine. The goal is to migrate /usr on it. After I have connected the disk and booted the machine I ran fdisk to create a partition on the disk. I want to use the complete disk for /usr so I only created one partition. The -u option for the fdisk command runs fdisk in interactive mode which make things very easy:
Sunday, March 18, 2012
Sunday, March 4, 2012
Obtaining CPU information in NetBSD
If you need to know what CPU your are currently using then run cat on /proc/cpuinfo (just like in Linux):
Available, used and free memory in NetBSD
To see how much memory is consumed in NetBSD use cat on /proc/meminfo:
Obtain PCI hardware information in NetBSD
To get information about your installed PCI hardware on a freshly installed NetBSD machine run dmesg and grep for "at pci":
Setting up a simple firewall with pf and NetBSD
Today I deceided to setup a simple firewall for my NetBSD machine. The following output shows my network interfaces:
# ifconfig -a
tlp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
...
# ifconfig -a
tlp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
...
Saturday, March 3, 2012
Password status
Today I needed to check a old web server running a few simple web sites. The owner of the server asked me to check all non system users and their access rights. The first thing I did was checking for all available users:
Thursday, March 1, 2012
Display HBA and WWN in HP-UX
First display the available HBA's installed in your system:
# ioscan -kfnC fc
Class I H/W Path Driver S/W State H/W Type Description
====================================================================
fc 0 0/3/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp0
fc 1 0/3/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp1
fc 2 0/7/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp2
fc 3 0/7/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp3
# ioscan -kfnC fc
Class I H/W Path Driver S/W State H/W Type Description
====================================================================
fc 0 0/3/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp0
fc 1 0/3/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp1
fc 2 0/7/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp2
fc 3 0/7/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001
/dev/fclp3
Subscribe to:
Posts (Atom)