22

May

Raw FTP Commands

Posted by packetmad as Daemons, FreeBSD, Linux, OS, Unix, ftp

I retrieved it from here: http://www.nsftools.com/tips/RawFTP.htm

List of raw FTP commands
(Warning: this is a technical document, not necessary for most FTP use.)

Note that commands marked with a * are not implemented in a number of FTP servers.

Common commands

04

Feb

Solaris someuser cron not running

Posted by packetmad as OS, Unix

Keep running into this problem. Getting cron failures in /var/cron/log:


someuser 4151 c Mon Feb 29 12:35:00 1993
! bad user (someuser) Mon Feb 29 12:35:00 1993

Inevitably, the user has locked themselves (or a malicious someone) out of the server.

Check /etc/shadow for *LK* on the user.

passwd -u someuser to unlock.

30

Jan

Solaris 10 DNS Oops! WTF?! Oh Yeah!

Posted by packetmad as Daemons, OS, Unix, dns

When building Solaris 10 servers in bulk.. That is 1 or more at a time. I usually don’t enable any sort of name resolution until later.

That’s the problem. When later rolls around, I’ve forgotten that I hadn’t enabled anything.

This would be fine and dandy if nslookup or host would let me know that my /etc/nsswitch.conf is only looking at files. It ignores that and goes strictly with what is in /etc/resolv.conf seemingly. So if that’s broke or incorrect it will, at least, tell you that.

10

Jan

Bind9: Master Only

Posted by packetmad as Daemons, FreeBSD, Linux, OS, Unix, dns

Configuration for a master only DNS server.

1. WILL NOT answer queries
2. WILL NOT forward queries
3. WILL NOT perform recursion
4. WILL allow transfers from specified slaves

Zone and configuration files are backed up disk to disk via rsync.

Single point editing of our name space.

Single point of failure. If server is lost, updates to DNS cannot be made until another master is brought online.

options {
directory “/etc”;
pid-file “/var/run/named.pid”;
version “Windows 3.11″;
allow-query {“none”; };
allow-recursion {“none”; };
notify yes;
also-notify {
IPn.IPn.IPn.IPn;
};
allow-transfer {
IPn.IPn.IPn.IPn;
};
};

30

Aug

Quick Solaris Disk Mirror

Posted by packetmad as OS, Unix

# format
Searching for disks…done

AVAILABLE DISK SELECTIONS:
0. c1t1d0
/pci@1,0/pci103c,60b0@5/sd@1,0
1. c1t4d0
/pci@1,0/pci103c,60b0@5/sd@4,0

bash-3.00# prtvtoc /dev/rdsk/c1t1d0s2 | fmthard -s – /dev/rdsk/c1t4d0s2
fmthard: New volume table of contents now in place.

bash-3.00# metadb -a -f -c2 /dev/dsk/c1t1d0s7 /dev/dsk/c1t4d0s7

/dev/dsk/c1t1d0s1 – - swap – no -
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 / ufs 1
no -
/dev/dsk/c1t1d0s3 /dev/rdsk/c1t1d0s3 /var ufs 1
no -
/dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /export ufs 2
yes

bash-3.00# metainit -f d10 1 1 c1t1d0s0
d10: Concat/Stripe is setup
bash-3.00# metainit d20 1 1 c1t4d0s0
d20: Concat/Stripe is setup
bash-3.00# metainit d30 -m d10
d30: Mirror is setup

27

Aug

Simple Zone Construction

Posted by packetmad as OS, Unix

bash-3.00# zoneadm list -iv
ID NAME STATUS PATH
0 global running /
11 foo running /export/zones/foo
13 bar running /export/zones/bar
bash-3.00# zonecfg -z fubar
fubar: No such zone configured
Use ‘create’ to begin configuring a new zone.

zonecfg:fubar> create
zonecfg:fubar> set zonepath=/export/zones/fubar
zonecfg:fubar> set autoboot=true
zonecfg:fubar> add net
zonecfg:fubar:net> set physical=eth0
zonecfg:fubar:net> set address=192.168.1.1
zonecfg:fubar:net> end
zonecfg:fubar> add attr
zonecfg:fubar:attr> set name=comment
zonecfg:fubar:attr> set type=string
zonecfg:fubar:attr> set value=”FOOBED”
zonecfg:fubar:attr> end
zonecfg:fubar> verify
zonecfg:fubar> commit
zonecfg:fubar> exit

bash-3.00# zoneadm -z fubar install

13

Aug

Solaris 10: Zones

Posted by packetmad as OS, Unix

This is the first part in a series of notes taken regarding new(ish) Solaris 10 technologies. Other items I have notes on are ZFS and new service administration.

Zones, Containers, Domains and Partition (According to Sun):

Zone: chroot’d virtual machine. Some resources are shared, for example, the kernel or /usr/lib.
More info below.

Container: Zone with resource controls in place. At this time, limited to number of CPUs.
See “Resource Pools”

Domain: Grouping of hardware in enterprise class Sun servers

Partition: Segregation of domain grouped hardware.

07

Aug

Solaris 10 Crib

Posted by packetmad as OS, Unix

Some items concerning Solaris 10.

Zone: chrooted “virtual” machine. Kernel is a shared resource.
Domain: Grouping of hardware in larger sun servers.
Partition: Separation of domains.
Container: Zone with resource controls in place.

/etc/zones contains data on all zones.

ipmp auto nic failover. Both must be in same subnet.

core: application failure
panic: kernel failure

pool stuff (page 2-34):
pools contain sets (dynamic processor sets)
dynamic resource pool: limit resources in a zone
poolcfg -dc info get info on pools
pooladm -e save active pool config /etc/pooladm.conf
pooladm -x removes all user configured pools

12

Oct

Adding disk to AIX 5L (SAN)

Posted by packetmad as OS, Unix

Quick step-by-step for when I am forgetting things:

hostname:root> cfgmgr
Discover disks

hostname:root> lspv
Note whether SAN is HDLM (Hitachi) or VPATH (Shark)
Note hdisk# or vpath#
Should also report disks, in VGs and otherwise

hostname:root> lsvg -l VGname
Note which VG a filesystem is in

hostname:root> smitty lvm
>> Volume Groups
>> Add a Data Path Volume to a Volume Group (Shark)
>> Force the creation of a volume group? no (Leave Default)
>> * VOLUME GROUP name (F4 to list volume groups)
>> * PHYSICAL VOLUME names (F4 to list available volumes)

26

Sep

AIX: Add Swap Space (NON-HA)

Posted by packetmad as OS, Unix

1. lsps -a
Reports current swap space

2. errpt -a | more

3. lsvg -l rootvg
Displays all partitions in the rootvg

4. smitty lvm
Paging Space
Change / Show Characteristics of a Paging Space